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.
Files changed (1519) hide show
  1. package/LICENSE +201 -201
  2. package/NOTICE +14 -0
  3. package/README.md +1551 -1530
  4. package/dist/api/aPIKeysApi.d.ts +70 -70
  5. package/dist/api/aPIKeysApi.js +379 -379
  6. package/dist/api/amenitiesApi.d.ts +69 -69
  7. package/dist/api/amenitiesApi.js +379 -379
  8. package/dist/api/apis.d.ts +126 -116
  9. package/dist/api/apis.js +144 -134
  10. package/dist/api/apis.js.map +1 -1
  11. package/dist/api/appToPersonA2PRegistrationApi.d.ts +60 -60
  12. package/dist/api/appToPersonA2PRegistrationApi.js +311 -311
  13. package/dist/api/appleWalletSubscribersApi.d.ts +42 -42
  14. package/dist/api/appleWalletSubscribersApi.js +195 -195
  15. package/dist/api/authenticationApi.d.ts +63 -63
  16. package/dist/api/authenticationApi.js +311 -311
  17. package/dist/api/billingPaymentsApi.d.ts +160 -152
  18. package/dist/api/billingPaymentsApi.js +1009 -952
  19. package/dist/api/billingPaymentsApi.js.map +1 -1
  20. package/dist/api/broadcastsApi.d.ts +129 -0
  21. package/dist/api/broadcastsApi.js +816 -0
  22. package/dist/api/broadcastsApi.js.map +1 -0
  23. package/dist/api/clubMembersApi.d.ts +116 -116
  24. package/dist/api/clubMembersApi.js +681 -681
  25. package/dist/api/countriesApi.d.ts +35 -35
  26. package/dist/api/countriesApi.js +128 -128
  27. package/dist/api/customerApi.d.ts +102 -102
  28. package/dist/api/customerApi.js +632 -632
  29. package/dist/api/diningApi.d.ts +69 -69
  30. package/dist/api/diningApi.js +379 -379
  31. package/dist/api/dynamicVouchersApi.d.ts +112 -104
  32. package/dist/api/dynamicVouchersApi.js +691 -631
  33. package/dist/api/dynamicVouchersApi.js.map +1 -1
  34. package/dist/api/emailSubscribersApi.d.ts +69 -69
  35. package/dist/api/emailSubscribersApi.js +385 -385
  36. package/dist/api/employeesApi.d.ts +155 -399
  37. package/dist/api/employeesApi.js +974 -2679
  38. package/dist/api/employeesApi.js.map +1 -1
  39. package/dist/api/filesDocumentsApi.d.ts +114 -0
  40. package/dist/api/filesDocumentsApi.js +680 -0
  41. package/dist/api/filesDocumentsApi.js.map +1 -0
  42. package/dist/api/galleryApi.d.ts +69 -69
  43. package/dist/api/galleryApi.js +379 -379
  44. package/dist/api/gamingApi.d.ts +69 -69
  45. package/dist/api/gamingApi.js +379 -379
  46. package/dist/api/helpDeskApi.d.ts +53 -0
  47. package/dist/api/helpDeskApi.js +258 -0
  48. package/dist/api/helpDeskApi.js.map +1 -0
  49. package/dist/api/importExportApi.d.ts +84 -0
  50. package/dist/api/importExportApi.js +487 -0
  51. package/dist/api/importExportApi.js.map +1 -0
  52. package/dist/api/importedListsApi.d.ts +138 -0
  53. package/dist/api/importedListsApi.js +890 -0
  54. package/dist/api/importedListsApi.js.map +1 -0
  55. package/dist/api/industriesApi.d.ts +52 -52
  56. package/dist/api/industriesApi.js +242 -242
  57. package/dist/api/infoGenesisReportsApi.d.ts +250 -250
  58. package/dist/api/infoGenesisReportsApi.js +1742 -1742
  59. package/dist/api/interactionsApi.d.ts +194 -194
  60. package/dist/api/interactionsApi.js +1263 -1263
  61. package/dist/api/loungeApi.d.ts +69 -69
  62. package/dist/api/loungeApi.js +379 -379
  63. package/dist/api/membershipTiersApi.d.ts +105 -105
  64. package/dist/api/membershipTiersApi.js +622 -622
  65. package/dist/api/merchantApi.d.ts +93 -258
  66. package/dist/api/merchantApi.js +539 -1744
  67. package/dist/api/merchantApi.js.map +1 -1
  68. package/dist/api/merchantCreditsApi.d.ts +116 -116
  69. package/dist/api/merchantCreditsApi.js +681 -681
  70. package/dist/api/newsApi.d.ts +69 -69
  71. package/dist/api/newsApi.js +379 -379
  72. package/dist/api/openAIApi.d.ts +193 -193
  73. package/dist/api/openAIApi.js +1245 -1245
  74. package/dist/api/{dashboardSummariesApi.d.ts → optInListsApi.d.ts} +178 -171
  75. package/dist/api/{dashboardSummariesApi.js → optInListsApi.js} +1239 -1311
  76. package/dist/api/optInListsApi.js.map +1 -0
  77. package/dist/api/paymentDesignsApi.d.ts +77 -77
  78. package/dist/api/paymentDesignsApi.js +440 -440
  79. package/dist/api/performancesApi.d.ts +140 -140
  80. package/dist/api/performancesApi.js +905 -905
  81. package/dist/api/phoneNumbersApi.d.ts +110 -0
  82. package/dist/api/phoneNumbersApi.js +684 -0
  83. package/dist/api/phoneNumbersApi.js.map +1 -0
  84. package/dist/api/pointOfSaleConfigurationApi.d.ts +69 -69
  85. package/dist/api/pointOfSaleConfigurationApi.js +379 -379
  86. package/dist/api/prizesApi.d.ts +86 -86
  87. package/dist/api/prizesApi.js +501 -501
  88. package/dist/api/productsApi.d.ts +69 -69
  89. package/dist/api/productsApi.js +379 -379
  90. package/dist/api/promotionCodesApi.d.ts +69 -69
  91. package/dist/api/promotionCodesApi.js +379 -379
  92. package/dist/api/qRCodeDesignsApi.d.ts +78 -78
  93. package/dist/api/qRCodeDesignsApi.js +440 -440
  94. package/dist/api/quickLinksApi.d.ts +78 -78
  95. package/dist/api/quickLinksApi.js +440 -440
  96. package/dist/api/quickLinksSectionApi.d.ts +69 -69
  97. package/dist/api/quickLinksSectionApi.js +379 -379
  98. package/dist/api/roomRatesApi.d.ts +69 -69
  99. package/dist/api/roomRatesApi.js +379 -379
  100. package/dist/api/sMSMessagesApi.d.ts +112 -0
  101. package/dist/api/sMSMessagesApi.js +774 -0
  102. package/dist/api/sMSMessagesApi.js.map +1 -0
  103. package/dist/api/sMSSubscribersApi.d.ts +69 -69
  104. package/dist/api/sMSSubscribersApi.js +385 -385
  105. package/dist/api/servicesApi.d.ts +69 -69
  106. package/dist/api/servicesApi.js +379 -379
  107. package/dist/api/shopifyTerminalApi.d.ts +51 -51
  108. package/dist/api/shopifyTerminalApi.js +258 -258
  109. package/dist/api/shortLinksApi.d.ts +86 -86
  110. package/dist/api/shortLinksApi.js +501 -501
  111. package/dist/api/staticVoucherCampaignsApi.d.ts +200 -200
  112. package/dist/api/staticVoucherCampaignsApi.js +1325 -1325
  113. package/dist/api/staticVouchersApi.d.ts +78 -78
  114. package/dist/api/staticVouchersApi.js +449 -449
  115. package/dist/api/systemApi.d.ts +88 -96
  116. package/dist/api/systemApi.js +510 -567
  117. package/dist/api/systemApi.js.map +1 -1
  118. package/dist/api/ticketsApi.d.ts +70 -70
  119. package/dist/api/ticketsApi.js +380 -380
  120. package/dist/api/videosApi.d.ts +79 -69
  121. package/dist/api/videosApi.js +440 -379
  122. package/dist/api/videosApi.js.map +1 -1
  123. package/dist/api/virtualBusinessCardApi.d.ts +86 -86
  124. package/dist/api/virtualBusinessCardApi.js +501 -501
  125. package/dist/api/walletConfigurationApi.d.ts +53 -53
  126. package/dist/api/walletConfigurationApi.js +253 -253
  127. package/dist/api/walletMobileTerminalApi.d.ts +52 -52
  128. package/dist/api/walletMobileTerminalApi.js +258 -258
  129. package/dist/api/walletTransactionLedgerApi.d.ts +36 -36
  130. package/dist/api/walletTransactionLedgerApi.js +155 -155
  131. package/dist/api/walletWebTerminalApi.d.ts +51 -51
  132. package/dist/api/walletWebTerminalApi.js +258 -258
  133. package/dist/api/wixTerminalApi.d.ts +51 -51
  134. package/dist/api/wixTerminalApi.js +258 -258
  135. package/dist/api/wooCommerceTerminalApi.d.ts +51 -51
  136. package/dist/api/wooCommerceTerminalApi.js +258 -258
  137. package/dist/api.d.ts +2 -2
  138. package/dist/api.js +18 -18
  139. package/dist/model/a2PApplicationSubmission.d.ts +53 -53
  140. package/dist/model/a2PApplicationSubmission.js +192 -192
  141. package/dist/model/advertisementCredit.d.ts +24 -24
  142. package/dist/model/advertisementCredit.js +77 -77
  143. package/dist/model/advertisementCreditBroadcast.d.ts +37 -37
  144. package/dist/model/advertisementCreditBroadcast.js +117 -117
  145. package/dist/model/advertisementCreditScan.d.ts +36 -36
  146. package/dist/model/advertisementCreditScan.js +127 -127
  147. package/dist/model/amenity.d.ts +21 -21
  148. package/dist/model/amenity.js +67 -67
  149. package/dist/model/amenityId.d.ts +13 -13
  150. package/dist/model/amenityId.js +11 -11
  151. package/dist/model/announcement.d.ts +16 -16
  152. package/dist/model/announcement.js +47 -47
  153. package/dist/model/applicableTerminals.d.ts +13 -13
  154. package/dist/model/applicableTerminals.js +11 -11
  155. package/dist/model/assistant.d.ts +25 -25
  156. package/dist/model/assistant.js +87 -87
  157. package/dist/model/authError.d.ts +14 -14
  158. package/dist/model/authError.js +37 -37
  159. package/dist/model/availablePhoneNumbersRequest.d.ts +11 -11
  160. package/dist/model/availablePhoneNumbersRequest.js +22 -22
  161. package/dist/model/browserDetails.d.ts +14 -14
  162. package/dist/model/browserDetails.js +37 -37
  163. package/dist/model/businessClassification.d.ts +6 -6
  164. package/dist/model/businessClassification.js +10 -10
  165. package/dist/model/businessIndustry.d.ts +35 -35
  166. package/dist/model/businessIndustry.js +39 -39
  167. package/dist/model/businessRegionsOfOperation.d.ts +8 -8
  168. package/dist/model/businessRegionsOfOperation.js +12 -12
  169. package/dist/model/businessRegistrationIdentifier.d.ts +12 -12
  170. package/dist/model/businessRegistrationIdentifier.js +16 -16
  171. package/dist/model/businessStockExchanges.d.ts +29 -29
  172. package/dist/model/businessStockExchanges.js +33 -33
  173. package/dist/model/businessType.d.ts +8 -8
  174. package/dist/model/businessType.js +12 -12
  175. package/dist/model/chatCompletionAudio.d.ts +13 -13
  176. package/dist/model/chatCompletionAudio.js +32 -32
  177. package/dist/model/chatCompletionMessage.d.ts +22 -22
  178. package/dist/model/chatCompletionMessage.js +48 -48
  179. package/dist/model/chatCompletionMessageAudio.d.ts +17 -17
  180. package/dist/model/chatCompletionMessageAudio.js +32 -32
  181. package/dist/model/chatCompletionMessageFunctionCall.d.ts +15 -15
  182. package/dist/model/chatCompletionMessageFunctionCall.js +22 -22
  183. package/dist/model/chatCompletionMessageToolCall.d.ts +18 -18
  184. package/dist/model/chatCompletionMessageToolCall.js +33 -33
  185. package/dist/model/chatCompletionMessageToolCallFunction.d.ts +11 -11
  186. package/dist/model/chatCompletionMessageToolCallFunction.js +22 -22
  187. package/dist/model/claimTicketRequest.d.ts +14 -14
  188. package/dist/model/claimTicketRequest.js +17 -17
  189. package/dist/model/clickFunnelAmount.d.ts +11 -11
  190. package/dist/model/clickFunnelAmount.js +22 -22
  191. package/dist/model/clickFunnelContact.d.ts +53 -53
  192. package/dist/model/clickFunnelContact.js +227 -227
  193. package/dist/model/clickFunnelContactProfile.d.ts +44 -44
  194. package/dist/model/clickFunnelContactProfile.js +187 -187
  195. package/dist/model/clickFunnelEvent.d.ts +12 -12
  196. package/dist/model/clickFunnelEvent.js +22 -22
  197. package/dist/model/clickFunnelOriginalAmount.d.ts +11 -11
  198. package/dist/model/clickFunnelOriginalAmount.js +22 -22
  199. package/dist/model/clickFunnelProduct.d.ts +38 -38
  200. package/dist/model/clickFunnelProduct.js +152 -152
  201. package/dist/model/clickFunnelPurchase.d.ts +38 -38
  202. package/dist/model/clickFunnelPurchase.js +137 -137
  203. package/dist/model/clickFunnelRegistration.d.ts +12 -12
  204. package/dist/model/clickFunnelRegistration.js +22 -22
  205. package/dist/model/countClaimedComps200Response.d.ts +15 -15
  206. package/dist/model/countClaimedComps200Response.js +22 -22
  207. package/dist/model/createFile200Response.d.ts +16 -16
  208. package/dist/model/createFile200Response.js +27 -27
  209. package/dist/model/createRunOnThreadRequest.d.ts +15 -15
  210. package/dist/model/createRunOnThreadRequest.js +22 -22
  211. package/dist/model/createStaticVoucherCampaign.d.ts +23 -23
  212. package/dist/model/createStaticVoucherCampaign.js +77 -77
  213. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +23 -23
  214. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +77 -77
  215. package/dist/model/dashboardWidget.d.ts +25 -25
  216. package/dist/model/dashboardWidget.js +92 -92
  217. package/dist/model/dining.d.ts +21 -21
  218. package/dist/model/dining.js +67 -67
  219. package/dist/model/document.d.ts +19 -19
  220. package/dist/model/document.js +62 -62
  221. package/dist/model/duplicateRowFound.d.ts +14 -14
  222. package/dist/model/duplicateRowFound.js +37 -37
  223. package/dist/model/dynamicVoucher.d.ts +46 -46
  224. package/dist/model/dynamicVoucher.js +177 -177
  225. package/dist/model/dynamicVoucherBroadcast.d.ts +37 -37
  226. package/dist/model/dynamicVoucherBroadcast.js +117 -117
  227. package/dist/model/dynamicVoucherBroadcastListType.d.ts +13 -13
  228. package/dist/model/dynamicVoucherBroadcastListType.js +11 -11
  229. package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.d.ts +13 -13
  230. package/dist/model/dynamicVoucherTemporalDecreaseFrequencyType.js +11 -11
  231. package/dist/model/emailSubscriber.d.ts +18 -18
  232. package/dist/model/emailSubscriber.js +52 -52
  233. package/dist/model/employee.d.ts +43 -43
  234. package/dist/model/employee.js +162 -162
  235. package/dist/model/employeeAPIKey.d.ts +19 -19
  236. package/dist/model/employeeAPIKey.js +57 -57
  237. package/dist/model/employeeActivityLog.d.ts +16 -16
  238. package/dist/model/employeeActivityLog.js +47 -47
  239. package/dist/model/employeeAlert.d.ts +19 -19
  240. package/dist/model/employeeAlert.js +62 -62
  241. package/dist/model/employeeScheduleStartDay.d.ts +13 -13
  242. package/dist/model/employeeScheduleStartDay.js +11 -11
  243. package/dist/model/employeeScheduleStartHour.d.ts +13 -13
  244. package/dist/model/employeeScheduleStartHour.js +11 -11
  245. package/dist/model/employeeScheduleStartMeridiem.d.ts +13 -13
  246. package/dist/model/employeeScheduleStartMeridiem.js +11 -11
  247. package/dist/model/employeeScheduleStartMinute.d.ts +13 -13
  248. package/dist/model/employeeScheduleStartMinute.js +11 -11
  249. package/dist/model/entityTooLarge.d.ts +14 -14
  250. package/dist/model/entityTooLarge.js +37 -37
  251. package/dist/model/exportDataFile.d.ts +19 -19
  252. package/dist/model/exportDataFile.js +62 -62
  253. package/dist/model/falsumError.d.ts +11 -11
  254. package/dist/model/falsumError.js +22 -22
  255. package/dist/model/falsumField.d.ts +12 -12
  256. package/dist/model/falsumField.js +27 -27
  257. package/dist/model/feature.d.ts +18 -18
  258. package/dist/model/feature.js +57 -57
  259. package/dist/model/fetchAdvertisementCreditScansFromListRequest.d.ts +14 -14
  260. package/dist/model/fetchAdvertisementCreditScansFromListRequest.js +17 -17
  261. package/dist/model/fetchAllCountries200ResponseInner.d.ts +17 -17
  262. package/dist/model/fetchAllCountries200ResponseInner.js +32 -32
  263. package/dist/model/fetchAllLedgerTransactions200Response.d.ts +17 -17
  264. package/dist/model/fetchAllLedgerTransactions200Response.js +27 -27
  265. package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.d.ts +28 -28
  266. package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.js +77 -77
  267. package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.d.ts +13 -13
  268. package/dist/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.js +11 -11
  269. package/dist/model/fetchCustomerTicketsWithTokenRequest.d.ts +15 -15
  270. package/dist/model/fetchCustomerTicketsWithTokenRequest.js +22 -22
  271. package/dist/model/fetchDomainsByIndustry200Response.d.ts +20 -20
  272. package/dist/model/fetchDomainsByIndustry200Response.js +47 -47
  273. package/dist/model/fetchImportedListRecipientsByPage200Response.d.ts +17 -17
  274. package/dist/model/fetchImportedListRecipientsByPage200Response.js +27 -27
  275. package/dist/model/fetchInboundSMSByPage200Response.d.ts +17 -17
  276. package/dist/model/fetchInboundSMSByPage200Response.js +27 -27
  277. package/dist/model/fetchIndustry200Response.d.ts +19 -19
  278. package/dist/model/fetchIndustry200Response.js +37 -37
  279. package/dist/model/fetchMembersCount200Response.d.ts +14 -14
  280. package/dist/model/fetchMembersCount200Response.js +17 -17
  281. package/dist/model/fetchOptInListSubscribersByPage200Response.d.ts +17 -17
  282. package/dist/model/fetchOptInListSubscribersByPage200Response.js +27 -27
  283. package/dist/model/fetchOutboundSMSByPage200Response.d.ts +17 -17
  284. package/dist/model/fetchOutboundSMSByPage200Response.js +27 -27
  285. package/dist/model/fetchPerformanceTicketsPage200Response.d.ts +16 -16
  286. package/dist/model/fetchPerformanceTicketsPage200Response.js +22 -22
  287. package/dist/model/fetchStaticVouchersPage200Response.d.ts +16 -16
  288. package/dist/model/fetchStaticVouchersPage200Response.js +22 -22
  289. package/dist/model/forbiddenRequest.d.ts +14 -14
  290. package/dist/model/forbiddenRequest.js +37 -37
  291. package/dist/model/foreignKeyDoesNotExist.d.ts +14 -14
  292. package/dist/model/foreignKeyDoesNotExist.js +37 -37
  293. package/dist/model/gaming.d.ts +21 -21
  294. package/dist/model/gaming.js +67 -67
  295. package/dist/model/helpDeskRequest.d.ts +20 -20
  296. package/dist/model/helpDeskRequest.js +62 -62
  297. package/dist/model/imageGrid.d.ts +20 -20
  298. package/dist/model/imageGrid.js +62 -62
  299. package/dist/model/importTicketsRequest.d.ts +15 -15
  300. package/dist/model/importTicketsRequest.js +17 -17
  301. package/dist/model/importedList.d.ts +18 -18
  302. package/dist/model/importedList.js +52 -52
  303. package/dist/model/importedListRecipient.d.ts +18 -18
  304. package/dist/model/importedListRecipient.js +52 -52
  305. package/dist/model/inboundSMS.d.ts +46 -46
  306. package/dist/model/inboundSMS.js +192 -192
  307. package/dist/model/internalServerError500.d.ts +14 -14
  308. package/dist/model/internalServerError500.js +37 -37
  309. package/dist/model/jobPosition.d.ts +9 -9
  310. package/dist/model/jobPosition.js +13 -13
  311. package/dist/model/ledgerEntry.d.ts +38 -38
  312. package/dist/model/ledgerEntry.js +137 -137
  313. package/dist/model/ledgerEntryParentObjectID.d.ts +13 -13
  314. package/dist/model/ledgerEntryParentObjectID.js +11 -11
  315. package/dist/model/ledgerEntryTransactionType.d.ts +13 -13
  316. package/dist/model/ledgerEntryTransactionType.js +11 -11
  317. package/dist/model/linkBook.d.ts +21 -21
  318. package/dist/model/linkBook.js +62 -62
  319. package/dist/model/linkBookSection.d.ts +17 -17
  320. package/dist/model/linkBookSection.js +47 -47
  321. package/dist/model/loginStatus200Response.d.ts +21 -21
  322. package/dist/model/loginStatus200Response.js +33 -33
  323. package/dist/model/loginStatus200ResponseAnyOf.d.ts +15 -15
  324. package/dist/model/loginStatus200ResponseAnyOf.js +22 -22
  325. package/dist/model/lounge.d.ts +21 -21
  326. package/dist/model/lounge.js +67 -67
  327. package/dist/model/mSAnalyticsMemberCountPartitionedByDate.d.ts +11 -11
  328. package/dist/model/mSAnalyticsMemberCountPartitionedByDate.js +22 -22
  329. package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.d.ts +11 -11
  330. package/dist/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.js +22 -22
  331. package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.d.ts +11 -11
  332. package/dist/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.js +22 -22
  333. package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.d.ts +11 -11
  334. package/dist/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.js +22 -22
  335. package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.d.ts +11 -11
  336. package/dist/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.js +22 -22
  337. package/dist/model/mSMemberHistory.d.ts +22 -22
  338. package/dist/model/mSMemberHistory.js +77 -77
  339. package/dist/model/mSMemberHistoryPagination.d.ts +12 -12
  340. package/dist/model/mSMemberHistoryPagination.js +27 -27
  341. package/dist/model/mSMemberRedemption.d.ts +21 -21
  342. package/dist/model/mSMemberRedemption.js +62 -62
  343. package/dist/model/mSMemberRedemptionPagination.d.ts +12 -12
  344. package/dist/model/mSMemberRedemptionPagination.js +27 -27
  345. package/dist/model/mSMemberRedemptionRegisterID.d.ts +13 -13
  346. package/dist/model/mSMemberRedemptionRegisterID.js +11 -11
  347. package/dist/model/mSMemberRedemptionTransactionType.d.ts +13 -13
  348. package/dist/model/mSMemberRedemptionTransactionType.js +11 -11
  349. package/dist/model/mSMembershipTierHistory.d.ts +19 -19
  350. package/dist/model/mSMembershipTierHistory.js +62 -62
  351. package/dist/model/mSMembershipTierHistoryPagination.d.ts +12 -12
  352. package/dist/model/mSMembershipTierHistoryPagination.js +27 -27
  353. package/dist/model/mSMembershipTierRedemption.d.ts +22 -22
  354. package/dist/model/mSMembershipTierRedemption.js +67 -67
  355. package/dist/model/mSMembershipTierRedemptionPagination.d.ts +12 -12
  356. package/dist/model/mSMembershipTierRedemptionPagination.js +27 -27
  357. package/dist/model/mSMerchantCreditHistory.d.ts +17 -17
  358. package/dist/model/mSMerchantCreditHistory.js +52 -52
  359. package/dist/model/mSMerchantCreditHistoryPagination.d.ts +12 -12
  360. package/dist/model/mSMerchantCreditHistoryPagination.js +27 -27
  361. package/dist/model/mSMerchantCreditRedemption.d.ts +21 -21
  362. package/dist/model/mSMerchantCreditRedemption.js +62 -62
  363. package/dist/model/mSMerchantCreditRedemptionPagination.d.ts +12 -12
  364. package/dist/model/mSMerchantCreditRedemptionPagination.js +27 -27
  365. package/dist/model/mediaFile.d.ts +19 -19
  366. package/dist/model/mediaFile.js +62 -62
  367. package/dist/model/member.d.ts +23 -23
  368. package/dist/model/member.js +82 -82
  369. package/dist/model/memberSearch.d.ts +19 -19
  370. package/dist/model/memberSearch.js +47 -47
  371. package/dist/model/memberSearchSearchKey.d.ts +13 -13
  372. package/dist/model/memberSearchSearchKey.js +11 -11
  373. package/dist/model/memberSearchSortKey.d.ts +13 -13
  374. package/dist/model/memberSearchSortKey.js +11 -11
  375. package/dist/model/merchant.d.ts +36 -36
  376. package/dist/model/merchant.js +147 -147
  377. package/dist/model/merchantCreditSearch.d.ts +13 -13
  378. package/dist/model/merchantCreditSearch.js +32 -32
  379. package/dist/model/merchantNotInitialized.d.ts +14 -14
  380. package/dist/model/merchantNotInitialized.js +37 -37
  381. package/dist/model/merchantURL.d.ts +17 -17
  382. package/dist/model/merchantURL.js +47 -47
  383. package/dist/model/message.d.ts +18 -18
  384. package/dist/model/message.js +52 -52
  385. package/dist/model/models.d.ts +453 -445
  386. package/dist/model/models.js +1441 -1417
  387. package/dist/model/models.js.map +1 -1
  388. package/dist/model/moduleError.d.ts +31 -31
  389. package/dist/model/moduleError.js +122 -122
  390. package/dist/model/newsArticle.d.ts +21 -21
  391. package/dist/model/newsArticle.js +67 -67
  392. package/dist/model/oAIAssistantUpdateParams.d.ts +18 -18
  393. package/dist/model/oAIAssistantUpdateParams.js +57 -57
  394. package/dist/model/oAIAssistantUpdateParamsCreateParams.d.ts +18 -18
  395. package/dist/model/oAIAssistantUpdateParamsCreateParams.js +57 -57
  396. package/dist/model/optInList.d.ts +28 -28
  397. package/dist/model/optInList.js +102 -102
  398. package/dist/model/optInListSource.d.ts +18 -18
  399. package/dist/model/optInListSource.js +52 -52
  400. package/dist/model/optInListSubscriber.d.ts +27 -27
  401. package/dist/model/optInListSubscriber.js +87 -87
  402. package/dist/model/optInListSubscriberOptInSourceID.d.ts +13 -13
  403. package/dist/model/optInListSubscriberOptInSourceID.js +11 -11
  404. package/dist/model/outboundSMS.d.ts +34 -34
  405. package/dist/model/outboundSMS.js +122 -122
  406. package/dist/model/outboundSMSPaymentObjectBroadcastID.d.ts +13 -13
  407. package/dist/model/outboundSMSPaymentObjectBroadcastID.js +11 -11
  408. package/dist/model/outboundSMSStatus.d.ts +13 -13
  409. package/dist/model/outboundSMSStatus.js +11 -11
  410. package/dist/model/paginatedWTMembers.d.ts +12 -12
  411. package/dist/model/paginatedWTMembers.js +27 -27
  412. package/dist/model/paginatedWTMerchantCredits.d.ts +12 -12
  413. package/dist/model/paginatedWTMerchantCredits.js +27 -27
  414. package/dist/model/paginationRequestWithIDAndWithoutSortOptions.d.ts +12 -12
  415. package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js +27 -27
  416. package/dist/model/paginationRequestWithSortOptions.d.ts +20 -20
  417. package/dist/model/paginationRequestWithSortOptions.js +43 -43
  418. package/dist/model/paginationRequestWithSortOptionsSortOrder.d.ts +13 -13
  419. package/dist/model/paginationRequestWithSortOptionsSortOrder.js +11 -11
  420. package/dist/model/paymentDesign.d.ts +30 -30
  421. package/dist/model/paymentDesign.js +107 -107
  422. package/dist/model/performance.d.ts +27 -27
  423. package/dist/model/performance.js +97 -97
  424. package/dist/model/performance.js.map +1 -1
  425. package/dist/model/phoneNumber.d.ts +32 -32
  426. package/dist/model/phoneNumber.js +122 -122
  427. package/dist/model/phoneNumberCapabilities.d.ts +17 -17
  428. package/dist/model/phoneNumberCapabilities.js +32 -32
  429. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.d.ts +27 -27
  430. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.js +77 -77
  431. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +26 -26
  432. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +72 -72
  433. package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.d.ts +15 -15
  434. package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js +22 -22
  435. package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.d.ts +15 -15
  436. package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js +22 -22
  437. package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.d.ts +20 -20
  438. package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js +47 -47
  439. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +25 -25
  440. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +72 -72
  441. package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.d.ts +15 -15
  442. package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js +22 -22
  443. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +20 -20
  444. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +47 -47
  445. package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.d.ts +18 -18
  446. package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.js +32 -32
  447. package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.d.ts +13 -13
  448. package/dist/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.js +11 -11
  449. package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.d.ts +15 -15
  450. package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js +22 -22
  451. package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.d.ts +15 -15
  452. package/dist/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.js +22 -22
  453. package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.d.ts +17 -17
  454. package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js +32 -32
  455. package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.d.ts +25 -25
  456. package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js +72 -72
  457. package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.d.ts +24 -24
  458. package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.js +67 -67
  459. package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.d.ts +22 -22
  460. package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.js +52 -52
  461. package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.d.ts +13 -13
  462. package/dist/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.js +11 -11
  463. package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.d.ts +27 -27
  464. package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js +82 -82
  465. package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.d.ts +16 -16
  466. package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js +27 -27
  467. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +36 -36
  468. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +117 -117
  469. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.d.ts +13 -13
  470. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.js +11 -11
  471. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.d.ts +13 -13
  472. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.js +11 -11
  473. package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.d.ts +19 -19
  474. package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js +37 -37
  475. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +33 -33
  476. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +97 -97
  477. package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.d.ts +19 -19
  478. package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js +37 -37
  479. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +26 -26
  480. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +72 -72
  481. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.d.ts +13 -13
  482. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.js +11 -11
  483. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +32 -32
  484. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +107 -107
  485. package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.d.ts +27 -27
  486. package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.js +77 -77
  487. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.d.ts +27 -27
  488. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js +77 -77
  489. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.d.ts +13 -13
  490. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.js +11 -11
  491. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +38 -38
  492. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +122 -122
  493. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.d.ts +13 -13
  494. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.js +11 -11
  495. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.d.ts +13 -13
  496. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.js +11 -11
  497. package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.d.ts +16 -16
  498. package/dist/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.js +27 -27
  499. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.d.ts +33 -33
  500. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js +92 -92
  501. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.d.ts +13 -13
  502. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.js +11 -11
  503. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.d.ts +13 -13
  504. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.js +11 -11
  505. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.d.ts +13 -13
  506. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.js +11 -11
  507. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.d.ts +13 -13
  508. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.js +11 -11
  509. package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.d.ts +21 -21
  510. package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.js +52 -52
  511. package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.d.ts +16 -16
  512. package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js +27 -27
  513. package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.d.ts +15 -15
  514. package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js +22 -22
  515. package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.d.ts +19 -19
  516. package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js +42 -42
  517. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +36 -36
  518. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +102 -102
  519. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.d.ts +13 -13
  520. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.js +11 -11
  521. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.d.ts +13 -13
  522. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.js +11 -11
  523. package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.d.ts +14 -14
  524. package/dist/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.js +17 -17
  525. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +27 -27
  526. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +77 -77
  527. package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.d.ts +16 -16
  528. package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js +27 -27
  529. package/dist/model/plan.d.ts +15 -15
  530. package/dist/model/plan.js +42 -42
  531. package/dist/model/portalPage.d.ts +74 -74
  532. package/dist/model/portalPage.js +78 -78
  533. package/dist/model/presignedPost.d.ts +12 -12
  534. package/dist/model/presignedPost.js +22 -22
  535. package/dist/model/presignedPostFields.d.ts +11 -11
  536. package/dist/model/presignedPostFields.js +22 -22
  537. package/dist/model/product.d.ts +17 -17
  538. package/dist/model/product.js +52 -52
  539. package/dist/model/productTaxBehavior.d.ts +13 -0
  540. package/dist/model/productTaxBehavior.js +12 -0
  541. package/dist/model/productTaxBehavior.js.map +1 -0
  542. package/dist/model/profileStatuses.d.ts +7 -7
  543. package/dist/model/profileStatuses.js +11 -11
  544. package/dist/model/promoCode.d.ts +23 -23
  545. package/dist/model/promoCode.js +77 -77
  546. package/dist/model/qRCodeDesign.d.ts +18 -18
  547. package/dist/model/qRCodeDesign.js +52 -52
  548. package/dist/model/reachPerformanceStats.d.ts +20 -20
  549. package/dist/model/reachPerformanceStats.js +67 -67
  550. package/dist/model/request.d.ts +63 -63
  551. package/dist/model/request.js +282 -282
  552. package/dist/model/response.d.ts +16 -16
  553. package/dist/model/response.js +47 -47
  554. package/dist/model/role.d.ts +24 -24
  555. package/dist/model/role.js +87 -87
  556. package/dist/model/roleAuditLog.d.ts +21 -21
  557. package/dist/model/roleAuditLog.js +72 -72
  558. package/dist/model/roomRate.d.ts +21 -21
  559. package/dist/model/roomRate.js +67 -67
  560. package/dist/model/sSImportedListRecipientCreateParams.d.ts +11 -11
  561. package/dist/model/sSImportedListRecipientCreateParams.js +22 -22
  562. package/dist/model/sSOptInSource.d.ts +17 -17
  563. package/dist/model/sSOptInSource.js +52 -52
  564. package/dist/model/sSOutboundStatuses.d.ts +13 -13
  565. package/dist/model/sSOutboundStatuses.js +11 -11
  566. package/dist/model/saveMerchantCreditPaymentDesignRequest.d.ts +14 -14
  567. package/dist/model/saveMerchantCreditPaymentDesignRequest.js +17 -17
  568. package/dist/model/saveTicketSettingsRequest.d.ts +17 -17
  569. package/dist/model/saveTicketSettingsRequest.js +32 -32
  570. package/dist/model/service.d.ts +28 -21
  571. package/dist/model/service.js +97 -67
  572. package/dist/model/service.js.map +1 -1
  573. package/dist/model/setDefaultPaymentMethodRequest.d.ts +14 -14
  574. package/dist/model/setDefaultPaymentMethodRequest.js +17 -17
  575. package/dist/model/simpleSMSBroadcast.d.ts +35 -35
  576. package/dist/model/simpleSMSBroadcast.js +112 -112
  577. package/dist/model/smsSubscriber.d.ts +16 -16
  578. package/dist/model/smsSubscriber.js +42 -42
  579. package/dist/model/sortDirection.d.ts +4 -4
  580. package/dist/model/sortDirection.js +8 -8
  581. package/dist/model/staticVoucher.d.ts +45 -45
  582. package/dist/model/staticVoucher.js +172 -172
  583. package/dist/model/staticVoucherCampaign.d.ts +36 -36
  584. package/dist/model/staticVoucherCampaign.js +137 -137
  585. package/dist/model/staticVoucherCampaignBroadcast.d.ts +34 -34
  586. package/dist/model/staticVoucherCampaignBroadcast.js +107 -107
  587. package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.d.ts +13 -13
  588. package/dist/model/staticVoucherCampaignBroadcastBroadcastStatus.js +11 -11
  589. package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.d.ts +13 -13
  590. package/dist/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.js +11 -11
  591. package/dist/model/staticVoucherCampaignUpdate.d.ts +19 -19
  592. package/dist/model/staticVoucherCampaignUpdate.js +57 -57
  593. package/dist/model/staticVoucherCampaignValueType.d.ts +13 -13
  594. package/dist/model/staticVoucherCampaignValueType.js +11 -11
  595. package/dist/model/staticVoucherId.d.ts +13 -13
  596. package/dist/model/staticVoucherId.js +11 -11
  597. package/dist/model/status.d.ts +13 -13
  598. package/dist/model/status.js +11 -11
  599. package/dist/model/subscriptionFeature.d.ts +18 -18
  600. package/dist/model/subscriptionFeature.js +57 -57
  601. package/dist/model/subscriptionPlan.d.ts +18 -16
  602. package/dist/model/subscriptionPlan.js +52 -47
  603. package/dist/model/subscriptionPlan.js.map +1 -1
  604. package/dist/model/subscriptionPlanAnnual.d.ts +15 -0
  605. package/dist/model/subscriptionPlanAnnual.js +23 -0
  606. package/dist/model/subscriptionPlanAnnual.js.map +1 -0
  607. package/dist/model/subscriptionProduct.d.ts +21 -21
  608. package/dist/model/subscriptionProduct.js +72 -72
  609. package/dist/model/tcpa.d.ts +17 -17
  610. package/dist/model/tcpa.js +47 -47
  611. package/dist/model/thread.d.ts +16 -16
  612. package/dist/model/thread.js +42 -42
  613. package/dist/model/ticket.d.ts +30 -30
  614. package/dist/model/ticket.js +112 -112
  615. package/dist/model/ticketSortKeys.d.ts +8 -8
  616. package/dist/model/ticketSortKeys.js +12 -12
  617. package/dist/model/trustBundleStatuses.d.ts +7 -7
  618. package/dist/model/trustBundleStatuses.js +11 -11
  619. package/dist/model/updateEmailNotificationPreferenceRequest.d.ts +14 -14
  620. package/dist/model/updateEmailNotificationPreferenceRequest.js +17 -17
  621. package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +23 -23
  622. package/dist/model/updateStaticVoucherCampaignWithVoucher.js +77 -77
  623. package/dist/model/vSCampaignGeneratedMessage.d.ts +12 -12
  624. package/dist/model/vSCampaignGeneratedMessage.js +27 -27
  625. package/dist/model/vSCampaignGeneratedMessagePagination.d.ts +12 -12
  626. package/dist/model/vSCampaignGeneratedMessagePagination.js +27 -27
  627. package/dist/model/vSDynamicVoucherStatus.d.ts +13 -13
  628. package/dist/model/vSDynamicVoucherStatus.js +11 -11
  629. package/dist/model/vectorStore.d.ts +16 -16
  630. package/dist/model/vectorStore.js +42 -42
  631. package/dist/model/video.d.ts +24 -20
  632. package/dist/model/video.js +72 -62
  633. package/dist/model/video.js.map +1 -1
  634. package/dist/model/videoProvider.d.ts +13 -0
  635. package/dist/model/videoProvider.js +12 -0
  636. package/dist/model/videoProvider.js.map +1 -0
  637. package/dist/model/virtualBusinessCard.d.ts +28 -28
  638. package/dist/model/virtualBusinessCard.js +102 -102
  639. package/dist/model/wTA2PApplicationUpdateParams.d.ts +41 -41
  640. package/dist/model/wTA2PApplicationUpdateParams.js +132 -132
  641. package/dist/model/wTAdvertisementCredit.d.ts +24 -24
  642. package/dist/model/wTAdvertisementCredit.js +77 -77
  643. package/dist/model/wTAdvertisementCreditCreateParams.d.ts +15 -15
  644. package/dist/model/wTAdvertisementCreditCreateParams.js +37 -37
  645. package/dist/model/wTAdvertisementCreditScan.d.ts +36 -36
  646. package/dist/model/wTAdvertisementCreditScan.js +127 -127
  647. package/dist/model/wTAdvertisementCreditUpdateParams.d.ts +15 -15
  648. package/dist/model/wTAdvertisementCreditUpdateParams.js +37 -37
  649. package/dist/model/wTAmenityCreateParams.d.ts +15 -15
  650. package/dist/model/wTAmenityCreateParams.js +42 -42
  651. package/dist/model/wTAmenityUpdateParams.d.ts +15 -15
  652. package/dist/model/wTAmenityUpdateParams.js +42 -42
  653. package/dist/model/wTAndroidKeystoreResponse.d.ts +11 -11
  654. package/dist/model/wTAndroidKeystoreResponse.js +22 -22
  655. package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.d.ts +15 -15
  656. package/dist/model/wTAuthenticationCheckSessionTokenStatusResponse.js +23 -23
  657. package/dist/model/wTAuthenticationForgotPassword.d.ts +10 -10
  658. package/dist/model/wTAuthenticationForgotPassword.js +17 -17
  659. package/dist/model/wTAuthenticationLoginRequest.d.ts +11 -11
  660. package/dist/model/wTAuthenticationLoginRequest.js +22 -22
  661. package/dist/model/wTAuthenticationLoginResponse.d.ts +25 -25
  662. package/dist/model/wTAuthenticationLoginResponse.js +92 -92
  663. package/dist/model/wTAuthenticationRegister.d.ts +31 -31
  664. package/dist/model/wTAuthenticationRegister.js +122 -122
  665. package/dist/model/wTAuthenticationRequestResetPassword.d.ts +10 -10
  666. package/dist/model/wTAuthenticationRequestResetPassword.js +17 -17
  667. package/dist/model/wTAuthenticationResetPassword.d.ts +12 -12
  668. package/dist/model/wTAuthenticationResetPassword.js +27 -27
  669. package/dist/model/wTAuthenticationSSOLoginForDiscourse.d.ts +13 -13
  670. package/dist/model/wTAuthenticationSSOLoginForDiscourse.js +32 -32
  671. package/dist/model/wTBillingChangePlan.d.ts +10 -10
  672. package/dist/model/wTBillingChangePlan.js +17 -17
  673. package/dist/model/wTBillingSavePaymentMethod.d.ts +10 -10
  674. package/dist/model/wTBillingSavePaymentMethod.js +17 -17
  675. package/dist/model/wTBillingVerifyPaymentMethodResponse.d.ts +12 -12
  676. package/dist/model/wTBillingVerifyPaymentMethodResponse.js +22 -22
  677. package/dist/model/wTCountResult.d.ts +10 -10
  678. package/dist/model/wTCountResult.js +17 -17
  679. package/dist/model/wTCustomerSearchByMemberID.d.ts +10 -10
  680. package/dist/model/wTCustomerSearchByMemberID.js +17 -17
  681. package/dist/model/wTCustomerSearchByPhoneNumber.d.ts +10 -10
  682. package/dist/model/wTCustomerSearchByPhoneNumber.js +17 -17
  683. package/dist/model/wTDiningCreateParams.d.ts +15 -15
  684. package/dist/model/wTDiningCreateParams.js +42 -42
  685. package/dist/model/wTDiningUpdateParams.d.ts +15 -15
  686. package/dist/model/wTDiningUpdateParams.js +42 -42
  687. package/dist/model/wTDynamicVoucher.d.ts +46 -46
  688. package/dist/model/wTDynamicVoucher.js +177 -177
  689. package/dist/model/wTDynamicVoucherCreateParams.d.ts +22 -22
  690. package/dist/model/wTDynamicVoucherCreateParams.js +72 -72
  691. package/dist/model/wTDynamicVoucherRedemption.d.ts +35 -35
  692. package/dist/model/wTDynamicVoucherRedemption.js +122 -122
  693. package/dist/model/wTDynamicVoucherRedemptionTransactionType.d.ts +13 -13
  694. package/dist/model/wTDynamicVoucherRedemptionTransactionType.js +11 -11
  695. package/dist/model/wTDynamicVoucherSummary.d.ts +34 -34
  696. package/dist/model/wTDynamicVoucherSummary.js +132 -132
  697. package/dist/model/wTDynamicVoucherSummaryStatus.d.ts +13 -13
  698. package/dist/model/wTDynamicVoucherSummaryStatus.js +11 -11
  699. package/dist/model/wTDynamicVoucherUpdateParams.d.ts +22 -22
  700. package/dist/model/wTDynamicVoucherUpdateParams.js +72 -72
  701. package/dist/model/wTEmailSubscriberCreateParams.d.ts +12 -12
  702. package/dist/model/wTEmailSubscriberCreateParams.js +27 -27
  703. package/dist/model/wTEmailSubscriberCreateParamsWalletUI.d.ts +13 -13
  704. package/dist/model/wTEmailSubscriberCreateParamsWalletUI.js +32 -32
  705. package/dist/model/wTEmailSubscriberUpdateParams.d.ts +12 -12
  706. package/dist/model/wTEmailSubscriberUpdateParams.js +27 -27
  707. package/dist/model/wTEmployee.d.ts +43 -43
  708. package/dist/model/wTEmployee.js +162 -162
  709. package/dist/model/wTEmployeeAPIKey.d.ts +19 -19
  710. package/dist/model/wTEmployeeAPIKey.js +57 -57
  711. package/dist/model/wTEmployeeAPIKeyCreateParams.d.ts +11 -11
  712. package/dist/model/wTEmployeeAPIKeyCreateParams.js +22 -22
  713. package/dist/model/wTEmployeeAPIKeyUpdateParams.d.ts +11 -11
  714. package/dist/model/wTEmployeeAPIKeyUpdateParams.js +22 -22
  715. package/dist/model/wTEmployeeCreate.d.ts +30 -30
  716. package/dist/model/wTEmployeeCreate.js +97 -97
  717. package/dist/model/wTEmployeeCreateDocument.d.ts +12 -12
  718. package/dist/model/wTEmployeeCreateDocument.js +27 -27
  719. package/dist/model/wTEmployeeCreateMediaFile.d.ts +12 -12
  720. package/dist/model/wTEmployeeCreateMediaFile.js +27 -27
  721. package/dist/model/wTEmployeeFileCreate.d.ts +11 -11
  722. package/dist/model/wTEmployeeFileCreate.js +22 -22
  723. package/dist/model/wTEmployeeImportRecords.d.ts +11 -11
  724. package/dist/model/wTEmployeeImportRecords.js +22 -22
  725. package/dist/model/wTEmployeeNotification.d.ts +14 -14
  726. package/dist/model/wTEmployeeNotification.js +32 -32
  727. package/dist/model/wTEmployeeNotificationType.d.ts +13 -13
  728. package/dist/model/wTEmployeeNotificationType.js +11 -11
  729. package/dist/model/wTEmployeePeerRoles.d.ts +10 -10
  730. package/dist/model/wTEmployeePeerRoles.js +17 -17
  731. package/dist/model/wTEmployeeS3FilePresign.d.ts +13 -13
  732. package/dist/model/wTEmployeeS3FilePresign.js +27 -27
  733. package/dist/model/wTEmployeeS3FilePresignContext.d.ts +13 -13
  734. package/dist/model/wTEmployeeS3FilePresignContext.js +11 -11
  735. package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.d.ts +16 -16
  736. package/dist/model/wTEmployeeScheduleSMSCampaignBroadcast.js +47 -47
  737. package/dist/model/wTEmployeeScheduleSimpleSMS.d.ts +16 -16
  738. package/dist/model/wTEmployeeScheduleSimpleSMS.js +42 -42
  739. package/dist/model/wTEmployeeScheduleSimpleSMSListType.d.ts +13 -13
  740. package/dist/model/wTEmployeeScheduleSimpleSMSListType.js +11 -11
  741. package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.d.ts +14 -14
  742. package/dist/model/wTEmployeeScheduleSimpleSMSToRecipient.js +37 -37
  743. package/dist/model/wTEmployeeSendHelpDeskResponse.d.ts +12 -12
  744. package/dist/model/wTEmployeeSendHelpDeskResponse.js +27 -27
  745. package/dist/model/wTEmployeeUpdate.d.ts +29 -29
  746. package/dist/model/wTEmployeeUpdate.js +92 -92
  747. package/dist/model/wTEmployeeUpdateRecords.d.ts +11 -11
  748. package/dist/model/wTEmployeeUpdateRecords.js +22 -22
  749. package/dist/model/wTFetchWalletPaymentObjectsWithToken.d.ts +14 -14
  750. package/dist/model/wTFetchWalletPaymentObjectsWithToken.js +37 -37
  751. package/dist/model/wTGamingCreateParams.d.ts +15 -15
  752. package/dist/model/wTGamingCreateParams.js +42 -42
  753. package/dist/model/wTGamingUpdateParams.d.ts +15 -15
  754. package/dist/model/wTGamingUpdateParams.js +42 -42
  755. package/dist/model/wTImageGridCreateParams.d.ts +14 -14
  756. package/dist/model/wTImageGridCreateParams.js +37 -37
  757. package/dist/model/wTImageGridUpdateParams.d.ts +14 -14
  758. package/dist/model/wTImageGridUpdateParams.js +37 -37
  759. package/dist/model/wTImportedList.d.ts +18 -18
  760. package/dist/model/wTImportedList.js +52 -52
  761. package/dist/model/wTImportedListRecipientFromMembershipTierImport.d.ts +13 -13
  762. package/dist/model/wTImportedListRecipientFromMembershipTierImport.js +27 -27
  763. package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.d.ts +13 -13
  764. package/dist/model/wTImportedListRecipientFromMembershipTierImportTierID.js +11 -11
  765. package/dist/model/wTInfoGenesisLookupRequestErrors.d.ts +13 -13
  766. package/dist/model/wTInfoGenesisLookupRequestErrors.js +32 -32
  767. package/dist/model/wTInfoGenesisRecordFilterParameters.d.ts +12 -12
  768. package/dist/model/wTInfoGenesisRecordFilterParameters.js +27 -27
  769. package/dist/model/wTInfoGenesisRoutingIDs.d.ts +10 -10
  770. package/dist/model/wTInfoGenesisRoutingIDs.js +17 -17
  771. package/dist/model/wTInfoGenesisUniquePostingIDs.d.ts +10 -10
  772. package/dist/model/wTInfoGenesisUniquePostingIDs.js +17 -17
  773. package/dist/model/wTLocalInstance.d.ts +27 -27
  774. package/dist/model/wTLocalInstance.js +77 -77
  775. package/dist/model/wTLoungeCreateParams.d.ts +15 -15
  776. package/dist/model/wTLoungeCreateParams.js +42 -42
  777. package/dist/model/wTLoungeUpdateParams.d.ts +15 -15
  778. package/dist/model/wTLoungeUpdateParams.js +42 -42
  779. package/dist/model/wTMember.d.ts +23 -23
  780. package/dist/model/wTMember.js +82 -82
  781. package/dist/model/wTMemberCreationParams.d.ts +17 -17
  782. package/dist/model/wTMemberCreationParams.js +52 -52
  783. package/dist/model/wTMembershipTier.d.ts +20 -20
  784. package/dist/model/wTMembershipTier.js +62 -62
  785. package/dist/model/wTMembershipTierCreationParams.d.ts +14 -14
  786. package/dist/model/wTMembershipTierCreationParams.js +37 -37
  787. package/dist/model/wTMembershipTierId.d.ts +13 -13
  788. package/dist/model/wTMembershipTierId.js +11 -11
  789. package/dist/model/wTMembershipTierUpdateParams.d.ts +14 -14
  790. package/dist/model/wTMembershipTierUpdateParams.js +37 -37
  791. package/dist/model/wTMembershipTierWithMemberCount.d.ts +21 -21
  792. package/dist/model/wTMembershipTierWithMemberCount.js +67 -67
  793. package/dist/model/wTMerchantCredit.d.ts +19 -19
  794. package/dist/model/wTMerchantCredit.js +62 -62
  795. package/dist/model/wTMerchantCreditCreationParams.d.ts +12 -12
  796. package/dist/model/wTMerchantCreditCreationParams.js +27 -27
  797. package/dist/model/wTMerchantURLCreate.d.ts +11 -11
  798. package/dist/model/wTMerchantURLCreate.js +22 -22
  799. package/dist/model/wTMerchantURLUpdate.d.ts +11 -11
  800. package/dist/model/wTMerchantURLUpdate.js +22 -22
  801. package/dist/model/wTMerchantUpdate.d.ts +18 -18
  802. package/dist/model/wTMerchantUpdate.js +57 -57
  803. package/dist/model/wTMerchantUpdatePOSIntegration.d.ts +10 -10
  804. package/dist/model/wTMerchantUpdatePOSIntegration.js +17 -17
  805. package/dist/model/wTMerchantUpdatePointsOfContact.d.ts +13 -13
  806. package/dist/model/wTMerchantUpdatePointsOfContact.js +32 -32
  807. package/dist/model/wTMessageInstance.d.ts +13 -13
  808. package/dist/model/wTMessageInstance.js +11 -11
  809. package/dist/model/wTNewsArticleCreateParams.d.ts +15 -15
  810. package/dist/model/wTNewsArticleCreateParams.js +42 -42
  811. package/dist/model/wTNewsArticleUpdateParams.d.ts +15 -15
  812. package/dist/model/wTNewsArticleUpdateParams.js +42 -42
  813. package/dist/model/wTOptInList.d.ts +28 -28
  814. package/dist/model/wTOptInList.js +102 -102
  815. package/dist/model/wTOptInListCreationParams.d.ts +22 -22
  816. package/dist/model/wTOptInListCreationParams.js +77 -77
  817. package/dist/model/wTPassBrandKit.d.ts +15 -15
  818. package/dist/model/wTPassBrandKit.js +42 -42
  819. package/dist/model/wTPaymentDesign.d.ts +30 -30
  820. package/dist/model/wTPaymentDesign.js +107 -107
  821. package/dist/model/wTPaymentDesignCreateParams.d.ts +23 -23
  822. package/dist/model/wTPaymentDesignCreateParams.js +77 -77
  823. package/dist/model/wTPaymentDesignUpdateParams.d.ts +23 -23
  824. package/dist/model/wTPaymentDesignUpdateParams.js +77 -77
  825. package/dist/model/wTPerformanceCreateParams.d.ts +21 -21
  826. package/dist/model/wTPerformanceCreateParams.js +72 -72
  827. package/dist/model/wTPerformanceCreateParams.js.map +1 -1
  828. package/dist/model/wTPerformanceUpdateParams.d.ts +21 -21
  829. package/dist/model/wTPerformanceUpdateParams.js +72 -72
  830. package/dist/model/wTPerformanceUpdateParams.js.map +1 -1
  831. package/dist/model/wTPosMachine.d.ts +19 -19
  832. package/dist/model/wTPosMachine.js +62 -62
  833. package/dist/model/wTPosMachine.js.map +1 -1
  834. package/dist/model/wTPosMachineCreateParams.d.ts +14 -14
  835. package/dist/model/wTPosMachineCreateParams.js +37 -37
  836. package/dist/model/wTPosMachineCreateParams.js.map +1 -1
  837. package/dist/model/wTPosMachineUpdateParams.d.ts +14 -14
  838. package/dist/model/wTPosMachineUpdateParams.js +37 -37
  839. package/dist/model/wTPosMachineUpdateParams.js.map +1 -1
  840. package/dist/model/wTProductCreateParams.d.ts +20 -15
  841. package/dist/model/wTProductCreateParams.js +62 -42
  842. package/dist/model/wTProductCreateParams.js.map +1 -1
  843. package/dist/model/wTProductUpdateParams.d.ts +20 -15
  844. package/dist/model/wTProductUpdateParams.js +62 -42
  845. package/dist/model/wTProductUpdateParams.js.map +1 -1
  846. package/dist/model/wTPromoCodeCreateParams.d.ts +17 -17
  847. package/dist/model/wTPromoCodeCreateParams.js +52 -52
  848. package/dist/model/wTPromoCodeUpdateParams.d.ts +17 -17
  849. package/dist/model/wTPromoCodeUpdateParams.js +52 -52
  850. package/dist/model/wTQRCodeDesign.d.ts +18 -18
  851. package/dist/model/wTQRCodeDesign.js +52 -52
  852. package/dist/model/wTQRCodeDesignCreateParams.d.ts +12 -12
  853. package/dist/model/wTQRCodeDesignCreateParams.js +27 -27
  854. package/dist/model/wTQRCodeDesignUpdateParams.d.ts +12 -12
  855. package/dist/model/wTQRCodeDesignUpdateParams.js +27 -27
  856. package/dist/model/wTQuickLink.d.ts +21 -21
  857. package/dist/model/wTQuickLink.js +62 -62
  858. package/dist/model/wTQuickLinkCreateParams.d.ts +15 -15
  859. package/dist/model/wTQuickLinkCreateParams.js +37 -37
  860. package/dist/model/wTQuickLinkLinkBookSectionID.d.ts +13 -13
  861. package/dist/model/wTQuickLinkLinkBookSectionID.js +11 -11
  862. package/dist/model/wTQuickLinkSectionCreateParams.d.ts +11 -11
  863. package/dist/model/wTQuickLinkSectionCreateParams.js +22 -22
  864. package/dist/model/wTQuickLinkSectionUpdateParams.d.ts +11 -11
  865. package/dist/model/wTQuickLinkSectionUpdateParams.js +22 -22
  866. package/dist/model/wTQuickLinkUpdateParams.d.ts +15 -15
  867. package/dist/model/wTQuickLinkUpdateParams.js +37 -37
  868. package/dist/model/wTRole.d.ts +24 -24
  869. package/dist/model/wTRole.js +87 -87
  870. package/dist/model/wTRoomRateCreateParams.d.ts +15 -15
  871. package/dist/model/wTRoomRateCreateParams.js +42 -42
  872. package/dist/model/wTRoomRateUpdateParams.d.ts +15 -15
  873. package/dist/model/wTRoomRateUpdateParams.js +42 -42
  874. package/dist/model/wTSMSAcquirePhoneNumber.d.ts +10 -10
  875. package/dist/model/wTSMSAcquirePhoneNumber.js +17 -17
  876. package/dist/model/wTSMSImportOptInListSubscribers.d.ts +12 -12
  877. package/dist/model/wTSMSImportOptInListSubscribers.js +27 -27
  878. package/dist/model/wTSMSImportedListCreate.d.ts +12 -12
  879. package/dist/model/wTSMSImportedListCreate.js +27 -27
  880. package/dist/model/wTSMSOptInListSourceCreate.d.ts +11 -11
  881. package/dist/model/wTSMSOptInListSourceCreate.js +22 -22
  882. package/dist/model/wTSMSUpdatePhoneNumberConfig.d.ts +21 -21
  883. package/dist/model/wTSMSUpdatePhoneNumberConfig.js +72 -72
  884. package/dist/model/wTServiceCreateParams.d.ts +20 -15
  885. package/dist/model/wTServiceCreateParams.js +62 -42
  886. package/dist/model/wTServiceCreateParams.js.map +1 -1
  887. package/dist/model/wTServiceUpdateParams.d.ts +20 -15
  888. package/dist/model/wTServiceUpdateParams.js +62 -42
  889. package/dist/model/wTServiceUpdateParams.js.map +1 -1
  890. package/dist/model/wTSettingsSetPassword.d.ts +10 -10
  891. package/dist/model/wTSettingsSetPassword.js +17 -17
  892. package/dist/model/wTSmsSubscriberCreateParams.d.ts +10 -10
  893. package/dist/model/wTSmsSubscriberCreateParams.js +17 -17
  894. package/dist/model/wTSmsSubscriberCreateParamsWalletUI.d.ts +11 -11
  895. package/dist/model/wTSmsSubscriberCreateParamsWalletUI.js +22 -22
  896. package/dist/model/wTSmsSubscriberUpdateParams.d.ts +10 -10
  897. package/dist/model/wTSmsSubscriberUpdateParams.js +17 -17
  898. package/dist/model/wTStaticVoucher.d.ts +45 -45
  899. package/dist/model/wTStaticVoucher.js +172 -172
  900. package/dist/model/wTStaticVoucherCampaign.d.ts +36 -36
  901. package/dist/model/wTStaticVoucherCampaign.js +137 -137
  902. package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.d.ts +14 -14
  903. package/dist/model/wTStaticVoucherCampaignPreviewMessagesByPage.js +37 -37
  904. package/dist/model/wTStaticVoucherCreateParams.d.ts +14 -14
  905. package/dist/model/wTStaticVoucherCreateParams.js +32 -32
  906. package/dist/model/wTStaticVoucherUpdateParams.d.ts +12 -12
  907. package/dist/model/wTStaticVoucherUpdateParams.js +27 -27
  908. package/dist/model/wTSystemApprovePhoneNumber.d.ts +11 -11
  909. package/dist/model/wTSystemApprovePhoneNumber.js +22 -22
  910. package/dist/model/wTSystemRoleCreate.d.ts +11 -11
  911. package/dist/model/wTSystemRoleCreate.js +22 -22
  912. package/dist/model/wTTCPAOpt.d.ts +14 -14
  913. package/dist/model/wTTCPAOpt.js +27 -27
  914. package/dist/model/wTTCPAOptListID.d.ts +13 -13
  915. package/dist/model/wTTCPAOptListID.js +11 -11
  916. package/dist/model/wTTCPAOptSourceID.d.ts +13 -13
  917. package/dist/model/wTTCPAOptSourceID.js +11 -11
  918. package/dist/model/wTTicket.d.ts +30 -30
  919. package/dist/model/wTTicket.js +112 -112
  920. package/dist/model/wTTicketCreateParams.d.ts +15 -15
  921. package/dist/model/wTTicketCreateParams.js +42 -42
  922. package/dist/model/wTTicketUpdateParams.d.ts +14 -14
  923. package/dist/model/wTTicketUpdateParams.js +37 -37
  924. package/dist/model/wTTwilioRequestAuthyCode.d.ts +11 -11
  925. package/dist/model/wTTwilioRequestAuthyCode.js +22 -22
  926. package/dist/model/wTTwilioVerifyAuthyCode.d.ts +12 -12
  927. package/dist/model/wTTwilioVerifyAuthyCode.js +27 -27
  928. package/dist/model/wTVideoCreateParams.d.ts +16 -14
  929. package/dist/model/wTVideoCreateParams.js +42 -37
  930. package/dist/model/wTVideoCreateParams.js.map +1 -1
  931. package/dist/model/wTVideoPlaybackSource.d.ts +12 -0
  932. package/dist/model/wTVideoPlaybackSource.js +23 -0
  933. package/dist/model/wTVideoPlaybackSource.js.map +1 -0
  934. package/dist/model/wTVideoPlaybackSourceType.d.ts +13 -0
  935. package/dist/model/wTVideoPlaybackSourceType.js +12 -0
  936. package/dist/model/wTVideoPlaybackSourceType.js.map +1 -0
  937. package/dist/model/wTVideoUpdateParams.d.ts +13 -14
  938. package/dist/model/wTVideoUpdateParams.js +32 -37
  939. package/dist/model/wTVideoUpdateParams.js.map +1 -1
  940. package/dist/model/wTVideoUploadProvision.d.ts +14 -0
  941. package/dist/model/wTVideoUploadProvision.js +33 -0
  942. package/dist/model/wTVideoUploadProvision.js.map +1 -0
  943. package/dist/model/wTVideoUploadProvisionParams.d.ts +12 -0
  944. package/dist/model/wTVideoUploadProvisionParams.js +28 -0
  945. package/dist/model/wTVideoUploadProvisionParams.js.map +1 -0
  946. package/dist/model/wTVideoUploadProvisionProvider.d.ts +13 -0
  947. package/dist/model/wTVideoUploadProvisionProvider.js +12 -0
  948. package/dist/model/wTVideoUploadProvisionProvider.js.map +1 -0
  949. package/dist/model/wTVirtualBusinessCardCreateParams.d.ts +22 -22
  950. package/dist/model/wTVirtualBusinessCardCreateParams.js +77 -77
  951. package/dist/model/wTVirtualBusinessCardUpdateParams.d.ts +22 -22
  952. package/dist/model/wTVirtualBusinessCardUpdateParams.js +77 -77
  953. package/dist/model/wTWalletConfigurationSaveWalletRecord.d.ts +86 -86
  954. package/dist/model/wTWalletConfigurationSaveWalletRecord.js +387 -387
  955. package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.d.ts +19 -19
  956. package/dist/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.js +42 -42
  957. package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.d.ts +13 -13
  958. package/dist/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.js +11 -11
  959. package/dist/model/wTWalletItemRedemption.d.ts +12 -12
  960. package/dist/model/wTWalletItemRedemption.js +27 -27
  961. package/dist/model/wTWalletObjectPrefixCounts.d.ts +12 -12
  962. package/dist/model/wTWalletObjectPrefixCounts.js +27 -27
  963. package/dist/model/wTWalletObjectPrefixCounts.js.map +1 -1
  964. package/dist/model/wTWalletPageView.d.ts +49 -49
  965. package/dist/model/wTWalletPageView.js +207 -207
  966. package/dist/model/wTWalletPageViewCount.d.ts +13 -13
  967. package/dist/model/wTWalletPageViewCount.js +32 -32
  968. package/dist/model/wTWalletPageViewCount.js.map +1 -1
  969. package/dist/model/wTWalletPageViewGeoPoint.d.ts +15 -15
  970. package/dist/model/wTWalletPageViewGeoPoint.js +22 -22
  971. package/dist/model/wTWhatsAppInboundWebhook.d.ts +23 -23
  972. package/dist/model/wTWhatsAppInboundWebhook.js +82 -82
  973. package/dist/model/wTWhatsAppStatusCallback.d.ts +20 -20
  974. package/dist/model/wTWhatsAppStatusCallback.js +67 -67
  975. package/dist/model/walletConfiguration.d.ts +91 -91
  976. package/dist/model/walletConfiguration.js +412 -412
  977. package/dist/model/walletPageView.d.ts +49 -49
  978. package/dist/model/walletPageView.js +207 -207
  979. package/dist/model/webpage.d.ts +19 -19
  980. package/dist/model/webpage.js +62 -62
  981. package/package.json +1 -1
  982. package/.github/workflows/ci.yml +0 -163
  983. package/.openapi-generator/FILES +0 -460
  984. package/.openapi-generator/VERSION +0 -1
  985. package/.openapi-generator-ignore +0 -27
  986. package/api/aPIKeysApi.ts +0 -448
  987. package/api/amenitiesApi.ts +0 -447
  988. package/api/analyticsApi.ts +0 -7516
  989. package/api/apis.ts +0 -118
  990. package/api/appToPersonA2PRegistrationApi.ts +0 -365
  991. package/api/appleWalletSubscribersApi.ts +0 -235
  992. package/api/authenticationApi.ts +0 -368
  993. package/api/billingPaymentsApi.ts +0 -1075
  994. package/api/clubMembersApi.ts +0 -797
  995. package/api/countriesApi.ts +0 -155
  996. package/api/customerApi.ts +0 -737
  997. package/api/dashboardSummariesApi.ts +0 -1566
  998. package/api/defaultApi.ts +0 -1571
  999. package/api/diningApi.ts +0 -447
  1000. package/api/dynamicVouchersApi.ts +0 -742
  1001. package/api/emailSubscribersApi.ts +0 -457
  1002. package/api/employeesApi.ts +0 -3064
  1003. package/api/galleryApi.ts +0 -447
  1004. package/api/gamingApi.ts +0 -447
  1005. package/api/industriesApi.ts +0 -280
  1006. package/api/infoGenesisReportsApi.ts +0 -2004
  1007. package/api/interactionsApi.ts +0 -1475
  1008. package/api/loungeApi.ts +0 -447
  1009. package/api/membershipTiersApi.ts +0 -728
  1010. package/api/merchantApi.ts +0 -2012
  1011. package/api/merchantCreditsApi.ts +0 -797
  1012. package/api/newsApi.ts +0 -447
  1013. package/api/openAIApi.ts +0 -1439
  1014. package/api/paymentDesignsApi.ts +0 -519
  1015. package/api/performancesApi.ts +0 -1070
  1016. package/api/pointOfSaleConfigurationApi.ts +0 -447
  1017. package/api/prizesApi.ts +0 -589
  1018. package/api/productsApi.ts +0 -447
  1019. package/api/promotionCodesApi.ts +0 -447
  1020. package/api/qRCodeDesignsApi.ts +0 -520
  1021. package/api/quickLinksApi.ts +0 -517
  1022. package/api/quickLinksSectionApi.ts +0 -447
  1023. package/api/roomRatesApi.ts +0 -447
  1024. package/api/sMSOperationsApi.ts +0 -2913
  1025. package/api/sMSSubscribersApi.ts +0 -457
  1026. package/api/servicesApi.ts +0 -447
  1027. package/api/shopifyTerminalApi.ts +0 -309
  1028. package/api/shortLinksApi.ts +0 -586
  1029. package/api/staticVoucherCampaignsApi.ts +0 -1545
  1030. package/api/staticVouchersApi.ts +0 -535
  1031. package/api/systemApi.ts +0 -665
  1032. package/api/ticketsApi.ts +0 -451
  1033. package/api/videosApi.ts +0 -447
  1034. package/api/virtualBusinessCardApi.ts +0 -586
  1035. package/api/walletConfigurationApi.ts +0 -302
  1036. package/api/walletMobileTerminalApi.ts +0 -310
  1037. package/api/walletTransactionLedgerApi.ts +0 -203
  1038. package/api/walletWebTerminalApi.ts +0 -309
  1039. package/api/wixTerminalApi.ts +0 -309
  1040. package/api/wooCommerceTerminalApi.ts +0 -309
  1041. package/api.ts +0 -3
  1042. package/dist/api/analyticsApi.d.ts +0 -707
  1043. package/dist/api/analyticsApi.js +0 -6182
  1044. package/dist/api/analyticsApi.js.map +0 -1
  1045. package/dist/api/dashboardSummariesApi.js.map +0 -1
  1046. package/dist/api/defaultApi.d.ts +0 -253
  1047. package/dist/api/defaultApi.js +0 -1414
  1048. package/dist/api/defaultApi.js.map +0 -1
  1049. package/dist/api/sMSOperationsApi.d.ts +0 -345
  1050. package/dist/api/sMSOperationsApi.js +0 -2474
  1051. package/dist/api/sMSOperationsApi.js.map +0 -1
  1052. package/dist/examples/advertisementcredits.example.d.ts +0 -1
  1053. package/dist/examples/advertisementcredits.example.js +0 -87
  1054. package/dist/examples/advertisementcredits.example.js.map +0 -1
  1055. package/dist/examples/clubmembers.example.d.ts +0 -1
  1056. package/dist/examples/clubmembers.example.js +0 -96
  1057. package/dist/examples/clubmembers.example.js.map +0 -1
  1058. package/dist/examples/constants.d.ts +0 -6
  1059. package/dist/examples/constants.js +0 -10
  1060. package/dist/examples/constants.js.map +0 -1
  1061. package/dist/examples/dynamicvouchers.example.d.ts +0 -1
  1062. package/dist/examples/dynamicvouchers.example.js +0 -114
  1063. package/dist/examples/dynamicvouchers.example.js.map +0 -1
  1064. package/dist/examples/linkbook.example.d.ts +0 -1
  1065. package/dist/examples/linkbook.example.js +0 -76
  1066. package/dist/examples/linkbook.example.js.map +0 -1
  1067. package/dist/examples/membershiptiers.example.d.ts +0 -1
  1068. package/dist/examples/membershiptiers.example.js +0 -90
  1069. package/dist/examples/membershiptiers.example.js.map +0 -1
  1070. package/dist/examples/merchantcredits.example.d.ts +0 -1
  1071. package/dist/examples/merchantcredits.example.js +0 -93
  1072. package/dist/examples/merchantcredits.example.js.map +0 -1
  1073. package/dist/examples/merchanturls.example.d.ts +0 -1
  1074. package/dist/examples/merchanturls.example.js +0 -77
  1075. package/dist/examples/merchanturls.example.js.map +0 -1
  1076. package/dist/examples/news.example.d.ts +0 -1
  1077. package/dist/examples/news.example.js +0 -76
  1078. package/dist/examples/news.example.js.map +0 -1
  1079. package/dist/examples/paymentdesigns.example.d.ts +0 -1
  1080. package/dist/examples/paymentdesigns.example.js +0 -84
  1081. package/dist/examples/paymentdesigns.example.js.map +0 -1
  1082. package/dist/examples/performances.example.d.ts +0 -1
  1083. package/dist/examples/performances.example.js +0 -79
  1084. package/dist/examples/performances.example.js.map +0 -1
  1085. package/dist/examples/promocodes.example.d.ts +0 -1
  1086. package/dist/examples/promocodes.example.js +0 -78
  1087. package/dist/examples/promocodes.example.js.map +0 -1
  1088. package/dist/examples/sms.example.d.ts +0 -1
  1089. package/dist/examples/sms.example.js +0 -268
  1090. package/dist/examples/sms.example.js.map +0 -1
  1091. package/dist/examples/staticvouchercampaigns.example.d.ts +0 -1
  1092. package/dist/examples/staticvouchercampaigns.example.js +0 -170
  1093. package/dist/examples/staticvouchercampaigns.example.js.map +0 -1
  1094. package/dist/examples/staticvouchers.example.d.ts +0 -1
  1095. package/dist/examples/staticvouchers.example.js +0 -82
  1096. package/dist/examples/staticvouchers.example.js.map +0 -1
  1097. package/examples/advertisementcredits.example.ts +0 -71
  1098. package/examples/clubmembers.example.ts +0 -87
  1099. package/examples/constants.ts +0 -6
  1100. package/examples/dynamicvouchers.example.ts +0 -107
  1101. package/examples/linkbook.example.ts +0 -58
  1102. package/examples/membershiptiers.example.ts +0 -78
  1103. package/examples/merchantcredits.example.ts +0 -85
  1104. package/examples/merchanturls.example.ts +0 -63
  1105. package/examples/news.example.ts +0 -59
  1106. package/examples/package-lock.json +0 -2108
  1107. package/examples/package.json +0 -18
  1108. package/examples/paymentdesigns.example.ts +0 -68
  1109. package/examples/performances.example.ts +0 -63
  1110. package/examples/promocodes.example.ts +0 -60
  1111. package/examples/sms.example.ts +0 -305
  1112. package/examples/staticvouchercampaigns.example.ts +0 -192
  1113. package/examples/staticvouchers.example.ts +0 -67
  1114. package/git_push.sh +0 -57
  1115. package/model/a2PApplicationSubmission.ts +0 -249
  1116. package/model/advertisementCredit.ts +0 -105
  1117. package/model/advertisementCreditBroadcast.ts +0 -158
  1118. package/model/advertisementCreditScan.ts +0 -167
  1119. package/model/amenity.ts +0 -92
  1120. package/model/amenityId.ts +0 -26
  1121. package/model/announcement.ts +0 -67
  1122. package/model/applicableTerminals.ts +0 -26
  1123. package/model/assistant.ts +0 -116
  1124. package/model/authError.ts +0 -55
  1125. package/model/availablePhoneNumbersRequest.ts +0 -43
  1126. package/model/browserDetails.ts +0 -55
  1127. package/model/businessClassification.ts +0 -20
  1128. package/model/businessIndustry.ts +0 -49
  1129. package/model/businessRegionsOfOperation.ts +0 -22
  1130. package/model/businessRegistrationIdentifier.ts +0 -26
  1131. package/model/businessStockExchanges.ts +0 -43
  1132. package/model/businessType.ts +0 -22
  1133. package/model/chatCompletionAudio.ts +0 -64
  1134. package/model/chatCompletionMessage.ts +0 -83
  1135. package/model/chatCompletionMessageAudio.ts +0 -65
  1136. package/model/chatCompletionMessageFunctionCall.ts +0 -43
  1137. package/model/chatCompletionMessageToolCall.ts +0 -58
  1138. package/model/chatCompletionMessageToolCallFunction.ts +0 -46
  1139. package/model/claimTicketRequest.ts +0 -31
  1140. package/model/clickFunnelAmount.ts +0 -37
  1141. package/model/clickFunnelContact.ts +0 -284
  1142. package/model/clickFunnelContactProfile.ts +0 -235
  1143. package/model/clickFunnelEvent.ts +0 -38
  1144. package/model/clickFunnelOriginalAmount.ts +0 -37
  1145. package/model/clickFunnelProduct.ts +0 -194
  1146. package/model/clickFunnelPurchase.ts +0 -177
  1147. package/model/clickFunnelRegistration.ts +0 -38
  1148. package/model/countClaimedComps200Response.ts +0 -37
  1149. package/model/createFile200Response.ts +0 -43
  1150. package/model/createRunOnThreadRequest.ts +0 -37
  1151. package/model/createStaticVoucherCampaign.ts +0 -104
  1152. package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +0 -104
  1153. package/model/dashboardWidget.ts +0 -121
  1154. package/model/dining.ts +0 -92
  1155. package/model/document.ts +0 -100
  1156. package/model/duplicateRowFound.ts +0 -55
  1157. package/model/dynamicVoucher.ts +0 -227
  1158. package/model/dynamicVoucherBroadcast.ts +0 -158
  1159. package/model/dynamicVoucherBroadcastListType.ts +0 -26
  1160. package/model/dynamicVoucherTemporalDecreaseFrequencyType.ts +0 -26
  1161. package/model/emailSubscriber.ts +0 -74
  1162. package/model/employee.ts +0 -212
  1163. package/model/employeeAPIKey.ts +0 -83
  1164. package/model/employeeActivityLog.ts +0 -67
  1165. package/model/employeeAlert.ts +0 -85
  1166. package/model/employeeScheduleStartDay.ts +0 -26
  1167. package/model/employeeScheduleStartHour.ts +0 -26
  1168. package/model/employeeScheduleStartMeridiem.ts +0 -26
  1169. package/model/employeeScheduleStartMinute.ts +0 -26
  1170. package/model/entityTooLarge.ts +0 -55
  1171. package/model/exportDataFile.ts +0 -85
  1172. package/model/falsumError.ts +0 -40
  1173. package/model/falsumField.ts +0 -55
  1174. package/model/feature.ts +0 -79
  1175. package/model/fetchAdvertisementCreditScansFromListRequest.ts +0 -31
  1176. package/model/fetchAllCountries200ResponseInner.ts +0 -49
  1177. package/model/fetchAllLedgerTransactions200Response.ts +0 -44
  1178. package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner.ts +0 -105
  1179. package/model/fetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInnerValueType.ts +0 -26
  1180. package/model/fetchCustomerTicketsWithTokenRequest.ts +0 -37
  1181. package/model/fetchDomainsByIndustry200Response.ts +0 -67
  1182. package/model/fetchImportedListRecipientsByPage200Response.ts +0 -44
  1183. package/model/fetchInboundSMSByPage200Response.ts +0 -44
  1184. package/model/fetchIndustry200Response.ts +0 -56
  1185. package/model/fetchMembersCount200Response.ts +0 -31
  1186. package/model/fetchOptInListSubscribersByPage200Response.ts +0 -44
  1187. package/model/fetchOutboundSMSByPage200Response.ts +0 -44
  1188. package/model/fetchPerformanceTicketsPage200Response.ts +0 -38
  1189. package/model/fetchStaticVouchersPage200Response.ts +0 -38
  1190. package/model/forbiddenRequest.ts +0 -55
  1191. package/model/foreignKeyDoesNotExist.ts +0 -55
  1192. package/model/gaming.ts +0 -92
  1193. package/model/helpDeskRequest.ts +0 -86
  1194. package/model/imageGrid.ts +0 -86
  1195. package/model/importTicketsRequest.ts +0 -32
  1196. package/model/importedList.ts +0 -74
  1197. package/model/importedListRecipient.ts +0 -74
  1198. package/model/inboundSMS.ts +0 -242
  1199. package/model/internalServerError500.ts +0 -55
  1200. package/model/jobPosition.ts +0 -23
  1201. package/model/ledgerEntry.ts +0 -179
  1202. package/model/ledgerEntryParentObjectID.ts +0 -26
  1203. package/model/ledgerEntryTransactionType.ts +0 -26
  1204. package/model/linkBook.ts +0 -87
  1205. package/model/linkBookSection.ts +0 -68
  1206. package/model/loginStatus200Response.ts +0 -50
  1207. package/model/loginStatus200ResponseAnyOf.ts +0 -37
  1208. package/model/lounge.ts +0 -92
  1209. package/model/mSAnalyticsMemberCountPartitionedByDate.ts +0 -43
  1210. package/model/mSAnalyticsMemberPointsRedeemedPartitionedByDate.ts +0 -43
  1211. package/model/mSAnalyticsMemberPointsRefundedPartitionedByDate.ts +0 -43
  1212. package/model/mSAnalyticsMembershipTierAmountRedeemedPartitionedByDate.ts +0 -43
  1213. package/model/mSAnalyticsMembershipTierAmountRefundedPartitionedByDate.ts +0 -43
  1214. package/model/mSMemberHistory.ts +0 -127
  1215. package/model/mSMemberHistoryPagination.ts +0 -52
  1216. package/model/mSMemberRedemption.ts +0 -105
  1217. package/model/mSMemberRedemptionPagination.ts +0 -52
  1218. package/model/mSMemberRedemptionRegisterID.ts +0 -29
  1219. package/model/mSMemberRedemptionTransactionType.ts +0 -29
  1220. package/model/mSMembershipTierHistory.ts +0 -106
  1221. package/model/mSMembershipTierHistoryPagination.ts +0 -52
  1222. package/model/mSMembershipTierRedemption.ts +0 -117
  1223. package/model/mSMembershipTierRedemptionPagination.ts +0 -52
  1224. package/model/mSMerchantCreditHistory.ts +0 -88
  1225. package/model/mSMerchantCreditHistoryPagination.ts +0 -52
  1226. package/model/mSMerchantCreditRedemption.ts +0 -105
  1227. package/model/mSMerchantCreditRedemptionPagination.ts +0 -52
  1228. package/model/mediaFile.ts +0 -100
  1229. package/model/member.ts +0 -133
  1230. package/model/memberSearch.ts +0 -82
  1231. package/model/memberSearchSearchKey.ts +0 -29
  1232. package/model/memberSearchSortKey.ts +0 -29
  1233. package/model/merchant.ts +0 -187
  1234. package/model/merchantCreditSearch.ts +0 -61
  1235. package/model/merchantNotInitialized.ts +0 -55
  1236. package/model/merchantURL.ts +0 -68
  1237. package/model/message.ts +0 -74
  1238. package/model/models.ts +0 -1421
  1239. package/model/moduleError.ts +0 -157
  1240. package/model/newsArticle.ts +0 -92
  1241. package/model/oAIAssistantUpdateParams.ts +0 -79
  1242. package/model/oAIAssistantUpdateParamsCreateParams.ts +0 -79
  1243. package/model/optInList.ts +0 -134
  1244. package/model/optInListSource.ts +0 -74
  1245. package/model/optInListSubscriber.ts +0 -118
  1246. package/model/optInListSubscriberOptInSourceID.ts +0 -26
  1247. package/model/outboundSMS.ts +0 -160
  1248. package/model/outboundSMSPaymentObjectBroadcastID.ts +0 -26
  1249. package/model/outboundSMSStatus.ts +0 -26
  1250. package/model/paginatedWTMembers.ts +0 -52
  1251. package/model/paginatedWTMerchantCredits.ts +0 -52
  1252. package/model/paginationRequestWithIDAndWithoutSortOptions.ts +0 -49
  1253. package/model/paginationRequestWithSortOptions.ts +0 -73
  1254. package/model/paginationRequestWithSortOptionsSortOrder.ts +0 -29
  1255. package/model/paymentDesign.ts +0 -141
  1256. package/model/performance.ts +0 -134
  1257. package/model/phoneNumber.ts +0 -158
  1258. package/model/phoneNumberCapabilities.ts +0 -49
  1259. package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherIsActive.ts +0 -107
  1260. package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +0 -101
  1261. package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +0 -40
  1262. package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +0 -40
  1263. package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +0 -82
  1264. package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +0 -121
  1265. package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +0 -43
  1266. package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +0 -82
  1267. package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKey.ts +0 -62
  1268. package/model/pickPaginationRequestWithSortOptionsExcludeKeyofPaginationRequestWithSortOptionsSortKeySortOrder.ts +0 -29
  1269. package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +0 -46
  1270. package/model/pickSSImportedListRecipientFromMembershipTierImportExcludeKeyofSSImportedListRecipientFromMembershipTierImportEmployeeIDOrTierID.ts +0 -40
  1271. package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +0 -52
  1272. package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +0 -100
  1273. package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeIDOrOptInConfirmedMediaURLsOrOptOutConfirmedMediaURLs.ts +0 -94
  1274. package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCount.ts +0 -77
  1275. package/model/pickSSOptInListMemberUpdateParamsExcludeKeyofSSOptInListMemberUpdateParamsMerchantCreatedAtOrMaxSMSCountOptInSourceID.ts +0 -26
  1276. package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +0 -112
  1277. package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +0 -46
  1278. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +0 -156
  1279. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhonePaymentObjectBroadcastID.ts +0 -26
  1280. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhoneStatus.ts +0 -26
  1281. package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +0 -59
  1282. package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +0 -133
  1283. package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +0 -59
  1284. package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +0 -101
  1285. package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDateValueType.ts +0 -26
  1286. package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +0 -142
  1287. package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsEmployeeID.ts +0 -107
  1288. package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +0 -107
  1289. package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsIdBorderStyleType.ts +0 -26
  1290. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +0 -163
  1291. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtRegisterID.ts +0 -29
  1292. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAtTransactionType.ts +0 -29
  1293. package/model/pickWTEmailSubscriberUpdateParamsExcludeKeyofWTEmailSubscriberUpdateParamsId.ts +0 -46
  1294. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +0 -128
  1295. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartDay.ts +0 -26
  1296. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartHour.ts +0 -26
  1297. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMeridiem.ts +0 -26
  1298. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmailScheduleStartMinute.ts +0 -26
  1299. package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumberOrEmailOrBirthday.ts +0 -91
  1300. package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +0 -52
  1301. package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +0 -40
  1302. package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +0 -64
  1303. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +0 -141
  1304. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDBroadcastStatus.ts +0 -26
  1305. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListIDPaymentObjectPrefix.ts +0 -26
  1306. package/model/pickWTSmsSubscriberUpdateParamsExcludeKeyofWTSmsSubscriberUpdateParamsId.ts +0 -34
  1307. package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +0 -107
  1308. package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +0 -46
  1309. package/model/plan.ts +0 -61
  1310. package/model/portalPage.ts +0 -88
  1311. package/model/presignedPost.ts +0 -44
  1312. package/model/presignedPostFields.ts +0 -43
  1313. package/model/product.ts +0 -73
  1314. package/model/profileStatuses.ts +0 -21
  1315. package/model/promoCode.ts +0 -104
  1316. package/model/qRCodeDesign.ts +0 -80
  1317. package/model/reachPerformanceStats.ts +0 -124
  1318. package/model/request.ts +0 -349
  1319. package/model/response.ts +0 -67
  1320. package/model/role.ts +0 -115
  1321. package/model/roleAuditLog.ts +0 -97
  1322. package/model/roomRate.ts +0 -92
  1323. package/model/sSImportedListRecipientCreateParams.ts +0 -37
  1324. package/model/sSOptInSource.ts +0 -73
  1325. package/model/sSOutboundStatuses.ts +0 -26
  1326. package/model/saveMerchantCreditPaymentDesignRequest.ts +0 -31
  1327. package/model/saveTicketSettingsRequest.ts +0 -49
  1328. package/model/service.ts +0 -92
  1329. package/model/setDefaultPaymentMethodRequest.ts +0 -31
  1330. package/model/simpleSMSBroadcast.ts +0 -151
  1331. package/model/smsSubscriber.ts +0 -62
  1332. package/model/sortDirection.ts +0 -18
  1333. package/model/staticVoucher.ts +0 -221
  1334. package/model/staticVoucherCampaign.ts +0 -177
  1335. package/model/staticVoucherCampaignBroadcast.ts +0 -145
  1336. package/model/staticVoucherCampaignBroadcastBroadcastStatus.ts +0 -26
  1337. package/model/staticVoucherCampaignBroadcastPaymentObjectPrefix.ts +0 -26
  1338. package/model/staticVoucherCampaignUpdate.ts +0 -80
  1339. package/model/staticVoucherCampaignValueType.ts +0 -26
  1340. package/model/staticVoucherId.ts +0 -26
  1341. package/model/status.ts +0 -26
  1342. package/model/subscriptionFeature.ts +0 -79
  1343. package/model/subscriptionPlan.ts +0 -67
  1344. package/model/subscriptionProduct.ts +0 -97
  1345. package/model/tcpa.ts +0 -68
  1346. package/model/thread.ts +0 -62
  1347. package/model/ticket.ts +0 -149
  1348. package/model/ticketSortKeys.ts +0 -22
  1349. package/model/trustBundleStatuses.ts +0 -21
  1350. package/model/updateEmailNotificationPreferenceRequest.ts +0 -31
  1351. package/model/updateStaticVoucherCampaignWithVoucher.ts +0 -104
  1352. package/model/vSCampaignGeneratedMessage.ts +0 -43
  1353. package/model/vSCampaignGeneratedMessagePagination.ts +0 -52
  1354. package/model/vSDynamicVoucherStatus.ts +0 -26
  1355. package/model/vectorStore.ts +0 -62
  1356. package/model/video.ts +0 -86
  1357. package/model/virtualBusinessCard.ts +0 -134
  1358. package/model/wTA2PApplicationUpdateParams.ts +0 -177
  1359. package/model/wTAdvertisementCredit.ts +0 -105
  1360. package/model/wTAdvertisementCreditCreateParams.ts +0 -56
  1361. package/model/wTAdvertisementCreditScan.ts +0 -167
  1362. package/model/wTAdvertisementCreditUpdateParams.ts +0 -56
  1363. package/model/wTAmenityCreateParams.ts +0 -61
  1364. package/model/wTAmenityUpdateParams.ts +0 -61
  1365. package/model/wTAndroidKeystoreResponse.ts +0 -37
  1366. package/model/wTAuthenticationCheckSessionTokenStatusResponse.ts +0 -36
  1367. package/model/wTAuthenticationForgotPassword.ts +0 -31
  1368. package/model/wTAuthenticationLoginRequest.ts +0 -37
  1369. package/model/wTAuthenticationLoginResponse.ts +0 -121
  1370. package/model/wTAuthenticationRegister.ts +0 -157
  1371. package/model/wTAuthenticationRequestResetPassword.ts +0 -31
  1372. package/model/wTAuthenticationResetPassword.ts +0 -43
  1373. package/model/wTAuthenticationSSOLoginForDiscourse.ts +0 -49
  1374. package/model/wTBillingChangePlan.ts +0 -31
  1375. package/model/wTBillingSavePaymentMethod.ts +0 -31
  1376. package/model/wTBillingVerifyPaymentMethodResponse.ts +0 -38
  1377. package/model/wTCountResult.ts +0 -31
  1378. package/model/wTCustomerSearchByMemberID.ts +0 -31
  1379. package/model/wTCustomerSearchByPhoneNumber.ts +0 -31
  1380. package/model/wTDiningCreateParams.ts +0 -61
  1381. package/model/wTDiningUpdateParams.ts +0 -61
  1382. package/model/wTDynamicVoucher.ts +0 -227
  1383. package/model/wTDynamicVoucherCreateParams.ts +0 -98
  1384. package/model/wTDynamicVoucherRedemption.ts +0 -161
  1385. package/model/wTDynamicVoucherRedemptionTransactionType.ts +0 -29
  1386. package/model/wTDynamicVoucherSummary.ts +0 -170
  1387. package/model/wTDynamicVoucherSummaryStatus.ts +0 -26
  1388. package/model/wTDynamicVoucherUpdateParams.ts +0 -98
  1389. package/model/wTEmailSubscriberCreateParams.ts +0 -43
  1390. package/model/wTEmailSubscriberCreateParamsWalletUI.ts +0 -49
  1391. package/model/wTEmailSubscriberUpdateParams.ts +0 -43
  1392. package/model/wTEmployee.ts +0 -212
  1393. package/model/wTEmployeeAPIKey.ts +0 -83
  1394. package/model/wTEmployeeAPIKeyCreateParams.ts +0 -37
  1395. package/model/wTEmployeeAPIKeyUpdateParams.ts +0 -37
  1396. package/model/wTEmployeeCreate.ts +0 -131
  1397. package/model/wTEmployeeCreateDocument.ts +0 -43
  1398. package/model/wTEmployeeCreateMediaFile.ts +0 -43
  1399. package/model/wTEmployeeFileCreate.ts +0 -37
  1400. package/model/wTEmployeeImportRecords.ts +0 -37
  1401. package/model/wTEmployeeNotification.ts +0 -50
  1402. package/model/wTEmployeeNotificationType.ts +0 -26
  1403. package/model/wTEmployeePeerRoles.ts +0 -31
  1404. package/model/wTEmployeeS3FilePresign.ts +0 -44
  1405. package/model/wTEmployeeS3FilePresignContext.ts +0 -26
  1406. package/model/wTEmployeeScheduleSMSCampaignBroadcast.ts +0 -67
  1407. package/model/wTEmployeeScheduleSimpleSMS.ts +0 -62
  1408. package/model/wTEmployeeScheduleSimpleSMSListType.ts +0 -26
  1409. package/model/wTEmployeeScheduleSimpleSMSToRecipient.ts +0 -55
  1410. package/model/wTEmployeeSendHelpDeskResponse.ts +0 -43
  1411. package/model/wTEmployeeUpdate.ts +0 -125
  1412. package/model/wTEmployeeUpdateRecords.ts +0 -37
  1413. package/model/wTFetchWalletPaymentObjectsWithToken.ts +0 -55
  1414. package/model/wTGamingCreateParams.ts +0 -61
  1415. package/model/wTGamingUpdateParams.ts +0 -61
  1416. package/model/wTImageGridCreateParams.ts +0 -55
  1417. package/model/wTImageGridUpdateParams.ts +0 -55
  1418. package/model/wTImportedList.ts +0 -74
  1419. package/model/wTImportedListRecipientFromMembershipTierImport.ts +0 -44
  1420. package/model/wTImportedListRecipientFromMembershipTierImportTierID.ts +0 -26
  1421. package/model/wTInfoGenesisLookupRequestErrors.ts +0 -49
  1422. package/model/wTInfoGenesisRecordFilterParameters.ts +0 -43
  1423. package/model/wTInfoGenesisRoutingIDs.ts +0 -31
  1424. package/model/wTInfoGenesisUniquePostingIDs.ts +0 -31
  1425. package/model/wTLocalInstance.ts +0 -107
  1426. package/model/wTLoungeCreateParams.ts +0 -61
  1427. package/model/wTLoungeUpdateParams.ts +0 -61
  1428. package/model/wTMember.ts +0 -133
  1429. package/model/wTMemberCreationParams.ts +0 -88
  1430. package/model/wTMembershipTier.ts +0 -104
  1431. package/model/wTMembershipTierCreationParams.ts +0 -64
  1432. package/model/wTMembershipTierId.ts +0 -29
  1433. package/model/wTMembershipTierUpdateParams.ts +0 -64
  1434. package/model/wTMembershipTierWithMemberCount.ts +0 -113
  1435. package/model/wTMerchantCredit.ts +0 -106
  1436. package/model/wTMerchantCreditCreationParams.ts +0 -49
  1437. package/model/wTMerchantURLCreate.ts +0 -37
  1438. package/model/wTMerchantURLUpdate.ts +0 -37
  1439. package/model/wTMerchantUpdate.ts +0 -79
  1440. package/model/wTMerchantUpdatePOSIntegration.ts +0 -31
  1441. package/model/wTMerchantUpdatePointsOfContact.ts +0 -49
  1442. package/model/wTMessageInstance.ts +0 -26
  1443. package/model/wTNewsArticleCreateParams.ts +0 -61
  1444. package/model/wTNewsArticleUpdateParams.ts +0 -61
  1445. package/model/wTOptInList.ts +0 -134
  1446. package/model/wTOptInListCreationParams.ts +0 -103
  1447. package/model/wTPassBrandKit.ts +0 -61
  1448. package/model/wTPaymentDesign.ts +0 -141
  1449. package/model/wTPaymentDesignCreateParams.ts +0 -104
  1450. package/model/wTPaymentDesignUpdateParams.ts +0 -104
  1451. package/model/wTPerformanceCreateParams.ts +0 -103
  1452. package/model/wTPerformanceUpdateParams.ts +0 -103
  1453. package/model/wTPosMachine.ts +0 -88
  1454. package/model/wTPosMachineCreateParams.ts +0 -58
  1455. package/model/wTPosMachineUpdateParams.ts +0 -58
  1456. package/model/wTProductCreateParams.ts +0 -61
  1457. package/model/wTProductUpdateParams.ts +0 -61
  1458. package/model/wTPromoCodeCreateParams.ts +0 -73
  1459. package/model/wTPromoCodeUpdateParams.ts +0 -73
  1460. package/model/wTQRCodeDesign.ts +0 -80
  1461. package/model/wTQRCodeDesignCreateParams.ts +0 -49
  1462. package/model/wTQRCodeDesignUpdateParams.ts +0 -49
  1463. package/model/wTQuickLink.ts +0 -87
  1464. package/model/wTQuickLinkCreateParams.ts +0 -56
  1465. package/model/wTQuickLinkLinkBookSectionID.ts +0 -26
  1466. package/model/wTQuickLinkSectionCreateParams.ts +0 -37
  1467. package/model/wTQuickLinkSectionUpdateParams.ts +0 -37
  1468. package/model/wTQuickLinkUpdateParams.ts +0 -56
  1469. package/model/wTRole.ts +0 -115
  1470. package/model/wTRoomRateCreateParams.ts +0 -61
  1471. package/model/wTRoomRateUpdateParams.ts +0 -61
  1472. package/model/wTSMSAcquirePhoneNumber.ts +0 -31
  1473. package/model/wTSMSImportOptInListSubscribers.ts +0 -43
  1474. package/model/wTSMSImportedListCreate.ts +0 -43
  1475. package/model/wTSMSOptInListSourceCreate.ts +0 -37
  1476. package/model/wTSMSUpdatePhoneNumberConfig.ts +0 -97
  1477. package/model/wTServiceCreateParams.ts +0 -61
  1478. package/model/wTServiceUpdateParams.ts +0 -61
  1479. package/model/wTSettingsSetPassword.ts +0 -31
  1480. package/model/wTSmsSubscriberCreateParams.ts +0 -31
  1481. package/model/wTSmsSubscriberCreateParamsWalletUI.ts +0 -37
  1482. package/model/wTSmsSubscriberUpdateParams.ts +0 -31
  1483. package/model/wTStaticVoucher.ts +0 -221
  1484. package/model/wTStaticVoucherCampaign.ts +0 -177
  1485. package/model/wTStaticVoucherCampaignPreviewMessagesByPage.ts +0 -55
  1486. package/model/wTStaticVoucherCreateParams.ts +0 -50
  1487. package/model/wTStaticVoucherUpdateParams.ts +0 -43
  1488. package/model/wTSystemApprovePhoneNumber.ts +0 -37
  1489. package/model/wTSystemRoleCreate.ts +0 -37
  1490. package/model/wTTCPAOpt.ts +0 -45
  1491. package/model/wTTCPAOptListID.ts +0 -26
  1492. package/model/wTTCPAOptSourceID.ts +0 -26
  1493. package/model/wTTicket.ts +0 -149
  1494. package/model/wTTicketCreateParams.ts +0 -64
  1495. package/model/wTTicketUpdateParams.ts +0 -58
  1496. package/model/wTTwilioRequestAuthyCode.ts +0 -37
  1497. package/model/wTTwilioVerifyAuthyCode.ts +0 -43
  1498. package/model/wTVideoCreateParams.ts +0 -55
  1499. package/model/wTVideoUpdateParams.ts +0 -55
  1500. package/model/wTVirtualBusinessCardCreateParams.ts +0 -103
  1501. package/model/wTVirtualBusinessCardUpdateParams.ts +0 -103
  1502. package/model/wTWalletConfigurationSaveWalletRecord.ts +0 -477
  1503. package/model/wTWalletConfigurationSaveWalletRecordPassBrandKit.ts +0 -62
  1504. package/model/wTWalletConfigurationSaveWalletRecordSmsOptInSourceID.ts +0 -26
  1505. package/model/wTWalletItemRedemption.ts +0 -43
  1506. package/model/wTWalletObjectPrefixCounts.ts +0 -43
  1507. package/model/wTWalletPageView.ts +0 -263
  1508. package/model/wTWalletPageViewCount.ts +0 -49
  1509. package/model/wTWalletPageViewGeoPoint.ts +0 -37
  1510. package/model/wTWhatsAppInboundWebhook.ts +0 -109
  1511. package/model/wTWhatsAppStatusCallback.ts +0 -91
  1512. package/model/walletConfiguration.ts +0 -510
  1513. package/model/walletPageView.ts +0 -263
  1514. package/model/webpage.ts +0 -85
  1515. package/openapitools.json +0 -7
  1516. package/readme-generator.py +0 -107
  1517. package/scripts/failure.py +0 -67
  1518. package/scripts/slack.py +0 -94
  1519. package/tsconfig.json +0 -25
