wallet 1.1.4 → 2.1.503

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 (1343) hide show
  1. package/.openapi-generator/FILES +18 -3
  2. package/README.md +265 -39
  3. package/api/advertisementCreditsApi.ts +15 -15
  4. package/api/analyticsApi.ts +66 -66
  5. package/api/apis.ts +3 -1
  6. package/api/appleWalletSubscribersApi.ts +3 -3
  7. package/api/billingApi.ts +10 -10
  8. package/api/clubMembersPointsApi.ts +24 -25
  9. package/api/configurationApi.ts +10 -10
  10. package/api/countriesApi.ts +5 -5
  11. package/api/customerApi.ts +10 -10
  12. package/api/dashboardApi.ts +19 -19
  13. package/api/dynamicVouchersApi.ts +8 -8
  14. package/api/employeeAPIKeysApi.ts +448 -0
  15. package/api/employeeAccessApi.ts +8 -8
  16. package/api/employeesApi.ts +43 -42
  17. package/api/industriesApi.ts +1 -1
  18. package/api/infoGenesisReportsApi.ts +28 -28
  19. package/api/integratedTerminalsApi.ts +6 -6
  20. package/api/interactionsApi.ts +157 -18
  21. package/api/linkBookApi.ts +6 -6
  22. package/api/linkBookSectionApi.ts +6 -6
  23. package/api/loginAndLogoutApi.ts +11 -11
  24. package/api/membershipTiersApi.ts +23 -24
  25. package/api/merchantApi.ts +344 -22
  26. package/api/merchantCreditsApi.ts +24 -25
  27. package/api/merchantURLsApi.ts +8 -8
  28. package/api/mobileTerminalApi.ts +6 -19
  29. package/api/newsApi.ts +6 -6
  30. package/api/paymentDesignsApi.ts +7 -7
  31. package/api/performancesApi.ts +6 -6
  32. package/api/promoCodesApi.ts +6 -6
  33. package/api/sMSApi.ts +948 -123
  34. package/api/settingsApi.ts +3 -3
  35. package/api/staticVoucherCampaignGroupsApi.ts +2 -2
  36. package/api/staticVoucherCampaignsApi.ts +20 -20
  37. package/api/staticVouchersApi.ts +7 -7
  38. package/api/systemApi.ts +21 -21
  39. package/api/transactionLedgerApi.ts +2 -2
  40. package/api/utilitiesApi.ts +2 -2
  41. package/api/webTerminalApi.ts +4 -4
  42. package/dist/api/advertisementCreditsApi.d.ts +86 -0
  43. package/dist/api/advertisementCreditsApi.js +502 -0
  44. package/dist/api/advertisementCreditsApi.js.map +1 -0
  45. package/dist/api/analyticsApi.d.ts +547 -0
  46. package/dist/api/analyticsApi.js +4873 -0
  47. package/dist/api/analyticsApi.js.map +1 -0
  48. package/dist/api/apis.d.ts +86 -0
  49. package/dist/api/apis.js +101 -0
  50. package/dist/api/apis.js.map +1 -0
  51. package/dist/api/appleWalletSubscribersApi.d.ts +42 -0
  52. package/dist/api/appleWalletSubscribersApi.js +196 -0
  53. package/dist/api/appleWalletSubscribersApi.js.map +1 -0
  54. package/dist/api/billingApi.d.ts +102 -0
  55. package/dist/api/billingApi.js +599 -0
  56. package/dist/api/billingApi.js.map +1 -0
  57. package/dist/api/clubMembersPointsApi.d.ts +116 -0
  58. package/dist/api/clubMembersPointsApi.js +682 -0
  59. package/dist/api/clubMembersPointsApi.js.map +1 -0
  60. package/dist/api/configurationApi.d.ts +43 -0
  61. package/dist/api/configurationApi.js +190 -0
  62. package/dist/api/configurationApi.js.map +1 -0
  63. package/dist/api/countriesApi.d.ts +35 -0
  64. package/dist/api/countriesApi.js +129 -0
  65. package/dist/api/countriesApi.js.map +1 -0
  66. package/dist/api/customerApi.d.ts +102 -0
  67. package/dist/api/customerApi.js +633 -0
  68. package/dist/api/customerApi.js.map +1 -0
  69. package/dist/api/dashboardApi.d.ts +173 -0
  70. package/dist/api/dashboardApi.js +1302 -0
  71. package/dist/api/dashboardApi.js.map +1 -0
  72. package/dist/api/dynamicVouchersApi.d.ts +87 -0
  73. package/dist/api/dynamicVouchersApi.js +510 -0
  74. package/dist/api/dynamicVouchersApi.js.map +1 -0
  75. package/dist/api/employeeAPIKeysApi.d.ts +70 -0
  76. package/dist/api/employeeAPIKeysApi.js +380 -0
  77. package/dist/api/employeeAPIKeysApi.js.map +1 -0
  78. package/dist/api/employeeAccessApi.d.ts +36 -0
  79. package/dist/api/employeeAccessApi.js +133 -0
  80. package/dist/api/employeeAccessApi.js.map +1 -0
  81. package/dist/api/employeesApi.d.ts +391 -0
  82. package/dist/api/employeesApi.js +2558 -0
  83. package/dist/api/employeesApi.js.map +1 -0
  84. package/dist/api/industriesApi.d.ts +35 -0
  85. package/dist/api/industriesApi.js +129 -0
  86. package/dist/api/industriesApi.js.map +1 -0
  87. package/dist/api/infoGenesisReportsApi.d.ts +269 -0
  88. package/dist/api/infoGenesisReportsApi.js +1743 -0
  89. package/dist/api/infoGenesisReportsApi.js.map +1 -0
  90. package/dist/api/integratedTerminalsApi.d.ts +69 -0
  91. package/dist/api/integratedTerminalsApi.js +380 -0
  92. package/dist/api/integratedTerminalsApi.js.map +1 -0
  93. package/dist/api/interactionsApi.d.ts +114 -0
  94. package/dist/api/interactionsApi.js +698 -0
  95. package/dist/api/interactionsApi.js.map +1 -0
  96. package/dist/api/linkBookApi.d.ts +69 -0
  97. package/dist/api/linkBookApi.js +380 -0
  98. package/dist/api/linkBookApi.js.map +1 -0
  99. package/dist/api/linkBookSectionApi.d.ts +69 -0
  100. package/dist/api/linkBookSectionApi.js +380 -0
  101. package/dist/api/linkBookSectionApi.js.map +1 -0
  102. package/dist/api/loginAndLogoutApi.d.ts +52 -0
  103. package/dist/api/loginAndLogoutApi.js +251 -0
  104. package/dist/api/loginAndLogoutApi.js.map +1 -0
  105. package/dist/api/membershipTiersApi.d.ts +105 -0
  106. package/dist/api/membershipTiersApi.js +623 -0
  107. package/dist/api/membershipTiersApi.js.map +1 -0
  108. package/dist/api/merchantApi.d.ts +235 -0
  109. package/dist/api/merchantApi.js +1616 -0
  110. package/dist/api/merchantApi.js.map +1 -0
  111. package/dist/api/merchantCreditsApi.d.ts +116 -0
  112. package/dist/api/merchantCreditsApi.js +682 -0
  113. package/dist/api/merchantCreditsApi.js.map +1 -0
  114. package/dist/api/merchantURLsApi.d.ts +86 -0
  115. package/dist/api/merchantURLsApi.js +502 -0
  116. package/dist/api/merchantURLsApi.js.map +1 -0
  117. package/dist/api/mobileTerminalApi.d.ts +52 -0
  118. package/dist/api/mobileTerminalApi.js +259 -0
  119. package/dist/api/mobileTerminalApi.js.map +1 -0
  120. package/dist/api/newsApi.d.ts +69 -0
  121. package/dist/api/newsApi.js +380 -0
  122. package/dist/api/newsApi.js.map +1 -0
  123. package/dist/api/paymentDesignsApi.d.ts +77 -0
  124. package/dist/api/paymentDesignsApi.js +441 -0
  125. package/dist/api/paymentDesignsApi.js.map +1 -0
  126. package/dist/api/performancesApi.d.ts +69 -0
  127. package/dist/api/performancesApi.js +380 -0
  128. package/dist/api/performancesApi.js.map +1 -0
  129. package/dist/api/promoCodesApi.d.ts +69 -0
  130. package/dist/api/promoCodesApi.js +380 -0
  131. package/dist/api/promoCodesApi.js.map +1 -0
  132. package/dist/api/sMSApi.d.ts +340 -0
  133. package/dist/api/sMSApi.js +2399 -0
  134. package/dist/api/sMSApi.js.map +1 -0
  135. package/dist/api/settingsApi.d.ts +44 -0
  136. package/dist/api/settingsApi.js +186 -0
  137. package/dist/api/settingsApi.js.map +1 -0
  138. package/dist/api/staticVoucherCampaignGroupsApi.d.ts +34 -0
  139. package/dist/api/staticVoucherCampaignGroupsApi.js +133 -0
  140. package/dist/api/staticVoucherCampaignGroupsApi.js.map +1 -0
  141. package/dist/api/staticVoucherCampaignsApi.d.ts +193 -0
  142. package/dist/api/staticVoucherCampaignsApi.js +1269 -0
  143. package/dist/api/staticVoucherCampaignsApi.js.map +1 -0
  144. package/dist/api/staticVouchersApi.d.ts +78 -0
  145. package/dist/api/staticVouchersApi.js +450 -0
  146. package/dist/api/staticVouchersApi.js.map +1 -0
  147. package/dist/api/systemApi.d.ts +89 -0
  148. package/dist/api/systemApi.js +511 -0
  149. package/dist/api/systemApi.js.map +1 -0
  150. package/dist/api/transactionLedgerApi.d.ts +36 -0
  151. package/dist/api/transactionLedgerApi.js +156 -0
  152. package/dist/api/transactionLedgerApi.js.map +1 -0
  153. package/dist/api/utilitiesApi.d.ts +35 -0
  154. package/dist/api/utilitiesApi.js +129 -0
  155. package/dist/api/utilitiesApi.js.map +1 -0
  156. package/dist/api/webTerminalApi.d.ts +51 -0
  157. package/dist/api/webTerminalApi.js +259 -0
  158. package/dist/api/webTerminalApi.js.map +1 -0
  159. package/dist/api.d.ts +2 -0
  160. package/dist/api.js +15 -0
  161. package/dist/api.js.map +1 -0
  162. package/dist/examples/advertisementcredits.example.d.ts +1 -0
  163. package/dist/examples/advertisementcredits.example.js +77 -0
  164. package/dist/examples/advertisementcredits.example.js.map +1 -0
  165. package/dist/examples/clubmembers.example.d.ts +1 -0
  166. package/dist/examples/clubmembers.example.js +71 -0
  167. package/dist/examples/clubmembers.example.js.map +1 -0
  168. package/dist/examples/constants.d.ts +6 -0
  169. package/dist/examples/constants.js +10 -0
  170. package/dist/examples/constants.js.map +1 -0
  171. package/dist/examples/linkbook.example.d.ts +1 -0
  172. package/dist/examples/linkbook.example.js +70 -0
  173. package/dist/examples/linkbook.example.js.map +1 -0
  174. package/dist/examples/membershiptiers.example.d.ts +1 -0
  175. package/dist/examples/membershiptiers.example.js +70 -0
  176. package/dist/examples/membershiptiers.example.js.map +1 -0
  177. package/dist/examples/merchantcredits.example.d.ts +1 -0
  178. package/dist/examples/merchantcredits.example.js +68 -0
  179. package/dist/examples/merchantcredits.example.js.map +1 -0
  180. package/dist/examples/merchanturls.example.d.ts +1 -0
  181. package/dist/examples/merchanturls.example.js +67 -0
  182. package/dist/examples/merchanturls.example.js.map +1 -0
  183. package/dist/examples/news.example.d.ts +1 -0
  184. package/dist/examples/news.example.js +70 -0
  185. package/dist/examples/news.example.js.map +1 -0
  186. package/dist/examples/paymentdesigns.example.d.ts +1 -0
  187. package/dist/examples/paymentdesigns.example.js +76 -0
  188. package/dist/examples/paymentdesigns.example.js.map +1 -0
  189. package/dist/examples/performances.example.d.ts +1 -0
  190. package/dist/examples/performances.example.js +72 -0
  191. package/dist/examples/performances.example.js.map +1 -0
  192. package/dist/examples/promocodes.example.d.ts +1 -0
  193. package/dist/examples/promocodes.example.js +72 -0
  194. package/dist/examples/promocodes.example.js.map +1 -0
  195. package/dist/model/advertisementCredit.d.ts +26 -0
  196. package/dist/model/advertisementCredit.js +78 -0
  197. package/dist/model/advertisementCredit.js.map +1 -0
  198. package/dist/model/advertisementCreditBroadcast.d.ts +37 -0
  199. package/dist/model/advertisementCreditBroadcast.js +118 -0
  200. package/dist/model/advertisementCreditBroadcast.js.map +1 -0
  201. package/dist/model/advertisementCreditScan.d.ts +37 -0
  202. package/dist/model/advertisementCreditScan.js +128 -0
  203. package/dist/model/advertisementCreditScan.js.map +1 -0
  204. package/dist/model/agreement.d.ts +31 -0
  205. package/dist/model/agreement.js +103 -0
  206. package/dist/model/agreement.js.map +1 -0
  207. package/dist/model/alert.d.ts +22 -0
  208. package/dist/model/alert.js +58 -0
  209. package/dist/model/alert.js.map +1 -0
  210. package/dist/model/announcement.d.ts +20 -0
  211. package/dist/model/announcement.js +48 -0
  212. package/dist/model/announcement.js.map +1 -0
  213. package/dist/model/applicableTerminals.d.ts +13 -0
  214. package/dist/model/applicableTerminals.js +12 -0
  215. package/dist/model/applicableTerminals.js.map +1 -0
  216. package/dist/model/applicableTerminalsAnyOf.d.ts +3 -0
  217. package/dist/model/applicableTerminalsAnyOf.js +8 -0
  218. package/dist/model/applicableTerminalsAnyOf.js.map +1 -0
  219. package/dist/model/applicableTerminalsAnyOf1.d.ts +3 -0
  220. package/dist/model/applicableTerminalsAnyOf1.js +8 -0
  221. package/dist/model/applicableTerminalsAnyOf1.js.map +1 -0
  222. package/dist/model/applicableTerminalsAnyOf2.d.ts +3 -0
  223. package/dist/model/applicableTerminalsAnyOf2.js +8 -0
  224. package/dist/model/applicableTerminalsAnyOf2.js.map +1 -0
  225. package/dist/model/applicableTerminalsAnyOf3.d.ts +3 -0
  226. package/dist/model/applicableTerminalsAnyOf3.js +8 -0
  227. package/dist/model/applicableTerminalsAnyOf3.js.map +1 -0
  228. package/dist/model/authError.d.ts +18 -0
  229. package/dist/model/authError.js +38 -0
  230. package/dist/model/authError.js.map +1 -0
  231. package/dist/model/availablePhoneNumbersRequest.d.ts +15 -0
  232. package/dist/model/availablePhoneNumbersRequest.js +23 -0
  233. package/dist/model/availablePhoneNumbersRequest.js.map +1 -0
  234. package/dist/model/clickFunnelAmount.d.ts +15 -0
  235. package/dist/model/clickFunnelAmount.js +23 -0
  236. package/dist/model/clickFunnelAmount.js.map +1 -0
  237. package/dist/model/clickFunnelContact.d.ts +51 -0
  238. package/dist/model/clickFunnelContact.js +198 -0
  239. package/dist/model/clickFunnelContact.js.map +1 -0
  240. package/dist/model/clickFunnelContactProfile.d.ts +48 -0
  241. package/dist/model/clickFunnelContactProfile.js +188 -0
  242. package/dist/model/clickFunnelContactProfile.js.map +1 -0
  243. package/dist/model/clickFunnelEvent.d.ts +16 -0
  244. package/dist/model/clickFunnelEvent.js +23 -0
  245. package/dist/model/clickFunnelEvent.js.map +1 -0
  246. package/dist/model/clickFunnelOriginalAmount.d.ts +15 -0
  247. package/dist/model/clickFunnelOriginalAmount.js +23 -0
  248. package/dist/model/clickFunnelOriginalAmount.js.map +1 -0
  249. package/dist/model/clickFunnelProduct.d.ts +42 -0
  250. package/dist/model/clickFunnelProduct.js +153 -0
  251. package/dist/model/clickFunnelProduct.js.map +1 -0
  252. package/dist/model/clickFunnelPurchase.d.ts +41 -0
  253. package/dist/model/clickFunnelPurchase.js +138 -0
  254. package/dist/model/clickFunnelPurchase.js.map +1 -0
  255. package/dist/model/createStaticVoucherCampaign.d.ts +27 -0
  256. package/dist/model/createStaticVoucherCampaign.js +83 -0
  257. package/dist/model/createStaticVoucherCampaign.js.map +1 -0
  258. package/dist/model/createStaticVoucherCampaignWithVoucher.d.ts +27 -0
  259. package/dist/model/createStaticVoucherCampaignWithVoucher.js +83 -0
  260. package/dist/model/createStaticVoucherCampaignWithVoucher.js.map +1 -0
  261. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.d.ts +27 -0
  262. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js +83 -0
  263. package/dist/model/createStaticVoucherCampaignWithVoucherWithCSV.js.map +1 -0
  264. package/dist/model/dashboardWidget.d.ts +28 -0
  265. package/dist/model/dashboardWidget.js +88 -0
  266. package/dist/model/dashboardWidget.js.map +1 -0
  267. package/dist/model/duplicateRowFound.d.ts +18 -0
  268. package/dist/model/duplicateRowFound.js +38 -0
  269. package/dist/model/duplicateRowFound.js.map +1 -0
  270. package/dist/model/dynamicVoucher.d.ts +47 -0
  271. package/dist/model/dynamicVoucher.js +178 -0
  272. package/dist/model/dynamicVoucher.js.map +1 -0
  273. package/dist/model/dynamicVoucherBroadcast.d.ts +37 -0
  274. package/dist/model/dynamicVoucherBroadcast.js +118 -0
  275. package/dist/model/dynamicVoucherBroadcast.js.map +1 -0
  276. package/dist/model/employee.d.ts +27 -0
  277. package/dist/model/employee.js +83 -0
  278. package/dist/model/employee.js.map +1 -0
  279. package/dist/model/employeeAPIKey.d.ts +22 -0
  280. package/dist/model/employeeAPIKey.js +58 -0
  281. package/dist/model/employeeAPIKey.js.map +1 -0
  282. package/dist/model/employeeActivityLog.d.ts +20 -0
  283. package/dist/model/employeeActivityLog.js +48 -0
  284. package/dist/model/employeeActivityLog.js.map +1 -0
  285. package/dist/model/employeeAlert.d.ts +22 -0
  286. package/dist/model/employeeAlert.js +58 -0
  287. package/dist/model/employeeAlert.js.map +1 -0
  288. package/dist/model/entityTooLarge.d.ts +18 -0
  289. package/dist/model/entityTooLarge.js +38 -0
  290. package/dist/model/entityTooLarge.js.map +1 -0
  291. package/dist/model/exportDataFile.d.ts +23 -0
  292. package/dist/model/exportDataFile.js +63 -0
  293. package/dist/model/exportDataFile.js.map +1 -0
  294. package/dist/model/falsumError.d.ts +16 -0
  295. package/dist/model/falsumError.js +23 -0
  296. package/dist/model/falsumError.js.map +1 -0
  297. package/dist/model/falsumField.d.ts +16 -0
  298. package/dist/model/falsumField.js +28 -0
  299. package/dist/model/falsumField.js.map +1 -0
  300. package/dist/model/feature.d.ts +22 -0
  301. package/dist/model/feature.js +58 -0
  302. package/dist/model/feature.js.map +1 -0
  303. package/dist/model/forbiddenRequest.d.ts +18 -0
  304. package/dist/model/forbiddenRequest.js +38 -0
  305. package/dist/model/forbiddenRequest.js.map +1 -0
  306. package/dist/model/foreignKeyDoesNotExist.d.ts +18 -0
  307. package/dist/model/foreignKeyDoesNotExist.js +38 -0
  308. package/dist/model/foreignKeyDoesNotExist.js.map +1 -0
  309. package/dist/model/helpDeskRequest.d.ts +23 -0
  310. package/dist/model/helpDeskRequest.js +63 -0
  311. package/dist/model/helpDeskRequest.js.map +1 -0
  312. package/dist/model/importedList.d.ts +21 -0
  313. package/dist/model/importedList.js +53 -0
  314. package/dist/model/importedList.js.map +1 -0
  315. package/dist/model/importedListRecipient.d.ts +21 -0
  316. package/dist/model/importedListRecipient.js +53 -0
  317. package/dist/model/importedListRecipient.js.map +1 -0
  318. package/dist/model/inboundSMS.d.ts +47 -0
  319. package/dist/model/inboundSMS.js +183 -0
  320. package/dist/model/inboundSMS.js.map +1 -0
  321. package/dist/model/inlineObject.d.ts +14 -0
  322. package/dist/model/inlineObject.js +18 -0
  323. package/dist/model/inlineObject.js.map +1 -0
  324. package/dist/model/inlineObject1.d.ts +14 -0
  325. package/dist/model/inlineObject1.js +18 -0
  326. package/dist/model/inlineObject1.js.map +1 -0
  327. package/dist/model/inlineObject10.d.ts +15 -0
  328. package/dist/model/inlineObject10.js +23 -0
  329. package/dist/model/inlineObject10.js.map +1 -0
  330. package/dist/model/inlineObject11.d.ts +15 -0
  331. package/dist/model/inlineObject11.js +23 -0
  332. package/dist/model/inlineObject11.js.map +1 -0
  333. package/dist/model/inlineObject12.d.ts +15 -0
  334. package/dist/model/inlineObject12.js +23 -0
  335. package/dist/model/inlineObject12.js.map +1 -0
  336. package/dist/model/inlineObject13.d.ts +15 -0
  337. package/dist/model/inlineObject13.js +23 -0
  338. package/dist/model/inlineObject13.js.map +1 -0
  339. package/dist/model/inlineObject14.d.ts +15 -0
  340. package/dist/model/inlineObject14.js +23 -0
  341. package/dist/model/inlineObject14.js.map +1 -0
  342. package/dist/model/inlineObject15.d.ts +20 -0
  343. package/dist/model/inlineObject15.js +48 -0
  344. package/dist/model/inlineObject15.js.map +1 -0
  345. package/dist/model/inlineObject16.d.ts +19 -0
  346. package/dist/model/inlineObject16.js +43 -0
  347. package/dist/model/inlineObject16.js.map +1 -0
  348. package/dist/model/inlineObject17.d.ts +18 -0
  349. package/dist/model/inlineObject17.js +38 -0
  350. package/dist/model/inlineObject17.js.map +1 -0
  351. package/dist/model/inlineObject18.d.ts +19 -0
  352. package/dist/model/inlineObject18.js +43 -0
  353. package/dist/model/inlineObject18.js.map +1 -0
  354. package/dist/model/inlineObject19.d.ts +18 -0
  355. package/dist/model/inlineObject19.js +38 -0
  356. package/dist/model/inlineObject19.js.map +1 -0
  357. package/dist/model/inlineObject2.d.ts +14 -0
  358. package/dist/model/inlineObject2.js +18 -0
  359. package/dist/model/inlineObject2.js.map +1 -0
  360. package/dist/model/inlineObject20.d.ts +19 -0
  361. package/dist/model/inlineObject20.js +43 -0
  362. package/dist/model/inlineObject20.js.map +1 -0
  363. package/dist/model/inlineObject21.d.ts +21 -0
  364. package/dist/model/inlineObject21.js +53 -0
  365. package/dist/model/inlineObject21.js.map +1 -0
  366. package/dist/model/inlineObject22.d.ts +14 -0
  367. package/dist/model/inlineObject22.js +18 -0
  368. package/dist/model/inlineObject22.js.map +1 -0
  369. package/dist/model/inlineObject23.d.ts +14 -0
  370. package/dist/model/inlineObject23.js +18 -0
  371. package/dist/model/inlineObject23.js.map +1 -0
  372. package/dist/model/inlineObject24.d.ts +16 -0
  373. package/dist/model/inlineObject24.js +28 -0
  374. package/dist/model/inlineObject24.js.map +1 -0
  375. package/dist/model/inlineObject25.d.ts +18 -0
  376. package/dist/model/inlineObject25.js +38 -0
  377. package/dist/model/inlineObject25.js.map +1 -0
  378. package/dist/model/inlineObject26.d.ts +14 -0
  379. package/dist/model/inlineObject26.js +18 -0
  380. package/dist/model/inlineObject26.js.map +1 -0
  381. package/dist/model/inlineObject27.d.ts +14 -0
  382. package/dist/model/inlineObject27.js +18 -0
  383. package/dist/model/inlineObject27.js.map +1 -0
  384. package/dist/model/inlineObject28.d.ts +16 -0
  385. package/dist/model/inlineObject28.js +28 -0
  386. package/dist/model/inlineObject28.js.map +1 -0
  387. package/dist/model/inlineObject29.d.ts +17 -0
  388. package/dist/model/inlineObject29.js +33 -0
  389. package/dist/model/inlineObject29.js.map +1 -0
  390. package/dist/model/inlineObject3.d.ts +14 -0
  391. package/dist/model/inlineObject3.js +18 -0
  392. package/dist/model/inlineObject3.js.map +1 -0
  393. package/dist/model/inlineObject30.d.ts +16 -0
  394. package/dist/model/inlineObject30.js +28 -0
  395. package/dist/model/inlineObject30.js.map +1 -0
  396. package/dist/model/inlineObject31.d.ts +14 -0
  397. package/dist/model/inlineObject31.js +18 -0
  398. package/dist/model/inlineObject31.js.map +1 -0
  399. package/dist/model/inlineObject32.d.ts +14 -0
  400. package/dist/model/inlineObject32.js +18 -0
  401. package/dist/model/inlineObject32.js.map +1 -0
  402. package/dist/model/inlineObject33.d.ts +14 -0
  403. package/dist/model/inlineObject33.js +18 -0
  404. package/dist/model/inlineObject33.js.map +1 -0
  405. package/dist/model/inlineObject34.d.ts +16 -0
  406. package/dist/model/inlineObject34.js +28 -0
  407. package/dist/model/inlineObject34.js.map +1 -0
  408. package/dist/model/inlineObject35.d.ts +16 -0
  409. package/dist/model/inlineObject35.js +28 -0
  410. package/dist/model/inlineObject35.js.map +1 -0
  411. package/dist/model/inlineObject36.d.ts +16 -0
  412. package/dist/model/inlineObject36.js +28 -0
  413. package/dist/model/inlineObject36.js.map +1 -0
  414. package/dist/model/inlineObject37.d.ts +16 -0
  415. package/dist/model/inlineObject37.js +28 -0
  416. package/dist/model/inlineObject37.js.map +1 -0
  417. package/dist/model/inlineObject38.d.ts +16 -0
  418. package/dist/model/inlineObject38.js +28 -0
  419. package/dist/model/inlineObject38.js.map +1 -0
  420. package/dist/model/inlineObject39.d.ts +16 -0
  421. package/dist/model/inlineObject39.js +28 -0
  422. package/dist/model/inlineObject39.js.map +1 -0
  423. package/dist/model/inlineObject4.d.ts +15 -0
  424. package/dist/model/inlineObject4.js +23 -0
  425. package/dist/model/inlineObject4.js.map +1 -0
  426. package/dist/model/inlineObject40.d.ts +16 -0
  427. package/dist/model/inlineObject40.js +28 -0
  428. package/dist/model/inlineObject40.js.map +1 -0
  429. package/dist/model/inlineObject41.d.ts +16 -0
  430. package/dist/model/inlineObject41.js +28 -0
  431. package/dist/model/inlineObject41.js.map +1 -0
  432. package/dist/model/inlineObject42.d.ts +16 -0
  433. package/dist/model/inlineObject42.js +28 -0
  434. package/dist/model/inlineObject42.js.map +1 -0
  435. package/dist/model/inlineObject43.d.ts +16 -0
  436. package/dist/model/inlineObject43.js +28 -0
  437. package/dist/model/inlineObject43.js.map +1 -0
  438. package/dist/model/inlineObject44.d.ts +16 -0
  439. package/dist/model/inlineObject44.js +28 -0
  440. package/dist/model/inlineObject44.js.map +1 -0
  441. package/dist/model/inlineObject45.d.ts +16 -0
  442. package/dist/model/inlineObject45.js +28 -0
  443. package/dist/model/inlineObject45.js.map +1 -0
  444. package/dist/model/inlineObject46.d.ts +16 -0
  445. package/dist/model/inlineObject46.js +28 -0
  446. package/dist/model/inlineObject46.js.map +1 -0
  447. package/dist/model/inlineObject47.d.ts +16 -0
  448. package/dist/model/inlineObject47.js +28 -0
  449. package/dist/model/inlineObject47.js.map +1 -0
  450. package/dist/model/inlineObject48.d.ts +16 -0
  451. package/dist/model/inlineObject48.js +28 -0
  452. package/dist/model/inlineObject48.js.map +1 -0
  453. package/dist/model/inlineObject49.d.ts +16 -0
  454. package/dist/model/inlineObject49.js +28 -0
  455. package/dist/model/inlineObject49.js.map +1 -0
  456. package/dist/model/inlineObject5.d.ts +14 -0
  457. package/dist/model/inlineObject5.js +18 -0
  458. package/dist/model/inlineObject5.js.map +1 -0
  459. package/dist/model/inlineObject50.d.ts +16 -0
  460. package/dist/model/inlineObject50.js +28 -0
  461. package/dist/model/inlineObject50.js.map +1 -0
  462. package/dist/model/inlineObject51.d.ts +25 -0
  463. package/dist/model/inlineObject51.js +73 -0
  464. package/dist/model/inlineObject51.js.map +1 -0
  465. package/dist/model/inlineObject52.d.ts +14 -0
  466. package/dist/model/inlineObject52.js +18 -0
  467. package/dist/model/inlineObject52.js.map +1 -0
  468. package/dist/model/inlineObject53.d.ts +25 -0
  469. package/dist/model/inlineObject53.js +73 -0
  470. package/dist/model/inlineObject53.js.map +1 -0
  471. package/dist/model/inlineObject54.d.ts +25 -0
  472. package/dist/model/inlineObject54.js +73 -0
  473. package/dist/model/inlineObject54.js.map +1 -0
  474. package/dist/model/inlineObject55.d.ts +24 -0
  475. package/dist/model/inlineObject55.js +68 -0
  476. package/dist/model/inlineObject55.js.map +1 -0
  477. package/dist/model/inlineObject56.d.ts +15 -0
  478. package/dist/model/inlineObject56.js +23 -0
  479. package/dist/model/inlineObject56.js.map +1 -0
  480. package/dist/model/inlineObject57.d.ts +15 -0
  481. package/dist/model/inlineObject57.js +23 -0
  482. package/dist/model/inlineObject57.js.map +1 -0
  483. package/dist/model/inlineObject58.d.ts +16 -0
  484. package/dist/model/inlineObject58.js +28 -0
  485. package/dist/model/inlineObject58.js.map +1 -0
  486. package/dist/model/inlineObject59.d.ts +16 -0
  487. package/dist/model/inlineObject59.js +28 -0
  488. package/dist/model/inlineObject59.js.map +1 -0
  489. package/dist/model/inlineObject6.d.ts +14 -0
  490. package/dist/model/inlineObject6.js +18 -0
  491. package/dist/model/inlineObject6.js.map +1 -0
  492. package/dist/model/inlineObject60.d.ts +16 -0
  493. package/dist/model/inlineObject60.js +28 -0
  494. package/dist/model/inlineObject60.js.map +1 -0
  495. package/dist/model/inlineObject61.d.ts +15 -0
  496. package/dist/model/inlineObject61.js +23 -0
  497. package/dist/model/inlineObject61.js.map +1 -0
  498. package/dist/model/inlineObject62.d.ts +15 -0
  499. package/dist/model/inlineObject62.js +23 -0
  500. package/dist/model/inlineObject62.js.map +1 -0
  501. package/dist/model/inlineObject63.d.ts +15 -0
  502. package/dist/model/inlineObject63.js +23 -0
  503. package/dist/model/inlineObject63.js.map +1 -0
  504. package/dist/model/inlineObject64.d.ts +45 -0
  505. package/dist/model/inlineObject64.js +173 -0
  506. package/dist/model/inlineObject64.js.map +1 -0
  507. package/dist/model/inlineObject65.d.ts +17 -0
  508. package/dist/model/inlineObject65.js +33 -0
  509. package/dist/model/inlineObject65.js.map +1 -0
  510. package/dist/model/inlineObject66.d.ts +17 -0
  511. package/dist/model/inlineObject66.js +33 -0
  512. package/dist/model/inlineObject66.js.map +1 -0
  513. package/dist/model/inlineObject67.d.ts +15 -0
  514. package/dist/model/inlineObject67.js +23 -0
  515. package/dist/model/inlineObject67.js.map +1 -0
  516. package/dist/model/inlineObject68.d.ts +29 -0
  517. package/dist/model/inlineObject68.js +93 -0
  518. package/dist/model/inlineObject68.js.map +1 -0
  519. package/dist/model/inlineObject69.d.ts +29 -0
  520. package/dist/model/inlineObject69.js +93 -0
  521. package/dist/model/inlineObject69.js.map +1 -0
  522. package/dist/model/inlineObject7.d.ts +14 -0
  523. package/dist/model/inlineObject7.js +18 -0
  524. package/dist/model/inlineObject7.js.map +1 -0
  525. package/dist/model/inlineObject8.d.ts +16 -0
  526. package/dist/model/inlineObject8.js +28 -0
  527. package/dist/model/inlineObject8.js.map +1 -0
  528. package/dist/model/inlineObject9.d.ts +15 -0
  529. package/dist/model/inlineObject9.js +23 -0
  530. package/dist/model/inlineObject9.js.map +1 -0
  531. package/dist/model/inlineResponse200.d.ts +15 -0
  532. package/dist/model/inlineResponse200.js +23 -0
  533. package/dist/model/inlineResponse200.js.map +1 -0
  534. package/dist/model/inlineResponse2001.d.ts +19 -0
  535. package/dist/model/inlineResponse2001.js +38 -0
  536. package/dist/model/inlineResponse2001.js.map +1 -0
  537. package/dist/model/inlineResponse20010.d.ts +17 -0
  538. package/dist/model/inlineResponse20010.js +28 -0
  539. package/dist/model/inlineResponse20010.js.map +1 -0
  540. package/dist/model/inlineResponse20011.d.ts +15 -0
  541. package/dist/model/inlineResponse20011.js +23 -0
  542. package/dist/model/inlineResponse20011.js.map +1 -0
  543. package/dist/model/inlineResponse20012.d.ts +26 -0
  544. package/dist/model/inlineResponse20012.js +73 -0
  545. package/dist/model/inlineResponse20012.js.map +1 -0
  546. package/dist/model/inlineResponse20013.d.ts +27 -0
  547. package/dist/model/inlineResponse20013.js +83 -0
  548. package/dist/model/inlineResponse20013.js.map +1 -0
  549. package/dist/model/inlineResponse20014.d.ts +16 -0
  550. package/dist/model/inlineResponse20014.js +28 -0
  551. package/dist/model/inlineResponse20014.js.map +1 -0
  552. package/dist/model/inlineResponse2002.d.ts +14 -0
  553. package/dist/model/inlineResponse2002.js +18 -0
  554. package/dist/model/inlineResponse2002.js.map +1 -0
  555. package/dist/model/inlineResponse2003.d.ts +14 -0
  556. package/dist/model/inlineResponse2003.js +18 -0
  557. package/dist/model/inlineResponse2003.js.map +1 -0
  558. package/dist/model/inlineResponse2004.d.ts +16 -0
  559. package/dist/model/inlineResponse2004.js +28 -0
  560. package/dist/model/inlineResponse2004.js.map +1 -0
  561. package/dist/model/inlineResponse2005.d.ts +16 -0
  562. package/dist/model/inlineResponse2005.js +23 -0
  563. package/dist/model/inlineResponse2005.js.map +1 -0
  564. package/dist/model/inlineResponse2006.d.ts +25 -0
  565. package/dist/model/inlineResponse2006.js +73 -0
  566. package/dist/model/inlineResponse2006.js.map +1 -0
  567. package/dist/model/inlineResponse2007.d.ts +17 -0
  568. package/dist/model/inlineResponse2007.js +28 -0
  569. package/dist/model/inlineResponse2007.js.map +1 -0
  570. package/dist/model/inlineResponse2008.d.ts +14 -0
  571. package/dist/model/inlineResponse2008.js +18 -0
  572. package/dist/model/inlineResponse2008.js.map +1 -0
  573. package/dist/model/inlineResponse2009.d.ts +17 -0
  574. package/dist/model/inlineResponse2009.js +28 -0
  575. package/dist/model/inlineResponse2009.js.map +1 -0
  576. package/dist/model/internalServerError.d.ts +18 -0
  577. package/dist/model/internalServerError.js +38 -0
  578. package/dist/model/internalServerError.js.map +1 -0
  579. package/dist/model/ledgerEntry.d.ts +39 -0
  580. package/dist/model/ledgerEntry.js +138 -0
  581. package/dist/model/ledgerEntry.js.map +1 -0
  582. package/dist/model/linkBook.d.ts +23 -0
  583. package/dist/model/linkBook.js +63 -0
  584. package/dist/model/linkBook.js.map +1 -0
  585. package/dist/model/linkBookSection.d.ts +19 -0
  586. package/dist/model/linkBookSection.js +43 -0
  587. package/dist/model/linkBookSection.js.map +1 -0
  588. package/dist/model/mSMemberHistory.d.ts +24 -0
  589. package/dist/model/mSMemberHistory.js +68 -0
  590. package/dist/model/mSMemberHistory.js.map +1 -0
  591. package/dist/model/mSMemberHistoryPagination.d.ts +17 -0
  592. package/dist/model/mSMemberHistoryPagination.js +28 -0
  593. package/dist/model/mSMemberHistoryPagination.js.map +1 -0
  594. package/dist/model/mSMemberRedemption.d.ts +23 -0
  595. package/dist/model/mSMemberRedemption.js +63 -0
  596. package/dist/model/mSMemberRedemption.js.map +1 -0
  597. package/dist/model/mSMemberRedemptionPagination.d.ts +17 -0
  598. package/dist/model/mSMemberRedemptionPagination.js +28 -0
  599. package/dist/model/mSMemberRedemptionPagination.js.map +1 -0
  600. package/dist/model/mSMembershipTierHistory.d.ts +23 -0
  601. package/dist/model/mSMembershipTierHistory.js +63 -0
  602. package/dist/model/mSMembershipTierHistory.js.map +1 -0
  603. package/dist/model/mSMembershipTierHistoryPagination.d.ts +17 -0
  604. package/dist/model/mSMembershipTierHistoryPagination.js +28 -0
  605. package/dist/model/mSMembershipTierHistoryPagination.js.map +1 -0
  606. package/dist/model/mSMembershipTierRedemption.d.ts +24 -0
  607. package/dist/model/mSMembershipTierRedemption.js +68 -0
  608. package/dist/model/mSMembershipTierRedemption.js.map +1 -0
  609. package/dist/model/mSMembershipTierRedemptionPagination.d.ts +17 -0
  610. package/dist/model/mSMembershipTierRedemptionPagination.js +28 -0
  611. package/dist/model/mSMembershipTierRedemptionPagination.js.map +1 -0
  612. package/dist/model/mSMerchantCreditHistory.d.ts +21 -0
  613. package/dist/model/mSMerchantCreditHistory.js +53 -0
  614. package/dist/model/mSMerchantCreditHistory.js.map +1 -0
  615. package/dist/model/mSMerchantCreditHistoryPagination.d.ts +17 -0
  616. package/dist/model/mSMerchantCreditHistoryPagination.js +28 -0
  617. package/dist/model/mSMerchantCreditHistoryPagination.js.map +1 -0
  618. package/dist/model/mSMerchantCreditRedemption.d.ts +23 -0
  619. package/dist/model/mSMerchantCreditRedemption.js +63 -0
  620. package/dist/model/mSMerchantCreditRedemption.js.map +1 -0
  621. package/dist/model/mSMerchantCreditRedemptionPagination.d.ts +17 -0
  622. package/dist/model/mSMerchantCreditRedemptionPagination.js +28 -0
  623. package/dist/model/mSMerchantCreditRedemptionPagination.js.map +1 -0
  624. package/dist/model/mediaFile.d.ts +23 -0
  625. package/dist/model/mediaFile.js +63 -0
  626. package/dist/model/mediaFile.js.map +1 -0
  627. package/dist/model/member.d.ts +25 -0
  628. package/dist/model/member.js +73 -0
  629. package/dist/model/member.js.map +1 -0
  630. package/dist/model/memberSearch.d.ts +17 -0
  631. package/dist/model/memberSearch.js +33 -0
  632. package/dist/model/memberSearch.js.map +1 -0
  633. package/dist/model/merchant.d.ts +32 -0
  634. package/dist/model/merchant.js +108 -0
  635. package/dist/model/merchant.js.map +1 -0
  636. package/dist/model/merchantCreditSearch.d.ts +17 -0
  637. package/dist/model/merchantCreditSearch.js +33 -0
  638. package/dist/model/merchantCreditSearch.js.map +1 -0
  639. package/dist/model/merchantNotInitialized.d.ts +18 -0
  640. package/dist/model/merchantNotInitialized.js +38 -0
  641. package/dist/model/merchantNotInitialized.js.map +1 -0
  642. package/dist/model/merchantURL.d.ts +20 -0
  643. package/dist/model/merchantURL.js +48 -0
  644. package/dist/model/merchantURL.js.map +1 -0
  645. package/dist/model/message.d.ts +22 -0
  646. package/dist/model/message.js +53 -0
  647. package/dist/model/message.js.map +1 -0
  648. package/dist/model/models.d.ts +324 -0
  649. package/dist/model/models.js +1050 -0
  650. package/dist/model/models.js.map +1 -0
  651. package/dist/model/moduleError.d.ts +34 -0
  652. package/dist/model/moduleError.js +118 -0
  653. package/dist/model/moduleError.js.map +1 -0
  654. package/dist/model/newsArticle.d.ts +23 -0
  655. package/dist/model/newsArticle.js +63 -0
  656. package/dist/model/newsArticle.js.map +1 -0
  657. package/dist/model/optInList.d.ts +29 -0
  658. package/dist/model/optInList.js +93 -0
  659. package/dist/model/optInList.js.map +1 -0
  660. package/dist/model/optInListSource.d.ts +21 -0
  661. package/dist/model/optInListSource.js +53 -0
  662. package/dist/model/optInListSource.js.map +1 -0
  663. package/dist/model/optInListSubscriber.d.ts +27 -0
  664. package/dist/model/optInListSubscriber.js +78 -0
  665. package/dist/model/optInListSubscriber.js.map +1 -0
  666. package/dist/model/outboundSMS.d.ts +35 -0
  667. package/dist/model/outboundSMS.js +123 -0
  668. package/dist/model/outboundSMS.js.map +1 -0
  669. package/dist/model/paginatedWTMembers.d.ts +17 -0
  670. package/dist/model/paginatedWTMembers.js +28 -0
  671. package/dist/model/paginatedWTMembers.js.map +1 -0
  672. package/dist/model/paginatedWTMerchantCredits.d.ts +17 -0
  673. package/dist/model/paginatedWTMerchantCredits.js +28 -0
  674. package/dist/model/paginatedWTMerchantCredits.js.map +1 -0
  675. package/dist/model/paginationRequestWithIDAndWithoutSortOptions.d.ts +16 -0
  676. package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js +28 -0
  677. package/dist/model/paginationRequestWithIDAndWithoutSortOptions.js.map +1 -0
  678. package/dist/model/paginationRequestWithSortOptions.d.ts +23 -0
  679. package/dist/model/paginationRequestWithSortOptions.js +44 -0
  680. package/dist/model/paginationRequestWithSortOptions.js.map +1 -0
  681. package/dist/model/paymentDesign.d.ts +32 -0
  682. package/dist/model/paymentDesign.js +108 -0
  683. package/dist/model/paymentDesign.js.map +1 -0
  684. package/dist/model/performance.d.ts +26 -0
  685. package/dist/model/performance.js +78 -0
  686. package/dist/model/performance.js.map +1 -0
  687. package/dist/model/phoneNumber.d.ts +35 -0
  688. package/dist/model/phoneNumber.js +123 -0
  689. package/dist/model/phoneNumber.js.map +1 -0
  690. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.d.ts +26 -0
  691. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js +78 -0
  692. package/dist/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.js.map +1 -0
  693. package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.d.ts +15 -0
  694. package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js +23 -0
  695. package/dist/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.js.map +1 -0
  696. package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.d.ts +15 -0
  697. package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js +23 -0
  698. package/dist/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.js.map +1 -0
  699. package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.d.ts +18 -0
  700. package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js +38 -0
  701. package/dist/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.js.map +1 -0
  702. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.d.ts +23 -0
  703. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js +63 -0
  704. package/dist/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.js.map +1 -0
  705. package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.d.ts +15 -0
  706. package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js +23 -0
  707. package/dist/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.js.map +1 -0
  708. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.d.ts +20 -0
  709. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js +48 -0
  710. package/dist/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.js.map +1 -0
  711. package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.d.ts +15 -0
  712. package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js +23 -0
  713. package/dist/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.js.map +1 -0
  714. package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.d.ts +17 -0
  715. package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js +33 -0
  716. package/dist/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.js.map +1 -0
  717. package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.d.ts +25 -0
  718. package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js +73 -0
  719. package/dist/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.js.map +1 -0
  720. package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.d.ts +24 -0
  721. package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.js +68 -0
  722. package/dist/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.js.map +1 -0
  723. package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.d.ts +19 -0
  724. package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.js +43 -0
  725. package/dist/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.js.map +1 -0
  726. package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.d.ts +25 -0
  727. package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js +73 -0
  728. package/dist/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.js.map +1 -0
  729. package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.d.ts +16 -0
  730. package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js +28 -0
  731. package/dist/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.js.map +1 -0
  732. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.d.ts +34 -0
  733. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js +118 -0
  734. package/dist/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.js.map +1 -0
  735. package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.d.ts +18 -0
  736. package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js +38 -0
  737. package/dist/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.js.map +1 -0
  738. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.d.ts +31 -0
  739. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js +98 -0
  740. package/dist/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.js.map +1 -0
  741. package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.d.ts +18 -0
  742. package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js +38 -0
  743. package/dist/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.js.map +1 -0
  744. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.d.ts +26 -0
  745. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js +78 -0
  746. package/dist/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.js.map +1 -0
  747. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.d.ts +32 -0
  748. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js +108 -0
  749. package/dist/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.js.map +1 -0
  750. package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.d.ts +24 -0
  751. package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.js +68 -0
  752. package/dist/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.js.map +1 -0
  753. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.d.ts +26 -0
  754. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js +78 -0
  755. package/dist/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.js.map +1 -0
  756. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.d.ts +36 -0
  757. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js +123 -0
  758. package/dist/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.js.map +1 -0
  759. package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.d.ts +18 -0
  760. package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.js +38 -0
  761. package/dist/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.js.map +1 -0
  762. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.d.ts +18 -0
  763. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js +38 -0
  764. package/dist/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.js.map +1 -0
  765. package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.d.ts +19 -0
  766. package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.js +43 -0
  767. package/dist/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.js.map +1 -0
  768. package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.d.ts +16 -0
  769. package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js +28 -0
  770. package/dist/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.js.map +1 -0
  771. package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.d.ts +15 -0
  772. package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js +23 -0
  773. package/dist/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.js.map +1 -0
  774. package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.d.ts +18 -0
  775. package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js +38 -0
  776. package/dist/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.js.map +1 -0
  777. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.d.ts +33 -0
  778. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js +103 -0
  779. package/dist/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.js.map +1 -0
  780. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.d.ts +27 -0
  781. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js +83 -0
  782. package/dist/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.js.map +1 -0
  783. package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.d.ts +16 -0
  784. package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js +28 -0
  785. package/dist/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.js.map +1 -0
  786. package/dist/model/plan.d.ts +20 -0
  787. package/dist/model/plan.js +43 -0
  788. package/dist/model/plan.js.map +1 -0
  789. package/dist/model/portalPage.d.ts +52 -0
  790. package/dist/model/portalPage.js +57 -0
  791. package/dist/model/portalPage.js.map +1 -0
  792. package/dist/model/presignedPost.d.ts +16 -0
  793. package/dist/model/presignedPost.js +23 -0
  794. package/dist/model/presignedPost.js.map +1 -0
  795. package/dist/model/presignedPostFields.d.ts +11 -0
  796. package/dist/model/presignedPostFields.js +23 -0
  797. package/dist/model/presignedPostFields.js.map +1 -0
  798. package/dist/model/product.d.ts +22 -0
  799. package/dist/model/product.js +53 -0
  800. package/dist/model/product.js.map +1 -0
  801. package/dist/model/promoCode.d.ts +26 -0
  802. package/dist/model/promoCode.js +78 -0
  803. package/dist/model/promoCode.js.map +1 -0
  804. package/dist/model/reachPerformanceStats.d.ts +24 -0
  805. package/dist/model/reachPerformanceStats.js +68 -0
  806. package/dist/model/reachPerformanceStats.js.map +1 -0
  807. package/dist/model/request.d.ts +67 -0
  808. package/dist/model/request.js +283 -0
  809. package/dist/model/request.js.map +1 -0
  810. package/dist/model/response.d.ts +20 -0
  811. package/dist/model/response.js +48 -0
  812. package/dist/model/response.js.map +1 -0
  813. package/dist/model/role.d.ts +30 -0
  814. package/dist/model/role.js +88 -0
  815. package/dist/model/role.js.map +1 -0
  816. package/dist/model/roleAuditLog.d.ts +25 -0
  817. package/dist/model/roleAuditLog.js +73 -0
  818. package/dist/model/roleAuditLog.js.map +1 -0
  819. package/dist/model/sSImportedListRecipientCreateParams.d.ts +15 -0
  820. package/dist/model/sSImportedListRecipientCreateParams.js +23 -0
  821. package/dist/model/sSImportedListRecipientCreateParams.js.map +1 -0
  822. package/dist/model/sSOptInSource.d.ts +21 -0
  823. package/dist/model/sSOptInSource.js +53 -0
  824. package/dist/model/sSOptInSource.js.map +1 -0
  825. package/dist/model/simpleSMSBroadcast.d.ts +35 -0
  826. package/dist/model/simpleSMSBroadcast.js +113 -0
  827. package/dist/model/simpleSMSBroadcast.js.map +1 -0
  828. package/dist/model/staticVoucher.d.ts +46 -0
  829. package/dist/model/staticVoucher.js +173 -0
  830. package/dist/model/staticVoucher.js.map +1 -0
  831. package/dist/model/staticVoucherCampaign.d.ts +38 -0
  832. package/dist/model/staticVoucherCampaign.js +138 -0
  833. package/dist/model/staticVoucherCampaign.js.map +1 -0
  834. package/dist/model/staticVoucherCampaignBroadcast.d.ts +35 -0
  835. package/dist/model/staticVoucherCampaignBroadcast.js +108 -0
  836. package/dist/model/staticVoucherCampaignBroadcast.js.map +1 -0
  837. package/dist/model/staticVoucherCampaignGroup.d.ts +23 -0
  838. package/dist/model/staticVoucherCampaignGroup.js +63 -0
  839. package/dist/model/staticVoucherCampaignGroup.js.map +1 -0
  840. package/dist/model/staticVoucherCampaignUpdate.d.ts +23 -0
  841. package/dist/model/staticVoucherCampaignUpdate.js +63 -0
  842. package/dist/model/staticVoucherCampaignUpdate.js.map +1 -0
  843. package/dist/model/status.d.ts +13 -0
  844. package/dist/model/status.js +12 -0
  845. package/dist/model/status.js.map +1 -0
  846. package/dist/model/statusAnyOf.d.ts +3 -0
  847. package/dist/model/statusAnyOf.js +8 -0
  848. package/dist/model/statusAnyOf.js.map +1 -0
  849. package/dist/model/statusAnyOf1.d.ts +3 -0
  850. package/dist/model/statusAnyOf1.js +8 -0
  851. package/dist/model/statusAnyOf1.js.map +1 -0
  852. package/dist/model/statusAnyOf2.d.ts +3 -0
  853. package/dist/model/statusAnyOf2.js +8 -0
  854. package/dist/model/statusAnyOf2.js.map +1 -0
  855. package/dist/model/statusAnyOf3.d.ts +3 -0
  856. package/dist/model/statusAnyOf3.js +8 -0
  857. package/dist/model/statusAnyOf3.js.map +1 -0
  858. package/dist/model/subscriptionFeature.d.ts +22 -0
  859. package/dist/model/subscriptionFeature.js +58 -0
  860. package/dist/model/subscriptionFeature.js.map +1 -0
  861. package/dist/model/subscriptionPlan.d.ts +22 -0
  862. package/dist/model/subscriptionPlan.js +48 -0
  863. package/dist/model/subscriptionPlan.js.map +1 -0
  864. package/dist/model/subscriptionProduct.d.ts +24 -0
  865. package/dist/model/subscriptionProduct.js +58 -0
  866. package/dist/model/subscriptionProduct.js.map +1 -0
  867. package/dist/model/tcpa.d.ts +20 -0
  868. package/dist/model/tcpa.js +48 -0
  869. package/dist/model/tcpa.js.map +1 -0
  870. package/dist/model/updateStaticVoucherCampaignWithVoucher.d.ts +27 -0
  871. package/dist/model/updateStaticVoucherCampaignWithVoucher.js +83 -0
  872. package/dist/model/updateStaticVoucherCampaignWithVoucher.js.map +1 -0
  873. package/dist/model/vSCampaignGeneratedMessage.d.ts +16 -0
  874. package/dist/model/vSCampaignGeneratedMessage.js +28 -0
  875. package/dist/model/vSCampaignGeneratedMessage.js.map +1 -0
  876. package/dist/model/vSCampaignGeneratedMessagePagination.d.ts +17 -0
  877. package/dist/model/vSCampaignGeneratedMessagePagination.js +28 -0
  878. package/dist/model/vSCampaignGeneratedMessagePagination.js.map +1 -0
  879. package/dist/model/vSDynamicVoucherStatus.d.ts +13 -0
  880. package/dist/model/vSDynamicVoucherStatus.js +12 -0
  881. package/dist/model/vSDynamicVoucherStatus.js.map +1 -0
  882. package/dist/model/wTAdvertisementCredit.d.ts +26 -0
  883. package/dist/model/wTAdvertisementCredit.js +78 -0
  884. package/dist/model/wTAdvertisementCredit.js.map +1 -0
  885. package/dist/model/wTAdvertisementCreditCreateParams.d.ts +18 -0
  886. package/dist/model/wTAdvertisementCreditCreateParams.js +38 -0
  887. package/dist/model/wTAdvertisementCreditCreateParams.js.map +1 -0
  888. package/dist/model/wTAdvertisementCreditScan.d.ts +37 -0
  889. package/dist/model/wTAdvertisementCreditScan.js +128 -0
  890. package/dist/model/wTAdvertisementCreditScan.js.map +1 -0
  891. package/dist/model/wTAdvertisementCreditUpdateParams.d.ts +18 -0
  892. package/dist/model/wTAdvertisementCreditUpdateParams.js +38 -0
  893. package/dist/model/wTAdvertisementCreditUpdateParams.js.map +1 -0
  894. package/dist/model/wTDynamicVoucher.d.ts +47 -0
  895. package/dist/model/wTDynamicVoucher.js +178 -0
  896. package/dist/model/wTDynamicVoucher.js.map +1 -0
  897. package/dist/model/wTDynamicVoucherCreateParams.d.ts +26 -0
  898. package/dist/model/wTDynamicVoucherCreateParams.js +78 -0
  899. package/dist/model/wTDynamicVoucherCreateParams.js.map +1 -0
  900. package/dist/model/wTDynamicVoucherRedemption.d.ts +36 -0
  901. package/dist/model/wTDynamicVoucherRedemption.js +123 -0
  902. package/dist/model/wTDynamicVoucherRedemption.js.map +1 -0
  903. package/dist/model/wTDynamicVoucherSummary.d.ts +37 -0
  904. package/dist/model/wTDynamicVoucherSummary.js +133 -0
  905. package/dist/model/wTDynamicVoucherSummary.js.map +1 -0
  906. package/dist/model/wTDynamicVoucherUpdateParams.d.ts +26 -0
  907. package/dist/model/wTDynamicVoucherUpdateParams.js +78 -0
  908. package/dist/model/wTDynamicVoucherUpdateParams.js.map +1 -0
  909. package/dist/model/wTEmployee.d.ts +27 -0
  910. package/dist/model/wTEmployee.js +83 -0
  911. package/dist/model/wTEmployee.js.map +1 -0
  912. package/dist/model/wTEmployeeAPIKey.d.ts +22 -0
  913. package/dist/model/wTEmployeeAPIKey.js +58 -0
  914. package/dist/model/wTEmployeeAPIKey.js.map +1 -0
  915. package/dist/model/wTEmployeeAPIKeyCreateParams.d.ts +15 -0
  916. package/dist/model/wTEmployeeAPIKeyCreateParams.js +23 -0
  917. package/dist/model/wTEmployeeAPIKeyCreateParams.js.map +1 -0
  918. package/dist/model/wTEmployeeAPIKeyUpdateParams.d.ts +15 -0
  919. package/dist/model/wTEmployeeAPIKeyUpdateParams.js +23 -0
  920. package/dist/model/wTEmployeeAPIKeyUpdateParams.js.map +1 -0
  921. package/dist/model/wTEmployeeCreate.d.ts +19 -0
  922. package/dist/model/wTEmployeeCreate.js +43 -0
  923. package/dist/model/wTEmployeeCreate.js.map +1 -0
  924. package/dist/model/wTEmployeeNotification.d.ts +17 -0
  925. package/dist/model/wTEmployeeNotification.js +33 -0
  926. package/dist/model/wTEmployeeNotification.js.map +1 -0
  927. package/dist/model/wTEmployeeUpdate.d.ts +18 -0
  928. package/dist/model/wTEmployeeUpdate.js +38 -0
  929. package/dist/model/wTEmployeeUpdate.js.map +1 -0
  930. package/dist/model/wTImportedList.d.ts +21 -0
  931. package/dist/model/wTImportedList.js +53 -0
  932. package/dist/model/wTImportedList.js.map +1 -0
  933. package/dist/model/wTLinkBookCreateParams.d.ts +18 -0
  934. package/dist/model/wTLinkBookCreateParams.js +38 -0
  935. package/dist/model/wTLinkBookCreateParams.js.map +1 -0
  936. package/dist/model/wTLinkBookSectionCreateParams.d.ts +14 -0
  937. package/dist/model/wTLinkBookSectionCreateParams.js +18 -0
  938. package/dist/model/wTLinkBookSectionCreateParams.js.map +1 -0
  939. package/dist/model/wTLinkBookSectionUpdateParams.d.ts +14 -0
  940. package/dist/model/wTLinkBookSectionUpdateParams.js +18 -0
  941. package/dist/model/wTLinkBookSectionUpdateParams.js.map +1 -0
  942. package/dist/model/wTLinkBookUpdateParams.d.ts +18 -0
  943. package/dist/model/wTLinkBookUpdateParams.js +38 -0
  944. package/dist/model/wTLinkBookUpdateParams.js.map +1 -0
  945. package/dist/model/wTMember.d.ts +25 -0
  946. package/dist/model/wTMember.js +73 -0
  947. package/dist/model/wTMember.js.map +1 -0
  948. package/dist/model/wTMemberCreationParams.d.ts +19 -0
  949. package/dist/model/wTMemberCreationParams.js +43 -0
  950. package/dist/model/wTMemberCreationParams.js.map +1 -0
  951. package/dist/model/wTMembershipTier.d.ts +23 -0
  952. package/dist/model/wTMembershipTier.js +63 -0
  953. package/dist/model/wTMembershipTier.js.map +1 -0
  954. package/dist/model/wTMembershipTierCreationParams.d.ts +18 -0
  955. package/dist/model/wTMembershipTierCreationParams.js +38 -0
  956. package/dist/model/wTMembershipTierCreationParams.js.map +1 -0
  957. package/dist/model/wTMembershipTierUpdateParams.d.ts +18 -0
  958. package/dist/model/wTMembershipTierUpdateParams.js +38 -0
  959. package/dist/model/wTMembershipTierUpdateParams.js.map +1 -0
  960. package/dist/model/wTMembershipTierWithMemberCount.d.ts +24 -0
  961. package/dist/model/wTMembershipTierWithMemberCount.js +68 -0
  962. package/dist/model/wTMembershipTierWithMemberCount.js.map +1 -0
  963. package/dist/model/wTMerchantCredit.d.ts +23 -0
  964. package/dist/model/wTMerchantCredit.js +63 -0
  965. package/dist/model/wTMerchantCredit.js.map +1 -0
  966. package/dist/model/wTMerchantCreditCreationParams.d.ts +16 -0
  967. package/dist/model/wTMerchantCreditCreationParams.js +28 -0
  968. package/dist/model/wTMerchantCreditCreationParams.js.map +1 -0
  969. package/dist/model/wTMerchantURLCreate.d.ts +15 -0
  970. package/dist/model/wTMerchantURLCreate.js +23 -0
  971. package/dist/model/wTMerchantURLCreate.js.map +1 -0
  972. package/dist/model/wTMerchantURLUpdate.d.ts +15 -0
  973. package/dist/model/wTMerchantURLUpdate.js +23 -0
  974. package/dist/model/wTMerchantURLUpdate.js.map +1 -0
  975. package/dist/model/wTNewsArticleCreateParams.d.ts +18 -0
  976. package/dist/model/wTNewsArticleCreateParams.js +38 -0
  977. package/dist/model/wTNewsArticleCreateParams.js.map +1 -0
  978. package/dist/model/wTNewsArticleUpdateParams.d.ts +18 -0
  979. package/dist/model/wTNewsArticleUpdateParams.js +38 -0
  980. package/dist/model/wTNewsArticleUpdateParams.js.map +1 -0
  981. package/dist/model/wTOptInList.d.ts +29 -0
  982. package/dist/model/wTOptInList.js +93 -0
  983. package/dist/model/wTOptInList.js.map +1 -0
  984. package/dist/model/wTOptInListCreationParams.d.ts +24 -0
  985. package/dist/model/wTOptInListCreationParams.js +68 -0
  986. package/dist/model/wTOptInListCreationParams.js.map +1 -0
  987. package/dist/model/wTPaymentDesign.d.ts +32 -0
  988. package/dist/model/wTPaymentDesign.js +108 -0
  989. package/dist/model/wTPaymentDesign.js.map +1 -0
  990. package/dist/model/wTPaymentDesignCreateParams.d.ts +28 -0
  991. package/dist/model/wTPaymentDesignCreateParams.js +88 -0
  992. package/dist/model/wTPaymentDesignCreateParams.js.map +1 -0
  993. package/dist/model/wTPaymentDesignUpdateParams.d.ts +28 -0
  994. package/dist/model/wTPaymentDesignUpdateParams.js +88 -0
  995. package/dist/model/wTPaymentDesignUpdateParams.js.map +1 -0
  996. package/dist/model/wTPerformanceCreateParams.d.ts +21 -0
  997. package/dist/model/wTPerformanceCreateParams.js +53 -0
  998. package/dist/model/wTPerformanceCreateParams.js.map +1 -0
  999. package/dist/model/wTPerformanceUpdateParams.d.ts +21 -0
  1000. package/dist/model/wTPerformanceUpdateParams.js +53 -0
  1001. package/dist/model/wTPerformanceUpdateParams.js.map +1 -0
  1002. package/dist/model/wTPosMachine.d.ts +23 -0
  1003. package/dist/model/wTPosMachine.js +63 -0
  1004. package/dist/model/wTPosMachine.js.map +1 -0
  1005. package/dist/model/wTPosMachineCreateParams.d.ts +18 -0
  1006. package/dist/model/wTPosMachineCreateParams.js +38 -0
  1007. package/dist/model/wTPosMachineCreateParams.js.map +1 -0
  1008. package/dist/model/wTPosMachineUpdateParams.d.ts +18 -0
  1009. package/dist/model/wTPosMachineUpdateParams.js +38 -0
  1010. package/dist/model/wTPosMachineUpdateParams.js.map +1 -0
  1011. package/dist/model/wTPromoCodeCreateParams.d.ts +21 -0
  1012. package/dist/model/wTPromoCodeCreateParams.js +53 -0
  1013. package/dist/model/wTPromoCodeCreateParams.js.map +1 -0
  1014. package/dist/model/wTPromoCodeUpdateParams.d.ts +21 -0
  1015. package/dist/model/wTPromoCodeUpdateParams.js +53 -0
  1016. package/dist/model/wTPromoCodeUpdateParams.js.map +1 -0
  1017. package/dist/model/wTRole.d.ts +29 -0
  1018. package/dist/model/wTRole.js +88 -0
  1019. package/dist/model/wTRole.js.map +1 -0
  1020. package/dist/model/wTStaticVoucher.d.ts +46 -0
  1021. package/dist/model/wTStaticVoucher.js +173 -0
  1022. package/dist/model/wTStaticVoucher.js.map +1 -0
  1023. package/dist/model/wTStaticVoucherCampaign.d.ts +38 -0
  1024. package/dist/model/wTStaticVoucherCampaign.js +138 -0
  1025. package/dist/model/wTStaticVoucherCampaign.js.map +1 -0
  1026. package/dist/model/wTStaticVoucherCreateParams.d.ts +17 -0
  1027. package/dist/model/wTStaticVoucherCreateParams.js +33 -0
  1028. package/dist/model/wTStaticVoucherCreateParams.js.map +1 -0
  1029. package/dist/model/wTStaticVoucherUpdateParams.d.ts +16 -0
  1030. package/dist/model/wTStaticVoucherUpdateParams.js +28 -0
  1031. package/dist/model/wTStaticVoucherUpdateParams.js.map +1 -0
  1032. package/dist/model/wTWalletPageView.d.ts +51 -0
  1033. package/dist/model/wTWalletPageView.js +198 -0
  1034. package/dist/model/wTWalletPageView.js.map +1 -0
  1035. package/dist/model/wTWalletPageViewGeoPoint.d.ts +15 -0
  1036. package/dist/model/wTWalletPageViewGeoPoint.js +23 -0
  1037. package/dist/model/wTWalletPageViewGeoPoint.js.map +1 -0
  1038. package/dist/model/walletConfiguration.d.ts +50 -0
  1039. package/dist/model/walletConfiguration.js +198 -0
  1040. package/dist/model/walletConfiguration.js.map +1 -0
  1041. package/dist/model/walletPageView.d.ts +51 -0
  1042. package/dist/model/walletPageView.js +198 -0
  1043. package/dist/model/walletPageView.js.map +1 -0
  1044. package/dist/model/webpage.d.ts +23 -0
  1045. package/dist/model/webpage.js +63 -0
  1046. package/dist/model/webpage.js.map +1 -0
  1047. package/examples/advertisementcredits.example.ts +17 -9
  1048. package/examples/clubmembers.example.ts +8 -5
  1049. package/examples/constants.ts +6 -0
  1050. package/examples/linkbook.example.ts +8 -5
  1051. package/examples/membershiptiers.example.ts +8 -5
  1052. package/examples/merchantcredits.example.ts +52 -0
  1053. package/examples/merchanturls.example.ts +8 -5
  1054. package/examples/news.example.ts +8 -5
  1055. package/examples/paymentdesigns.example.ts +7 -4
  1056. package/examples/performances.example.ts +58 -0
  1057. package/examples/promocodes.example.ts +56 -0
  1058. package/model/advertisementCredit.ts +1 -1
  1059. package/model/advertisementCreditBroadcast.ts +1 -1
  1060. package/model/advertisementCreditScan.ts +1 -1
  1061. package/model/agreement.ts +1 -1
  1062. package/model/alert.ts +1 -1
  1063. package/model/announcement.ts +1 -1
  1064. package/model/applicableTerminals.ts +1 -1
  1065. package/model/applicableTerminalsAnyOf.ts +1 -1
  1066. package/model/applicableTerminalsAnyOf1.ts +1 -1
  1067. package/model/applicableTerminalsAnyOf2.ts +1 -1
  1068. package/model/applicableTerminalsAnyOf3.ts +1 -1
  1069. package/model/authError.ts +1 -1
  1070. package/model/availablePhoneNumbersRequest.ts +1 -1
  1071. package/model/clickFunnelAmount.ts +1 -1
  1072. package/model/clickFunnelContact.ts +1 -1
  1073. package/model/clickFunnelContactProfile.ts +1 -1
  1074. package/model/clickFunnelEvent.ts +1 -1
  1075. package/model/clickFunnelOriginalAmount.ts +1 -1
  1076. package/model/clickFunnelProduct.ts +1 -1
  1077. package/model/clickFunnelPurchase.ts +1 -1
  1078. package/model/createStaticVoucherCampaign.ts +1 -1
  1079. package/model/createStaticVoucherCampaignWithVoucher.ts +1 -1
  1080. package/model/createStaticVoucherCampaignWithVoucherWithCSV.ts +1 -1
  1081. package/model/dashboardWidget.ts +1 -1
  1082. package/model/duplicateRowFound.ts +1 -1
  1083. package/model/dynamicVoucher.ts +1 -1
  1084. package/model/dynamicVoucherBroadcast.ts +1 -1
  1085. package/model/employee.ts +1 -1
  1086. package/model/employeeAPIKey.ts +82 -0
  1087. package/model/employeeActivityLog.ts +1 -1
  1088. package/model/employeeAlert.ts +1 -1
  1089. package/model/entityTooLarge.ts +55 -0
  1090. package/model/exportDataFile.ts +1 -1
  1091. package/model/falsumError.ts +1 -1
  1092. package/model/falsumField.ts +1 -1
  1093. package/model/feature.ts +1 -1
  1094. package/model/forbiddenRequest.ts +1 -1
  1095. package/model/foreignKeyDoesNotExist.ts +1 -1
  1096. package/model/helpDeskRequest.ts +1 -1
  1097. package/model/importedList.ts +1 -1
  1098. package/model/importedListRecipient.ts +1 -1
  1099. package/model/inboundSMS.ts +229 -0
  1100. package/model/inlineObject.ts +1 -1
  1101. package/model/inlineObject1.ts +1 -1
  1102. package/model/inlineObject10.ts +1 -1
  1103. package/model/inlineObject11.ts +1 -1
  1104. package/model/inlineObject12.ts +1 -1
  1105. package/model/inlineObject13.ts +1 -1
  1106. package/model/inlineObject14.ts +1 -1
  1107. package/model/inlineObject15.ts +1 -1
  1108. package/model/inlineObject16.ts +1 -1
  1109. package/model/inlineObject17.ts +1 -1
  1110. package/model/inlineObject18.ts +1 -1
  1111. package/model/inlineObject19.ts +1 -1
  1112. package/model/inlineObject2.ts +1 -1
  1113. package/model/inlineObject20.ts +1 -1
  1114. package/model/inlineObject21.ts +1 -1
  1115. package/model/inlineObject22.ts +1 -1
  1116. package/model/inlineObject23.ts +1 -1
  1117. package/model/inlineObject24.ts +1 -1
  1118. package/model/inlineObject25.ts +1 -1
  1119. package/model/inlineObject26.ts +1 -1
  1120. package/model/inlineObject27.ts +1 -1
  1121. package/model/inlineObject28.ts +1 -1
  1122. package/model/inlineObject29.ts +1 -1
  1123. package/model/inlineObject3.ts +1 -1
  1124. package/model/inlineObject30.ts +1 -1
  1125. package/model/inlineObject31.ts +1 -1
  1126. package/model/inlineObject32.ts +1 -1
  1127. package/model/inlineObject33.ts +1 -1
  1128. package/model/inlineObject34.ts +1 -1
  1129. package/model/inlineObject35.ts +1 -1
  1130. package/model/inlineObject36.ts +1 -1
  1131. package/model/inlineObject37.ts +1 -1
  1132. package/model/inlineObject38.ts +1 -1
  1133. package/model/inlineObject39.ts +1 -1
  1134. package/model/inlineObject4.ts +1 -1
  1135. package/model/inlineObject40.ts +1 -1
  1136. package/model/inlineObject41.ts +1 -1
  1137. package/model/inlineObject42.ts +1 -1
  1138. package/model/inlineObject43.ts +1 -1
  1139. package/model/inlineObject44.ts +1 -1
  1140. package/model/inlineObject45.ts +1 -1
  1141. package/model/inlineObject46.ts +1 -1
  1142. package/model/inlineObject47.ts +1 -1
  1143. package/model/inlineObject48.ts +1 -1
  1144. package/model/inlineObject49.ts +1 -1
  1145. package/model/inlineObject5.ts +1 -1
  1146. package/model/inlineObject50.ts +1 -1
  1147. package/model/inlineObject51.ts +1 -1
  1148. package/model/inlineObject52.ts +1 -1
  1149. package/model/inlineObject53.ts +1 -1
  1150. package/model/inlineObject54.ts +1 -1
  1151. package/model/inlineObject55.ts +1 -1
  1152. package/model/inlineObject56.ts +8 -8
  1153. package/model/inlineObject57.ts +1 -1
  1154. package/model/inlineObject58.ts +13 -7
  1155. package/model/inlineObject59.ts +11 -11
  1156. package/model/inlineObject6.ts +1 -1
  1157. package/model/inlineObject60.ts +1 -1
  1158. package/model/inlineObject61.ts +7 -13
  1159. package/model/inlineObject62.ts +8 -8
  1160. package/model/inlineObject63.ts +1 -1
  1161. package/model/inlineObject64.ts +188 -8
  1162. package/model/inlineObject65.ts +13 -169
  1163. package/model/inlineObject66.ts +1 -1
  1164. package/model/inlineObject67.ts +7 -19
  1165. package/model/inlineObject68.ts +88 -4
  1166. package/model/inlineObject69.ts +1 -1
  1167. package/model/inlineObject7.ts +1 -1
  1168. package/model/inlineObject8.ts +1 -1
  1169. package/model/inlineObject9.ts +1 -1
  1170. package/model/inlineResponse200.ts +1 -1
  1171. package/model/inlineResponse2001.ts +1 -1
  1172. package/model/inlineResponse20010.ts +14 -79
  1173. package/model/inlineResponse20011.ts +9 -15
  1174. package/model/inlineResponse20012.ts +98 -0
  1175. package/model/inlineResponse20013.ts +109 -0
  1176. package/model/inlineResponse20014.ts +43 -0
  1177. package/model/inlineResponse2002.ts +1 -1
  1178. package/model/inlineResponse2003.ts +1 -1
  1179. package/model/inlineResponse2004.ts +1 -1
  1180. package/model/inlineResponse2005.ts +1 -1
  1181. package/model/inlineResponse2006.ts +1 -1
  1182. package/model/inlineResponse2007.ts +1 -1
  1183. package/model/inlineResponse2008.ts +1 -1
  1184. package/model/inlineResponse2009.ts +12 -66
  1185. package/model/internalServerError.ts +1 -1
  1186. package/model/ledgerEntry.ts +1 -1
  1187. package/model/linkBook.ts +1 -1
  1188. package/model/linkBookSection.ts +4 -4
  1189. package/model/mSMemberHistory.ts +1 -1
  1190. package/model/mSMemberHistoryPagination.ts +1 -1
  1191. package/model/mSMemberRedemption.ts +1 -1
  1192. package/model/mSMemberRedemptionPagination.ts +1 -1
  1193. package/model/mSMembershipTierHistory.ts +1 -1
  1194. package/model/mSMembershipTierHistoryPagination.ts +1 -1
  1195. package/model/mSMembershipTierRedemption.ts +1 -1
  1196. package/model/mSMembershipTierRedemptionPagination.ts +1 -1
  1197. package/model/mSMerchantCreditHistory.ts +1 -1
  1198. package/model/mSMerchantCreditHistoryPagination.ts +1 -1
  1199. package/model/mSMerchantCreditRedemption.ts +1 -1
  1200. package/model/mSMerchantCreditRedemptionPagination.ts +1 -1
  1201. package/model/mediaFile.ts +1 -1
  1202. package/model/member.ts +1 -1
  1203. package/model/memberSearch.ts +1 -1
  1204. package/model/merchant.ts +7 -1
  1205. package/model/merchantCreditSearch.ts +1 -1
  1206. package/model/merchantNotInitialized.ts +1 -1
  1207. package/model/merchantURL.ts +1 -1
  1208. package/model/message.ts +1 -1
  1209. package/model/models.ts +51 -9
  1210. package/model/moduleError.ts +1 -7
  1211. package/model/newsArticle.ts +1 -1
  1212. package/model/optInList.ts +1 -1
  1213. package/model/optInListSource.ts +1 -1
  1214. package/model/optInListSubscriber.ts +1 -1
  1215. package/model/outboundSMS.ts +13 -13
  1216. package/model/paginatedWTMembers.ts +1 -1
  1217. package/model/paginatedWTMerchantCredits.ts +1 -1
  1218. package/model/paginationRequestWithIDAndWithoutSortOptions.ts +49 -0
  1219. package/model/paginationRequestWithSortOptions.ts +1 -1
  1220. package/model/paymentDesign.ts +1 -1
  1221. package/model/performance.ts +10 -1
  1222. package/model/phoneNumber.ts +1 -1
  1223. package/model/pickCreateStaticVoucherCampaignWithVoucherExcludeKeyofcreateStaticVoucherCampaignWithVoucherSourceID.ts +1 -1
  1224. package/model/pickMSEmployeeAPIKeyCreateParamsExcludeKeyofMSEmployeeAPIKeyCreateParamsEmployeeID.ts +40 -0
  1225. package/model/pickMSEmployeeAPIKeyUpdateParamsExcludeKeyofMSEmployeeAPIKeyUpdateParamsId.ts +40 -0
  1226. package/model/pickMSMemberCreationParamsExcludeKeyofMSMemberCreationParamsMemberIdentifier.ts +1 -1
  1227. package/model/pickMSMemberExcludeKeyofMSMemberMemberIdentifier.ts +1 -1
  1228. package/model/pickMSMerchantCreditCreationParamsExcludeKeyofMSMerchantCreditCreationParamsMemberIdentifier.ts +1 -1
  1229. package/model/pickMSMerchantCreditExcludeKeyofMSMerchantCreditMemberIdentifier.ts +1 -1
  1230. package/model/pickPaginationRequestWithoutSortOptionsExcludeKeyofPaginationRequestWithoutSortOptionsIsArchiveIncluded.ts +1 -1
  1231. package/model/pickSSImportedListUpdateParamsExcludeKeyofSSImportedListUpdateParamsId.ts +1 -1
  1232. package/model/pickSSMobileNumberUpdateParamsExcludeKeyofSSMobileNumberUpdateParamsId.ts +1 -1
  1233. package/model/pickSSOptInListCreateParamsExcludeKeyofSSOptInListCreateParamsEmployeeID.ts +1 -1
  1234. package/model/pickSSOptInListMemberCreateParamsExcludeKeyofSSOptInListMemberCreateParamsMerchantCreatedAtOrMaxSMSCount.ts +64 -0
  1235. package/model/pickSSOptInListUpdateParamsExcludeKeyofSSOptInListUpdateParamsId.ts +1 -1
  1236. package/model/pickSSOptInSourceUpdateParamsExcludeKeyofSSOptInSourceUpdateParamsId.ts +1 -1
  1237. package/model/pickSSOutboundMessageLogExcludeKeyofSSOutboundMessageLogToCellPhone.ts +13 -13
  1238. package/model/pickVSAdvertisementCreditCreateParamsExcludeKeyofVSAdvertisementCreditCreateParamsEmployeeID.ts +58 -0
  1239. package/model/pickVSAdvertisementCreditScanExcludeKeyofVSAdvertisementCreditScanRedeemedAtOrRefundedAt.ts +1 -1
  1240. package/model/pickVSAdvertisementCreditUpdateParamsExcludeKeyofVSAdvertisementCreditUpdateParamsId.ts +1 -1
  1241. package/model/pickVSCampaignUpdateParamsExcludeKeyofVSCampaignUpdateParamsStartDateOrExpirationDate.ts +1 -1
  1242. package/model/pickVSDynamicVoucherExcludeKeyofVSDynamicVoucherTemporalDecreaseFrequencyType.ts +1 -1
  1243. package/model/pickVSPaymentDesignCreateParamsExcludeKeyofVSPaymentDesignCreateParamsBackgroundImageURLOrCompanyLogoURLOrEmployeeID.ts +1 -1
  1244. package/model/pickVSPaymentDesignUpdateParamsExcludeKeyofVSPaymentDesignUpdateParamsId.ts +1 -1
  1245. package/model/pickVSStaticVoucherExcludeKeyofVSStaticVoucherRedeemedAtOrRefundedAtOrLastViewedAt.ts +1 -1
  1246. package/model/pickWTAdvertisementCreditCreateParamsExcludeKeyofWTAdvertisementCreditCreateParamsEmployeeID.ts +1 -1
  1247. package/model/pickWTEmployeeCreateExcludeKeyofWTEmployeeCreateEmail.ts +1 -1
  1248. package/model/pickWTMemberMemberIDOrFirstNameOrLastNameOrMembershipTierIDOrPointsAccruedOrMobileNumber.ts +1 -1
  1249. package/model/pickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber.ts +1 -1
  1250. package/model/pickWTMerchantURLUpdateExcludeKeyofWTMerchantURLUpdateUrlID.ts +1 -1
  1251. package/model/pickWTNewsArticleUpdateParamsExcludeKeyofWTNewsArticleUpdateParamsId.ts +1 -1
  1252. package/model/pickWTPaymentObjectBroadcastExcludeKeyofWTPaymentObjectBroadcastListTypeOrListID.ts +1 -1
  1253. package/model/pickWTStaticVoucherCampaignCreateParamsExcludeKeyofWTStaticVoucherCampaignCreateParamsStartDateTimeOrExpirationDateTime.ts +1 -1
  1254. package/model/pickWTStaticVoucherCreateParamsExcludeKeyofWTStaticVoucherCreateParamsCampaignID.ts +1 -1
  1255. package/model/plan.ts +1 -1
  1256. package/model/portalPage.ts +2 -3
  1257. package/model/presignedPost.ts +1 -1
  1258. package/model/presignedPostFields.ts +1 -1
  1259. package/model/product.ts +1 -1
  1260. package/model/promoCode.ts +7 -1
  1261. package/model/reachPerformanceStats.ts +55 -1
  1262. package/model/request.ts +1 -1
  1263. package/model/response.ts +1 -1
  1264. package/model/role.ts +1 -1
  1265. package/model/roleAuditLog.ts +1 -1
  1266. package/model/sSImportedListRecipientCreateParams.ts +37 -0
  1267. package/model/sSOptInSource.ts +1 -1
  1268. package/model/simpleSMSBroadcast.ts +1 -1
  1269. package/model/staticVoucher.ts +1 -1
  1270. package/model/staticVoucherCampaign.ts +1 -1
  1271. package/model/staticVoucherCampaignBroadcast.ts +1 -1
  1272. package/model/staticVoucherCampaignGroup.ts +1 -1
  1273. package/model/staticVoucherCampaignUpdate.ts +1 -1
  1274. package/model/status.ts +1 -1
  1275. package/model/statusAnyOf.ts +1 -1
  1276. package/model/statusAnyOf1.ts +1 -1
  1277. package/model/statusAnyOf2.ts +1 -1
  1278. package/model/statusAnyOf3.ts +1 -1
  1279. package/model/subscriptionFeature.ts +1 -1
  1280. package/model/subscriptionPlan.ts +1 -1
  1281. package/model/subscriptionProduct.ts +1 -1
  1282. package/model/tcpa.ts +1 -1
  1283. package/model/updateStaticVoucherCampaignWithVoucher.ts +1 -1
  1284. package/model/vSCampaignGeneratedMessage.ts +1 -1
  1285. package/model/vSCampaignGeneratedMessagePagination.ts +1 -1
  1286. package/model/vSDynamicVoucherStatus.ts +1 -1
  1287. package/model/wTAdvertisementCredit.ts +1 -1
  1288. package/model/wTAdvertisementCreditCreateParams.ts +55 -0
  1289. package/model/wTAdvertisementCreditScan.ts +1 -1
  1290. package/model/wTAdvertisementCreditUpdateParams.ts +1 -1
  1291. package/model/wTDynamicVoucher.ts +1 -1
  1292. package/model/wTDynamicVoucherCreateParams.ts +1 -1
  1293. package/model/wTDynamicVoucherRedemption.ts +1 -1
  1294. package/model/wTDynamicVoucherSummary.ts +1 -1
  1295. package/model/wTDynamicVoucherUpdateParams.ts +1 -1
  1296. package/model/wTEmployee.ts +1 -1
  1297. package/model/wTEmployeeAPIKey.ts +82 -0
  1298. package/model/wTEmployeeAPIKeyCreateParams.ts +37 -0
  1299. package/model/wTEmployeeAPIKeyUpdateParams.ts +37 -0
  1300. package/model/wTEmployeeCreate.ts +1 -1
  1301. package/model/wTEmployeeNotification.ts +49 -0
  1302. package/model/wTEmployeeUpdate.ts +1 -1
  1303. package/model/wTImportedList.ts +1 -1
  1304. package/model/wTLinkBookCreateParams.ts +1 -1
  1305. package/model/wTLinkBookSectionCreateParams.ts +4 -4
  1306. package/model/wTLinkBookSectionUpdateParams.ts +4 -4
  1307. package/model/wTLinkBookUpdateParams.ts +1 -1
  1308. package/model/wTMember.ts +1 -1
  1309. package/model/wTMemberCreationParams.ts +1 -1
  1310. package/model/wTMembershipTier.ts +1 -1
  1311. package/model/wTMembershipTierCreationParams.ts +1 -1
  1312. package/model/wTMembershipTierUpdateParams.ts +1 -1
  1313. package/model/wTMembershipTierWithMemberCount.ts +1 -1
  1314. package/model/wTMerchantCredit.ts +1 -1
  1315. package/model/wTMerchantCreditCreationParams.ts +1 -1
  1316. package/model/wTMerchantURLCreate.ts +1 -1
  1317. package/model/wTMerchantURLUpdate.ts +1 -1
  1318. package/model/wTNewsArticleCreateParams.ts +1 -1
  1319. package/model/wTNewsArticleUpdateParams.ts +1 -1
  1320. package/model/wTOptInList.ts +1 -1
  1321. package/model/wTOptInListCreationParams.ts +1 -1
  1322. package/model/wTPaymentDesign.ts +1 -1
  1323. package/model/wTPaymentDesignCreateParams.ts +1 -1
  1324. package/model/wTPaymentDesignUpdateParams.ts +1 -1
  1325. package/model/wTPerformanceCreateParams.ts +10 -1
  1326. package/model/wTPerformanceUpdateParams.ts +10 -1
  1327. package/model/wTPosMachine.ts +1 -1
  1328. package/model/wTPosMachineCreateParams.ts +1 -1
  1329. package/model/wTPosMachineUpdateParams.ts +1 -1
  1330. package/model/wTPromoCodeCreateParams.ts +7 -1
  1331. package/model/wTPromoCodeUpdateParams.ts +7 -1
  1332. package/model/wTRole.ts +1 -1
  1333. package/model/wTStaticVoucher.ts +1 -1
  1334. package/model/wTStaticVoucherCampaign.ts +1 -1
  1335. package/model/wTStaticVoucherCreateParams.ts +1 -1
  1336. package/model/wTStaticVoucherUpdateParams.ts +1 -1
  1337. package/model/wTWalletPageView.ts +1 -1
  1338. package/model/wTWalletPageViewGeoPoint.ts +1 -1
  1339. package/model/walletConfiguration.ts +250 -0
  1340. package/model/walletPageView.ts +1 -1
  1341. package/model/webpage.ts +1 -1
  1342. package/package.json +1 -29
  1343. package/readme-generator.py +23 -1
