wallet 2.1.522 → 2.1.527

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/README.md +15 -18
  3. package/api/advertisementCreditsApi.ts +1 -1
  4. package/api/analyticsApi.ts +1 -1
  5. package/api/appleWalletSubscribersApi.ts +1 -1
  6. package/api/billingApi.ts +263 -1
  7. package/api/clubMembersPointsApi.ts +1 -1
  8. package/api/configurationApi.ts +1 -1
  9. package/api/countriesApi.ts +1 -1
  10. package/api/customerApi.ts +1 -1
  11. package/api/dashboardApi.ts +1 -1
  12. package/api/dynamicVouchersApi.ts +140 -1
  13. package/api/employeeAPIKeysApi.ts +1 -1
  14. package/api/employeeAccessApi.ts +1 -1
  15. package/api/employeesApi.ts +1 -1
  16. package/api/imageGridApi.ts +1 -1
  17. package/api/industriesApi.ts +1 -1
  18. package/api/infoGenesisReportsApi.ts +1 -1
  19. package/api/integratedTerminalsApi.ts +1 -1
  20. package/api/interactionsApi.ts +78 -1
  21. package/api/linkBookApi.ts +1 -1
  22. package/api/linkBookSectionApi.ts +1 -1
  23. package/api/loginAndLogoutApi.ts +1 -1
  24. package/api/membershipTiersApi.ts +1 -1
  25. package/api/merchantApi.ts +1 -1
  26. package/api/merchantCreditsApi.ts +1 -1
  27. package/api/merchantURLsApi.ts +1 -1
  28. package/api/mobileTerminalApi.ts +1 -1
  29. package/api/newsApi.ts +1 -1
  30. package/api/paymentDesignsApi.ts +1 -1
  31. package/api/performancesApi.ts +1 -1
  32. package/api/promoCodesApi.ts +1 -1
  33. package/api/sMSApi.ts +1 -1
  34. package/api/settingsApi.ts +1 -1
  35. package/api/shopifyTerminalApi.ts +1 -1
  36. package/api/staticVoucherCampaignGroupsApi.ts +1 -1
  37. package/api/staticVoucherCampaignsApi.ts +147 -8
  38. package/api/staticVouchersApi.ts +1 -1
  39. package/api/systemApi.ts +1 -1
  40. package/api/transactionLedgerApi.ts +1 -1
  41. package/api/utilitiesApi.ts +1 -1
  42. package/api/webTerminalApi.ts +1 -1
  43. package/api/wixTerminalApi.ts +1 -1
  44. package/api/wooCommerceTerminalApi.ts +1 -1
  45. package/dist/api/billingApi.d.ts +32 -0
  46. package/dist/api/billingApi.js +236 -0
  47. package/dist/api/billingApi.js.map +1 -1
  48. package/dist/api/dynamicVouchersApi.d.ts +17 -0
  49. package/dist/api/dynamicVouchersApi.js +122 -0
  50. package/dist/api/dynamicVouchersApi.js.map +1 -1
  51. package/dist/api/interactionsApi.d.ts +9 -0
  52. package/dist/api/interactionsApi.js +65 -0
  53. package/dist/api/interactionsApi.js.map +1 -1
  54. package/dist/api/staticVoucherCampaignsApi.d.ts +19 -2
  55. package/dist/api/staticVoucherCampaignsApi.js +126 -4
  56. package/dist/api/staticVoucherCampaignsApi.js.map +1 -1
  57. package/dist/model/advertisementCreditScan.d.ts +1 -1
  58. package/dist/model/advertisementCreditScan.js +5 -5
  59. package/dist/model/advertisementCreditScan.js.map +1 -1
  60. package/dist/model/browserDetails.d.ts +17 -0
  61. package/dist/model/browserDetails.js +33 -0
  62. package/dist/model/browserDetails.js.map +1 -0
  63. package/dist/model/createStaticVoucherCampaign.d.ts +0 -1
  64. package/dist/model/createStaticVoucherCampaign.js +0 -5
  65. package/dist/model/createStaticVoucherCampaign.js.map +1 -1
  66. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +0 -1
  67. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +0 -5
  68. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js.map +1 -1
  69. package/dist/model/dynamicVoucher.d.ts +1 -1
  70. package/dist/model/dynamicVoucher.js +5 -5
  71. package/dist/model/dynamicVoucher.js.map +1 -1
  72. package/dist/model/member.d.ts +1 -1
  73. package/dist/model/member.js +5 -5
  74. package/dist/model/member.js.map +1 -1
  75. package/dist/model/models.d.ts +4 -3
  76. package/dist/model/models.js +6 -3
  77. package/dist/model/models.js.map +1 -1
  78. package/dist/model/outboundSMS.d.ts +1 -1
  79. package/dist/model/outboundSMS.js +5 -5
  80. package/dist/model/outboundSMS.js.map +1 -1
  81. package/dist/model/{createStaticVoucherCampaignWithVoucher.d.ts → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.d.ts} +4 -5
  82. package/dist/model/{createStaticVoucherCampaignWithVoucher.js → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js} +20 -25
  83. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js.map +1 -0
  84. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +0 -1
  85. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +0 -5
  86. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js.map +1 -1
  87. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +1 -1
  88. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +5 -5
  89. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js.map +1 -1
  90. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +1 -1
  91. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +5 -5
  92. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js.map +1 -1
  93. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +1 -1
  94. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +5 -5
  95. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js.map +1 -1
  96. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +1 -1
  97. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +5 -5
  98. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js.map +1 -1
  99. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +0 -1
  100. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +0 -5
  101. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js.map +1 -1
  102. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +1 -1
  103. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +5 -5
  104. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js.map +1 -1
  105. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +1 -1
  106. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +5 -5
  107. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js.map +1 -1
  108. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +1 -1
  109. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +5 -5
  110. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js.map +1 -1
  111. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +0 -1
  112. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +0 -5
  113. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js.map +1 -1
  114. package/dist/model/portalPage.d.ts +1 -0
  115. package/dist/model/portalPage.js +1 -0
  116. package/dist/model/portalPage.js.map +1 -1
  117. package/dist/model/staticVoucher.d.ts +1 -1
  118. package/dist/model/staticVoucher.js +5 -5
  119. package/dist/model/staticVoucher.js.map +1 -1
  120. package/dist/model/staticVoucherCampaign.d.ts +1 -1
  121. package/dist/model/staticVoucherCampaign.js +5 -5
  122. package/dist/model/staticVoucherCampaign.js.map +1 -1
  123. package/dist/model/staticVoucherCampaignBroadcast.d.ts +1 -1
  124. package/dist/model/staticVoucherCampaignBroadcast.js +5 -5
  125. package/dist/model/staticVoucherCampaignBroadcast.js.map +1 -1
  126. package/dist/model/staticVoucherCampaignUpdate.d.ts +0 -1
  127. package/dist/model/staticVoucherCampaignUpdate.js +0 -5
  128. package/dist/model/staticVoucherCampaignUpdate.js.map +1 -1
  129. package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +0 -1
  130. package/dist/model/updateStaticVoucherCampaignWithVoucher.js +0 -5
  131. package/dist/model/updateStaticVoucherCampaignWithVoucher.js.map +1 -1
  132. package/dist/model/wTAdvertisementCreditScan.d.ts +1 -1
  133. package/dist/model/wTAdvertisementCreditScan.js +5 -5
  134. package/dist/model/wTAdvertisementCreditScan.js.map +1 -1
  135. package/dist/model/wTDynamicVoucher.d.ts +1 -1
  136. package/dist/model/wTDynamicVoucher.js +5 -5
  137. package/dist/model/wTDynamicVoucher.js.map +1 -1
  138. package/dist/model/wTDynamicVoucherCreateParams.d.ts +0 -1
  139. package/dist/model/wTDynamicVoucherCreateParams.js +0 -5
  140. package/dist/model/wTDynamicVoucherCreateParams.js.map +1 -1
  141. package/dist/model/wTDynamicVoucherUpdateParams.d.ts +0 -1
  142. package/dist/model/wTDynamicVoucherUpdateParams.js +0 -5
  143. package/dist/model/wTDynamicVoucherUpdateParams.js.map +1 -1
  144. package/dist/model/wTMember.d.ts +1 -1
  145. package/dist/model/wTMember.js +5 -5
  146. package/dist/model/wTMember.js.map +1 -1
  147. package/dist/model/wTMerchantCredit.d.ts +1 -1
  148. package/dist/model/wTMerchantCredit.js +5 -5
  149. package/dist/model/wTMerchantCredit.js.map +1 -1
  150. package/dist/model/wTStaticVoucher.d.ts +1 -1
  151. package/dist/model/wTStaticVoucher.js +5 -5
  152. package/dist/model/wTStaticVoucher.js.map +1 -1
  153. package/dist/model/wTStaticVoucherCampaign.d.ts +1 -1
  154. package/dist/model/wTStaticVoucherCampaign.js +5 -5
  155. package/dist/model/wTStaticVoucherCampaign.js.map +1 -1
  156. package/model/advertisementCredit.ts +1 -1
  157. package/model/advertisementCreditBroadcast.ts +1 -1
  158. package/model/advertisementCreditScan.ts +7 -7
  159. package/model/agreement.ts +1 -1
  160. package/model/alert.ts +1 -1
  161. package/model/announcement.ts +1 -1
  162. package/model/applicableTerminals.ts +1 -1
  163. package/model/applicableTerminalsAnyOf.ts +1 -1
  164. package/model/applicableTerminalsAnyOf1.ts +1 -1
  165. package/model/applicableTerminalsAnyOf2.ts +1 -1
  166. package/model/applicableTerminalsAnyOf3.ts +1 -1
  167. package/model/applicableTerminalsAnyOf4.ts +1 -1
  168. package/model/applicableTerminalsAnyOf5.ts +1 -1
  169. package/model/applicableTerminalsAnyOf6.ts +1 -1
  170. package/model/authError.ts +1 -1
  171. package/model/availablePhoneNumbersRequest.ts +1 -1
  172. package/model/browserDetails.ts +49 -0
  173. package/model/clickFunnelAmount.ts +1 -1
  174. package/model/clickFunnelContact.ts +1 -1
  175. package/model/clickFunnelContactProfile.ts +1 -1
  176. package/model/clickFunnelEvent.ts +1 -1
  177. package/model/clickFunnelOriginalAmount.ts +1 -1
  178. package/model/clickFunnelProduct.ts +1 -1
  179. package/model/clickFunnelPurchase.ts +1 -1
  180. package/model/clickFunnelRegistration.ts +1 -1
  181. package/model/createStaticVoucherCampaign.ts +1 -7
  182. package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +1 -7
  183. package/model/dashboardWidget.ts +1 -1
  184. package/model/document.ts +1 -1
  185. package/model/duplicateRowFound.ts +1 -1
  186. package/model/dynamicVoucher.ts +7 -7
  187. package/model/dynamicVoucherBroadcast.ts +1 -1
  188. package/model/employee.ts +1 -1
  189. package/model/employeeAPIKey.ts +1 -1
  190. package/model/employeeActivityLog.ts +1 -1
  191. package/model/entityTooLarge.ts +1 -1
  192. package/model/exportDataFile.ts +1 -1
  193. package/model/falsumError.ts +1 -1
  194. package/model/falsumField.ts +1 -1
  195. package/model/feature.ts +1 -1
  196. package/model/forbiddenRequest.ts +1 -1
  197. package/model/foreignKeyDoesNotExist.ts +1 -1
  198. package/model/helpDeskRequest.ts +1 -1
  199. package/model/imageGrid.ts +1 -1
  200. package/model/importedList.ts +1 -1
  201. package/model/importedListRecipient.ts +1 -1
  202. package/model/inboundSMS.ts +1 -1
  203. package/model/inlineResponse200.ts +1 -1
  204. package/model/inlineResponse2001.ts +1 -1
  205. package/model/inlineResponse20010.ts +1 -1
  206. package/model/inlineResponse2002.ts +1 -1
  207. package/model/inlineResponse2003.ts +1 -1
  208. package/model/inlineResponse2004.ts +1 -1
  209. package/model/inlineResponse2005.ts +1 -1
  210. package/model/inlineResponse2006.ts +1 -1
  211. package/model/inlineResponse2007.ts +1 -1
  212. package/model/inlineResponse2008.ts +1 -1
  213. package/model/inlineResponse2009.ts +1 -1
  214. package/model/internalServerError.ts +1 -1
  215. package/model/ledgerEntry.ts +1 -1
  216. package/model/linkBook.ts +1 -1
  217. package/model/linkBookSection.ts +1 -1
  218. package/model/mSAnalyticsMemberCountPartitionedByDate.ts +1 -1
  219. package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +1 -1
  220. package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +1 -1
  221. package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +1 -1
  222. package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +1 -1
  223. package/model/mSMemberHistory.ts +1 -1
  224. package/model/mSMemberHistoryPagination.ts +1 -1
  225. package/model/mSMemberRedemption.ts +1 -1
  226. package/model/mSMemberRedemptionPagination.ts +1 -1
  227. package/model/mSMembershipTierHistory.ts +1 -1
  228. package/model/mSMembershipTierHistoryPagination.ts +1 -1
  229. package/model/mSMembershipTierRedemption.ts +1 -1
  230. package/model/mSMembershipTierRedemptionPagination.ts +1 -1
  231. package/model/mSMerchantCreditHistory.ts +1 -1
  232. package/model/mSMerchantCreditHistoryPagination.ts +1 -1
  233. package/model/mSMerchantCreditRedemption.ts +1 -1
  234. package/model/mSMerchantCreditRedemptionPagination.ts +1 -1
  235. package/model/mediaFile.ts +1 -1
  236. package/model/member.ts +10 -10
  237. package/model/memberSearch.ts +1 -1
  238. package/model/merchant.ts +1 -1
  239. package/model/merchantCreditSearch.ts +1 -1
  240. package/model/merchantNotInitialized.ts +1 -1
  241. package/model/merchantURL.ts +1 -1
  242. package/model/message.ts +1 -1
  243. package/model/models.ts +6 -3
  244. package/model/moduleError.ts +1 -1
  245. package/model/newsArticle.ts +1 -1
  246. package/model/optInList.ts +1 -1
  247. package/model/optInListSource.ts +1 -1
  248. package/model/optInListSubscriber.ts +1 -1
  249. package/model/outboundSMS.ts +7 -7
  250. package/model/paginatedWTMembers.ts +1 -1
  251. package/model/paginatedWTMerchantCredits.ts +1 -1
  252. package/model/paginationRequestWithIDAndWithoutSortOptions.ts +1 -1
  253. package/model/paginationRequestWithSortOptions.ts +1 -1
  254. package/model/paymentDesign.ts +1 -1
  255. package/model/paymentPrefixes.ts +1 -1
  256. package/model/performance.ts +1 -1
  257. package/model/phoneNumber.ts +1 -1
  258. package/model/{createStaticVoucherCampaignWithVoucher.ts → pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts} +22 -25
  259. package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -7
  260. package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +1 -1
  261. package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +1 -1
  262. package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +1 -1
  263. package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +10 -10
  264. package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +1 -1
  265. package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +10 -10
  266. package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +1 -1
  267. package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +1 -1
  268. package/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.ts +1 -1
  269. package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +1 -1
  270. package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +1 -1
  271. package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.ts +1 -1
  272. package/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.ts +1 -1
  273. package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +1 -1
  274. package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +1 -1
  275. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +7 -7
  276. package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +1 -1
  277. package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +7 -7
  278. package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +1 -1
  279. package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +1 -7
  280. package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +7 -7
  281. package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +1 -1
  282. package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +1 -1
  283. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +7 -7
  284. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +1 -1
  285. package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +1 -1
  286. package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +1 -1
  287. package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +1 -1
  288. package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +1 -1
  289. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +7 -7
  290. package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -7
  291. package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
  292. package/model/plan.ts +1 -1
  293. package/model/portalPage.ts +2 -1
  294. package/model/presignedPost.ts +1 -1
  295. package/model/presignedPostFields.ts +1 -1
  296. package/model/product.ts +1 -1
  297. package/model/promoCode.ts +1 -1
  298. package/model/reachPerformanceStats.ts +1 -1
  299. package/model/request.ts +1 -1
  300. package/model/response.ts +1 -1
  301. package/model/role.ts +1 -1
  302. package/model/roleAuditLog.ts +1 -1
  303. package/model/sSImportedListRecipientCreateParams.ts +1 -1
  304. package/model/sSOptInSource.ts +1 -1
  305. package/model/simpleSMSBroadcast.ts +1 -1
  306. package/model/staticVoucher.ts +7 -7
  307. package/model/staticVoucherCampaign.ts +7 -7
  308. package/model/staticVoucherCampaignBroadcast.ts +7 -7
  309. package/model/staticVoucherCampaignGroup.ts +1 -1
  310. package/model/staticVoucherCampaignUpdate.ts +1 -7
  311. package/model/status.ts +1 -1
  312. package/model/statusAnyOf.ts +1 -1
  313. package/model/statusAnyOf1.ts +1 -1
  314. package/model/statusAnyOf2.ts +1 -1
  315. package/model/statusAnyOf3.ts +1 -1
  316. package/model/subscriptionFeature.ts +1 -1
  317. package/model/subscriptionPlan.ts +1 -1
  318. package/model/subscriptionProduct.ts +1 -1
  319. package/model/tcpa.ts +1 -1
  320. package/model/updateStaticVoucherCampaignWithVoucher.ts +1 -7
  321. package/model/vSCampaignGeneratedMessage.ts +1 -1
  322. package/model/vSCampaignGeneratedMessagePagination.ts +1 -1
  323. package/model/vSDynamicVoucherStatus.ts +1 -1
  324. package/model/wTAdvertisementCredit.ts +1 -1
  325. package/model/wTAdvertisementCreditCreateParams.ts +1 -1
  326. package/model/wTAdvertisementCreditScan.ts +7 -7
  327. package/model/wTAdvertisementCreditUpdateParams.ts +1 -1
  328. package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +1 -1
  329. package/model/wTAuthenticationForgotPassword.ts +1 -1
  330. package/model/wTAuthenticationLoginRequest.ts +1 -1
  331. package/model/wTAuthenticationLoginResponse.ts +1 -1
  332. package/model/wTAuthenticationRegister.ts +1 -1
  333. package/model/wTAuthenticationRequestResetPassword.ts +1 -1
  334. package/model/wTAuthenticationResetPassword.ts +1 -1
  335. package/model/wTAuthenticationSSOLoginForDiscourse.ts +1 -1
  336. package/model/wTBillingChangePlan.ts +1 -1
  337. package/model/wTBillingSavePaymentMethod.ts +1 -1
  338. package/model/wTBillingVerifyPaymentMethodResponse.ts +1 -1
  339. package/model/wTCountResult.ts +1 -1
  340. package/model/wTCustomerSearchByMemberID.ts +1 -1
  341. package/model/wTCustomerSearchByPhoneNumber.ts +1 -1
  342. package/model/wTDynamicVoucher.ts +7 -7
  343. package/model/wTDynamicVoucherCreateParams.ts +1 -7
  344. package/model/wTDynamicVoucherRedemption.ts +1 -1
  345. package/model/wTDynamicVoucherSummary.ts +1 -1
  346. package/model/wTDynamicVoucherUpdateParams.ts +1 -7
  347. package/model/wTEmployee.ts +1 -1
  348. package/model/wTEmployeeAPIKey.ts +1 -1
  349. package/model/wTEmployeeAPIKeyCreateParams.ts +1 -1
  350. package/model/wTEmployeeAPIKeyUpdateParams.ts +1 -1
  351. package/model/wTEmployeeCreate.ts +1 -1
  352. package/model/wTEmployeeCreateAlert.ts +1 -1
  353. package/model/wTEmployeeCreateDocument.ts +1 -1
  354. package/model/wTEmployeeCreateMediaFile.ts +1 -1
  355. package/model/wTEmployeeCreateStaticVoucherCampaignGroup.ts +1 -1
  356. package/model/wTEmployeeFileCreate.ts +1 -1
  357. package/model/wTEmployeeImportRecords.ts +1 -1
  358. package/model/wTEmployeeNotification.ts +1 -1
  359. package/model/wTEmployeePeerRoles.ts +1 -1
  360. package/model/wTEmployeeS3FilePresign.ts +1 -1
  361. package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +1 -1
  362. package/model/wTEmployeeScheduleSimpleSMS.ts +1 -1
  363. package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +1 -1
  364. package/model/wTEmployeeSendHelpDeskResponse.ts +1 -1
  365. package/model/wTEmployeeUpdate.ts +1 -1
  366. package/model/wTEmployeeUpdateRecords.ts +1 -1
  367. package/model/wTFetchWalletPaymentObjectWithToken.ts +1 -1
  368. package/model/wTImageGridCreateParams.ts +1 -1
  369. package/model/wTImageGridUpdateParams.ts +1 -1
  370. package/model/wTImportedList.ts +1 -1
  371. package/model/wTImportedListRecipientFromMembershipTierImport.ts +1 -1
  372. package/model/wTInfoGenesisLookupRequestErrors.ts +1 -1
  373. package/model/wTInfoGenesisRecordFilterParameters.ts +1 -1
  374. package/model/wTInfoGenesisRoutingIDs.ts +1 -1
  375. package/model/wTInfoGenesisUniquePostingIDs.ts +1 -1
  376. package/model/wTLinkBook.ts +1 -1
  377. package/model/wTLinkBookCreateParams.ts +1 -1
  378. package/model/wTLinkBookSectionCreateParams.ts +1 -1
  379. package/model/wTLinkBookSectionUpdateParams.ts +1 -1
  380. package/model/wTLinkBookUpdateParams.ts +1 -1
  381. package/model/wTMember.ts +10 -10
  382. package/model/wTMemberCreationParams.ts +1 -1
  383. package/model/wTMembershipTier.ts +1 -1
  384. package/model/wTMembershipTierCreationParams.ts +1 -1
  385. package/model/wTMembershipTierUpdateParams.ts +1 -1
  386. package/model/wTMembershipTierWithMemberCount.ts +1 -1
  387. package/model/wTMerchantCredit.ts +10 -10
  388. package/model/wTMerchantCreditCreationParams.ts +1 -1
  389. package/model/wTMerchantURLCreate.ts +1 -1
  390. package/model/wTMerchantURLUpdate.ts +1 -1
  391. package/model/wTMerchantUpdate.ts +1 -1
  392. package/model/wTMerchantUpdateBillingContact.ts +1 -1
  393. package/model/wTMerchantUpdatePOSIntegration.ts +1 -1
  394. package/model/wTNewsArticleCreateParams.ts +1 -1
  395. package/model/wTNewsArticleUpdateParams.ts +1 -1
  396. package/model/wTOptInList.ts +1 -1
  397. package/model/wTOptInListCreationParams.ts +1 -1
  398. package/model/wTPaymentDesign.ts +1 -1
  399. package/model/wTPaymentDesignCreateParams.ts +1 -1
  400. package/model/wTPaymentDesignUpdateParams.ts +1 -1
  401. package/model/wTPerformanceCreateParams.ts +1 -1
  402. package/model/wTPerformanceUpdateParams.ts +1 -1
  403. package/model/wTPosMachine.ts +1 -1
  404. package/model/wTPosMachineCreateParams.ts +1 -1
  405. package/model/wTPosMachineUpdateParams.ts +1 -1
  406. package/model/wTPromoCodeCreateParams.ts +1 -1
  407. package/model/wTPromoCodeUpdateParams.ts +1 -1
  408. package/model/wTRole.ts +1 -1
  409. package/model/wTSMSAcquirePhoneNumber.ts +1 -1
  410. package/model/wTSMSCreateAgreement.ts +1 -1
  411. package/model/wTSMSImportOptInListSubscribers.ts +1 -1
  412. package/model/wTSMSImportedListCreate.ts +1 -1
  413. package/model/wTSMSLimits.ts +1 -1
  414. package/model/wTSMSOptInListSourceCreate.ts +1 -1
  415. package/model/wTSMSUpdatePhoneNumberConfig.ts +1 -1
  416. package/model/wTSettingsSetPassword.ts +1 -1
  417. package/model/wTStaticVoucher.ts +7 -7
  418. package/model/wTStaticVoucherCampaign.ts +7 -7
  419. package/model/wTStaticVoucherCampaignPreviewMessages.ts +1 -1
  420. package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +1 -1
  421. package/model/wTStaticVoucherCreateParams.ts +1 -1
  422. package/model/wTStaticVoucherUpdateParams.ts +1 -1
  423. package/model/wTSystemApprovePhoneNumber.ts +1 -1
  424. package/model/wTSystemRoleCreate.ts +1 -1
  425. package/model/wTTCPAOpt.ts +1 -1
  426. package/model/wTTwilioRequestAuthyCode.ts +1 -1
  427. package/model/wTTwilioVerifyAuthyCode.ts +1 -1
  428. package/model/wTWalletConfigurationSaveWalletRecord.ts +1 -1
  429. package/model/wTWalletItemRedemption.ts +1 -1
  430. package/model/wTWalletObjectPrefixCounts.ts +1 -1
  431. package/model/wTWalletPageView.ts +1 -1
  432. package/model/wTWalletPageViewCount.ts +1 -1
  433. package/model/wTWalletPageViewGeoPoint.ts +1 -1
  434. package/model/walletConfiguration.ts +1 -1
  435. package/model/walletPageView.ts +1 -1
  436. package/model/webpage.ts +1 -1
  437. package/package.json +1 -1
  438. package/dist/model/createStaticVoucherCampaignWithVoucher.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,13 +17,14 @@ import http from 'http';
