wallet 2.1.524 → 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
package/.openapi-generator/FILES
CHANGED
|
@@ -60,6 +60,7 @@ model/applicableTerminalsAnyOf5.ts
|
|
|
60
60
|
model/applicableTerminalsAnyOf6.ts
|
|
61
61
|
model/authError.ts
|
|
62
62
|
model/availablePhoneNumbersRequest.ts
|
|
63
|
+
model/browserDetails.ts
|
|
63
64
|
model/clickFunnelAmount.ts
|
|
64
65
|
model/clickFunnelContact.ts
|
|
65
66
|
model/clickFunnelContactProfile.ts
|
|
@@ -69,7 +70,6 @@ model/clickFunnelProduct.ts
|
|
|
69
70
|
model/clickFunnelPurchase.ts
|
|
70
71
|
model/clickFunnelRegistration.ts
|
|
71
72
|
model/createStaticVoucherCampaign.ts
|
|
72
|
-
model/createStaticVoucherCampaignWithVoucher.ts
|
|
73
73
|
model/createStaticVoucherCampaignWithVoucherWithCSV.ts
|
|
74
74
|
model/dashboardWidget.ts
|
|
75
75
|
model/document.ts
|
|
@@ -146,6 +146,7 @@ model/paymentDesign.ts
|
|
|
146
146
|
model/paymentPrefixes.ts
|
|
147
147
|
model/performance.ts
|
|
148
148
|
model/phoneNumber.ts
|
|
149
|
+
model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts
|
|
149
150
|
model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts
|
|
150
151
|
model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts
|
|
151
152
|
model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts
|
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|