@@ -0,0 +1,2399 @@
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.SMSApi = exports.SMSApiApiKeys = 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 SMSApiApiKeys;
22
+ (function (SMSApiApiKeys) {
23
+ SMSApiApiKeys[SMSApiApiKeys["api_key"] = 0] = "api_key";
24
+ })(SMSApiApiKeys = exports.SMSApiApiKeys || (exports.SMSApiApiKeys = {}));
25
+ class SMSApi {
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[SMSApiApiKeys[key]].apiKey = value;
66
+ }
67
+ addInterceptor(interceptor) {
68
+ this.interceptors.push(interceptor);
69
+ }
70
+ acquirePhoneNumber(inlineObject52, options = { headers: {} }) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/acquire';
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
+ if (inlineObject52 === null || inlineObject52 === undefined) {
84
+ throw new Error('Required parameter inlineObject52 was null or undefined when calling acquirePhoneNumber.');
85
+ }
86
+ Object.assign(localVarHeaderParams, options.headers);
87
+ let localVarUseFormData = false;
88
+ let localVarRequestOptions = {
89
+ method: 'POST',
90
+ qs: localVarQueryParameters,
91
+ headers: localVarHeaderParams,
92
+ uri: localVarPath,
93
+ useQuerystring: this._useQuerystring,
94
+ json: true,
95
+ body: models_1.ObjectSerializer.serialize(inlineObject52, "InlineObject52")
96
+ };
97
+ let authenticationPromise = Promise.resolve();
98
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
99
+ let interceptorPromise = authenticationPromise;
100
+ for (const interceptor of this.interceptors) {
101
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
102
+ }
103
+ return interceptorPromise.then(() => {
104
+ if (Object.keys(localVarFormParams).length) {
105
+ if (localVarUseFormData) {
106
+ localVarRequestOptions.formData = localVarFormParams;
107
+ }
108
+ else {
109
+ localVarRequestOptions.form = localVarFormParams;
110
+ }
111
+ }
112
+ return new Promise((resolve, reject) => {
113
+ request_1.default(localVarRequestOptions, (error, response, body) => {
114
+ if (error) {
115
+ reject(error);
116
+ }
117
+ else {
118
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
119
+ body = models_1.ObjectSerializer.deserialize(body, "any");
120
+ resolve({ response: response, body: body });
121
+ }
122
+ else {
123
+ reject(new apis_1.HttpError(response, body, response.statusCode));
124
+ }
125
+ }
126
+ });
127
+ });
128
+ });
129
+ });
130
+ }
131
+ archivePhoneNumber(phoneNumberID, options = { headers: {} }) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
134
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
135
+ let localVarQueryParameters = {};
136
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
137
+ const produces = ['application/json'];
138
+ if (produces.indexOf('application/json') >= 0) {
139
+ localVarHeaderParams.Accept = 'application/json';
140
+ }
141
+ else {
142
+ localVarHeaderParams.Accept = produces.join(',');
143
+ }
144
+ let localVarFormParams = {};
145
+ if (phoneNumberID === null || phoneNumberID === undefined) {
146
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling archivePhoneNumber.');
147
+ }
148
+ Object.assign(localVarHeaderParams, options.headers);
149
+ let localVarUseFormData = false;
150
+ let localVarRequestOptions = {
151
+ method: 'DELETE',
152
+ qs: localVarQueryParameters,
153
+ headers: localVarHeaderParams,
154
+ uri: localVarPath,
155
+ useQuerystring: this._useQuerystring,
156
+ json: true,
157
+ };
158
+ let authenticationPromise = Promise.resolve();
159
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
160
+ let interceptorPromise = authenticationPromise;
161
+ for (const interceptor of this.interceptors) {
162
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
163
+ }
164
+ return interceptorPromise.then(() => {
165
+ if (Object.keys(localVarFormParams).length) {
166
+ if (localVarUseFormData) {
167
+ localVarRequestOptions.formData = localVarFormParams;
168
+ }
169
+ else {
170
+ localVarRequestOptions.form = localVarFormParams;
171
+ }
172
+ }
173
+ return new Promise((resolve, reject) => {
174
+ request_1.default(localVarRequestOptions, (error, response, body) => {
175
+ if (error) {
176
+ reject(error);
177
+ }
178
+ else {
179
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
180
+ body = models_1.ObjectSerializer.deserialize(body, "PhoneNumber");
181
+ resolve({ response: response, body: body });
182
+ }
183
+ else {
184
+ reject(new apis_1.HttpError(response, body, response.statusCode));
185
+ }
186
+ }
187
+ });
188
+ });
189
+ });
190
+ });
191
+ }
192
+ archiveRecipient(id, options = { headers: {} }) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{id}'
195
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
196
+ let localVarQueryParameters = {};
197
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
198
+ const produces = ['application/json'];
199
+ if (produces.indexOf('application/json') >= 0) {
200
+ localVarHeaderParams.Accept = 'application/json';
201
+ }
202
+ else {
203
+ localVarHeaderParams.Accept = produces.join(',');
204
+ }
205
+ let localVarFormParams = {};
206
+ if (id === null || id === undefined) {
207
+ throw new Error('Required parameter id was null or undefined when calling archiveRecipient.');
208
+ }
209
+ Object.assign(localVarHeaderParams, options.headers);
210
+ let localVarUseFormData = false;
211
+ let localVarRequestOptions = {
212
+ method: 'DELETE',
213
+ qs: localVarQueryParameters,
214
+ headers: localVarHeaderParams,
215
+ uri: localVarPath,
216
+ useQuerystring: this._useQuerystring,
217
+ json: true,
218
+ };
219
+ let authenticationPromise = Promise.resolve();
220
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
221
+ let interceptorPromise = authenticationPromise;
222
+ for (const interceptor of this.interceptors) {
223
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
224
+ }
225
+ return interceptorPromise.then(() => {
226
+ if (Object.keys(localVarFormParams).length) {
227
+ if (localVarUseFormData) {
228
+ localVarRequestOptions.formData = localVarFormParams;
229
+ }
230
+ else {
231
+ localVarRequestOptions.form = localVarFormParams;
232
+ }
233
+ }
234
+ return new Promise((resolve, reject) => {
235
+ request_1.default(localVarRequestOptions, (error, response, body) => {
236
+ if (error) {
237
+ reject(error);
238
+ }
239
+ else {
240
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
241
+ body = models_1.ObjectSerializer.deserialize(body, "ImportedListRecipient");
242
+ resolve({ response: response, body: body });
243
+ }
244
+ else {
245
+ reject(new apis_1.HttpError(response, body, response.statusCode));
246
+ }
247
+ }
248
+ });
249
+ });
250
+ });
251
+ });
252
+ }
253
+ countImportedListRecipients(listID, isArchiveIncluded, startDate, endDate, options = { headers: {} }) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/count/{listID}'
256
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
257
+ let localVarQueryParameters = {};
258
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
259
+ const produces = ['application/json'];
260
+ if (produces.indexOf('application/json') >= 0) {
261
+ localVarHeaderParams.Accept = 'application/json';
262
+ }
263
+ else {
264
+ localVarHeaderParams.Accept = produces.join(',');
265
+ }
266
+ let localVarFormParams = {};
267
+ if (listID === null || listID === undefined) {
268
+ throw new Error('Required parameter listID was null or undefined when calling countImportedListRecipients.');
269
+ }
270
+ if (isArchiveIncluded !== undefined) {
271
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
272
+ }
273
+ if (startDate !== undefined) {
274
+ localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "Date");
275
+ }
276
+ if (endDate !== undefined) {
277
+ localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "Date");
278
+ }
279
+ Object.assign(localVarHeaderParams, options.headers);
280
+ let localVarUseFormData = false;
281
+ let localVarRequestOptions = {
282
+ method: 'GET',
283
+ qs: localVarQueryParameters,
284
+ headers: localVarHeaderParams,
285
+ uri: localVarPath,
286
+ useQuerystring: this._useQuerystring,
287
+ json: true,
288
+ };
289
+ let authenticationPromise = Promise.resolve();
290
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
291
+ let interceptorPromise = authenticationPromise;
292
+ for (const interceptor of this.interceptors) {
293
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
294
+ }
295
+ return interceptorPromise.then(() => {
296
+ if (Object.keys(localVarFormParams).length) {
297
+ if (localVarUseFormData) {
298
+ localVarRequestOptions.formData = localVarFormParams;
299
+ }
300
+ else {
301
+ localVarRequestOptions.form = localVarFormParams;
302
+ }
303
+ }
304
+ return new Promise((resolve, reject) => {
305
+ request_1.default(localVarRequestOptions, (error, response, body) => {
306
+ if (error) {
307
+ reject(error);
308
+ }
309
+ else {
310
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
311
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2003");
312
+ resolve({ response: response, body: body });
313
+ }
314
+ else {
315
+ reject(new apis_1.HttpError(response, body, response.statusCode));
316
+ }
317
+ }
318
+ });
319
+ });
320
+ });
321
+ });
322
+ }
323
+ countOptInListSubscribers(listID, isSubscribed, isPendingAge21Verification, isArchiveIncluded, startDate, endDate, options = { headers: {} }) {
324
+ return __awaiter(this, void 0, void 0, function* () {
325
+ const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/count/{listID}'
326
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
327
+ let localVarQueryParameters = {};
328
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
329
+ const produces = ['application/json'];
330
+ if (produces.indexOf('application/json') >= 0) {
331
+ localVarHeaderParams.Accept = 'application/json';
332
+ }
333
+ else {
334
+ localVarHeaderParams.Accept = produces.join(',');
335
+ }
336
+ let localVarFormParams = {};
337
+ if (listID === null || listID === undefined) {
338
+ throw new Error('Required parameter listID was null or undefined when calling countOptInListSubscribers.');
339
+ }
340
+ if (isSubscribed !== undefined) {
341
+ localVarQueryParameters['isSubscribed'] = models_1.ObjectSerializer.serialize(isSubscribed, "boolean");
342
+ }
343
+ if (isPendingAge21Verification !== undefined) {
344
+ localVarQueryParameters['isPendingAge21Verification'] = models_1.ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
345
+ }
346
+ if (isArchiveIncluded !== undefined) {
347
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
348
+ }
349
+ if (startDate !== undefined) {
350
+ localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "Date");
351
+ }
352
+ if (endDate !== undefined) {
353
+ localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "Date");
354
+ }
355
+ Object.assign(localVarHeaderParams, options.headers);
356
+ let localVarUseFormData = false;
357
+ let localVarRequestOptions = {
358
+ method: 'GET',
359
+ qs: localVarQueryParameters,
360
+ headers: localVarHeaderParams,
361
+ uri: localVarPath,
362
+ useQuerystring: this._useQuerystring,
363
+ json: true,
364
+ };
365
+ let authenticationPromise = Promise.resolve();
366
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
367
+ let interceptorPromise = authenticationPromise;
368
+ for (const interceptor of this.interceptors) {
369
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
370
+ }
371
+ return interceptorPromise.then(() => {
372
+ if (Object.keys(localVarFormParams).length) {
373
+ if (localVarUseFormData) {
374
+ localVarRequestOptions.formData = localVarFormParams;
375
+ }
376
+ else {
377
+ localVarRequestOptions.form = localVarFormParams;
378
+ }
379
+ }
380
+ return new Promise((resolve, reject) => {
381
+ request_1.default(localVarRequestOptions, (error, response, body) => {
382
+ if (error) {
383
+ reject(error);
384
+ }
385
+ else {
386
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
387
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2003");
388
+ resolve({ response: response, body: body });
389
+ }
390
+ else {
391
+ reject(new apis_1.HttpError(response, body, response.statusCode));
392
+ }
393
+ }
394
+ });
395
+ });
396
+ });
397
+ });
398
+ }
399
+ countOptInSourceSubscribers(sourceID, isSubscribed, isPendingAge21Verification, isArchiveIncluded, startDate, endDate, options = { headers: {} }) {
400
+ return __awaiter(this, void 0, void 0, function* () {
401
+ const localVarPath = this.basePath + '/v2/sms/optInSource/subscribers/count/{sourceID}'
402
+ .replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
403
+ let localVarQueryParameters = {};
404
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
405
+ const produces = ['application/json'];
406
+ if (produces.indexOf('application/json') >= 0) {
407
+ localVarHeaderParams.Accept = 'application/json';
408
+ }
409
+ else {
410
+ localVarHeaderParams.Accept = produces.join(',');
411
+ }
412
+ let localVarFormParams = {};
413
+ if (sourceID === null || sourceID === undefined) {
414
+ throw new Error('Required parameter sourceID was null or undefined when calling countOptInSourceSubscribers.');
415
+ }
416
+ if (isSubscribed !== undefined) {
417
+ localVarQueryParameters['isSubscribed'] = models_1.ObjectSerializer.serialize(isSubscribed, "boolean");
418
+ }
419
+ if (isPendingAge21Verification !== undefined) {
420
+ localVarQueryParameters['isPendingAge21Verification'] = models_1.ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
421
+ }
422
+ if (isArchiveIncluded !== undefined) {
423
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
424
+ }
425
+ if (startDate !== undefined) {
426
+ localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "Date");
427
+ }
428
+ if (endDate !== undefined) {
429
+ localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "Date");
430
+ }
431
+ Object.assign(localVarHeaderParams, options.headers);
432
+ let localVarUseFormData = false;
433
+ let localVarRequestOptions = {
434
+ method: 'GET',
435
+ qs: localVarQueryParameters,
436
+ headers: localVarHeaderParams,
437
+ uri: localVarPath,
438
+ useQuerystring: this._useQuerystring,
439
+ json: true,
440
+ };
441
+ let authenticationPromise = Promise.resolve();
442
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
443
+ let interceptorPromise = authenticationPromise;
444
+ for (const interceptor of this.interceptors) {
445
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
446
+ }
447
+ return interceptorPromise.then(() => {
448
+ if (Object.keys(localVarFormParams).length) {
449
+ if (localVarUseFormData) {
450
+ localVarRequestOptions.formData = localVarFormParams;
451
+ }
452
+ else {
453
+ localVarRequestOptions.form = localVarFormParams;
454
+ }
455
+ }
456
+ return new Promise((resolve, reject) => {
457
+ request_1.default(localVarRequestOptions, (error, response, body) => {
458
+ if (error) {
459
+ reject(error);
460
+ }
461
+ else {
462
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
463
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2003");
464
+ resolve({ response: response, body: body });
465
+ }
466
+ else {
467
+ reject(new apis_1.HttpError(response, body, response.statusCode));
468
+ }
469
+ }
470
+ });
471
+ });
472
+ });
473
+ });
474
+ }
475
+ countOutboundSMS(phoneNumberID, toPhoneNumber, status, paymentObjectBroadcastID, options = { headers: {} }) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ const localVarPath = this.basePath + '/v2/sms/outbound/count/{phoneNumberID}'
478
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
479
+ let localVarQueryParameters = {};
480
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
481
+ const produces = ['application/json'];
482
+ if (produces.indexOf('application/json') >= 0) {
483
+ localVarHeaderParams.Accept = 'application/json';
484
+ }
485
+ else {
486
+ localVarHeaderParams.Accept = produces.join(',');
487
+ }
488
+ let localVarFormParams = {};
489
+ if (phoneNumberID === null || phoneNumberID === undefined) {
490
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling countOutboundSMS.');
491
+ }
492
+ if (toPhoneNumber !== undefined) {
493
+ localVarQueryParameters['toPhoneNumber'] = models_1.ObjectSerializer.serialize(toPhoneNumber, "string");
494
+ }
495
+ if (status !== undefined) {
496
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "string");
497
+ }
498
+ if (paymentObjectBroadcastID !== undefined) {
499
+ localVarQueryParameters['paymentObjectBroadcastID'] = models_1.ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
500
+ }
501
+ Object.assign(localVarHeaderParams, options.headers);
502
+ let localVarUseFormData = false;
503
+ let localVarRequestOptions = {
504
+ method: 'GET',
505
+ qs: localVarQueryParameters,
506
+ headers: localVarHeaderParams,
507
+ uri: localVarPath,
508
+ useQuerystring: this._useQuerystring,
509
+ json: true,
510
+ };
511
+ let authenticationPromise = Promise.resolve();
512
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
513
+ let interceptorPromise = authenticationPromise;
514
+ for (const interceptor of this.interceptors) {
515
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
516
+ }
517
+ return interceptorPromise.then(() => {
518
+ if (Object.keys(localVarFormParams).length) {
519
+ if (localVarUseFormData) {
520
+ localVarRequestOptions.formData = localVarFormParams;
521
+ }
522
+ else {
523
+ localVarRequestOptions.form = localVarFormParams;
524
+ }
525
+ }
526
+ return new Promise((resolve, reject) => {
527
+ request_1.default(localVarRequestOptions, (error, response, body) => {
528
+ if (error) {
529
+ reject(error);
530
+ }
531
+ else {
532
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
533
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2002");
534
+ resolve({ response: response, body: body });
535
+ }
536
+ else {
537
+ reject(new apis_1.HttpError(response, body, response.statusCode));
538
+ }
539
+ }
540
+ });
541
+ });
542
+ });
543
+ });
544
+ }
545
+ createImportedList(inlineObject59, options = { headers: {} }) {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ const localVarPath = this.basePath + '/v2/sms/importedList';
548
+ let localVarQueryParameters = {};
549
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
550
+ const produces = ['application/json'];
551
+ if (produces.indexOf('application/json') >= 0) {
552
+ localVarHeaderParams.Accept = 'application/json';
553
+ }
554
+ else {
555
+ localVarHeaderParams.Accept = produces.join(',');
556
+ }
557
+ let localVarFormParams = {};
558
+ if (inlineObject59 === null || inlineObject59 === undefined) {
559
+ throw new Error('Required parameter inlineObject59 was null or undefined when calling createImportedList.');
560
+ }
561
+ Object.assign(localVarHeaderParams, options.headers);
562
+ let localVarUseFormData = false;
563
+ let localVarRequestOptions = {
564
+ method: 'POST',
565
+ qs: localVarQueryParameters,
566
+ headers: localVarHeaderParams,
567
+ uri: localVarPath,
568
+ useQuerystring: this._useQuerystring,
569
+ json: true,
570
+ body: models_1.ObjectSerializer.serialize(inlineObject59, "InlineObject59")
571
+ };
572
+ let authenticationPromise = Promise.resolve();
573
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
574
+ let interceptorPromise = authenticationPromise;
575
+ for (const interceptor of this.interceptors) {
576
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
577
+ }
578
+ return interceptorPromise.then(() => {
579
+ if (Object.keys(localVarFormParams).length) {
580
+ if (localVarUseFormData) {
581
+ localVarRequestOptions.formData = localVarFormParams;
582
+ }
583
+ else {
584
+ localVarRequestOptions.form = localVarFormParams;
585
+ }
586
+ }
587
+ return new Promise((resolve, reject) => {
588
+ request_1.default(localVarRequestOptions, (error, response, body) => {
589
+ if (error) {
590
+ reject(error);
591
+ }
592
+ else {
593
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
594
+ body = models_1.ObjectSerializer.deserialize(body, "ImportedList");
595
+ resolve({ response: response, body: body });
596
+ }
597
+ else {
598
+ reject(new apis_1.HttpError(response, body, response.statusCode));
599
+ }
600
+ }
601
+ });
602
+ });
603
+ });
604
+ });
605
+ }
606
+ createOptInList(wTOptInListCreationParams, options = { headers: {} }) {
607
+ return __awaiter(this, void 0, void 0, function* () {
608
+ const localVarPath = this.basePath + '/v2/sms/optInList';
609
+ let localVarQueryParameters = {};
610
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
611
+ const produces = ['application/json'];
612
+ if (produces.indexOf('application/json') >= 0) {
613
+ localVarHeaderParams.Accept = 'application/json';
614
+ }
615
+ else {
616
+ localVarHeaderParams.Accept = produces.join(',');
617
+ }
618
+ let localVarFormParams = {};
619
+ if (wTOptInListCreationParams === null || wTOptInListCreationParams === undefined) {
620
+ throw new Error('Required parameter wTOptInListCreationParams was null or undefined when calling createOptInList.');
621
+ }
622
+ Object.assign(localVarHeaderParams, options.headers);
623
+ let localVarUseFormData = false;
624
+ let localVarRequestOptions = {
625
+ method: 'POST',
626
+ qs: localVarQueryParameters,
627
+ headers: localVarHeaderParams,
628
+ uri: localVarPath,
629
+ useQuerystring: this._useQuerystring,
630
+ json: true,
631
+ body: models_1.ObjectSerializer.serialize(wTOptInListCreationParams, "WTOptInListCreationParams")
632
+ };
633
+ let authenticationPromise = Promise.resolve();
634
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
635
+ let interceptorPromise = authenticationPromise;
636
+ for (const interceptor of this.interceptors) {
637
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
638
+ }
639
+ return interceptorPromise.then(() => {
640
+ if (Object.keys(localVarFormParams).length) {
641
+ if (localVarUseFormData) {
642
+ localVarRequestOptions.formData = localVarFormParams;
643
+ }
644
+ else {
645
+ localVarRequestOptions.form = localVarFormParams;
646
+ }
647
+ }
648
+ return new Promise((resolve, reject) => {
649
+ request_1.default(localVarRequestOptions, (error, response, body) => {
650
+ if (error) {
651
+ reject(error);
652
+ }
653
+ else {
654
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
655
+ body = models_1.ObjectSerializer.deserialize(body, "OptInList");
656
+ resolve({ response: response, body: body });
657
+ }
658
+ else {
659
+ reject(new apis_1.HttpError(response, body, response.statusCode));
660
+ }
661
+ }
662
+ });
663
+ });
664
+ });
665
+ });
666
+ }
667
+ createOptInListSource(inlineObject56, options = { headers: {} }) {
668
+ return __awaiter(this, void 0, void 0, function* () {
669
+ const localVarPath = this.basePath + '/v2/sms/optInListSource';
670
+ let localVarQueryParameters = {};
671
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
672
+ const produces = ['application/json'];
673
+ if (produces.indexOf('application/json') >= 0) {
674
+ localVarHeaderParams.Accept = 'application/json';
675
+ }
676
+ else {
677
+ localVarHeaderParams.Accept = produces.join(',');
678
+ }
679
+ let localVarFormParams = {};
680
+ if (inlineObject56 === null || inlineObject56 === undefined) {
681
+ throw new Error('Required parameter inlineObject56 was null or undefined when calling createOptInListSource.');
682
+ }
683
+ Object.assign(localVarHeaderParams, options.headers);
684
+ let localVarUseFormData = false;
685
+ let localVarRequestOptions = {
686
+ method: 'POST',
687
+ qs: localVarQueryParameters,
688
+ headers: localVarHeaderParams,
689
+ uri: localVarPath,
690
+ useQuerystring: this._useQuerystring,
691
+ json: true,
692
+ body: models_1.ObjectSerializer.serialize(inlineObject56, "InlineObject56")
693
+ };
694
+ let authenticationPromise = Promise.resolve();
695
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
696
+ let interceptorPromise = authenticationPromise;
697
+ for (const interceptor of this.interceptors) {
698
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
699
+ }
700
+ return interceptorPromise.then(() => {
701
+ if (Object.keys(localVarFormParams).length) {
702
+ if (localVarUseFormData) {
703
+ localVarRequestOptions.formData = localVarFormParams;
704
+ }
705
+ else {
706
+ localVarRequestOptions.form = localVarFormParams;
707
+ }
708
+ }
709
+ return new Promise((resolve, reject) => {
710
+ request_1.default(localVarRequestOptions, (error, response, body) => {
711
+ if (error) {
712
+ reject(error);
713
+ }
714
+ else {
715
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
716
+ body = models_1.ObjectSerializer.deserialize(body, "OptInListSource");
717
+ resolve({ response: response, body: body });
718
+ }
719
+ else {
720
+ reject(new apis_1.HttpError(response, body, response.statusCode));
721
+ }
722
+ }
723
+ });
724
+ });
725
+ });
726
+ });
727
+ }
728
+ createRecipientInImportedList(sSImportedListRecipientCreateParams, options = { headers: {} }) {
729
+ return __awaiter(this, void 0, void 0, function* () {
730
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/create';
731
+ let localVarQueryParameters = {};
732
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
733
+ const produces = ['application/json'];
734
+ if (produces.indexOf('application/json') >= 0) {
735
+ localVarHeaderParams.Accept = 'application/json';
736
+ }
737
+ else {
738
+ localVarHeaderParams.Accept = produces.join(',');
739
+ }
740
+ let localVarFormParams = {};
741
+ if (sSImportedListRecipientCreateParams === null || sSImportedListRecipientCreateParams === undefined) {
742
+ throw new Error('Required parameter sSImportedListRecipientCreateParams was null or undefined when calling createRecipientInImportedList.');
743
+ }
744
+ Object.assign(localVarHeaderParams, options.headers);
745
+ let localVarUseFormData = false;
746
+ let localVarRequestOptions = {
747
+ method: 'POST',
748
+ qs: localVarQueryParameters,
749
+ headers: localVarHeaderParams,
750
+ uri: localVarPath,
751
+ useQuerystring: this._useQuerystring,
752
+ json: true,
753
+ body: models_1.ObjectSerializer.serialize(sSImportedListRecipientCreateParams, "SSImportedListRecipientCreateParams")
754
+ };
755
+ let authenticationPromise = Promise.resolve();
756
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
757
+ let interceptorPromise = authenticationPromise;
758
+ for (const interceptor of this.interceptors) {
759
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
760
+ }
761
+ return interceptorPromise.then(() => {
762
+ if (Object.keys(localVarFormParams).length) {
763
+ if (localVarUseFormData) {
764
+ localVarRequestOptions.formData = localVarFormParams;
765
+ }
766
+ else {
767
+ localVarRequestOptions.form = localVarFormParams;
768
+ }
769
+ }
770
+ return new Promise((resolve, reject) => {
771
+ request_1.default(localVarRequestOptions, (error, response, body) => {
772
+ if (error) {
773
+ reject(error);
774
+ }
775
+ else {
776
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
777
+ body = models_1.ObjectSerializer.deserialize(body, "ImportedListRecipient");
778
+ resolve({ response: response, body: body });
779
+ }
780
+ else {
781
+ reject(new apis_1.HttpError(response, body, response.statusCode));
782
+ }
783
+ }
784
+ });
785
+ });
786
+ });
787
+ });
788
+ }
789
+ createSMSAgreement(inlineObject51, options = { headers: {} }) {
790
+ return __awaiter(this, void 0, void 0, function* () {
791
+ const localVarPath = this.basePath + '/v2/sms/agreement/create';
792
+ let localVarQueryParameters = {};
793
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
794
+ const produces = ['application/json'];
795
+ if (produces.indexOf('application/json') >= 0) {
796
+ localVarHeaderParams.Accept = 'application/json';
797
+ }
798
+ else {
799
+ localVarHeaderParams.Accept = produces.join(',');
800
+ }
801
+ let localVarFormParams = {};
802
+ if (inlineObject51 === null || inlineObject51 === undefined) {
803
+ throw new Error('Required parameter inlineObject51 was null or undefined when calling createSMSAgreement.');
804
+ }
805
+ Object.assign(localVarHeaderParams, options.headers);
806
+ let localVarUseFormData = false;
807
+ let localVarRequestOptions = {
808
+ method: 'POST',
809
+ qs: localVarQueryParameters,
810
+ headers: localVarHeaderParams,
811
+ uri: localVarPath,
812
+ useQuerystring: this._useQuerystring,
813
+ json: true,
814
+ body: models_1.ObjectSerializer.serialize(inlineObject51, "InlineObject51")
815
+ };
816
+ let authenticationPromise = Promise.resolve();
817
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
818
+ let interceptorPromise = authenticationPromise;
819
+ for (const interceptor of this.interceptors) {
820
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
821
+ }
822
+ return interceptorPromise.then(() => {
823
+ if (Object.keys(localVarFormParams).length) {
824
+ if (localVarUseFormData) {
825
+ localVarRequestOptions.formData = localVarFormParams;
826
+ }
827
+ else {
828
+ localVarRequestOptions.form = localVarFormParams;
829
+ }
830
+ }
831
+ return new Promise((resolve, reject) => {
832
+ request_1.default(localVarRequestOptions, (error, response, body) => {
833
+ if (error) {
834
+ reject(error);
835
+ }
836
+ else {
837
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
838
+ body = models_1.ObjectSerializer.deserialize(body, "Agreement");
839
+ resolve({ response: response, body: body });
840
+ }
841
+ else {
842
+ reject(new apis_1.HttpError(response, body, response.statusCode));
843
+ }
844
+ }
845
+ });
846
+ });
847
+ });
848
+ });
849
+ }
850
+ exportImportedListRecipients(importedListID, options = { headers: {} }) {
851
+ return __awaiter(this, void 0, void 0, function* () {
852
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/export/{importedListID}'
853
+ .replace('{' + 'importedListID' + '}', encodeURIComponent(String(importedListID)));
854
+ let localVarQueryParameters = {};
855
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
856
+ const produces = ['application/json'];
857
+ if (produces.indexOf('application/json') >= 0) {
858
+ localVarHeaderParams.Accept = 'application/json';
859
+ }
860
+ else {
861
+ localVarHeaderParams.Accept = produces.join(',');
862
+ }
863
+ let localVarFormParams = {};
864
+ if (importedListID === null || importedListID === undefined) {
865
+ throw new Error('Required parameter importedListID was null or undefined when calling exportImportedListRecipients.');
866
+ }
867
+ Object.assign(localVarHeaderParams, options.headers);
868
+ let localVarUseFormData = false;
869
+ let localVarRequestOptions = {
870
+ method: 'POST',
871
+ qs: localVarQueryParameters,
872
+ headers: localVarHeaderParams,
873
+ uri: localVarPath,
874
+ useQuerystring: this._useQuerystring,
875
+ json: true,
876
+ };
877
+ let authenticationPromise = Promise.resolve();
878
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
879
+ let interceptorPromise = authenticationPromise;
880
+ for (const interceptor of this.interceptors) {
881
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
882
+ }
883
+ return interceptorPromise.then(() => {
884
+ if (Object.keys(localVarFormParams).length) {
885
+ if (localVarUseFormData) {
886
+ localVarRequestOptions.formData = localVarFormParams;
887
+ }
888
+ else {
889
+ localVarRequestOptions.form = localVarFormParams;
890
+ }
891
+ }
892
+ return new Promise((resolve, reject) => {
893
+ request_1.default(localVarRequestOptions, (error, response, body) => {
894
+ if (error) {
895
+ reject(error);
896
+ }
897
+ else {
898
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
899
+ body = models_1.ObjectSerializer.deserialize(body, "string");
900
+ resolve({ response: response, body: body });
901
+ }
902
+ else {
903
+ reject(new apis_1.HttpError(response, body, response.statusCode));
904
+ }
905
+ }
906
+ });
907
+ });
908
+ });
909
+ });
910
+ }
911
+ exportOptInListSubscribers(listID, options = { headers: {} }) {
912
+ return __awaiter(this, void 0, void 0, function* () {
913
+ const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/export/{listID}'
914
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
915
+ let localVarQueryParameters = {};
916
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
917
+ const produces = ['application/json'];
918
+ if (produces.indexOf('application/json') >= 0) {
919
+ localVarHeaderParams.Accept = 'application/json';
920
+ }
921
+ else {
922
+ localVarHeaderParams.Accept = produces.join(',');
923
+ }
924
+ let localVarFormParams = {};
925
+ if (listID === null || listID === undefined) {
926
+ throw new Error('Required parameter listID was null or undefined when calling exportOptInListSubscribers.');
927
+ }
928
+ Object.assign(localVarHeaderParams, options.headers);
929
+ let localVarUseFormData = false;
930
+ let localVarRequestOptions = {
931
+ method: 'POST',
932
+ qs: localVarQueryParameters,
933
+ headers: localVarHeaderParams,
934
+ uri: localVarPath,
935
+ useQuerystring: this._useQuerystring,
936
+ json: true,
937
+ };
938
+ let authenticationPromise = Promise.resolve();
939
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
940
+ let interceptorPromise = authenticationPromise;
941
+ for (const interceptor of this.interceptors) {
942
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
943
+ }
944
+ return interceptorPromise.then(() => {
945
+ if (Object.keys(localVarFormParams).length) {
946
+ if (localVarUseFormData) {
947
+ localVarRequestOptions.formData = localVarFormParams;
948
+ }
949
+ else {
950
+ localVarRequestOptions.form = localVarFormParams;
951
+ }
952
+ }
953
+ return new Promise((resolve, reject) => {
954
+ request_1.default(localVarRequestOptions, (error, response, body) => {
955
+ if (error) {
956
+ reject(error);
957
+ }
958
+ else {
959
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
960
+ body = models_1.ObjectSerializer.deserialize(body, "string");
961
+ resolve({ response: response, body: body });
962
+ }
963
+ else {
964
+ reject(new apis_1.HttpError(response, body, response.statusCode));
965
+ }
966
+ }
967
+ });
968
+ });
969
+ });
970
+ });
971
+ }
972
+ fetchBlockedTCPAEntries(phoneNumberID, options = { headers: {} }) {
973
+ return __awaiter(this, void 0, void 0, function* () {
974
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/blocked/{phoneNumberID}'
975
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
976
+ let localVarQueryParameters = {};
977
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
978
+ const produces = ['application/json'];
979
+ if (produces.indexOf('application/json') >= 0) {
980
+ localVarHeaderParams.Accept = 'application/json';
981
+ }
982
+ else {
983
+ localVarHeaderParams.Accept = produces.join(',');
984
+ }
985
+ let localVarFormParams = {};
986
+ if (phoneNumberID === null || phoneNumberID === undefined) {
987
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchBlockedTCPAEntries.');
988
+ }
989
+ Object.assign(localVarHeaderParams, options.headers);
990
+ let localVarUseFormData = false;
991
+ let localVarRequestOptions = {
992
+ method: 'GET',
993
+ qs: localVarQueryParameters,
994
+ headers: localVarHeaderParams,
995
+ uri: localVarPath,
996
+ useQuerystring: this._useQuerystring,
997
+ json: true,
998
+ };
999
+ let authenticationPromise = Promise.resolve();
1000
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1001
+ let interceptorPromise = authenticationPromise;
1002
+ for (const interceptor of this.interceptors) {
1003
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1004
+ }
1005
+ return interceptorPromise.then(() => {
1006
+ if (Object.keys(localVarFormParams).length) {
1007
+ if (localVarUseFormData) {
1008
+ localVarRequestOptions.formData = localVarFormParams;
1009
+ }
1010
+ else {
1011
+ localVarRequestOptions.form = localVarFormParams;
1012
+ }
1013
+ }
1014
+ return new Promise((resolve, reject) => {
1015
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1016
+ if (error) {
1017
+ reject(error);
1018
+ }
1019
+ else {
1020
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1021
+ body = models_1.ObjectSerializer.deserialize(body, "Array<Tcpa>");
1022
+ resolve({ response: response, body: body });
1023
+ }
1024
+ else {
1025
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1026
+ }
1027
+ }
1028
+ });
1029
+ });
1030
+ });
1031
+ });
1032
+ }
1033
+ fetchImportedListRecipients(listID, options = { headers: {} }) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{listID}'
1036
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1037
+ let localVarQueryParameters = {};
1038
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1039
+ const produces = ['application/json'];
1040
+ if (produces.indexOf('application/json') >= 0) {
1041
+ localVarHeaderParams.Accept = 'application/json';
1042
+ }
1043
+ else {
1044
+ localVarHeaderParams.Accept = produces.join(',');
1045
+ }
1046
+ let localVarFormParams = {};
1047
+ if (listID === null || listID === undefined) {
1048
+ throw new Error('Required parameter listID was null or undefined when calling fetchImportedListRecipients.');
1049
+ }
1050
+ Object.assign(localVarHeaderParams, options.headers);
1051
+ let localVarUseFormData = false;
1052
+ let localVarRequestOptions = {
1053
+ method: 'GET',
1054
+ qs: localVarQueryParameters,
1055
+ headers: localVarHeaderParams,
1056
+ uri: localVarPath,
1057
+ useQuerystring: this._useQuerystring,
1058
+ json: true,
1059
+ };
1060
+ let authenticationPromise = Promise.resolve();
1061
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1062
+ let interceptorPromise = authenticationPromise;
1063
+ for (const interceptor of this.interceptors) {
1064
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1065
+ }
1066
+ return interceptorPromise.then(() => {
1067
+ if (Object.keys(localVarFormParams).length) {
1068
+ if (localVarUseFormData) {
1069
+ localVarRequestOptions.formData = localVarFormParams;
1070
+ }
1071
+ else {
1072
+ localVarRequestOptions.form = localVarFormParams;
1073
+ }
1074
+ }
1075
+ return new Promise((resolve, reject) => {
1076
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1077
+ if (error) {
1078
+ reject(error);
1079
+ }
1080
+ else {
1081
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1082
+ body = models_1.ObjectSerializer.deserialize(body, "Array<ImportedListRecipient>");
1083
+ resolve({ response: response, body: body });
1084
+ }
1085
+ else {
1086
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1087
+ }
1088
+ }
1089
+ });
1090
+ });
1091
+ });
1092
+ });
1093
+ }
1094
+ fetchImportedListRecipientsByPage(listID, pageSize, pageNum, isArchiveIncluded, options = { headers: {} }) {
1095
+ return __awaiter(this, void 0, void 0, function* () {
1096
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/page/{listID}'
1097
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1098
+ let localVarQueryParameters = {};
1099
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1100
+ const produces = ['application/json'];
1101
+ if (produces.indexOf('application/json') >= 0) {
1102
+ localVarHeaderParams.Accept = 'application/json';
1103
+ }
1104
+ else {
1105
+ localVarHeaderParams.Accept = produces.join(',');
1106
+ }
1107
+ let localVarFormParams = {};
1108
+ if (listID === null || listID === undefined) {
1109
+ throw new Error('Required parameter listID was null or undefined when calling fetchImportedListRecipientsByPage.');
1110
+ }
1111
+ if (pageSize !== undefined) {
1112
+ localVarQueryParameters['pageSize'] = models_1.ObjectSerializer.serialize(pageSize, "number");
1113
+ }
1114
+ if (pageNum !== undefined) {
1115
+ localVarQueryParameters['pageNum'] = models_1.ObjectSerializer.serialize(pageNum, "number");
1116
+ }
1117
+ if (isArchiveIncluded !== undefined) {
1118
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1119
+ }
1120
+ Object.assign(localVarHeaderParams, options.headers);
1121
+ let localVarUseFormData = false;
1122
+ let localVarRequestOptions = {
1123
+ method: 'GET',
1124
+ qs: localVarQueryParameters,
1125
+ headers: localVarHeaderParams,
1126
+ uri: localVarPath,
1127
+ useQuerystring: this._useQuerystring,
1128
+ json: true,
1129
+ };
1130
+ let authenticationPromise = Promise.resolve();
1131
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1132
+ let interceptorPromise = authenticationPromise;
1133
+ for (const interceptor of this.interceptors) {
1134
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1135
+ }
1136
+ return interceptorPromise.then(() => {
1137
+ if (Object.keys(localVarFormParams).length) {
1138
+ if (localVarUseFormData) {
1139
+ localVarRequestOptions.formData = localVarFormParams;
1140
+ }
1141
+ else {
1142
+ localVarRequestOptions.form = localVarFormParams;
1143
+ }
1144
+ }
1145
+ return new Promise((resolve, reject) => {
1146
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1147
+ if (error) {
1148
+ reject(error);
1149
+ }
1150
+ else {
1151
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1152
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse20010");
1153
+ resolve({ response: response, body: body });
1154
+ }
1155
+ else {
1156
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1157
+ }
1158
+ }
1159
+ });
1160
+ });
1161
+ });
1162
+ });
1163
+ }
1164
+ fetchOptInListSubscribers(listID, isSubscribed, isPendingAge21Verification, isArchiveIncluded, options = { headers: {} }) {
1165
+ return __awaiter(this, void 0, void 0, function* () {
1166
+ const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/{listID}'
1167
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1168
+ let localVarQueryParameters = {};
1169
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1170
+ const produces = ['application/json'];
1171
+ if (produces.indexOf('application/json') >= 0) {
1172
+ localVarHeaderParams.Accept = 'application/json';
1173
+ }
1174
+ else {
1175
+ localVarHeaderParams.Accept = produces.join(',');
1176
+ }
1177
+ let localVarFormParams = {};
1178
+ if (listID === null || listID === undefined) {
1179
+ throw new Error('Required parameter listID was null or undefined when calling fetchOptInListSubscribers.');
1180
+ }
1181
+ if (isSubscribed !== undefined) {
1182
+ localVarQueryParameters['isSubscribed'] = models_1.ObjectSerializer.serialize(isSubscribed, "boolean");
1183
+ }
1184
+ if (isPendingAge21Verification !== undefined) {
1185
+ localVarQueryParameters['isPendingAge21Verification'] = models_1.ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
1186
+ }
1187
+ if (isArchiveIncluded !== undefined) {
1188
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1189
+ }
1190
+ Object.assign(localVarHeaderParams, options.headers);
1191
+ let localVarUseFormData = false;
1192
+ let localVarRequestOptions = {
1193
+ method: 'GET',
1194
+ qs: localVarQueryParameters,
1195
+ headers: localVarHeaderParams,
1196
+ uri: localVarPath,
1197
+ useQuerystring: this._useQuerystring,
1198
+ json: true,
1199
+ };
1200
+ let authenticationPromise = Promise.resolve();
1201
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1202
+ let interceptorPromise = authenticationPromise;
1203
+ for (const interceptor of this.interceptors) {
1204
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1205
+ }
1206
+ return interceptorPromise.then(() => {
1207
+ if (Object.keys(localVarFormParams).length) {
1208
+ if (localVarUseFormData) {
1209
+ localVarRequestOptions.formData = localVarFormParams;
1210
+ }
1211
+ else {
1212
+ localVarRequestOptions.form = localVarFormParams;
1213
+ }
1214
+ }
1215
+ return new Promise((resolve, reject) => {
1216
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1217
+ if (error) {
1218
+ reject(error);
1219
+ }
1220
+ else {
1221
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1222
+ body = models_1.ObjectSerializer.deserialize(body, "Array<OptInListSubscriber>");
1223
+ resolve({ response: response, body: body });
1224
+ }
1225
+ else {
1226
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1227
+ }
1228
+ }
1229
+ });
1230
+ });
1231
+ });
1232
+ });
1233
+ }
1234
+ fetchOptInListSubscribersByPage(listID, pageSize, pageNum, isSubscribed, isPendingAge21Verification, isArchiveIncluded, options = { headers: {} }) {
1235
+ return __awaiter(this, void 0, void 0, function* () {
1236
+ const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/page/{listID}'
1237
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1238
+ let localVarQueryParameters = {};
1239
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1240
+ const produces = ['application/json'];
1241
+ if (produces.indexOf('application/json') >= 0) {
1242
+ localVarHeaderParams.Accept = 'application/json';
1243
+ }
1244
+ else {
1245
+ localVarHeaderParams.Accept = produces.join(',');
1246
+ }
1247
+ let localVarFormParams = {};
1248
+ if (listID === null || listID === undefined) {
1249
+ throw new Error('Required parameter listID was null or undefined when calling fetchOptInListSubscribersByPage.');
1250
+ }
1251
+ if (pageSize !== undefined) {
1252
+ localVarQueryParameters['pageSize'] = models_1.ObjectSerializer.serialize(pageSize, "number");
1253
+ }
1254
+ if (pageNum !== undefined) {
1255
+ localVarQueryParameters['pageNum'] = models_1.ObjectSerializer.serialize(pageNum, "number");
1256
+ }
1257
+ if (isSubscribed !== undefined) {
1258
+ localVarQueryParameters['isSubscribed'] = models_1.ObjectSerializer.serialize(isSubscribed, "boolean");
1259
+ }
1260
+ if (isPendingAge21Verification !== undefined) {
1261
+ localVarQueryParameters['isPendingAge21Verification'] = models_1.ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
1262
+ }
1263
+ if (isArchiveIncluded !== undefined) {
1264
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1265
+ }
1266
+ Object.assign(localVarHeaderParams, options.headers);
1267
+ let localVarUseFormData = false;
1268
+ let localVarRequestOptions = {
1269
+ method: 'GET',
1270
+ qs: localVarQueryParameters,
1271
+ headers: localVarHeaderParams,
1272
+ uri: localVarPath,
1273
+ useQuerystring: this._useQuerystring,
1274
+ json: true,
1275
+ };
1276
+ let authenticationPromise = Promise.resolve();
1277
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1278
+ let interceptorPromise = authenticationPromise;
1279
+ for (const interceptor of this.interceptors) {
1280
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1281
+ }
1282
+ return interceptorPromise.then(() => {
1283
+ if (Object.keys(localVarFormParams).length) {
1284
+ if (localVarUseFormData) {
1285
+ localVarRequestOptions.formData = localVarFormParams;
1286
+ }
1287
+ else {
1288
+ localVarRequestOptions.form = localVarFormParams;
1289
+ }
1290
+ }
1291
+ return new Promise((resolve, reject) => {
1292
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1293
+ if (error) {
1294
+ reject(error);
1295
+ }
1296
+ else {
1297
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1298
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2009");
1299
+ resolve({ response: response, body: body });
1300
+ }
1301
+ else {
1302
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1303
+ }
1304
+ }
1305
+ });
1306
+ });
1307
+ });
1308
+ });
1309
+ }
1310
+ fetchOptInListsAssociatedWithPhoneNumber(phoneNumberID, options = { headers: {} }) {
1311
+ return __awaiter(this, void 0, void 0, function* () {
1312
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/lists/{phoneNumberID}'
1313
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1314
+ let localVarQueryParameters = {};
1315
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1316
+ const produces = ['application/json'];
1317
+ if (produces.indexOf('application/json') >= 0) {
1318
+ localVarHeaderParams.Accept = 'application/json';
1319
+ }
1320
+ else {
1321
+ localVarHeaderParams.Accept = produces.join(',');
1322
+ }
1323
+ let localVarFormParams = {};
1324
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1325
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOptInListsAssociatedWithPhoneNumber.');
1326
+ }
1327
+ Object.assign(localVarHeaderParams, options.headers);
1328
+ let localVarUseFormData = false;
1329
+ let localVarRequestOptions = {
1330
+ method: 'GET',
1331
+ qs: localVarQueryParameters,
1332
+ headers: localVarHeaderParams,
1333
+ uri: localVarPath,
1334
+ useQuerystring: this._useQuerystring,
1335
+ json: true,
1336
+ };
1337
+ let authenticationPromise = Promise.resolve();
1338
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1339
+ let interceptorPromise = authenticationPromise;
1340
+ for (const interceptor of this.interceptors) {
1341
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1342
+ }
1343
+ return interceptorPromise.then(() => {
1344
+ if (Object.keys(localVarFormParams).length) {
1345
+ if (localVarUseFormData) {
1346
+ localVarRequestOptions.formData = localVarFormParams;
1347
+ }
1348
+ else {
1349
+ localVarRequestOptions.form = localVarFormParams;
1350
+ }
1351
+ }
1352
+ return new Promise((resolve, reject) => {
1353
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1354
+ if (error) {
1355
+ reject(error);
1356
+ }
1357
+ else {
1358
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1359
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1360
+ resolve({ response: response, body: body });
1361
+ }
1362
+ else {
1363
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1364
+ }
1365
+ }
1366
+ });
1367
+ });
1368
+ });
1369
+ });
1370
+ }
1371
+ fetchOptInSourceSubscribers(sourceID, isSubscribed, isPendingAge21Verification, isArchiveIncluded, options = { headers: {} }) {
1372
+ return __awaiter(this, void 0, void 0, function* () {
1373
+ const localVarPath = this.basePath + '/v2/sms/optInSource/subscribers/{sourceID}'
1374
+ .replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
1375
+ let localVarQueryParameters = {};
1376
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1377
+ const produces = ['application/json'];
1378
+ if (produces.indexOf('application/json') >= 0) {
1379
+ localVarHeaderParams.Accept = 'application/json';
1380
+ }
1381
+ else {
1382
+ localVarHeaderParams.Accept = produces.join(',');
1383
+ }
1384
+ let localVarFormParams = {};
1385
+ if (sourceID === null || sourceID === undefined) {
1386
+ throw new Error('Required parameter sourceID was null or undefined when calling fetchOptInSourceSubscribers.');
1387
+ }
1388
+ if (isSubscribed !== undefined) {
1389
+ localVarQueryParameters['isSubscribed'] = models_1.ObjectSerializer.serialize(isSubscribed, "boolean");
1390
+ }
1391
+ if (isPendingAge21Verification !== undefined) {
1392
+ localVarQueryParameters['isPendingAge21Verification'] = models_1.ObjectSerializer.serialize(isPendingAge21Verification, "boolean");
1393
+ }
1394
+ if (isArchiveIncluded !== undefined) {
1395
+ localVarQueryParameters['isArchiveIncluded'] = models_1.ObjectSerializer.serialize(isArchiveIncluded, "boolean");
1396
+ }
1397
+ Object.assign(localVarHeaderParams, options.headers);
1398
+ let localVarUseFormData = false;
1399
+ let localVarRequestOptions = {
1400
+ method: 'GET',
1401
+ qs: localVarQueryParameters,
1402
+ headers: localVarHeaderParams,
1403
+ uri: localVarPath,
1404
+ useQuerystring: this._useQuerystring,
1405
+ json: true,
1406
+ };
1407
+ let authenticationPromise = Promise.resolve();
1408
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1409
+ let interceptorPromise = authenticationPromise;
1410
+ for (const interceptor of this.interceptors) {
1411
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1412
+ }
1413
+ return interceptorPromise.then(() => {
1414
+ if (Object.keys(localVarFormParams).length) {
1415
+ if (localVarUseFormData) {
1416
+ localVarRequestOptions.formData = localVarFormParams;
1417
+ }
1418
+ else {
1419
+ localVarRequestOptions.form = localVarFormParams;
1420
+ }
1421
+ }
1422
+ return new Promise((resolve, reject) => {
1423
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1424
+ if (error) {
1425
+ reject(error);
1426
+ }
1427
+ else {
1428
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1429
+ body = models_1.ObjectSerializer.deserialize(body, "Array<OptInListSubscriber>");
1430
+ resolve({ response: response, body: body });
1431
+ }
1432
+ else {
1433
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1434
+ }
1435
+ }
1436
+ });
1437
+ });
1438
+ });
1439
+ });
1440
+ }
1441
+ fetchOptInSourcesAssociatedWithPhoneNumber(phoneNumberID, options = { headers: {} }) {
1442
+ return __awaiter(this, void 0, void 0, function* () {
1443
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/sources/{phoneNumberID}'
1444
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1445
+ let localVarQueryParameters = {};
1446
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1447
+ const produces = ['application/json'];
1448
+ if (produces.indexOf('application/json') >= 0) {
1449
+ localVarHeaderParams.Accept = 'application/json';
1450
+ }
1451
+ else {
1452
+ localVarHeaderParams.Accept = produces.join(',');
1453
+ }
1454
+ let localVarFormParams = {};
1455
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1456
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOptInSourcesAssociatedWithPhoneNumber.');
1457
+ }
1458
+ Object.assign(localVarHeaderParams, options.headers);
1459
+ let localVarUseFormData = false;
1460
+ let localVarRequestOptions = {
1461
+ method: 'GET',
1462
+ qs: localVarQueryParameters,
1463
+ headers: localVarHeaderParams,
1464
+ uri: localVarPath,
1465
+ useQuerystring: this._useQuerystring,
1466
+ json: true,
1467
+ };
1468
+ let authenticationPromise = Promise.resolve();
1469
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1470
+ let interceptorPromise = authenticationPromise;
1471
+ for (const interceptor of this.interceptors) {
1472
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1473
+ }
1474
+ return interceptorPromise.then(() => {
1475
+ if (Object.keys(localVarFormParams).length) {
1476
+ if (localVarUseFormData) {
1477
+ localVarRequestOptions.formData = localVarFormParams;
1478
+ }
1479
+ else {
1480
+ localVarRequestOptions.form = localVarFormParams;
1481
+ }
1482
+ }
1483
+ return new Promise((resolve, reject) => {
1484
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1485
+ if (error) {
1486
+ reject(error);
1487
+ }
1488
+ else {
1489
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1490
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1491
+ resolve({ response: response, body: body });
1492
+ }
1493
+ else {
1494
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1495
+ }
1496
+ }
1497
+ });
1498
+ });
1499
+ });
1500
+ });
1501
+ }
1502
+ fetchOutboundSMS(phoneNumberID, toPhoneNumber, status, paymentObjectBroadcastID, options = { headers: {} }) {
1503
+ return __awaiter(this, void 0, void 0, function* () {
1504
+ const localVarPath = this.basePath + '/v2/sms/outbound/{phoneNumberID}'
1505
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
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
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1517
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOutboundSMS.');
1518
+ }
1519
+ if (toPhoneNumber !== undefined) {
1520
+ localVarQueryParameters['toPhoneNumber'] = models_1.ObjectSerializer.serialize(toPhoneNumber, "string");
1521
+ }
1522
+ if (status !== undefined) {
1523
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "string");
1524
+ }
1525
+ if (paymentObjectBroadcastID !== undefined) {
1526
+ localVarQueryParameters['paymentObjectBroadcastID'] = models_1.ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
1527
+ }
1528
+ Object.assign(localVarHeaderParams, options.headers);
1529
+ let localVarUseFormData = false;
1530
+ let localVarRequestOptions = {
1531
+ method: 'GET',
1532
+ qs: localVarQueryParameters,
1533
+ headers: localVarHeaderParams,
1534
+ uri: localVarPath,
1535
+ useQuerystring: this._useQuerystring,
1536
+ json: true,
1537
+ };
1538
+ let authenticationPromise = Promise.resolve();
1539
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1540
+ let interceptorPromise = authenticationPromise;
1541
+ for (const interceptor of this.interceptors) {
1542
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1543
+ }
1544
+ return interceptorPromise.then(() => {
1545
+ if (Object.keys(localVarFormParams).length) {
1546
+ if (localVarUseFormData) {
1547
+ localVarRequestOptions.formData = localVarFormParams;
1548
+ }
1549
+ else {
1550
+ localVarRequestOptions.form = localVarFormParams;
1551
+ }
1552
+ }
1553
+ return new Promise((resolve, reject) => {
1554
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1555
+ if (error) {
1556
+ reject(error);
1557
+ }
1558
+ else {
1559
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1560
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1561
+ resolve({ response: response, body: body });
1562
+ }
1563
+ else {
1564
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1565
+ }
1566
+ }
1567
+ });
1568
+ });
1569
+ });
1570
+ });
1571
+ }
1572
+ fetchOutboundSMSByPage(phoneNumberID, toPhoneNumber, paymentObjectBroadcastID, pageSize, pageNum, options = { headers: {} }) {
1573
+ return __awaiter(this, void 0, void 0, function* () {
1574
+ const localVarPath = this.basePath + '/v2/sms/outbound/page/{phoneNumberID}'
1575
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1576
+ let localVarQueryParameters = {};
1577
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1578
+ const produces = ['application/json'];
1579
+ if (produces.indexOf('application/json') >= 0) {
1580
+ localVarHeaderParams.Accept = 'application/json';
1581
+ }
1582
+ else {
1583
+ localVarHeaderParams.Accept = produces.join(',');
1584
+ }
1585
+ let localVarFormParams = {};
1586
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1587
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchOutboundSMSByPage.');
1588
+ }
1589
+ if (toPhoneNumber !== undefined) {
1590
+ localVarQueryParameters['toPhoneNumber'] = models_1.ObjectSerializer.serialize(toPhoneNumber, "string");
1591
+ }
1592
+ if (paymentObjectBroadcastID !== undefined) {
1593
+ localVarQueryParameters['paymentObjectBroadcastID'] = models_1.ObjectSerializer.serialize(paymentObjectBroadcastID, "string");
1594
+ }
1595
+ if (pageSize !== undefined) {
1596
+ localVarQueryParameters['pageSize'] = models_1.ObjectSerializer.serialize(pageSize, "number");
1597
+ }
1598
+ if (pageNum !== undefined) {
1599
+ localVarQueryParameters['pageNum'] = models_1.ObjectSerializer.serialize(pageNum, "number");
1600
+ }
1601
+ Object.assign(localVarHeaderParams, options.headers);
1602
+ let localVarUseFormData = false;
1603
+ let localVarRequestOptions = {
1604
+ method: 'GET',
1605
+ qs: localVarQueryParameters,
1606
+ headers: localVarHeaderParams,
1607
+ uri: localVarPath,
1608
+ useQuerystring: this._useQuerystring,
1609
+ json: true,
1610
+ };
1611
+ let authenticationPromise = Promise.resolve();
1612
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1613
+ let interceptorPromise = authenticationPromise;
1614
+ for (const interceptor of this.interceptors) {
1615
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1616
+ }
1617
+ return interceptorPromise.then(() => {
1618
+ if (Object.keys(localVarFormParams).length) {
1619
+ if (localVarUseFormData) {
1620
+ localVarRequestOptions.formData = localVarFormParams;
1621
+ }
1622
+ else {
1623
+ localVarRequestOptions.form = localVarFormParams;
1624
+ }
1625
+ }
1626
+ return new Promise((resolve, reject) => {
1627
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1628
+ if (error) {
1629
+ reject(error);
1630
+ }
1631
+ else {
1632
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1633
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1634
+ resolve({ response: response, body: body });
1635
+ }
1636
+ else {
1637
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1638
+ }
1639
+ }
1640
+ });
1641
+ });
1642
+ });
1643
+ });
1644
+ }
1645
+ fetchPaymentObjectBroadcasts(phoneNumberID, options = { headers: {} }) {
1646
+ return __awaiter(this, void 0, void 0, function* () {
1647
+ const localVarPath = this.basePath + '/v2/sms/paymentObjectBroadcasts/{phoneNumberID}'
1648
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1649
+ let localVarQueryParameters = {};
1650
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1651
+ const produces = ['application/json'];
1652
+ if (produces.indexOf('application/json') >= 0) {
1653
+ localVarHeaderParams.Accept = 'application/json';
1654
+ }
1655
+ else {
1656
+ localVarHeaderParams.Accept = produces.join(',');
1657
+ }
1658
+ let localVarFormParams = {};
1659
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1660
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling fetchPaymentObjectBroadcasts.');
1661
+ }
1662
+ Object.assign(localVarHeaderParams, options.headers);
1663
+ let localVarUseFormData = false;
1664
+ let localVarRequestOptions = {
1665
+ method: 'GET',
1666
+ qs: localVarQueryParameters,
1667
+ headers: localVarHeaderParams,
1668
+ uri: localVarPath,
1669
+ useQuerystring: this._useQuerystring,
1670
+ json: true,
1671
+ };
1672
+ let authenticationPromise = Promise.resolve();
1673
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1674
+ let interceptorPromise = authenticationPromise;
1675
+ for (const interceptor of this.interceptors) {
1676
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1677
+ }
1678
+ return interceptorPromise.then(() => {
1679
+ if (Object.keys(localVarFormParams).length) {
1680
+ if (localVarUseFormData) {
1681
+ localVarRequestOptions.formData = localVarFormParams;
1682
+ }
1683
+ else {
1684
+ localVarRequestOptions.form = localVarFormParams;
1685
+ }
1686
+ }
1687
+ return new Promise((resolve, reject) => {
1688
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1689
+ if (error) {
1690
+ reject(error);
1691
+ }
1692
+ else {
1693
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1694
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1695
+ resolve({ response: response, body: body });
1696
+ }
1697
+ else {
1698
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1699
+ }
1700
+ }
1701
+ });
1702
+ });
1703
+ });
1704
+ });
1705
+ }
1706
+ fetchSMSAgreement(options = { headers: {} }) {
1707
+ return __awaiter(this, void 0, void 0, function* () {
1708
+ const localVarPath = this.basePath + '/v2/sms/agreement';
1709
+ let localVarQueryParameters = {};
1710
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1711
+ const produces = ['application/json'];
1712
+ if (produces.indexOf('application/json') >= 0) {
1713
+ localVarHeaderParams.Accept = 'application/json';
1714
+ }
1715
+ else {
1716
+ localVarHeaderParams.Accept = produces.join(',');
1717
+ }
1718
+ let localVarFormParams = {};
1719
+ Object.assign(localVarHeaderParams, options.headers);
1720
+ let localVarUseFormData = false;
1721
+ let localVarRequestOptions = {
1722
+ method: 'GET',
1723
+ qs: localVarQueryParameters,
1724
+ headers: localVarHeaderParams,
1725
+ uri: localVarPath,
1726
+ useQuerystring: this._useQuerystring,
1727
+ json: true,
1728
+ };
1729
+ let authenticationPromise = Promise.resolve();
1730
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1731
+ let interceptorPromise = authenticationPromise;
1732
+ for (const interceptor of this.interceptors) {
1733
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1734
+ }
1735
+ return interceptorPromise.then(() => {
1736
+ if (Object.keys(localVarFormParams).length) {
1737
+ if (localVarUseFormData) {
1738
+ localVarRequestOptions.formData = localVarFormParams;
1739
+ }
1740
+ else {
1741
+ localVarRequestOptions.form = localVarFormParams;
1742
+ }
1743
+ }
1744
+ return new Promise((resolve, reject) => {
1745
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1746
+ if (error) {
1747
+ reject(error);
1748
+ }
1749
+ else {
1750
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1751
+ body = models_1.ObjectSerializer.deserialize(body, "any");
1752
+ resolve({ response: response, body: body });
1753
+ }
1754
+ else {
1755
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1756
+ }
1757
+ }
1758
+ });
1759
+ });
1760
+ });
1761
+ });
1762
+ }
1763
+ importImportedListRecipients(importedListID, inlineObject61, options = { headers: {} }) {
1764
+ return __awaiter(this, void 0, void 0, function* () {
1765
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/import/{importedListID}'
1766
+ .replace('{' + 'importedListID' + '}', encodeURIComponent(String(importedListID)));
1767
+ let localVarQueryParameters = {};
1768
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1769
+ const produces = ['application/json'];
1770
+ if (produces.indexOf('application/json') >= 0) {
1771
+ localVarHeaderParams.Accept = 'application/json';
1772
+ }
1773
+ else {
1774
+ localVarHeaderParams.Accept = produces.join(',');
1775
+ }
1776
+ let localVarFormParams = {};
1777
+ if (importedListID === null || importedListID === undefined) {
1778
+ throw new Error('Required parameter importedListID was null or undefined when calling importImportedListRecipients.');
1779
+ }
1780
+ if (inlineObject61 === null || inlineObject61 === undefined) {
1781
+ throw new Error('Required parameter inlineObject61 was null or undefined when calling importImportedListRecipients.');
1782
+ }
1783
+ Object.assign(localVarHeaderParams, options.headers);
1784
+ let localVarUseFormData = false;
1785
+ let localVarRequestOptions = {
1786
+ method: 'POST',
1787
+ qs: localVarQueryParameters,
1788
+ headers: localVarHeaderParams,
1789
+ uri: localVarPath,
1790
+ useQuerystring: this._useQuerystring,
1791
+ json: true,
1792
+ body: models_1.ObjectSerializer.serialize(inlineObject61, "InlineObject61")
1793
+ };
1794
+ let authenticationPromise = Promise.resolve();
1795
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1796
+ let interceptorPromise = authenticationPromise;
1797
+ for (const interceptor of this.interceptors) {
1798
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1799
+ }
1800
+ return interceptorPromise.then(() => {
1801
+ if (Object.keys(localVarFormParams).length) {
1802
+ if (localVarUseFormData) {
1803
+ localVarRequestOptions.formData = localVarFormParams;
1804
+ }
1805
+ else {
1806
+ localVarRequestOptions.form = localVarFormParams;
1807
+ }
1808
+ }
1809
+ return new Promise((resolve, reject) => {
1810
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1811
+ if (error) {
1812
+ reject(error);
1813
+ }
1814
+ else {
1815
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1816
+ body = models_1.ObjectSerializer.deserialize(body, "string");
1817
+ resolve({ response: response, body: body });
1818
+ }
1819
+ else {
1820
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1821
+ }
1822
+ }
1823
+ });
1824
+ });
1825
+ });
1826
+ });
1827
+ }
1828
+ importOptInListSubscribers(listID, inlineObject58, options = { headers: {} }) {
1829
+ return __awaiter(this, void 0, void 0, function* () {
1830
+ const localVarPath = this.basePath + '/v2/sms/optInList/subscribers/import/{listID}'
1831
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
1832
+ let localVarQueryParameters = {};
1833
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1834
+ const produces = ['application/json'];
1835
+ if (produces.indexOf('application/json') >= 0) {
1836
+ localVarHeaderParams.Accept = 'application/json';
1837
+ }
1838
+ else {
1839
+ localVarHeaderParams.Accept = produces.join(',');
1840
+ }
1841
+ let localVarFormParams = {};
1842
+ if (listID === null || listID === undefined) {
1843
+ throw new Error('Required parameter listID was null or undefined when calling importOptInListSubscribers.');
1844
+ }
1845
+ if (inlineObject58 === null || inlineObject58 === undefined) {
1846
+ throw new Error('Required parameter inlineObject58 was null or undefined when calling importOptInListSubscribers.');
1847
+ }
1848
+ Object.assign(localVarHeaderParams, options.headers);
1849
+ let localVarUseFormData = false;
1850
+ let localVarRequestOptions = {
1851
+ method: 'POST',
1852
+ qs: localVarQueryParameters,
1853
+ headers: localVarHeaderParams,
1854
+ uri: localVarPath,
1855
+ useQuerystring: this._useQuerystring,
1856
+ json: true,
1857
+ body: models_1.ObjectSerializer.serialize(inlineObject58, "InlineObject58")
1858
+ };
1859
+ let authenticationPromise = Promise.resolve();
1860
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1861
+ let interceptorPromise = authenticationPromise;
1862
+ for (const interceptor of this.interceptors) {
1863
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1864
+ }
1865
+ return interceptorPromise.then(() => {
1866
+ if (Object.keys(localVarFormParams).length) {
1867
+ if (localVarUseFormData) {
1868
+ localVarRequestOptions.formData = localVarFormParams;
1869
+ }
1870
+ else {
1871
+ localVarRequestOptions.form = localVarFormParams;
1872
+ }
1873
+ }
1874
+ return new Promise((resolve, reject) => {
1875
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1876
+ if (error) {
1877
+ reject(error);
1878
+ }
1879
+ else {
1880
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1881
+ body = models_1.ObjectSerializer.deserialize(body, "string");
1882
+ resolve({ response: response, body: body });
1883
+ }
1884
+ else {
1885
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1886
+ }
1887
+ }
1888
+ });
1889
+ });
1890
+ });
1891
+ });
1892
+ }
1893
+ restorePhoneNumber(phoneNumberID, options = { headers: {} }) {
1894
+ return __awaiter(this, void 0, void 0, function* () {
1895
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
1896
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
1897
+ let localVarQueryParameters = {};
1898
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1899
+ const produces = ['application/json'];
1900
+ if (produces.indexOf('application/json') >= 0) {
1901
+ localVarHeaderParams.Accept = 'application/json';
1902
+ }
1903
+ else {
1904
+ localVarHeaderParams.Accept = produces.join(',');
1905
+ }
1906
+ let localVarFormParams = {};
1907
+ if (phoneNumberID === null || phoneNumberID === undefined) {
1908
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling restorePhoneNumber.');
1909
+ }
1910
+ Object.assign(localVarHeaderParams, options.headers);
1911
+ let localVarUseFormData = false;
1912
+ let localVarRequestOptions = {
1913
+ method: 'PATCH',
1914
+ qs: localVarQueryParameters,
1915
+ headers: localVarHeaderParams,
1916
+ uri: localVarPath,
1917
+ useQuerystring: this._useQuerystring,
1918
+ json: true,
1919
+ };
1920
+ let authenticationPromise = Promise.resolve();
1921
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1922
+ let interceptorPromise = authenticationPromise;
1923
+ for (const interceptor of this.interceptors) {
1924
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1925
+ }
1926
+ return interceptorPromise.then(() => {
1927
+ if (Object.keys(localVarFormParams).length) {
1928
+ if (localVarUseFormData) {
1929
+ localVarRequestOptions.formData = localVarFormParams;
1930
+ }
1931
+ else {
1932
+ localVarRequestOptions.form = localVarFormParams;
1933
+ }
1934
+ }
1935
+ return new Promise((resolve, reject) => {
1936
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1937
+ if (error) {
1938
+ reject(error);
1939
+ }
1940
+ else {
1941
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1942
+ body = models_1.ObjectSerializer.deserialize(body, "PhoneNumber");
1943
+ resolve({ response: response, body: body });
1944
+ }
1945
+ else {
1946
+ reject(new apis_1.HttpError(response, body, response.statusCode));
1947
+ }
1948
+ }
1949
+ });
1950
+ });
1951
+ });
1952
+ });
1953
+ }
1954
+ restoreRecipient(id, options = { headers: {} }) {
1955
+ return __awaiter(this, void 0, void 0, function* () {
1956
+ const localVarPath = this.basePath + '/v2/sms/importedList/recipients/{id}'
1957
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1958
+ let localVarQueryParameters = {};
1959
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1960
+ const produces = ['application/json'];
1961
+ if (produces.indexOf('application/json') >= 0) {
1962
+ localVarHeaderParams.Accept = 'application/json';
1963
+ }
1964
+ else {
1965
+ localVarHeaderParams.Accept = produces.join(',');
1966
+ }
1967
+ let localVarFormParams = {};
1968
+ if (id === null || id === undefined) {
1969
+ throw new Error('Required parameter id was null or undefined when calling restoreRecipient.');
1970
+ }
1971
+ Object.assign(localVarHeaderParams, options.headers);
1972
+ let localVarUseFormData = false;
1973
+ let localVarRequestOptions = {
1974
+ method: 'PATCH',
1975
+ qs: localVarQueryParameters,
1976
+ headers: localVarHeaderParams,
1977
+ uri: localVarPath,
1978
+ useQuerystring: this._useQuerystring,
1979
+ json: true,
1980
+ };
1981
+ let authenticationPromise = Promise.resolve();
1982
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1983
+ let interceptorPromise = authenticationPromise;
1984
+ for (const interceptor of this.interceptors) {
1985
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1986
+ }
1987
+ return interceptorPromise.then(() => {
1988
+ if (Object.keys(localVarFormParams).length) {
1989
+ if (localVarUseFormData) {
1990
+ localVarRequestOptions.formData = localVarFormParams;
1991
+ }
1992
+ else {
1993
+ localVarRequestOptions.form = localVarFormParams;
1994
+ }
1995
+ }
1996
+ return new Promise((resolve, reject) => {
1997
+ request_1.default(localVarRequestOptions, (error, response, body) => {
1998
+ if (error) {
1999
+ reject(error);
2000
+ }
2001
+ else {
2002
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2003
+ body = models_1.ObjectSerializer.deserialize(body, "ImportedListRecipient");
2004
+ resolve({ response: response, body: body });
2005
+ }
2006
+ else {
2007
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2008
+ }
2009
+ }
2010
+ });
2011
+ });
2012
+ });
2013
+ });
2014
+ }
2015
+ retrieveSentAndMaxCountOfMessages(options = { headers: {} }) {
2016
+ return __awaiter(this, void 0, void 0, function* () {
2017
+ const localVarPath = this.basePath + '/v2/sms/sent';
2018
+ let localVarQueryParameters = {};
2019
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2020
+ const produces = ['application/json'];
2021
+ if (produces.indexOf('application/json') >= 0) {
2022
+ localVarHeaderParams.Accept = 'application/json';
2023
+ }
2024
+ else {
2025
+ localVarHeaderParams.Accept = produces.join(',');
2026
+ }
2027
+ let localVarFormParams = {};
2028
+ Object.assign(localVarHeaderParams, options.headers);
2029
+ let localVarUseFormData = false;
2030
+ let localVarRequestOptions = {
2031
+ method: 'GET',
2032
+ qs: localVarQueryParameters,
2033
+ headers: localVarHeaderParams,
2034
+ uri: localVarPath,
2035
+ useQuerystring: this._useQuerystring,
2036
+ json: true,
2037
+ };
2038
+ let authenticationPromise = Promise.resolve();
2039
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2040
+ let interceptorPromise = authenticationPromise;
2041
+ for (const interceptor of this.interceptors) {
2042
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2043
+ }
2044
+ return interceptorPromise.then(() => {
2045
+ if (Object.keys(localVarFormParams).length) {
2046
+ if (localVarUseFormData) {
2047
+ localVarRequestOptions.formData = localVarFormParams;
2048
+ }
2049
+ else {
2050
+ localVarRequestOptions.form = localVarFormParams;
2051
+ }
2052
+ }
2053
+ return new Promise((resolve, reject) => {
2054
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2055
+ if (error) {
2056
+ reject(error);
2057
+ }
2058
+ else {
2059
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2060
+ body = models_1.ObjectSerializer.deserialize(body, "InlineResponse20011");
2061
+ resolve({ response: response, body: body });
2062
+ }
2063
+ else {
2064
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2065
+ }
2066
+ }
2067
+ });
2068
+ });
2069
+ });
2070
+ });
2071
+ }
2072
+ saveImportedList(listID, inlineObject60, options = { headers: {} }) {
2073
+ return __awaiter(this, void 0, void 0, function* () {
2074
+ const localVarPath = this.basePath + '/v2/sms/importedList/{listID}'
2075
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
2076
+ let localVarQueryParameters = {};
2077
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2078
+ const produces = ['application/json'];
2079
+ if (produces.indexOf('application/json') >= 0) {
2080
+ localVarHeaderParams.Accept = 'application/json';
2081
+ }
2082
+ else {
2083
+ localVarHeaderParams.Accept = produces.join(',');
2084
+ }
2085
+ let localVarFormParams = {};
2086
+ if (listID === null || listID === undefined) {
2087
+ throw new Error('Required parameter listID was null or undefined when calling saveImportedList.');
2088
+ }
2089
+ if (inlineObject60 === null || inlineObject60 === undefined) {
2090
+ throw new Error('Required parameter inlineObject60 was null or undefined when calling saveImportedList.');
2091
+ }
2092
+ Object.assign(localVarHeaderParams, options.headers);
2093
+ let localVarUseFormData = false;
2094
+ let localVarRequestOptions = {
2095
+ method: 'PUT',
2096
+ qs: localVarQueryParameters,
2097
+ headers: localVarHeaderParams,
2098
+ uri: localVarPath,
2099
+ useQuerystring: this._useQuerystring,
2100
+ json: true,
2101
+ body: models_1.ObjectSerializer.serialize(inlineObject60, "InlineObject60")
2102
+ };
2103
+ let authenticationPromise = Promise.resolve();
2104
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2105
+ let interceptorPromise = authenticationPromise;
2106
+ for (const interceptor of this.interceptors) {
2107
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2108
+ }
2109
+ return interceptorPromise.then(() => {
2110
+ if (Object.keys(localVarFormParams).length) {
2111
+ if (localVarUseFormData) {
2112
+ localVarRequestOptions.formData = localVarFormParams;
2113
+ }
2114
+ else {
2115
+ localVarRequestOptions.form = localVarFormParams;
2116
+ }
2117
+ }
2118
+ return new Promise((resolve, reject) => {
2119
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2120
+ if (error) {
2121
+ reject(error);
2122
+ }
2123
+ else {
2124
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2125
+ body = models_1.ObjectSerializer.deserialize(body, "any");
2126
+ resolve({ response: response, body: body });
2127
+ }
2128
+ else {
2129
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2130
+ }
2131
+ }
2132
+ });
2133
+ });
2134
+ });
2135
+ });
2136
+ }
2137
+ saveOptInList(listID, inlineObject55, options = { headers: {} }) {
2138
+ return __awaiter(this, void 0, void 0, function* () {
2139
+ const localVarPath = this.basePath + '/v2/sms/optInList/{listID}'
2140
+ .replace('{' + 'listID' + '}', encodeURIComponent(String(listID)));
2141
+ let localVarQueryParameters = {};
2142
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2143
+ const produces = ['application/json'];
2144
+ if (produces.indexOf('application/json') >= 0) {
2145
+ localVarHeaderParams.Accept = 'application/json';
2146
+ }
2147
+ else {
2148
+ localVarHeaderParams.Accept = produces.join(',');
2149
+ }
2150
+ let localVarFormParams = {};
2151
+ if (listID === null || listID === undefined) {
2152
+ throw new Error('Required parameter listID was null or undefined when calling saveOptInList.');
2153
+ }
2154
+ if (inlineObject55 === null || inlineObject55 === undefined) {
2155
+ throw new Error('Required parameter inlineObject55 was null or undefined when calling saveOptInList.');
2156
+ }
2157
+ Object.assign(localVarHeaderParams, options.headers);
2158
+ let localVarUseFormData = false;
2159
+ let localVarRequestOptions = {
2160
+ method: 'PUT',
2161
+ qs: localVarQueryParameters,
2162
+ headers: localVarHeaderParams,
2163
+ uri: localVarPath,
2164
+ useQuerystring: this._useQuerystring,
2165
+ json: true,
2166
+ body: models_1.ObjectSerializer.serialize(inlineObject55, "InlineObject55")
2167
+ };
2168
+ let authenticationPromise = Promise.resolve();
2169
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2170
+ let interceptorPromise = authenticationPromise;
2171
+ for (const interceptor of this.interceptors) {
2172
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2173
+ }
2174
+ return interceptorPromise.then(() => {
2175
+ if (Object.keys(localVarFormParams).length) {
2176
+ if (localVarUseFormData) {
2177
+ localVarRequestOptions.formData = localVarFormParams;
2178
+ }
2179
+ else {
2180
+ localVarRequestOptions.form = localVarFormParams;
2181
+ }
2182
+ }
2183
+ return new Promise((resolve, reject) => {
2184
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2185
+ if (error) {
2186
+ reject(error);
2187
+ }
2188
+ else {
2189
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2190
+ body = models_1.ObjectSerializer.deserialize(body, "any");
2191
+ resolve({ response: response, body: body });
2192
+ }
2193
+ else {
2194
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2195
+ }
2196
+ }
2197
+ });
2198
+ });
2199
+ });
2200
+ });
2201
+ }
2202
+ saveOptInListSource(sourceID, inlineObject57, options = { headers: {} }) {
2203
+ return __awaiter(this, void 0, void 0, function* () {
2204
+ const localVarPath = this.basePath + '/v2/sms/optInListSource/{sourceID}'
2205
+ .replace('{' + 'sourceID' + '}', encodeURIComponent(String(sourceID)));
2206
+ let localVarQueryParameters = {};
2207
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2208
+ const produces = ['application/json'];
2209
+ if (produces.indexOf('application/json') >= 0) {
2210
+ localVarHeaderParams.Accept = 'application/json';
2211
+ }
2212
+ else {
2213
+ localVarHeaderParams.Accept = produces.join(',');
2214
+ }
2215
+ let localVarFormParams = {};
2216
+ if (sourceID === null || sourceID === undefined) {
2217
+ throw new Error('Required parameter sourceID was null or undefined when calling saveOptInListSource.');
2218
+ }
2219
+ if (inlineObject57 === null || inlineObject57 === undefined) {
2220
+ throw new Error('Required parameter inlineObject57 was null or undefined when calling saveOptInListSource.');
2221
+ }
2222
+ Object.assign(localVarHeaderParams, options.headers);
2223
+ let localVarUseFormData = false;
2224
+ let localVarRequestOptions = {
2225
+ method: 'PUT',
2226
+ qs: localVarQueryParameters,
2227
+ headers: localVarHeaderParams,
2228
+ uri: localVarPath,
2229
+ useQuerystring: this._useQuerystring,
2230
+ json: true,
2231
+ body: models_1.ObjectSerializer.serialize(inlineObject57, "InlineObject57")
2232
+ };
2233
+ let authenticationPromise = Promise.resolve();
2234
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2235
+ let interceptorPromise = authenticationPromise;
2236
+ for (const interceptor of this.interceptors) {
2237
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2238
+ }
2239
+ return interceptorPromise.then(() => {
2240
+ if (Object.keys(localVarFormParams).length) {
2241
+ if (localVarUseFormData) {
2242
+ localVarRequestOptions.formData = localVarFormParams;
2243
+ }
2244
+ else {
2245
+ localVarRequestOptions.form = localVarFormParams;
2246
+ }
2247
+ }
2248
+ return new Promise((resolve, reject) => {
2249
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2250
+ if (error) {
2251
+ reject(error);
2252
+ }
2253
+ else {
2254
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2255
+ body = models_1.ObjectSerializer.deserialize(body, "OptInListSource");
2256
+ resolve({ response: response, body: body });
2257
+ }
2258
+ else {
2259
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2260
+ }
2261
+ }
2262
+ });
2263
+ });
2264
+ });
2265
+ });
2266
+ }
2267
+ sendPhoneNumberForVerification(phoneNumberID, inlineObject53, options = { headers: {} }) {
2268
+ return __awaiter(this, void 0, void 0, function* () {
2269
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/verification/{phoneNumberID}'
2270
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
2271
+ let localVarQueryParameters = {};
2272
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2273
+ const produces = ['application/json'];
2274
+ if (produces.indexOf('application/json') >= 0) {
2275
+ localVarHeaderParams.Accept = 'application/json';
2276
+ }
2277
+ else {
2278
+ localVarHeaderParams.Accept = produces.join(',');
2279
+ }
2280
+ let localVarFormParams = {};
2281
+ if (phoneNumberID === null || phoneNumberID === undefined) {
2282
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling sendPhoneNumberForVerification.');
2283
+ }
2284
+ if (inlineObject53 === null || inlineObject53 === undefined) {
2285
+ throw new Error('Required parameter inlineObject53 was null or undefined when calling sendPhoneNumberForVerification.');
2286
+ }
2287
+ Object.assign(localVarHeaderParams, options.headers);
2288
+ let localVarUseFormData = false;
2289
+ let localVarRequestOptions = {
2290
+ method: 'PUT',
2291
+ qs: localVarQueryParameters,
2292
+ headers: localVarHeaderParams,
2293
+ uri: localVarPath,
2294
+ useQuerystring: this._useQuerystring,
2295
+ json: true,
2296
+ body: models_1.ObjectSerializer.serialize(inlineObject53, "InlineObject53")
2297
+ };
2298
+ let authenticationPromise = Promise.resolve();
2299
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2300
+ let interceptorPromise = authenticationPromise;
2301
+ for (const interceptor of this.interceptors) {
2302
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2303
+ }
2304
+ return interceptorPromise.then(() => {
2305
+ if (Object.keys(localVarFormParams).length) {
2306
+ if (localVarUseFormData) {
2307
+ localVarRequestOptions.formData = localVarFormParams;
2308
+ }
2309
+ else {
2310
+ localVarRequestOptions.form = localVarFormParams;
2311
+ }
2312
+ }
2313
+ return new Promise((resolve, reject) => {
2314
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2315
+ if (error) {
2316
+ reject(error);
2317
+ }
2318
+ else {
2319
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2320
+ body = models_1.ObjectSerializer.deserialize(body, "string");
2321
+ resolve({ response: response, body: body });
2322
+ }
2323
+ else {
2324
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2325
+ }
2326
+ }
2327
+ });
2328
+ });
2329
+ });
2330
+ });
2331
+ }
2332
+ updatePhoneNumber(phoneNumberID, inlineObject54, options = { headers: {} }) {
2333
+ return __awaiter(this, void 0, void 0, function* () {
2334
+ const localVarPath = this.basePath + '/v2/sms/phoneNumber/{phoneNumberID}'
2335
+ .replace('{' + 'phoneNumberID' + '}', encodeURIComponent(String(phoneNumberID)));
2336
+ let localVarQueryParameters = {};
2337
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
2338
+ const produces = ['application/json'];
2339
+ if (produces.indexOf('application/json') >= 0) {
2340
+ localVarHeaderParams.Accept = 'application/json';
2341
+ }
2342
+ else {
2343
+ localVarHeaderParams.Accept = produces.join(',');
2344
+ }
2345
+ let localVarFormParams = {};
2346
+ if (phoneNumberID === null || phoneNumberID === undefined) {
2347
+ throw new Error('Required parameter phoneNumberID was null or undefined when calling updatePhoneNumber.');
2348
+ }
2349
+ if (inlineObject54 === null || inlineObject54 === undefined) {
2350
+ throw new Error('Required parameter inlineObject54 was null or undefined when calling updatePhoneNumber.');
2351
+ }
2352
+ Object.assign(localVarHeaderParams, options.headers);
2353
+ let localVarUseFormData = false;
2354
+ let localVarRequestOptions = {
2355
+ method: 'PUT',
2356
+ qs: localVarQueryParameters,
2357
+ headers: localVarHeaderParams,
2358
+ uri: localVarPath,
2359
+ useQuerystring: this._useQuerystring,
2360
+ json: true,
2361
+ body: models_1.ObjectSerializer.serialize(inlineObject54, "InlineObject54")
2362
+ };
2363
+ let authenticationPromise = Promise.resolve();
2364
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2365
+ let interceptorPromise = authenticationPromise;
2366
+ for (const interceptor of this.interceptors) {
2367
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2368
+ }
2369
+ return interceptorPromise.then(() => {
2370
+ if (Object.keys(localVarFormParams).length) {
2371
+ if (localVarUseFormData) {
2372
+ localVarRequestOptions.formData = localVarFormParams;
2373
+ }
2374
+ else {
2375
+ localVarRequestOptions.form = localVarFormParams;
2376
+ }
2377
+ }
2378
+ return new Promise((resolve, reject) => {
2379
+ request_1.default(localVarRequestOptions, (error, response, body) => {
2380
+ if (error) {
2381
+ reject(error);
2382
+ }
2383
+ else {
2384
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2385
+ body = models_1.ObjectSerializer.deserialize(body, "any");
2386
+ resolve({ response: response, body: body });
2387
+ }
2388
+ else {
2389
+ reject(new apis_1.HttpError(response, body, response.statusCode));
2390
+ }
2391
+ }
2392
+ });
2393
+ });
2394
+ });
2395
+ });
2396
+ }
2397
+ }
2398
+ exports.SMSApi = SMSApi;
2399
+ //# sourceMappingURL=sMSApi.js.map