17
17
  /* tslint:disable:no-unused-locals */
18
18
  import { AuthError } from '../model/authError';
19
19
  import { CreateStaticVoucherCampaign } from '../model/createStaticVoucherCampaign';
20
- import { CreateStaticVoucherCampaignWithVoucher } from '../model/createStaticVoucherCampaignWithVoucher';
21
20
  import { CreateStaticVoucherCampaignWithVoucherWithCSV } from '../model/createStaticVoucherCampaignWithVoucherWithCSV';
22
21
  import { FalsumError } from '../model/falsumError';
23
22
  import { InlineResponse2002 } from '../model/inlineResponse2002';
24
23
  import { InlineResponse2004 } from '../model/inlineResponse2004';
25
24
  import { InternalServerError } from '../model/internalServerError';
25
+ import { PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive } from '../model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive';
26
26
  import { ReachPerformanceStats } from '../model/reachPerformanceStats';
27
+ import { StaticVoucherCampaign } from '../model/staticVoucherCampaign';
27
28
  import { StaticVoucherCampaignUpdate } from '../model/staticVoucherCampaignUpdate';
28
29
  import { UpdateStaticVoucherCampaignWithVoucher } from '../model/updateStaticVoucherCampaignWithVoucher';
29
30
  import { VSCampaignGeneratedMessage } from '../model/vSCampaignGeneratedMessage';