|
|
3
2
|
|
|
4
3
|
> Access to this module is presently restricted to customers of Wallet Inc. Reach out on [Discord](https://discord.gg/xzwhcNCjcQ) for help.
|
|
5
4
|
|
|
6
5
|
## Summary
|
|
7
6
|
|
|
8
|
-
This module provides a server-side SDK for integrating with the CRM & Digital Payments platform provided by Wallet Inc. For details about the [Wallet Platform](https://
|
|
7
|
+
This module provides a server-side SDK for integrating with the CRM & Digital Payments platform provided by Wallet Inc. For details about the [Wallet Platform](https://wall.et/MU8JyjoD9KwA), please visit https://wallet.inc
|
|
9
8
|
|
|
10
|
-
For detailed API documentation and detailed steps to create your API key for authenticated requests, please visit the [Wallet Developer Hub](https://
|
|
9
|
+
For detailed API documentation and detailed steps to create your API key for authenticated requests, please visit the [Wallet Developer Hub](https://wall.et/MURcyjCOBfEW) (https://wallet.dev)
|
|
11
10
|
|
|
12
11
|
## Install
|
|
13
12
|
|
|
@@ -24,7 +23,6 @@ npm install # Install ts-node to run typescript examples without transpilation
|
|
|
24
23
|
|
|
25
24
|
## Usage
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
### Create and manipulate Membership Tiers
|
|
29
27
|
|
|
30
28
|
```nodejs
|
|
@@ -107,7 +105,7 @@ async function membershipTiers() {
|
|
|
107
105
|
console.log(tiersList);
|
|
108
106
|
}
|
|
109
107
|
```
|
|
110
|
-
|
|
108
|
+
|
|
111
109
|
### Create and manipulate Payment Designs
|
|
112
110
|
|
|
113
111
|
```nodejs
|
|
@@ -180,7 +178,7 @@ async function paymentDesigns() {
|
|
|
180
178
|
console.log(designs);
|
|
181
179
|
}
|
|
182
180
|
```
|
|
183
|
-
|
|
181
|
+
|
|
184
182
|
### Create and manipulate Club Members
|
|
185
183
|
|
|
186
184
|
```nodejs
|
|
@@ -272,7 +270,7 @@ async function clubMembers() {
|
|
|
272
270
|
console.log(membersCount);
|
|
273
271
|
}
|
|
274
272
|
```
|
|
275
|
-
|
|
273
|
+
|
|
276
274
|
### Create and manipulate Advertisement Credits
|
|
277
275
|
|
|
278
276
|
```nodejs
|
|
@@ -348,7 +346,7 @@ async function advertisementCredits() {
|
|
|
348
346
|
console.log("Active advertisement credits: ", JSON.stringify(adCredit));
|
|
349
347
|
}
|
|
350
348
|
```
|
|
351
|
-
|
|
349
|
+
|
|
352
350
|
### Create and manipulate Link Book Links
|
|
353
351
|
|
|
354
352
|
```nodejs
|
|
@@ -411,7 +409,7 @@ async function linkBook() {
|
|
|
411
409
|
console.log(links);
|
|
412
410
|
}
|
|
413
411
|
```
|
|
414
|
-
|
|
412
|
+
|
|
415
413
|
### Create and manipulate Merchant URLs
|
|
416
414
|
|
|
417
415
|
```nodejs
|
|
@@ -479,7 +477,7 @@ async function merchantURLs() {
|
|
|
479
477
|
console.log(pageViews);
|
|
480
478
|
}
|
|
481
479
|
```
|
|
482
|
-
|
|
480
|
+
|
|
483
481
|
### Create and manipulate News Articles
|
|
484
482
|
|
|
485
483
|
```nodejs
|
|
@@ -543,7 +541,7 @@ async function news() {
|
|
|
543
541
|
console.log(articles);
|
|
544
542
|
}
|
|
545
543
|
```
|
|
546
|
-
|
|
544
|
+
|
|
547
545
|
### Create and manipulate Performances
|
|
548
546
|
|
|
549
547
|
```nodejs
|
|
@@ -611,7 +609,7 @@ async function performances() {
|
|
|
611
609
|
console.log(performances);
|
|
612
610
|
}
|
|
613
611
|
```
|
|
614
|
-
|
|
612
|
+
|
|
615
613
|
### Create and manipulate Promo Codes
|
|
616
614
|
|
|
617
615
|
```nodejs
|
|
@@ -676,7 +674,7 @@ async function promocodes() {
|
|
|
676
674
|
console.log(promocodes);
|
|
677
675
|
}
|
|
678
676
|
```
|
|
679
|
-
|
|
677
|
+
|
|
680
678
|
### Create and manipulate Merchant Credits
|
|
681
679
|
|
|
682
680
|
```nodejs
|
|
@@ -766,7 +764,7 @@ async function merchantCredits() {
|
|
|
766
764
|
console.log(merchantcreditsCount);
|
|
767
765
|
}
|
|
768
766
|
```
|
|
769
|
-
|
|
767
|
+
|
|
770
768
|
### Create and manipulate Dynamic Vouchers
|
|
771
769
|
|
|
772
770
|
```nodejs
|
|
@@ -878,7 +876,7 @@ async function dynamicVouchers() {
|
|
|
878
876
|
console.log(allVouchersReachStats);
|
|
879
877
|
}
|
|
880
878
|
```
|
|
881
|
-
|
|
879
|
+
|
|
882
880
|
### Create and manipulate Static Voucher Campaigns
|
|
883
881
|
|
|
884
882
|
```nodejs
|
|
@@ -1075,7 +1073,7 @@ async function staticVoucherCampaigns() {
|
|
|
1075
1073
|
console.log(campaignWithVoucher);
|
|
1076
1074
|
}
|
|
1077
1075
|
```
|
|
1078
|
-
|
|
1076
|
+
|
|
1079
1077
|
### Create and manipulate Static Vouchers
|
|
1080
1078
|
|
|
1081
1079
|
```nodejs
|
|
@@ -1147,7 +1145,7 @@ async function staticVouchers() {
|
|
|
1147
1145
|
console.log(allVouchersReachStats);
|
|
1148
1146
|
}
|
|
1149
1147
|
```
|
|
1150
|
-
|
|
1148
|
+
|
|
1151
1149
|
### Create and manipulate SMSes
|
|
1152
1150
|
|
|
1153
1151
|
```nodejs
|
|
@@ -1457,4 +1455,3 @@ async function smsExample() {
|
|
|
1457
1455
|
console.log(`Max: ${limits.max}, Sent: ${limits.sent}`);
|
|
1458
1456
|
}
|
|
1459
1457
|
```
|
|
1460
|
-
|
package/api/analyticsApi.ts
CHANGED
package/api/billingApi.ts
CHANGED
|
@@ -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).
|
|
@@ -95,6 +95,144 @@ export class BillingApi {
|
|
|
95
95
|
this.interceptors.push(interceptor);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Fetch add-on products, or 1-time purchase products (non-subscription products)
|
|
101
|
+
* @param productID
|
|
102
|
+
*/
|
|
103
|
+
public async buyAddOn (productID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
104
|
+
const localVarPath = this.basePath + '/v2/billing/products/addOns/{productID}'
|
|
105
|
+
.replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
|
|
106
|
+
let localVarQueryParameters: any = {};
|
|
107
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
108
|
+
const produces = ['application/json'];
|
|
109
|
+
// give precedence to 'application/json'
|
|
110
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
111
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
112
|
+
} else {
|
|
113
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
114
|
+
}
|
|
115
|
+
let localVarFormParams: any = {};
|
|
116
|
+
|
|
117
|
+
// verify required parameter 'productID' is not null or undefined
|
|
118
|
+
if (productID === null || productID === undefined) {
|
|
119
|
+
throw new Error('Required parameter productID was null or undefined when calling buyAddOn.');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
123
|
+
|
|
124
|
+
let localVarUseFormData = false;
|
|
125
|
+
|
|
126
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
127
|
+
method: 'POST',
|
|
128
|
+
qs: localVarQueryParameters,
|
|
129
|
+
headers: localVarHeaderParams,
|
|
130
|
+
uri: localVarPath,
|
|
131
|
+
useQuerystring: this._useQuerystring,
|
|
132
|
+
json: true,
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
let authenticationPromise = Promise.resolve();
|
|
136
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
137
|
+
|
|
138
|
+
let interceptorPromise = authenticationPromise;
|
|
139
|
+
for (const interceptor of this.interceptors) {
|
|
140
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return interceptorPromise.then(() => {
|
|
144
|
+
if (Object.keys(localVarFormParams).length) {
|
|
145
|
+
if (localVarUseFormData) {
|
|
146
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
147
|
+
} else {
|
|
148
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
152
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
153
|
+
if (error) {
|
|
154
|
+
reject(error);
|
|
155
|
+
} else {
|
|
156
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
157
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
158
|
+
resolve({ response: response, body: body });
|
|
159
|
+
} else {
|
|
160
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @summary Buy special offer
|
|
170
|
+
* @param productID
|
|
171
|
+
*/
|
|
172
|
+
public async buySpecialOffer (productID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
173
|
+
const localVarPath = this.basePath + '/v2/billing/products/specialOffers/{productID}'
|
|
174
|
+
.replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
|
|
175
|
+
let localVarQueryParameters: any = {};
|
|
176
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
177
|
+
const produces = ['application/json'];
|
|
178
|
+
// give precedence to 'application/json'
|
|
179
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
180
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
181
|
+
} else {
|
|
182
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
183
|
+
}
|
|
184
|
+
let localVarFormParams: any = {};
|
|
185
|
+
|
|
186
|
+
// verify required parameter 'productID' is not null or undefined
|
|
187
|
+
if (productID === null || productID === undefined) {
|
|
188
|
+
throw new Error('Required parameter productID was null or undefined when calling buySpecialOffer.');
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
192
|
+
|
|
193
|
+
let localVarUseFormData = false;
|
|
194
|
+
|
|
195
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
196
|
+
method: 'POST',
|
|
197
|
+
qs: localVarQueryParameters,
|
|
198
|
+
headers: localVarHeaderParams,
|
|
199
|
+
uri: localVarPath,
|
|
200
|
+
useQuerystring: this._useQuerystring,
|
|
201
|
+
json: true,
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
let authenticationPromise = Promise.resolve();
|
|
205
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
206
|
+
|
|
207
|
+
let interceptorPromise = authenticationPromise;
|
|
208
|
+
for (const interceptor of this.interceptors) {
|
|
209
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return interceptorPromise.then(() => {
|
|
213
|
+
if (Object.keys(localVarFormParams).length) {
|
|
214
|
+
if (localVarUseFormData) {
|
|
215
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
216
|
+
} else {
|
|
217
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
221
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
222
|
+
if (error) {
|
|
223
|
+
reject(error);
|
|
224
|
+
} else {
|
|
225
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
226
|
+
body = ObjectSerializer.deserialize(body, "any");
|
|
227
|
+
resolve({ response: response, body: body });
|
|
228
|
+
} else {
|
|
229
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
}
|
|
98
236
|
/**
|
|
99
237
|
*
|
|
100
238
|
* @summary Cancel billing plan and revert to default
|
|
@@ -226,6 +364,68 @@ export class BillingApi {
|
|
|
226
364
|
});
|
|
227
365
|
});
|
|
228
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @summary Fetch add-on products, or 1-time purchase products (non-subscription products)
|
|
370
|
+
*/
|
|
371
|
+
public async fetchAddOns (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
|
|
372
|
+
const localVarPath = this.basePath + '/v2/billing/products/addOns';
|
|
373
|
+
let localVarQueryParameters: any = {};
|
|
374
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
375
|
+
const produces = ['application/json'];
|
|
376
|
+
// give precedence to 'application/json'
|
|
377
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
378
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
379
|
+
} else {
|
|
380
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
381
|
+
}
|
|
382
|
+
let localVarFormParams: any = {};
|
|
383
|
+
|
|
384
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
385
|
+
|
|
386
|
+
let localVarUseFormData = false;
|
|
387
|
+
|
|
388
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
389
|
+
method: 'GET',
|
|
390
|
+
qs: localVarQueryParameters,
|
|
391
|
+
headers: localVarHeaderParams,
|
|
392
|
+
uri: localVarPath,
|
|
393
|
+
useQuerystring: this._useQuerystring,
|
|
394
|
+
json: true,
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
let authenticationPromise = Promise.resolve();
|
|
398
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
399
|
+
|
|
400
|
+
let interceptorPromise = authenticationPromise;
|
|
401
|
+
for (const interceptor of this.interceptors) {
|
|
402
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
return interceptorPromise.then(() => {
|
|
406
|
+
if (Object.keys(localVarFormParams).length) {
|
|
407
|
+
if (localVarUseFormData) {
|
|
408
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
409
|
+
} else {
|
|
410
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
|
|
414
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
415
|
+
if (error) {
|
|
416
|
+
reject(error);
|
|
417
|
+
} else {
|
|
418
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
419
|
+
body = ObjectSerializer.deserialize(body, "Array<any>");
|
|
420
|
+
resolve({ response: response, body: body });
|
|
421
|
+
} else {
|
|
422
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}
|
|
229
429
|
/**
|
|
230
430
|
*
|
|
231
431
|
* @summary Fetch merchant\'s industry
|
|
@@ -350,6 +550,68 @@ export class BillingApi {
|
|
|
350
550
|
});
|
|
351
551
|
});
|
|
352
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Fetch special offer products
|
|
556
|
+
*/
|
|
557
|
+
public async fetchSpecialOffers (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<any>; }> {
|
|
558
|
+
const localVarPath = this.basePath + '/v2/billing/products/specialOffers';
|
|
559
|
+
let localVarQueryParameters: any = {};
|
|
560
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
561
|
+
const produces = ['application/json'];
|
|
562
|
+
// give precedence to 'application/json'
|
|
563
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
564
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
565
|
+
} else {
|
|
566
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
567
|
+
}
|
|
568
|
+
let localVarFormParams: any = {};
|
|
569
|
+
|
|
570
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
571
|
+
|
|
572
|
+
let localVarUseFormData = false;
|
|
573
|
+
|
|
574
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
575
|
+
method: 'GET',
|
|
576
|
+
qs: localVarQueryParameters,
|
|
577
|
+
headers: localVarHeaderParams,
|
|
578
|
+
uri: localVarPath,
|
|
579
|
+
useQuerystring: this._useQuerystring,
|
|
580
|
+
json: true,
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
let authenticationPromise = Promise.resolve();
|
|
584
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
585
|
+
|
|
586
|
+
let interceptorPromise = authenticationPromise;
|
|
587
|
+
for (const interceptor of this.interceptors) {
|
|
588
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
return interceptorPromise.then(() => {
|
|
592
|
+
if (Object.keys(localVarFormParams).length) {
|
|
593
|
+
if (localVarUseFormData) {
|
|
594
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
595
|
+
} else {
|
|
596
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<any>; }>((resolve, reject) => {
|
|
600
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
601
|
+
if (error) {
|
|
602
|
+
reject(error);
|
|
603
|
+
} else {
|
|
604
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
605
|
+
body = ObjectSerializer.deserialize(body, "Array<any>");
|
|
606
|
+
resolve({ response: response, body: body });
|
|
607
|
+
} else {
|
|
608
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
}
|
|
353
615
|
/**
|
|
354
616
|
*
|
|
355
617
|
* @summary Fetch subscription
|
package/api/configurationApi.ts
CHANGED
package/api/countriesApi.ts
CHANGED
package/api/customerApi.ts
CHANGED
package/api/dashboardApi.ts
CHANGED