wallet 2.1.522 → 2.1.527
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 +2 -1
- package/README.md +15 -18
- package/api/advertisementCreditsApi.ts +1 -1
- package/api/analyticsApi.ts +1 -1
- package/api/appleWalletSubscribersApi.ts +1 -1
- package/api/billingApi.ts +263 -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 +140 -1
- package/api/employeeAPIKeysApi.ts +1 -1
- package/api/employeeAccessApi.ts +1 -1
- package/api/employeesApi.ts +1 -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 +78 -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 +1 -1
- package/api/staticVoucherCampaignGroupsApi.ts +1 -1
- package/api/staticVoucherCampaignsApi.ts +147 -8
- 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 +1 -1
- package/api/wooCommerceTerminalApi.ts +1 -1
- package/dist/api/billingApi.d.ts +32 -0
- package/dist/api/billingApi.js +236 -0
- package/dist/api/billingApi.js.map +1 -1
- package/dist/api/dynamicVouchersApi.d.ts +17 -0
- package/dist/api/dynamicVouchersApi.js +122 -0
- package/dist/api/dynamicVouchersApi.js.map +1 -1
- package/dist/api/interactionsApi.d.ts +9 -0
- package/dist/api/interactionsApi.js +65 -0
- package/dist/api/interactionsApi.js.map +1 -1
- package/dist/api/staticVoucherCampaignsApi.d.ts +19 -2
- package/dist/api/staticVoucherCampaignsApi.js +126 -4
- package/dist/api/staticVoucherCampaignsApi.js.map +1 -1
- package/dist/model/advertisementCreditScan.d.ts +1 -1
- package/dist/model/advertisementCreditScan.js +5 -5
- package/dist/model/advertisementCreditScan.js.map +1 -1
- package/dist/model/browserDetails.d.ts +17 -0
- package/dist/model/browserDetails.js +33 -0
- package/dist/model/browserDetails.js.map +1 -0
- package/dist/model/createStaticVoucherCampaign.d.ts +0 -1
- package/dist/model/createStaticVoucherCampaign.js +0 -5
- package/dist/model/createStaticVoucherCampaign.js.map +1 -1
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +0 -1
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +0 -5
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js.map +1 -1
- package/dist/model/dynamicVoucher.d.ts +1 -1
- package/dist/model/dynamicVoucher.js +5 -5
- package/dist/model/dynamicVoucher.js.map +1 -1
- package/dist/model/member.d.ts +1 -1
- package/dist/model/member.js +5 -5
- package/dist/model/member.js.map +1 -1
- package/dist/model/models.d.ts +4 -3
- package/dist/model/models.js +6 -3
- package/dist/model/models.js.map +1 -1
- package/dist/model/outboundSMS.d.ts +1 -1
- package/dist/model/outboundSMS.js +5 -5
- package/dist/model/outboundSMS.js.map +1 -1
- package/dist/model/{createStaticVoucherCampaignWithVoucher.d.ts → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.d.ts} +4 -5
- package/dist/model/{createStaticVoucherCampaignWithVoucher.js → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js} +20 -25
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js.map +1 -0
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +0 -1
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +0 -5
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js.map +1 -1
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +1 -1
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +5 -5
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js.map +1 -1
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +1 -1
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +5 -5
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js.map +1 -1
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +1 -1
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +5 -5
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js.map +1 -1
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +1 -1
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +5 -5
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js.map +1 -1
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +0 -1
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +0 -5
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js.map +1 -1
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +1 -1
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +5 -5
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js.map +1 -1
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +1 -1
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +5 -5
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js.map +1 -1
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +1 -1
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +5 -5
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js.map +1 -1
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +0 -1
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +0 -5
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js.map +1 -1
- package/dist/model/portalPage.d.ts +1 -0
- package/dist/model/portalPage.js +1 -0
- package/dist/model/portalPage.js.map +1 -1
- package/dist/model/staticVoucher.d.ts +1 -1
- package/dist/model/staticVoucher.js +5 -5
- package/dist/model/staticVoucher.js.map +1 -1
- package/dist/model/staticVoucherCampaign.d.ts +1 -1
- package/dist/model/staticVoucherCampaign.js +5 -5
- package/dist/model/staticVoucherCampaign.js.map +1 -1
- package/dist/model/staticVoucherCampaignBroadcast.d.ts +1 -1
- package/dist/model/staticVoucherCampaignBroadcast.js +5 -5
- package/dist/model/staticVoucherCampaignBroadcast.js.map +1 -1
- package/dist/model/staticVoucherCampaignUpdate.d.ts +0 -1
- package/dist/model/staticVoucherCampaignUpdate.js +0 -5
- package/dist/model/staticVoucherCampaignUpdate.js.map +1 -1
- package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +0 -1
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js +0 -5
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js.map +1 -1
- package/dist/model/wTAdvertisementCreditScan.d.ts +1 -1
- package/dist/model/wTAdvertisementCreditScan.js +5 -5
- package/dist/model/wTAdvertisementCreditScan.js.map +1 -1
- package/dist/model/wTDynamicVoucher.d.ts +1 -1
- package/dist/model/wTDynamicVoucher.js +5 -5
- package/dist/model/wTDynamicVoucher.js.map +1 -1
- package/dist/model/wTDynamicVoucherCreateParams.d.ts +0 -1
- package/dist/model/wTDynamicVoucherCreateParams.js +0 -5
- package/dist/model/wTDynamicVoucherCreateParams.js.map +1 -1
- package/dist/model/wTDynamicVoucherUpdateParams.d.ts +0 -1
- package/dist/model/wTDynamicVoucherUpdateParams.js +0 -5
- package/dist/model/wTDynamicVoucherUpdateParams.js.map +1 -1
- package/dist/model/wTMember.d.ts +1 -1
- package/dist/model/wTMember.js +5 -5
- package/dist/model/wTMember.js.map +1 -1
- package/dist/model/wTMerchantCredit.d.ts +1 -1
- package/dist/model/wTMerchantCredit.js +5 -5
- package/dist/model/wTMerchantCredit.js.map +1 -1
- package/dist/model/wTStaticVoucher.d.ts +1 -1
- package/dist/model/wTStaticVoucher.js +5 -5
- package/dist/model/wTStaticVoucher.js.map +1 -1
- package/dist/model/wTStaticVoucherCampaign.d.ts +1 -1
- package/dist/model/wTStaticVoucherCampaign.js +5 -5
- package/dist/model/wTStaticVoucherCampaign.js.map +1 -1
- package/model/advertisementCredit.ts +1 -1
- package/model/advertisementCreditBroadcast.ts +1 -1
- package/model/advertisementCreditScan.ts +7 -7
- package/model/agreement.ts +1 -1
- package/model/alert.ts +1 -1
- package/model/announcement.ts +1 -1
- package/model/applicableTerminals.ts +1 -1
- package/model/applicableTerminalsAnyOf.ts +1 -1
- package/model/applicableTerminalsAnyOf1.ts +1 -1
- package/model/applicableTerminalsAnyOf2.ts +1 -1
- package/model/applicableTerminalsAnyOf3.ts +1 -1
- package/model/applicableTerminalsAnyOf4.ts +1 -1
- package/model/applicableTerminalsAnyOf5.ts +1 -1
- package/model/applicableTerminalsAnyOf6.ts +1 -1
- package/model/authError.ts +1 -1
- package/model/availablePhoneNumbersRequest.ts +1 -1
- package/model/browserDetails.ts +49 -0
- 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 -7
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +1 -7
- package/model/dashboardWidget.ts +1 -1
- package/model/document.ts +1 -1
- package/model/duplicateRowFound.ts +1 -1
- package/model/dynamicVoucher.ts +7 -7
- 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 +1 -1
- package/model/mSAnalyticsMemberCountPartitionedByDate.ts +1 -1
- package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +1 -1
- package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +1 -1
- package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +1 -1
- package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +1 -1
- 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 +1 -1
- package/model/member.ts +10 -10
- 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 +6 -3
- 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 +7 -7
- 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/{createStaticVoucherCampaignWithVoucher.ts → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts} +22 -25
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -7
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +1 -1
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +1 -1
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +10 -10
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +1 -1
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +10 -10
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +1 -1
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +1 -1
- package/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.ts +1 -1
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +1 -1
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +1 -1
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.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 +7 -7
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +1 -1
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +7 -7
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +1 -1
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +1 -7
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +7 -7
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +1 -1
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +1 -1
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +7 -7
- 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 +7 -7
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -7
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
- package/model/plan.ts +1 -1
- package/model/portalPage.ts +2 -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 +7 -7
- package/model/staticVoucherCampaign.ts +7 -7
- package/model/staticVoucherCampaignBroadcast.ts +7 -7
- package/model/staticVoucherCampaignGroup.ts +1 -1
- package/model/staticVoucherCampaignUpdate.ts +1 -7
- 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 -7
- 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 +7 -7
- 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 +7 -7
- package/model/wTDynamicVoucherCreateParams.ts +1 -7
- package/model/wTDynamicVoucherRedemption.ts +1 -1
- package/model/wTDynamicVoucherSummary.ts +1 -1
- package/model/wTDynamicVoucherUpdateParams.ts +1 -7
- 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 +1 -1
- 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/wTImportedListRecipientFromMembershipTierImport.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/wTLinkBook.ts +1 -1
- package/model/wTLinkBookCreateParams.ts +1 -1
- package/model/wTLinkBookSectionCreateParams.ts +1 -1
- package/model/wTLinkBookSectionUpdateParams.ts +1 -1
- package/model/wTLinkBookUpdateParams.ts +1 -1
- package/model/wTMember.ts +10 -10
- 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 +10 -10
- 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 +7 -7
- package/model/wTStaticVoucherCampaign.ts +7 -7
- 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 +1 -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 +1 -1
- package/model/walletPageView.ts +1 -1
- package/model/webpage.ts +1 -1
- package/package.json +1 -1
- package/dist/model/createStaticVoucherCampaignWithVoucher.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* wallet-api
|
|
3
3
|
* API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1.
|
|
5
|
+
* The version of the OpenAPI document: 2.1.527
|
|
6
6
|
* Contact: development@wallet.inc
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,13 +17,14 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AuthError } from '../model/authError';
|
|
19
19
|
import { CreateStaticVoucherCampaign } from '../model/createStaticVoucherCampaign';
|
|
20
|
-
import { CreateStaticVoucherCampaignWithVoucher } from '../model/createStaticVoucherCampaignWithVoucher';
|
|
21
20
|
import { CreateStaticVoucherCampaignWithVoucherWithCSV } from '../model/createStaticVoucherCampaignWithVoucherWithCSV';
|
|
22
21
|
import { FalsumError } from '../model/falsumError';
|
|
23
22
|
import { InlineResponse2002 } from '../model/inlineResponse2002';
|
|
24
23
|
import { InlineResponse2004 } from '../model/inlineResponse2004';
|
|
25
24
|
import { InternalServerError } from '../model/internalServerError';
|
|
25
|
+
import { PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive } from '../model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive';
|
|
26
26
|
import { ReachPerformanceStats } from '../model/reachPerformanceStats';
|
|
27
|
+
import { StaticVoucherCampaign } from '../model/staticVoucherCampaign';
|
|
27
28
|
import { StaticVoucherCampaignUpdate } from '../model/staticVoucherCampaignUpdate';
|
|
28
29
|
import { UpdateStaticVoucherCampaignWithVoucher } from '../model/updateStaticVoucherCampaignWithVoucher';
|
|
29
30
|
import { VSCampaignGeneratedMessage } from '../model/vSCampaignGeneratedMessage';
|
|
@@ -106,6 +107,75 @@ export class StaticVoucherCampaignsApi {
|
|
|
106
107
|
this.interceptors.push(interceptor);
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Archive static voucher campaign
|
|
113
|
+
* @param campaignID
|
|
114
|
+
*/
|
|
115
|
+
public async archiveStaticVoucherCampaign (campaignID: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }> {
|
|
116
|
+
const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/{campaignID}'
|
|
117
|
+
.replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
|
|
118
|
+
let localVarQueryParameters: any = {};
|
|
119
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
120
|
+
const produces = ['application/json'];
|
|
121
|
+
// give precedence to 'application/json'
|
|
122
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
123
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
124
|
+
} else {
|
|
125
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
126
|
+
}
|
|
127
|
+
let localVarFormParams: any = {};
|
|
128
|
+
|
|
129
|
+
// verify required parameter 'campaignID' is not null or undefined
|
|
130
|
+
if (campaignID === null || campaignID === undefined) {
|
|
131
|
+
throw new Error('Required parameter campaignID was null or undefined when calling archiveStaticVoucherCampaign.');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
135
|
+
|
|
136
|
+
let localVarUseFormData = false;
|
|
137
|
+
|
|
138
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
qs: localVarQueryParameters,
|
|
141
|
+
headers: localVarHeaderParams,
|
|
142
|
+
uri: localVarPath,
|
|
143
|
+
useQuerystring: this._useQuerystring,
|
|
144
|
+
json: true,
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
let authenticationPromise = Promise.resolve();
|
|
148
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
149
|
+
|
|
150
|
+
let interceptorPromise = authenticationPromise;
|
|
151
|
+
for (const interceptor of this.interceptors) {
|
|
152
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return interceptorPromise.then(() => {
|
|
156
|
+
if (Object.keys(localVarFormParams).length) {
|
|
157
|
+
if (localVarUseFormData) {
|
|
158
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
159
|
+
} else {
|
|
160
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return new Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }>((resolve, reject) => {
|
|
164
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
165
|
+
if (error) {
|
|
166
|
+
reject(error);
|
|
167
|
+
} else {
|
|
168
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
169
|
+
body = ObjectSerializer.deserialize(body, "StaticVoucherCampaign");
|
|
170
|
+
resolve({ response: response, body: body });
|
|
171
|
+
} else {
|
|
172
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
109
179
|
/**
|
|
110
180
|
*
|
|
111
181
|
* @summary Count loaded vouchers
|
|
@@ -385,9 +455,9 @@ export class StaticVoucherCampaignsApi {
|
|
|
385
455
|
/**
|
|
386
456
|
*
|
|
387
457
|
* @summary Create static voucher campaign with voucher
|
|
388
|
-
* @param
|
|
458
|
+
* @param body
|
|
389
459
|
*/
|
|
390
|
-
public async createStaticVoucherCampaignWithVoucher (
|
|
460
|
+
public async createStaticVoucherCampaignWithVoucher (body: PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTStaticVoucherCampaign; }> {
|
|
391
461
|
const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/voucher';
|
|
392
462
|
let localVarQueryParameters: any = {};
|
|
393
463
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -400,9 +470,9 @@ export class StaticVoucherCampaignsApi {
|
|
|
400
470
|
}
|
|
401
471
|
let localVarFormParams: any = {};
|
|
402
472
|
|
|
403
|
-
// verify required parameter '
|
|
404
|
-
if (
|
|
405
|
-
throw new Error('Required parameter
|
|
473
|
+
// verify required parameter 'body' is not null or undefined
|
|
474
|
+
if (body === null || body === undefined) {
|
|
475
|
+
throw new Error('Required parameter body was null or undefined when calling createStaticVoucherCampaignWithVoucher.');
|
|
406
476
|
}
|
|
407
477
|
|
|
408
478
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -416,7 +486,7 @@ export class StaticVoucherCampaignsApi {
|
|
|
416
486
|
uri: localVarPath,
|
|
417
487
|
useQuerystring: this._useQuerystring,
|
|
418
488
|
json: true,
|
|
419
|
-
body: ObjectSerializer.serialize(
|
|
489
|
+
body: ObjectSerializer.serialize(body, "PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive")
|
|
420
490
|
};
|
|
421
491
|
|
|
422
492
|
let authenticationPromise = Promise.resolve();
|
|
@@ -1329,6 +1399,75 @@ export class StaticVoucherCampaignsApi {
|
|
|
1329
1399
|
});
|
|
1330
1400
|
});
|
|
1331
1401
|
}
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @summary Restore static voucher campaign
|
|
1405
|
+
* @param campaignID
|
|
1406
|
+
*/
|
|
1407
|
+
public async restoreStaticVoucherCampaign (campaignID: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }> {
|
|
1408
|
+
const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/{campaignID}'
|
|
1409
|
+
.replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
|
|
1410
|
+
let localVarQueryParameters: any = {};
|
|
1411
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1412
|
+
const produces = ['application/json'];
|
|
1413
|
+
// give precedence to 'application/json'
|
|
1414
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1415
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1416
|
+
} else {
|
|
1417
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1418
|
+
}
|
|
1419
|
+
let localVarFormParams: any = {};
|
|
1420
|
+
|
|
1421
|
+
// verify required parameter 'campaignID' is not null or undefined
|
|
1422
|
+
if (campaignID === null || campaignID === undefined) {
|
|
1423
|
+
throw new Error('Required parameter campaignID was null or undefined when calling restoreStaticVoucherCampaign.');
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1427
|
+
|
|
1428
|
+
let localVarUseFormData = false;
|
|
1429
|
+
|
|
1430
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1431
|
+
method: 'PATCH',
|
|
1432
|
+
qs: localVarQueryParameters,
|
|
1433
|
+
headers: localVarHeaderParams,
|
|
1434
|
+
uri: localVarPath,
|
|
1435
|
+
useQuerystring: this._useQuerystring,
|
|
1436
|
+
json: true,
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
let authenticationPromise = Promise.resolve();
|
|
1440
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1441
|
+
|
|
1442
|
+
let interceptorPromise = authenticationPromise;
|
|
1443
|
+
for (const interceptor of this.interceptors) {
|
|
1444
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
return interceptorPromise.then(() => {
|
|
1448
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1449
|
+
if (localVarUseFormData) {
|
|
1450
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1451
|
+
} else {
|
|
1452
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
return new Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }>((resolve, reject) => {
|
|
1456
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1457
|
+
if (error) {
|
|
1458
|
+
reject(error);
|
|
1459
|
+
} else {
|
|
1460
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1461
|
+
body = ObjectSerializer.deserialize(body, "StaticVoucherCampaign");
|
|
1462
|
+
resolve({ response: response, body: body });
|
|
1463
|
+
} else {
|
|
1464
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
});
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1332
1471
|
/**
|
|
1333
1472
|
*
|
|
1334
1473
|
* @summary Update static voucher campaign
|
package/api/staticVouchersApi.ts
CHANGED
package/api/systemApi.ts
CHANGED
package/api/utilitiesApi.ts
CHANGED
package/api/webTerminalApi.ts
CHANGED
package/api/wixTerminalApi.ts
CHANGED
package/dist/api/billingApi.d.ts
CHANGED
|
@@ -27,6 +27,22 @@ export declare class BillingApi {
|
|
|
27
27
|
setDefaultAuthentication(auth: Authentication): void;
|
|
28
28
|
setApiKey(key: BillingApiApiKeys, value: string): void;
|
|
29
29
|
addInterceptor(interceptor: Interceptor): void;
|
|
30
|
+
buyAddOn(productID: string, options?: {
|
|
31
|
+
headers: {
|
|
32
|
+
[name: string]: string;
|
|
33
|
+
};
|
|
34
|
+
}): Promise<{
|
|
35
|
+
response: http.IncomingMessage;
|
|
36
|
+
body: any;
|
|
37
|
+
}>;
|
|
38
|
+
buySpecialOffer(productID: string, options?: {
|
|
39
|
+
headers: {
|
|
40
|
+
[name: string]: string;
|
|
41
|
+
};
|
|
42
|
+
}): Promise<{
|
|
43
|
+
response: http.IncomingMessage;
|
|
44
|
+
body: any;
|
|
45
|
+
}>;
|
|
30
46
|
cancelPlan(options?: {
|
|
31
47
|
headers: {
|
|
32
48
|
[name: string]: string;
|
|
@@ -43,6 +59,14 @@ export declare class BillingApi {
|
|
|
43
59
|
response: http.IncomingMessage;
|
|
44
60
|
body: any;
|
|
45
61
|
}>;
|
|
62
|
+
fetchAddOns(options?: {
|
|
63
|
+
headers: {
|
|
64
|
+
[name: string]: string;
|
|
65
|
+
};
|
|
66
|
+
}): Promise<{
|
|
67
|
+
response: http.IncomingMessage;
|
|
68
|
+
body: Array<any>;
|
|
69
|
+
}>;
|
|
46
70
|
fetchIndustry(options?: {
|
|
47
71
|
headers: {
|
|
48
72
|
[name: string]: string;
|
|
@@ -59,6 +83,14 @@ export declare class BillingApi {
|
|
|
59
83
|
response: http.IncomingMessage;
|
|
60
84
|
body: any;
|
|
61
85
|
}>;
|
|
86
|
+
fetchSpecialOffers(options?: {
|
|
87
|
+
headers: {
|
|
88
|
+
[name: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}): Promise<{
|
|
91
|
+
response: http.IncomingMessage;
|
|
92
|
+
body: Array<any>;
|
|
93
|
+
}>;
|
|
62
94
|
fetchSubscription(options?: {
|
|
63
95
|
headers: {
|
|
64
96
|
[name: string]: string;
|
package/dist/api/billingApi.js
CHANGED
|
@@ -67,6 +67,128 @@ class BillingApi {
|
|
|
67
67
|
addInterceptor(interceptor) {
|
|
68
68
|
this.interceptors.push(interceptor);
|
|
69
69
|
}
|
|
70
|
+
buyAddOn(productID, options = { headers: {} }) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const localVarPath = this.basePath + '/v2/billing/products/addOns/{productID}'
|
|
73
|
+
.replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
|
|
74
|
+
let localVarQueryParameters = {};
|
|
75
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
76
|
+
const produces = ['application/json'];
|
|
77
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
78
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
82
|
+
}
|
|
83
|
+
let localVarFormParams = {};
|
|
84
|
+
if (productID === null || productID === undefined) {
|
|
85
|
+
throw new Error('Required parameter productID was null or undefined when calling buyAddOn.');
|
|
86
|
+
}
|
|
87
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
88
|
+
let localVarUseFormData = false;
|
|
89
|
+
let localVarRequestOptions = {
|
|
90
|
+
method: 'POST',
|
|
91
|
+
qs: localVarQueryParameters,
|
|
92
|
+
headers: localVarHeaderParams,
|
|
93
|
+
uri: localVarPath,
|
|
94
|
+
useQuerystring: this._useQuerystring,
|
|
95
|
+
json: true,
|
|
96
|
+
};
|
|
97
|
+
let authenticationPromise = Promise.resolve();
|
|
98
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
99
|
+
let interceptorPromise = authenticationPromise;
|
|
100
|
+
for (const interceptor of this.interceptors) {
|
|
101
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
102
|
+
}
|
|
103
|
+
return interceptorPromise.then(() => {
|
|
104
|
+
if (Object.keys(localVarFormParams).length) {
|
|
105
|
+
if (localVarUseFormData) {
|
|
106
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return new Promise((resolve, reject) => {
|
|
113
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
114
|
+
if (error) {
|
|
115
|
+
reject(error);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
119
|
+
body = models_1.ObjectSerializer.deserialize(body, "any");
|
|
120
|
+
resolve({ response: response, body: body });
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
buySpecialOffer(productID, options = { headers: {} }) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const localVarPath = this.basePath + '/v2/billing/products/specialOffers/{productID}'
|
|
134
|
+
.replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
|
|
135
|
+
let localVarQueryParameters = {};
|
|
136
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
137
|
+
const produces = ['application/json'];
|
|
138
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
139
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
143
|
+
}
|
|
144
|
+
let localVarFormParams = {};
|
|
145
|
+
if (productID === null || productID === undefined) {
|
|
146
|
+
throw new Error('Required parameter productID was null or undefined when calling buySpecialOffer.');
|
|
147
|
+
}
|
|
148
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
149
|
+
let localVarUseFormData = false;
|
|
150
|
+
let localVarRequestOptions = {
|
|
151
|
+
method: 'POST',
|
|
152
|
+
qs: localVarQueryParameters,
|
|
153
|
+
headers: localVarHeaderParams,
|
|
154
|
+
uri: localVarPath,
|
|
155
|
+
useQuerystring: this._useQuerystring,
|
|
156
|
+
json: true,
|
|
157
|
+
};
|
|
158
|
+
let authenticationPromise = Promise.resolve();
|
|
159
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
160
|
+
let interceptorPromise = authenticationPromise;
|
|
161
|
+
for (const interceptor of this.interceptors) {
|
|
162
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
163
|
+
}
|
|
164
|
+
return interceptorPromise.then(() => {
|
|
165
|
+
if (Object.keys(localVarFormParams).length) {
|
|
166
|
+
if (localVarUseFormData) {
|
|
167
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return new Promise((resolve, reject) => {
|
|
174
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
175
|
+
if (error) {
|
|
176
|
+
reject(error);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
180
|
+
body = models_1.ObjectSerializer.deserialize(body, "any");
|
|
181
|
+
resolve({ response: response, body: body });
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
}
|
|
70
192
|
cancelPlan(options = { headers: {} }) {
|
|
71
193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
194
|
const localVarPath = this.basePath + '/v2/billing/plan';
|
|
@@ -185,6 +307,63 @@ class BillingApi {
|
|
|
185
307
|
});
|
|
186
308
|
});
|
|
187
309
|
}
|
|
310
|
+
fetchAddOns(options = { headers: {} }) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
const localVarPath = this.basePath + '/v2/billing/products/addOns';
|
|
313
|
+
let localVarQueryParameters = {};
|
|
314
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
315
|
+
const produces = ['application/json'];
|
|
316
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
317
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
321
|
+
}
|
|
322
|
+
let localVarFormParams = {};
|
|
323
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
324
|
+
let localVarUseFormData = false;
|
|
325
|
+
let localVarRequestOptions = {
|
|
326
|
+
method: 'GET',
|
|
327
|
+
qs: localVarQueryParameters,
|
|
328
|
+
headers: localVarHeaderParams,
|
|
329
|
+
uri: localVarPath,
|
|
330
|
+
useQuerystring: this._useQuerystring,
|
|
331
|
+
json: true,
|
|
332
|
+
};
|
|
333
|
+
let authenticationPromise = Promise.resolve();
|
|
334
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
335
|
+
let interceptorPromise = authenticationPromise;
|
|
336
|
+
for (const interceptor of this.interceptors) {
|
|
337
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
338
|
+
}
|
|
339
|
+
return interceptorPromise.then(() => {
|
|
340
|
+
if (Object.keys(localVarFormParams).length) {
|
|
341
|
+
if (localVarUseFormData) {
|
|
342
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return new Promise((resolve, reject) => {
|
|
349
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
350
|
+
if (error) {
|
|
351
|
+
reject(error);
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
355
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
|
|
356
|
+
resolve({ response: response, body: body });
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
}
|
|
188
367
|
fetchIndustry(options = { headers: {} }) {
|
|
189
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
369
|
const localVarPath = this.basePath + '/v2/billing/industry';
|
|
@@ -299,6 +478,63 @@ class BillingApi {
|
|
|
299
478
|
});
|
|
300
479
|
});
|
|
301
480
|
}
|
|
481
|
+
fetchSpecialOffers(options = { headers: {} }) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const localVarPath = this.basePath + '/v2/billing/products/specialOffers';
|
|
484
|
+
let localVarQueryParameters = {};
|
|
485
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
486
|
+
const produces = ['application/json'];
|
|
487
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
488
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
492
|
+
}
|
|
493
|
+
let localVarFormParams = {};
|
|
494
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
495
|
+
let localVarUseFormData = false;
|
|
496
|
+
let localVarRequestOptions = {
|
|
497
|
+
method: 'GET',
|
|
498
|
+
qs: localVarQueryParameters,
|
|
499
|
+
headers: localVarHeaderParams,
|
|
500
|
+
uri: localVarPath,
|
|
501
|
+
useQuerystring: this._useQuerystring,
|
|
502
|
+
json: true,
|
|
503
|
+
};
|
|
504
|
+
let authenticationPromise = Promise.resolve();
|
|
505
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
506
|
+
let interceptorPromise = authenticationPromise;
|
|
507
|
+
for (const interceptor of this.interceptors) {
|
|
508
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
509
|
+
}
|
|
510
|
+
return interceptorPromise.then(() => {
|
|
511
|
+
if (Object.keys(localVarFormParams).length) {
|
|
512
|
+
if (localVarUseFormData) {
|
|
513
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return new Promise((resolve, reject) => {
|
|
520
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
521
|
+
if (error) {
|
|
522
|
+
reject(error);
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
526
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
|
|
527
|
+
resolve({ response: response, body: body });
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
}
|
|
302
538
|
fetchSubscription(options = { headers: {} }) {
|
|
303
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
304
540
|
const localVarPath = this.basePath + '/v2/billing/subscription';
|