@@ -106,6 +107,75 @@ export class StaticVoucherCampaignsApi {
106
107
  this.interceptors.push(interceptor);
107
108
  }
108
109
 
110
+ /**
111
+ *
112
+ * @summary Archive static voucher campaign
113
+ * @param campaignID
114
+ */
115
+ public async archiveStaticVoucherCampaign (campaignID: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }> {
116
+ const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/{campaignID}'
117
+ .replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
118
+ let localVarQueryParameters: any = {};
119
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
120
+ const produces = ['application/json'];
121
+ // give precedence to 'application/json'
122
+ if (produces.indexOf('application/json') >= 0) {
123
+ localVarHeaderParams.Accept = 'application/json';
124
+ } else {
125
+ localVarHeaderParams.Accept = produces.join(',');
126
+ }
127
+ let localVarFormParams: any = {};
128
+
129
+ // verify required parameter 'campaignID' is not null or undefined
130
+ if (campaignID === null || campaignID === undefined) {
131
+ throw new Error('Required parameter campaignID was null or undefined when calling archiveStaticVoucherCampaign.');
132
+ }
133
+
134
+ (<any>Object).assign(localVarHeaderParams, options.headers);
135
+
136
+ let localVarUseFormData = false;
137
+
138
+ let localVarRequestOptions: localVarRequest.Options = {
139
+ method: 'DELETE',
140
+ qs: localVarQueryParameters,
141
+ headers: localVarHeaderParams,
142
+ uri: localVarPath,
143
+ useQuerystring: this._useQuerystring,
144
+ json: true,
145
+ };
146
+
147
+ let authenticationPromise = Promise.resolve();
148
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
149
+
150
+ let interceptorPromise = authenticationPromise;
151
+ for (const interceptor of this.interceptors) {
152
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
153
+ }
154
+
155
+ return interceptorPromise.then(() => {
156
+ if (Object.keys(localVarFormParams).length) {
157
+ if (localVarUseFormData) {
158
+ (<any>localVarRequestOptions).formData = localVarFormParams;
159
+ } else {
160
+ localVarRequestOptions.form = localVarFormParams;
161
+ }
162
+ }
163
+ return new Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }>((resolve, reject) => {
164
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
165
+ if (error) {
166
+ reject(error);
167
+ } else {
168
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
169
+ body = ObjectSerializer.deserialize(body, "StaticVoucherCampaign");
170
+ resolve({ response: response, body: body });
171
+ } else {
172
+ reject(new HttpError(response, body, response.statusCode));
173
+ }
174
+ }
175
+ });
176
+ });
177
+ });
178
+ }
109
179
  /**
110
180
  *
111
181
  * @summary Count loaded vouchers
@@ -385,9 +455,9 @@ export class StaticVoucherCampaignsApi {
385
455
  /**
386
456
  *
387
457
  * @summary Create static voucher campaign with voucher
388
- * @param createStaticVoucherCampaignWithVoucher
458
+ * @param body
389
459
  */
