wallet 2.1.603 → 2.2.7
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/LICENSE +201 -201
- package/NOTICE +14 -0
- package/README.md +1551 -1530
- package/dist/api/aPIKeysApi.d.ts +70 -70
- package/dist/api/aPIKeysApi.js +379 -379
- package/dist/api/amenitiesApi.d.ts +69 -69
- package/dist/api/amenitiesApi.js +379 -379
- package/dist/api/apis.d.ts +126 -116
- package/dist/api/apis.js +144 -134
- package/dist/api/apis.js.map +1 -1
- package/dist/api/appToPersonA2PRegistrationApi.d.ts +60 -60
- package/dist/api/appToPersonA2PRegistrationApi.js +311 -311
- package/dist/api/appleWalletSubscribersApi.d.ts +42 -42
- package/dist/api/appleWalletSubscribersApi.js +195 -195
- package/dist/api/authenticationApi.d.ts +63 -63
- package/dist/api/authenticationApi.js +311 -311
- package/dist/api/billingPaymentsApi.d.ts +160 -152
- package/dist/api/billingPaymentsApi.js +1009 -952
- package/dist/api/billingPaymentsApi.js.map +1 -1
- package/dist/api/broadcastsApi.d.ts +129 -0
- package/dist/api/broadcastsApi.js +816 -0
- package/dist/api/broadcastsApi.js.map +1 -0
- package/dist/api/clubMembersApi.d.ts +116 -116
- package/dist/api/clubMembersApi.js +681 -681
- package/dist/api/countriesApi.d.ts +35 -35
- package/dist/api/countriesApi.js +128 -128
- package/dist/api/customerApi.d.ts +102 -102
- package/dist/api/customerApi.js +632 -632
- package/dist/api/diningApi.d.ts +69 -69
- package/dist/api/diningApi.js +379 -379
- package/dist/api/dynamicVouchersApi.d.ts +112 -104
- package/dist/api/dynamicVouchersApi.js +691 -631
- package/dist/api/dynamicVouchersApi.js.map +1 -1
- package/dist/api/emailSubscribersApi.d.ts +69 -69
- package/dist/api/emailSubscribersApi.js +385 -385
- package/dist/api/employeesApi.d.ts +155 -399
- package/dist/api/employeesApi.js +974 -2679
- package/dist/api/employeesApi.js.map +1 -1
- package/dist/api/filesDocumentsApi.d.ts +114 -0
- package/dist/api/filesDocumentsApi.js +680 -0
- package/dist/api/filesDocumentsApi.js.map +1 -0
- package/dist/api/galleryApi.d.ts +69 -69
- package/dist/api/galleryApi.js +379 -379
- package/dist/api/gamingApi.d.ts +69 -69
- package/dist/api/gamingApi.js +379 -379
- package/dist/api/helpDeskApi.d.ts +53 -0
- package/dist/api/helpDeskApi.js +258 -0
- package/dist/api/helpDeskApi.js.map +1 -0
- package/dist/api/importExportApi.d.ts +84 -0
- package/dist/api/importExportApi.js +487 -0
- package/dist/api/importExportApi.js.map +1 -0
- package/dist/api/importedListsApi.d.ts +138 -0
- package/dist/api/importedListsApi.js +890 -0
- package/dist/api/importedListsApi.js.map +1 -0
- package/dist/api/industriesApi.d.ts +52 -52
- package/dist/api/industriesApi.js +242 -242
- package/dist/api/infoGenesisReportsApi.d.ts +250 -250
- package/dist/api/infoGenesisReportsApi.js +1742 -1742
- package/dist/api/interactionsApi.d.ts +194 -194
- package/dist/api/interactionsApi.js +1263 -1263
- package/dist/api/loungeApi.d.ts +69 -69
- package/dist/api/loungeApi.js +379 -379
- package/dist/api/membershipTiersApi.d.ts +105 -105
- package/dist/api/membershipTiersApi.js +622 -622
- package/dist/api/merchantApi.d.ts +93 -258
- package/dist/api/merchantApi.js +539 -1744
- package/dist/api/merchantApi.js.map +1 -1
- package/dist/api/merchantCreditsApi.d.ts +116 -116
- package/dist/api/merchantCreditsApi.js +681 -681
- package/dist/api/newsApi.d.ts +69 -69
- package/dist/api/newsApi.js +379 -379
- package/dist/api/openAIApi.d.ts +193 -193
- package/dist/api/openAIApi.js +1245 -1245
- package/dist/api/{dashboardSummariesApi.d.ts → optInListsApi.d.ts} +178 -171
- package/dist/api/{dashboardSummariesApi.js → optInListsApi.js} +1239 -1311
- package/dist/api/optInListsApi.js.map +1 -0
- package/dist/api/paymentDesignsApi.d.ts +77 -77
- package/dist/api/paymentDesignsApi.js +440 -440
- package/dist/api/performancesApi.d.ts +140 -140
- package/dist/api/performancesApi.js +905 -905
- package/dist/api/phoneNumbersApi.d.ts +110 -0
- package/dist/api/phoneNumbersApi.js +684 -0
- package/dist/api/phoneNumbersApi.js.map +1 -0
- package/dist/api/pointOfSaleConfigurationApi.d.ts +69 -69
- package/dist/api/pointOfSaleConfigurationApi.js +379 -379
- package/dist/api/prizesApi.d.ts +86 -86
- package/dist/api/prizesApi.js +501 -501
- package/dist/api/productsApi.d.ts +69 -69
- package/dist/api/productsApi.js +379 -379
- package/dist/api/promotionCodesApi.d.ts +69 -69
- package/dist/api/promotionCodesApi.js +379 -379
- package/dist/api/qRCodeDesignsApi.d.ts +78 -78
- package/dist/api/qRCodeDesignsApi.js +440 -440
- package/dist/api/quickLinksApi.d.ts +78 -78
- package/dist/api/quickLinksApi.js +440 -440
- package/dist/api/quickLinksSectionApi.d.ts +69 -69
- package/dist/api/quickLinksSectionApi.js +379 -379
- package/dist/api/roomRatesApi.d.ts +69 -69
- package/dist/api/roomRatesApi.js +379 -379
- package/dist/api/sMSMessagesApi.d.ts +112 -0
- package/dist/api/sMSMessagesApi.js +774 -0
- package/dist/api/sMSMessagesApi.js.map +1 -0
- package/dist/api/sMSSubscribersApi.d.ts +69 -69
- package/dist/api/sMSSubscribersApi.js +385 -385
- package/dist/api/servicesApi.d.ts +69 -69
- package/dist/api/servicesApi.js +379 -379
- package/dist/api/shopifyTerminalApi.d.ts +51 -51
- package/dist/api/shopifyTerminalApi.js +258 -258
- package/dist/api/shortLinksApi.d.ts +86 -86
- package/dist/api/shortLinksApi.js +501 -501
- package/dist/api/staticVoucherCampaignsApi.d.ts +200 -200
- package/dist/api/staticVoucherCampaignsApi.js +1325 -1325
- package/dist/api/staticVouchersApi.d.ts +78 -78
- package/dist/api/staticVouchersApi.js +449 -449
- package/dist/api/systemApi.d.ts +88 -96
- package/dist/api/systemApi.js +510 -567
- package/dist/api/systemApi.js.map +1 -1
- package/dist/api/ticketsApi.d.ts +70 -70
- package/dist/api/ticketsApi.js +380 -380
- package/dist/api/videosApi.d.ts +79 -69
- package/dist/api/videosApi.js +440 -379
- package/dist/api/videosApi.js.map +1 -1
- package/dist/api/virtualBusinessCardApi.d.ts +86 -86
- package/dist/api/virtualBusinessCardApi.js +501 -501
- package/dist/api/walletConfigurationApi.d.ts +53 -53
- package/dist/api/walletConfigurationApi.js +253 -253
- package/dist/api/walletMobileTerminalApi.d.ts +52 -52
- package/dist/api/walletMobileTerminalApi.js +258 -258
- package/dist/api/walletTransactionLedgerApi.d.ts +36 -36
- package/dist/api/walletTransactionLedgerApi.js +155 -155
- package/dist/api/walletWebTerminalApi.d.ts +51 -51
- package/dist/api/walletWebTerminalApi.js +258 -258
- package/dist/api/wixTerminalApi.d.ts +51 -51
- package/dist/api/wixTerminalApi.js +258 -258
- package/dist/api/wooCommerceTerminalApi.d.ts +51 -51
- package/dist/api/wooCommerceTerminalApi.js +258 -258
- package/dist/api.d.ts +2 -2
- package/dist/api.js +18 -18
- package/dist/model/a2PApplicationSubmission.d.ts +53 -53
- package/dist/model/a2PApplicationSubmission.js +192 -192
- package/dist/model/advertisementCredit.d.ts +24 -24
- package/dist/model/advertisementCredit.js +77 -77
- package/dist/model/advertisementCreditBroadcast.d.ts +37 -37
- package/dist/model/advertisementCreditBroadcast.js +117 -117
- package/dist/model/advertisementCreditScan.d.ts +36 -36
- package/dist/model/advertisementCreditScan.js +127 -127
- package/dist/model/amenity.d.ts +21 -21
- package/dist/model/amenity.js +67 -67
- package/dist/model/amenityId.d.ts +13 -13
- package/dist/model/amenityId.js +11 -11
- package/dist/model/announcement.d.ts +16 -16
- package/dist/model/announcement.js +47 -47
- package/dist/model/applicableTerminals.d.ts +13 -13
- package/dist/model/applicableTerminals.js +11 -11
- package/dist/model/assistant.d.ts +25 -25
- package/dist/model/assistant.js +87 -87
- package/dist/model/authError.d.ts +14 -14
- package/dist/model/authError.js +37 -37
- package/dist/model/availablePhoneNumbersRequest.d.ts +11 -11
- package/dist/model/availablePhoneNumbersRequest.js +22 -22
- package/dist/model/browserDetails.d.ts +14 -14
- package/dist/model/browserDetails.js +37 -37
- package/dist/model/businessClassification.d.ts +6 -6
- package/dist/model/businessClassification.js +10 -10
- package/dist/model/businessIndustry.d.ts +35 -35
- package/dist/model/businessIndustry.js +39 -39
- package/dist/model/businessRegionsOfOperation.d.ts +8 -8
- package/dist/model/businessRegionsOfOperation.js +12 -12
- package/dist/model/businessRegistrationIdentifier.d.ts +12 -12
- package/dist/model/businessRegistrationIdentifier.js +16 -16
- package/dist/model/businessStockExchanges.d.ts +29 -29
- package/dist/model/businessStockExchanges.js +33 -33
- package/dist/model/businessType.d.ts +8 -8
- package/dist/model/businessType.js +12 -12
- package/dist/model/chatCompletionAudio.d.ts +13 -13
- package/dist/model/chatCompletionAudio.js +32 -32
- package/dist/model/chatCompletionMessage.d.ts +22 -22
- package/dist/model/chatCompletionMessage.js +48 -48
- package/dist/model/chatCompletionMessageAudio.d.ts +17 -17
- package/dist/model/chatCompletionMessageAudio.js +32 -32
- package/dist/model/chatCompletionMessageFunctionCall.d.ts +15 -15
- package/dist/model/chatCompletionMessageFunctionCall.js +22 -22
- package/dist/model/chatCompletionMessageToolCall.d.ts +18 -18
- package/dist/model/chatCompletionMessageToolCall.js +33 -33
- package/dist/model/chatCompletionMessageToolCallFunction.d.ts +11 -11
- package/dist/model/chatCompletionMessageToolCallFunction.js +22 -22
- package/dist/model/claimTicketRequest.d.ts +14 -14
- package/dist/model/claimTicketRequest.js +17 -17
- package/dist/model/clickFunnelAmount.d.ts +11 -11
- package/dist/model/clickFunnelAmount.js +22 -22
- package/dist/model/clickFunnelContact.d.ts +53 -53
- package/dist/model/clickFunnelContact.js +227 -227
- package/dist/model/clickFunnelContactProfile.d.ts +44 -44
- package/dist/model/clickFunnelContactProfile.js +187 -187
- package/dist/model/clickFunnelEvent.d.ts +12 -12
- package/dist/model/clickFunnelEvent.js +22 -22
- package/dist/model/clickFunnelOriginalAmount.d.ts +11 -11
- package/dist/model/clickFunnelOriginalAmount.js +22 -22
- package/dist/model/clickFunnelProduct.d.ts +38 -38
- package/dist/model/clickFunnelProduct.js +152 -152
- package/dist/model/clickFunnelPurchase.d.ts +38 -38
- package/dist/model/clickFunnelPurchase.js +137 -137
- package/dist/model/clickFunnelRegistration.d.ts +12 -12
- package/dist/model/clickFunnelRegistration.js +22 -22
- package/dist/model/countClaimedComps200Response.d.ts +15 -15
- package/dist/model/countClaimedComps200Response.js +22 -22
- package/dist/model/createFile200Response.d.ts +16 -16
- package/dist/model/createFile200Response.js +27 -27
- package/dist/model/createRunOnThreadRequest.d.ts +15 -15
- package/dist/model/createRunOnThreadRequest.js +22 -22
- package/dist/model/createStaticVoucherCampaign.d.ts +23 -23
- package/dist/model/createStaticVoucherCampaign.js +77 -77
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +23 -23
- package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +77 -77
- package/dist/model/dashboardWidget.d.ts +25 -25
- package/dist/model/dashboardWidget.js +92 -92
- package/dist/model/dining.d.ts +21 -21
- package/dist/model/dining.js +67 -67
- package/dist/model/document.d.ts +19 -19
- package/dist/model/document.js +62 -62
- package/dist/model/duplicateRowFound.d.ts +14 -14
- package/dist/model/duplicateRowFound.js +37 -37
- package/dist/model/dynamicVoucher.d.ts +46 -46
- package/dist/model/dynamicVoucher.js +177 -177
- package/dist/model/dynamicVoucherBroadcast.d.ts +37 -37
- package/dist/model/dynamicVoucherBroadcast.js +117 -117
- package/dist/model/dynamicVoucherBroadcastListType.d.ts +13 -13
- package/dist/model/dynamicVoucherBroadcastListType.js +11 -11
- package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.d.ts +13 -13
- package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.js +11 -11
- package/dist/model/emailSubscriber.d.ts +18 -18
- package/dist/model/emailSubscriber.js +52 -52
- package/dist/model/employee.d.ts +43 -43
- package/dist/model/employee.js +162 -162
- package/dist/model/employeeAPIKey.d.ts +19 -19
- package/dist/model/employeeAPIKey.js +57 -57
- package/dist/model/employeeActivityLog.d.ts +16 -16
- package/dist/model/employeeActivityLog.js +47 -47
- package/dist/model/employeeAlert.d.ts +19 -19
- package/dist/model/employeeAlert.js +62 -62
- package/dist/model/employeeScheduleStartDay.d.ts +13 -13
- package/dist/model/employeeScheduleStartDay.js +11 -11
- package/dist/model/employeeScheduleStartHour.d.ts +13 -13
- package/dist/model/employeeScheduleStartHour.js +11 -11
- package/dist/model/employeeScheduleStartMeridiem.d.ts +13 -13
- package/dist/model/employeeScheduleStartMeridiem.js +11 -11
- package/dist/model/employeeScheduleStartMinute.d.ts +13 -13
- package/dist/model/employeeScheduleStartMinute.js +11 -11
- package/dist/model/entityTooLarge.d.ts +14 -14
- package/dist/model/entityTooLarge.js +37 -37
- package/dist/model/exportDataFile.d.ts +19 -19
- package/dist/model/exportDataFile.js +62 -62
- package/dist/model/falsumError.d.ts +11 -11
- package/dist/model/falsumError.js +22 -22
- package/dist/model/falsumField.d.ts +12 -12
- package/dist/model/falsumField.js +27 -27
- package/dist/model/feature.d.ts +18 -18
- package/dist/model/feature.js +57 -57
- package/dist/model/fetchAdvertisementCreditScansFromListRequest.d.ts +14 -14
- package/dist/model/fetchAdvertisementCreditScansFromListRequest.js +17 -17
- package/dist/model/fetchAllCountries200ResponseInner.d.ts +17 -17
- package/dist/model/fetchAllCountries200ResponseInner.js +32 -32
- package/dist/model/fetchAllLedgerTransactions200Response.d.ts +17 -17
- package/dist/model/fetchAllLedgerTransactions200Response.js +27 -27
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.d.ts +28 -28
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.js +77 -77
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.d.ts +13 -13
- package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.js +11 -11
- package/dist/model/fetchCustomerTicketsWithTokenRequest.d.ts +15 -15
- package/dist/model/fetchCustomerTicketsWithTokenRequest.js +22 -22
- package/dist/model/fetchDomainsByIndustry200Response.d.ts +20 -20
- package/dist/model/fetchDomainsByIndustry200Response.js +47 -47
- package/dist/model/fetchImportedListRecipientsByPage200Response.d.ts +17 -17
- package/dist/model/fetchImportedListRecipientsByPage200Response.js +27 -27
- package/dist/model/fetchInboundSMSByPage200Response.d.ts +17 -17
- package/dist/model/fetchInboundSMSByPage200Response.js +27 -27
- package/dist/model/fetchIndustry200Response.d.ts +19 -19
- package/dist/model/fetchIndustry200Response.js +37 -37
- package/dist/model/fetchMembersCount200Response.d.ts +14 -14
- package/dist/model/fetchMembersCount200Response.js +17 -17
- package/dist/model/fetchOptInListSubscribersByPage200Response.d.ts +17 -17
- package/dist/model/fetchOptInListSubscribersByPage200Response.js +27 -27
- package/dist/model/fetchOutboundSMSByPage200Response.d.ts +17 -17
- package/dist/model/fetchOutboundSMSByPage200Response.js +27 -27
- package/dist/model/fetchPerformanceTicketsPage200Response.d.ts +16 -16
- package/dist/model/fetchPerformanceTicketsPage200Response.js +22 -22
- package/dist/model/fetchStaticVouchersPage200Response.d.ts +16 -16
- package/dist/model/fetchStaticVouchersPage200Response.js +22 -22
- package/dist/model/forbiddenRequest.d.ts +14 -14
- package/dist/model/forbiddenRequest.js +37 -37
- package/dist/model/foreignKeyDoesNotExist.d.ts +14 -14
- package/dist/model/foreignKeyDoesNotExist.js +37 -37
- package/dist/model/gaming.d.ts +21 -21
- package/dist/model/gaming.js +67 -67
- package/dist/model/helpDeskRequest.d.ts +20 -20
- package/dist/model/helpDeskRequest.js +62 -62
- package/dist/model/imageGrid.d.ts +20 -20
- package/dist/model/imageGrid.js +62 -62
- package/dist/model/importTicketsRequest.d.ts +15 -15
- package/dist/model/importTicketsRequest.js +17 -17
- package/dist/model/importedList.d.ts +18 -18
- package/dist/model/importedList.js +52 -52
- package/dist/model/importedListRecipient.d.ts +18 -18
- package/dist/model/importedListRecipient.js +52 -52
- package/dist/model/inboundSMS.d.ts +46 -46
- package/dist/model/inboundSMS.js +192 -192
- package/dist/model/internalServerError500.d.ts +14 -14
- package/dist/model/internalServerError500.js +37 -37
- package/dist/model/jobPosition.d.ts +9 -9
- package/dist/model/jobPosition.js +13 -13
- package/dist/model/ledgerEntry.d.ts +38 -38
- package/dist/model/ledgerEntry.js +137 -137
- package/dist/model/ledgerEntryParentObjectID.d.ts +13 -13
- package/dist/model/ledgerEntryParentObjectID.js +11 -11
- package/dist/model/ledgerEntryTransactionType.d.ts +13 -13
- package/dist/model/ledgerEntryTransactionType.js +11 -11
- package/dist/model/linkBook.d.ts +21 -21
- package/dist/model/linkBook.js +62 -62
- package/dist/model/linkBookSection.d.ts +17 -17
- package/dist/model/linkBookSection.js +47 -47
- package/dist/model/loginStatus200Response.d.ts +21 -21
- package/dist/model/loginStatus200Response.js +33 -33
- package/dist/model/loginStatus200ResponseAnyOf.d.ts +15 -15
- package/dist/model/loginStatus200ResponseAnyOf.js +22 -22
- package/dist/model/lounge.d.ts +21 -21
- package/dist/model/lounge.js +67 -67
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js +22 -22
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.d.ts +11 -11
- package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js +22 -22
- package/dist/model/mSMemberHistory.d.ts +22 -22
- package/dist/model/mSMemberHistory.js +77 -77
- package/dist/model/mSMemberHistoryPagination.d.ts +12 -12
- package/dist/model/mSMemberHistoryPagination.js +27 -27
- package/dist/model/mSMemberRedemption.d.ts +21 -21
- package/dist/model/mSMemberRedemption.js +62 -62
- package/dist/model/mSMemberRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMemberRedemptionPagination.js +27 -27
- package/dist/model/mSMemberRedemptionRegisterID.d.ts +13 -13
- package/dist/model/mSMemberRedemptionRegisterID.js +11 -11
- package/dist/model/mSMemberRedemptionTransactionType.d.ts +13 -13
- package/dist/model/mSMemberRedemptionTransactionType.js +11 -11
- package/dist/model/mSMembershipTierHistory.d.ts +19 -19
- package/dist/model/mSMembershipTierHistory.js +62 -62
- package/dist/model/mSMembershipTierHistoryPagination.d.ts +12 -12
- package/dist/model/mSMembershipTierHistoryPagination.js +27 -27
- package/dist/model/mSMembershipTierRedemption.d.ts +22 -22
- package/dist/model/mSMembershipTierRedemption.js +67 -67
- package/dist/model/mSMembershipTierRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMembershipTierRedemptionPagination.js +27 -27
- package/dist/model/mSMerchantCreditHistory.d.ts +17 -17
- package/dist/model/mSMerchantCreditHistory.js +52 -52
- package/dist/model/mSMerchantCreditHistoryPagination.d.ts +12 -12
- package/dist/model/mSMerchantCreditHistoryPagination.js +27 -27
- package/dist/model/mSMerchantCreditRedemption.d.ts +21 -21
- package/dist/model/mSMerchantCreditRedemption.js +62 -62
- package/dist/model/mSMerchantCreditRedemptionPagination.d.ts +12 -12
- package/dist/model/mSMerchantCreditRedemptionPagination.js +27 -27
- package/dist/model/mediaFile.d.ts +19 -19
- package/dist/model/mediaFile.js +62 -62
- package/dist/model/member.d.ts +23 -23
- package/dist/model/member.js +82 -82
- package/dist/model/memberSearch.d.ts +19 -19
- package/dist/model/memberSearch.js +47 -47
- package/dist/model/memberSearchSearchKey.d.ts +13 -13
- package/dist/model/memberSearchSearchKey.js +11 -11
- package/dist/model/memberSearchSortKey.d.ts +13 -13
- package/dist/model/memberSearchSortKey.js +11 -11
- package/dist/model/merchant.d.ts +36 -36
- package/dist/model/merchant.js +147 -147
- package/dist/model/merchantCreditSearch.d.ts +13 -13
- package/dist/model/merchantCreditSearch.js +32 -32
- package/dist/model/merchantNotInitialized.d.ts +14 -14
- package/dist/model/merchantNotInitialized.js +37 -37
- package/dist/model/merchantURL.d.ts +17 -17
- package/dist/model/merchantURL.js +47 -47
- package/dist/model/message.d.ts +18 -18
- package/dist/model/message.js +52 -52
- package/dist/model/models.d.ts +453 -445
- package/dist/model/models.js +1441 -1417
- package/dist/model/models.js.map +1 -1
- package/dist/model/moduleError.d.ts +31 -31
- package/dist/model/moduleError.js +122 -122
- package/dist/model/newsArticle.d.ts +21 -21
- package/dist/model/newsArticle.js +67 -67
- package/dist/model/oAIAssistantUpdateParams.d.ts +18 -18
- package/dist/model/oAIAssistantUpdateParams.js +57 -57
- package/dist/model/oAIAssistantUpdateParamsCreateParams.d.ts +18 -18
- package/dist/model/oAIAssistantUpdateParamsCreateParams.js +57 -57
- package/dist/model/optInList.d.ts +28 -28
- package/dist/model/optInList.js +102 -102
- package/dist/model/optInListSource.d.ts +18 -18
- package/dist/model/optInListSource.js +52 -52
- package/dist/model/optInListSubscriber.d.ts +27 -27
- package/dist/model/optInListSubscriber.js +87 -87
- package/dist/model/optInListSubscriberOptInSourceID.d.ts +13 -13
- package/dist/model/optInListSubscriberOptInSourceID.js +11 -11
- package/dist/model/outboundSMS.d.ts +34 -34
- package/dist/model/outboundSMS.js +122 -122
- package/dist/model/outboundSMSPaymentObjectBroadcastID.d.ts +13 -13
- package/dist/model/outboundSMSPaymentObjectBroadcastID.js +11 -11
- package/dist/model/outboundSMSStatus.d.ts +13 -13
- package/dist/model/outboundSMSStatus.js +11 -11
- package/dist/model/paginatedWTMembers.d.ts +12 -12
- package/dist/model/paginatedWTMembers.js +27 -27
- package/dist/model/paginatedWTMerchantCredits.d.ts +12 -12
- package/dist/model/paginatedWTMerchantCredits.js +27 -27
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.d.ts +12 -12
- package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js +27 -27
- package/dist/model/paginationRequestWithSortOptions.d.ts +20 -20
- package/dist/model/paginationRequestWithSortOptions.js +43 -43
- package/dist/model/paginationRequestWithSortOptionsSortOrder.d.ts +13 -13
- package/dist/model/paginationRequestWithSortOptionsSortOrder.js +11 -11
- package/dist/model/paymentDesign.d.ts +30 -30
- package/dist/model/paymentDesign.js +107 -107
- package/dist/model/performance.d.ts +27 -27
- package/dist/model/performance.js +97 -97
- package/dist/model/performance.js.map +1 -1
- package/dist/model/phoneNumber.d.ts +32 -32
- package/dist/model/phoneNumber.js +122 -122
- package/dist/model/phoneNumberCapabilities.d.ts +17 -17
- package/dist/model/phoneNumberCapabilities.js +32 -32
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.d.ts +27 -27
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js +77 -77
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +26 -26
- package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +72 -72
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.d.ts +15 -15
- package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js +22 -22
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.d.ts +15 -15
- package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js +22 -22
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.d.ts +20 -20
- package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js +47 -47
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +25 -25
- package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +72 -72
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.d.ts +15 -15
- package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js +22 -22
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +20 -20
- package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +47 -47
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.d.ts +18 -18
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.js +32 -32
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.d.ts +13 -13
- package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.js +11 -11
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.d.ts +15 -15
- package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js +22 -22
- package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.d.ts +15 -15
- package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.js +22 -22
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.d.ts +17 -17
- package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js +32 -32
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.d.ts +25 -25
- package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js +72 -72
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.d.ts +24 -24
- package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.js +67 -67
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.d.ts +22 -22
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.js +52 -52
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.d.ts +13 -13
- package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.js +11 -11
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.d.ts +27 -27
- package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js +82 -82
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.d.ts +16 -16
- package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js +27 -27
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +36 -36
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +117 -117
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.d.ts +13 -13
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.js +11 -11
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.d.ts +13 -13
- package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.js +11 -11
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.d.ts +19 -19
- package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js +37 -37
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +33 -33
- package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +97 -97
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.d.ts +19 -19
- package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js +37 -37
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +26 -26
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +72 -72
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.d.ts +13 -13
- package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.js +11 -11
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +32 -32
- package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +107 -107
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.d.ts +27 -27
- package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.js +77 -77
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.d.ts +27 -27
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js +77 -77
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.d.ts +13 -13
- package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.js +11 -11
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +38 -38
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +122 -122
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.d.ts +13 -13
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.js +11 -11
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.d.ts +13 -13
- package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.js +11 -11
- package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.d.ts +16 -16
- package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.js +27 -27
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.d.ts +33 -33
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js +92 -92
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.js +11 -11
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.d.ts +13 -13
- package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.js +11 -11
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.d.ts +21 -21
- package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.js +52 -52
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.d.ts +16 -16
- package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js +27 -27
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.d.ts +15 -15
- package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js +22 -22
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.d.ts +19 -19
- package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js +42 -42
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +36 -36
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +102 -102
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.d.ts +13 -13
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.js +11 -11
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.d.ts +13 -13
- package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.js +11 -11
- package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.d.ts +14 -14
- package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.js +17 -17
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +27 -27
- package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +77 -77
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.d.ts +16 -16
- package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js +27 -27
- package/dist/model/plan.d.ts +15 -15
- package/dist/model/plan.js +42 -42
- package/dist/model/portalPage.d.ts +74 -74
- package/dist/model/portalPage.js +78 -78
- package/dist/model/presignedPost.d.ts +12 -12
- package/dist/model/presignedPost.js +22 -22
- package/dist/model/presignedPostFields.d.ts +11 -11
- package/dist/model/presignedPostFields.js +22 -22
- package/dist/model/product.d.ts +17 -17
- package/dist/model/product.js +52 -52
- package/dist/model/productTaxBehavior.d.ts +13 -0
- package/dist/model/productTaxBehavior.js +12 -0
- package/dist/model/productTaxBehavior.js.map +1 -0
- package/dist/model/profileStatuses.d.ts +7 -7
- package/dist/model/profileStatuses.js +11 -11
- package/dist/model/promoCode.d.ts +23 -23
- package/dist/model/promoCode.js +77 -77
- package/dist/model/qRCodeDesign.d.ts +18 -18
- package/dist/model/qRCodeDesign.js +52 -52
- package/dist/model/reachPerformanceStats.d.ts +20 -20
- package/dist/model/reachPerformanceStats.js +67 -67
- package/dist/model/request.d.ts +63 -63
- package/dist/model/request.js +282 -282
- package/dist/model/response.d.ts +16 -16
- package/dist/model/response.js +47 -47
- package/dist/model/role.d.ts +24 -24
- package/dist/model/role.js +87 -87
- package/dist/model/roleAuditLog.d.ts +21 -21
- package/dist/model/roleAuditLog.js +72 -72
- package/dist/model/roomRate.d.ts +21 -21
- package/dist/model/roomRate.js +67 -67
- package/dist/model/sSImportedListRecipientCreateParams.d.ts +11 -11
- package/dist/model/sSImportedListRecipientCreateParams.js +22 -22
- package/dist/model/sSOptInSource.d.ts +17 -17
- package/dist/model/sSOptInSource.js +52 -52
- package/dist/model/sSOutboundStatuses.d.ts +13 -13
- package/dist/model/sSOutboundStatuses.js +11 -11
- package/dist/model/saveMerchantCreditPaymentDesignRequest.d.ts +14 -14
- package/dist/model/saveMerchantCreditPaymentDesignRequest.js +17 -17
- package/dist/model/saveTicketSettingsRequest.d.ts +17 -17
- package/dist/model/saveTicketSettingsRequest.js +32 -32
- package/dist/model/service.d.ts +28 -21
- package/dist/model/service.js +97 -67
- package/dist/model/service.js.map +1 -1
- package/dist/model/setDefaultPaymentMethodRequest.d.ts +14 -14
- package/dist/model/setDefaultPaymentMethodRequest.js +17 -17
- package/dist/model/simpleSMSBroadcast.d.ts +35 -35
- package/dist/model/simpleSMSBroadcast.js +112 -112
- package/dist/model/smsSubscriber.d.ts +16 -16
- package/dist/model/smsSubscriber.js +42 -42
- package/dist/model/sortDirection.d.ts +4 -4
- package/dist/model/sortDirection.js +8 -8
- package/dist/model/staticVoucher.d.ts +45 -45
- package/dist/model/staticVoucher.js +172 -172
- package/dist/model/staticVoucherCampaign.d.ts +36 -36
- package/dist/model/staticVoucherCampaign.js +137 -137
- package/dist/model/staticVoucherCampaignBroadcast.d.ts +34 -34
- package/dist/model/staticVoucherCampaignBroadcast.js +107 -107
- package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.d.ts +13 -13
- package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.js +11 -11
- package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.d.ts +13 -13
- package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.js +11 -11
- package/dist/model/staticVoucherCampaignUpdate.d.ts +19 -19
- package/dist/model/staticVoucherCampaignUpdate.js +57 -57
- package/dist/model/staticVoucherCampaignValueType.d.ts +13 -13
- package/dist/model/staticVoucherCampaignValueType.js +11 -11
- package/dist/model/staticVoucherId.d.ts +13 -13
- package/dist/model/staticVoucherId.js +11 -11
- package/dist/model/status.d.ts +13 -13
- package/dist/model/status.js +11 -11
- package/dist/model/subscriptionFeature.d.ts +18 -18
- package/dist/model/subscriptionFeature.js +57 -57
- package/dist/model/subscriptionPlan.d.ts +18 -16
- package/dist/model/subscriptionPlan.js +52 -47
- package/dist/model/subscriptionPlan.js.map +1 -1
- package/dist/model/subscriptionPlanAnnual.d.ts +15 -0
- package/dist/model/subscriptionPlanAnnual.js +23 -0
- package/dist/model/subscriptionPlanAnnual.js.map +1 -0
- package/dist/model/subscriptionProduct.d.ts +21 -21
- package/dist/model/subscriptionProduct.js +72 -72
- package/dist/model/tcpa.d.ts +17 -17
- package/dist/model/tcpa.js +47 -47
- package/dist/model/thread.d.ts +16 -16
- package/dist/model/thread.js +42 -42
- package/dist/model/ticket.d.ts +30 -30
- package/dist/model/ticket.js +112 -112
- package/dist/model/ticketSortKeys.d.ts +8 -8
- package/dist/model/ticketSortKeys.js +12 -12
- package/dist/model/trustBundleStatuses.d.ts +7 -7
- package/dist/model/trustBundleStatuses.js +11 -11
- package/dist/model/updateEmailNotificationPreferenceRequest.d.ts +14 -14
- package/dist/model/updateEmailNotificationPreferenceRequest.js +17 -17
- package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +23 -23
- package/dist/model/updateStaticVoucherCampaignWithVoucher.js +77 -77
- package/dist/model/vSCampaignGeneratedMessage.d.ts +12 -12
- package/dist/model/vSCampaignGeneratedMessage.js +27 -27
- package/dist/model/vSCampaignGeneratedMessagePagination.d.ts +12 -12
- package/dist/model/vSCampaignGeneratedMessagePagination.js +27 -27
- package/dist/model/vSDynamicVoucherStatus.d.ts +13 -13
- package/dist/model/vSDynamicVoucherStatus.js +11 -11
- package/dist/model/vectorStore.d.ts +16 -16
- package/dist/model/vectorStore.js +42 -42
- package/dist/model/video.d.ts +24 -20
- package/dist/model/video.js +72 -62
- package/dist/model/video.js.map +1 -1
- package/dist/model/videoProvider.d.ts +13 -0
- package/dist/model/videoProvider.js +12 -0
- package/dist/model/videoProvider.js.map +1 -0
- package/dist/model/virtualBusinessCard.d.ts +28 -28
- package/dist/model/virtualBusinessCard.js +102 -102
- package/dist/model/wTA2PApplicationUpdateParams.d.ts +41 -41
- package/dist/model/wTA2PApplicationUpdateParams.js +132 -132
- package/dist/model/wTAdvertisementCredit.d.ts +24 -24
- package/dist/model/wTAdvertisementCredit.js +77 -77
- package/dist/model/wTAdvertisementCreditCreateParams.d.ts +15 -15
- package/dist/model/wTAdvertisementCreditCreateParams.js +37 -37
- package/dist/model/wTAdvertisementCreditScan.d.ts +36 -36
- package/dist/model/wTAdvertisementCreditScan.js +127 -127
- package/dist/model/wTAdvertisementCreditUpdateParams.d.ts +15 -15
- package/dist/model/wTAdvertisementCreditUpdateParams.js +37 -37
- package/dist/model/wTAmenityCreateParams.d.ts +15 -15
- package/dist/model/wTAmenityCreateParams.js +42 -42
- package/dist/model/wTAmenityUpdateParams.d.ts +15 -15
- package/dist/model/wTAmenityUpdateParams.js +42 -42
- package/dist/model/wTAndroidKeystoreResponse.d.ts +11 -11
- package/dist/model/wTAndroidKeystoreResponse.js +22 -22
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.d.ts +15 -15
- package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.js +23 -23
- package/dist/model/wTAuthenticationForgotPassword.d.ts +10 -10
- package/dist/model/wTAuthenticationForgotPassword.js +17 -17
- package/dist/model/wTAuthenticationLoginRequest.d.ts +11 -11
- package/dist/model/wTAuthenticationLoginRequest.js +22 -22
- package/dist/model/wTAuthenticationLoginResponse.d.ts +25 -25
- package/dist/model/wTAuthenticationLoginResponse.js +92 -92
- package/dist/model/wTAuthenticationRegister.d.ts +31 -31
- package/dist/model/wTAuthenticationRegister.js +122 -122
- package/dist/model/wTAuthenticationRequestResetPassword.d.ts +10 -10
- package/dist/model/wTAuthenticationRequestResetPassword.js +17 -17
- package/dist/model/wTAuthenticationResetPassword.d.ts +12 -12
- package/dist/model/wTAuthenticationResetPassword.js +27 -27
- package/dist/model/wTAuthenticationSSOLoginForDiscourse.d.ts +13 -13
- package/dist/model/wTAuthenticationSSOLoginForDiscourse.js +32 -32
- package/dist/model/wTBillingChangePlan.d.ts +10 -10
- package/dist/model/wTBillingChangePlan.js +17 -17
- package/dist/model/wTBillingSavePaymentMethod.d.ts +10 -10
- package/dist/model/wTBillingSavePaymentMethod.js +17 -17
- package/dist/model/wTBillingVerifyPaymentMethodResponse.d.ts +12 -12
- package/dist/model/wTBillingVerifyPaymentMethodResponse.js +22 -22
- package/dist/model/wTCountResult.d.ts +10 -10
- package/dist/model/wTCountResult.js +17 -17
- package/dist/model/wTCustomerSearchByMemberID.d.ts +10 -10
- package/dist/model/wTCustomerSearchByMemberID.js +17 -17
- package/dist/model/wTCustomerSearchByPhoneNumber.d.ts +10 -10
- package/dist/model/wTCustomerSearchByPhoneNumber.js +17 -17
- package/dist/model/wTDiningCreateParams.d.ts +15 -15
- package/dist/model/wTDiningCreateParams.js +42 -42
- package/dist/model/wTDiningUpdateParams.d.ts +15 -15
- package/dist/model/wTDiningUpdateParams.js +42 -42
- package/dist/model/wTDynamicVoucher.d.ts +46 -46
- package/dist/model/wTDynamicVoucher.js +177 -177
- package/dist/model/wTDynamicVoucherCreateParams.d.ts +22 -22
- package/dist/model/wTDynamicVoucherCreateParams.js +72 -72
- package/dist/model/wTDynamicVoucherRedemption.d.ts +35 -35
- package/dist/model/wTDynamicVoucherRedemption.js +122 -122
- package/dist/model/wTDynamicVoucherRedemptionTransactionType.d.ts +13 -13
- package/dist/model/wTDynamicVoucherRedemptionTransactionType.js +11 -11
- package/dist/model/wTDynamicVoucherSummary.d.ts +34 -34
- package/dist/model/wTDynamicVoucherSummary.js +132 -132
- package/dist/model/wTDynamicVoucherSummaryStatus.d.ts +13 -13
- package/dist/model/wTDynamicVoucherSummaryStatus.js +11 -11
- package/dist/model/wTDynamicVoucherUpdateParams.d.ts +22 -22
- package/dist/model/wTDynamicVoucherUpdateParams.js +72 -72
- package/dist/model/wTEmailSubscriberCreateParams.d.ts +12 -12
- package/dist/model/wTEmailSubscriberCreateParams.js +27 -27
- package/dist/model/wTEmailSubscriberCreateParamsWalletUI.d.ts +13 -13
- package/dist/model/wTEmailSubscriberCreateParamsWalletUI.js +32 -32
- package/dist/model/wTEmailSubscriberUpdateParams.d.ts +12 -12
- package/dist/model/wTEmailSubscriberUpdateParams.js +27 -27
- package/dist/model/wTEmployee.d.ts +43 -43
- package/dist/model/wTEmployee.js +162 -162
- package/dist/model/wTEmployeeAPIKey.d.ts +19 -19
- package/dist/model/wTEmployeeAPIKey.js +57 -57
- package/dist/model/wTEmployeeAPIKeyCreateParams.d.ts +11 -11
- package/dist/model/wTEmployeeAPIKeyCreateParams.js +22 -22
- package/dist/model/wTEmployeeAPIKeyUpdateParams.d.ts +11 -11
- package/dist/model/wTEmployeeAPIKeyUpdateParams.js +22 -22
- package/dist/model/wTEmployeeCreate.d.ts +30 -30
- package/dist/model/wTEmployeeCreate.js +97 -97
- package/dist/model/wTEmployeeCreateDocument.d.ts +12 -12
- package/dist/model/wTEmployeeCreateDocument.js +27 -27
- package/dist/model/wTEmployeeCreateMediaFile.d.ts +12 -12
- package/dist/model/wTEmployeeCreateMediaFile.js +27 -27
- package/dist/model/wTEmployeeFileCreate.d.ts +11 -11
- package/dist/model/wTEmployeeFileCreate.js +22 -22
- package/dist/model/wTEmployeeImportRecords.d.ts +11 -11
- package/dist/model/wTEmployeeImportRecords.js +22 -22
- package/dist/model/wTEmployeeNotification.d.ts +14 -14
- package/dist/model/wTEmployeeNotification.js +32 -32
- package/dist/model/wTEmployeeNotificationType.d.ts +13 -13
- package/dist/model/wTEmployeeNotificationType.js +11 -11
- package/dist/model/wTEmployeePeerRoles.d.ts +10 -10
- package/dist/model/wTEmployeePeerRoles.js +17 -17
- package/dist/model/wTEmployeeS3FilePresign.d.ts +13 -13
- package/dist/model/wTEmployeeS3FilePresign.js +27 -27
- package/dist/model/wTEmployeeS3FilePresignContext.d.ts +13 -13
- package/dist/model/wTEmployeeS3FilePresignContext.js +11 -11
- package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.d.ts +16 -16
- package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.js +47 -47
- package/dist/model/wTEmployeeScheduleSimpleSMS.d.ts +16 -16
- package/dist/model/wTEmployeeScheduleSimpleSMS.js +42 -42
- package/dist/model/wTEmployeeScheduleSimpleSMSListType.d.ts +13 -13
- package/dist/model/wTEmployeeScheduleSimpleSMSListType.js +11 -11
- package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.d.ts +14 -14
- package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.js +37 -37
- package/dist/model/wTEmployeeSendHelpDeskResponse.d.ts +12 -12
- package/dist/model/wTEmployeeSendHelpDeskResponse.js +27 -27
- package/dist/model/wTEmployeeUpdate.d.ts +29 -29
- package/dist/model/wTEmployeeUpdate.js +92 -92
- package/dist/model/wTEmployeeUpdateRecords.d.ts +11 -11
- package/dist/model/wTEmployeeUpdateRecords.js +22 -22
- package/dist/model/wTFetchWalletPaymentObjectsWithToken.d.ts +14 -14
- package/dist/model/wTFetchWalletPaymentObjectsWithToken.js +37 -37
- package/dist/model/wTGamingCreateParams.d.ts +15 -15
- package/dist/model/wTGamingCreateParams.js +42 -42
- package/dist/model/wTGamingUpdateParams.d.ts +15 -15
- package/dist/model/wTGamingUpdateParams.js +42 -42
- package/dist/model/wTImageGridCreateParams.d.ts +14 -14
- package/dist/model/wTImageGridCreateParams.js +37 -37
- package/dist/model/wTImageGridUpdateParams.d.ts +14 -14
- package/dist/model/wTImageGridUpdateParams.js +37 -37
- package/dist/model/wTImportedList.d.ts +18 -18
- package/dist/model/wTImportedList.js +52 -52
- package/dist/model/wTImportedListRecipientFromMembershipTierImport.d.ts +13 -13
- package/dist/model/wTImportedListRecipientFromMembershipTierImport.js +27 -27
- package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.d.ts +13 -13
- package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.js +11 -11
- package/dist/model/wTInfoGenesisLookupRequestErrors.d.ts +13 -13
- package/dist/model/wTInfoGenesisLookupRequestErrors.js +32 -32
- package/dist/model/wTInfoGenesisRecordFilterParameters.d.ts +12 -12
- package/dist/model/wTInfoGenesisRecordFilterParameters.js +27 -27
- package/dist/model/wTInfoGenesisRoutingIDs.d.ts +10 -10
- package/dist/model/wTInfoGenesisRoutingIDs.js +17 -17
- package/dist/model/wTInfoGenesisUniquePostingIDs.d.ts +10 -10
- package/dist/model/wTInfoGenesisUniquePostingIDs.js +17 -17
- package/dist/model/wTLocalInstance.d.ts +27 -27
- package/dist/model/wTLocalInstance.js +77 -77
- package/dist/model/wTLoungeCreateParams.d.ts +15 -15
- package/dist/model/wTLoungeCreateParams.js +42 -42
- package/dist/model/wTLoungeUpdateParams.d.ts +15 -15
- package/dist/model/wTLoungeUpdateParams.js +42 -42
- package/dist/model/wTMember.d.ts +23 -23
- package/dist/model/wTMember.js +82 -82
- package/dist/model/wTMemberCreationParams.d.ts +17 -17
- package/dist/model/wTMemberCreationParams.js +52 -52
- package/dist/model/wTMembershipTier.d.ts +20 -20
- package/dist/model/wTMembershipTier.js +62 -62
- package/dist/model/wTMembershipTierCreationParams.d.ts +14 -14
- package/dist/model/wTMembershipTierCreationParams.js +37 -37
- package/dist/model/wTMembershipTierId.d.ts +13 -13
- package/dist/model/wTMembershipTierId.js +11 -11
- package/dist/model/wTMembershipTierUpdateParams.d.ts +14 -14
- package/dist/model/wTMembershipTierUpdateParams.js +37 -37
- package/dist/model/wTMembershipTierWithMemberCount.d.ts +21 -21
- package/dist/model/wTMembershipTierWithMemberCount.js +67 -67
- package/dist/model/wTMerchantCredit.d.ts +19 -19
- package/dist/model/wTMerchantCredit.js +62 -62
- package/dist/model/wTMerchantCreditCreationParams.d.ts +12 -12
- package/dist/model/wTMerchantCreditCreationParams.js +27 -27
- package/dist/model/wTMerchantURLCreate.d.ts +11 -11
- package/dist/model/wTMerchantURLCreate.js +22 -22
- package/dist/model/wTMerchantURLUpdate.d.ts +11 -11
- package/dist/model/wTMerchantURLUpdate.js +22 -22
- package/dist/model/wTMerchantUpdate.d.ts +18 -18
- package/dist/model/wTMerchantUpdate.js +57 -57
- package/dist/model/wTMerchantUpdatePOSIntegration.d.ts +10 -10
- package/dist/model/wTMerchantUpdatePOSIntegration.js +17 -17
- package/dist/model/wTMerchantUpdatePointsOfContact.d.ts +13 -13
- package/dist/model/wTMerchantUpdatePointsOfContact.js +32 -32
- package/dist/model/wTMessageInstance.d.ts +13 -13
- package/dist/model/wTMessageInstance.js +11 -11
- package/dist/model/wTNewsArticleCreateParams.d.ts +15 -15
- package/dist/model/wTNewsArticleCreateParams.js +42 -42
- package/dist/model/wTNewsArticleUpdateParams.d.ts +15 -15
- package/dist/model/wTNewsArticleUpdateParams.js +42 -42
- package/dist/model/wTOptInList.d.ts +28 -28
- package/dist/model/wTOptInList.js +102 -102
- package/dist/model/wTOptInListCreationParams.d.ts +22 -22
- package/dist/model/wTOptInListCreationParams.js +77 -77
- package/dist/model/wTPassBrandKit.d.ts +15 -15
- package/dist/model/wTPassBrandKit.js +42 -42
- package/dist/model/wTPaymentDesign.d.ts +30 -30
- package/dist/model/wTPaymentDesign.js +107 -107
- package/dist/model/wTPaymentDesignCreateParams.d.ts +23 -23
- package/dist/model/wTPaymentDesignCreateParams.js +77 -77
- package/dist/model/wTPaymentDesignUpdateParams.d.ts +23 -23
- package/dist/model/wTPaymentDesignUpdateParams.js +77 -77
- package/dist/model/wTPerformanceCreateParams.d.ts +21 -21
- package/dist/model/wTPerformanceCreateParams.js +72 -72
- package/dist/model/wTPerformanceCreateParams.js.map +1 -1
- package/dist/model/wTPerformanceUpdateParams.d.ts +21 -21
- package/dist/model/wTPerformanceUpdateParams.js +72 -72
- package/dist/model/wTPerformanceUpdateParams.js.map +1 -1
- package/dist/model/wTPosMachine.d.ts +19 -19
- package/dist/model/wTPosMachine.js +62 -62
- package/dist/model/wTPosMachine.js.map +1 -1
- package/dist/model/wTPosMachineCreateParams.d.ts +14 -14
- package/dist/model/wTPosMachineCreateParams.js +37 -37
- package/dist/model/wTPosMachineCreateParams.js.map +1 -1
- package/dist/model/wTPosMachineUpdateParams.d.ts +14 -14
- package/dist/model/wTPosMachineUpdateParams.js +37 -37
- package/dist/model/wTPosMachineUpdateParams.js.map +1 -1
- package/dist/model/wTProductCreateParams.d.ts +20 -15
- package/dist/model/wTProductCreateParams.js +62 -42
- package/dist/model/wTProductCreateParams.js.map +1 -1
- package/dist/model/wTProductUpdateParams.d.ts +20 -15
- package/dist/model/wTProductUpdateParams.js +62 -42
- package/dist/model/wTProductUpdateParams.js.map +1 -1
- package/dist/model/wTPromoCodeCreateParams.d.ts +17 -17
- package/dist/model/wTPromoCodeCreateParams.js +52 -52
- package/dist/model/wTPromoCodeUpdateParams.d.ts +17 -17
- package/dist/model/wTPromoCodeUpdateParams.js +52 -52
- package/dist/model/wTQRCodeDesign.d.ts +18 -18
- package/dist/model/wTQRCodeDesign.js +52 -52
- package/dist/model/wTQRCodeDesignCreateParams.d.ts +12 -12
- package/dist/model/wTQRCodeDesignCreateParams.js +27 -27
- package/dist/model/wTQRCodeDesignUpdateParams.d.ts +12 -12
- package/dist/model/wTQRCodeDesignUpdateParams.js +27 -27
- package/dist/model/wTQuickLink.d.ts +21 -21
- package/dist/model/wTQuickLink.js +62 -62
- package/dist/model/wTQuickLinkCreateParams.d.ts +15 -15
- package/dist/model/wTQuickLinkCreateParams.js +37 -37
- package/dist/model/wTQuickLinkLinkBookSectionID.d.ts +13 -13
- package/dist/model/wTQuickLinkLinkBookSectionID.js +11 -11
- package/dist/model/wTQuickLinkSectionCreateParams.d.ts +11 -11
- package/dist/model/wTQuickLinkSectionCreateParams.js +22 -22
- package/dist/model/wTQuickLinkSectionUpdateParams.d.ts +11 -11
- package/dist/model/wTQuickLinkSectionUpdateParams.js +22 -22
- package/dist/model/wTQuickLinkUpdateParams.d.ts +15 -15
- package/dist/model/wTQuickLinkUpdateParams.js +37 -37
- package/dist/model/wTRole.d.ts +24 -24
- package/dist/model/wTRole.js +87 -87
- package/dist/model/wTRoomRateCreateParams.d.ts +15 -15
- package/dist/model/wTRoomRateCreateParams.js +42 -42
- package/dist/model/wTRoomRateUpdateParams.d.ts +15 -15
- package/dist/model/wTRoomRateUpdateParams.js +42 -42
- package/dist/model/wTSMSAcquirePhoneNumber.d.ts +10 -10
- package/dist/model/wTSMSAcquirePhoneNumber.js +17 -17
- package/dist/model/wTSMSImportOptInListSubscribers.d.ts +12 -12
- package/dist/model/wTSMSImportOptInListSubscribers.js +27 -27
- package/dist/model/wTSMSImportedListCreate.d.ts +12 -12
- package/dist/model/wTSMSImportedListCreate.js +27 -27
- package/dist/model/wTSMSOptInListSourceCreate.d.ts +11 -11
- package/dist/model/wTSMSOptInListSourceCreate.js +22 -22
- package/dist/model/wTSMSUpdatePhoneNumberConfig.d.ts +21 -21
- package/dist/model/wTSMSUpdatePhoneNumberConfig.js +72 -72
- package/dist/model/wTServiceCreateParams.d.ts +20 -15
- package/dist/model/wTServiceCreateParams.js +62 -42
- package/dist/model/wTServiceCreateParams.js.map +1 -1
- package/dist/model/wTServiceUpdateParams.d.ts +20 -15
- package/dist/model/wTServiceUpdateParams.js +62 -42
- package/dist/model/wTServiceUpdateParams.js.map +1 -1
- package/dist/model/wTSettingsSetPassword.d.ts +10 -10
- package/dist/model/wTSettingsSetPassword.js +17 -17
- package/dist/model/wTSmsSubscriberCreateParams.d.ts +10 -10
- package/dist/model/wTSmsSubscriberCreateParams.js +17 -17
- package/dist/model/wTSmsSubscriberCreateParamsWalletUI.d.ts +11 -11
- package/dist/model/wTSmsSubscriberCreateParamsWalletUI.js +22 -22
- package/dist/model/wTSmsSubscriberUpdateParams.d.ts +10 -10
- package/dist/model/wTSmsSubscriberUpdateParams.js +17 -17
- package/dist/model/wTStaticVoucher.d.ts +45 -45
- package/dist/model/wTStaticVoucher.js +172 -172
- package/dist/model/wTStaticVoucherCampaign.d.ts +36 -36
- package/dist/model/wTStaticVoucherCampaign.js +137 -137
- package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.d.ts +14 -14
- package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.js +37 -37
- package/dist/model/wTStaticVoucherCreateParams.d.ts +14 -14
- package/dist/model/wTStaticVoucherCreateParams.js +32 -32
- package/dist/model/wTStaticVoucherUpdateParams.d.ts +12 -12
- package/dist/model/wTStaticVoucherUpdateParams.js +27 -27
- package/dist/model/wTSystemApprovePhoneNumber.d.ts +11 -11
- package/dist/model/wTSystemApprovePhoneNumber.js +22 -22
- package/dist/model/wTSystemRoleCreate.d.ts +11 -11
- package/dist/model/wTSystemRoleCreate.js +22 -22
- package/dist/model/wTTCPAOpt.d.ts +14 -14
- package/dist/model/wTTCPAOpt.js +27 -27
- package/dist/model/wTTCPAOptListID.d.ts +13 -13
- package/dist/model/wTTCPAOptListID.js +11 -11
- package/dist/model/wTTCPAOptSourceID.d.ts +13 -13
- package/dist/model/wTTCPAOptSourceID.js +11 -11
- package/dist/model/wTTicket.d.ts +30 -30
- package/dist/model/wTTicket.js +112 -112
- package/dist/model/wTTicketCreateParams.d.ts +15 -15
- package/dist/model/wTTicketCreateParams.js +42 -42
- package/dist/model/wTTicketUpdateParams.d.ts +14 -14
- package/dist/model/wTTicketUpdateParams.js +37 -37
- package/dist/model/wTTwilioRequestAuthyCode.d.ts +11 -11
- package/dist/model/wTTwilioRequestAuthyCode.js +22 -22
- package/dist/model/wTTwilioVerifyAuthyCode.d.ts +12 -12
- package/dist/model/wTTwilioVerifyAuthyCode.js +27 -27
- package/dist/model/wTVideoCreateParams.d.ts +16 -14
- package/dist/model/wTVideoCreateParams.js +42 -37
- package/dist/model/wTVideoCreateParams.js.map +1 -1
- package/dist/model/wTVideoPlaybackSource.d.ts +12 -0
- package/dist/model/wTVideoPlaybackSource.js +23 -0
- package/dist/model/wTVideoPlaybackSource.js.map +1 -0
- package/dist/model/wTVideoPlaybackSourceType.d.ts +13 -0
- package/dist/model/wTVideoPlaybackSourceType.js +12 -0
- package/dist/model/wTVideoPlaybackSourceType.js.map +1 -0
- package/dist/model/wTVideoUpdateParams.d.ts +13 -14
- package/dist/model/wTVideoUpdateParams.js +32 -37
- package/dist/model/wTVideoUpdateParams.js.map +1 -1
- package/dist/model/wTVideoUploadProvision.d.ts +14 -0
- package/dist/model/wTVideoUploadProvision.js +33 -0
- package/dist/model/wTVideoUploadProvision.js.map +1 -0
- package/dist/model/wTVideoUploadProvisionParams.d.ts +12 -0
- package/dist/model/wTVideoUploadProvisionParams.js +28 -0
- package/dist/model/wTVideoUploadProvisionParams.js.map +1 -0
- package/dist/model/wTVideoUploadProvisionProvider.d.ts +13 -0
- package/dist/model/wTVideoUploadProvisionProvider.js +12 -0
- package/dist/model/wTVideoUploadProvisionProvider.js.map +1 -0
- package/dist/model/wTVirtualBusinessCardCreateParams.d.ts +22 -22
- package/dist/model/wTVirtualBusinessCardCreateParams.js +77 -77
- package/dist/model/wTVirtualBusinessCardUpdateParams.d.ts +22 -22
- package/dist/model/wTVirtualBusinessCardUpdateParams.js +77 -77
- package/dist/model/wTWalletConfigurationSaveWalletRecord.d.ts +86 -86
- package/dist/model/wTWalletConfigurationSaveWalletRecord.js +387 -387
- package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.d.ts +19 -19
- package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.js +42 -42
- package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.d.ts +13 -13
- package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.js +11 -11
- package/dist/model/wTWalletItemRedemption.d.ts +12 -12
- package/dist/model/wTWalletItemRedemption.js +27 -27
- package/dist/model/wTWalletObjectPrefixCounts.d.ts +12 -12
- package/dist/model/wTWalletObjectPrefixCounts.js +27 -27
- package/dist/model/wTWalletObjectPrefixCounts.js.map +1 -1
- package/dist/model/wTWalletPageView.d.ts +49 -49
- package/dist/model/wTWalletPageView.js +207 -207
- package/dist/model/wTWalletPageViewCount.d.ts +13 -13
- package/dist/model/wTWalletPageViewCount.js +32 -32
- package/dist/model/wTWalletPageViewCount.js.map +1 -1
- package/dist/model/wTWalletPageViewGeoPoint.d.ts +15 -15
- package/dist/model/wTWalletPageViewGeoPoint.js +22 -22
- package/dist/model/wTWhatsAppInboundWebhook.d.ts +23 -23
- package/dist/model/wTWhatsAppInboundWebhook.js +82 -82
- package/dist/model/wTWhatsAppStatusCallback.d.ts +20 -20
- package/dist/model/wTWhatsAppStatusCallback.js +67 -67
- package/dist/model/walletConfiguration.d.ts +91 -91
- package/dist/model/walletConfiguration.js +412 -412
- package/dist/model/walletPageView.d.ts +49 -49
- package/dist/model/walletPageView.js +207 -207
- package/dist/model/webpage.d.ts +19 -19
- package/dist/model/webpage.js +62 -62
- package/package.json +1 -1
- package/.github/workflows/ci.yml +0 -163
- package/.openapi-generator/FILES +0 -460
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -27
- package/api/aPIKeysApi.ts +0 -448
- package/api/amenitiesApi.ts +0 -447
- package/api/analyticsApi.ts +0 -7516
- package/api/apis.ts +0 -118
- package/api/appToPersonA2PRegistrationApi.ts +0 -365
- package/api/appleWalletSubscribersApi.ts +0 -235
- package/api/authenticationApi.ts +0 -368
- package/api/billingPaymentsApi.ts +0 -1075
- package/api/clubMembersApi.ts +0 -797
- package/api/countriesApi.ts +0 -155
- package/api/customerApi.ts +0 -737
- package/api/dashboardSummariesApi.ts +0 -1566
- package/api/defaultApi.ts +0 -1571
- package/api/diningApi.ts +0 -447
- package/api/dynamicVouchersApi.ts +0 -742
- package/api/emailSubscribersApi.ts +0 -457
- package/api/employeesApi.ts +0 -3064
- package/api/galleryApi.ts +0 -447
- package/api/gamingApi.ts +0 -447
- package/api/industriesApi.ts +0 -280
- package/api/infoGenesisReportsApi.ts +0 -2004
- package/api/interactionsApi.ts +0 -1475
- package/api/loungeApi.ts +0 -447
- package/api/membershipTiersApi.ts +0 -728
- package/api/merchantApi.ts +0 -2012
- package/api/merchantCreditsApi.ts +0 -797
- package/api/newsApi.ts +0 -447
- package/api/openAIApi.ts +0 -1439
- package/api/paymentDesignsApi.ts +0 -519
- package/api/performancesApi.ts +0 -1070
- package/api/pointOfSaleConfigurationApi.ts +0 -447
- package/api/prizesApi.ts +0 -589
- package/api/productsApi.ts +0 -447
- package/api/promotionCodesApi.ts +0 -447
- package/api/qRCodeDesignsApi.ts +0 -520
- package/api/quickLinksApi.ts +0 -517
- package/api/quickLinksSectionApi.ts +0 -447
- package/api/roomRatesApi.ts +0 -447
- package/api/sMSOperationsApi.ts +0 -2913
- package/api/sMSSubscribersApi.ts +0 -457
- package/api/servicesApi.ts +0 -447
- package/api/shopifyTerminalApi.ts +0 -309
- package/api/shortLinksApi.ts +0 -586
- package/api/staticVoucherCampaignsApi.ts +0 -1545
- package/api/staticVouchersApi.ts +0 -535
- package/api/systemApi.ts +0 -665
- package/api/ticketsApi.ts +0 -451
- package/api/videosApi.ts +0 -447
- package/api/virtualBusinessCardApi.ts +0 -586
- package/api/walletConfigurationApi.ts +0 -302
- package/api/walletMobileTerminalApi.ts +0 -310
- package/api/walletTransactionLedgerApi.ts +0 -203
- package/api/walletWebTerminalApi.ts +0 -309
- package/api/wixTerminalApi.ts +0 -309
- package/api/wooCommerceTerminalApi.ts +0 -309
- package/api.ts +0 -3
- package/dist/api/analyticsApi.d.ts +0 -707
- package/dist/api/analyticsApi.js +0 -6182
- package/dist/api/analyticsApi.js.map +0 -1
- package/dist/api/dashboardSummariesApi.js.map +0 -1
- package/dist/api/defaultApi.d.ts +0 -253
- package/dist/api/defaultApi.js +0 -1414
- package/dist/api/defaultApi.js.map +0 -1
- package/dist/api/sMSOperationsApi.d.ts +0 -345
- package/dist/api/sMSOperationsApi.js +0 -2474
- package/dist/api/sMSOperationsApi.js.map +0 -1
- package/dist/examples/advertisementcredits.example.d.ts +0 -1
- package/dist/examples/advertisementcredits.example.js +0 -87
- package/dist/examples/advertisementcredits.example.js.map +0 -1
- package/dist/examples/clubmembers.example.d.ts +0 -1
- package/dist/examples/clubmembers.example.js +0 -96
- package/dist/examples/clubmembers.example.js.map +0 -1
- package/dist/examples/constants.d.ts +0 -6
- package/dist/examples/constants.js +0 -10
- package/dist/examples/constants.js.map +0 -1
- package/dist/examples/dynamicvouchers.example.d.ts +0 -1
- package/dist/examples/dynamicvouchers.example.js +0 -114
- package/dist/examples/dynamicvouchers.example.js.map +0 -1
- package/dist/examples/linkbook.example.d.ts +0 -1
- package/dist/examples/linkbook.example.js +0 -76
- package/dist/examples/linkbook.example.js.map +0 -1
- package/dist/examples/membershiptiers.example.d.ts +0 -1
- package/dist/examples/membershiptiers.example.js +0 -90
- package/dist/examples/membershiptiers.example.js.map +0 -1
- package/dist/examples/merchantcredits.example.d.ts +0 -1
- package/dist/examples/merchantcredits.example.js +0 -93
- package/dist/examples/merchantcredits.example.js.map +0 -1
- package/dist/examples/merchanturls.example.d.ts +0 -1
- package/dist/examples/merchanturls.example.js +0 -77
- package/dist/examples/merchanturls.example.js.map +0 -1
- package/dist/examples/news.example.d.ts +0 -1
- package/dist/examples/news.example.js +0 -76
- package/dist/examples/news.example.js.map +0 -1
- package/dist/examples/paymentdesigns.example.d.ts +0 -1
- package/dist/examples/paymentdesigns.example.js +0 -84
- package/dist/examples/paymentdesigns.example.js.map +0 -1
- package/dist/examples/performances.example.d.ts +0 -1
- package/dist/examples/performances.example.js +0 -79
- package/dist/examples/performances.example.js.map +0 -1
- package/dist/examples/promocodes.example.d.ts +0 -1
- package/dist/examples/promocodes.example.js +0 -78
- package/dist/examples/promocodes.example.js.map +0 -1
- package/dist/examples/sms.example.d.ts +0 -1
- package/dist/examples/sms.example.js +0 -268
- package/dist/examples/sms.example.js.map +0 -1
- package/dist/examples/staticvouchercampaigns.example.d.ts +0 -1
- package/dist/examples/staticvouchercampaigns.example.js +0 -170
- package/dist/examples/staticvouchercampaigns.example.js.map +0 -1
- package/dist/examples/staticvouchers.example.d.ts +0 -1
- package/dist/examples/staticvouchers.example.js +0 -82
- package/dist/examples/staticvouchers.example.js.map +0 -1
- package/examples/advertisementcredits.example.ts +0 -71
- package/examples/clubmembers.example.ts +0 -87
- package/examples/constants.ts +0 -6
- package/examples/dynamicvouchers.example.ts +0 -107
- package/examples/linkbook.example.ts +0 -58
- package/examples/membershiptiers.example.ts +0 -78
- package/examples/merchantcredits.example.ts +0 -85
- package/examples/merchanturls.example.ts +0 -63
- package/examples/news.example.ts +0 -59
- package/examples/package-lock.json +0 -2108
- package/examples/package.json +0 -18
- package/examples/paymentdesigns.example.ts +0 -68
- package/examples/performances.example.ts +0 -63
- package/examples/promocodes.example.ts +0 -60
- package/examples/sms.example.ts +0 -305
- package/examples/staticvouchercampaigns.example.ts +0 -192
- package/examples/staticvouchers.example.ts +0 -67
- package/git_push.sh +0 -57
- package/model/a2PApplicationSubmission.ts +0 -249
- package/model/advertisementCredit.ts +0 -105
- package/model/advertisementCreditBroadcast.ts +0 -158
- package/model/advertisementCreditScan.ts +0 -167
- package/model/amenity.ts +0 -92
- package/model/amenityId.ts +0 -26
- package/model/announcement.ts +0 -67
- package/model/applicableTerminals.ts +0 -26
- package/model/assistant.ts +0 -116
- package/model/authError.ts +0 -55
- package/model/availablePhoneNumbersRequest.ts +0 -43
- package/model/browserDetails.ts +0 -55
- package/model/businessClassification.ts +0 -20
- package/model/businessIndustry.ts +0 -49
- package/model/businessRegionsOfOperation.ts +0 -22
- package/model/businessRegistrationIdentifier.ts +0 -26
- package/model/businessStockExchanges.ts +0 -43
- package/model/businessType.ts +0 -22
- package/model/chatCompletionAudio.ts +0 -64
- package/model/chatCompletionMessage.ts +0 -83
- package/model/chatCompletionMessageAudio.ts +0 -65
- package/model/chatCompletionMessageFunctionCall.ts +0 -43
- package/model/chatCompletionMessageToolCall.ts +0 -58
- package/model/chatCompletionMessageToolCallFunction.ts +0 -46
- package/model/claimTicketRequest.ts +0 -31
- package/model/clickFunnelAmount.ts +0 -37
- package/model/clickFunnelContact.ts +0 -284
- package/model/clickFunnelContactProfile.ts +0 -235
- package/model/clickFunnelEvent.ts +0 -38
- package/model/clickFunnelOriginalAmount.ts +0 -37
- package/model/clickFunnelProduct.ts +0 -194
- package/model/clickFunnelPurchase.ts +0 -177
- package/model/clickFunnelRegistration.ts +0 -38
- package/model/countClaimedComps200Response.ts +0 -37
- package/model/createFile200Response.ts +0 -43
- package/model/createRunOnThreadRequest.ts +0 -37
- package/model/createStaticVoucherCampaign.ts +0 -104
- package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +0 -104
- package/model/dashboardWidget.ts +0 -121
- package/model/dining.ts +0 -92
- package/model/document.ts +0 -100
- package/model/duplicateRowFound.ts +0 -55
- package/model/dynamicVoucher.ts +0 -227
- package/model/dynamicVoucherBroadcast.ts +0 -158
- package/model/dynamicVoucherBroadcastListType.ts +0 -26
- package/model/dynamicVoucherTemporalDecreaseFrequencyType.ts +0 -26
- package/model/emailSubscriber.ts +0 -74
- package/model/employee.ts +0 -212
- package/model/employeeAPIKey.ts +0 -83
- package/model/employeeActivityLog.ts +0 -67
- package/model/employeeAlert.ts +0 -85
- package/model/employeeScheduleStartDay.ts +0 -26
- package/model/employeeScheduleStartHour.ts +0 -26
- package/model/employeeScheduleStartMeridiem.ts +0 -26
- package/model/employeeScheduleStartMinute.ts +0 -26
- package/model/entityTooLarge.ts +0 -55
- package/model/exportDataFile.ts +0 -85
- package/model/falsumError.ts +0 -40
- package/model/falsumField.ts +0 -55
- package/model/feature.ts +0 -79
- package/model/fetchAdvertisementCreditScansFromListRequest.ts +0 -31
- package/model/fetchAllCountries200ResponseInner.ts +0 -49
- package/model/fetchAllLedgerTransactions200Response.ts +0 -44
- package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.ts +0 -105
- package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.ts +0 -26
- package/model/fetchCustomerTicketsWithTokenRequest.ts +0 -37
- package/model/fetchDomainsByIndustry200Response.ts +0 -67
- package/model/fetchImportedListRecipientsByPage200Response.ts +0 -44
- package/model/fetchInboundSMSByPage200Response.ts +0 -44
- package/model/fetchIndustry200Response.ts +0 -56
- package/model/fetchMembersCount200Response.ts +0 -31
- package/model/fetchOptInListSubscribersByPage200Response.ts +0 -44
- package/model/fetchOutboundSMSByPage200Response.ts +0 -44
- package/model/fetchPerformanceTicketsPage200Response.ts +0 -38
- package/model/fetchStaticVouchersPage200Response.ts +0 -38
- package/model/forbiddenRequest.ts +0 -55
- package/model/foreignKeyDoesNotExist.ts +0 -55
- package/model/gaming.ts +0 -92
- package/model/helpDeskRequest.ts +0 -86
- package/model/imageGrid.ts +0 -86
- package/model/importTicketsRequest.ts +0 -32
- package/model/importedList.ts +0 -74
- package/model/importedListRecipient.ts +0 -74
- package/model/inboundSMS.ts +0 -242
- package/model/internalServerError500.ts +0 -55
- package/model/jobPosition.ts +0 -23
- package/model/ledgerEntry.ts +0 -179
- package/model/ledgerEntryParentObjectID.ts +0 -26
- package/model/ledgerEntryTransactionType.ts +0 -26
- package/model/linkBook.ts +0 -87
- package/model/linkBookSection.ts +0 -68
- package/model/loginStatus200Response.ts +0 -50
- package/model/loginStatus200ResponseAnyOf.ts +0 -37
- package/model/lounge.ts +0 -92
- package/model/mSAnalyticsMemberCountPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +0 -43
- package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +0 -43
- package/model/mSMemberHistory.ts +0 -127
- package/model/mSMemberHistoryPagination.ts +0 -52
- package/model/mSMemberRedemption.ts +0 -105
- package/model/mSMemberRedemptionPagination.ts +0 -52
- package/model/mSMemberRedemptionRegisterID.ts +0 -29
- package/model/mSMemberRedemptionTransactionType.ts +0 -29
- package/model/mSMembershipTierHistory.ts +0 -106
- package/model/mSMembershipTierHistoryPagination.ts +0 -52
- package/model/mSMembershipTierRedemption.ts +0 -117
- package/model/mSMembershipTierRedemptionPagination.ts +0 -52
- package/model/mSMerchantCreditHistory.ts +0 -88
- package/model/mSMerchantCreditHistoryPagination.ts +0 -52
- package/model/mSMerchantCreditRedemption.ts +0 -105
- package/model/mSMerchantCreditRedemptionPagination.ts +0 -52
- package/model/mediaFile.ts +0 -100
- package/model/member.ts +0 -133
- package/model/memberSearch.ts +0 -82
- package/model/memberSearchSearchKey.ts +0 -29
- package/model/memberSearchSortKey.ts +0 -29
- package/model/merchant.ts +0 -187
- package/model/merchantCreditSearch.ts +0 -61
- package/model/merchantNotInitialized.ts +0 -55
- package/model/merchantURL.ts +0 -68
- package/model/message.ts +0 -74
- package/model/models.ts +0 -1421
- package/model/moduleError.ts +0 -157
- package/model/newsArticle.ts +0 -92
- package/model/oAIAssistantUpdateParams.ts +0 -79
- package/model/oAIAssistantUpdateParamsCreateParams.ts +0 -79
- package/model/optInList.ts +0 -134
- package/model/optInListSource.ts +0 -74
- package/model/optInListSubscriber.ts +0 -118
- package/model/optInListSubscriberOptInSourceID.ts +0 -26
- package/model/outboundSMS.ts +0 -160
- package/model/outboundSMSPaymentObjectBroadcastID.ts +0 -26
- package/model/outboundSMSStatus.ts +0 -26
- package/model/paginatedWTMembers.ts +0 -52
- package/model/paginatedWTMerchantCredits.ts +0 -52
- package/model/paginationRequestWithIDAndWithoutSortOptions.ts +0 -49
- package/model/paginationRequestWithSortOptions.ts +0 -73
- package/model/paginationRequestWithSortOptionsSortOrder.ts +0 -29
- package/model/paymentDesign.ts +0 -141
- package/model/performance.ts +0 -134
- package/model/phoneNumber.ts +0 -158
- package/model/phoneNumberCapabilities.ts +0 -49
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts +0 -107
- package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +0 -101
- package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +0 -40
- package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +0 -40
- package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +0 -82
- package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +0 -121
- package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +0 -43
- package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +0 -82
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +0 -62
- package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.ts +0 -29
- package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +0 -46
- package/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.ts +0 -40
- package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +0 -52
- package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +0 -100
- package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.ts +0 -94
- package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.ts +0 -77
- package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.ts +0 -26
- package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +0 -112
- package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +0 -46
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +0 -156
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.ts +0 -26
- package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.ts +0 -26
- package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +0 -59
- package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +0 -133
- package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +0 -59
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +0 -101
- package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.ts +0 -26
- package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +0 -142
- package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.ts +0 -107
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +0 -107
- package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.ts +0 -26
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +0 -163
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.ts +0 -29
- package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.ts +0 -29
- package/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.ts +0 -46
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +0 -128
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.ts +0 -26
- package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.ts +0 -26
- package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.ts +0 -91
- package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +0 -52
- package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +0 -40
- package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +0 -64
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +0 -141
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.ts +0 -26
- package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.ts +0 -26
- package/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.ts +0 -34
- package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +0 -107
- package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +0 -46
- package/model/plan.ts +0 -61
- package/model/portalPage.ts +0 -88
- package/model/presignedPost.ts +0 -44
- package/model/presignedPostFields.ts +0 -43
- package/model/product.ts +0 -73
- package/model/profileStatuses.ts +0 -21
- package/model/promoCode.ts +0 -104
- package/model/qRCodeDesign.ts +0 -80
- package/model/reachPerformanceStats.ts +0 -124
- package/model/request.ts +0 -349
- package/model/response.ts +0 -67
- package/model/role.ts +0 -115
- package/model/roleAuditLog.ts +0 -97
- package/model/roomRate.ts +0 -92
- package/model/sSImportedListRecipientCreateParams.ts +0 -37
- package/model/sSOptInSource.ts +0 -73
- package/model/sSOutboundStatuses.ts +0 -26
- package/model/saveMerchantCreditPaymentDesignRequest.ts +0 -31
- package/model/saveTicketSettingsRequest.ts +0 -49
- package/model/service.ts +0 -92
- package/model/setDefaultPaymentMethodRequest.ts +0 -31
- package/model/simpleSMSBroadcast.ts +0 -151
- package/model/smsSubscriber.ts +0 -62
- package/model/sortDirection.ts +0 -18
- package/model/staticVoucher.ts +0 -221
- package/model/staticVoucherCampaign.ts +0 -177
- package/model/staticVoucherCampaignBroadcast.ts +0 -145
- package/model/staticVoucherCampaignBroadcastBroadcastStatus.ts +0 -26
- package/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.ts +0 -26
- package/model/staticVoucherCampaignUpdate.ts +0 -80
- package/model/staticVoucherCampaignValueType.ts +0 -26
- package/model/staticVoucherId.ts +0 -26
- package/model/status.ts +0 -26
- package/model/subscriptionFeature.ts +0 -79
- package/model/subscriptionPlan.ts +0 -67
- package/model/subscriptionProduct.ts +0 -97
- package/model/tcpa.ts +0 -68
- package/model/thread.ts +0 -62
- package/model/ticket.ts +0 -149
- package/model/ticketSortKeys.ts +0 -22
- package/model/trustBundleStatuses.ts +0 -21
- package/model/updateEmailNotificationPreferenceRequest.ts +0 -31
- package/model/updateStaticVoucherCampaignWithVoucher.ts +0 -104
- package/model/vSCampaignGeneratedMessage.ts +0 -43
- package/model/vSCampaignGeneratedMessagePagination.ts +0 -52
- package/model/vSDynamicVoucherStatus.ts +0 -26
- package/model/vectorStore.ts +0 -62
- package/model/video.ts +0 -86
- package/model/virtualBusinessCard.ts +0 -134
- package/model/wTA2PApplicationUpdateParams.ts +0 -177
- package/model/wTAdvertisementCredit.ts +0 -105
- package/model/wTAdvertisementCreditCreateParams.ts +0 -56
- package/model/wTAdvertisementCreditScan.ts +0 -167
- package/model/wTAdvertisementCreditUpdateParams.ts +0 -56
- package/model/wTAmenityCreateParams.ts +0 -61
- package/model/wTAmenityUpdateParams.ts +0 -61
- package/model/wTAndroidKeystoreResponse.ts +0 -37
- package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +0 -36
- package/model/wTAuthenticationForgotPassword.ts +0 -31
- package/model/wTAuthenticationLoginRequest.ts +0 -37
- package/model/wTAuthenticationLoginResponse.ts +0 -121
- package/model/wTAuthenticationRegister.ts +0 -157
- package/model/wTAuthenticationRequestResetPassword.ts +0 -31
- package/model/wTAuthenticationResetPassword.ts +0 -43
- package/model/wTAuthenticationSSOLoginForDiscourse.ts +0 -49
- package/model/wTBillingChangePlan.ts +0 -31
- package/model/wTBillingSavePaymentMethod.ts +0 -31
- package/model/wTBillingVerifyPaymentMethodResponse.ts +0 -38
- package/model/wTCountResult.ts +0 -31
- package/model/wTCustomerSearchByMemberID.ts +0 -31
- package/model/wTCustomerSearchByPhoneNumber.ts +0 -31
- package/model/wTDiningCreateParams.ts +0 -61
- package/model/wTDiningUpdateParams.ts +0 -61
- package/model/wTDynamicVoucher.ts +0 -227
- package/model/wTDynamicVoucherCreateParams.ts +0 -98
- package/model/wTDynamicVoucherRedemption.ts +0 -161
- package/model/wTDynamicVoucherRedemptionTransactionType.ts +0 -29
- package/model/wTDynamicVoucherSummary.ts +0 -170
- package/model/wTDynamicVoucherSummaryStatus.ts +0 -26
- package/model/wTDynamicVoucherUpdateParams.ts +0 -98
- package/model/wTEmailSubscriberCreateParams.ts +0 -43
- package/model/wTEmailSubscriberCreateParamsWalletUI.ts +0 -49
- package/model/wTEmailSubscriberUpdateParams.ts +0 -43
- package/model/wTEmployee.ts +0 -212
- package/model/wTEmployeeAPIKey.ts +0 -83
- package/model/wTEmployeeAPIKeyCreateParams.ts +0 -37
- package/model/wTEmployeeAPIKeyUpdateParams.ts +0 -37
- package/model/wTEmployeeCreate.ts +0 -131
- package/model/wTEmployeeCreateDocument.ts +0 -43
- package/model/wTEmployeeCreateMediaFile.ts +0 -43
- package/model/wTEmployeeFileCreate.ts +0 -37
- package/model/wTEmployeeImportRecords.ts +0 -37
- package/model/wTEmployeeNotification.ts +0 -50
- package/model/wTEmployeeNotificationType.ts +0 -26
- package/model/wTEmployeePeerRoles.ts +0 -31
- package/model/wTEmployeeS3FilePresign.ts +0 -44
- package/model/wTEmployeeS3FilePresignContext.ts +0 -26
- package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +0 -67
- package/model/wTEmployeeScheduleSimpleSMS.ts +0 -62
- package/model/wTEmployeeScheduleSimpleSMSListType.ts +0 -26
- package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +0 -55
- package/model/wTEmployeeSendHelpDeskResponse.ts +0 -43
- package/model/wTEmployeeUpdate.ts +0 -125
- package/model/wTEmployeeUpdateRecords.ts +0 -37
- package/model/wTFetchWalletPaymentObjectsWithToken.ts +0 -55
- package/model/wTGamingCreateParams.ts +0 -61
- package/model/wTGamingUpdateParams.ts +0 -61
- package/model/wTImageGridCreateParams.ts +0 -55
- package/model/wTImageGridUpdateParams.ts +0 -55
- package/model/wTImportedList.ts +0 -74
- package/model/wTImportedListRecipientFromMembershipTierImport.ts +0 -44
- package/model/wTImportedListRecipientFromMembershipTierImportTierID.ts +0 -26
- package/model/wTInfoGenesisLookupRequestErrors.ts +0 -49
- package/model/wTInfoGenesisRecordFilterParameters.ts +0 -43
- package/model/wTInfoGenesisRoutingIDs.ts +0 -31
- package/model/wTInfoGenesisUniquePostingIDs.ts +0 -31
- package/model/wTLocalInstance.ts +0 -107
- package/model/wTLoungeCreateParams.ts +0 -61
- package/model/wTLoungeUpdateParams.ts +0 -61
- package/model/wTMember.ts +0 -133
- package/model/wTMemberCreationParams.ts +0 -88
- package/model/wTMembershipTier.ts +0 -104
- package/model/wTMembershipTierCreationParams.ts +0 -64
- package/model/wTMembershipTierId.ts +0 -29
- package/model/wTMembershipTierUpdateParams.ts +0 -64
- package/model/wTMembershipTierWithMemberCount.ts +0 -113
- package/model/wTMerchantCredit.ts +0 -106
- package/model/wTMerchantCreditCreationParams.ts +0 -49
- package/model/wTMerchantURLCreate.ts +0 -37
- package/model/wTMerchantURLUpdate.ts +0 -37
- package/model/wTMerchantUpdate.ts +0 -79
- package/model/wTMerchantUpdatePOSIntegration.ts +0 -31
- package/model/wTMerchantUpdatePointsOfContact.ts +0 -49
- package/model/wTMessageInstance.ts +0 -26
- package/model/wTNewsArticleCreateParams.ts +0 -61
- package/model/wTNewsArticleUpdateParams.ts +0 -61
- package/model/wTOptInList.ts +0 -134
- package/model/wTOptInListCreationParams.ts +0 -103
- package/model/wTPassBrandKit.ts +0 -61
- package/model/wTPaymentDesign.ts +0 -141
- package/model/wTPaymentDesignCreateParams.ts +0 -104
- package/model/wTPaymentDesignUpdateParams.ts +0 -104
- package/model/wTPerformanceCreateParams.ts +0 -103
- package/model/wTPerformanceUpdateParams.ts +0 -103
- package/model/wTPosMachine.ts +0 -88
- package/model/wTPosMachineCreateParams.ts +0 -58
- package/model/wTPosMachineUpdateParams.ts +0 -58
- package/model/wTProductCreateParams.ts +0 -61
- package/model/wTProductUpdateParams.ts +0 -61
- package/model/wTPromoCodeCreateParams.ts +0 -73
- package/model/wTPromoCodeUpdateParams.ts +0 -73
- package/model/wTQRCodeDesign.ts +0 -80
- package/model/wTQRCodeDesignCreateParams.ts +0 -49
- package/model/wTQRCodeDesignUpdateParams.ts +0 -49
- package/model/wTQuickLink.ts +0 -87
- package/model/wTQuickLinkCreateParams.ts +0 -56
- package/model/wTQuickLinkLinkBookSectionID.ts +0 -26
- package/model/wTQuickLinkSectionCreateParams.ts +0 -37
- package/model/wTQuickLinkSectionUpdateParams.ts +0 -37
- package/model/wTQuickLinkUpdateParams.ts +0 -56
- package/model/wTRole.ts +0 -115
- package/model/wTRoomRateCreateParams.ts +0 -61
- package/model/wTRoomRateUpdateParams.ts +0 -61
- package/model/wTSMSAcquirePhoneNumber.ts +0 -31
- package/model/wTSMSImportOptInListSubscribers.ts +0 -43
- package/model/wTSMSImportedListCreate.ts +0 -43
- package/model/wTSMSOptInListSourceCreate.ts +0 -37
- package/model/wTSMSUpdatePhoneNumberConfig.ts +0 -97
- package/model/wTServiceCreateParams.ts +0 -61
- package/model/wTServiceUpdateParams.ts +0 -61
- package/model/wTSettingsSetPassword.ts +0 -31
- package/model/wTSmsSubscriberCreateParams.ts +0 -31
- package/model/wTSmsSubscriberCreateParamsWalletUI.ts +0 -37
- package/model/wTSmsSubscriberUpdateParams.ts +0 -31
- package/model/wTStaticVoucher.ts +0 -221
- package/model/wTStaticVoucherCampaign.ts +0 -177
- package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +0 -55
- package/model/wTStaticVoucherCreateParams.ts +0 -50
- package/model/wTStaticVoucherUpdateParams.ts +0 -43
- package/model/wTSystemApprovePhoneNumber.ts +0 -37
- package/model/wTSystemRoleCreate.ts +0 -37
- package/model/wTTCPAOpt.ts +0 -45
- package/model/wTTCPAOptListID.ts +0 -26
- package/model/wTTCPAOptSourceID.ts +0 -26
- package/model/wTTicket.ts +0 -149
- package/model/wTTicketCreateParams.ts +0 -64
- package/model/wTTicketUpdateParams.ts +0 -58
- package/model/wTTwilioRequestAuthyCode.ts +0 -37
- package/model/wTTwilioVerifyAuthyCode.ts +0 -43
- package/model/wTVideoCreateParams.ts +0 -55
- package/model/wTVideoUpdateParams.ts +0 -55
- package/model/wTVirtualBusinessCardCreateParams.ts +0 -103
- package/model/wTVirtualBusinessCardUpdateParams.ts +0 -103
- package/model/wTWalletConfigurationSaveWalletRecord.ts +0 -477
- package/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.ts +0 -62
- package/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.ts +0 -26
- package/model/wTWalletItemRedemption.ts +0 -43
- package/model/wTWalletObjectPrefixCounts.ts +0 -43
- package/model/wTWalletPageView.ts +0 -263
- package/model/wTWalletPageViewCount.ts +0 -49
- package/model/wTWalletPageViewGeoPoint.ts +0 -37
- package/model/wTWhatsAppInboundWebhook.ts +0 -109
- package/model/wTWhatsAppStatusCallback.ts +0 -91
- package/model/walletConfiguration.ts +0 -510
- package/model/walletPageView.ts +0 -263
- package/model/webpage.ts +0 -85
- package/openapitools.json +0 -7
- package/readme-generator.py +0 -107
- package/scripts/failure.py +0 -67
- package/scripts/slack.py +0 -94
- package/tsconfig.json +0 -25
package/api/sMSOperationsApi.ts
DELETED
|
@@ -1,2913 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* wallet-api
|
|
3
|
-
* API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.1.602
|
|
6
|
-
* Contact: development@wallet.inc
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { AuthError } from '../model/authError';
|
|
19
|
-
import { FalsumError } from '../model/falsumError';
|
|
20
|
-
import { FetchImportedListRecipientsByPage200Response } from '../model/fetchImportedListRecipientsByPage200Response';
|
|
21
|
-
import { FetchOptInListSubscribersByPage200Response } from '../model/fetchOptInListSubscribersByPage200Response';
|
|
22
|
-
import { FetchOutboundSMSByPage200Response } from '../model/fetchOutboundSMSByPage200Response';
|
|
23
|
-
import { ImportedList } from '../model/importedList';
|
|
24
|
-
import { ImportedListRecipient } from '../model/importedListRecipient';
|
|
25
|
-
import { InternalServerError500 } from '../model/internalServerError500';
|
|
26
|
-
import { OptInList } from '../model/optInList';
|
|
27
|
-
import { OptInListSource } from '../model/optInListSource';
|
|
28
|
-
import { OptInListSubscriber } from '../model/optInListSubscriber';
|
|
29
|
-
import { OutboundSMS } from '../model/outboundSMS';
|
|
30
|
-
import { PhoneNumber } from '../model/phoneNumber';
|
|
31
|
-
import { SSImportedListRecipientCreateParams } from '../model/sSImportedListRecipientCreateParams';
|
|
32
|
-
import { SSOutboundStatuses } from '../model/sSOutboundStatuses';
|
|
33
|
-
import { StaticVoucherCampaignBroadcast } from '../model/staticVoucherCampaignBroadcast';
|
|
34
|
-
import { Tcpa } from '../model/tcpa';
|
|
35
|
-
import { WTCountResult } from '../model/wTCountResult';
|
|
36
|
-
import { WTEmployeeImportRecords } from '../model/wTEmployeeImportRecords';
|
|
37
|
-
import { WTImportedListRecipientFromMembershipTierImport } from '../model/wTImportedListRecipientFromMembershipTierImport';
|
|
38
|
-
import { WTOptInListCreationParams } from '../model/wTOptInListCreationParams';
|
|
39
|
-
import { WTSMSAcquirePhoneNumber } from '../model/wTSMSAcquirePhoneNumber';
|
|
40
|
-
import { WTSMSImportOptInListSubscribers } from '../model/wTSMSImportOptInListSubscribers';
|
|
41
|
-
import { WTSMSImportedListCreate } from '../model/wTSMSImportedListCreate';
|
|
42
|
-
import { WTSMSOptInListSourceCreate } from '../model/wTSMSOptInListSourceCreate';
|
|
43
|
-
import { WTSMSUpdatePhoneNumberConfig } from '../model/wTSMSUpdatePhoneNumberConfig';
|
|
44
|
-
|
|
45
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
46
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
47
|
-
|
|
48
|
-
import { HttpError, RequestFile } from './apis';
|
|
49
|
-
|
|
50
|
-
let defaultBasePath = 'https://api.wall.et';
|
|
51
|
-
|
|
52
|
-
// ===============================================
|
|
53
|
-
// This file is autogenerated - Please do not edit
|
|
54
|
-
// ===============================================
|
|
55
|
-
|
|
56
|
-
export enum SMSOperationsApiApiKeys {
|
|
57
|
-
api_key,
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export class SMSOperationsApi {
|
|
61
|
-
protected _basePath = defaultBasePath;
|
|
62
|
-
protected _defaultHeaders : any = {};
|
|
63
|
-
protected _useQuerystring : boolean = false;
|
|
64
|
-
|
|
65
|
-
protected authentications = {
|
|
66
|
-
'default': <Authentication>new VoidAuth(),
|
|
67
|
-
'api_key': new ApiKeyAuth('header', 'access-token'),
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
protected interceptors: Interceptor[] = [];
|
|
71
|
-
|
|
72
|
-
constructor(basePath?: string);
|
|
73
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
74
|
-
if (password) {
|
|
75
|
-
if (basePath) {
|
|
76
|
-
this.basePath = basePath;
|
|
77
|
-
}
|
|
78
|
-
} else {
|
|
79
|
-
if (basePathOrUsername) {
|
|
80
|
-
this.basePath = basePathOrUsername
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
set useQuerystring(value: boolean) {
|
|
86
|
-
this._useQuerystring = value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
set basePath(basePath: string) {
|
|
90
|
-
this._basePath = basePath;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
94
|
-
this._defaultHeaders = defaultHeaders;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
get defaultHeaders() {
|
|
98
|
-
return this._defaultHeaders;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
get basePath() {
|
|
102
|
-
return this._basePath;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
106
|
-
this.authentications.default = auth;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
public setApiKey(key: SMSOperationsApiApiKeys, value: string) {
|
|
110
|
-
(this.authentications as any)[SMSOperationsApiApiKeys[key]].apiKey = value;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
114
|
-
this.interceptors.push(interceptor);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @summary Acquire phone number
|
|
120
|
-
* @param wTSMSAcquirePhoneNumber
|
|
121
|
-
*/
|
|
122
|
-
public async acquirePhoneNumber (wTSMSAcquirePhoneNumber: WTSMSAcquirePhoneNumber, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PhoneNumber; }> {
|
|
123
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/acquire';
|
|
124
|
-
let localVarQueryParameters: any = {};
|
|
125
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
126
|
-
const produces = ['application/json'];
|
|
127
|
-
// give precedence to 'application/json'
|
|
128
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
129
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
130
|
-
} else {
|
|
131
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
132
|
-
}
|
|
133
|
-
let localVarFormParams: any = {};
|
|
134
|
-
|
|
135
|
-
// verify required parameter 'wTSMSAcquirePhoneNumber' is not null or undefined
|
|
136
|
-
if (wTSMSAcquirePhoneNumber === null || wTSMSAcquirePhoneNumber === undefined) {
|
|
137
|
-
throw new Error('Required parameter wTSMSAcquirePhoneNumber was null or undefined when calling acquirePhoneNumber.');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
141
|
-
|
|
142
|
-
let localVarUseFormData = false;
|
|
143
|
-
|
|
144
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
145
|
-
method: 'POST',
|
|
146
|
-
qs: localVarQueryParameters,
|
|
147
|
-
headers: localVarHeaderParams,
|
|
148
|
-
uri: localVarPath,
|
|
149
|
-
useQuerystring: this._useQuerystring,
|
|
150
|
-
json: true,
|
|
151
|
-
body: ObjectSerializer.serialize(wTSMSAcquirePhoneNumber, "WTSMSAcquirePhoneNumber")
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
let authenticationPromise = Promise.resolve();
|
|
155
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
156
|
-
|
|
157
|
-
let interceptorPromise = authenticationPromise;
|
|
158
|
-
for (const interceptor of this.interceptors) {
|
|
159
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return interceptorPromise.then(() => {
|
|
163
|
-
if (Object.keys(localVarFormParams).length) {
|
|
164
|
-
if (localVarUseFormData) {
|
|
165
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
166
|
-
} else {
|
|
167
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return new Promise<{ response: http.IncomingMessage; body: PhoneNumber; }>((resolve, reject) => {
|
|
171
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
172
|
-
if (error) {
|
|
173
|
-
reject(error);
|
|
174
|
-
} else {
|
|
175
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
-
body = ObjectSerializer.deserialize(body, "PhoneNumber");
|
|
177
|
-
resolve({ response: response, body: body });
|
|
178
|
-
} else {
|
|
179
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @summary Archive phone number
|
|
189
|
-
* @param phoneNumberID
|
|
190
|
-
*/
|
|
191
|
-
public async archivePhoneNumber (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PhoneNumber; }> {
|
|
192
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
|
|
193
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
194
|
-
let localVarQueryParameters: any = {};
|
|
195
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
196
|
-
const produces = ['application/json'];
|
|
197
|
-
// give precedence to 'application/json'
|
|
198
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
199
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
200
|
-
} else {
|
|
201
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
202
|
-
}
|
|
203
|
-
let localVarFormParams: any = {};
|
|
204
|
-
|
|
205
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
206
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
207
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling archivePhoneNumber.');
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
211
|
-
|
|
212
|
-
let localVarUseFormData = false;
|
|
213
|
-
|
|
214
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
215
|
-
method: 'DELETE',
|
|
216
|
-
qs: localVarQueryParameters,
|
|
217
|
-
headers: localVarHeaderParams,
|
|
218
|
-
uri: localVarPath,
|
|
219
|
-
useQuerystring: this._useQuerystring,
|
|
220
|
-
json: true,
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
let authenticationPromise = Promise.resolve();
|
|
224
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
225
|
-
|
|
226
|
-
let interceptorPromise = authenticationPromise;
|
|
227
|
-
for (const interceptor of this.interceptors) {
|
|
228
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
return interceptorPromise.then(() => {
|
|
232
|
-
if (Object.keys(localVarFormParams).length) {
|
|
233
|
-
if (localVarUseFormData) {
|
|
234
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
235
|
-
} else {
|
|
236
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return new Promise<{ response: http.IncomingMessage; body: PhoneNumber; }>((resolve, reject) => {
|
|
240
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
241
|
-
if (error) {
|
|
242
|
-
reject(error);
|
|
243
|
-
} else {
|
|
244
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
245
|
-
body = ObjectSerializer.deserialize(body, "PhoneNumber");
|
|
246
|
-
resolve({ response: response, body: body });
|
|
247
|
-
} else {
|
|
248
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
*
|
|
257
|
-
* @summary Archive recipient
|
|
258
|
-
* @param id
|
|
259
|
-
*/
|
|
260
|
-
public async archiveRecipient (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }> {
|
|
261
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{id}'
|
|
262
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
263
|
-
let localVarQueryParameters: any = {};
|
|
264
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
265
|
-
const produces = ['application/json'];
|
|
266
|
-
// give precedence to 'application/json'
|
|
267
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
268
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
269
|
-
} else {
|
|
270
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
271
|
-
}
|
|
272
|
-
let localVarFormParams: any = {};
|
|
273
|
-
|
|
274
|
-
// verify required parameter 'id' is not null or undefined
|
|
275
|
-
if (id === null || id === undefined) {
|
|
276
|
-
throw new Error('Required parameter id was null or undefined when calling archiveRecipient.');
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
280
|
-
|
|
281
|
-
let localVarUseFormData = false;
|
|
282
|
-
|
|
283
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
284
|
-
method: 'DELETE',
|
|
285
|
-
qs: localVarQueryParameters,
|
|
286
|
-
headers: localVarHeaderParams,
|
|
287
|
-
uri: localVarPath,
|
|
288
|
-
useQuerystring: this._useQuerystring,
|
|
289
|
-
json: true,
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
let authenticationPromise = Promise.resolve();
|
|
293
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
294
|
-
|
|
295
|
-
let interceptorPromise = authenticationPromise;
|
|
296
|
-
for (const interceptor of this.interceptors) {
|
|
297
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
return interceptorPromise.then(() => {
|
|
301
|
-
if (Object.keys(localVarFormParams).length) {
|
|
302
|
-
if (localVarUseFormData) {
|
|
303
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
304
|
-
} else {
|
|
305
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
return new Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }>((resolve, reject) => {
|
|
309
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
310
|
-
if (error) {
|
|
311
|
-
reject(error);
|
|
312
|
-
} else {
|
|
313
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
314
|
-
body = ObjectSerializer.deserialize(body, "ImportedListRecipient");
|
|
315
|
-
resolve({ response: response, body: body });
|
|
316
|
-
} else {
|
|
317
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
326
|
-
* @summary Count imported list recipients
|
|
327
|
-
* @param listID
|
|
328
|
-
* @param isArchiveIncluded
|
|
329
|
-
* @param startDate
|
|
330
|
-
* @param endDate
|
|
331
|
-
*/
|
|
332
|
-
public async countImportedListRecipients (listID: string, isArchiveIncluded?: boolean, startDate?: Date, endDate?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTCountResult; }> {
|
|
333
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/count/{listID}'
|
|
334
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
335
|
-
let localVarQueryParameters: any = {};
|
|
336
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
337
|
-
const produces = ['application/json'];
|
|
338
|
-
// give precedence to 'application/json'
|
|
339
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
340
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
341
|
-
} else {
|
|
342
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
343
|
-
}
|
|
344
|
-
let localVarFormParams: any = {};
|
|
345
|
-
|
|
346
|
-
// verify required parameter 'listID' is not null or undefined
|
|
347
|
-
if (listID === null || listID === undefined) {
|
|
348
|
-
throw new Error('Required parameter listID was null or undefined when calling countImportedListRecipients.');
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (isArchiveIncluded !== undefined) {
|
|
352
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
if (startDate !== undefined) {
|
|
356
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
if (endDate !== undefined) {
|
|
360
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
364
|
-
|
|
365
|
-
let localVarUseFormData = false;
|
|
366
|
-
|
|
367
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
368
|
-
method: 'GET',
|
|
369
|
-
qs: localVarQueryParameters,
|
|
370
|
-
headers: localVarHeaderParams,
|
|
371
|
-
uri: localVarPath,
|
|
372
|
-
useQuerystring: this._useQuerystring,
|
|
373
|
-
json: true,
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
let authenticationPromise = Promise.resolve();
|
|
377
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
378
|
-
|
|
379
|
-
let interceptorPromise = authenticationPromise;
|
|
380
|
-
for (const interceptor of this.interceptors) {
|
|
381
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
return interceptorPromise.then(() => {
|
|
385
|
-
if (Object.keys(localVarFormParams).length) {
|
|
386
|
-
if (localVarUseFormData) {
|
|
387
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
388
|
-
} else {
|
|
389
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return new Promise<{ response: http.IncomingMessage; body: WTCountResult; }>((resolve, reject) => {
|
|
393
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
394
|
-
if (error) {
|
|
395
|
-
reject(error);
|
|
396
|
-
} else {
|
|
397
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
398
|
-
body = ObjectSerializer.deserialize(body, "WTCountResult");
|
|
399
|
-
resolve({ response: response, body: body });
|
|
400
|
-
} else {
|
|
401
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary Count opt in list subscribers
|
|
411
|
-
* @param listID
|
|
412
|
-
* @param isSubscribed
|
|
413
|
-
* @param isPendingAge21Verification
|
|
414
|
-
* @param isArchiveIncluded
|
|
415
|
-
* @param startDate
|
|
416
|
-
* @param endDate
|
|
417
|
-
*/
|
|
418
|
-
public async countOptInListSubscribers (listID: string, isSubscribed?: boolean, isPendingAge21Verification?: boolean, isArchiveIncluded?: boolean, startDate?: Date, endDate?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTCountResult; }> {
|
|
419
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/count/{listID}'
|
|
420
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
421
|
-
let localVarQueryParameters: any = {};
|
|
422
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
423
|
-
const produces = ['application/json'];
|
|
424
|
-
// give precedence to 'application/json'
|
|
425
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
426
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
427
|
-
} else {
|
|
428
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
429
|
-
}
|
|
430
|
-
let localVarFormParams: any = {};
|
|
431
|
-
|
|
432
|
-
// verify required parameter 'listID' is not null or undefined
|
|
433
|
-
if (listID === null || listID === undefined) {
|
|
434
|
-
throw new Error('Required parameter listID was null or undefined when calling countOptInListSubscribers.');
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (isSubscribed !== undefined) {
|
|
438
|
-
localVarQueryParameters['isSubscribed'] = ObjectSerializer.serialize(isSubscribed, "boolean");
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
if (isPendingAge21Verification !== undefined) {
|
|
442
|
-
localVarQueryParameters['isPendingAge21Verification'] = ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (isArchiveIncluded !== undefined) {
|
|
446
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
if (startDate !== undefined) {
|
|
450
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if (endDate !== undefined) {
|
|
454
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
458
|
-
|
|
459
|
-
let localVarUseFormData = false;
|
|
460
|
-
|
|
461
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
462
|
-
method: 'GET',
|
|
463
|
-
qs: localVarQueryParameters,
|
|
464
|
-
headers: localVarHeaderParams,
|
|
465
|
-
uri: localVarPath,
|
|
466
|
-
useQuerystring: this._useQuerystring,
|
|
467
|
-
json: true,
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
let authenticationPromise = Promise.resolve();
|
|
471
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
472
|
-
|
|
473
|
-
let interceptorPromise = authenticationPromise;
|
|
474
|
-
for (const interceptor of this.interceptors) {
|
|
475
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
return interceptorPromise.then(() => {
|
|
479
|
-
if (Object.keys(localVarFormParams).length) {
|
|
480
|
-
if (localVarUseFormData) {
|
|
481
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
482
|
-
} else {
|
|
483
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
return new Promise<{ response: http.IncomingMessage; body: WTCountResult; }>((resolve, reject) => {
|
|
487
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
488
|
-
if (error) {
|
|
489
|
-
reject(error);
|
|
490
|
-
} else {
|
|
491
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
492
|
-
body = ObjectSerializer.deserialize(body, "WTCountResult");
|
|
493
|
-
resolve({ response: response, body: body });
|
|
494
|
-
} else {
|
|
495
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
*
|
|
504
|
-
* @summary Count opt in source subscribers
|
|
505
|
-
* @param sourceID
|
|
506
|
-
* @param isSubscribed
|
|
507
|
-
* @param isPendingAge21Verification
|
|
508
|
-
* @param isArchiveIncluded
|
|
509
|
-
* @param startDate
|
|
510
|
-
* @param endDate
|
|
511
|
-
*/
|
|
512
|
-
public async countOptInSourceSubscribers (sourceID: string, isSubscribed?: boolean, isPendingAge21Verification?: boolean, isArchiveIncluded?: boolean, startDate?: Date, endDate?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTCountResult; }> {
|
|
513
|
-
const localVarPath = this.basePath + '/v2/sms/optInSource/subscribers/count/{sourceID}'
|
|
514
|
-
.replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
|
|
515
|
-
let localVarQueryParameters: any = {};
|
|
516
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
517
|
-
const produces = ['application/json'];
|
|
518
|
-
// give precedence to 'application/json'
|
|
519
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
520
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
521
|
-
} else {
|
|
522
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
523
|
-
}
|
|
524
|
-
let localVarFormParams: any = {};
|
|
525
|
-
|
|
526
|
-
// verify required parameter 'sourceID' is not null or undefined
|
|
527
|
-
if (sourceID === null || sourceID === undefined) {
|
|
528
|
-
throw new Error('Required parameter sourceID was null or undefined when calling countOptInSourceSubscribers.');
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
if (isSubscribed !== undefined) {
|
|
532
|
-
localVarQueryParameters['isSubscribed'] = ObjectSerializer.serialize(isSubscribed, "boolean");
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
if (isPendingAge21Verification !== undefined) {
|
|
536
|
-
localVarQueryParameters['isPendingAge21Verification'] = ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
if (isArchiveIncluded !== undefined) {
|
|
540
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (startDate !== undefined) {
|
|
544
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
if (endDate !== undefined) {
|
|
548
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
552
|
-
|
|
553
|
-
let localVarUseFormData = false;
|
|
554
|
-
|
|
555
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
556
|
-
method: 'GET',
|
|
557
|
-
qs: localVarQueryParameters,
|
|
558
|
-
headers: localVarHeaderParams,
|
|
559
|
-
uri: localVarPath,
|
|
560
|
-
useQuerystring: this._useQuerystring,
|
|
561
|
-
json: true,
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
let authenticationPromise = Promise.resolve();
|
|
565
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
566
|
-
|
|
567
|
-
let interceptorPromise = authenticationPromise;
|
|
568
|
-
for (const interceptor of this.interceptors) {
|
|
569
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
return interceptorPromise.then(() => {
|
|
573
|
-
if (Object.keys(localVarFormParams).length) {
|
|
574
|
-
if (localVarUseFormData) {
|
|
575
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
576
|
-
} else {
|
|
577
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
return new Promise<{ response: http.IncomingMessage; body: WTCountResult; }>((resolve, reject) => {
|
|
581
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
582
|
-
if (error) {
|
|
583
|
-
reject(error);
|
|
584
|
-
} else {
|
|
585
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
586
|
-
body = ObjectSerializer.deserialize(body, "WTCountResult");
|
|
587
|
-
resolve({ response: response, body: body });
|
|
588
|
-
} else {
|
|
589
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
});
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
/**
|
|
597
|
-
*
|
|
598
|
-
* @summary Count outbound SMS
|
|
599
|
-
* @param phoneNumberID
|
|
600
|
-
* @param toPhoneNumber
|
|
601
|
-
* @param status
|
|
602
|
-
* @param paymentObjectBroadcastID
|
|
603
|
-
* @param startDate
|
|
604
|
-
* @param endDate
|
|
605
|
-
*/
|
|
606
|
-
public async countOutboundSMS (phoneNumberID: string, toPhoneNumber?: string, status?: string, paymentObjectBroadcastID?: string, startDate?: Date, endDate?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTCountResult; }> {
|
|
607
|
-
const localVarPath = this.basePath + '/v2/sms/outbound/count/{phoneNumberID}'
|
|
608
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
609
|
-
let localVarQueryParameters: any = {};
|
|
610
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
611
|
-
const produces = ['application/json'];
|
|
612
|
-
// give precedence to 'application/json'
|
|
613
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
614
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
615
|
-
} else {
|
|
616
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
617
|
-
}
|
|
618
|
-
let localVarFormParams: any = {};
|
|
619
|
-
|
|
620
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
621
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
622
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling countOutboundSMS.');
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
if (toPhoneNumber !== undefined) {
|
|
626
|
-
localVarQueryParameters['toPhoneNumber'] = ObjectSerializer.serialize(toPhoneNumber, "string");
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
if (status !== undefined) {
|
|
630
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "string");
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
if (paymentObjectBroadcastID !== undefined) {
|
|
634
|
-
localVarQueryParameters['paymentObjectBroadcastID'] = ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (startDate !== undefined) {
|
|
638
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
if (endDate !== undefined) {
|
|
642
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
646
|
-
|
|
647
|
-
let localVarUseFormData = false;
|
|
648
|
-
|
|
649
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
650
|
-
method: 'GET',
|
|
651
|
-
qs: localVarQueryParameters,
|
|
652
|
-
headers: localVarHeaderParams,
|
|
653
|
-
uri: localVarPath,
|
|
654
|
-
useQuerystring: this._useQuerystring,
|
|
655
|
-
json: true,
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
let authenticationPromise = Promise.resolve();
|
|
659
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
660
|
-
|
|
661
|
-
let interceptorPromise = authenticationPromise;
|
|
662
|
-
for (const interceptor of this.interceptors) {
|
|
663
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
return interceptorPromise.then(() => {
|
|
667
|
-
if (Object.keys(localVarFormParams).length) {
|
|
668
|
-
if (localVarUseFormData) {
|
|
669
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
670
|
-
} else {
|
|
671
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return new Promise<{ response: http.IncomingMessage; body: WTCountResult; }>((resolve, reject) => {
|
|
675
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
676
|
-
if (error) {
|
|
677
|
-
reject(error);
|
|
678
|
-
} else {
|
|
679
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
680
|
-
body = ObjectSerializer.deserialize(body, "WTCountResult");
|
|
681
|
-
resolve({ response: response, body: body });
|
|
682
|
-
} else {
|
|
683
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
});
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
*
|
|
692
|
-
* @summary Create imported list
|
|
693
|
-
* @param wTSMSImportedListCreate
|
|
694
|
-
*/
|
|
695
|
-
public async createImportedList (wTSMSImportedListCreate: WTSMSImportedListCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImportedList; }> {
|
|
696
|
-
const localVarPath = this.basePath + '/v2/sms/importedList';
|
|
697
|
-
let localVarQueryParameters: any = {};
|
|
698
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
699
|
-
const produces = ['application/json'];
|
|
700
|
-
// give precedence to 'application/json'
|
|
701
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
702
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
703
|
-
} else {
|
|
704
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
705
|
-
}
|
|
706
|
-
let localVarFormParams: any = {};
|
|
707
|
-
|
|
708
|
-
// verify required parameter 'wTSMSImportedListCreate' is not null or undefined
|
|
709
|
-
if (wTSMSImportedListCreate === null || wTSMSImportedListCreate === undefined) {
|
|
710
|
-
throw new Error('Required parameter wTSMSImportedListCreate was null or undefined when calling createImportedList.');
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
714
|
-
|
|
715
|
-
let localVarUseFormData = false;
|
|
716
|
-
|
|
717
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
718
|
-
method: 'POST',
|
|
719
|
-
qs: localVarQueryParameters,
|
|
720
|
-
headers: localVarHeaderParams,
|
|
721
|
-
uri: localVarPath,
|
|
722
|
-
useQuerystring: this._useQuerystring,
|
|
723
|
-
json: true,
|
|
724
|
-
body: ObjectSerializer.serialize(wTSMSImportedListCreate, "WTSMSImportedListCreate")
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
let authenticationPromise = Promise.resolve();
|
|
728
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
729
|
-
|
|
730
|
-
let interceptorPromise = authenticationPromise;
|
|
731
|
-
for (const interceptor of this.interceptors) {
|
|
732
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
return interceptorPromise.then(() => {
|
|
736
|
-
if (Object.keys(localVarFormParams).length) {
|
|
737
|
-
if (localVarUseFormData) {
|
|
738
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
739
|
-
} else {
|
|
740
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
return new Promise<{ response: http.IncomingMessage; body: ImportedList; }>((resolve, reject) => {
|
|
744
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
745
|
-
if (error) {
|
|
746
|
-
reject(error);
|
|
747
|
-
} else {
|
|
748
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
749
|
-
body = ObjectSerializer.deserialize(body, "ImportedList");
|
|
750
|
-
resolve({ response: response, body: body });
|
|
751
|
-
} else {
|
|
752
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
});
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
*
|
|
761
|
-
* @summary Create opt in list
|
|
762
|
-
* @param wTOptInListCreationParams
|
|
763
|
-
*/
|
|
764
|
-
public async createOptInList (wTOptInListCreationParams: WTOptInListCreationParams, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OptInList; }> {
|
|
765
|
-
const localVarPath = this.basePath + '/v2/sms/optInList';
|
|
766
|
-
let localVarQueryParameters: any = {};
|
|
767
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
768
|
-
const produces = ['application/json'];
|
|
769
|
-
// give precedence to 'application/json'
|
|
770
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
771
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
772
|
-
} else {
|
|
773
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
774
|
-
}
|
|
775
|
-
let localVarFormParams: any = {};
|
|
776
|
-
|
|
777
|
-
// verify required parameter 'wTOptInListCreationParams' is not null or undefined
|
|
778
|
-
if (wTOptInListCreationParams === null || wTOptInListCreationParams === undefined) {
|
|
779
|
-
throw new Error('Required parameter wTOptInListCreationParams was null or undefined when calling createOptInList.');
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
783
|
-
|
|
784
|
-
let localVarUseFormData = false;
|
|
785
|
-
|
|
786
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
787
|
-
method: 'POST',
|
|
788
|
-
qs: localVarQueryParameters,
|
|
789
|
-
headers: localVarHeaderParams,
|
|
790
|
-
uri: localVarPath,
|
|
791
|
-
useQuerystring: this._useQuerystring,
|
|
792
|
-
json: true,
|
|
793
|
-
body: ObjectSerializer.serialize(wTOptInListCreationParams, "WTOptInListCreationParams")
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
let authenticationPromise = Promise.resolve();
|
|
797
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
798
|
-
|
|
799
|
-
let interceptorPromise = authenticationPromise;
|
|
800
|
-
for (const interceptor of this.interceptors) {
|
|
801
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
return interceptorPromise.then(() => {
|
|
805
|
-
if (Object.keys(localVarFormParams).length) {
|
|
806
|
-
if (localVarUseFormData) {
|
|
807
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
808
|
-
} else {
|
|
809
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
return new Promise<{ response: http.IncomingMessage; body: OptInList; }>((resolve, reject) => {
|
|
813
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
814
|
-
if (error) {
|
|
815
|
-
reject(error);
|
|
816
|
-
} else {
|
|
817
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
818
|
-
body = ObjectSerializer.deserialize(body, "OptInList");
|
|
819
|
-
resolve({ response: response, body: body });
|
|
820
|
-
} else {
|
|
821
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
});
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
*
|
|
830
|
-
* @summary Send SMS to opt in list
|
|
831
|
-
* @param wTSMSOptInListSourceCreate
|
|
832
|
-
*/
|
|
833
|
-
public async createOptInListSource (wTSMSOptInListSourceCreate: WTSMSOptInListSourceCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OptInListSource; }> {
|
|
834
|
-
const localVarPath = this.basePath + '/v2/sms/optInListSource';
|
|
835
|
-
let localVarQueryParameters: any = {};
|
|
836
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
837
|
-
const produces = ['application/json'];
|
|
838
|
-
// give precedence to 'application/json'
|
|
839
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
840
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
841
|
-
} else {
|
|
842
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
843
|
-
}
|
|
844
|
-
let localVarFormParams: any = {};
|
|
845
|
-
|
|
846
|
-
// verify required parameter 'wTSMSOptInListSourceCreate' is not null or undefined
|
|
847
|
-
if (wTSMSOptInListSourceCreate === null || wTSMSOptInListSourceCreate === undefined) {
|
|
848
|
-
throw new Error('Required parameter wTSMSOptInListSourceCreate was null or undefined when calling createOptInListSource.');
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
852
|
-
|
|
853
|
-
let localVarUseFormData = false;
|
|
854
|
-
|
|
855
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
856
|
-
method: 'POST',
|
|
857
|
-
qs: localVarQueryParameters,
|
|
858
|
-
headers: localVarHeaderParams,
|
|
859
|
-
uri: localVarPath,
|
|
860
|
-
useQuerystring: this._useQuerystring,
|
|
861
|
-
json: true,
|
|
862
|
-
body: ObjectSerializer.serialize(wTSMSOptInListSourceCreate, "WTSMSOptInListSourceCreate")
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
let authenticationPromise = Promise.resolve();
|
|
866
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
867
|
-
|
|
868
|
-
let interceptorPromise = authenticationPromise;
|
|
869
|
-
for (const interceptor of this.interceptors) {
|
|
870
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
return interceptorPromise.then(() => {
|
|
874
|
-
if (Object.keys(localVarFormParams).length) {
|
|
875
|
-
if (localVarUseFormData) {
|
|
876
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
877
|
-
} else {
|
|
878
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
return new Promise<{ response: http.IncomingMessage; body: OptInListSource; }>((resolve, reject) => {
|
|
882
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
883
|
-
if (error) {
|
|
884
|
-
reject(error);
|
|
885
|
-
} else {
|
|
886
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
887
|
-
body = ObjectSerializer.deserialize(body, "OptInListSource");
|
|
888
|
-
resolve({ response: response, body: body });
|
|
889
|
-
} else {
|
|
890
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
});
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
*
|
|
899
|
-
* @summary Add new recipient in an imported list
|
|
900
|
-
* @param sSImportedListRecipientCreateParams
|
|
901
|
-
*/
|
|
902
|
-
public async createRecipientInImportedList (sSImportedListRecipientCreateParams: SSImportedListRecipientCreateParams, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }> {
|
|
903
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/create';
|
|
904
|
-
let localVarQueryParameters: any = {};
|
|
905
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
906
|
-
const produces = ['application/json'];
|
|
907
|
-
// give precedence to 'application/json'
|
|
908
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
909
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
910
|
-
} else {
|
|
911
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
912
|
-
}
|
|
913
|
-
let localVarFormParams: any = {};
|
|
914
|
-
|
|
915
|
-
// verify required parameter 'sSImportedListRecipientCreateParams' is not null or undefined
|
|
916
|
-
if (sSImportedListRecipientCreateParams === null || sSImportedListRecipientCreateParams === undefined) {
|
|
917
|
-
throw new Error('Required parameter sSImportedListRecipientCreateParams was null or undefined when calling createRecipientInImportedList.');
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
921
|
-
|
|
922
|
-
let localVarUseFormData = false;
|
|
923
|
-
|
|
924
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
925
|
-
method: 'POST',
|
|
926
|
-
qs: localVarQueryParameters,
|
|
927
|
-
headers: localVarHeaderParams,
|
|
928
|
-
uri: localVarPath,
|
|
929
|
-
useQuerystring: this._useQuerystring,
|
|
930
|
-
json: true,
|
|
931
|
-
body: ObjectSerializer.serialize(sSImportedListRecipientCreateParams, "SSImportedListRecipientCreateParams")
|
|
932
|
-
};
|
|
933
|
-
|
|
934
|
-
let authenticationPromise = Promise.resolve();
|
|
935
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
936
|
-
|
|
937
|
-
let interceptorPromise = authenticationPromise;
|
|
938
|
-
for (const interceptor of this.interceptors) {
|
|
939
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
return interceptorPromise.then(() => {
|
|
943
|
-
if (Object.keys(localVarFormParams).length) {
|
|
944
|
-
if (localVarUseFormData) {
|
|
945
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
946
|
-
} else {
|
|
947
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
return new Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }>((resolve, reject) => {
|
|
951
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
952
|
-
if (error) {
|
|
953
|
-
reject(error);
|
|
954
|
-
} else {
|
|
955
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
956
|
-
body = ObjectSerializer.deserialize(body, "ImportedListRecipient");
|
|
957
|
-
resolve({ response: response, body: body });
|
|
958
|
-
} else {
|
|
959
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
});
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
*
|
|
968
|
-
* @summary Export imported list recipients
|
|
969
|
-
* @param importedListID
|
|
970
|
-
*/
|
|
971
|
-
public async exportImportedListRecipients (importedListID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
972
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/export/{importedListID}'
|
|
973
|
-
.replace('{' + 'importedListID' + '}', encodeURIComponent(String(importedListID)));
|
|
974
|
-
let localVarQueryParameters: any = {};
|
|
975
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
976
|
-
const produces = ['application/json'];
|
|
977
|
-
// give precedence to 'application/json'
|
|
978
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
979
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
980
|
-
} else {
|
|
981
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
982
|
-
}
|
|
983
|
-
let localVarFormParams: any = {};
|
|
984
|
-
|
|
985
|
-
// verify required parameter 'importedListID' is not null or undefined
|
|
986
|
-
if (importedListID === null || importedListID === undefined) {
|
|
987
|
-
throw new Error('Required parameter importedListID was null or undefined when calling exportImportedListRecipients.');
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
991
|
-
|
|
992
|
-
let localVarUseFormData = false;
|
|
993
|
-
|
|
994
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
995
|
-
method: 'POST',
|
|
996
|
-
qs: localVarQueryParameters,
|
|
997
|
-
headers: localVarHeaderParams,
|
|
998
|
-
uri: localVarPath,
|
|
999
|
-
useQuerystring: this._useQuerystring,
|
|
1000
|
-
json: true,
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
let authenticationPromise = Promise.resolve();
|
|
1004
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1005
|
-
|
|
1006
|
-
let interceptorPromise = authenticationPromise;
|
|
1007
|
-
for (const interceptor of this.interceptors) {
|
|
1008
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
return interceptorPromise.then(() => {
|
|
1012
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1013
|
-
if (localVarUseFormData) {
|
|
1014
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1015
|
-
} else {
|
|
1016
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
1020
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1021
|
-
if (error) {
|
|
1022
|
-
reject(error);
|
|
1023
|
-
} else {
|
|
1024
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1025
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
1026
|
-
resolve({ response: response, body: body });
|
|
1027
|
-
} else {
|
|
1028
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
});
|
|
1032
|
-
});
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
*
|
|
1037
|
-
* @summary Export opt in list subscribers
|
|
1038
|
-
* @param listID
|
|
1039
|
-
*/
|
|
1040
|
-
public async exportOptInListSubscribers (listID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
1041
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/export/{listID}'
|
|
1042
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
1043
|
-
let localVarQueryParameters: any = {};
|
|
1044
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1045
|
-
const produces = ['application/json'];
|
|
1046
|
-
// give precedence to 'application/json'
|
|
1047
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1048
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1049
|
-
} else {
|
|
1050
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1051
|
-
}
|
|
1052
|
-
let localVarFormParams: any = {};
|
|
1053
|
-
|
|
1054
|
-
// verify required parameter 'listID' is not null or undefined
|
|
1055
|
-
if (listID === null || listID === undefined) {
|
|
1056
|
-
throw new Error('Required parameter listID was null or undefined when calling exportOptInListSubscribers.');
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1060
|
-
|
|
1061
|
-
let localVarUseFormData = false;
|
|
1062
|
-
|
|
1063
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1064
|
-
method: 'POST',
|
|
1065
|
-
qs: localVarQueryParameters,
|
|
1066
|
-
headers: localVarHeaderParams,
|
|
1067
|
-
uri: localVarPath,
|
|
1068
|
-
useQuerystring: this._useQuerystring,
|
|
1069
|
-
json: true,
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
let authenticationPromise = Promise.resolve();
|
|
1073
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1074
|
-
|
|
1075
|
-
let interceptorPromise = authenticationPromise;
|
|
1076
|
-
for (const interceptor of this.interceptors) {
|
|
1077
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
return interceptorPromise.then(() => {
|
|
1081
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1082
|
-
if (localVarUseFormData) {
|
|
1083
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1084
|
-
} else {
|
|
1085
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
1089
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1090
|
-
if (error) {
|
|
1091
|
-
reject(error);
|
|
1092
|
-
} else {
|
|
1093
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1094
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
1095
|
-
resolve({ response: response, body: body });
|
|
1096
|
-
} else {
|
|
1097
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
});
|
|
1101
|
-
});
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
*
|
|
1106
|
-
* @summary Get blocked TCPA entries
|
|
1107
|
-
* @param phoneNumberID
|
|
1108
|
-
*/
|
|
1109
|
-
public async fetchBlockedTCPAEntries (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<Tcpa>; }> {
|
|
1110
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/blocked/{phoneNumberID}'
|
|
1111
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1112
|
-
let localVarQueryParameters: any = {};
|
|
1113
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1114
|
-
const produces = ['application/json'];
|
|
1115
|
-
// give precedence to 'application/json'
|
|
1116
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1117
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1118
|
-
} else {
|
|
1119
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1120
|
-
}
|
|
1121
|
-
let localVarFormParams: any = {};
|
|
1122
|
-
|
|
1123
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
1124
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
1125
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchBlockedTCPAEntries.');
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1129
|
-
|
|
1130
|
-
let localVarUseFormData = false;
|
|
1131
|
-
|
|
1132
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1133
|
-
method: 'GET',
|
|
1134
|
-
qs: localVarQueryParameters,
|
|
1135
|
-
headers: localVarHeaderParams,
|
|
1136
|
-
uri: localVarPath,
|
|
1137
|
-
useQuerystring: this._useQuerystring,
|
|
1138
|
-
json: true,
|
|
1139
|
-
};
|
|
1140
|
-
|
|
1141
|
-
let authenticationPromise = Promise.resolve();
|
|
1142
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1143
|
-
|
|
1144
|
-
let interceptorPromise = authenticationPromise;
|
|
1145
|
-
for (const interceptor of this.interceptors) {
|
|
1146
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
return interceptorPromise.then(() => {
|
|
1150
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1151
|
-
if (localVarUseFormData) {
|
|
1152
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1153
|
-
} else {
|
|
1154
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<Tcpa>; }>((resolve, reject) => {
|
|
1158
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1159
|
-
if (error) {
|
|
1160
|
-
reject(error);
|
|
1161
|
-
} else {
|
|
1162
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1163
|
-
body = ObjectSerializer.deserialize(body, "Array<Tcpa>");
|
|
1164
|
-
resolve({ response: response, body: body });
|
|
1165
|
-
} else {
|
|
1166
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
});
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
/**
|
|
1174
|
-
*
|
|
1175
|
-
* @summary Get imported list recipients
|
|
1176
|
-
* @param listID
|
|
1177
|
-
*/
|
|
1178
|
-
public async fetchImportedListRecipients (listID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<ImportedListRecipient>; }> {
|
|
1179
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{listID}'
|
|
1180
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
1181
|
-
let localVarQueryParameters: any = {};
|
|
1182
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1183
|
-
const produces = ['application/json'];
|
|
1184
|
-
// give precedence to 'application/json'
|
|
1185
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1186
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1187
|
-
} else {
|
|
1188
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1189
|
-
}
|
|
1190
|
-
let localVarFormParams: any = {};
|
|
1191
|
-
|
|
1192
|
-
// verify required parameter 'listID' is not null or undefined
|
|
1193
|
-
if (listID === null || listID === undefined) {
|
|
1194
|
-
throw new Error('Required parameter listID was null or undefined when calling fetchImportedListRecipients.');
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1198
|
-
|
|
1199
|
-
let localVarUseFormData = false;
|
|
1200
|
-
|
|
1201
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1202
|
-
method: 'GET',
|
|
1203
|
-
qs: localVarQueryParameters,
|
|
1204
|
-
headers: localVarHeaderParams,
|
|
1205
|
-
uri: localVarPath,
|
|
1206
|
-
useQuerystring: this._useQuerystring,
|
|
1207
|
-
json: true,
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
let authenticationPromise = Promise.resolve();
|
|
1211
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1212
|
-
|
|
1213
|
-
let interceptorPromise = authenticationPromise;
|
|
1214
|
-
for (const interceptor of this.interceptors) {
|
|
1215
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
return interceptorPromise.then(() => {
|
|
1219
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1220
|
-
if (localVarUseFormData) {
|
|
1221
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1222
|
-
} else {
|
|
1223
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<ImportedListRecipient>; }>((resolve, reject) => {
|
|
1227
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1228
|
-
if (error) {
|
|
1229
|
-
reject(error);
|
|
1230
|
-
} else {
|
|
1231
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1232
|
-
body = ObjectSerializer.deserialize(body, "Array<ImportedListRecipient>");
|
|
1233
|
-
resolve({ response: response, body: body });
|
|
1234
|
-
} else {
|
|
1235
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
});
|
|
1239
|
-
});
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
/**
|
|
1243
|
-
*
|
|
1244
|
-
* @summary Get imported list recipients by page
|
|
1245
|
-
* @param listID
|
|
1246
|
-
* @param pageSize
|
|
1247
|
-
* @param pageNum
|
|
1248
|
-
* @param isArchiveIncluded
|
|
1249
|
-
*/
|
|
1250
|
-
public async fetchImportedListRecipientsByPage (listID: string, pageSize?: number, pageNum?: number, isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: FetchImportedListRecipientsByPage200Response; }> {
|
|
1251
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/page/{listID}'
|
|
1252
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
1253
|
-
let localVarQueryParameters: any = {};
|
|
1254
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1255
|
-
const produces = ['application/json'];
|
|
1256
|
-
// give precedence to 'application/json'
|
|
1257
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1258
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1259
|
-
} else {
|
|
1260
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1261
|
-
}
|
|
1262
|
-
let localVarFormParams: any = {};
|
|
1263
|
-
|
|
1264
|
-
// verify required parameter 'listID' is not null or undefined
|
|
1265
|
-
if (listID === null || listID === undefined) {
|
|
1266
|
-
throw new Error('Required parameter listID was null or undefined when calling fetchImportedListRecipientsByPage.');
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
if (pageSize !== undefined) {
|
|
1270
|
-
localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number");
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
if (pageNum !== undefined) {
|
|
1274
|
-
localVarQueryParameters['pageNum'] = ObjectSerializer.serialize(pageNum, "number");
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
if (isArchiveIncluded !== undefined) {
|
|
1278
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1282
|
-
|
|
1283
|
-
let localVarUseFormData = false;
|
|
1284
|
-
|
|
1285
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1286
|
-
method: 'GET',
|
|
1287
|
-
qs: localVarQueryParameters,
|
|
1288
|
-
headers: localVarHeaderParams,
|
|
1289
|
-
uri: localVarPath,
|
|
1290
|
-
useQuerystring: this._useQuerystring,
|
|
1291
|
-
json: true,
|
|
1292
|
-
};
|
|
1293
|
-
|
|
1294
|
-
let authenticationPromise = Promise.resolve();
|
|
1295
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1296
|
-
|
|
1297
|
-
let interceptorPromise = authenticationPromise;
|
|
1298
|
-
for (const interceptor of this.interceptors) {
|
|
1299
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
return interceptorPromise.then(() => {
|
|
1303
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1304
|
-
if (localVarUseFormData) {
|
|
1305
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1306
|
-
} else {
|
|
1307
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
return new Promise<{ response: http.IncomingMessage; body: FetchImportedListRecipientsByPage200Response; }>((resolve, reject) => {
|
|
1311
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1312
|
-
if (error) {
|
|
1313
|
-
reject(error);
|
|
1314
|
-
} else {
|
|
1315
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1316
|
-
body = ObjectSerializer.deserialize(body, "FetchImportedListRecipientsByPage200Response");
|
|
1317
|
-
resolve({ response: response, body: body });
|
|
1318
|
-
} else {
|
|
1319
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
});
|
|
1323
|
-
});
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
/**
|
|
1327
|
-
*
|
|
1328
|
-
* @summary Get all opt in list sources
|
|
1329
|
-
* @param isArchiveIncluded
|
|
1330
|
-
*/
|
|
1331
|
-
public async fetchOptInListSources (isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
1332
|
-
const localVarPath = this.basePath + '/v2/sms/optInListSources/all';
|
|
1333
|
-
let localVarQueryParameters: any = {};
|
|
1334
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1335
|
-
const produces = ['application/json'];
|
|
1336
|
-
// give precedence to 'application/json'
|
|
1337
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1338
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1339
|
-
} else {
|
|
1340
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1341
|
-
}
|
|
1342
|
-
let localVarFormParams: any = {};
|
|
1343
|
-
|
|
1344
|
-
if (isArchiveIncluded !== undefined) {
|
|
1345
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1349
|
-
|
|
1350
|
-
let localVarUseFormData = false;
|
|
1351
|
-
|
|
1352
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1353
|
-
method: 'GET',
|
|
1354
|
-
qs: localVarQueryParameters,
|
|
1355
|
-
headers: localVarHeaderParams,
|
|
1356
|
-
uri: localVarPath,
|
|
1357
|
-
useQuerystring: this._useQuerystring,
|
|
1358
|
-
json: true,
|
|
1359
|
-
};
|
|
1360
|
-
|
|
1361
|
-
let authenticationPromise = Promise.resolve();
|
|
1362
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1363
|
-
|
|
1364
|
-
let interceptorPromise = authenticationPromise;
|
|
1365
|
-
for (const interceptor of this.interceptors) {
|
|
1366
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
return interceptorPromise.then(() => {
|
|
1370
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1371
|
-
if (localVarUseFormData) {
|
|
1372
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1373
|
-
} else {
|
|
1374
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
1378
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1379
|
-
if (error) {
|
|
1380
|
-
reject(error);
|
|
1381
|
-
} else {
|
|
1382
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1383
|
-
body = ObjectSerializer.deserialize(body, "any");
|
|
1384
|
-
resolve({ response: response, body: body });
|
|
1385
|
-
} else {
|
|
1386
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
});
|
|
1390
|
-
});
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
/**
|
|
1394
|
-
*
|
|
1395
|
-
* @summary Get opt in list subscribers
|
|
1396
|
-
* @param listID
|
|
1397
|
-
* @param isSubscribed
|
|
1398
|
-
* @param isPendingAge21Verification
|
|
1399
|
-
* @param isArchiveIncluded
|
|
1400
|
-
*/
|
|
1401
|
-
public async fetchOptInListSubscribers (listID: string, isSubscribed?: boolean, isPendingAge21Verification?: boolean, isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OptInListSubscriber>; }> {
|
|
1402
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/{listID}'
|
|
1403
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
1404
|
-
let localVarQueryParameters: any = {};
|
|
1405
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1406
|
-
const produces = ['application/json'];
|
|
1407
|
-
// give precedence to 'application/json'
|
|
1408
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1409
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1410
|
-
} else {
|
|
1411
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1412
|
-
}
|
|
1413
|
-
let localVarFormParams: any = {};
|
|
1414
|
-
|
|
1415
|
-
// verify required parameter 'listID' is not null or undefined
|
|
1416
|
-
if (listID === null || listID === undefined) {
|
|
1417
|
-
throw new Error('Required parameter listID was null or undefined when calling fetchOptInListSubscribers.');
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
if (isSubscribed !== undefined) {
|
|
1421
|
-
localVarQueryParameters['isSubscribed'] = ObjectSerializer.serialize(isSubscribed, "boolean");
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
if (isPendingAge21Verification !== undefined) {
|
|
1425
|
-
localVarQueryParameters['isPendingAge21Verification'] = ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
if (isArchiveIncluded !== undefined) {
|
|
1429
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1433
|
-
|
|
1434
|
-
let localVarUseFormData = false;
|
|
1435
|
-
|
|
1436
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1437
|
-
method: 'GET',
|
|
1438
|
-
qs: localVarQueryParameters,
|
|
1439
|
-
headers: localVarHeaderParams,
|
|
1440
|
-
uri: localVarPath,
|
|
1441
|
-
useQuerystring: this._useQuerystring,
|
|
1442
|
-
json: true,
|
|
1443
|
-
};
|
|
1444
|
-
|
|
1445
|
-
let authenticationPromise = Promise.resolve();
|
|
1446
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1447
|
-
|
|
1448
|
-
let interceptorPromise = authenticationPromise;
|
|
1449
|
-
for (const interceptor of this.interceptors) {
|
|
1450
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
return interceptorPromise.then(() => {
|
|
1454
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1455
|
-
if (localVarUseFormData) {
|
|
1456
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1457
|
-
} else {
|
|
1458
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OptInListSubscriber>; }>((resolve, reject) => {
|
|
1462
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1463
|
-
if (error) {
|
|
1464
|
-
reject(error);
|
|
1465
|
-
} else {
|
|
1466
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1467
|
-
body = ObjectSerializer.deserialize(body, "Array<OptInListSubscriber>");
|
|
1468
|
-
resolve({ response: response, body: body });
|
|
1469
|
-
} else {
|
|
1470
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
|
-
});
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
/**
|
|
1478
|
-
*
|
|
1479
|
-
* @summary Get opt in list subscribers by page
|
|
1480
|
-
* @param listID
|
|
1481
|
-
* @param pageSize
|
|
1482
|
-
* @param pageNum
|
|
1483
|
-
* @param isSubscribed
|
|
1484
|
-
* @param isPendingAge21Verification
|
|
1485
|
-
* @param isArchiveIncluded
|
|
1486
|
-
*/
|
|
1487
|
-
public async fetchOptInListSubscribersByPage (listID: string, pageSize?: number, pageNum?: number, isSubscribed?: boolean, isPendingAge21Verification?: boolean, isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: FetchOptInListSubscribersByPage200Response; }> {
|
|
1488
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/page/{listID}'
|
|
1489
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
1490
|
-
let localVarQueryParameters: any = {};
|
|
1491
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1492
|
-
const produces = ['application/json'];
|
|
1493
|
-
// give precedence to 'application/json'
|
|
1494
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1495
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1496
|
-
} else {
|
|
1497
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1498
|
-
}
|
|
1499
|
-
let localVarFormParams: any = {};
|
|
1500
|
-
|
|
1501
|
-
// verify required parameter 'listID' is not null or undefined
|
|
1502
|
-
if (listID === null || listID === undefined) {
|
|
1503
|
-
throw new Error('Required parameter listID was null or undefined when calling fetchOptInListSubscribersByPage.');
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
if (pageSize !== undefined) {
|
|
1507
|
-
localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number");
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
if (pageNum !== undefined) {
|
|
1511
|
-
localVarQueryParameters['pageNum'] = ObjectSerializer.serialize(pageNum, "number");
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
if (isSubscribed !== undefined) {
|
|
1515
|
-
localVarQueryParameters['isSubscribed'] = ObjectSerializer.serialize(isSubscribed, "boolean");
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
if (isPendingAge21Verification !== undefined) {
|
|
1519
|
-
localVarQueryParameters['isPendingAge21Verification'] = ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
if (isArchiveIncluded !== undefined) {
|
|
1523
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1527
|
-
|
|
1528
|
-
let localVarUseFormData = false;
|
|
1529
|
-
|
|
1530
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1531
|
-
method: 'GET',
|
|
1532
|
-
qs: localVarQueryParameters,
|
|
1533
|
-
headers: localVarHeaderParams,
|
|
1534
|
-
uri: localVarPath,
|
|
1535
|
-
useQuerystring: this._useQuerystring,
|
|
1536
|
-
json: true,
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
|
-
let authenticationPromise = Promise.resolve();
|
|
1540
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1541
|
-
|
|
1542
|
-
let interceptorPromise = authenticationPromise;
|
|
1543
|
-
for (const interceptor of this.interceptors) {
|
|
1544
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
return interceptorPromise.then(() => {
|
|
1548
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1549
|
-
if (localVarUseFormData) {
|
|
1550
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1551
|
-
} else {
|
|
1552
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
return new Promise<{ response: http.IncomingMessage; body: FetchOptInListSubscribersByPage200Response; }>((resolve, reject) => {
|
|
1556
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1557
|
-
if (error) {
|
|
1558
|
-
reject(error);
|
|
1559
|
-
} else {
|
|
1560
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1561
|
-
body = ObjectSerializer.deserialize(body, "FetchOptInListSubscribersByPage200Response");
|
|
1562
|
-
resolve({ response: response, body: body });
|
|
1563
|
-
} else {
|
|
1564
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
});
|
|
1568
|
-
});
|
|
1569
|
-
});
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
*
|
|
1573
|
-
* @summary Get opt in lists
|
|
1574
|
-
* @param phoneNumberID
|
|
1575
|
-
*/
|
|
1576
|
-
public async fetchOptInListsAssociatedWithPhoneNumber (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OptInList>; }> {
|
|
1577
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/lists/{phoneNumberID}'
|
|
1578
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1579
|
-
let localVarQueryParameters: any = {};
|
|
1580
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1581
|
-
const produces = ['application/json'];
|
|
1582
|
-
// give precedence to 'application/json'
|
|
1583
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1584
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1585
|
-
} else {
|
|
1586
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1587
|
-
}
|
|
1588
|
-
let localVarFormParams: any = {};
|
|
1589
|
-
|
|
1590
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
1591
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
1592
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOptInListsAssociatedWithPhoneNumber.');
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1596
|
-
|
|
1597
|
-
let localVarUseFormData = false;
|
|
1598
|
-
|
|
1599
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1600
|
-
method: 'GET',
|
|
1601
|
-
qs: localVarQueryParameters,
|
|
1602
|
-
headers: localVarHeaderParams,
|
|
1603
|
-
uri: localVarPath,
|
|
1604
|
-
useQuerystring: this._useQuerystring,
|
|
1605
|
-
json: true,
|
|
1606
|
-
};
|
|
1607
|
-
|
|
1608
|
-
let authenticationPromise = Promise.resolve();
|
|
1609
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1610
|
-
|
|
1611
|
-
let interceptorPromise = authenticationPromise;
|
|
1612
|
-
for (const interceptor of this.interceptors) {
|
|
1613
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
return interceptorPromise.then(() => {
|
|
1617
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1618
|
-
if (localVarUseFormData) {
|
|
1619
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1620
|
-
} else {
|
|
1621
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OptInList>; }>((resolve, reject) => {
|
|
1625
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1626
|
-
if (error) {
|
|
1627
|
-
reject(error);
|
|
1628
|
-
} else {
|
|
1629
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1630
|
-
body = ObjectSerializer.deserialize(body, "Array<OptInList>");
|
|
1631
|
-
resolve({ response: response, body: body });
|
|
1632
|
-
} else {
|
|
1633
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
});
|
|
1637
|
-
});
|
|
1638
|
-
});
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
*
|
|
1642
|
-
* @summary Get opt in source subscribers
|
|
1643
|
-
* @param sourceID
|
|
1644
|
-
* @param isSubscribed
|
|
1645
|
-
* @param isPendingAge21Verification
|
|
1646
|
-
* @param isArchiveIncluded
|
|
1647
|
-
*/
|
|
1648
|
-
public async fetchOptInSourceSubscribers (sourceID: string, isSubscribed?: boolean, isPendingAge21Verification?: boolean, isArchiveIncluded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OptInListSubscriber>; }> {
|
|
1649
|
-
const localVarPath = this.basePath + '/v2/sms/optInSource/subscribers/{sourceID}'
|
|
1650
|
-
.replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
|
|
1651
|
-
let localVarQueryParameters: any = {};
|
|
1652
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1653
|
-
const produces = ['application/json'];
|
|
1654
|
-
// give precedence to 'application/json'
|
|
1655
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1656
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1657
|
-
} else {
|
|
1658
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1659
|
-
}
|
|
1660
|
-
let localVarFormParams: any = {};
|
|
1661
|
-
|
|
1662
|
-
// verify required parameter 'sourceID' is not null or undefined
|
|
1663
|
-
if (sourceID === null || sourceID === undefined) {
|
|
1664
|
-
throw new Error('Required parameter sourceID was null or undefined when calling fetchOptInSourceSubscribers.');
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
if (isSubscribed !== undefined) {
|
|
1668
|
-
localVarQueryParameters['isSubscribed'] = ObjectSerializer.serialize(isSubscribed, "boolean");
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
if (isPendingAge21Verification !== undefined) {
|
|
1672
|
-
localVarQueryParameters['isPendingAge21Verification'] = ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
if (isArchiveIncluded !== undefined) {
|
|
1676
|
-
localVarQueryParameters['isArchiveIncluded'] = ObjectSerializer.serialize(isArchiveIncluded, "boolean");
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1680
|
-
|
|
1681
|
-
let localVarUseFormData = false;
|
|
1682
|
-
|
|
1683
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1684
|
-
method: 'GET',
|
|
1685
|
-
qs: localVarQueryParameters,
|
|
1686
|
-
headers: localVarHeaderParams,
|
|
1687
|
-
uri: localVarPath,
|
|
1688
|
-
useQuerystring: this._useQuerystring,
|
|
1689
|
-
json: true,
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1692
|
-
let authenticationPromise = Promise.resolve();
|
|
1693
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1694
|
-
|
|
1695
|
-
let interceptorPromise = authenticationPromise;
|
|
1696
|
-
for (const interceptor of this.interceptors) {
|
|
1697
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
return interceptorPromise.then(() => {
|
|
1701
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1702
|
-
if (localVarUseFormData) {
|
|
1703
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1704
|
-
} else {
|
|
1705
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OptInListSubscriber>; }>((resolve, reject) => {
|
|
1709
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1710
|
-
if (error) {
|
|
1711
|
-
reject(error);
|
|
1712
|
-
} else {
|
|
1713
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1714
|
-
body = ObjectSerializer.deserialize(body, "Array<OptInListSubscriber>");
|
|
1715
|
-
resolve({ response: response, body: body });
|
|
1716
|
-
} else {
|
|
1717
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
});
|
|
1721
|
-
});
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
/**
|
|
1725
|
-
*
|
|
1726
|
-
* @summary Get opt in sources
|
|
1727
|
-
* @param phoneNumberID
|
|
1728
|
-
*/
|
|
1729
|
-
public async fetchOptInSourcesAssociatedWithPhoneNumber (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OptInListSource>; }> {
|
|
1730
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/sources/{phoneNumberID}'
|
|
1731
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1732
|
-
let localVarQueryParameters: any = {};
|
|
1733
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1734
|
-
const produces = ['application/json'];
|
|
1735
|
-
// give precedence to 'application/json'
|
|
1736
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1737
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1738
|
-
} else {
|
|
1739
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1740
|
-
}
|
|
1741
|
-
let localVarFormParams: any = {};
|
|
1742
|
-
|
|
1743
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
1744
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
1745
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOptInSourcesAssociatedWithPhoneNumber.');
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1749
|
-
|
|
1750
|
-
let localVarUseFormData = false;
|
|
1751
|
-
|
|
1752
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1753
|
-
method: 'GET',
|
|
1754
|
-
qs: localVarQueryParameters,
|
|
1755
|
-
headers: localVarHeaderParams,
|
|
1756
|
-
uri: localVarPath,
|
|
1757
|
-
useQuerystring: this._useQuerystring,
|
|
1758
|
-
json: true,
|
|
1759
|
-
};
|
|
1760
|
-
|
|
1761
|
-
let authenticationPromise = Promise.resolve();
|
|
1762
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1763
|
-
|
|
1764
|
-
let interceptorPromise = authenticationPromise;
|
|
1765
|
-
for (const interceptor of this.interceptors) {
|
|
1766
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
return interceptorPromise.then(() => {
|
|
1770
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1771
|
-
if (localVarUseFormData) {
|
|
1772
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1773
|
-
} else {
|
|
1774
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1777
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OptInListSource>; }>((resolve, reject) => {
|
|
1778
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1779
|
-
if (error) {
|
|
1780
|
-
reject(error);
|
|
1781
|
-
} else {
|
|
1782
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1783
|
-
body = ObjectSerializer.deserialize(body, "Array<OptInListSource>");
|
|
1784
|
-
resolve({ response: response, body: body });
|
|
1785
|
-
} else {
|
|
1786
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
});
|
|
1790
|
-
});
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
*
|
|
1795
|
-
* @summary Get outbound SMS
|
|
1796
|
-
* @param phoneNumberID
|
|
1797
|
-
* @param toPhoneNumber
|
|
1798
|
-
* @param status
|
|
1799
|
-
* @param paymentObjectBroadcastID
|
|
1800
|
-
*/
|
|
1801
|
-
public async fetchOutboundSMS (phoneNumberID: string, toPhoneNumber?: string, status?: string, paymentObjectBroadcastID?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<OutboundSMS>; }> {
|
|
1802
|
-
const localVarPath = this.basePath + '/v2/sms/outbound/{phoneNumberID}'
|
|
1803
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1804
|
-
let localVarQueryParameters: any = {};
|
|
1805
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1806
|
-
const produces = ['application/json'];
|
|
1807
|
-
// give precedence to 'application/json'
|
|
1808
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1809
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1810
|
-
} else {
|
|
1811
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1812
|
-
}
|
|
1813
|
-
let localVarFormParams: any = {};
|
|
1814
|
-
|
|
1815
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
1816
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
1817
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOutboundSMS.');
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
if (toPhoneNumber !== undefined) {
|
|
1821
|
-
localVarQueryParameters['toPhoneNumber'] = ObjectSerializer.serialize(toPhoneNumber, "string");
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
if (status !== undefined) {
|
|
1825
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "string");
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
if (paymentObjectBroadcastID !== undefined) {
|
|
1829
|
-
localVarQueryParameters['paymentObjectBroadcastID'] = ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1833
|
-
|
|
1834
|
-
let localVarUseFormData = false;
|
|
1835
|
-
|
|
1836
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1837
|
-
method: 'GET',
|
|
1838
|
-
qs: localVarQueryParameters,
|
|
1839
|
-
headers: localVarHeaderParams,
|
|
1840
|
-
uri: localVarPath,
|
|
1841
|
-
useQuerystring: this._useQuerystring,
|
|
1842
|
-
json: true,
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
let authenticationPromise = Promise.resolve();
|
|
1846
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1847
|
-
|
|
1848
|
-
let interceptorPromise = authenticationPromise;
|
|
1849
|
-
for (const interceptor of this.interceptors) {
|
|
1850
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
return interceptorPromise.then(() => {
|
|
1854
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1855
|
-
if (localVarUseFormData) {
|
|
1856
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1857
|
-
} else {
|
|
1858
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<OutboundSMS>; }>((resolve, reject) => {
|
|
1862
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1863
|
-
if (error) {
|
|
1864
|
-
reject(error);
|
|
1865
|
-
} else {
|
|
1866
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1867
|
-
body = ObjectSerializer.deserialize(body, "Array<OutboundSMS>");
|
|
1868
|
-
resolve({ response: response, body: body });
|
|
1869
|
-
} else {
|
|
1870
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
});
|
|
1874
|
-
});
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
/**
|
|
1878
|
-
*
|
|
1879
|
-
* @summary Get outbound SMSes by page
|
|
1880
|
-
* @param phoneNumberID
|
|
1881
|
-
* @param toPhoneNumber
|
|
1882
|
-
* @param paymentObjectBroadcastID
|
|
1883
|
-
* @param pageSize
|
|
1884
|
-
* @param pageNum
|
|
1885
|
-
* @param status
|
|
1886
|
-
* @param startDate
|
|
1887
|
-
* @param endDate
|
|
1888
|
-
*/
|
|
1889
|
-
public async fetchOutboundSMSByPage (phoneNumberID: string, toPhoneNumber?: string, paymentObjectBroadcastID?: string, pageSize?: number, pageNum?: number, status?: SSOutboundStatuses, startDate?: Date, endDate?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: FetchOutboundSMSByPage200Response; }> {
|
|
1890
|
-
const localVarPath = this.basePath + '/v2/sms/outbound/page/{phoneNumberID}'
|
|
1891
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1892
|
-
let localVarQueryParameters: any = {};
|
|
1893
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1894
|
-
const produces = ['application/json'];
|
|
1895
|
-
// give precedence to 'application/json'
|
|
1896
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1897
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1898
|
-
} else {
|
|
1899
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1900
|
-
}
|
|
1901
|
-
let localVarFormParams: any = {};
|
|
1902
|
-
|
|
1903
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
1904
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
1905
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOutboundSMSByPage.');
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
if (toPhoneNumber !== undefined) {
|
|
1909
|
-
localVarQueryParameters['toPhoneNumber'] = ObjectSerializer.serialize(toPhoneNumber, "string");
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
if (paymentObjectBroadcastID !== undefined) {
|
|
1913
|
-
localVarQueryParameters['paymentObjectBroadcastID'] = ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
if (pageSize !== undefined) {
|
|
1917
|
-
localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number");
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
if (pageNum !== undefined) {
|
|
1921
|
-
localVarQueryParameters['pageNum'] = ObjectSerializer.serialize(pageNum, "number");
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
if (status !== undefined) {
|
|
1925
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "SSOutboundStatuses");
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
if (startDate !== undefined) {
|
|
1929
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
if (endDate !== undefined) {
|
|
1933
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1937
|
-
|
|
1938
|
-
let localVarUseFormData = false;
|
|
1939
|
-
|
|
1940
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
1941
|
-
method: 'GET',
|
|
1942
|
-
qs: localVarQueryParameters,
|
|
1943
|
-
headers: localVarHeaderParams,
|
|
1944
|
-
uri: localVarPath,
|
|
1945
|
-
useQuerystring: this._useQuerystring,
|
|
1946
|
-
json: true,
|
|
1947
|
-
};
|
|
1948
|
-
|
|
1949
|
-
let authenticationPromise = Promise.resolve();
|
|
1950
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1951
|
-
|
|
1952
|
-
let interceptorPromise = authenticationPromise;
|
|
1953
|
-
for (const interceptor of this.interceptors) {
|
|
1954
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
return interceptorPromise.then(() => {
|
|
1958
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1959
|
-
if (localVarUseFormData) {
|
|
1960
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1961
|
-
} else {
|
|
1962
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
return new Promise<{ response: http.IncomingMessage; body: FetchOutboundSMSByPage200Response; }>((resolve, reject) => {
|
|
1966
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1967
|
-
if (error) {
|
|
1968
|
-
reject(error);
|
|
1969
|
-
} else {
|
|
1970
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1971
|
-
body = ObjectSerializer.deserialize(body, "FetchOutboundSMSByPage200Response");
|
|
1972
|
-
resolve({ response: response, body: body });
|
|
1973
|
-
} else {
|
|
1974
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
});
|
|
1978
|
-
});
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
/**
|
|
1982
|
-
*
|
|
1983
|
-
* @summary Get payment object broadcasts
|
|
1984
|
-
* @param phoneNumberID
|
|
1985
|
-
*/
|
|
1986
|
-
public async fetchPaymentObjectBroadcasts (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<StaticVoucherCampaignBroadcast>; }> {
|
|
1987
|
-
const localVarPath = this.basePath + '/v2/sms/paymentObjectBroadcasts/{phoneNumberID}'
|
|
1988
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
1989
|
-
let localVarQueryParameters: any = {};
|
|
1990
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1991
|
-
const produces = ['application/json'];
|
|
1992
|
-
// give precedence to 'application/json'
|
|
1993
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1994
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1995
|
-
} else {
|
|
1996
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1997
|
-
}
|
|
1998
|
-
let localVarFormParams: any = {};
|
|
1999
|
-
|
|
2000
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
2001
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
2002
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchPaymentObjectBroadcasts.');
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2006
|
-
|
|
2007
|
-
let localVarUseFormData = false;
|
|
2008
|
-
|
|
2009
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2010
|
-
method: 'GET',
|
|
2011
|
-
qs: localVarQueryParameters,
|
|
2012
|
-
headers: localVarHeaderParams,
|
|
2013
|
-
uri: localVarPath,
|
|
2014
|
-
useQuerystring: this._useQuerystring,
|
|
2015
|
-
json: true,
|
|
2016
|
-
};
|
|
2017
|
-
|
|
2018
|
-
let authenticationPromise = Promise.resolve();
|
|
2019
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2020
|
-
|
|
2021
|
-
let interceptorPromise = authenticationPromise;
|
|
2022
|
-
for (const interceptor of this.interceptors) {
|
|
2023
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
return interceptorPromise.then(() => {
|
|
2027
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2028
|
-
if (localVarUseFormData) {
|
|
2029
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2030
|
-
} else {
|
|
2031
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2032
|
-
}
|
|
2033
|
-
}
|
|
2034
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<StaticVoucherCampaignBroadcast>; }>((resolve, reject) => {
|
|
2035
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2036
|
-
if (error) {
|
|
2037
|
-
reject(error);
|
|
2038
|
-
} else {
|
|
2039
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2040
|
-
body = ObjectSerializer.deserialize(body, "Array<StaticVoucherCampaignBroadcast>");
|
|
2041
|
-
resolve({ response: response, body: body });
|
|
2042
|
-
} else {
|
|
2043
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
});
|
|
2047
|
-
});
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
/**
|
|
2051
|
-
*
|
|
2052
|
-
* @summary Get SMS Agreement
|
|
2053
|
-
*/
|
|
2054
|
-
public async fetchSMSAgreement (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
2055
|
-
const localVarPath = this.basePath + '/v2/sms/agreement';
|
|
2056
|
-
let localVarQueryParameters: any = {};
|
|
2057
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2058
|
-
const produces = ['application/json'];
|
|
2059
|
-
// give precedence to 'application/json'
|
|
2060
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2061
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2062
|
-
} else {
|
|
2063
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2064
|
-
}
|
|
2065
|
-
let localVarFormParams: any = {};
|
|
2066
|
-
|
|
2067
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2068
|
-
|
|
2069
|
-
let localVarUseFormData = false;
|
|
2070
|
-
|
|
2071
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2072
|
-
method: 'GET',
|
|
2073
|
-
qs: localVarQueryParameters,
|
|
2074
|
-
headers: localVarHeaderParams,
|
|
2075
|
-
uri: localVarPath,
|
|
2076
|
-
useQuerystring: this._useQuerystring,
|
|
2077
|
-
json: true,
|
|
2078
|
-
};
|
|
2079
|
-
|
|
2080
|
-
let authenticationPromise = Promise.resolve();
|
|
2081
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2082
|
-
|
|
2083
|
-
let interceptorPromise = authenticationPromise;
|
|
2084
|
-
for (const interceptor of this.interceptors) {
|
|
2085
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
return interceptorPromise.then(() => {
|
|
2089
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2090
|
-
if (localVarUseFormData) {
|
|
2091
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2092
|
-
} else {
|
|
2093
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
2097
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2098
|
-
if (error) {
|
|
2099
|
-
reject(error);
|
|
2100
|
-
} else {
|
|
2101
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2102
|
-
body = ObjectSerializer.deserialize(body, "any");
|
|
2103
|
-
resolve({ response: response, body: body });
|
|
2104
|
-
} else {
|
|
2105
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
});
|
|
2109
|
-
});
|
|
2110
|
-
});
|
|
2111
|
-
}
|
|
2112
|
-
/**
|
|
2113
|
-
*
|
|
2114
|
-
* @summary Import imported list recipients
|
|
2115
|
-
* @param importedListID
|
|
2116
|
-
* @param wTEmployeeImportRecords
|
|
2117
|
-
*/
|
|
2118
|
-
public async importImportedListRecipients (importedListID: string, wTEmployeeImportRecords: WTEmployeeImportRecords, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2119
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/import/{importedListID}'
|
|
2120
|
-
.replace('{' + 'importedListID' + '}', encodeURIComponent(String(importedListID)));
|
|
2121
|
-
let localVarQueryParameters: any = {};
|
|
2122
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2123
|
-
const produces = ['application/json'];
|
|
2124
|
-
// give precedence to 'application/json'
|
|
2125
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2126
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2127
|
-
} else {
|
|
2128
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2129
|
-
}
|
|
2130
|
-
let localVarFormParams: any = {};
|
|
2131
|
-
|
|
2132
|
-
// verify required parameter 'importedListID' is not null or undefined
|
|
2133
|
-
if (importedListID === null || importedListID === undefined) {
|
|
2134
|
-
throw new Error('Required parameter importedListID was null or undefined when calling importImportedListRecipients.');
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
// verify required parameter 'wTEmployeeImportRecords' is not null or undefined
|
|
2138
|
-
if (wTEmployeeImportRecords === null || wTEmployeeImportRecords === undefined) {
|
|
2139
|
-
throw new Error('Required parameter wTEmployeeImportRecords was null or undefined when calling importImportedListRecipients.');
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2143
|
-
|
|
2144
|
-
let localVarUseFormData = false;
|
|
2145
|
-
|
|
2146
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2147
|
-
method: 'POST',
|
|
2148
|
-
qs: localVarQueryParameters,
|
|
2149
|
-
headers: localVarHeaderParams,
|
|
2150
|
-
uri: localVarPath,
|
|
2151
|
-
useQuerystring: this._useQuerystring,
|
|
2152
|
-
json: true,
|
|
2153
|
-
body: ObjectSerializer.serialize(wTEmployeeImportRecords, "WTEmployeeImportRecords")
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
let authenticationPromise = Promise.resolve();
|
|
2157
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2158
|
-
|
|
2159
|
-
let interceptorPromise = authenticationPromise;
|
|
2160
|
-
for (const interceptor of this.interceptors) {
|
|
2161
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
return interceptorPromise.then(() => {
|
|
2165
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2166
|
-
if (localVarUseFormData) {
|
|
2167
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2168
|
-
} else {
|
|
2169
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2173
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2174
|
-
if (error) {
|
|
2175
|
-
reject(error);
|
|
2176
|
-
} else {
|
|
2177
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2178
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2179
|
-
resolve({ response: response, body: body });
|
|
2180
|
-
} else {
|
|
2181
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
});
|
|
2185
|
-
});
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
|
-
/**
|
|
2189
|
-
*
|
|
2190
|
-
* @summary Import imported list recipients from a given membership tier
|
|
2191
|
-
* @param wTImportedListRecipientFromMembershipTierImport
|
|
2192
|
-
*/
|
|
2193
|
-
public async importImportedListRecipientsFromMembershipTier (wTImportedListRecipientFromMembershipTierImport: WTImportedListRecipientFromMembershipTierImport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2194
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/import-from-tier';
|
|
2195
|
-
let localVarQueryParameters: any = {};
|
|
2196
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2197
|
-
const produces = ['application/json'];
|
|
2198
|
-
// give precedence to 'application/json'
|
|
2199
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2200
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2201
|
-
} else {
|
|
2202
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2203
|
-
}
|
|
2204
|
-
let localVarFormParams: any = {};
|
|
2205
|
-
|
|
2206
|
-
// verify required parameter 'wTImportedListRecipientFromMembershipTierImport' is not null or undefined
|
|
2207
|
-
if (wTImportedListRecipientFromMembershipTierImport === null || wTImportedListRecipientFromMembershipTierImport === undefined) {
|
|
2208
|
-
throw new Error('Required parameter wTImportedListRecipientFromMembershipTierImport was null or undefined when calling importImportedListRecipientsFromMembershipTier.');
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2212
|
-
|
|
2213
|
-
let localVarUseFormData = false;
|
|
2214
|
-
|
|
2215
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2216
|
-
method: 'POST',
|
|
2217
|
-
qs: localVarQueryParameters,
|
|
2218
|
-
headers: localVarHeaderParams,
|
|
2219
|
-
uri: localVarPath,
|
|
2220
|
-
useQuerystring: this._useQuerystring,
|
|
2221
|
-
json: true,
|
|
2222
|
-
body: ObjectSerializer.serialize(wTImportedListRecipientFromMembershipTierImport, "WTImportedListRecipientFromMembershipTierImport")
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
|
-
let authenticationPromise = Promise.resolve();
|
|
2226
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2227
|
-
|
|
2228
|
-
let interceptorPromise = authenticationPromise;
|
|
2229
|
-
for (const interceptor of this.interceptors) {
|
|
2230
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
return interceptorPromise.then(() => {
|
|
2234
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2235
|
-
if (localVarUseFormData) {
|
|
2236
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2237
|
-
} else {
|
|
2238
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2242
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2243
|
-
if (error) {
|
|
2244
|
-
reject(error);
|
|
2245
|
-
} else {
|
|
2246
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2247
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2248
|
-
resolve({ response: response, body: body });
|
|
2249
|
-
} else {
|
|
2250
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
});
|
|
2254
|
-
});
|
|
2255
|
-
});
|
|
2256
|
-
}
|
|
2257
|
-
/**
|
|
2258
|
-
*
|
|
2259
|
-
* @summary Import opt in list subscribers
|
|
2260
|
-
* @param listID
|
|
2261
|
-
* @param wTSMSImportOptInListSubscribers
|
|
2262
|
-
*/
|
|
2263
|
-
public async importOptInListSubscribers (listID: string, wTSMSImportOptInListSubscribers: WTSMSImportOptInListSubscribers, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2264
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/import/{listID}'
|
|
2265
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
2266
|
-
let localVarQueryParameters: any = {};
|
|
2267
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2268
|
-
const produces = ['application/json'];
|
|
2269
|
-
// give precedence to 'application/json'
|
|
2270
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2271
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2272
|
-
} else {
|
|
2273
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2274
|
-
}
|
|
2275
|
-
let localVarFormParams: any = {};
|
|
2276
|
-
|
|
2277
|
-
// verify required parameter 'listID' is not null or undefined
|
|
2278
|
-
if (listID === null || listID === undefined) {
|
|
2279
|
-
throw new Error('Required parameter listID was null or undefined when calling importOptInListSubscribers.');
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
// verify required parameter 'wTSMSImportOptInListSubscribers' is not null or undefined
|
|
2283
|
-
if (wTSMSImportOptInListSubscribers === null || wTSMSImportOptInListSubscribers === undefined) {
|
|
2284
|
-
throw new Error('Required parameter wTSMSImportOptInListSubscribers was null or undefined when calling importOptInListSubscribers.');
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2288
|
-
|
|
2289
|
-
let localVarUseFormData = false;
|
|
2290
|
-
|
|
2291
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2292
|
-
method: 'POST',
|
|
2293
|
-
qs: localVarQueryParameters,
|
|
2294
|
-
headers: localVarHeaderParams,
|
|
2295
|
-
uri: localVarPath,
|
|
2296
|
-
useQuerystring: this._useQuerystring,
|
|
2297
|
-
json: true,
|
|
2298
|
-
body: ObjectSerializer.serialize(wTSMSImportOptInListSubscribers, "WTSMSImportOptInListSubscribers")
|
|
2299
|
-
};
|
|
2300
|
-
|
|
2301
|
-
let authenticationPromise = Promise.resolve();
|
|
2302
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2303
|
-
|
|
2304
|
-
let interceptorPromise = authenticationPromise;
|
|
2305
|
-
for (const interceptor of this.interceptors) {
|
|
2306
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
return interceptorPromise.then(() => {
|
|
2310
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2311
|
-
if (localVarUseFormData) {
|
|
2312
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2313
|
-
} else {
|
|
2314
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2318
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2319
|
-
if (error) {
|
|
2320
|
-
reject(error);
|
|
2321
|
-
} else {
|
|
2322
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2323
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2324
|
-
resolve({ response: response, body: body });
|
|
2325
|
-
} else {
|
|
2326
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
});
|
|
2330
|
-
});
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
/**
|
|
2334
|
-
*
|
|
2335
|
-
* @summary Restore phone number
|
|
2336
|
-
* @param phoneNumberID
|
|
2337
|
-
*/
|
|
2338
|
-
public async restorePhoneNumber (phoneNumberID: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PhoneNumber; }> {
|
|
2339
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
|
|
2340
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
2341
|
-
let localVarQueryParameters: any = {};
|
|
2342
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2343
|
-
const produces = ['application/json'];
|
|
2344
|
-
// give precedence to 'application/json'
|
|
2345
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2346
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2347
|
-
} else {
|
|
2348
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2349
|
-
}
|
|
2350
|
-
let localVarFormParams: any = {};
|
|
2351
|
-
|
|
2352
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
2353
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
2354
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling restorePhoneNumber.');
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2358
|
-
|
|
2359
|
-
let localVarUseFormData = false;
|
|
2360
|
-
|
|
2361
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2362
|
-
method: 'PATCH',
|
|
2363
|
-
qs: localVarQueryParameters,
|
|
2364
|
-
headers: localVarHeaderParams,
|
|
2365
|
-
uri: localVarPath,
|
|
2366
|
-
useQuerystring: this._useQuerystring,
|
|
2367
|
-
json: true,
|
|
2368
|
-
};
|
|
2369
|
-
|
|
2370
|
-
let authenticationPromise = Promise.resolve();
|
|
2371
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2372
|
-
|
|
2373
|
-
let interceptorPromise = authenticationPromise;
|
|
2374
|
-
for (const interceptor of this.interceptors) {
|
|
2375
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
return interceptorPromise.then(() => {
|
|
2379
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2380
|
-
if (localVarUseFormData) {
|
|
2381
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2382
|
-
} else {
|
|
2383
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
return new Promise<{ response: http.IncomingMessage; body: PhoneNumber; }>((resolve, reject) => {
|
|
2387
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2388
|
-
if (error) {
|
|
2389
|
-
reject(error);
|
|
2390
|
-
} else {
|
|
2391
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2392
|
-
body = ObjectSerializer.deserialize(body, "PhoneNumber");
|
|
2393
|
-
resolve({ response: response, body: body });
|
|
2394
|
-
} else {
|
|
2395
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2396
|
-
}
|
|
2397
|
-
}
|
|
2398
|
-
});
|
|
2399
|
-
});
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
/**
|
|
2403
|
-
*
|
|
2404
|
-
* @summary Restore recipient
|
|
2405
|
-
* @param id
|
|
2406
|
-
*/
|
|
2407
|
-
public async restoreRecipient (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }> {
|
|
2408
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{id}'
|
|
2409
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
2410
|
-
let localVarQueryParameters: any = {};
|
|
2411
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2412
|
-
const produces = ['application/json'];
|
|
2413
|
-
// give precedence to 'application/json'
|
|
2414
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2415
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2416
|
-
} else {
|
|
2417
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2418
|
-
}
|
|
2419
|
-
let localVarFormParams: any = {};
|
|
2420
|
-
|
|
2421
|
-
// verify required parameter 'id' is not null or undefined
|
|
2422
|
-
if (id === null || id === undefined) {
|
|
2423
|
-
throw new Error('Required parameter id was null or undefined when calling restoreRecipient.');
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2427
|
-
|
|
2428
|
-
let localVarUseFormData = false;
|
|
2429
|
-
|
|
2430
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2431
|
-
method: 'PATCH',
|
|
2432
|
-
qs: localVarQueryParameters,
|
|
2433
|
-
headers: localVarHeaderParams,
|
|
2434
|
-
uri: localVarPath,
|
|
2435
|
-
useQuerystring: this._useQuerystring,
|
|
2436
|
-
json: true,
|
|
2437
|
-
};
|
|
2438
|
-
|
|
2439
|
-
let authenticationPromise = Promise.resolve();
|
|
2440
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2441
|
-
|
|
2442
|
-
let interceptorPromise = authenticationPromise;
|
|
2443
|
-
for (const interceptor of this.interceptors) {
|
|
2444
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
return interceptorPromise.then(() => {
|
|
2448
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2449
|
-
if (localVarUseFormData) {
|
|
2450
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2451
|
-
} else {
|
|
2452
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2453
|
-
}
|
|
2454
|
-
}
|
|
2455
|
-
return new Promise<{ response: http.IncomingMessage; body: ImportedListRecipient; }>((resolve, reject) => {
|
|
2456
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2457
|
-
if (error) {
|
|
2458
|
-
reject(error);
|
|
2459
|
-
} else {
|
|
2460
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2461
|
-
body = ObjectSerializer.deserialize(body, "ImportedListRecipient");
|
|
2462
|
-
resolve({ response: response, body: body });
|
|
2463
|
-
} else {
|
|
2464
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2465
|
-
}
|
|
2466
|
-
}
|
|
2467
|
-
});
|
|
2468
|
-
});
|
|
2469
|
-
});
|
|
2470
|
-
}
|
|
2471
|
-
/**
|
|
2472
|
-
*
|
|
2473
|
-
* @summary Retrieve the number of messages sent by the merchant within the current billing cycle
|
|
2474
|
-
*/
|
|
2475
|
-
public async retrieveSentAndMaxCountOfMessages (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: any; }> {
|
|
2476
|
-
const localVarPath = this.basePath + '/v2/sms/sent';
|
|
2477
|
-
let localVarQueryParameters: any = {};
|
|
2478
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2479
|
-
const produces = ['application/json'];
|
|
2480
|
-
// give precedence to 'application/json'
|
|
2481
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2482
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2483
|
-
} else {
|
|
2484
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2485
|
-
}
|
|
2486
|
-
let localVarFormParams: any = {};
|
|
2487
|
-
|
|
2488
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2489
|
-
|
|
2490
|
-
let localVarUseFormData = false;
|
|
2491
|
-
|
|
2492
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2493
|
-
method: 'GET',
|
|
2494
|
-
qs: localVarQueryParameters,
|
|
2495
|
-
headers: localVarHeaderParams,
|
|
2496
|
-
uri: localVarPath,
|
|
2497
|
-
useQuerystring: this._useQuerystring,
|
|
2498
|
-
json: true,
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
|
-
let authenticationPromise = Promise.resolve();
|
|
2502
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2503
|
-
|
|
2504
|
-
let interceptorPromise = authenticationPromise;
|
|
2505
|
-
for (const interceptor of this.interceptors) {
|
|
2506
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
return interceptorPromise.then(() => {
|
|
2510
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2511
|
-
if (localVarUseFormData) {
|
|
2512
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2513
|
-
} else {
|
|
2514
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2515
|
-
}
|
|
2516
|
-
}
|
|
2517
|
-
return new Promise<{ response: http.IncomingMessage; body: any; }>((resolve, reject) => {
|
|
2518
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2519
|
-
if (error) {
|
|
2520
|
-
reject(error);
|
|
2521
|
-
} else {
|
|
2522
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2523
|
-
body = ObjectSerializer.deserialize(body, "any");
|
|
2524
|
-
resolve({ response: response, body: body });
|
|
2525
|
-
} else {
|
|
2526
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
});
|
|
2530
|
-
});
|
|
2531
|
-
});
|
|
2532
|
-
}
|
|
2533
|
-
/**
|
|
2534
|
-
*
|
|
2535
|
-
* @summary Save imported list
|
|
2536
|
-
* @param listID
|
|
2537
|
-
* @param wTSMSImportedListCreate
|
|
2538
|
-
*/
|
|
2539
|
-
public async saveImportedList (listID: string, wTSMSImportedListCreate: WTSMSImportedListCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ImportedList; }> {
|
|
2540
|
-
const localVarPath = this.basePath + '/v2/sms/importedList/{listID}'
|
|
2541
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
2542
|
-
let localVarQueryParameters: any = {};
|
|
2543
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2544
|
-
const produces = ['application/json'];
|
|
2545
|
-
// give precedence to 'application/json'
|
|
2546
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2547
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2548
|
-
} else {
|
|
2549
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2550
|
-
}
|
|
2551
|
-
let localVarFormParams: any = {};
|
|
2552
|
-
|
|
2553
|
-
// verify required parameter 'listID' is not null or undefined
|
|
2554
|
-
if (listID === null || listID === undefined) {
|
|
2555
|
-
throw new Error('Required parameter listID was null or undefined when calling saveImportedList.');
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
// verify required parameter 'wTSMSImportedListCreate' is not null or undefined
|
|
2559
|
-
if (wTSMSImportedListCreate === null || wTSMSImportedListCreate === undefined) {
|
|
2560
|
-
throw new Error('Required parameter wTSMSImportedListCreate was null or undefined when calling saveImportedList.');
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2564
|
-
|
|
2565
|
-
let localVarUseFormData = false;
|
|
2566
|
-
|
|
2567
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2568
|
-
method: 'PUT',
|
|
2569
|
-
qs: localVarQueryParameters,
|
|
2570
|
-
headers: localVarHeaderParams,
|
|
2571
|
-
uri: localVarPath,
|
|
2572
|
-
useQuerystring: this._useQuerystring,
|
|
2573
|
-
json: true,
|
|
2574
|
-
body: ObjectSerializer.serialize(wTSMSImportedListCreate, "WTSMSImportedListCreate")
|
|
2575
|
-
};
|
|
2576
|
-
|
|
2577
|
-
let authenticationPromise = Promise.resolve();
|
|
2578
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2579
|
-
|
|
2580
|
-
let interceptorPromise = authenticationPromise;
|
|
2581
|
-
for (const interceptor of this.interceptors) {
|
|
2582
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
return interceptorPromise.then(() => {
|
|
2586
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2587
|
-
if (localVarUseFormData) {
|
|
2588
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2589
|
-
} else {
|
|
2590
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2591
|
-
}
|
|
2592
|
-
}
|
|
2593
|
-
return new Promise<{ response: http.IncomingMessage; body: ImportedList; }>((resolve, reject) => {
|
|
2594
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2595
|
-
if (error) {
|
|
2596
|
-
reject(error);
|
|
2597
|
-
} else {
|
|
2598
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2599
|
-
body = ObjectSerializer.deserialize(body, "ImportedList");
|
|
2600
|
-
resolve({ response: response, body: body });
|
|
2601
|
-
} else {
|
|
2602
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2603
|
-
}
|
|
2604
|
-
}
|
|
2605
|
-
});
|
|
2606
|
-
});
|
|
2607
|
-
});
|
|
2608
|
-
}
|
|
2609
|
-
/**
|
|
2610
|
-
*
|
|
2611
|
-
* @summary Save opt in list
|
|
2612
|
-
* @param listID
|
|
2613
|
-
* @param wTOptInListCreationParams
|
|
2614
|
-
*/
|
|
2615
|
-
public async saveOptInList (listID: string, wTOptInListCreationParams: WTOptInListCreationParams, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OptInList; }> {
|
|
2616
|
-
const localVarPath = this.basePath + '/v2/sms/optInList/{listID}'
|
|
2617
|
-
.replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
|
|
2618
|
-
let localVarQueryParameters: any = {};
|
|
2619
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2620
|
-
const produces = ['application/json'];
|
|
2621
|
-
// give precedence to 'application/json'
|
|
2622
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2623
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2624
|
-
} else {
|
|
2625
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2626
|
-
}
|
|
2627
|
-
let localVarFormParams: any = {};
|
|
2628
|
-
|
|
2629
|
-
// verify required parameter 'listID' is not null or undefined
|
|
2630
|
-
if (listID === null || listID === undefined) {
|
|
2631
|
-
throw new Error('Required parameter listID was null or undefined when calling saveOptInList.');
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
// verify required parameter 'wTOptInListCreationParams' is not null or undefined
|
|
2635
|
-
if (wTOptInListCreationParams === null || wTOptInListCreationParams === undefined) {
|
|
2636
|
-
throw new Error('Required parameter wTOptInListCreationParams was null or undefined when calling saveOptInList.');
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2640
|
-
|
|
2641
|
-
let localVarUseFormData = false;
|
|
2642
|
-
|
|
2643
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2644
|
-
method: 'PUT',
|
|
2645
|
-
qs: localVarQueryParameters,
|
|
2646
|
-
headers: localVarHeaderParams,
|
|
2647
|
-
uri: localVarPath,
|
|
2648
|
-
useQuerystring: this._useQuerystring,
|
|
2649
|
-
json: true,
|
|
2650
|
-
body: ObjectSerializer.serialize(wTOptInListCreationParams, "WTOptInListCreationParams")
|
|
2651
|
-
};
|
|
2652
|
-
|
|
2653
|
-
let authenticationPromise = Promise.resolve();
|
|
2654
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2655
|
-
|
|
2656
|
-
let interceptorPromise = authenticationPromise;
|
|
2657
|
-
for (const interceptor of this.interceptors) {
|
|
2658
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
return interceptorPromise.then(() => {
|
|
2662
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2663
|
-
if (localVarUseFormData) {
|
|
2664
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2665
|
-
} else {
|
|
2666
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
return new Promise<{ response: http.IncomingMessage; body: OptInList; }>((resolve, reject) => {
|
|
2670
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2671
|
-
if (error) {
|
|
2672
|
-
reject(error);
|
|
2673
|
-
} else {
|
|
2674
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2675
|
-
body = ObjectSerializer.deserialize(body, "OptInList");
|
|
2676
|
-
resolve({ response: response, body: body });
|
|
2677
|
-
} else {
|
|
2678
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
});
|
|
2682
|
-
});
|
|
2683
|
-
});
|
|
2684
|
-
}
|
|
2685
|
-
/**
|
|
2686
|
-
*
|
|
2687
|
-
* @summary Save opt in list source
|
|
2688
|
-
* @param sourceID
|
|
2689
|
-
* @param wTSMSOptInListSourceCreate
|
|
2690
|
-
*/
|
|
2691
|
-
public async saveOptInListSource (sourceID: string, wTSMSOptInListSourceCreate: WTSMSOptInListSourceCreate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: OptInListSource; }> {
|
|
2692
|
-
const localVarPath = this.basePath + '/v2/sms/optInListSource/{sourceID}'
|
|
2693
|
-
.replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
|
|
2694
|
-
let localVarQueryParameters: any = {};
|
|
2695
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2696
|
-
const produces = ['application/json'];
|
|
2697
|
-
// give precedence to 'application/json'
|
|
2698
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2699
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2700
|
-
} else {
|
|
2701
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2702
|
-
}
|
|
2703
|
-
let localVarFormParams: any = {};
|
|
2704
|
-
|
|
2705
|
-
// verify required parameter 'sourceID' is not null or undefined
|
|
2706
|
-
if (sourceID === null || sourceID === undefined) {
|
|
2707
|
-
throw new Error('Required parameter sourceID was null or undefined when calling saveOptInListSource.');
|
|
2708
|
-
}
|
|
2709
|
-
|
|
2710
|
-
// verify required parameter 'wTSMSOptInListSourceCreate' is not null or undefined
|
|
2711
|
-
if (wTSMSOptInListSourceCreate === null || wTSMSOptInListSourceCreate === undefined) {
|
|
2712
|
-
throw new Error('Required parameter wTSMSOptInListSourceCreate was null or undefined when calling saveOptInListSource.');
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2716
|
-
|
|
2717
|
-
let localVarUseFormData = false;
|
|
2718
|
-
|
|
2719
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2720
|
-
method: 'PUT',
|
|
2721
|
-
qs: localVarQueryParameters,
|
|
2722
|
-
headers: localVarHeaderParams,
|
|
2723
|
-
uri: localVarPath,
|
|
2724
|
-
useQuerystring: this._useQuerystring,
|
|
2725
|
-
json: true,
|
|
2726
|
-
body: ObjectSerializer.serialize(wTSMSOptInListSourceCreate, "WTSMSOptInListSourceCreate")
|
|
2727
|
-
};
|
|
2728
|
-
|
|
2729
|
-
let authenticationPromise = Promise.resolve();
|
|
2730
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2731
|
-
|
|
2732
|
-
let interceptorPromise = authenticationPromise;
|
|
2733
|
-
for (const interceptor of this.interceptors) {
|
|
2734
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2735
|
-
}
|
|
2736
|
-
|
|
2737
|
-
return interceptorPromise.then(() => {
|
|
2738
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2739
|
-
if (localVarUseFormData) {
|
|
2740
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2741
|
-
} else {
|
|
2742
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
return new Promise<{ response: http.IncomingMessage; body: OptInListSource; }>((resolve, reject) => {
|
|
2746
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2747
|
-
if (error) {
|
|
2748
|
-
reject(error);
|
|
2749
|
-
} else {
|
|
2750
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2751
|
-
body = ObjectSerializer.deserialize(body, "OptInListSource");
|
|
2752
|
-
resolve({ response: response, body: body });
|
|
2753
|
-
} else {
|
|
2754
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
});
|
|
2758
|
-
});
|
|
2759
|
-
});
|
|
2760
|
-
}
|
|
2761
|
-
/**
|
|
2762
|
-
*
|
|
2763
|
-
* @summary Request phone number verification
|
|
2764
|
-
* @param phoneNumberID
|
|
2765
|
-
* @param wTSMSUpdatePhoneNumberConfig
|
|
2766
|
-
*/
|
|
2767
|
-
public async sendPhoneNumberForVerification (phoneNumberID: string, wTSMSUpdatePhoneNumberConfig: WTSMSUpdatePhoneNumberConfig, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> {
|
|
2768
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/verification/{phoneNumberID}'
|
|
2769
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
2770
|
-
let localVarQueryParameters: any = {};
|
|
2771
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2772
|
-
const produces = ['application/json'];
|
|
2773
|
-
// give precedence to 'application/json'
|
|
2774
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2775
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2776
|
-
} else {
|
|
2777
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2778
|
-
}
|
|
2779
|
-
let localVarFormParams: any = {};
|
|
2780
|
-
|
|
2781
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
2782
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
2783
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling sendPhoneNumberForVerification.');
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
// verify required parameter 'wTSMSUpdatePhoneNumberConfig' is not null or undefined
|
|
2787
|
-
if (wTSMSUpdatePhoneNumberConfig === null || wTSMSUpdatePhoneNumberConfig === undefined) {
|
|
2788
|
-
throw new Error('Required parameter wTSMSUpdatePhoneNumberConfig was null or undefined when calling sendPhoneNumberForVerification.');
|
|
2789
|
-
}
|
|
2790
|
-
|
|
2791
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2792
|
-
|
|
2793
|
-
let localVarUseFormData = false;
|
|
2794
|
-
|
|
2795
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2796
|
-
method: 'PUT',
|
|
2797
|
-
qs: localVarQueryParameters,
|
|
2798
|
-
headers: localVarHeaderParams,
|
|
2799
|
-
uri: localVarPath,
|
|
2800
|
-
useQuerystring: this._useQuerystring,
|
|
2801
|
-
json: true,
|
|
2802
|
-
body: ObjectSerializer.serialize(wTSMSUpdatePhoneNumberConfig, "WTSMSUpdatePhoneNumberConfig")
|
|
2803
|
-
};
|
|
2804
|
-
|
|
2805
|
-
let authenticationPromise = Promise.resolve();
|
|
2806
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2807
|
-
|
|
2808
|
-
let interceptorPromise = authenticationPromise;
|
|
2809
|
-
for (const interceptor of this.interceptors) {
|
|
2810
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
return interceptorPromise.then(() => {
|
|
2814
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2815
|
-
if (localVarUseFormData) {
|
|
2816
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2817
|
-
} else {
|
|
2818
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2819
|
-
}
|
|
2820
|
-
}
|
|
2821
|
-
return new Promise<{ response: http.IncomingMessage; body: string; }>((resolve, reject) => {
|
|
2822
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2823
|
-
if (error) {
|
|
2824
|
-
reject(error);
|
|
2825
|
-
} else {
|
|
2826
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2827
|
-
body = ObjectSerializer.deserialize(body, "string");
|
|
2828
|
-
resolve({ response: response, body: body });
|
|
2829
|
-
} else {
|
|
2830
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2831
|
-
}
|
|
2832
|
-
}
|
|
2833
|
-
});
|
|
2834
|
-
});
|
|
2835
|
-
});
|
|
2836
|
-
}
|
|
2837
|
-
/**
|
|
2838
|
-
*
|
|
2839
|
-
* @summary Update phone number
|
|
2840
|
-
* @param phoneNumberID
|
|
2841
|
-
* @param wTSMSUpdatePhoneNumberConfig
|
|
2842
|
-
*/
|
|
2843
|
-
public async updatePhoneNumber (phoneNumberID: string, wTSMSUpdatePhoneNumberConfig: WTSMSUpdatePhoneNumberConfig, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PhoneNumber; }> {
|
|
2844
|
-
const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
|
|
2845
|
-
.replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
|
|
2846
|
-
let localVarQueryParameters: any = {};
|
|
2847
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
2848
|
-
const produces = ['application/json'];
|
|
2849
|
-
// give precedence to 'application/json'
|
|
2850
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2851
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2852
|
-
} else {
|
|
2853
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2854
|
-
}
|
|
2855
|
-
let localVarFormParams: any = {};
|
|
2856
|
-
|
|
2857
|
-
// verify required parameter 'phoneNumberID' is not null or undefined
|
|
2858
|
-
if (phoneNumberID === null || phoneNumberID === undefined) {
|
|
2859
|
-
throw new Error('Required parameter phoneNumberID was null or undefined when calling updatePhoneNumber.');
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
// verify required parameter 'wTSMSUpdatePhoneNumberConfig' is not null or undefined
|
|
2863
|
-
if (wTSMSUpdatePhoneNumberConfig === null || wTSMSUpdatePhoneNumberConfig === undefined) {
|
|
2864
|
-
throw new Error('Required parameter wTSMSUpdatePhoneNumberConfig was null or undefined when calling updatePhoneNumber.');
|
|
2865
|
-
}
|
|
2866
|
-
|
|
2867
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
2868
|
-
|
|
2869
|
-
let localVarUseFormData = false;
|
|
2870
|
-
|
|
2871
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
2872
|
-
method: 'PUT',
|
|
2873
|
-
qs: localVarQueryParameters,
|
|
2874
|
-
headers: localVarHeaderParams,
|
|
2875
|
-
uri: localVarPath,
|
|
2876
|
-
useQuerystring: this._useQuerystring,
|
|
2877
|
-
json: true,
|
|
2878
|
-
body: ObjectSerializer.serialize(wTSMSUpdatePhoneNumberConfig, "WTSMSUpdatePhoneNumberConfig")
|
|
2879
|
-
};
|
|
2880
|
-
|
|
2881
|
-
let authenticationPromise = Promise.resolve();
|
|
2882
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2883
|
-
|
|
2884
|
-
let interceptorPromise = authenticationPromise;
|
|
2885
|
-
for (const interceptor of this.interceptors) {
|
|
2886
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
return interceptorPromise.then(() => {
|
|
2890
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2891
|
-
if (localVarUseFormData) {
|
|
2892
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
2893
|
-
} else {
|
|
2894
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
return new Promise<{ response: http.IncomingMessage; body: PhoneNumber; }>((resolve, reject) => {
|
|
2898
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2899
|
-
if (error) {
|
|
2900
|
-
reject(error);
|
|
2901
|
-
} else {
|
|
2902
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2903
|
-
body = ObjectSerializer.deserialize(body, "PhoneNumber");
|
|
2904
|
-
resolve({ response: response, body: body });
|
|
2905
|
-
} else {
|
|
2906
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
});
|
|
2910
|
-
});
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
}
|