wallet 2.1.511 → 2.1.513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +13 -0
- package/api/advertisementCreditsApi.ts +1 -1
- package/api/analyticsApi.ts +173 -16
- package/api/apis.ts +7 -1
- package/api/appleWalletSubscribersApi.ts +1 -1
- package/api/billingApi.ts +1 -1
- package/api/clubMembersPointsApi.ts +1 -1
- package/api/configurationApi.ts +1 -1
- package/api/countriesApi.ts +1 -1
- package/api/customerApi.ts +1 -1
- package/api/dashboardApi.ts +1 -1
- package/api/dynamicVouchersApi.ts +1 -1
- package/api/employeeAPIKeysApi.ts +1 -1
- package/api/employeeAccessApi.ts +1 -1
- package/api/employeesApi.ts +208 -1
- package/api/imageGridApi.ts +1 -1
- package/api/industriesApi.ts +1 -1
- package/api/infoGenesisReportsApi.ts +1 -1
- package/api/integratedTerminalsApi.ts +1 -1
- package/api/interactionsApi.ts +1 -1
- package/api/linkBookApi.ts +1 -1
- package/api/linkBookSectionApi.ts +1 -1
- package/api/loginAndLogoutApi.ts +1 -1
- package/api/membershipTiersApi.ts +1 -1
- package/api/merchantApi.ts +1 -1
- package/api/merchantCreditsApi.ts +1 -1
- package/api/merchantURLsApi.ts +1 -1
- package/api/mobileTerminalApi.ts +1 -1
- package/api/newsApi.ts +1 -1
- package/api/paymentDesignsApi.ts +1 -1
- package/api/performancesApi.ts +1 -1
- package/api/promoCodesApi.ts +1 -1
- package/api/sMSApi.ts +1 -1
- package/api/settingsApi.ts +1 -1
- package/api/shopifyTerminalApi.ts +309 -0
- package/api/staticVoucherCampaignGroupsApi.ts +1 -1
- package/api/staticVoucherCampaignsApi.ts +1 -1
- package/api/staticVouchersApi.ts +1 -1
- package/api/systemApi.ts +1 -1
- package/api/transactionLedgerApi.ts +1 -1
- package/api/utilitiesApi.ts +1 -1
- package/api/webTerminalApi.ts +1 -1
- package/api/wixTerminalApi.ts +309 -0
- package/api/wooCommerceTerminalApi.ts +309 -0
- package/dist/api/analyticsApi.d.ts +27 -5
- package/dist/api/analyticsApi.js +135 -5
- package/dist/api/analyticsApi.js.map +1 -1
- package/dist/api/apis.d.ts +7 -1
- package/dist/api/apis.js +7 -1
- package/dist/api/apis.js.map +1 -1
- package/dist/api/employeesApi.d.ts +26 -0
- package/dist/api/employeesApi.js +182 -0
- package/dist/api/employeesApi.js.map +1 -1
- package/dist/api/shopifyTerminalApi.d.ts +51 -0
- package/dist/api/shopifyTerminalApi.js +259 -0
- package/dist/api/shopifyTerminalApi.js.map +1 -0
- package/dist/api/wixTerminalApi.d.ts +51 -0
- package/dist/api/wixTerminalApi.js +259 -0
- package/dist/api/wixTerminalApi.js.map +1 -0
- package/dist/api/wooCommerceTerminalApi.d.ts +51 -0
- package/dist/api/wooCommerceTerminalApi.js +259 -0
- package/dist/api/wooCommerceTerminalApi.js.map +1 -0
- package/dist/model/applicableTerminals.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf1.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf1.js +1 -1
- package/dist/model/applicableTerminalsAnyOf1.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf2.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf2.js +1 -1
- package/dist/model/applicableTerminalsAnyOf2.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf3.d.ts +1 -1
- package/dist/model/applicableTerminalsAnyOf3.js +1 -1
- package/dist/model/applicableTerminalsAnyOf3.js.map +1 -1
- package/dist/model/applicableTerminalsAnyOf4.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf4.js +8 -0
- package/dist/model/applicableTerminalsAnyOf4.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf5.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf5.js +8 -0
- package/dist/model/applicableTerminalsAnyOf5.js.map +1 -0
- package/dist/model/applicableTerminalsAnyOf6.d.ts +3 -0
- package/dist/model/applicableTerminalsAnyOf6.js +8 -0
- package/dist/model/applicableTerminalsAnyOf6.js.map +1 -0
- package/dist/model/document.d.ts +23 -0
- package/dist/model/document.js +63 -0
- package/dist/model/document.js.map +1 -0
- package/dist/model/linkBookSection.d.ts +1 -0
- package/dist/model/linkBookSection.js +5 -0
- package/dist/model/linkBookSection.js.map +1 -1
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js.map +1 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.d.ts +15 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js +23 -0
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js.map +1 -0
- package/dist/model/mediaFile.js.map +1 -1
- package/dist/model/models.d.ts +10 -0
- package/dist/model/models.js +30 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/wTEmployeeCreateDocument.d.ts +16 -0
- package/dist/model/wTEmployeeCreateDocument.js +28 -0
- package/dist/model/wTEmployeeCreateDocument.js.map +1 -0
- package/dist/model/wTLinkBookSectionCreateParams.d.ts +1 -0
- package/dist/model/wTLinkBookSectionCreateParams.js +5 -0
- package/dist/model/wTLinkBookSectionCreateParams.js.map +1 -1
- package/dist/model/wTLinkBookSectionUpdateParams.d.ts +1 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js +5 -0
- package/dist/model/wTLinkBookSectionUpdateParams.js.map +1 -1
- package/dist/model/wTWalletConfigurationSaveWalletRecord.d.ts +2 -0
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js +10 -0
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js.map +1 -1
- package/dist/model/walletConfiguration.d.ts +2 -0
- package/dist/model/walletConfiguration.js +10 -0
- package/dist/model/walletConfiguration.js.map +1 -1
- package/model/advertisementCredit.ts +1 -1
- package/model/advertisementCreditBroadcast.ts +1 -1
- package/model/advertisementCreditScan.ts +1 -1
- package/model/agreement.ts +1 -1
- package/model/alert.ts +1 -1
- package/model/announcement.ts +1 -1
- package/model/applicableTerminals.ts +4 -1
- package/model/applicableTerminalsAnyOf.ts +1 -1
- package/model/applicableTerminalsAnyOf1.ts +2 -2
- package/model/applicableTerminalsAnyOf2.ts +2 -2
- package/model/applicableTerminalsAnyOf3.ts +2 -2
- package/model/applicableTerminalsAnyOf4.ts +17 -0
- package/model/applicableTerminalsAnyOf5.ts +17 -0
- package/model/applicableTerminalsAnyOf6.ts +17 -0
- package/model/authError.ts +1 -1
- package/model/availablePhoneNumbersRequest.ts +1 -1
- package/model/clickFunnelAmount.ts +1 -1
- package/model/clickFunnelContact.ts +1 -1
- package/model/clickFunnelContactProfile.ts +1 -1
- package/model/clickFunnelEvent.ts +1 -1
- package/model/clickFunnelOriginalAmount.ts +1 -1
- package/model/clickFunnelProduct.ts +1 -1
- package/model/clickFunnelPurchase.ts +1 -1
- package/model/clickFunnelRegistration.ts +1 -1
- package/model/createStaticVoucherCampaign.ts +1 -1
- package/model/createStaticVoucherCampaignWithVoucher.ts +1 -1
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +1 -1
- package/model/dashboardWidget.ts +1 -1
- package/model/document.ts +100 -0
- package/model/duplicateRowFound.ts +1 -1
- package/model/dynamicVoucher.ts +1 -1
- package/model/dynamicVoucherBroadcast.ts +1 -1
- package/model/employee.ts +1 -1
- package/model/employeeAPIKey.ts +1 -1
- package/model/employeeActivityLog.ts +1 -1
- package/model/entityTooLarge.ts +1 -1
- package/model/exportDataFile.ts +1 -1
- package/model/falsumError.ts +1 -1
- package/model/falsumField.ts +1 -1
- package/model/feature.ts +1 -1
- package/model/forbiddenRequest.ts +1 -1
- package/model/foreignKeyDoesNotExist.ts +1 -1
- package/model/helpDeskRequest.ts +1 -1
- package/model/imageGrid.ts +1 -1
- package/model/importedList.ts +1 -1
- package/model/importedListRecipient.ts +1 -1
- package/model/inboundSMS.ts +1 -1
- package/model/inlineResponse200.ts +1 -1
- package/model/inlineResponse2001.ts +1 -1
- package/model/inlineResponse20010.ts +1 -1
- package/model/inlineResponse2002.ts +1 -1
- package/model/inlineResponse2003.ts +1 -1
- package/model/inlineResponse2004.ts +1 -1
- package/model/inlineResponse2005.ts +1 -1
- package/model/inlineResponse2006.ts +1 -1
- package/model/inlineResponse2007.ts +1 -1
- package/model/inlineResponse2008.ts +1 -1
- package/model/inlineResponse2009.ts +1 -1
- package/model/internalServerError.ts +1 -1
- package/model/ledgerEntry.ts +1 -1
- package/model/linkBook.ts +1 -1
- package/model/linkBookSection.ts +7 -1
- package/model/mSAnalyticsMemberCountPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +43 -0
- package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +43 -0
- package/model/mSMemberHistory.ts +1 -1
- package/model/mSMemberHistoryPagination.ts +1 -1
- package/model/mSMemberRedemption.ts +1 -1
- package/model/mSMemberRedemptionPagination.ts +1 -1
- package/model/mSMembershipTierHistory.ts +1 -1
- package/model/mSMembershipTierHistoryPagination.ts +1 -1
- package/model/mSMembershipTierRedemption.ts +1 -1
- package/model/mSMembershipTierRedemptionPagination.ts +1 -1
- package/model/mSMerchantCreditHistory.ts +1 -1
- package/model/mSMerchantCreditHistoryPagination.ts +1 -1
- package/model/mSMerchantCreditRedemption.ts +1 -1
- package/model/mSMerchantCreditRedemptionPagination.ts +1 -1
- package/model/mediaFile.ts +16 -1
- package/model/member.ts +1 -1
- package/model/memberSearch.ts +1 -1
- package/model/merchant.ts +1 -1
- package/model/merchantCreditSearch.ts +1 -1
- package/model/merchantNotInitialized.ts +1 -1
- package/model/merchantURL.ts +1 -1
- package/model/message.ts +1 -1
- package/model/models.ts +30 -0
- package/model/moduleError.ts +1 -1
- package/model/newsArticle.ts +1 -1
- package/model/optInList.ts +1 -1
- package/model/optInListSource.ts +1 -1
- package/model/optInListSubscriber.ts +1 -1
- package/model/outboundSMS.ts +1 -1
- package/model/paginatedWTMembers.ts +1 -1
- package/model/paginatedWTMerchantCredits.ts +1 -1
- package/model/paginationRequestWithIDAndWithoutSortOptions.ts +1 -1
- package/model/paginationRequestWithSortOptions.ts +1 -1
- package/model/paymentDesign.ts +1 -1
- package/model/paymentPrefixes.ts +1 -1
- package/model/performance.ts +1 -1
- package/model/phoneNumber.ts +1 -1
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +1 -1
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +1 -1
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +1 -1
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +1 -1
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +1 -1
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +1 -1
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +1 -1
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.ts +1 -1
- package/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.ts +1 -1
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +1 -1
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +1 -1
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +1 -1
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +1 -1
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +1 -1
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +1 -1
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +1 -1
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +1 -1
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +1 -1
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +1 -1
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +1 -1
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +1 -1
- package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +1 -1
- package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +1 -1
- package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +1 -1
- package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +1 -1
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +1 -1
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -1
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
- package/model/plan.ts +1 -1
- package/model/portalPage.ts +1 -1
- package/model/presignedPost.ts +1 -1
- package/model/presignedPostFields.ts +1 -1
- package/model/product.ts +1 -1
- package/model/promoCode.ts +1 -1
- package/model/reachPerformanceStats.ts +1 -1
- package/model/request.ts +1 -1
- package/model/response.ts +1 -1
- package/model/role.ts +1 -1
- package/model/roleAuditLog.ts +1 -1
- package/model/sSImportedListRecipientCreateParams.ts +1 -1
- package/model/sSOptInSource.ts +1 -1
- package/model/simpleSMSBroadcast.ts +1 -1
- package/model/staticVoucher.ts +1 -1
- package/model/staticVoucherCampaign.ts +1 -1
- package/model/staticVoucherCampaignBroadcast.ts +1 -1
- package/model/staticVoucherCampaignGroup.ts +1 -1
- package/model/staticVoucherCampaignUpdate.ts +1 -1
- package/model/status.ts +1 -1
- package/model/statusAnyOf.ts +1 -1
- package/model/statusAnyOf1.ts +1 -1
- package/model/statusAnyOf2.ts +1 -1
- package/model/statusAnyOf3.ts +1 -1
- package/model/subscriptionFeature.ts +1 -1
- package/model/subscriptionPlan.ts +1 -1
- package/model/subscriptionProduct.ts +1 -1
- package/model/tcpa.ts +1 -1
- package/model/updateStaticVoucherCampaignWithVoucher.ts +1 -1
- package/model/vSCampaignGeneratedMessage.ts +1 -1
- package/model/vSCampaignGeneratedMessagePagination.ts +1 -1
- package/model/vSDynamicVoucherStatus.ts +1 -1
- package/model/wTAdvertisementCredit.ts +1 -1
- package/model/wTAdvertisementCreditCreateParams.ts +1 -1
- package/model/wTAdvertisementCreditScan.ts +1 -1
- package/model/wTAdvertisementCreditUpdateParams.ts +1 -1
- package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +1 -1
- package/model/wTAuthenticationForgotPassword.ts +1 -1
- package/model/wTAuthenticationLoginRequest.ts +1 -1
- package/model/wTAuthenticationLoginResponse.ts +1 -1
- package/model/wTAuthenticationRegister.ts +1 -1
- package/model/wTAuthenticationRequestResetPassword.ts +1 -1
- package/model/wTAuthenticationResetPassword.ts +1 -1
- package/model/wTAuthenticationSSOLoginForDiscourse.ts +1 -1
- package/model/wTBillingChangePlan.ts +1 -1
- package/model/wTBillingSavePaymentMethod.ts +1 -1
- package/model/wTBillingVerifyPaymentMethodResponse.ts +1 -1
- package/model/wTCountResult.ts +1 -1
- package/model/wTCustomerSearchByMemberID.ts +1 -1
- package/model/wTCustomerSearchByPhoneNumber.ts +1 -1
- package/model/wTDynamicVoucher.ts +1 -1
- package/model/wTDynamicVoucherCreateParams.ts +1 -1
- package/model/wTDynamicVoucherRedemption.ts +1 -1
- package/model/wTDynamicVoucherSummary.ts +1 -1
- package/model/wTDynamicVoucherUpdateParams.ts +1 -1
- package/model/wTEmployee.ts +1 -1
- package/model/wTEmployeeAPIKey.ts +1 -1
- package/model/wTEmployeeAPIKeyCreateParams.ts +1 -1
- package/model/wTEmployeeAPIKeyUpdateParams.ts +1 -1
- package/model/wTEmployeeCreate.ts +1 -1
- package/model/wTEmployeeCreateAlert.ts +1 -1
- package/model/wTEmployeeCreateDocument.ts +43 -0
- package/model/wTEmployeeCreateMediaFile.ts +1 -1
- package/model/wTEmployeeCreateStaticVoucherCampaignGroup.ts +1 -1
- package/model/wTEmployeeFileCreate.ts +1 -1
- package/model/wTEmployeeImportRecords.ts +1 -1
- package/model/wTEmployeeNotification.ts +1 -1
- package/model/wTEmployeePeerRoles.ts +1 -1
- package/model/wTEmployeeS3FilePresign.ts +1 -1
- package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +1 -1
- package/model/wTEmployeeScheduleSimpleSMS.ts +1 -1
- package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +1 -1
- package/model/wTEmployeeSendHelpDeskResponse.ts +1 -1
- package/model/wTEmployeeUpdate.ts +1 -1
- package/model/wTEmployeeUpdateRecords.ts +1 -1
- package/model/wTFetchWalletPaymentObjectWithToken.ts +1 -1
- package/model/wTImageGridCreateParams.ts +1 -1
- package/model/wTImageGridUpdateParams.ts +1 -1
- package/model/wTImportedList.ts +1 -1
- package/model/wTInfoGenesisLookupRequestErrors.ts +1 -1
- package/model/wTInfoGenesisRecordFilterParameters.ts +1 -1
- package/model/wTInfoGenesisRoutingIDs.ts +1 -1
- package/model/wTInfoGenesisUniquePostingIDs.ts +1 -1
- package/model/wTLinkBookCreateParams.ts +1 -1
- package/model/wTLinkBookSectionCreateParams.ts +7 -1
- package/model/wTLinkBookSectionUpdateParams.ts +7 -1
- package/model/wTLinkBookUpdateParams.ts +1 -1
- package/model/wTMember.ts +1 -1
- package/model/wTMemberCreationParams.ts +1 -1
- package/model/wTMembershipTier.ts +1 -1
- package/model/wTMembershipTierCreationParams.ts +1 -1
- package/model/wTMembershipTierUpdateParams.ts +1 -1
- package/model/wTMembershipTierWithMemberCount.ts +1 -1
- package/model/wTMerchantCredit.ts +1 -1
- package/model/wTMerchantCreditCreationParams.ts +1 -1
- package/model/wTMerchantURLCreate.ts +1 -1
- package/model/wTMerchantURLUpdate.ts +1 -1
- package/model/wTMerchantUpdate.ts +1 -1
- package/model/wTMerchantUpdateBillingContact.ts +1 -1
- package/model/wTMerchantUpdatePOSIntegration.ts +1 -1
- package/model/wTNewsArticleCreateParams.ts +1 -1
- package/model/wTNewsArticleUpdateParams.ts +1 -1
- package/model/wTOptInList.ts +1 -1
- package/model/wTOptInListCreationParams.ts +1 -1
- package/model/wTPaymentDesign.ts +1 -1
- package/model/wTPaymentDesignCreateParams.ts +1 -1
- package/model/wTPaymentDesignUpdateParams.ts +1 -1
- package/model/wTPerformanceCreateParams.ts +1 -1
- package/model/wTPerformanceUpdateParams.ts +1 -1
- package/model/wTPosMachine.ts +1 -1
- package/model/wTPosMachineCreateParams.ts +1 -1
- package/model/wTPosMachineUpdateParams.ts +1 -1
- package/model/wTPromoCodeCreateParams.ts +1 -1
- package/model/wTPromoCodeUpdateParams.ts +1 -1
- package/model/wTRole.ts +1 -1
- package/model/wTSMSAcquirePhoneNumber.ts +1 -1
- package/model/wTSMSCreateAgreement.ts +1 -1
- package/model/wTSMSImportOptInListSubscribers.ts +1 -1
- package/model/wTSMSImportedListCreate.ts +1 -1
- package/model/wTSMSLimits.ts +1 -1
- package/model/wTSMSOptInListSourceCreate.ts +1 -1
- package/model/wTSMSUpdatePhoneNumberConfig.ts +1 -1
- package/model/wTSettingsSetPassword.ts +1 -1
- package/model/wTStaticVoucher.ts +1 -1
- package/model/wTStaticVoucherCampaign.ts +1 -1
- package/model/wTStaticVoucherCampaignPreviewMessages.ts +1 -1
- package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +1 -1
- package/model/wTStaticVoucherCreateParams.ts +1 -1
- package/model/wTStaticVoucherUpdateParams.ts +1 -1
- package/model/wTSystemApprovePhoneNumber.ts +1 -1
- package/model/wTSystemRoleCreate.ts +1 -1
- package/model/wTTCPAOpt.ts +1 -1
- package/model/wTTwilioRequestAuthyCode.ts +1 -1
- package/model/wTTwilioVerifyAuthyCode.ts +1 -1
- package/model/wTWalletConfigurationSaveWalletRecord.ts +13 -1
- package/model/wTWalletItemRedemption.ts +1 -1
- package/model/wTWalletObjectPrefixCounts.ts +1 -1
- package/model/wTWalletPageView.ts +1 -1
- package/model/wTWalletPageViewCount.ts +1 -1
- package/model/wTWalletPageViewGeoPoint.ts +1 -1
- package/model/walletConfiguration.ts +13 -1
- package/model/walletPageView.ts +1 -1
- package/model/webpage.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* wallet-api
|
|
3
|
+
* API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.1.513
|
|
6
|
+
* Contact: development@wallet.inc
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import localVarRequest from 'request';
|
|
15
|
+
import http from 'http';
|
|
16
|
+
|
|
17
|
+
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { AuthError } from '../model/authError';
|
|
19
|
+
import { FalsumError } from '../model/falsumError';
|
|
20
|
+
import { InternalServerError } from '../model/internalServerError';
|
|
21
|
+
import { WTWalletItemRedemption } from '../model/wTWalletItemRedemption';
|
|
22
|
+
|
|
23
|
+
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
|
+
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
25
|
+
|
|
26
|
+
import { HttpError, RequestFile } from './apis';
|
|
27
|
+
|
|
28
|
+
let defaultBasePath = 'https://api.wall.et';
|
|
29
|
+
|
|
30
|
+
// ===============================================
|
|
31
|
+
// This file is autogenerated - Please do not edit
|
|
32
|
+
// ===============================================
|
|
33
|
+
|
|
34
|
+
export enum ShopifyTerminalApiApiKeys {
|
|
35
|
+
api_key,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class ShopifyTerminalApi {
|
|
39
|
+
protected _basePath = defaultBasePath;
|
|
40
|
+
protected _defaultHeaders : any = {};
|
|
41
|
+
protected _useQuerystring : boolean = false;
|
|
42
|
+
|
|
43
|
+
protected authentications = {
|
|
44
|
+
'default': <Authentication>new VoidAuth(),
|
|
45
|
+
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected interceptors: Interceptor[] = [];
|
|
49
|
+
|
|
50
|
+
constructor(basePath?: string);
|
|
51
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
52
|
+
if (password) {
|
|
53
|
+
if (basePath) {
|
|
54
|
+
this.basePath = basePath;
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
if (basePathOrUsername) {
|
|
58
|
+
this.basePath = basePathOrUsername
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
set useQuerystring(value: boolean) {
|
|
64
|
+
this._useQuerystring = value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
set basePath(basePath: string) {
|
|
68
|
+
this._basePath = basePath;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
72
|
+
this._defaultHeaders = defaultHeaders;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get defaultHeaders() {
|
|
76
|
+
return this._defaultHeaders;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get basePath() {
|
|
80
|
+
return this._basePath;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
84
|
+
this.authentications.default = auth;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public setApiKey(key: ShopifyTerminalApiApiKeys, value: string) {
|
|
88
|
+
(this.authentications as any)[ShopifyTerminalApiApiKeys[key]].apiKey = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
92
|
+
this.interceptors.push(interceptor);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Fetch item
|
|
98
|
+
* @param itemID
|
|
99
|
+
*/
|
|
100
|
+
public async fetchWalletItemFromShopifyTerminal (itemID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
101
|
+
const localVarPath = this.basePath + '/v2/pos/shopify/item/{itemID}'
|
|
102
|
+
.replace('{' + 'itemID' + '}', encodeURIComponent(String(itemID)));
|
|
103
|
+
let localVarQueryParameters: any = {};
|
|
104
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
105
|
+
const produces = ['application/json'];
|
|
106
|
+
// give precedence to 'application/json'
|
|
107
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
108
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
109
|
+
} else {
|
|
110
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
111
|
+
}
|
|
112
|
+
let localVarFormParams: any = {};
|
|
113
|
+
|
|
114
|
+
// verify required parameter 'itemID' is not null or undefined
|
|
115
|
+
if (itemID === null || itemID === undefined) {
|
|
116
|
+
throw new Error('Required parameter itemID was null or undefined when calling fetchWalletItemFromShopifyTerminal.');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
120
|
+
|
|
121
|
+
let localVarUseFormData = false;
|
|
122
|
+
|
|
123
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
124
|
+
method: 'GET',
|
|
125
|
+
qs: localVarQueryParameters,
|
|
126
|
+
headers: localVarHeaderParams,
|
|
127
|
+
uri: localVarPath,
|
|
128
|
+
useQuerystring: this._useQuerystring,
|
|
129
|
+
json: true,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
let authenticationPromise = Promise.resolve();
|
|
133
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
134
|
+
|
|
135
|
+
let interceptorPromise = authenticationPromise;
|
|
136
|
+
for (const interceptor of this.interceptors) {
|
|
137
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return interceptorPromise.then(() => {
|
|
141
|
+
if (Object.keys(localVarFormParams).length) {
|
|
142
|
+
if (localVarUseFormData) {
|
|
143
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
144
|
+
} else {
|
|
145
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
149
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
150
|
+
if (error) {
|
|
151
|
+
reject(error);
|
|
152
|
+
} else {
|
|
153
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
154
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
155
|
+
resolve({ response: response, body: body });
|
|
156
|
+
} else {
|
|
157
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Redeem item
|
|
167
|
+
* @param itemID
|
|
168
|
+
* @param wTWalletItemRedemption
|
|
169
|
+
*/
|
|
170
|
+
public async redeemWalletItemFromShopifyTerminal (itemID: string, wTWalletItemRedemption: WTWalletItemRedemption, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
171
|
+
const localVarPath = this.basePath + '/v2/pos/shopify/item/redeem/{itemID}'
|
|
172
|
+
.replace('{' + 'itemID' + '}', encodeURIComponent(String(itemID)));
|
|
173
|
+
let localVarQueryParameters: any = {};
|
|
174
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
175
|
+
const produces = ['application/json'];
|
|
176
|
+
// give precedence to 'application/json'
|
|
177
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
178
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
179
|
+
} else {
|
|
180
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
181
|
+
}
|
|
182
|
+
let localVarFormParams: any = {};
|
|
183
|
+
|
|
184
|
+
// verify required parameter 'itemID' is not null or undefined
|
|
185
|
+
if (itemID === null || itemID === undefined) {
|
|
186
|
+
throw new Error('Required parameter itemID was null or undefined when calling redeemWalletItemFromShopifyTerminal.');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// verify required parameter 'wTWalletItemRedemption' is not null or undefined
|
|
190
|
+
if (wTWalletItemRedemption === null || wTWalletItemRedemption === undefined) {
|
|
191
|
+
throw new Error('Required parameter wTWalletItemRedemption was null or undefined when calling redeemWalletItemFromShopifyTerminal.');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
195
|
+
|
|
196
|
+
let localVarUseFormData = false;
|
|
197
|
+
|
|
198
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
199
|
+
method: 'POST',
|
|
200
|
+
qs: localVarQueryParameters,
|
|
201
|
+
headers: localVarHeaderParams,
|
|
202
|
+
uri: localVarPath,
|
|
203
|
+
useQuerystring: this._useQuerystring,
|
|
204
|
+
json: true,
|
|
205
|
+
body: ObjectSerializer.serialize(wTWalletItemRedemption, "WTWalletItemRedemption")
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
let authenticationPromise = Promise.resolve();
|
|
209
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
210
|
+
|
|
211
|
+
let interceptorPromise = authenticationPromise;
|
|
212
|
+
for (const interceptor of this.interceptors) {
|
|
213
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return interceptorPromise.then(() => {
|
|
217
|
+
if (Object.keys(localVarFormParams).length) {
|
|
218
|
+
if (localVarUseFormData) {
|
|
219
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
220
|
+
} else {
|
|
221
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
225
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
226
|
+
if (error) {
|
|
227
|
+
reject(error);
|
|
228
|
+
} else {
|
|
229
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
230
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
231
|
+
resolve({ response: response, body: body });
|
|
232
|
+
} else {
|
|
233
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Refund transaction
|
|
243
|
+
* @param ledgerEntryID
|
|
244
|
+
*/
|
|
245
|
+
public async refundWalletItemFromShopifyTerminal (ledgerEntryID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
246
|
+
const localVarPath = this.basePath + '/v2/pos/shopify/item/refund/{ledgerEntryID}'
|
|
247
|
+
.replace('{' + 'ledgerEntryID' + '}', encodeURIComponent(String(ledgerEntryID)));
|
|
248
|
+
let localVarQueryParameters: any = {};
|
|
249
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
250
|
+
const produces = ['application/json'];
|
|
251
|
+
// give precedence to 'application/json'
|
|
252
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
253
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
254
|
+
} else {
|
|
255
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
256
|
+
}
|
|
257
|
+
let localVarFormParams: any = {};
|
|
258
|
+
|
|
259
|
+
// verify required parameter 'ledgerEntryID' is not null or undefined
|
|
260
|
+
if (ledgerEntryID === null || ledgerEntryID === undefined) {
|
|
261
|
+
throw new Error('Required parameter ledgerEntryID was null or undefined when calling refundWalletItemFromShopifyTerminal.');
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
265
|
+
|
|
266
|
+
let localVarUseFormData = false;
|
|
267
|
+
|
|
268
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
269
|
+
method: 'POST',
|
|
270
|
+
qs: localVarQueryParameters,
|
|
271
|
+
headers: localVarHeaderParams,
|
|
272
|
+
uri: localVarPath,
|
|
273
|
+
useQuerystring: this._useQuerystring,
|
|
274
|
+
json: true,
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
let authenticationPromise = Promise.resolve();
|
|
278
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
279
|
+
|
|
280
|
+
let interceptorPromise = authenticationPromise;
|
|
281
|
+
for (const interceptor of this.interceptors) {
|
|
282
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return interceptorPromise.then(() => {
|
|
286
|
+
if (Object.keys(localVarFormParams).length) {
|
|
287
|
+
if (localVarUseFormData) {
|
|
288
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
289
|
+
} else {
|
|
290
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
294
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
295
|
+
if (error) {
|
|
296
|
+
reject(error);
|
|
297
|
+
} else {
|
|
298
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
299
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
300
|
+
resolve({ response: response, body: body });
|
|
301
|
+
} else {
|
|
302
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
package/api/staticVouchersApi.ts
CHANGED
package/api/systemApi.ts
CHANGED
package/api/utilitiesApi.ts
CHANGED
package/api/webTerminalApi.ts
CHANGED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* wallet-api
|
|
3
|
+
* API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.1.513
|
|
6
|
+
* Contact: development@wallet.inc
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import localVarRequest from 'request';
|
|
15
|
+
import http from 'http';
|
|
16
|
+
|
|
17
|
+
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { AuthError } from '../model/authError';
|
|
19
|
+
import { FalsumError } from '../model/falsumError';
|
|
20
|
+
import { InternalServerError } from '../model/internalServerError';
|
|
21
|
+
import { WTWalletItemRedemption } from '../model/wTWalletItemRedemption';
|
|
22
|
+
|
|
23
|
+
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
|
+
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
25
|
+
|
|
26
|
+
import { HttpError, RequestFile } from './apis';
|
|
27
|
+
|
|
28
|
+
let defaultBasePath = 'https://api.wall.et';
|
|
29
|
+
|
|
30
|
+
// ===============================================
|
|
31
|
+
// This file is autogenerated - Please do not edit
|
|
32
|
+
// ===============================================
|
|
33
|
+
|
|
34
|
+
export enum WixTerminalApiApiKeys {
|
|
35
|
+
api_key,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class WixTerminalApi {
|
|
39
|
+
protected _basePath = defaultBasePath;
|
|
40
|
+
protected _defaultHeaders : any = {};
|
|
41
|
+
protected _useQuerystring : boolean = false;
|
|
42
|
+
|
|
43
|
+
protected authentications = {
|
|
44
|
+
'default': <Authentication>new VoidAuth(),
|
|
45
|
+
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
protected interceptors: Interceptor[] = [];
|
|
49
|
+
|
|
50
|
+
constructor(basePath?: string);
|
|
51
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
52
|
+
if (password) {
|
|
53
|
+
if (basePath) {
|
|
54
|
+
this.basePath = basePath;
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
if (basePathOrUsername) {
|
|
58
|
+
this.basePath = basePathOrUsername
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
set useQuerystring(value: boolean) {
|
|
64
|
+
this._useQuerystring = value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
set basePath(basePath: string) {
|
|
68
|
+
this._basePath = basePath;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
72
|
+
this._defaultHeaders = defaultHeaders;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get defaultHeaders() {
|
|
76
|
+
return this._defaultHeaders;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get basePath() {
|
|
80
|
+
return this._basePath;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
84
|
+
this.authentications.default = auth;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public setApiKey(key: WixTerminalApiApiKeys, value: string) {
|
|
88
|
+
(this.authentications as any)[WixTerminalApiApiKeys[key]].apiKey = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
92
|
+
this.interceptors.push(interceptor);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Fetch item
|
|
98
|
+
* @param itemID
|
|
99
|
+
*/
|
|
100
|
+
public async fetchWalletItemFromWixTerminal (itemID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
101
|
+
const localVarPath = this.basePath + '/v2/pos/wix/item/{itemID}'
|
|
102
|
+
.replace('{' + 'itemID' + '}', encodeURIComponent(String(itemID)));
|
|
103
|
+
let localVarQueryParameters: any = {};
|
|
104
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
105
|
+
const produces = ['application/json'];
|
|
106
|
+
// give precedence to 'application/json'
|
|
107
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
108
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
109
|
+
} else {
|
|
110
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
111
|
+
}
|
|
112
|
+
let localVarFormParams: any = {};
|
|
113
|
+
|
|
114
|
+
// verify required parameter 'itemID' is not null or undefined
|
|
115
|
+
if (itemID === null || itemID === undefined) {
|
|
116
|
+
throw new Error('Required parameter itemID was null or undefined when calling fetchWalletItemFromWixTerminal.');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
120
|
+
|
|
121
|
+
let localVarUseFormData = false;
|
|
122
|
+
|
|
123
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
124
|
+
method: 'GET',
|
|
125
|
+
qs: localVarQueryParameters,
|
|
126
|
+
headers: localVarHeaderParams,
|
|
127
|
+
uri: localVarPath,
|
|
128
|
+
useQuerystring: this._useQuerystring,
|
|
129
|
+
json: true,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
let authenticationPromise = Promise.resolve();
|
|
133
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
134
|
+
|
|
135
|
+
let interceptorPromise = authenticationPromise;
|
|
136
|
+
for (const interceptor of this.interceptors) {
|
|
137
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return interceptorPromise.then(() => {
|
|
141
|
+
if (Object.keys(localVarFormParams).length) {
|
|
142
|
+
if (localVarUseFormData) {
|
|
143
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
144
|
+
} else {
|
|
145
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
149
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
150
|
+
if (error) {
|
|
151
|
+
reject(error);
|
|
152
|
+
} else {
|
|
153
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
154
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
155
|
+
resolve({ response: response, body: body });
|
|
156
|
+
} else {
|
|
157
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Redeem item
|
|
167
|
+
* @param itemID
|
|
168
|
+
* @param wTWalletItemRedemption
|
|
169
|
+
*/
|
|
170
|
+
public async redeemWalletItemFromWixTerminal (itemID: string, wTWalletItemRedemption: WTWalletItemRedemption, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
171
|
+
const localVarPath = this.basePath + '/v2/pos/wix/item/redeem/{itemID}'
|
|
172
|
+
.replace('{' + 'itemID' + '}', encodeURIComponent(String(itemID)));
|
|
173
|
+
let localVarQueryParameters: any = {};
|
|
174
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
175
|
+
const produces = ['application/json'];
|
|
176
|
+
// give precedence to 'application/json'
|
|
177
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
178
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
179
|
+
} else {
|
|
180
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
181
|
+
}
|
|
182
|
+
let localVarFormParams: any = {};
|
|
183
|
+
|
|
184
|
+
// verify required parameter 'itemID' is not null or undefined
|
|
185
|
+
if (itemID === null || itemID === undefined) {
|
|
186
|
+
throw new Error('Required parameter itemID was null or undefined when calling redeemWalletItemFromWixTerminal.');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// verify required parameter 'wTWalletItemRedemption' is not null or undefined
|
|
190
|
+
if (wTWalletItemRedemption === null || wTWalletItemRedemption === undefined) {
|
|
191
|
+
throw new Error('Required parameter wTWalletItemRedemption was null or undefined when calling redeemWalletItemFromWixTerminal.');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
195
|
+
|
|
196
|
+
let localVarUseFormData = false;
|
|
197
|
+
|
|
198
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
199
|
+
method: 'POST',
|
|
200
|
+
qs: localVarQueryParameters,
|
|
201
|
+
headers: localVarHeaderParams,
|
|
202
|
+
uri: localVarPath,
|
|
203
|
+
useQuerystring: this._useQuerystring,
|
|
204
|
+
json: true,
|
|
205
|
+
body: ObjectSerializer.serialize(wTWalletItemRedemption, "WTWalletItemRedemption")
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
let authenticationPromise = Promise.resolve();
|
|
209
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
210
|
+
|
|
211
|
+
let interceptorPromise = authenticationPromise;
|
|
212
|
+
for (const interceptor of this.interceptors) {
|
|
213
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return interceptorPromise.then(() => {
|
|
217
|
+
if (Object.keys(localVarFormParams).length) {
|
|
218
|
+
if (localVarUseFormData) {
|
|
219
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
220
|
+
} else {
|
|
221
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
225
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
226
|
+
if (error) {
|
|
227
|
+
reject(error);
|
|
228
|
+
} else {
|
|
229
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
230
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
231
|
+
resolve({ response: response, body: body });
|
|
232
|
+
} else {
|
|
233
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Refund transaction
|
|
243
|
+
* @param ledgerEntryID
|
|
244
|
+
*/
|
|
245
|
+
public async refundWalletItemFromWixTerminal (ledgerEntryID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
246
|
+
const localVarPath = this.basePath + '/v2/pos/wix/item/refund/{ledgerEntryID}'
|
|
247
|
+
.replace('{' + 'ledgerEntryID' + '}', encodeURIComponent(String(ledgerEntryID)));
|
|
248
|
+
let localVarQueryParameters: any = {};
|
|
249
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
250
|
+
const produces = ['application/json'];
|
|
251
|
+
// give precedence to 'application/json'
|
|
252
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
253
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
254
|
+
} else {
|
|
255
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
256
|
+
}
|
|
257
|
+
let localVarFormParams: any = {};
|
|
258
|
+
|
|
259
|
+
// verify required parameter 'ledgerEntryID' is not null or undefined
|
|
260
|
+
if (ledgerEntryID === null || ledgerEntryID === undefined) {
|
|
261
|
+
throw new Error('Required parameter ledgerEntryID was null or undefined when calling refundWalletItemFromWixTerminal.');
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
265
|
+
|
|
266
|
+
let localVarUseFormData = false;
|
|
267
|
+
|
|
268
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
269
|
+
method: 'POST',
|
|
270
|
+
qs: localVarQueryParameters,
|
|
271
|
+
headers: localVarHeaderParams,
|
|
272
|
+
uri: localVarPath,
|
|
273
|
+
useQuerystring: this._useQuerystring,
|
|
274
|
+
json: true,
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
let authenticationPromise = Promise.resolve();
|
|
278
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
279
|
+
|
|
280
|
+
let interceptorPromise = authenticationPromise;
|
|
281
|
+
for (const interceptor of this.interceptors) {
|
|
282
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return interceptorPromise.then(() => {
|
|
286
|
+
if (Object.keys(localVarFormParams).length) {
|
|
287
|
+
if (localVarUseFormData) {
|
|
288
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
289
|
+
} else {
|
|
290
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
294
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
295
|
+
if (error) {
|
|
296
|
+
reject(error);
|
|
297
|
+
} else {
|
|
298
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
299
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
300
|
+
resolve({ response: response, body: body });
|
|
301
|
+
} else {
|
|
302
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|