390
- public async createStaticVoucherCampaignWithVoucher (createStaticVoucherCampaignWithVoucher: CreateStaticVoucherCampaignWithVoucher, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTStaticVoucherCampaign; }> {
460
+ public async createStaticVoucherCampaignWithVoucher (body: PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WTStaticVoucherCampaign; }> {
391
461
  const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/voucher';
392
462
  let localVarQueryParameters: any = {};
393
463
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -400,9 +470,9 @@ export class StaticVoucherCampaignsApi {
400
470
  }
401
471
  let localVarFormParams: any = {};
402
472
 
403
- // verify required parameter 'createStaticVoucherCampaignWithVoucher' is not null or undefined
404
- if (createStaticVoucherCampaignWithVoucher === null || createStaticVoucherCampaignWithVoucher === undefined) {
405
- throw new Error('Required parameter createStaticVoucherCampaignWithVoucher was null or undefined when calling createStaticVoucherCampaignWithVoucher.');
473
+ // verify required parameter 'body' is not null or undefined
474
+ if (body === null || body === undefined) {
475
+ throw new Error('Required parameter body was null or undefined when calling createStaticVoucherCampaignWithVoucher.');
406
476
  }
407
477
 
408
478
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -416,7 +486,7 @@ export class StaticVoucherCampaignsApi {
416
486
  uri: localVarPath,
417
487
  useQuerystring: this._useQuerystring,
418
488
  json: true,
419
- body: ObjectSerializer.serialize(createStaticVoucherCampaignWithVoucher, "CreateStaticVoucherCampaignWithVoucher")
489
+ body: ObjectSerializer.serialize(body, "PickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive")
420
490
  };
421
491
 
422
492
  let authenticationPromise = Promise.resolve();
@@ -1329,6 +1399,75 @@ export class StaticVoucherCampaignsApi {
1329
1399
  });
1330
1400
  });
