wallet 2.1.533 → 2.1.535

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