@@ -1,1745 +1,540 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MerchantApi = exports.MerchantApiApiKeys = void 0;
16
- const request_1 = __importDefault(require("request"));
17
- const models_1 = require("../model/models");
18
- const models_2 = require("../model/models");
19
- const apis_1 = require("./apis");
20
- let defaultBasePath = 'https://api.wall.et';
21
- var MerchantApiApiKeys;
22
- (function (MerchantApiApiKeys) {
23
- MerchantApiApiKeys[MerchantApiApiKeys["api_key"] = 0] = "api_key";
24
- })(MerchantApiApiKeys = exports.MerchantApiApiKeys || (exports.MerchantApiApiKeys = {}));
25
- class MerchantApi {
26
- constructor(basePathOrUsername, password, basePath) {
27
- this._basePath = defaultBasePath;
28
- this._defaultHeaders = {};
29
- this._useQuerystring = false;
30
- this.authentications = {
31
- 'default': new models_1.VoidAuth(),
32
- 'api_key': new models_2.ApiKeyAuth('header', 'access-token'),
33
- };
34
- this.interceptors = [];
35
- if (password) {
36
- if (basePath) {
37
- this.basePath = basePath;
38
- }
39
- }
40
- else {
41
- if (basePathOrUsername) {
42
- this.basePath = basePathOrUsername;
43
- }
44
- }
45
- }
46
- set useQuerystring(value) {
47
- this._useQuerystring = value;
48
- }
49
- set basePath(basePath) {
50
- this._basePath = basePath;
51
- }
52
- set defaultHeaders(defaultHeaders) {
53
- this._defaultHeaders = defaultHeaders;
54
- }
55
- get defaultHeaders() {
56
- return this._defaultHeaders;
57
- }
58
- get basePath() {
59
- return this._basePath;
60
- }
61
- setDefaultAuthentication(auth) {
62
- this.authentications.default = auth;
63
- }
64
- setApiKey(key, value) {
65
- this.authentications[MerchantApiApiKeys[key]].apiKey = value;
66
- }
67
- addInterceptor(interceptor) {
68
- this.interceptors.push(interceptor);
69
- }
70
- archiveMerchantProfile(options = { headers: {} }) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- const localVarPath = this.basePath + '/v2/merchant/delete';
73
- let localVarQueryParameters = {};
74
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
75
- const produces = ['application/json'];
76
- if (produces.indexOf('application/json') >= 0) {
77
- localVarHeaderParams.Accept = 'application/json';
78
- }
79
- else {
80
- localVarHeaderParams.Accept = produces.join(',');
81
- }
82
- let localVarFormParams = {};
83
- Object.assign(localVarHeaderParams, options.headers);
84
- let localVarUseFormData = false;
85
- let localVarRequestOptions = {
86
- method: 'DELETE',
87
- qs: localVarQueryParameters,
88
- headers: localVarHeaderParams,
89
- uri: localVarPath,
90
- useQuerystring: this._useQuerystring,
91
- json: true,
92
- };
93
- let authenticationPromise = Promise.resolve();
94
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
95
- let interceptorPromise = authenticationPromise;
96
- for (const interceptor of this.interceptors) {
97
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
98
- }
99
- return interceptorPromise.then(() => {
100
- if (Object.keys(localVarFormParams).length) {
101
- if (localVarUseFormData) {
102
- localVarRequestOptions.formData = localVarFormParams;
103
- }
104
- else {
105
- localVarRequestOptions.form = localVarFormParams;
106
- }
107
- }
108
- return new Promise((resolve, reject) => {
109
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
110
- if (error) {
111
- reject(error);
112
- }
113
- else {
114
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
115
- body = models_1.ObjectSerializer.deserialize(body, "any");
116
- resolve({ response: response, body: body });
117
- }
118
- else {
119
- reject(new apis_1.HttpError(response, body, response.statusCode));
120
- }
121
- }
122
- });
123
- });
124
- });
125
- });
126
- }
127
- archivePaymentObjectBroadcast(broadcastID, options = { headers: {} }) {
128
- return __awaiter(this, void 0, void 0, function* () {
129
- const localVarPath = this.basePath + '/v2/merchant/paymentObjectBroadcast/{broadcastID}'
130
- .replace('{' + 'broadcastID' + '}', encodeURIComponent(String(broadcastID)));
131
- let localVarQueryParameters = {};
132
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
133
- const produces = ['application/json'];
134
- if (produces.indexOf('application/json') >= 0) {
135
- localVarHeaderParams.Accept = 'application/json';
136
- }
137
- else {
138
- localVarHeaderParams.Accept = produces.join(',');
139
- }
140
- let localVarFormParams = {};
141
- if (broadcastID === null || broadcastID === undefined) {
142
- throw new Error('Required parameter broadcastID was null or undefined when calling archivePaymentObjectBroadcast.');
143
- }
144
- Object.assign(localVarHeaderParams, options.headers);
145
- let localVarUseFormData = false;
146
- let localVarRequestOptions = {
147
- method: 'DELETE',
148
- qs: localVarQueryParameters,
149
- headers: localVarHeaderParams,
150
- uri: localVarPath,
151
- useQuerystring: this._useQuerystring,
152
- json: true,
153
- };
154
- let authenticationPromise = Promise.resolve();
155
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
156
- let interceptorPromise = authenticationPromise;
157
- for (const interceptor of this.interceptors) {
158
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
159
- }
160
- return interceptorPromise.then(() => {
161
- if (Object.keys(localVarFormParams).length) {
162
- if (localVarUseFormData) {
163
- localVarRequestOptions.formData = localVarFormParams;
164
- }
165
- else {
166
- localVarRequestOptions.form = localVarFormParams;
167
- }
168
- }
169
- return new Promise((resolve, reject) => {
170
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
171
- if (error) {
172
- reject(error);
173
- }
174
- else {
175
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
176
- body = models_1.ObjectSerializer.deserialize(body, "any");
177
- resolve({ response: response, body: body });
178
- }
179
- else {
180
- reject(new apis_1.HttpError(response, body, response.statusCode));
181
- }
182
- }
183
- });
184
- });
185
- });
186
- });
187
- }
188
- countInboundSMS(phoneNumberID, fromPhoneNumber, body, startDate, endDate, options = { headers: {} }) {
189
- return __awaiter(this, void 0, void 0, function* () {
190
- const localVarPath = this.basePath + '/v2/merchant/sms/inbound/count/{phoneNumberID}'
191
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
192
- let localVarQueryParameters = {};
193
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
194
- const produces = ['application/json'];
195
- if (produces.indexOf('application/json') >= 0) {
196
- localVarHeaderParams.Accept = 'application/json';
197
- }
198
- else {
199
- localVarHeaderParams.Accept = produces.join(',');
200
- }
201
- let localVarFormParams = {};
202
- if (phoneNumberID === null || phoneNumberID === undefined) {
203
- throw new Error('Required parameter phoneNumberID was null or undefined when calling countInboundSMS.');
204
- }
205
- if (fromPhoneNumber !== undefined) {
206
- localVarQueryParameters['fromPhoneNumber'] = models_1.ObjectSerializer.serialize(fromPhoneNumber, "string");
207
- }
208
- if (body !== undefined) {
209
- localVarQueryParameters['body'] = models_1.ObjectSerializer.serialize(body, "string");
210
- }
211
- if (startDate !== undefined) {
212
- localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "Date");
213
- }
214
- if (endDate !== undefined) {
215
- localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "Date");
216
- }
217
- Object.assign(localVarHeaderParams, options.headers);
218
- let localVarUseFormData = false;
219
- let localVarRequestOptions = {
220
- method: 'GET',
221
- qs: localVarQueryParameters,
222
- headers: localVarHeaderParams,
223
- uri: localVarPath,
224
- useQuerystring: this._useQuerystring,
225
- json: true,
226
- };
227
- let authenticationPromise = Promise.resolve();
228
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
229
- let interceptorPromise = authenticationPromise;
230
- for (const interceptor of this.interceptors) {
231
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
232
- }
233
- return interceptorPromise.then(() => {
234
- if (Object.keys(localVarFormParams).length) {
235
- if (localVarUseFormData) {
236
- localVarRequestOptions.formData = localVarFormParams;
237
- }
238
- else {
239
- localVarRequestOptions.form = localVarFormParams;
240
- }
241
- }
242
- return new Promise((resolve, reject) => {
243
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
244
- if (error) {
245
- reject(error);
246
- }
247
- else {
248
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
249
- body = models_1.ObjectSerializer.deserialize(body, "WTCountResult");
250
- resolve({ response: response, body: body });
251
- }
252
- else {
253
- reject(new apis_1.HttpError(response, body, response.statusCode));
254
- }
255
- }
256
- });
257
- });
258
- });
259
- });
260
- }
261
- exportInboundMessages(phoneNumberID, locale, options = { headers: {} }) {
262
- return __awaiter(this, void 0, void 0, function* () {
263
- const localVarPath = this.basePath + '/v2/merchant/sms/inbound/export/{phoneNumberID}'
264
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
265
- let localVarQueryParameters = {};
266
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
267
- const produces = ['application/json'];
268
- if (produces.indexOf('application/json') >= 0) {
269
- localVarHeaderParams.Accept = 'application/json';
270
- }
271
- else {
272
- localVarHeaderParams.Accept = produces.join(',');
273
- }
274
- let localVarFormParams = {};
275
- if (phoneNumberID === null || phoneNumberID === undefined) {
276
- throw new Error('Required parameter phoneNumberID was null or undefined when calling exportInboundMessages.');
277
- }
278
- if (locale === null || locale === undefined) {
279
- throw new Error('Required parameter locale was null or undefined when calling exportInboundMessages.');
280
- }
281
- if (locale !== undefined) {
282
- localVarQueryParameters['locale'] = models_1.ObjectSerializer.serialize(locale, "string");
283
- }
284
- Object.assign(localVarHeaderParams, options.headers);
285
- let localVarUseFormData = false;
286
- let localVarRequestOptions = {
287
- method: 'PUT',
288
- qs: localVarQueryParameters,
289
- headers: localVarHeaderParams,
290
- uri: localVarPath,
291
- useQuerystring: this._useQuerystring,
292
- json: true,
293
- };
294
- let authenticationPromise = Promise.resolve();
295
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
296
- let interceptorPromise = authenticationPromise;
297
- for (const interceptor of this.interceptors) {
298
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
299
- }
300
- return interceptorPromise.then(() => {
301
- if (Object.keys(localVarFormParams).length) {
302
- if (localVarUseFormData) {
303
- localVarRequestOptions.formData = localVarFormParams;
304
- }
305
- else {
306
- localVarRequestOptions.form = localVarFormParams;
307
- }
308
- }
309
- return new Promise((resolve, reject) => {
310
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
311
- if (error) {
312
- reject(error);
313
- }
314
- else {
315
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
316
- body = models_1.ObjectSerializer.deserialize(body, "string");
317
- resolve({ response: response, body: body });
318
- }
319
- else {
320
- reject(new apis_1.HttpError(response, body, response.statusCode));
321
- }
322
- }
323
- });
324
- });
325
- });
326
- });
327
- }
328
- exportOutboundMessages(phoneNumberID, locale, paymentObjectBroadcastID, options = { headers: {} }) {
329
- return __awaiter(this, void 0, void 0, function* () {
330
- const localVarPath = this.basePath + '/v2/merchant/sms/outbound/export/{phoneNumberID}'
331
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
332
- let localVarQueryParameters = {};
333
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
334
- const produces = ['application/json'];
335
- if (produces.indexOf('application/json') >= 0) {
336
- localVarHeaderParams.Accept = 'application/json';
337
- }
338
- else {
339
- localVarHeaderParams.Accept = produces.join(',');
340
- }
341
- let localVarFormParams = {};
342
- if (phoneNumberID === null || phoneNumberID === undefined) {
343
- throw new Error('Required parameter phoneNumberID was null or undefined when calling exportOutboundMessages.');
344
- }
345
- if (locale === null || locale === undefined) {
346
- throw new Error('Required parameter locale was null or undefined when calling exportOutboundMessages.');
347
- }
348
- if (locale !== undefined) {
349
- localVarQueryParameters['locale'] = models_1.ObjectSerializer.serialize(locale, "string");
350
- }
351
- if (paymentObjectBroadcastID !== undefined) {
352
- localVarQueryParameters['paymentObjectBroadcastID'] = models_1.ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
353
- }
354
- Object.assign(localVarHeaderParams, options.headers);
355
- let localVarUseFormData = false;
356
- let localVarRequestOptions = {
357
- method: 'PUT',
358
- qs: localVarQueryParameters,
359
- headers: localVarHeaderParams,
360
- uri: localVarPath,
361
- useQuerystring: this._useQuerystring,
362
- json: true,
363
- };
364
- let authenticationPromise = Promise.resolve();
365
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
366
- let interceptorPromise = authenticationPromise;
367
- for (const interceptor of this.interceptors) {
368
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
369
- }
370
- return interceptorPromise.then(() => {
371
- if (Object.keys(localVarFormParams).length) {
372
- if (localVarUseFormData) {
373
- localVarRequestOptions.formData = localVarFormParams;
374
- }
375
- else {
376
- localVarRequestOptions.form = localVarFormParams;
377
- }
378
- }
379
- return new Promise((resolve, reject) => {
380
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
381
- if (error) {
382
- reject(error);
383
- }
384
- else {
385
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
386
- body = models_1.ObjectSerializer.deserialize(body, "string");
387
- resolve({ response: response, body: body });
388
- }
389
- else {
390
- reject(new apis_1.HttpError(response, body, response.statusCode));
391
- }
392
- }
393
- });
394
- });
395
- });
396
- });
397
- }
398
- fetchAdvertisementCreditBroadcasts(isArchiveIncluded, options = { headers: {} }) {
399
- return __awaiter(this, void 0, void 0, function* () {
400
- const localVarPath = this.basePath + '/v2/merchant/broadcasts/adCredits/all';
401
- let localVarQueryParameters = {};
402
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
403
- const produces = ['application/json'];
404
- if (produces.indexOf('application/json') >= 0) {
405
- localVarHeaderParams.Accept = 'application/json';
406
- }
407
- else {
408
- localVarHeaderParams.Accept = produces.join(',');
409
- }
410
- let localVarFormParams = {};
411
- if (isArchiveIncluded !== undefined) {
412
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
413
- }
414
- Object.assign(localVarHeaderParams, options.headers);
415
- let localVarUseFormData = false;
416
- let localVarRequestOptions = {
417
- method: 'GET',
418
- qs: localVarQueryParameters,
419
- headers: localVarHeaderParams,
420
- uri: localVarPath,
421
- useQuerystring: this._useQuerystring,
422
- json: true,
423
- };
424
- let authenticationPromise = Promise.resolve();
425
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
426
- let interceptorPromise = authenticationPromise;
427
- for (const interceptor of this.interceptors) {
428
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
429
- }
430
- return interceptorPromise.then(() => {
431
- if (Object.keys(localVarFormParams).length) {
432
- if (localVarUseFormData) {
433
- localVarRequestOptions.formData = localVarFormParams;
434
- }
435
- else {
436
- localVarRequestOptions.form = localVarFormParams;
437
- }
438
- }
439
- return new Promise((resolve, reject) => {
440
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
441
- if (error) {
442
- reject(error);
443
- }
444
- else {
445
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
446
- body = models_1.ObjectSerializer.deserialize(body, "Array<AdvertisementCreditBroadcast>");
447
- resolve({ response: response, body: body });
448
- }
449
- else {
450
- reject(new apis_1.HttpError(response, body, response.statusCode));
451
- }
452
- }
453
- });
454
- });
455
- });
456
- });
457
- }
458
- fetchCustomRoles(options = { headers: {} }) {
459
- return __awaiter(this, void 0, void 0, function* () {
460
- const localVarPath = this.basePath + '/v2/merchant/roles/custom';
461
- let localVarQueryParameters = {};
462
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
463
- const produces = ['application/json'];
464
- if (produces.indexOf('application/json') >= 0) {
465
- localVarHeaderParams.Accept = 'application/json';
466
- }
467
- else {
468
- localVarHeaderParams.Accept = produces.join(',');
469
- }
470
- let localVarFormParams = {};
471
- Object.assign(localVarHeaderParams, options.headers);
472
- let localVarUseFormData = false;
473
- let localVarRequestOptions = {
474
- method: 'GET',
475
- qs: localVarQueryParameters,
476
- headers: localVarHeaderParams,
477
- uri: localVarPath,
478
- useQuerystring: this._useQuerystring,
479
- json: true,
480
- };
481
- let authenticationPromise = Promise.resolve();
482
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
483
- let interceptorPromise = authenticationPromise;
484
- for (const interceptor of this.interceptors) {
485
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
486
- }
487
- return interceptorPromise.then(() => {
488
- if (Object.keys(localVarFormParams).length) {
489
- if (localVarUseFormData) {
490
- localVarRequestOptions.formData = localVarFormParams;
491
- }
492
- else {
493
- localVarRequestOptions.form = localVarFormParams;
494
- }
495
- }
496
- return new Promise((resolve, reject) => {
497
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
498
- if (error) {
499
- reject(error);
500
- }
501
- else {
502
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
503
- body = models_1.ObjectSerializer.deserialize(body, "any");
504
- resolve({ response: response, body: body });
505
- }
506
- else {
507
- reject(new apis_1.HttpError(response, body, response.statusCode));
508
- }
509
- }
510
- });
511
- });
512
- });
513
- });
514
- }
515
- fetchDynamicVoucherBroadcasts(isArchiveIncluded, options = { headers: {} }) {
516
- return __awaiter(this, void 0, void 0, function* () {
517
- const localVarPath = this.basePath + '/v2/merchant/broadcasts/dynamicVouchers/all';
518
- let localVarQueryParameters = {};
519
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
520
- const produces = ['application/json'];
521
- if (produces.indexOf('application/json') >= 0) {
522
- localVarHeaderParams.Accept = 'application/json';
523
- }
524
- else {
525
- localVarHeaderParams.Accept = produces.join(',');
526
- }
527
- let localVarFormParams = {};
528
- if (isArchiveIncluded !== undefined) {
529
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
530
- }
531
- Object.assign(localVarHeaderParams, options.headers);
532
- let localVarUseFormData = false;
533
- let localVarRequestOptions = {
534
- method: 'GET',
535
- qs: localVarQueryParameters,
536
- headers: localVarHeaderParams,
537
- uri: localVarPath,
538
- useQuerystring: this._useQuerystring,
539
- json: true,
540
- };
541
- let authenticationPromise = Promise.resolve();
542
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
543
- let interceptorPromise = authenticationPromise;
544
- for (const interceptor of this.interceptors) {
545
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
546
- }
547
- return interceptorPromise.then(() => {
548
- if (Object.keys(localVarFormParams).length) {
549
- if (localVarUseFormData) {
550
- localVarRequestOptions.formData = localVarFormParams;
551
- }
552
- else {
553
- localVarRequestOptions.form = localVarFormParams;
554
- }
555
- }
556
- return new Promise((resolve, reject) => {
557
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
558
- if (error) {
559
- reject(error);
560
- }
561
- else {
562
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
563
- body = models_1.ObjectSerializer.deserialize(body, "Array<DynamicVoucherBroadcast>");
564
- resolve({ response: response, body: body });
565
- }
566
- else {
567
- reject(new apis_1.HttpError(response, body, response.statusCode));
568
- }
569
- }
570
- });
571
- });
572
- });
573
- });
574
- }
575
- fetchEmployees(options = { headers: {} }) {
576
- return __awaiter(this, void 0, void 0, function* () {
577
- const localVarPath = this.basePath + '/v2/merchant/employees/all';
578
- let localVarQueryParameters = {};
579
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
580
- const produces = ['application/json'];
581
- if (produces.indexOf('application/json') >= 0) {
582
- localVarHeaderParams.Accept = 'application/json';
583
- }
584
- else {
585
- localVarHeaderParams.Accept = produces.join(',');
586
- }
587
- let localVarFormParams = {};
588
- Object.assign(localVarHeaderParams, options.headers);
589
- let localVarUseFormData = false;
590
- let localVarRequestOptions = {
591
- method: 'GET',
592
- qs: localVarQueryParameters,
593
- headers: localVarHeaderParams,
594
- uri: localVarPath,
595
- useQuerystring: this._useQuerystring,
596
- json: true,
597
- };
598
- let authenticationPromise = Promise.resolve();
599
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
600
- let interceptorPromise = authenticationPromise;
601
- for (const interceptor of this.interceptors) {
602
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
603
- }
604
- return interceptorPromise.then(() => {
605
- if (Object.keys(localVarFormParams).length) {
606
- if (localVarUseFormData) {
607
- localVarRequestOptions.formData = localVarFormParams;
608
- }
609
- else {
610
- localVarRequestOptions.form = localVarFormParams;
611
- }
612
- }
613
- return new Promise((resolve, reject) => {
614
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
615
- if (error) {
616
- reject(error);
617
- }
618
- else {
619
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
620
- body = models_1.ObjectSerializer.deserialize(body, "any");
621
- resolve({ response: response, body: body });
622
- }
623
- else {
624
- reject(new apis_1.HttpError(response, body, response.statusCode));
625
- }
626
- }
627
- });
628
- });
629
- });
630
- });
631
- }
632
- fetchHelpDeskRequests(phoneNumberID, isResolved, options = { headers: {} }) {
633
- return __awaiter(this, void 0, void 0, function* () {
634
- const localVarPath = this.basePath + '/v2/merchant/helpDeskRequests/{phoneNumberID}'
635
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
636
- let localVarQueryParameters = {};
637
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
638
- const produces = ['application/json'];
639
- if (produces.indexOf('application/json') >= 0) {
640
- localVarHeaderParams.Accept = 'application/json';
641
- }
642
- else {
643
- localVarHeaderParams.Accept = produces.join(',');
644
- }
645
- let localVarFormParams = {};
646
- if (phoneNumberID === null || phoneNumberID === undefined) {
647
- throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchHelpDeskRequests.');
648
- }
649
- if (isResolved !== undefined) {
650
- localVarQueryParameters['isResolved'] = models_1.ObjectSerializer.serialize(isResolved, "boolean");
651
- }
652
- Object.assign(localVarHeaderParams, options.headers);
653
- let localVarUseFormData = false;
654
- let localVarRequestOptions = {
655
- method: 'GET',
656
- qs: localVarQueryParameters,
657
- headers: localVarHeaderParams,
658
- uri: localVarPath,
659
- useQuerystring: this._useQuerystring,
660
- json: true,
661
- };
662
- let authenticationPromise = Promise.resolve();
663
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
664
- let interceptorPromise = authenticationPromise;
665
- for (const interceptor of this.interceptors) {
666
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
667
- }
668
- return interceptorPromise.then(() => {
669
- if (Object.keys(localVarFormParams).length) {
670
- if (localVarUseFormData) {
671
- localVarRequestOptions.formData = localVarFormParams;
672
- }
673
- else {
674
- localVarRequestOptions.form = localVarFormParams;
675
- }
676
- }
677
- return new Promise((resolve, reject) => {
678
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
679
- if (error) {
680
- reject(error);
681
- }
682
- else {
683
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
684
- body = models_1.ObjectSerializer.deserialize(body, "Array<HelpDeskRequest>");
685
- resolve({ response: response, body: body });
686
- }
687
- else {
688
- reject(new apis_1.HttpError(response, body, response.statusCode));
689
- }
690
- }
691
- });
692
- });
693
- });
694
- });
695
- }
696
- fetchImportedList(listID, options = { headers: {} }) {
697
- return __awaiter(this, void 0, void 0, function* () {
698
- const localVarPath = this.basePath + '/v2/merchant/lists/imported/{listID}'
699
- .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
700
- let localVarQueryParameters = {};
701
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
702
- const produces = ['application/json'];
703
- if (produces.indexOf('application/json') >= 0) {
704
- localVarHeaderParams.Accept = 'application/json';
705
- }
706
- else {
707
- localVarHeaderParams.Accept = produces.join(',');
708
- }
709
- let localVarFormParams = {};
710
- if (listID === null || listID === undefined) {
711
- throw new Error('Required parameter listID was null or undefined when calling fetchImportedList.');
712
- }
713
- Object.assign(localVarHeaderParams, options.headers);
714
- let localVarUseFormData = false;
715
- let localVarRequestOptions = {
716
- method: 'GET',
717
- qs: localVarQueryParameters,
718
- headers: localVarHeaderParams,
719
- uri: localVarPath,
720
- useQuerystring: this._useQuerystring,
721
- json: true,
722
- };
723
- let authenticationPromise = Promise.resolve();
724
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
725
- let interceptorPromise = authenticationPromise;
726
- for (const interceptor of this.interceptors) {
727
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
728
- }
729
- return interceptorPromise.then(() => {
730
- if (Object.keys(localVarFormParams).length) {
731
- if (localVarUseFormData) {
732
- localVarRequestOptions.formData = localVarFormParams;
733
- }
734
- else {
735
- localVarRequestOptions.form = localVarFormParams;
736
- }
737
- }
738
- return new Promise((resolve, reject) => {
739
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
740
- if (error) {
741
- reject(error);
742
- }
743
- else {
744
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
745
- body = models_1.ObjectSerializer.deserialize(body, "ImportedList");
746
- resolve({ response: response, body: body });
747
- }
748
- else {
749
- reject(new apis_1.HttpError(response, body, response.statusCode));
750
- }
751
- }
752
- });
753
- });
754
- });
755
- });
756
- }
757
- fetchImportedLists(isArchiveIncluded, options = { headers: {} }) {
758
- return __awaiter(this, void 0, void 0, function* () {
759
- const localVarPath = this.basePath + '/v2/merchant/lists/imported/all';
760
- let localVarQueryParameters = {};
761
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
762
- const produces = ['application/json'];
763
- if (produces.indexOf('application/json') >= 0) {
764
- localVarHeaderParams.Accept = 'application/json';
765
- }
766
- else {
767
- localVarHeaderParams.Accept = produces.join(',');
768
- }
769
- let localVarFormParams = {};
770
- if (isArchiveIncluded !== undefined) {
771
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
772
- }
773
- Object.assign(localVarHeaderParams, options.headers);
774
- let localVarUseFormData = false;
775
- let localVarRequestOptions = {
776
- method: 'GET',
777
- qs: localVarQueryParameters,
778
- headers: localVarHeaderParams,
779
- uri: localVarPath,
780
- useQuerystring: this._useQuerystring,
781
- json: true,
782
- };
783
- let authenticationPromise = Promise.resolve();
784
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
785
- let interceptorPromise = authenticationPromise;
786
- for (const interceptor of this.interceptors) {
787
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
788
- }
789
- return interceptorPromise.then(() => {
790
- if (Object.keys(localVarFormParams).length) {
791
- if (localVarUseFormData) {
792
- localVarRequestOptions.formData = localVarFormParams;
793
- }
794
- else {
795
- localVarRequestOptions.form = localVarFormParams;
796
- }
797
- }
798
- return new Promise((resolve, reject) => {
799
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
800
- if (error) {
801
- reject(error);
802
- }
803
- else {
804
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
805
- body = models_1.ObjectSerializer.deserialize(body, "any");
806
- resolve({ response: response, body: body });
807
- }
808
- else {
809
- reject(new apis_1.HttpError(response, body, response.statusCode));
810
- }
811
- }
812
- });
813
- });
814
- });
815
- });
816
- }
817
- fetchInboundSMS(phoneNumberID, fromPhoneNumber, options = { headers: {} }) {
818
- return __awaiter(this, void 0, void 0, function* () {
819
- const localVarPath = this.basePath + '/v2/merchant/sms/inbound/{phoneNumberID}'
820
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
821
- let localVarQueryParameters = {};
822
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
823
- const produces = ['application/json'];
824
- if (produces.indexOf('application/json') >= 0) {
825
- localVarHeaderParams.Accept = 'application/json';
826
- }
827
- else {
828
- localVarHeaderParams.Accept = produces.join(',');
829
- }
830
- let localVarFormParams = {};
831
- if (phoneNumberID === null || phoneNumberID === undefined) {
832
- throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchInboundSMS.');
833
- }
834
- if (fromPhoneNumber !== undefined) {
835
- localVarQueryParameters['fromPhoneNumber'] = models_1.ObjectSerializer.serialize(fromPhoneNumber, "string");
836
- }
837
- Object.assign(localVarHeaderParams, options.headers);
838
- let localVarUseFormData = false;
839
- let localVarRequestOptions = {
840
- method: 'GET',
841
- qs: localVarQueryParameters,
842
- headers: localVarHeaderParams,
843
- uri: localVarPath,
844
- useQuerystring: this._useQuerystring,
845
- json: true,
846
- };
847
- let authenticationPromise = Promise.resolve();
848
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
849
- let interceptorPromise = authenticationPromise;
850
- for (const interceptor of this.interceptors) {
851
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
852
- }
853
- return interceptorPromise.then(() => {
854
- if (Object.keys(localVarFormParams).length) {
855
- if (localVarUseFormData) {
856
- localVarRequestOptions.formData = localVarFormParams;
857
- }
858
- else {
859
- localVarRequestOptions.form = localVarFormParams;
860
- }
861
- }
862
- return new Promise((resolve, reject) => {
863
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
864
- if (error) {
865
- reject(error);
866
- }
867
- else {
868
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
869
- body = models_1.ObjectSerializer.deserialize(body, "Array<InboundSMS>");
870
- resolve({ response: response, body: body });
871
- }
872
- else {
873
- reject(new apis_1.HttpError(response, body, response.statusCode));
874
- }
875
- }
876
- });
877
- });
878
- });
879
- });
880
- }
881
- fetchInboundSMSByPage(phoneNumberID, fromPhoneNumber, pageSize, pageNum, startDate, endDate, options = { headers: {} }) {
882
- return __awaiter(this, void 0, void 0, function* () {
883
- const localVarPath = this.basePath + '/v2/merchant/sms/inbound/page/{phoneNumberID}'
884
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
885
- let localVarQueryParameters = {};
886
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
887
- const produces = ['application/json'];
888
- if (produces.indexOf('application/json') >= 0) {
889
- localVarHeaderParams.Accept = 'application/json';
890
- }
891
- else {
892
- localVarHeaderParams.Accept = produces.join(',');
893
- }
894
- let localVarFormParams = {};
895
- if (phoneNumberID === null || phoneNumberID === undefined) {
896
- throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchInboundSMSByPage.');
897
- }
898
- if (fromPhoneNumber !== undefined) {
899
- localVarQueryParameters['fromPhoneNumber'] = models_1.ObjectSerializer.serialize(fromPhoneNumber, "string");
900
- }
901
- if (pageSize !== undefined) {
902
- localVarQueryParameters['pageSize'] = models_1.ObjectSerializer.serialize(pageSize, "number");
903
- }
904
- if (pageNum !== undefined) {
905
- localVarQueryParameters['pageNum'] = models_1.ObjectSerializer.serialize(pageNum, "number");
906
- }
907
- if (startDate !== undefined) {
908
- localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "Date");
909
- }
910
- if (endDate !== undefined) {
911
- localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "Date");
912
- }
913
- Object.assign(localVarHeaderParams, options.headers);
914
- let localVarUseFormData = false;
915
- let localVarRequestOptions = {
916
- method: 'GET',
917
- qs: localVarQueryParameters,
918
- headers: localVarHeaderParams,
919
- uri: localVarPath,
920
- useQuerystring: this._useQuerystring,
921
- json: true,
922
- };
923
- let authenticationPromise = Promise.resolve();
924
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
925
- let interceptorPromise = authenticationPromise;
926
- for (const interceptor of this.interceptors) {
927
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
928
- }
929
- return interceptorPromise.then(() => {
930
- if (Object.keys(localVarFormParams).length) {
931
- if (localVarUseFormData) {
932
- localVarRequestOptions.formData = localVarFormParams;
933
- }
934
- else {
935
- localVarRequestOptions.form = localVarFormParams;
936
- }
937
- }
938
- return new Promise((resolve, reject) => {
939
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
940
- if (error) {
941
- reject(error);
942
- }
943
- else {
944
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
945
- body = models_1.ObjectSerializer.deserialize(body, "FetchInboundSMSByPage200Response");
946
- resolve({ response: response, body: body });
947
- }
948
- else {
949
- reject(new apis_1.HttpError(response, body, response.statusCode));
950
- }
951
- }
952
- });
953
- });
954
- });
955
- });
956
- }
957
- fetchMerchantOutboundSMS(phoneNumberID, toPhoneNumber, options = { headers: {} }) {
958
- return __awaiter(this, void 0, void 0, function* () {
959
- const localVarPath = this.basePath + '/v2/merchant/sms/outbound/{phoneNumberID}'
960
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
961
- let localVarQueryParameters = {};
962
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
963
- const produces = ['application/json'];
964
- if (produces.indexOf('application/json') >= 0) {
965
- localVarHeaderParams.Accept = 'application/json';
966
- }
967
- else {
968
- localVarHeaderParams.Accept = produces.join(',');
969
- }
970
- let localVarFormParams = {};
971
- if (phoneNumberID === null || phoneNumberID === undefined) {
972
- throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchMerchantOutboundSMS.');
973
- }
974
- if (toPhoneNumber === null || toPhoneNumber === undefined) {
975
- throw new Error('Required parameter toPhoneNumber was null or undefined when calling fetchMerchantOutboundSMS.');
976
- }
977
- if (toPhoneNumber !== undefined) {
978
- localVarQueryParameters['toPhoneNumber'] = models_1.ObjectSerializer.serialize(toPhoneNumber, "string");
979
- }
980
- Object.assign(localVarHeaderParams, options.headers);
981
- let localVarUseFormData = false;
982
- let localVarRequestOptions = {
983
- method: 'GET',
984
- qs: localVarQueryParameters,
985
- headers: localVarHeaderParams,
986
- uri: localVarPath,
987
- useQuerystring: this._useQuerystring,
988
- json: true,
989
- };
990
- let authenticationPromise = Promise.resolve();
991
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
992
- let interceptorPromise = authenticationPromise;
993
- for (const interceptor of this.interceptors) {
994
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
995
- }
996
- return interceptorPromise.then(() => {
997
- if (Object.keys(localVarFormParams).length) {
998
- if (localVarUseFormData) {
999
- localVarRequestOptions.formData = localVarFormParams;
1000
- }
1001
- else {
1002
- localVarRequestOptions.form = localVarFormParams;
1003
- }
1004
- }
1005
- return new Promise((resolve, reject) => {
1006
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1007
- if (error) {
1008
- reject(error);
1009
- }
1010
- else {
1011
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1012
- body = models_1.ObjectSerializer.deserialize(body, "Array<OutboundSMS>");
1013
- resolve({ response: response, body: body });
1014
- }
1015
- else {
1016
- reject(new apis_1.HttpError(response, body, response.statusCode));
1017
- }
1018
- }
1019
- });
1020
- });
1021
- });
1022
- });
1023
- }
1024
- fetchMerchantPhoneNumbers(isArchiveIncluded, isApproved, options = { headers: {} }) {
1025
- return __awaiter(this, void 0, void 0, function* () {
1026
- const localVarPath = this.basePath + '/v2/merchant/phoneNumbers/all';
1027
- let localVarQueryParameters = {};
1028
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1029
- const produces = ['application/json'];
1030
- if (produces.indexOf('application/json') >= 0) {
1031
- localVarHeaderParams.Accept = 'application/json';
1032
- }
1033
- else {
1034
- localVarHeaderParams.Accept = produces.join(',');
1035
- }
1036
- let localVarFormParams = {};
1037
- if (isArchiveIncluded !== undefined) {
1038
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1039
- }
1040
- if (isApproved !== undefined) {
1041
- localVarQueryParameters['isApproved'] = models_1.ObjectSerializer.serialize(isApproved, "boolean");
1042
- }
1043
- Object.assign(localVarHeaderParams, options.headers);
1044
- let localVarUseFormData = false;
1045
- let localVarRequestOptions = {
1046
- method: 'GET',
1047
- qs: localVarQueryParameters,
1048
- headers: localVarHeaderParams,
1049
- uri: localVarPath,
1050
- useQuerystring: this._useQuerystring,
1051
- json: true,
1052
- };
1053
- let authenticationPromise = Promise.resolve();
1054
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1055
- let interceptorPromise = authenticationPromise;
1056
- for (const interceptor of this.interceptors) {
1057
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1058
- }
1059
- return interceptorPromise.then(() => {
1060
- if (Object.keys(localVarFormParams).length) {
1061
- if (localVarUseFormData) {
1062
- localVarRequestOptions.formData = localVarFormParams;
1063
- }
1064
- else {
1065
- localVarRequestOptions.form = localVarFormParams;
1066
- }
1067
- }
1068
- return new Promise((resolve, reject) => {
1069
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1070
- if (error) {
1071
- reject(error);
1072
- }
1073
- else {
1074
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1075
- body = models_1.ObjectSerializer.deserialize(body, "any");
1076
- resolve({ response: response, body: body });
1077
- }
1078
- else {
1079
- reject(new apis_1.HttpError(response, body, response.statusCode));
1080
- }
1081
- }
1082
- });
1083
- });
1084
- });
1085
- });
1086
- }
1087
- fetchOptInList(listID, options = { headers: {} }) {
1088
- return __awaiter(this, void 0, void 0, function* () {
1089
- const localVarPath = this.basePath + '/v2/merchant/lists/optIn/{listID}'
1090
- .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1091
- let localVarQueryParameters = {};
1092
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1093
- const produces = ['application/json'];
1094
- if (produces.indexOf('application/json') >= 0) {
1095
- localVarHeaderParams.Accept = 'application/json';
1096
- }
1097
- else {
1098
- localVarHeaderParams.Accept = produces.join(',');
1099
- }
1100
- let localVarFormParams = {};
1101
- if (listID === null || listID === undefined) {
1102
- throw new Error('Required parameter listID was null or undefined when calling fetchOptInList.');
1103
- }
1104
- Object.assign(localVarHeaderParams, options.headers);
1105
- let localVarUseFormData = false;
1106
- let localVarRequestOptions = {
1107
- method: 'GET',
1108
- qs: localVarQueryParameters,
1109
- headers: localVarHeaderParams,
1110
- uri: localVarPath,
1111
- useQuerystring: this._useQuerystring,
1112
- json: true,
1113
- };
1114
- let authenticationPromise = Promise.resolve();
1115
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1116
- let interceptorPromise = authenticationPromise;
1117
- for (const interceptor of this.interceptors) {
1118
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1119
- }
1120
- return interceptorPromise.then(() => {
1121
- if (Object.keys(localVarFormParams).length) {
1122
- if (localVarUseFormData) {
1123
- localVarRequestOptions.formData = localVarFormParams;
1124
- }
1125
- else {
1126
- localVarRequestOptions.form = localVarFormParams;
1127
- }
1128
- }
1129
- return new Promise((resolve, reject) => {
1130
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1131
- if (error) {
1132
- reject(error);
1133
- }
1134
- else {
1135
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1136
- body = models_1.ObjectSerializer.deserialize(body, "OptInList");
1137
- resolve({ response: response, body: body });
1138
- }
1139
- else {
1140
- reject(new apis_1.HttpError(response, body, response.statusCode));
1141
- }
1142
- }
1143
- });
1144
- });
1145
- });
1146
- });
1147
- }
1148
- fetchOptInLists(isArchiveIncluded, options = { headers: {} }) {
1149
- return __awaiter(this, void 0, void 0, function* () {
1150
- const localVarPath = this.basePath + '/v2/merchant/lists/optIn/all';
1151
- let localVarQueryParameters = {};
1152
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1153
- const produces = ['application/json'];
1154
- if (produces.indexOf('application/json') >= 0) {
1155
- localVarHeaderParams.Accept = 'application/json';
1156
- }
1157
- else {
1158
- localVarHeaderParams.Accept = produces.join(',');
1159
- }
1160
- let localVarFormParams = {};
1161
- if (isArchiveIncluded !== undefined) {
1162
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1163
- }
1164
- Object.assign(localVarHeaderParams, options.headers);
1165
- let localVarUseFormData = false;
1166
- let localVarRequestOptions = {
1167
- method: 'GET',
1168
- qs: localVarQueryParameters,
1169
- headers: localVarHeaderParams,
1170
- uri: localVarPath,
1171
- useQuerystring: this._useQuerystring,
1172
- json: true,
1173
- };
1174
- let authenticationPromise = Promise.resolve();
1175
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1176
- let interceptorPromise = authenticationPromise;
1177
- for (const interceptor of this.interceptors) {
1178
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1179
- }
1180
- return interceptorPromise.then(() => {
1181
- if (Object.keys(localVarFormParams).length) {
1182
- if (localVarUseFormData) {
1183
- localVarRequestOptions.formData = localVarFormParams;
1184
- }
1185
- else {
1186
- localVarRequestOptions.form = localVarFormParams;
1187
- }
1188
- }
1189
- return new Promise((resolve, reject) => {
1190
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1191
- if (error) {
1192
- reject(error);
1193
- }
1194
- else {
1195
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1196
- body = models_1.ObjectSerializer.deserialize(body, "any");
1197
- resolve({ response: response, body: body });
1198
- }
1199
- else {
1200
- reject(new apis_1.HttpError(response, body, response.statusCode));
1201
- }
1202
- }
1203
- });
1204
- });
1205
- });
1206
- });
1207
- }
1208
- fetchPhoneNumber(phoneNumberID, options = { headers: {} }) {
1209
- return __awaiter(this, void 0, void 0, function* () {
1210
- const localVarPath = this.basePath + '/v2/merchant/phoneNumber/{phoneNumberID}'
1211
- .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1212
- let localVarQueryParameters = {};
1213
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1214
- const produces = ['application/json'];
1215
- if (produces.indexOf('application/json') >= 0) {
1216
- localVarHeaderParams.Accept = 'application/json';
1217
- }
1218
- else {
1219
- localVarHeaderParams.Accept = produces.join(',');
1220
- }
1221
- let localVarFormParams = {};
1222
- if (phoneNumberID === null || phoneNumberID === undefined) {
1223
- throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchPhoneNumber.');
1224
- }
1225
- Object.assign(localVarHeaderParams, options.headers);
1226
- let localVarUseFormData = false;
1227
- let localVarRequestOptions = {
1228
- method: 'GET',
1229
- qs: localVarQueryParameters,
1230
- headers: localVarHeaderParams,
1231
- uri: localVarPath,
1232
- useQuerystring: this._useQuerystring,
1233
- json: true,
1234
- };
1235
- let authenticationPromise = Promise.resolve();
1236
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1237
- let interceptorPromise = authenticationPromise;
1238
- for (const interceptor of this.interceptors) {
1239
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1240
- }
1241
- return interceptorPromise.then(() => {
1242
- if (Object.keys(localVarFormParams).length) {
1243
- if (localVarUseFormData) {
1244
- localVarRequestOptions.formData = localVarFormParams;
1245
- }
1246
- else {
1247
- localVarRequestOptions.form = localVarFormParams;
1248
- }
1249
- }
1250
- return new Promise((resolve, reject) => {
1251
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1252
- if (error) {
1253
- reject(error);
1254
- }
1255
- else {
1256
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1257
- body = models_1.ObjectSerializer.deserialize(body, "PhoneNumber");
1258
- resolve({ response: response, body: body });
1259
- }
1260
- else {
1261
- reject(new apis_1.HttpError(response, body, response.statusCode));
1262
- }
1263
- }
1264
- });
1265
- });
1266
- });
1267
- });
1268
- }
1269
- fetchPublicEmployees(options = { headers: {} }) {
1270
- return __awaiter(this, void 0, void 0, function* () {
1271
- const localVarPath = this.basePath + '/v2/merchant/employees/public';
1272
- let localVarQueryParameters = {};
1273
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1274
- const produces = ['application/json'];
1275
- if (produces.indexOf('application/json') >= 0) {
1276
- localVarHeaderParams.Accept = 'application/json';
1277
- }
1278
- else {
1279
- localVarHeaderParams.Accept = produces.join(',');
1280
- }
1281
- let localVarFormParams = {};
1282
- Object.assign(localVarHeaderParams, options.headers);
1283
- let localVarUseFormData = false;
1284
- let localVarRequestOptions = {
1285
- method: 'GET',
1286
- qs: localVarQueryParameters,
1287
- headers: localVarHeaderParams,
1288
- uri: localVarPath,
1289
- useQuerystring: this._useQuerystring,
1290
- json: true,
1291
- };
1292
- let authenticationPromise = Promise.resolve();
1293
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1294
- let interceptorPromise = authenticationPromise;
1295
- for (const interceptor of this.interceptors) {
1296
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1297
- }
1298
- return interceptorPromise.then(() => {
1299
- if (Object.keys(localVarFormParams).length) {
1300
- if (localVarUseFormData) {
1301
- localVarRequestOptions.formData = localVarFormParams;
1302
- }
1303
- else {
1304
- localVarRequestOptions.form = localVarFormParams;
1305
- }
1306
- }
1307
- return new Promise((resolve, reject) => {
1308
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1309
- if (error) {
1310
- reject(error);
1311
- }
1312
- else {
1313
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1314
- body = models_1.ObjectSerializer.deserialize(body, "any");
1315
- resolve({ response: response, body: body });
1316
- }
1317
- else {
1318
- reject(new apis_1.HttpError(response, body, response.statusCode));
1319
- }
1320
- }
1321
- });
1322
- });
1323
- });
1324
- });
1325
- }
1326
- fetchSimpleSMSBroadcasts(isArchiveIncluded, options = { headers: {} }) {
1327
- return __awaiter(this, void 0, void 0, function* () {
1328
- const localVarPath = this.basePath + '/v2/merchant/broadcasts/simpleSMS/all';
1329
- let localVarQueryParameters = {};
1330
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1331
- const produces = ['application/json'];
1332
- if (produces.indexOf('application/json') >= 0) {
1333
- localVarHeaderParams.Accept = 'application/json';
1334
- }
1335
- else {
1336
- localVarHeaderParams.Accept = produces.join(',');
1337
- }
1338
- let localVarFormParams = {};
1339
- if (isArchiveIncluded !== undefined) {
1340
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1341
- }
1342
- Object.assign(localVarHeaderParams, options.headers);
1343
- let localVarUseFormData = false;
1344
- let localVarRequestOptions = {
1345
- method: 'GET',
1346
- qs: localVarQueryParameters,
1347
- headers: localVarHeaderParams,
1348
- uri: localVarPath,
1349
- useQuerystring: this._useQuerystring,
1350
- json: true,
1351
- };
1352
- let authenticationPromise = Promise.resolve();
1353
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1354
- let interceptorPromise = authenticationPromise;
1355
- for (const interceptor of this.interceptors) {
1356
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1357
- }
1358
- return interceptorPromise.then(() => {
1359
- if (Object.keys(localVarFormParams).length) {
1360
- if (localVarUseFormData) {
1361
- localVarRequestOptions.formData = localVarFormParams;
1362
- }
1363
- else {
1364
- localVarRequestOptions.form = localVarFormParams;
1365
- }
1366
- }
1367
- return new Promise((resolve, reject) => {
1368
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1369
- if (error) {
1370
- reject(error);
1371
- }
1372
- else {
1373
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1374
- body = models_1.ObjectSerializer.deserialize(body, "Array<SimpleSMSBroadcast>");
1375
- resolve({ response: response, body: body });
1376
- }
1377
- else {
1378
- reject(new apis_1.HttpError(response, body, response.statusCode));
1379
- }
1380
- }
1381
- });
1382
- });
1383
- });
1384
- });
1385
- }
1386
- fetchStaticVoucherCampaignBroadcasts(isArchiveIncluded, options = { headers: {} }) {
1387
- return __awaiter(this, void 0, void 0, function* () {
1388
- const localVarPath = this.basePath + '/v2/merchant/broadcasts/staticVoucherCampaign/all';
1389
- let localVarQueryParameters = {};
1390
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1391
- const produces = ['application/json'];
1392
- if (produces.indexOf('application/json') >= 0) {
1393
- localVarHeaderParams.Accept = 'application/json';
1394
- }
1395
- else {
1396
- localVarHeaderParams.Accept = produces.join(',');
1397
- }
1398
- let localVarFormParams = {};
1399
- if (isArchiveIncluded !== undefined) {
1400
- localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1401
- }
1402
- Object.assign(localVarHeaderParams, options.headers);
1403
- let localVarUseFormData = false;
1404
- let localVarRequestOptions = {
1405
- method: 'GET',
1406
- qs: localVarQueryParameters,
1407
- headers: localVarHeaderParams,
1408
- uri: localVarPath,
1409
- useQuerystring: this._useQuerystring,
1410
- json: true,
1411
- };
1412
- let authenticationPromise = Promise.resolve();
1413
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1414
- let interceptorPromise = authenticationPromise;
1415
- for (const interceptor of this.interceptors) {
1416
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1417
- }
1418
- return interceptorPromise.then(() => {
1419
- if (Object.keys(localVarFormParams).length) {
1420
- if (localVarUseFormData) {
1421
- localVarRequestOptions.formData = localVarFormParams;
1422
- }
1423
- else {
1424
- localVarRequestOptions.form = localVarFormParams;
1425
- }
1426
- }
1427
- return new Promise((resolve, reject) => {
1428
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1429
- if (error) {
1430
- reject(error);
1431
- }
1432
- else {
1433
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1434
- body = models_1.ObjectSerializer.deserialize(body, "Array<StaticVoucherCampaignBroadcast>");
1435
- resolve({ response: response, body: body });
1436
- }
1437
- else {
1438
- reject(new apis_1.HttpError(response, body, response.statusCode));
1439
- }
1440
- }
1441
- });
1442
- });
1443
- });
1444
- });
1445
- }
1446
- fetchTCPAFilter(options = { headers: {} }) {
1447
- return __awaiter(this, void 0, void 0, function* () {
1448
- const localVarPath = this.basePath + '/v2/merchant/tcpa/filter/all';
1449
- let localVarQueryParameters = {};
1450
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1451
- const produces = ['application/json'];
1452
- if (produces.indexOf('application/json') >= 0) {
1453
- localVarHeaderParams.Accept = 'application/json';
1454
- }
1455
- else {
1456
- localVarHeaderParams.Accept = produces.join(',');
1457
- }
1458
- let localVarFormParams = {};
1459
- Object.assign(localVarHeaderParams, options.headers);
1460
- let localVarUseFormData = false;
1461
- let localVarRequestOptions = {
1462
- method: 'GET',
1463
- qs: localVarQueryParameters,
1464
- headers: localVarHeaderParams,
1465
- uri: localVarPath,
1466
- useQuerystring: this._useQuerystring,
1467
- json: true,
1468
- };
1469
- let authenticationPromise = Promise.resolve();
1470
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1471
- let interceptorPromise = authenticationPromise;
1472
- for (const interceptor of this.interceptors) {
1473
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1474
- }
1475
- return interceptorPromise.then(() => {
1476
- if (Object.keys(localVarFormParams).length) {
1477
- if (localVarUseFormData) {
1478
- localVarRequestOptions.formData = localVarFormParams;
1479
- }
1480
- else {
1481
- localVarRequestOptions.form = localVarFormParams;
1482
- }
1483
- }
1484
- return new Promise((resolve, reject) => {
1485
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1486
- if (error) {
1487
- reject(error);
1488
- }
1489
- else {
1490
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1491
- body = models_1.ObjectSerializer.deserialize(body, "Array<Tcpa>");
1492
- resolve({ response: response, body: body });
1493
- }
1494
- else {
1495
- reject(new apis_1.HttpError(response, body, response.statusCode));
1496
- }
1497
- }
1498
- });
1499
- });
1500
- });
1501
- });
1502
- }
1503
- fetchWalletConfiguration(options = { headers: {} }) {
1504
- return __awaiter(this, void 0, void 0, function* () {
1505
- const localVarPath = this.basePath + '/v2/merchant/wallet/configuration';
1506
- let localVarQueryParameters = {};
1507
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1508
- const produces = ['application/json'];
1509
- if (produces.indexOf('application/json') >= 0) {
1510
- localVarHeaderParams.Accept = 'application/json';
1511
- }
1512
- else {
1513
- localVarHeaderParams.Accept = produces.join(',');
1514
- }
1515
- let localVarFormParams = {};
1516
- Object.assign(localVarHeaderParams, options.headers);
1517
- let localVarUseFormData = false;
1518
- let localVarRequestOptions = {
1519
- method: 'GET',
1520
- qs: localVarQueryParameters,
1521
- headers: localVarHeaderParams,
1522
- uri: localVarPath,
1523
- useQuerystring: this._useQuerystring,
1524
- json: true,
1525
- };
1526
- let authenticationPromise = Promise.resolve();
1527
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1528
- let interceptorPromise = authenticationPromise;
1529
- for (const interceptor of this.interceptors) {
1530
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1531
- }
1532
- return interceptorPromise.then(() => {
1533
- if (Object.keys(localVarFormParams).length) {
1534
- if (localVarUseFormData) {
1535
- localVarRequestOptions.formData = localVarFormParams;
1536
- }
1537
- else {
1538
- localVarRequestOptions.form = localVarFormParams;
1539
- }
1540
- }
1541
- return new Promise((resolve, reject) => {
1542
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1543
- if (error) {
1544
- reject(error);
1545
- }
1546
- else {
1547
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1548
- body = models_1.ObjectSerializer.deserialize(body, "any");
1549
- resolve({ response: response, body: body });
1550
- }
1551
- else {
1552
- reject(new apis_1.HttpError(response, body, response.statusCode));
1553
- }
1554
- }
1555
- });
1556
- });
1557
- });
1558
- });
1559
- }
1560
- updateMerchant(wTMerchantUpdate, options = { headers: {} }) {
1561
- return __awaiter(this, void 0, void 0, function* () {
1562
- const localVarPath = this.basePath + '/v2/merchant';
1563
- let localVarQueryParameters = {};
1564
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1565
- const produces = ['application/json'];
1566
- if (produces.indexOf('application/json') >= 0) {
1567
- localVarHeaderParams.Accept = 'application/json';
1568
- }
1569
- else {
1570
- localVarHeaderParams.Accept = produces.join(',');
1571
- }
1572
- let localVarFormParams = {};
1573
- if (wTMerchantUpdate === null || wTMerchantUpdate === undefined) {
1574
- throw new Error('Required parameter wTMerchantUpdate was null or undefined when calling updateMerchant.');
1575
- }
1576
- Object.assign(localVarHeaderParams, options.headers);
1577
- let localVarUseFormData = false;
1578
- let localVarRequestOptions = {
1579
- method: 'PUT',
1580
- qs: localVarQueryParameters,
1581
- headers: localVarHeaderParams,
1582
- uri: localVarPath,
1583
- useQuerystring: this._useQuerystring,
1584
- json: true,
1585
- body: models_1.ObjectSerializer.serialize(wTMerchantUpdate, "WTMerchantUpdate")
1586
- };
1587
- let authenticationPromise = Promise.resolve();
1588
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1589
- let interceptorPromise = authenticationPromise;
1590
- for (const interceptor of this.interceptors) {
1591
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1592
- }
1593
- return interceptorPromise.then(() => {
1594
- if (Object.keys(localVarFormParams).length) {
1595
- if (localVarUseFormData) {
1596
- localVarRequestOptions.formData = localVarFormParams;
1597
- }
1598
- else {
1599
- localVarRequestOptions.form = localVarFormParams;
1600
- }
1601
- }
1602
- return new Promise((resolve, reject) => {
1603
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1604
- if (error) {
1605
- reject(error);
1606
- }
1607
- else {
1608
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1609
- body = models_1.ObjectSerializer.deserialize(body, "any");
1610
- resolve({ response: response, body: body });
1611
- }
1612
- else {
1613
- reject(new apis_1.HttpError(response, body, response.statusCode));
1614
- }
1615
- }
1616
- });
1617
- });
1618
- });
1619
- });
1620
- }
1621
- updatePointsOfContact(wTMerchantUpdatePointsOfContact, options = { headers: {} }) {
1622
- return __awaiter(this, void 0, void 0, function* () {
1623
- const localVarPath = this.basePath + '/v2/merchant/pointsOfContact';
1624
- let localVarQueryParameters = {};
1625
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1626
- const produces = ['application/json'];
1627
- if (produces.indexOf('application/json') >= 0) {
1628
- localVarHeaderParams.Accept = 'application/json';
1629
- }
1630
- else {
1631
- localVarHeaderParams.Accept = produces.join(',');
1632
- }
1633
- let localVarFormParams = {};
1634
- if (wTMerchantUpdatePointsOfContact === null || wTMerchantUpdatePointsOfContact === undefined) {
1635
- throw new Error('Required parameter wTMerchantUpdatePointsOfContact was null or undefined when calling updatePointsOfContact.');
1636
- }
1637
- Object.assign(localVarHeaderParams, options.headers);
1638
- let localVarUseFormData = false;
1639
- let localVarRequestOptions = {
1640
- method: 'PUT',
1641
- qs: localVarQueryParameters,
1642
- headers: localVarHeaderParams,
1643
- uri: localVarPath,
1644
- useQuerystring: this._useQuerystring,
1645
- json: true,
1646
- body: models_1.ObjectSerializer.serialize(wTMerchantUpdatePointsOfContact, "WTMerchantUpdatePointsOfContact")
1647
- };
1648
- let authenticationPromise = Promise.resolve();
1649
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1650
- let interceptorPromise = authenticationPromise;
1651
- for (const interceptor of this.interceptors) {
1652
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1653
- }
1654
- return interceptorPromise.then(() => {
1655
- if (Object.keys(localVarFormParams).length) {
1656
- if (localVarUseFormData) {
1657
- localVarRequestOptions.formData = localVarFormParams;
1658
- }
1659
- else {
1660
- localVarRequestOptions.form = localVarFormParams;
1661
- }
1662
- }
1663
- return new Promise((resolve, reject) => {
1664
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1665
- if (error) {
1666
- reject(error);
1667
- }
1668
- else {
1669
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1670
- body = models_1.ObjectSerializer.deserialize(body, "any");
1671
- resolve({ response: response, body: body });
1672
- }
1673
- else {
1674
- reject(new apis_1.HttpError(response, body, response.statusCode));
1675
- }
1676
- }
1677
- });
1678
- });
1679
- });
1680
- });
1681
- }
1682
- updatePosIntegration(wTMerchantUpdatePOSIntegration, options = { headers: {} }) {
1683
- return __awaiter(this, void 0, void 0, function* () {
1684
- const localVarPath = this.basePath + '/v2/merchant/pos/integration';
1685
- let localVarQueryParameters = {};
1686
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1687
- const produces = ['application/json'];
1688
- if (produces.indexOf('application/json') >= 0) {
1689
- localVarHeaderParams.Accept = 'application/json';
1690
- }
1691
- else {
1692
- localVarHeaderParams.Accept = produces.join(',');
1693
- }
1694
- let localVarFormParams = {};
1695
- if (wTMerchantUpdatePOSIntegration === null || wTMerchantUpdatePOSIntegration === undefined) {
1696
- throw new Error('Required parameter wTMerchantUpdatePOSIntegration was null or undefined when calling updatePosIntegration.');
1697
- }
1698
- Object.assign(localVarHeaderParams, options.headers);
1699
- let localVarUseFormData = false;
1700
- let localVarRequestOptions = {
1701
- method: 'PUT',
1702
- qs: localVarQueryParameters,
1703
- headers: localVarHeaderParams,
1704
- uri: localVarPath,
1705
- useQuerystring: this._useQuerystring,
1706
- json: true,
1707
- body: models_1.ObjectSerializer.serialize(wTMerchantUpdatePOSIntegration, "WTMerchantUpdatePOSIntegration")
1708
- };
1709
- let authenticationPromise = Promise.resolve();
1710
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1711
- let interceptorPromise = authenticationPromise;
1712
- for (const interceptor of this.interceptors) {
1713
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1714
- }
1715
- return interceptorPromise.then(() => {
1716
- if (Object.keys(localVarFormParams).length) {
1717
- if (localVarUseFormData) {
1718
- localVarRequestOptions.formData = localVarFormParams;
1719
- }
1720
- else {
1721
- localVarRequestOptions.form = localVarFormParams;
1722
- }
1723
- }
1724
- return new Promise((resolve, reject) => {
1725
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1726
- if (error) {
1727
- reject(error);
1728
- }
1729
- else {
1730
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1731
- body = models_1.ObjectSerializer.deserialize(body, "any");
1732
- resolve({ response: response, body: body });
1733
- }
1734
- else {
1735
- reject(new apis_1.HttpError(response, body, response.statusCode));
1736
- }
1737
- }
1738
- });
1739
- });
1740
- });
1741
- });
1742
- }
1743
- }
1744
- exports.MerchantApi = MerchantApi;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MerchantApi = exports.MerchantApiApiKeys = void 0;
16
+ const request_1 = __importDefault(require("request"));
17
+ const models_1 = require("../model/models");
18
+ const models_2 = require("../model/models");
19
+ const apis_1 = require("./apis");
20
+ let defaultBasePath = 'https://api.wall.et';
21
+ var MerchantApiApiKeys;
22
+ (function (MerchantApiApiKeys) {
23
+ MerchantApiApiKeys[MerchantApiApiKeys["api_key"] = 0] = "api_key";
24
+ })(MerchantApiApiKeys = exports.MerchantApiApiKeys || (exports.MerchantApiApiKeys = {}));
25
+ class MerchantApi {
26
+ constructor(basePathOrUsername, password, basePath) {
27
+ this._basePath = defaultBasePath;
28
+ this._defaultHeaders = {};
29
+ this._useQuerystring = false;
30
+ this.authentications = {
31
+ 'default': new models_1.VoidAuth(),
32
+ 'api_key': new models_2.ApiKeyAuth('header', 'access-token'),
33
+ };
34
+ this.interceptors = [];
35
+ if (password) {
36
+ if (basePath) {
37
+ this.basePath = basePath;
38
+ }
39
+ }
40
+ else {
41
+ if (basePathOrUsername) {
42
+ this.basePath = basePathOrUsername;
43
+ }
44
+ }
45
+ }
46
+ set useQuerystring(value) {
47
+ this._useQuerystring = value;
48
+ }
49
+ set basePath(basePath) {
50
+ this._basePath = basePath;
51
+ }
52
+ set defaultHeaders(defaultHeaders) {
53
+ this._defaultHeaders = defaultHeaders;
54
+ }
55
+ get defaultHeaders() {
56
+ return this._defaultHeaders;
57
+ }
58
+ get basePath() {
59
+ return this._basePath;
60
+ }
61
+ setDefaultAuthentication(auth) {
62
+ this.authentications.default = auth;
63
+ }
64
+ setApiKey(key, value) {
65
+ this.authentications[MerchantApiApiKeys[key]].apiKey = value;
66
+ }
67
+ addInterceptor(interceptor) {
68
+ this.interceptors.push(interceptor);
69
+ }
70
+ archiveMerchantProfile(options = { headers: {} }) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const localVarPath = this.basePath + '/v2/merchant/delete';
73
+ let localVarQueryParameters = {};
74
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
75
+ const produces = ['application/json'];
76
+ if (produces.indexOf('application/json') >= 0) {
77
+ localVarHeaderParams.Accept = 'application/json';
78
+ }
79
+ else {
80
+ localVarHeaderParams.Accept = produces.join(',');
81
+ }
82
+ let localVarFormParams = {};
83
+ Object.assign(localVarHeaderParams, options.headers);
84
+ let localVarUseFormData = false;
85
+ let localVarRequestOptions = {
86
+ method: 'DELETE',
87
+ qs: localVarQueryParameters,
88
+ headers: localVarHeaderParams,
89
+ uri: localVarPath,
90
+ useQuerystring: this._useQuerystring,
91
+ json: true,
92
+ };
93
+ let authenticationPromise = Promise.resolve();
94
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
95
+ let interceptorPromise = authenticationPromise;
96
+ for (const interceptor of this.interceptors) {
97
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
98
+ }
99
+ return interceptorPromise.then(() => {
100
+ if (Object.keys(localVarFormParams).length) {
101
+ if (localVarUseFormData) {
102
+ localVarRequestOptions.formData = localVarFormParams;
103
+ }
104
+ else {
105
+ localVarRequestOptions.form = localVarFormParams;
106
+ }
107
+ }
108
+ return new Promise((resolve, reject) => {
109
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
110
+ if (error) {
111
+ reject(error);
112
+ }
113
+ else {
114
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
115
+ body = models_1.ObjectSerializer.deserialize(body, "any");
116
+ resolve({ response: response, body: body });
117
+ }
118
+ else {
119
+ reject(new apis_1.HttpError(response, body, response.statusCode));
120
+ }
121
+ }
122
+ });
123
+ });
124
+ });
125
+ });
126
+ }
127
+ fetchCustomRoles(options = { headers: {} }) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const localVarPath = this.basePath + '/v2/merchant/roles/custom';
130
+ let localVarQueryParameters = {};
131
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
132
+ const produces = ['application/json'];
133
+ if (produces.indexOf('application/json') >= 0) {
134
+ localVarHeaderParams.Accept = 'application/json';
135
+ }
136
+ else {
137
+ localVarHeaderParams.Accept = produces.join(',');
138
+ }
139
+ let localVarFormParams = {};
140
+ Object.assign(localVarHeaderParams, options.headers);
141
+ let localVarUseFormData = false;
142
+ let localVarRequestOptions = {
143
+ method: 'GET',
144
+ qs: localVarQueryParameters,
145
+ headers: localVarHeaderParams,
146
+ uri: localVarPath,
147
+ useQuerystring: this._useQuerystring,
148
+ json: true,
149
+ };
150
+ let authenticationPromise = Promise.resolve();
151
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
152
+ let interceptorPromise = authenticationPromise;
153
+ for (const interceptor of this.interceptors) {
154
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
155
+ }
156
+ return interceptorPromise.then(() => {
157
+ if (Object.keys(localVarFormParams).length) {
158
+ if (localVarUseFormData) {
159
+ localVarRequestOptions.formData = localVarFormParams;
160
+ }
161
+ else {
162
+ localVarRequestOptions.form = localVarFormParams;
163
+ }
164
+ }
165
+ return new Promise((resolve, reject) => {
166
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
167
+ if (error) {
168
+ reject(error);
169
+ }
170
+ else {
171
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
172
+ body = models_1.ObjectSerializer.deserialize(body, "any");
173
+ resolve({ response: response, body: body });
174
+ }
175
+ else {
176
+ reject(new apis_1.HttpError(response, body, response.statusCode));
177
+ }
178
+ }
179
+ });
180
+ });
181
+ });
182
+ });
183
+ }
184
+ fetchEmployees(options = { headers: {} }) {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ const localVarPath = this.basePath + '/v2/merchant/employees/all';
187
+ let localVarQueryParameters = {};
188
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
189
+ const produces = ['application/json'];
190
+ if (produces.indexOf('application/json') >= 0) {
191
+ localVarHeaderParams.Accept = 'application/json';
192
+ }
193
+ else {
194
+ localVarHeaderParams.Accept = produces.join(',');
195
+ }
196
+ let localVarFormParams = {};
197
+ Object.assign(localVarHeaderParams, options.headers);
198
+ let localVarUseFormData = false;
199
+ let localVarRequestOptions = {
200
+ method: 'GET',
201
+ qs: localVarQueryParameters,
202
+ headers: localVarHeaderParams,
203
+ uri: localVarPath,
204
+ useQuerystring: this._useQuerystring,
205
+ json: true,
206
+ };
207
+ let authenticationPromise = Promise.resolve();
208
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
209
+ let interceptorPromise = authenticationPromise;
210
+ for (const interceptor of this.interceptors) {
211
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
212
+ }
213
+ return interceptorPromise.then(() => {
214
+ if (Object.keys(localVarFormParams).length) {
215
+ if (localVarUseFormData) {
216
+ localVarRequestOptions.formData = localVarFormParams;
217
+ }
218
+ else {
219
+ localVarRequestOptions.form = localVarFormParams;
220
+ }
221
+ }
222
+ return new Promise((resolve, reject) => {
223
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
224
+ if (error) {
225
+ reject(error);
226
+ }
227
+ else {
228
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
229
+ body = models_1.ObjectSerializer.deserialize(body, "any");
230
+ resolve({ response: response, body: body });
231
+ }
232
+ else {
233
+ reject(new apis_1.HttpError(response, body, response.statusCode));
234
+ }
235
+ }
236
+ });
237
+ });
238
+ });
239
+ });
240
+ }
241
+ fetchPublicEmployees(options = { headers: {} }) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ const localVarPath = this.basePath + '/v2/merchant/employees/public';
244
+ let localVarQueryParameters = {};
245
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
246
+ const produces = ['application/json'];
247
+ if (produces.indexOf('application/json') >= 0) {
248
+ localVarHeaderParams.Accept = 'application/json';
249
+ }
250
+ else {
251
+ localVarHeaderParams.Accept = produces.join(',');
252
+ }
253
+ let localVarFormParams = {};
254
+ Object.assign(localVarHeaderParams, options.headers);
255
+ let localVarUseFormData = false;
256
+ let localVarRequestOptions = {
257
+ method: 'GET',
258
+ qs: localVarQueryParameters,
259
+ headers: localVarHeaderParams,
260
+ uri: localVarPath,
261
+ useQuerystring: this._useQuerystring,
262
+ json: true,
263
+ };
264
+ let authenticationPromise = Promise.resolve();
265
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
266
+ let interceptorPromise = authenticationPromise;
267
+ for (const interceptor of this.interceptors) {
268
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
269
+ }
270
+ return interceptorPromise.then(() => {
271
+ if (Object.keys(localVarFormParams).length) {
272
+ if (localVarUseFormData) {
273
+ localVarRequestOptions.formData = localVarFormParams;
274
+ }
275
+ else {
276
+ localVarRequestOptions.form = localVarFormParams;
277
+ }
278
+ }
279
+ return new Promise((resolve, reject) => {
280
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
281
+ if (error) {
282
+ reject(error);
283
+ }
284
+ else {
285
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
286
+ body = models_1.ObjectSerializer.deserialize(body, "any");
287
+ resolve({ response: response, body: body });
288
+ }
289
+ else {
290
+ reject(new apis_1.HttpError(response, body, response.statusCode));
291
+ }
292
+ }
293
+ });
294
+ });
295
+ });
296
+ });
297
+ }
298
+ fetchWalletConfiguration(options = { headers: {} }) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ const localVarPath = this.basePath + '/v2/merchant/wallet/configuration';
301
+ let localVarQueryParameters = {};
302
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
303
+ const produces = ['application/json'];
304
+ if (produces.indexOf('application/json') >= 0) {
305
+ localVarHeaderParams.Accept = 'application/json';
306
+ }
307
+ else {
308
+ localVarHeaderParams.Accept = produces.join(',');
309
+ }
310
+ let localVarFormParams = {};
311
+ Object.assign(localVarHeaderParams, options.headers);
312
+ let localVarUseFormData = false;
313
+ let localVarRequestOptions = {
314
+ method: 'GET',
315
+ qs: localVarQueryParameters,
316
+ headers: localVarHeaderParams,
317
+ uri: localVarPath,
318
+ useQuerystring: this._useQuerystring,
319
+ json: true,
320
+ };
321
+ let authenticationPromise = Promise.resolve();
322
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
323
+ let interceptorPromise = authenticationPromise;
324
+ for (const interceptor of this.interceptors) {
325
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
326
+ }
327
+ return interceptorPromise.then(() => {
328
+ if (Object.keys(localVarFormParams).length) {
329
+ if (localVarUseFormData) {
330
+ localVarRequestOptions.formData = localVarFormParams;
331
+ }
332
+ else {
333
+ localVarRequestOptions.form = localVarFormParams;
334
+ }
335
+ }
336
+ return new Promise((resolve, reject) => {
337
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
338
+ if (error) {
339
+ reject(error);
340
+ }
341
+ else {
342
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
343
+ body = models_1.ObjectSerializer.deserialize(body, "any");
344
+ resolve({ response: response, body: body });
345
+ }
346
+ else {
347
+ reject(new apis_1.HttpError(response, body, response.statusCode));
348
+ }
349
+ }
350
+ });
351
+ });
352
+ });
353
+ });
354
+ }
355
+ updateMerchant(wTMerchantUpdate, options = { headers: {} }) {
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ const localVarPath = this.basePath + '/v2/merchant';
358
+ let localVarQueryParameters = {};
359
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
360
+ const produces = ['application/json'];
361
+ if (produces.indexOf('application/json') >= 0) {
362
+ localVarHeaderParams.Accept = 'application/json';
363
+ }
364
+ else {
365
+ localVarHeaderParams.Accept = produces.join(',');
366
+ }
367
+ let localVarFormParams = {};
368
+ if (wTMerchantUpdate === null || wTMerchantUpdate === undefined) {
369
+ throw new Error('Required parameter wTMerchantUpdate was null or undefined when calling updateMerchant.');
370
+ }
371
+ Object.assign(localVarHeaderParams, options.headers);
372
+ let localVarUseFormData = false;
373
+ let localVarRequestOptions = {
374
+ method: 'PUT',
375
+ qs: localVarQueryParameters,
376
+ headers: localVarHeaderParams,
377
+ uri: localVarPath,
378
+ useQuerystring: this._useQuerystring,
379
+ json: true,
380
+ body: models_1.ObjectSerializer.serialize(wTMerchantUpdate, "WTMerchantUpdate")
381
+ };
382
+ let authenticationPromise = Promise.resolve();
383
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
384
+ let interceptorPromise = authenticationPromise;
385
+ for (const interceptor of this.interceptors) {
386
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
387
+ }
388
+ return interceptorPromise.then(() => {
389
+ if (Object.keys(localVarFormParams).length) {
390
+ if (localVarUseFormData) {
391
+ localVarRequestOptions.formData = localVarFormParams;
392
+ }
393
+ else {
394
+ localVarRequestOptions.form = localVarFormParams;
395
+ }
396
+ }
397
+ return new Promise((resolve, reject) => {
398
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
399
+ if (error) {
400
+ reject(error);
401
+ }
402
+ else {
403
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
404
+ body = models_1.ObjectSerializer.deserialize(body, "any");
405
+ resolve({ response: response, body: body });
406
+ }
407
+ else {
408
+ reject(new apis_1.HttpError(response, body, response.statusCode));
409
+ }
410
+ }
411
+ });
412
+ });
413
+ });
414
+ });
415
+ }
416
+ updatePointsOfContact(wTMerchantUpdatePointsOfContact, options = { headers: {} }) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ const localVarPath = this.basePath + '/v2/merchant/pointsOfContact';
419
+ let localVarQueryParameters = {};
420
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
421
+ const produces = ['application/json'];
422
+ if (produces.indexOf('application/json') >= 0) {
423
+ localVarHeaderParams.Accept = 'application/json';
424
+ }
425
+ else {
426
+ localVarHeaderParams.Accept = produces.join(',');
427
+ }
428
+ let localVarFormParams = {};
429
+ if (wTMerchantUpdatePointsOfContact === null || wTMerchantUpdatePointsOfContact === undefined) {
430
+ throw new Error('Required parameter wTMerchantUpdatePointsOfContact was null or undefined when calling updatePointsOfContact.');
431
+ }
432
+ Object.assign(localVarHeaderParams, options.headers);
433
+ let localVarUseFormData = false;
434
+ let localVarRequestOptions = {
435
+ method: 'PUT',
436
+ qs: localVarQueryParameters,
437
+ headers: localVarHeaderParams,
438
+ uri: localVarPath,
439
+ useQuerystring: this._useQuerystring,
440
+ json: true,
441
+ body: models_1.ObjectSerializer.serialize(wTMerchantUpdatePointsOfContact, "WTMerchantUpdatePointsOfContact")
442
+ };
443
+ let authenticationPromise = Promise.resolve();
444
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
445
+ let interceptorPromise = authenticationPromise;
446
+ for (const interceptor of this.interceptors) {
447
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
448
+ }
449
+ return interceptorPromise.then(() => {
450
+ if (Object.keys(localVarFormParams).length) {
451
+ if (localVarUseFormData) {
452
+ localVarRequestOptions.formData = localVarFormParams;
453
+ }
454
+ else {
455
+ localVarRequestOptions.form = localVarFormParams;
456
+ }
457
+ }
458
+ return new Promise((resolve, reject) => {
459
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
460
+ if (error) {
461
+ reject(error);
462
+ }
463
+ else {
464
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
465
+ body = models_1.ObjectSerializer.deserialize(body, "any");
466
+ resolve({ response: response, body: body });
467
+ }
468
+ else {
469
+ reject(new apis_1.HttpError(response, body, response.statusCode));
470
+ }
471
+ }
472
+ });
473
+ });
474
+ });
475
+ });
476
+ }
477
+ updatePosIntegration(wTMerchantUpdatePOSIntegration, options = { headers: {} }) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ const localVarPath = this.basePath + '/v2/merchant/pos/integration';
480
+ let localVarQueryParameters = {};
481
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
482
+ const produces = ['application/json'];
483
+ if (produces.indexOf('application/json') >= 0) {
484
+ localVarHeaderParams.Accept = 'application/json';
485
+ }
486
+ else {
487
+ localVarHeaderParams.Accept = produces.join(',');
488
+ }
489
+ let localVarFormParams = {};
490
+ if (wTMerchantUpdatePOSIntegration === null || wTMerchantUpdatePOSIntegration === undefined) {
491
+ throw new Error('Required parameter wTMerchantUpdatePOSIntegration was null or undefined when calling updatePosIntegration.');
492
+ }
493
+ Object.assign(localVarHeaderParams, options.headers);
494
+ let localVarUseFormData = false;
495
+ let localVarRequestOptions = {
496
+ method: 'PUT',
497
+ qs: localVarQueryParameters,
498
+ headers: localVarHeaderParams,
499
+ uri: localVarPath,
500
+ useQuerystring: this._useQuerystring,
501
+ json: true,
502
+ body: models_1.ObjectSerializer.serialize(wTMerchantUpdatePOSIntegration, "WTMerchantUpdatePOSIntegration")
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, "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
+ }
538
+ }
539
+ exports.MerchantApi = MerchantApi;
1745
540
  //# sourceMappingURL=merchantApi.js.map