1331
1401
  }
1402
+ /**
1403
+ *
1404
+ * @summary Restore static voucher campaign
1405
+ * @param campaignID
1406
+ */
1407
+ public async restoreStaticVoucherCampaign (campaignID: any, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }> {
1408
+ const localVarPath = this.basePath + '/v2/payment/staticVoucherCampaign/{campaignID}'
1409
+ .replace('{' + 'campaignID' + '}', encodeURIComponent(String(campaignID)));
1410
+ let localVarQueryParameters: any = {};
1411
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1412
+ const produces = ['application/json'];
1413
+ // give precedence to 'application/json'
1414
+ if (produces.indexOf('application/json') >= 0) {
1415
+ localVarHeaderParams.Accept = 'application/json';
1416
+ } else {
1417
+ localVarHeaderParams.Accept = produces.join(',');
1418
+ }
1419
+ let localVarFormParams: any = {};
1420
+
1421
+ // verify required parameter 'campaignID' is not null or undefined
1422
+ if (campaignID === null || campaignID === undefined) {
1423
+ throw new Error('Required parameter campaignID was null or undefined when calling restoreStaticVoucherCampaign.');
1424
+ }
1425
+
1426
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1427
+
1428
+ let localVarUseFormData = false;
1429
+
1430
+ let localVarRequestOptions: localVarRequest.Options = {
1431
+ method: 'PATCH',
1432
+ qs: localVarQueryParameters,
1433
+ headers: localVarHeaderParams,
1434
+ uri: localVarPath,
1435
+ useQuerystring: this._useQuerystring,
1436
+ json: true,
1437
+ };
1438
+
1439
+ let authenticationPromise = Promise.resolve();
1440
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1441
+
1442
+ let interceptorPromise = authenticationPromise;
1443
+ for (const interceptor of this.interceptors) {
1444
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1445
+ }
1446
+
1447
+ return interceptorPromise.then(() => {
1448
+ if (Object.keys(localVarFormParams).length) {
1449
+ if (localVarUseFormData) {
1450
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1451
+ } else {
1452
+ localVarRequestOptions.form = localVarFormParams;
1453
+ }
1454
+ }
1455
+ return new Promise<{ response: http.IncomingMessage; body: StaticVoucherCampaign; }>((resolve, reject) => {
1456
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1457
+ if (error) {
1458
+ reject(error);
1459
+ } else {
1460
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1461
+ body = ObjectSerializer.deserialize(body, "StaticVoucherCampaign");
1462
+ resolve({ response: response, body: body });
1463
+ } else {
1464
+ reject(new HttpError(response, body, response.statusCode));
1465
+ }
1466
+ }
1467
+ });
1468
+ });
1469
+ });
1470
+ }
1332
1471
  /**
1333
1472
  *
1334
1473
  * @summary Update static voucher campaign
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/systemApi.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * wallet-api
3
3
  * API
4
4
  *
5
- * The version of the OpenAPI document: 2.1.522
5
+ * The version of the OpenAPI document: 2.1.527
6
6
  * Contact: development@wallet.inc
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,22 @@ export declare class BillingApi {
27
27
  setDefaultAuthentication(auth: Authentication): void;
28
28
  setApiKey(key: BillingApiApiKeys, value: string): void;
29
29
  addInterceptor(interceptor: Interceptor): void;
30
+ buyAddOn(productID: string, options?: {
31
+ headers: {
32
+ [name: string]: string;
33
+ };
34
+ }): Promise<{
35
+ response: http.IncomingMessage;
36
+ body: any;
37
+ }>;
38
+ buySpecialOffer(productID: string, options?: {
39
+ headers: {
40
+ [name: string]: string;
41
+ };
42
+ }): Promise<{
43
+ response: http.IncomingMessage;
44
+ body: any;
45
+ }>;
30
46
  cancelPlan(options?: {
31
47
  headers: {
32
48
  [name: string]: string;
@@ -43,6 +59,14 @@ export declare class BillingApi {
43
59
  response: http.IncomingMessage;
44
60
  body: any;
45
61
  }>;
62
+ fetchAddOns(options?: {
63
+ headers: {
64
+ [name: string]: string;
65
+ };
66
+ }): Promise<{
67
+ response: http.IncomingMessage;
68
+ body: Array<any>;
69
+ }>;
46
70
  fetchIndustry(options?: {
47
71
  headers: {
48
72
  [name: string]: string;
@@ -59,6 +83,14 @@ export declare class BillingApi {
59
83
  response: http.IncomingMessage;
60
84
  body: any;
61
85
  }>;
86
+ fetchSpecialOffers(options?: {
87
+ headers: {
88
+ [name: string]: string;
89
+ };
90
+ }): Promise<{
91
+ response: http.IncomingMessage;
92
+ body: Array<any>;
93
+ }>;
62
94
  fetchSubscription(options?: {
63
95
  headers: {
64
96
  [name: string]: string;
@@ -67,6 +67,128 @@ class BillingApi {
67
67
  addInterceptor(interceptor) {
68
68
  this.interceptors.push(interceptor);
69
69
  }
70
+ buyAddOn(productID, options = { headers: {} }) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const localVarPath = this.basePath + '/v2/billing/products/addOns/{productID}'
73
+ .replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
74
+ let localVarQueryParameters = {};
75
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
76
+ const produces = ['application/json'];
77
+ if (produces.indexOf('application/json') >= 0) {
78
+ localVarHeaderParams.Accept = 'application/json';
79
+ }
80
+ else {
81
+ localVarHeaderParams.Accept = produces.join(',');
82
+ }
83
+ let localVarFormParams = {};
84
+ if (productID === null || productID === undefined) {
85
+ throw new Error('Required parameter productID was null or undefined when calling buyAddOn.');
86
+ }
87
+ Object.assign(localVarHeaderParams, options.headers);
88
+ let localVarUseFormData = false;
89
+ let localVarRequestOptions = {
90
+ method: 'POST',
91
+ qs: localVarQueryParameters,
92
+ headers: localVarHeaderParams,
93
+ uri: localVarPath,
94
+ useQuerystring: this._useQuerystring,
95
+ json: true,
96
+ };
97
+ let authenticationPromise = Promise.resolve();
98
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
99
+ let interceptorPromise = authenticationPromise;
100
+ for (const interceptor of this.interceptors) {
101
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
102
+ }
103
+ return interceptorPromise.then(() => {
104
+ if (Object.keys(localVarFormParams).length) {
105
+ if (localVarUseFormData) {
106
+ localVarRequestOptions.formData = localVarFormParams;
107
+ }
108
+ else {
109
+ localVarRequestOptions.form = localVarFormParams;
110
+ }
111
+ }
112
+ return new Promise((resolve, reject) => {
113
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
114
+ if (error) {
115
+ reject(error);
116
+ }
117
+ else {
118
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
119
+ body = models_1.ObjectSerializer.deserialize(body, "any");
120
+ resolve({ response: response, body: body });
121
+ }
122
+ else {
123
+ reject(new apis_1.HttpError(response, body, response.statusCode));
124
+ }
125
+ }
126
+ });
127
+ });
128
+ });
129
+ });
130
+ }
131
+ buySpecialOffer(productID, options = { headers: {} }) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const localVarPath = this.basePath + '/v2/billing/products/specialOffers/{productID}'
134
+ .replace('{' + 'productID' + '}', encodeURIComponent(String(productID)));
135
+ let localVarQueryParameters = {};
136
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
137
+ const produces = ['application/json'];
138
+ if (produces.indexOf('application/json') >= 0) {
139
+ localVarHeaderParams.Accept = 'application/json';
140
+ }
141
+ else {
142
+ localVarHeaderParams.Accept = produces.join(',');
143
+ }
144
+ let localVarFormParams = {};
145
+ if (productID === null || productID === undefined) {
146
+ throw new Error('Required parameter productID was null or undefined when calling buySpecialOffer.');
147
+ }
148
+ Object.assign(localVarHeaderParams, options.headers);
149
+ let localVarUseFormData = false;
150
+ let localVarRequestOptions = {
151
+ method: 'POST',
152
+ qs: localVarQueryParameters,
153
+ headers: localVarHeaderParams,
154
+ uri: localVarPath,
155
+ useQuerystring: this._useQuerystring,
156
+ json: true,
157
+ };
158
+ let authenticationPromise = Promise.resolve();
159
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
160
+ let interceptorPromise = authenticationPromise;
161
+ for (const interceptor of this.interceptors) {
162
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
163
+ }
164
+ return interceptorPromise.then(() => {
165
+ if (Object.keys(localVarFormParams).length) {
166
+ if (localVarUseFormData) {
167
+ localVarRequestOptions.formData = localVarFormParams;
168
+ }
169
+ else {
170
+ localVarRequestOptions.form = localVarFormParams;
171
+ }
172
+ }
173
+ return new Promise((resolve, reject) => {
174
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
175
+ if (error) {
176
+ reject(error);
177
+ }
178
+ else {
179
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
180
+ body = models_1.ObjectSerializer.deserialize(body, "any");
181
+ resolve({ response: response, body: body });
182
+ }
183
+ else {
184
+ reject(new apis_1.HttpError(response, body, response.statusCode));
185
+ }
186
+ }
187
+ });
188
+ });
189
+ });
190
+ });
191
+ }
70
192
  cancelPlan(options = { headers: {} }) {
71
193
  return __awaiter(this, void 0, void 0, function* () {
72
194
  const localVarPath = this.basePath + '/v2/billing/plan';
@@ -185,6 +307,63 @@ class BillingApi {
185
307
  });
186
308
  });
187
309
  }
310
+ fetchAddOns(options = { headers: {} }) {
311
+ return __awaiter(this, void 0, void 0, function* () {
312
+ const localVarPath = this.basePath + '/v2/billing/products/addOns';
313
+ let localVarQueryParameters = {};
314
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
315
+ const produces = ['application/json'];
316
+ if (produces.indexOf('application/json') >= 0) {
317
+ localVarHeaderParams.Accept = 'application/json';
318
+ }
319
+ else {
320
+ localVarHeaderParams.Accept = produces.join(',');
321
+ }
322
+ let localVarFormParams = {};
323
+ Object.assign(localVarHeaderParams, options.headers);
324
+ let localVarUseFormData = false;
325
+ let localVarRequestOptions = {
326
+ method: 'GET',
327
+ qs: localVarQueryParameters,
328
+ headers: localVarHeaderParams,
329
+ uri: localVarPath,
330
+ useQuerystring: this._useQuerystring,
331
+ json: true,
332
+ };
333
+ let authenticationPromise = Promise.resolve();
334
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
335
+ let interceptorPromise = authenticationPromise;
336
+ for (const interceptor of this.interceptors) {
337
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
338
+ }
339
+ return interceptorPromise.then(() => {
340
+ if (Object.keys(localVarFormParams).length) {
341
+ if (localVarUseFormData) {
342
+ localVarRequestOptions.formData = localVarFormParams;
343
+ }
344
+ else {
345
+ localVarRequestOptions.form = localVarFormParams;
346
+ }
347
+ }
348
+ return new Promise((resolve, reject) => {
349
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
350
+ if (error) {
351
+ reject(error);
352
+ }
353
+ else {
354
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
355
+ body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
356
+ resolve({ response: response, body: body });
357
+ }
358
+ else {
359
+ reject(new apis_1.HttpError(response, body, response.statusCode));
360
+ }
361
+ }
362
+ });
363
+ });
364
+ });
365
+ });
366
+ }
188
367
  fetchIndustry(options = { headers: {} }) {
189
368
  return __awaiter(this, void 0, void 0, function* () {
190
369
  const localVarPath = this.basePath + '/v2/billing/industry';
@@ -299,6 +478,63 @@ class BillingApi {
299
478
  });
300
479
  });
301
480
  }
481
+ fetchSpecialOffers(options = { headers: {} }) {
482
+ return __awaiter(this, void 0, void 0, function* () {
483
+ const localVarPath = this.basePath + '/v2/billing/products/specialOffers';
484
+ let localVarQueryParameters = {};
485
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
486
+ const produces = ['application/json'];
487
+ if (produces.indexOf('application/json') >= 0) {
488
+ localVarHeaderParams.Accept = 'application/json';
489
+ }
490
+ else {
491
+ localVarHeaderParams.Accept = produces.join(',');
492
+ }
493
+ let localVarFormParams = {};
494
+ Object.assign(localVarHeaderParams, options.headers);
495
+ let localVarUseFormData = false;
496
+ let localVarRequestOptions = {
497
+ method: 'GET',
498
+ qs: localVarQueryParameters,
499
+ headers: localVarHeaderParams,
500
+ uri: localVarPath,
501
+ useQuerystring: this._useQuerystring,
502
+ json: true,
503
+ };
504
+ let authenticationPromise = Promise.resolve();
505
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
506
+ let interceptorPromise = authenticationPromise;
507
+ for (const interceptor of this.interceptors) {
508
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
509
+ }
510
+ return interceptorPromise.then(() => {
511
+ if (Object.keys(localVarFormParams).length) {
512
+ if (localVarUseFormData) {
513
+ localVarRequestOptions.formData = localVarFormParams;
514
+ }
515
+ else {
516
+ localVarRequestOptions.form = localVarFormParams;
517
+ }
518
+ }
519
+ return new Promise((resolve, reject) => {
520
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
521
+ if (error) {
522
+ reject(error);
523
+ }
524
+ else {
525
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
526
+ body = models_1.ObjectSerializer.deserialize(body, "Array<any>");
527
+ resolve({ response: response, body: body });
528
+ }
529
+ else {
530
+ reject(new apis_1.HttpError(response, body, response.statusCode));
531
+ }
532
+ }
533
+ });
534
+ });
535
+ });
536
+ });
537
+ }
302
538
  fetchSubscription(options = { headers: {} }) {
303
539
  return __awaiter(this, void 0, void 0, function* () {
304
540
  const localVarPath = this.basePath + '/v2/billing/subscription';