@paddle/paddle-node-sdk 2.8.0 → 3.1.0

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 (636) hide show
  1. package/dist/cjs/entities/address/address.js +14 -0
  2. package/dist/cjs/entities/adjustment/adjustment-credit-note-pdf.js +1 -0
  3. package/dist/cjs/entities/adjustment/adjustment-item-totals.js +3 -0
  4. package/dist/cjs/entities/adjustment/adjustment-item.js +6 -0
  5. package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -0
  6. package/dist/cjs/entities/adjustment/adjustment-time-period.js +2 -0
  7. package/dist/cjs/entities/adjustment/adjustment.js +15 -0
  8. package/dist/cjs/entities/business/business.js +11 -0
  9. package/dist/cjs/entities/business/contacts.js +2 -0
  10. package/dist/cjs/entities/client-token/client-token-collection.js +11 -0
  11. package/dist/cjs/entities/client-token/client-token.js +24 -0
  12. package/dist/cjs/entities/client-token/index.js +18 -0
  13. package/dist/cjs/entities/customer/auth-token.js +2 -0
  14. package/dist/cjs/entities/customer/credit-balance.js +3 -0
  15. package/dist/cjs/entities/customer/customer-balance.js +3 -0
  16. package/dist/cjs/entities/customer/customer.js +10 -0
  17. package/dist/cjs/entities/customer-portal-session/customer-portal-session.js +4 -0
  18. package/dist/cjs/entities/customer-portal-session/customer-portal-subscription-url.js +3 -0
  19. package/dist/cjs/entities/customer-portal-session/general.js +1 -0
  20. package/dist/cjs/entities/customer-portal-session/urls.js +3 -2
  21. package/dist/cjs/entities/discount/discount.js +24 -2
  22. package/dist/cjs/entities/discount-group/discount-group.js +6 -0
  23. package/dist/cjs/entities/event-types/event-type.js +4 -0
  24. package/dist/cjs/entities/events/event.js +6 -2
  25. package/dist/cjs/entities/notification-settings/notification-settings.js +10 -0
  26. package/dist/cjs/entities/notifications/notification-log.js +6 -2
  27. package/dist/cjs/entities/notifications/notification.js +16 -5
  28. package/dist/cjs/entities/notifications/replay-notification.js +1 -0
  29. package/dist/cjs/entities/payment-method/payment-method.js +10 -0
  30. package/dist/cjs/entities/payout/payout.js +4 -0
  31. package/dist/cjs/entities/price/price-quantity.js +2 -0
  32. package/dist/cjs/entities/price/price.js +18 -2
  33. package/dist/cjs/entities/pricing-preview/pricing-preview-details.js +1 -0
  34. package/dist/cjs/entities/pricing-preview/pricing-preview-discounts.js +3 -0
  35. package/dist/cjs/entities/pricing-preview/pricing-preview-line-item.js +9 -0
  36. package/dist/cjs/entities/pricing-preview/pricing-preview.js +15 -7
  37. package/dist/cjs/entities/product/product.js +13 -2
  38. package/dist/cjs/entities/report/report-csv.js +1 -0
  39. package/dist/cjs/entities/report/report-filters.js +4 -2
  40. package/dist/cjs/entities/report/report.js +10 -4
  41. package/dist/cjs/entities/shared/adjustment-original-amount.js +2 -0
  42. package/dist/cjs/entities/shared/billing-details.js +5 -2
  43. package/dist/cjs/entities/shared/chargeback-fee.js +2 -0
  44. package/dist/cjs/entities/shared/import-meta.js +2 -0
  45. package/dist/cjs/entities/shared/korean-market-underlying-details.js +1 -0
  46. package/dist/cjs/entities/shared/money.js +2 -0
  47. package/dist/cjs/entities/shared/payment-card.js +5 -0
  48. package/dist/cjs/entities/shared/payment-method-details.js +3 -0
  49. package/dist/cjs/entities/shared/payment-method-underlying-details.js +1 -0
  50. package/dist/cjs/entities/shared/payout-totals-adjustment.js +7 -0
  51. package/dist/cjs/entities/shared/paypal.js +2 -0
  52. package/dist/cjs/entities/shared/simulation-event-request.js +1 -0
  53. package/dist/cjs/entities/shared/simulation-event-response.js +2 -0
  54. package/dist/cjs/entities/shared/tax-rates-used.js +2 -0
  55. package/dist/cjs/entities/shared/time-period.js +2 -0
  56. package/dist/cjs/entities/shared/total-adjustments.js +6 -0
  57. package/dist/cjs/entities/shared/totals.js +4 -0
  58. package/dist/cjs/entities/shared/transaction-checkout.js +1 -0
  59. package/dist/cjs/entities/shared/transaction-payment-attempt.js +10 -2
  60. package/dist/cjs/entities/shared/transaction-payout-totals-adjusted.js +9 -0
  61. package/dist/cjs/entities/shared/transaction-payout-totals.js +15 -0
  62. package/dist/cjs/entities/shared/transaction-totals-adjusted.js +7 -0
  63. package/dist/cjs/entities/shared/transaction-totals.js +11 -0
  64. package/dist/cjs/entities/shared/unit-price-override.js +2 -0
  65. package/dist/cjs/entities/shared/unit-totals.js +4 -0
  66. package/dist/cjs/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +5 -0
  67. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +2 -0
  68. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +2 -2
  69. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +4 -3
  70. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-details.js +2 -0
  71. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +14 -8
  72. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-item.js +2 -0
  73. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-options.js +6 -4
  74. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-details.js +2 -0
  75. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +2 -2
  76. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-options.js +4 -3
  77. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +2 -0
  78. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +2 -2
  79. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +4 -3
  80. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-details.js +2 -0
  81. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +2 -2
  82. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-options.js +4 -3
  83. package/dist/cjs/entities/simulation/simulation.js +12 -3
  84. package/dist/cjs/entities/simulation-run/simulation-run.js +7 -2
  85. package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +8 -0
  86. package/dist/cjs/entities/simulation-types/simulation-type.js +6 -0
  87. package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +5 -0
  88. package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +3 -0
  89. package/dist/cjs/entities/subscription/next-transaction.js +3 -0
  90. package/dist/cjs/entities/subscription/subscription-discount.js +5 -3
  91. package/dist/cjs/entities/subscription/subscription-item.js +10 -0
  92. package/dist/cjs/entities/subscription/subscription-management.js +2 -0
  93. package/dist/cjs/entities/subscription/subscription-preview-summary-result.js +3 -0
  94. package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +3 -0
  95. package/dist/cjs/entities/subscription/subscription-preview.js +26 -0
  96. package/dist/cjs/entities/subscription/subscription-scheduled-change.js +3 -0
  97. package/dist/cjs/entities/subscription/subscription-time-period.js +2 -0
  98. package/dist/cjs/entities/subscription/subscription.js +25 -0
  99. package/dist/cjs/entities/subscription/transaction-details-preview.js +3 -0
  100. package/dist/cjs/entities/subscription/transaction-line-item-preview.js +7 -0
  101. package/dist/cjs/entities/transaction/address-preview.js +2 -0
  102. package/dist/cjs/entities/transaction/adjustment-totals-breakdown.js +3 -0
  103. package/dist/cjs/entities/transaction/adjustment-totals.js +7 -0
  104. package/dist/cjs/entities/transaction/proration.js +2 -0
  105. package/dist/cjs/entities/transaction/transaction-adjustment-item.js +6 -0
  106. package/dist/cjs/entities/transaction/transaction-adjustment.js +14 -0
  107. package/dist/cjs/entities/transaction/transaction-details.js +6 -0
  108. package/dist/cjs/entities/transaction/transaction-invoice-pdf.js +1 -0
  109. package/dist/cjs/entities/transaction/transaction-item-preview.js +5 -2
  110. package/dist/cjs/entities/transaction/transaction-item.js +3 -0
  111. package/dist/cjs/entities/transaction/transaction-line-item.js +8 -0
  112. package/dist/cjs/entities/transaction/transaction-preview.js +12 -2
  113. package/dist/cjs/entities/transaction/transaction-proration.js +2 -0
  114. package/dist/cjs/entities/transaction/transaction.js +31 -2
  115. package/dist/cjs/entities/transaction/transactions-time-period.js +2 -0
  116. package/dist/cjs/enums/client-tokens/client-token-status.js +2 -0
  117. package/dist/cjs/enums/client-tokens/index.js +17 -0
  118. package/dist/cjs/enums/index.js +1 -0
  119. package/dist/cjs/internal/api/case-helpers.js +2 -13
  120. package/dist/cjs/internal/api/client.js +54 -64
  121. package/dist/cjs/internal/base/base-resource.js +1 -0
  122. package/dist/cjs/internal/base/collection.js +20 -45
  123. package/dist/cjs/internal/base/logger.js +1 -0
  124. package/dist/cjs/internal/base/path-parameters.js +2 -0
  125. package/dist/cjs/internal/base/query-parameters.js +1 -0
  126. package/dist/cjs/internal/errors/generic.js +5 -0
  127. package/dist/cjs/internal/providers/crypto/crypto-provider.js +2 -13
  128. package/dist/cjs/internal/providers/crypto/edge-crypto.js +14 -25
  129. package/dist/cjs/internal/providers/crypto/node-crypto.js +5 -16
  130. package/dist/cjs/internal/providers/runtime-provider.js +1 -0
  131. package/dist/cjs/notifications/entities/address/address-notification.js +15 -2
  132. package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +6 -0
  133. package/dist/cjs/notifications/entities/adjustment/adjustment-item-totals-notification.js +3 -0
  134. package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +15 -0
  135. package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -0
  136. package/dist/cjs/notifications/entities/adjustment/adjustment-time-period-notification.js +2 -0
  137. package/dist/cjs/notifications/entities/api-key/api-key-notification.js +13 -4
  138. package/dist/cjs/notifications/entities/business/business-notification.js +12 -2
  139. package/dist/cjs/notifications/entities/business/contacts-notification.js +2 -0
  140. package/dist/cjs/notifications/entities/client-token/client-token-notification.js +24 -0
  141. package/dist/cjs/notifications/entities/client-token/index.js +17 -0
  142. package/dist/cjs/notifications/entities/customer/customer-notification.js +10 -0
  143. package/dist/cjs/notifications/entities/discount/discount-notification.js +22 -2
  144. package/dist/cjs/notifications/entities/discount-group/discount-group-notification.js +6 -0
  145. package/dist/cjs/notifications/entities/index.js +1 -0
  146. package/dist/cjs/notifications/entities/payment-method/payment-method-deleted-notification.js +8 -0
  147. package/dist/cjs/notifications/entities/payment-method/payment-method-notification.js +7 -0
  148. package/dist/cjs/notifications/entities/payout/payout-notification.js +4 -0
  149. package/dist/cjs/notifications/entities/price/price-notification.js +19 -4
  150. package/dist/cjs/notifications/entities/price/price-quantity-notification.js +2 -0
  151. package/dist/cjs/notifications/entities/product/product-notification.js +13 -3
  152. package/dist/cjs/notifications/entities/report/report-filters-notification.js +4 -2
  153. package/dist/cjs/notifications/entities/report/report-notification.js +10 -4
  154. package/dist/cjs/notifications/entities/shared/adjustment-original-amount-notification.js +2 -0
  155. package/dist/cjs/notifications/entities/shared/billing-details-notification.js +5 -2
  156. package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -0
  157. package/dist/cjs/notifications/entities/shared/import-meta-notification.js +2 -0
  158. package/dist/cjs/notifications/entities/shared/korean-market-underlying-details-notification.js +1 -0
  159. package/dist/cjs/notifications/entities/shared/money-notification.js +2 -0
  160. package/dist/cjs/notifications/entities/shared/payment-card-notification.js +5 -0
  161. package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +3 -0
  162. package/dist/cjs/notifications/entities/shared/payment-method-underlying-details-notification.js +1 -0
  163. package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +7 -0
  164. package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -0
  165. package/dist/cjs/notifications/entities/shared/time-period-notification.js +2 -0
  166. package/dist/cjs/notifications/entities/shared/total-adjustments-notification.js +6 -0
  167. package/dist/cjs/notifications/entities/shared/totals-notification.js +4 -0
  168. package/dist/cjs/notifications/entities/shared/transaction-checkout-notification.js +1 -0
  169. package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +10 -2
  170. package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +9 -0
  171. package/dist/cjs/notifications/entities/shared/transaction-payout-totals-notification.js +13 -0
  172. package/dist/cjs/notifications/entities/shared/transaction-totals-adjusted-notification.js +7 -0
  173. package/dist/cjs/notifications/entities/shared/transaction-totals-notification.js +11 -0
  174. package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -0
  175. package/dist/cjs/notifications/entities/shared/unit-totals-notification.js +4 -0
  176. package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +23 -0
  177. package/dist/cjs/notifications/entities/subscription/subscription-discount-notification.js +4 -2
  178. package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +10 -0
  179. package/dist/cjs/notifications/entities/subscription/subscription-notification.js +22 -0
  180. package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +16 -3
  181. package/dist/cjs/notifications/entities/subscription/subscription-scheduled-change-notification.js +3 -0
  182. package/dist/cjs/notifications/entities/subscription/subscription-time-period-notification.js +2 -0
  183. package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +6 -0
  184. package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +3 -0
  185. package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +8 -0
  186. package/dist/cjs/notifications/entities/transaction/transaction-notification.js +23 -0
  187. package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -0
  188. package/dist/cjs/notifications/entities/transaction/transactions-time-period-notification.js +2 -0
  189. package/dist/cjs/notifications/events/address/address-created-event.js +2 -1
  190. package/dist/cjs/notifications/events/address/address-imported-event.js +2 -1
  191. package/dist/cjs/notifications/events/address/address-updated-event.js +2 -1
  192. package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +2 -1
  193. package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +2 -1
  194. package/dist/cjs/notifications/events/api-key/api-key-created-event.js +2 -1
  195. package/dist/cjs/notifications/events/api-key/api-key-expired-event.js +2 -1
  196. package/dist/cjs/notifications/events/api-key/api-key-expiring-event.js +2 -1
  197. package/dist/cjs/notifications/events/api-key/api-key-revoked-event.js +2 -1
  198. package/dist/cjs/notifications/events/api-key/api-key-updated-event.js +2 -1
  199. package/dist/cjs/notifications/events/business/business-created-event.js +2 -1
  200. package/dist/cjs/notifications/events/business/business-imported-event.js +2 -1
  201. package/dist/cjs/notifications/events/business/business-updated-event.js +2 -1
  202. package/dist/cjs/notifications/events/client-token/client-token-created-event.js +15 -0
  203. package/dist/cjs/notifications/events/client-token/client-token-revoked-event.js +15 -0
  204. package/dist/cjs/notifications/events/client-token/client-token-updated-event.js +15 -0
  205. package/dist/cjs/notifications/events/client-token/index.js +19 -0
  206. package/dist/cjs/notifications/events/customer/customer-created-event.js +2 -1
  207. package/dist/cjs/notifications/events/customer/customer-imported-event.js +2 -1
  208. package/dist/cjs/notifications/events/customer/customer-updated-event.js +2 -1
  209. package/dist/cjs/notifications/events/discount/discount-created-event.js +2 -1
  210. package/dist/cjs/notifications/events/discount/discount-imported-event.js +2 -1
  211. package/dist/cjs/notifications/events/discount/discount-updated-event.js +2 -1
  212. package/dist/cjs/notifications/events/discount-group/discount-group-created-event.js +2 -1
  213. package/dist/cjs/notifications/events/discount-group/discount-group-updated-event.js +15 -0
  214. package/dist/cjs/notifications/events/discount-group/index.js +1 -0
  215. package/dist/cjs/notifications/events/generic/generic-event.js +1 -0
  216. package/dist/cjs/notifications/events/index.js +1 -0
  217. package/dist/cjs/notifications/events/payment-method/payment-method-deleted-event.js +2 -1
  218. package/dist/cjs/notifications/events/payment-method/payment-method-saved-event.js +2 -1
  219. package/dist/cjs/notifications/events/payout/payout-created-event.js +2 -1
  220. package/dist/cjs/notifications/events/payout/payout-paid-event.js +2 -1
  221. package/dist/cjs/notifications/events/price/price-created-event.js +2 -1
  222. package/dist/cjs/notifications/events/price/price-imported-event.js +2 -1
  223. package/dist/cjs/notifications/events/price/price-updated-event.js +2 -1
  224. package/dist/cjs/notifications/events/product/product-created-event.js +2 -1
  225. package/dist/cjs/notifications/events/product/product-imported-event.js +2 -1
  226. package/dist/cjs/notifications/events/product/product-updated-event.js +2 -1
  227. package/dist/cjs/notifications/events/report/report-created-event.js +2 -1
  228. package/dist/cjs/notifications/events/report/report-updated-event.js +2 -1
  229. package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +2 -1
  230. package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +2 -1
  231. package/dist/cjs/notifications/events/subscription/subscription-created-event.js +2 -1
  232. package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +2 -1
  233. package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +2 -1
  234. package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +2 -1
  235. package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +2 -1
  236. package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +2 -1
  237. package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +2 -1
  238. package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +2 -1
  239. package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +2 -1
  240. package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +2 -1
  241. package/dist/cjs/notifications/events/transaction/transaction-created-event.js +2 -1
  242. package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +2 -1
  243. package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +2 -1
  244. package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +2 -1
  245. package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +2 -1
  246. package/dist/cjs/notifications/events/transaction/transaction-revised-event.js +2 -1
  247. package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +2 -1
  248. package/dist/cjs/notifications/helpers/types.js +4 -0
  249. package/dist/cjs/notifications/helpers/webhooks-validator.js +14 -26
  250. package/dist/cjs/notifications/helpers/webhooks.js +19 -24
  251. package/dist/cjs/notifications/types/client-token/client-token-notification-response.js +2 -0
  252. package/dist/cjs/notifications/types/client-token/index.js +17 -0
  253. package/dist/cjs/notifications/types/index.js +1 -0
  254. package/dist/cjs/paddle.js +31 -5
  255. package/dist/cjs/resources/addresses/index.js +25 -42
  256. package/dist/cjs/resources/adjustments/index.js +12 -25
  257. package/dist/cjs/resources/businesses/index.js +25 -42
  258. package/dist/cjs/resources/client-tokens/index.js +57 -0
  259. package/dist/cjs/resources/client-tokens/operations/create-client-token-request-body.js +2 -0
  260. package/dist/cjs/resources/client-tokens/operations/index.js +19 -0
  261. package/dist/cjs/resources/client-tokens/operations/list-client-token-query-parameters.js +2 -0
  262. package/dist/cjs/resources/client-tokens/operations/update-client-token-request-body.js +2 -0
  263. package/dist/cjs/resources/customer-portal-sessions/index.js +8 -19
  264. package/dist/cjs/resources/customers/index.js +35 -56
  265. package/dist/cjs/resources/discount-groups/index.js +25 -15
  266. package/dist/cjs/resources/discount-groups/operations/index.js +1 -0
  267. package/dist/cjs/resources/discount-groups/operations/update-discount-group-request-body.js +2 -0
  268. package/dist/cjs/resources/discounts/index.js +21 -37
  269. package/dist/cjs/resources/discounts/operations/get-discount-query-parameters.js +2 -0
  270. package/dist/cjs/resources/discounts/operations/index.js +1 -0
  271. package/dist/cjs/resources/event-types/index.js +4 -15
  272. package/dist/cjs/resources/index.js +1 -0
  273. package/dist/cjs/resources/notification-settings/index.js +31 -50
  274. package/dist/cjs/resources/notifications/index.js +14 -27
  275. package/dist/cjs/resources/payment-methods/index.js +17 -30
  276. package/dist/cjs/resources/prices/index.js +21 -38
  277. package/dist/cjs/resources/pricing-preview/index.js +4 -15
  278. package/dist/cjs/resources/products/index.js +21 -38
  279. package/dist/cjs/resources/reports/index.js +18 -33
  280. package/dist/cjs/resources/simulation-run-events/index.js +18 -31
  281. package/dist/cjs/resources/simulation-runs/index.js +16 -29
  282. package/dist/cjs/resources/simulation-types/index.js +4 -15
  283. package/dist/cjs/resources/simulations/index.js +18 -33
  284. package/dist/cjs/resources/subscriptions/index.js +71 -100
  285. package/dist/cjs/resources/transactions/index.js +40 -61
  286. package/dist/cjs/types/client-token/client-token-response.js +2 -0
  287. package/dist/cjs/types/client-token/index.js +17 -0
  288. package/dist/cjs/types/index.js +1 -0
  289. package/dist/cjs/version.js +1 -1
  290. package/dist/esm/entities/address/address.js +14 -0
  291. package/dist/esm/entities/adjustment/adjustment-credit-note-pdf.js +1 -0
  292. package/dist/esm/entities/adjustment/adjustment-item-totals.js +3 -0
  293. package/dist/esm/entities/adjustment/adjustment-item.js +6 -0
  294. package/dist/esm/entities/adjustment/adjustment-proration.js +2 -0
  295. package/dist/esm/entities/adjustment/adjustment-time-period.js +2 -0
  296. package/dist/esm/entities/adjustment/adjustment.js +15 -0
  297. package/dist/esm/entities/business/business.js +11 -0
  298. package/dist/esm/entities/business/contacts.js +2 -0
  299. package/dist/esm/entities/client-token/client-token-collection.js +7 -0
  300. package/dist/esm/entities/client-token/client-token.js +20 -0
  301. package/dist/esm/entities/client-token/index.js +2 -0
  302. package/dist/esm/entities/customer/auth-token.js +2 -0
  303. package/dist/esm/entities/customer/credit-balance.js +3 -0
  304. package/dist/esm/entities/customer/customer-balance.js +3 -0
  305. package/dist/esm/entities/customer/customer.js +10 -0
  306. package/dist/esm/entities/customer-portal-session/customer-portal-session.js +4 -0
  307. package/dist/esm/entities/customer-portal-session/customer-portal-subscription-url.js +3 -0
  308. package/dist/esm/entities/customer-portal-session/general.js +1 -0
  309. package/dist/esm/entities/customer-portal-session/urls.js +3 -2
  310. package/dist/esm/entities/discount/discount.js +25 -3
  311. package/dist/esm/entities/discount-group/discount-group.js +6 -0
  312. package/dist/esm/entities/event-types/event-type.js +4 -0
  313. package/dist/esm/entities/events/event.js +6 -2
  314. package/dist/esm/entities/notification-settings/notification-settings.js +10 -0
  315. package/dist/esm/entities/notifications/notification-log.js +6 -2
  316. package/dist/esm/entities/notifications/notification.js +16 -5
  317. package/dist/esm/entities/notifications/replay-notification.js +1 -0
  318. package/dist/esm/entities/payment-method/payment-method.js +10 -0
  319. package/dist/esm/entities/payout/payout.js +4 -0
  320. package/dist/esm/entities/price/price-quantity.js +2 -0
  321. package/dist/esm/entities/price/price.js +18 -2
  322. package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -0
  323. package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +3 -0
  324. package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +9 -0
  325. package/dist/esm/entities/pricing-preview/pricing-preview.js +15 -7
  326. package/dist/esm/entities/product/product.js +13 -2
  327. package/dist/esm/entities/report/report-csv.js +1 -0
  328. package/dist/esm/entities/report/report-filters.js +4 -2
  329. package/dist/esm/entities/report/report.js +10 -4
  330. package/dist/esm/entities/shared/adjustment-original-amount.js +2 -0
  331. package/dist/esm/entities/shared/billing-details.js +5 -2
  332. package/dist/esm/entities/shared/chargeback-fee.js +2 -0
  333. package/dist/esm/entities/shared/import-meta.js +2 -0
  334. package/dist/esm/entities/shared/korean-market-underlying-details.js +1 -0
  335. package/dist/esm/entities/shared/money.js +2 -0
  336. package/dist/esm/entities/shared/payment-card.js +5 -0
  337. package/dist/esm/entities/shared/payment-method-details.js +3 -0
  338. package/dist/esm/entities/shared/payment-method-underlying-details.js +1 -0
  339. package/dist/esm/entities/shared/payout-totals-adjustment.js +7 -0
  340. package/dist/esm/entities/shared/paypal.js +2 -0
  341. package/dist/esm/entities/shared/simulation-event-request.js +1 -0
  342. package/dist/esm/entities/shared/simulation-event-response.js +2 -0
  343. package/dist/esm/entities/shared/tax-rates-used.js +2 -0
  344. package/dist/esm/entities/shared/time-period.js +2 -0
  345. package/dist/esm/entities/shared/total-adjustments.js +6 -0
  346. package/dist/esm/entities/shared/totals.js +4 -0
  347. package/dist/esm/entities/shared/transaction-checkout.js +1 -0
  348. package/dist/esm/entities/shared/transaction-payment-attempt.js +10 -2
  349. package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +9 -0
  350. package/dist/esm/entities/shared/transaction-payout-totals.js +15 -0
  351. package/dist/esm/entities/shared/transaction-totals-adjusted.js +7 -0
  352. package/dist/esm/entities/shared/transaction-totals.js +11 -0
  353. package/dist/esm/entities/shared/unit-price-override.js +2 -0
  354. package/dist/esm/entities/shared/unit-totals.js +4 -0
  355. package/dist/esm/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +5 -0
  356. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +2 -0
  357. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +2 -2
  358. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +4 -3
  359. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-details.js +2 -0
  360. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +14 -8
  361. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-item.js +2 -0
  362. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-options.js +6 -4
  363. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-details.js +2 -0
  364. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +2 -2
  365. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-options.js +4 -3
  366. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +2 -0
  367. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +2 -2
  368. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +4 -3
  369. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-details.js +2 -0
  370. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +2 -2
  371. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-options.js +4 -3
  372. package/dist/esm/entities/simulation/simulation.js +12 -3
  373. package/dist/esm/entities/simulation-run/simulation-run.js +7 -2
  374. package/dist/esm/entities/simulation-run-event/simulation-run-event.js +8 -0
  375. package/dist/esm/entities/simulation-types/simulation-type.js +6 -0
  376. package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +5 -0
  377. package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +3 -0
  378. package/dist/esm/entities/subscription/next-transaction.js +3 -0
  379. package/dist/esm/entities/subscription/subscription-discount.js +5 -3
  380. package/dist/esm/entities/subscription/subscription-item.js +10 -0
  381. package/dist/esm/entities/subscription/subscription-management.js +2 -0
  382. package/dist/esm/entities/subscription/subscription-preview-summary-result.js +3 -0
  383. package/dist/esm/entities/subscription/subscription-preview-update-summary.js +3 -0
  384. package/dist/esm/entities/subscription/subscription-preview.js +26 -0
  385. package/dist/esm/entities/subscription/subscription-scheduled-change.js +3 -0
  386. package/dist/esm/entities/subscription/subscription-time-period.js +2 -0
  387. package/dist/esm/entities/subscription/subscription.js +25 -0
  388. package/dist/esm/entities/subscription/transaction-details-preview.js +3 -0
  389. package/dist/esm/entities/subscription/transaction-line-item-preview.js +7 -0
  390. package/dist/esm/entities/transaction/address-preview.js +2 -0
  391. package/dist/esm/entities/transaction/adjustment-totals-breakdown.js +3 -0
  392. package/dist/esm/entities/transaction/adjustment-totals.js +7 -0
  393. package/dist/esm/entities/transaction/proration.js +2 -0
  394. package/dist/esm/entities/transaction/transaction-adjustment-item.js +6 -0
  395. package/dist/esm/entities/transaction/transaction-adjustment.js +14 -0
  396. package/dist/esm/entities/transaction/transaction-details.js +6 -0
  397. package/dist/esm/entities/transaction/transaction-invoice-pdf.js +1 -0
  398. package/dist/esm/entities/transaction/transaction-item-preview.js +5 -2
  399. package/dist/esm/entities/transaction/transaction-item.js +3 -0
  400. package/dist/esm/entities/transaction/transaction-line-item.js +8 -0
  401. package/dist/esm/entities/transaction/transaction-preview.js +12 -2
  402. package/dist/esm/entities/transaction/transaction-proration.js +2 -0
  403. package/dist/esm/entities/transaction/transaction.js +31 -2
  404. package/dist/esm/entities/transaction/transactions-time-period.js +2 -0
  405. package/dist/esm/enums/client-tokens/client-token-status.js +1 -0
  406. package/dist/esm/enums/client-tokens/index.js +1 -0
  407. package/dist/esm/enums/index.js +1 -0
  408. package/dist/esm/internal/api/case-helpers.js +2 -13
  409. package/dist/esm/internal/api/client.js +54 -64
  410. package/dist/esm/internal/base/base-resource.js +1 -0
  411. package/dist/esm/internal/base/collection.js +20 -45
  412. package/dist/esm/internal/base/logger.js +1 -0
  413. package/dist/esm/internal/base/path-parameters.js +2 -0
  414. package/dist/esm/internal/base/query-parameters.js +1 -0
  415. package/dist/esm/internal/errors/generic.js +5 -0
  416. package/dist/esm/internal/providers/crypto/crypto-provider.js +2 -13
  417. package/dist/esm/internal/providers/crypto/edge-crypto.js +14 -25
  418. package/dist/esm/internal/providers/crypto/node-crypto.js +5 -16
  419. package/dist/esm/internal/providers/runtime-provider.js +1 -0
  420. package/dist/esm/notifications/entities/address/address-notification.js +15 -2
  421. package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +6 -0
  422. package/dist/esm/notifications/entities/adjustment/adjustment-item-totals-notification.js +3 -0
  423. package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +15 -0
  424. package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +2 -0
  425. package/dist/esm/notifications/entities/adjustment/adjustment-time-period-notification.js +2 -0
  426. package/dist/esm/notifications/entities/api-key/api-key-notification.js +13 -4
  427. package/dist/esm/notifications/entities/business/business-notification.js +12 -2
  428. package/dist/esm/notifications/entities/business/contacts-notification.js +2 -0
  429. package/dist/esm/notifications/entities/client-token/client-token-notification.js +20 -0
  430. package/dist/esm/notifications/entities/client-token/index.js +1 -0
  431. package/dist/esm/notifications/entities/customer/customer-notification.js +10 -0
  432. package/dist/esm/notifications/entities/discount/discount-notification.js +22 -2
  433. package/dist/esm/notifications/entities/discount-group/discount-group-notification.js +6 -0
  434. package/dist/esm/notifications/entities/index.js +1 -0
  435. package/dist/esm/notifications/entities/payment-method/payment-method-deleted-notification.js +8 -0
  436. package/dist/esm/notifications/entities/payment-method/payment-method-notification.js +7 -0
  437. package/dist/esm/notifications/entities/payout/payout-notification.js +4 -0
  438. package/dist/esm/notifications/entities/price/price-notification.js +19 -4
  439. package/dist/esm/notifications/entities/price/price-quantity-notification.js +2 -0
  440. package/dist/esm/notifications/entities/product/product-notification.js +13 -3
  441. package/dist/esm/notifications/entities/report/report-filters-notification.js +4 -2
  442. package/dist/esm/notifications/entities/report/report-notification.js +10 -4
  443. package/dist/esm/notifications/entities/shared/adjustment-original-amount-notification.js +2 -0
  444. package/dist/esm/notifications/entities/shared/billing-details-notification.js +5 -2
  445. package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +2 -0
  446. package/dist/esm/notifications/entities/shared/import-meta-notification.js +2 -0
  447. package/dist/esm/notifications/entities/shared/korean-market-underlying-details-notification.js +1 -0
  448. package/dist/esm/notifications/entities/shared/money-notification.js +2 -0
  449. package/dist/esm/notifications/entities/shared/payment-card-notification.js +5 -0
  450. package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +3 -0
  451. package/dist/esm/notifications/entities/shared/payment-method-underlying-details-notification.js +1 -0
  452. package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +7 -0
  453. package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +2 -0
  454. package/dist/esm/notifications/entities/shared/time-period-notification.js +2 -0
  455. package/dist/esm/notifications/entities/shared/total-adjustments-notification.js +6 -0
  456. package/dist/esm/notifications/entities/shared/totals-notification.js +4 -0
  457. package/dist/esm/notifications/entities/shared/transaction-checkout-notification.js +1 -0
  458. package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +10 -2
  459. package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +9 -0
  460. package/dist/esm/notifications/entities/shared/transaction-payout-totals-notification.js +13 -0
  461. package/dist/esm/notifications/entities/shared/transaction-totals-adjusted-notification.js +7 -0
  462. package/dist/esm/notifications/entities/shared/transaction-totals-notification.js +11 -0
  463. package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +2 -0
  464. package/dist/esm/notifications/entities/shared/unit-totals-notification.js +4 -0
  465. package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +23 -0
  466. package/dist/esm/notifications/entities/subscription/subscription-discount-notification.js +4 -2
  467. package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +10 -0
  468. package/dist/esm/notifications/entities/subscription/subscription-notification.js +22 -0
  469. package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +16 -3
  470. package/dist/esm/notifications/entities/subscription/subscription-scheduled-change-notification.js +3 -0
  471. package/dist/esm/notifications/entities/subscription/subscription-time-period-notification.js +2 -0
  472. package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +6 -0
  473. package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +3 -0
  474. package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +8 -0
  475. package/dist/esm/notifications/entities/transaction/transaction-notification.js +23 -0
  476. package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +2 -0
  477. package/dist/esm/notifications/entities/transaction/transactions-time-period-notification.js +2 -0
  478. package/dist/esm/notifications/events/address/address-created-event.js +2 -1
  479. package/dist/esm/notifications/events/address/address-imported-event.js +2 -1
  480. package/dist/esm/notifications/events/address/address-updated-event.js +2 -1
  481. package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +2 -1
  482. package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +2 -1
  483. package/dist/esm/notifications/events/api-key/api-key-created-event.js +2 -1
  484. package/dist/esm/notifications/events/api-key/api-key-expired-event.js +2 -1
  485. package/dist/esm/notifications/events/api-key/api-key-expiring-event.js +2 -1
  486. package/dist/esm/notifications/events/api-key/api-key-revoked-event.js +2 -1
  487. package/dist/esm/notifications/events/api-key/api-key-updated-event.js +2 -1
  488. package/dist/esm/notifications/events/business/business-created-event.js +2 -1
  489. package/dist/esm/notifications/events/business/business-imported-event.js +2 -1
  490. package/dist/esm/notifications/events/business/business-updated-event.js +2 -1
  491. package/dist/esm/notifications/events/client-token/client-token-created-event.js +11 -0
  492. package/dist/esm/notifications/events/client-token/client-token-revoked-event.js +11 -0
  493. package/dist/esm/notifications/events/client-token/client-token-updated-event.js +11 -0
  494. package/dist/esm/notifications/events/client-token/index.js +3 -0
  495. package/dist/esm/notifications/events/customer/customer-created-event.js +2 -1
  496. package/dist/esm/notifications/events/customer/customer-imported-event.js +2 -1
  497. package/dist/esm/notifications/events/customer/customer-updated-event.js +2 -1
  498. package/dist/esm/notifications/events/discount/discount-created-event.js +2 -1
  499. package/dist/esm/notifications/events/discount/discount-imported-event.js +2 -1
  500. package/dist/esm/notifications/events/discount/discount-updated-event.js +2 -1
  501. package/dist/esm/notifications/events/discount-group/discount-group-created-event.js +2 -1
  502. package/dist/esm/notifications/events/discount-group/discount-group-updated-event.js +11 -0
  503. package/dist/esm/notifications/events/discount-group/index.js +1 -0
  504. package/dist/esm/notifications/events/generic/generic-event.js +1 -0
  505. package/dist/esm/notifications/events/index.js +1 -0
  506. package/dist/esm/notifications/events/payment-method/payment-method-deleted-event.js +2 -1
  507. package/dist/esm/notifications/events/payment-method/payment-method-saved-event.js +2 -1
  508. package/dist/esm/notifications/events/payout/payout-created-event.js +2 -1
  509. package/dist/esm/notifications/events/payout/payout-paid-event.js +2 -1
  510. package/dist/esm/notifications/events/price/price-created-event.js +2 -1
  511. package/dist/esm/notifications/events/price/price-imported-event.js +2 -1
  512. package/dist/esm/notifications/events/price/price-updated-event.js +2 -1
  513. package/dist/esm/notifications/events/product/product-created-event.js +2 -1
  514. package/dist/esm/notifications/events/product/product-imported-event.js +2 -1
  515. package/dist/esm/notifications/events/product/product-updated-event.js +2 -1
  516. package/dist/esm/notifications/events/report/report-created-event.js +2 -1
  517. package/dist/esm/notifications/events/report/report-updated-event.js +2 -1
  518. package/dist/esm/notifications/events/subscription/subscription-activated-event.js +2 -1
  519. package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +2 -1
  520. package/dist/esm/notifications/events/subscription/subscription-created-event.js +2 -1
  521. package/dist/esm/notifications/events/subscription/subscription-imported-event.js +2 -1
  522. package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +2 -1
  523. package/dist/esm/notifications/events/subscription/subscription-paused-event.js +2 -1
  524. package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +2 -1
  525. package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +2 -1
  526. package/dist/esm/notifications/events/subscription/subscription-updated-event.js +2 -1
  527. package/dist/esm/notifications/events/transaction/transaction-billed-event.js +2 -1
  528. package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +2 -1
  529. package/dist/esm/notifications/events/transaction/transaction-completed-event.js +2 -1
  530. package/dist/esm/notifications/events/transaction/transaction-created-event.js +2 -1
  531. package/dist/esm/notifications/events/transaction/transaction-paid-event.js +2 -1
  532. package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +2 -1
  533. package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +2 -1
  534. package/dist/esm/notifications/events/transaction/transaction-ready-event.js +2 -1
  535. package/dist/esm/notifications/events/transaction/transaction-revised-event.js +2 -1
  536. package/dist/esm/notifications/events/transaction/transaction-updated-event.js +2 -1
  537. package/dist/esm/notifications/helpers/types.js +4 -0
  538. package/dist/esm/notifications/helpers/webhooks-validator.js +14 -26
  539. package/dist/esm/notifications/helpers/webhooks.js +20 -25
  540. package/dist/esm/notifications/types/client-token/client-token-notification-response.js +1 -0
  541. package/dist/esm/notifications/types/client-token/index.js +1 -0
  542. package/dist/esm/notifications/types/index.js +1 -0
  543. package/dist/esm/paddle.js +32 -6
  544. package/dist/esm/resources/addresses/index.js +25 -42
  545. package/dist/esm/resources/adjustments/index.js +12 -25
  546. package/dist/esm/resources/businesses/index.js +25 -42
  547. package/dist/esm/resources/client-tokens/index.js +39 -0
  548. package/dist/esm/resources/client-tokens/operations/create-client-token-request-body.js +1 -0
  549. package/dist/esm/resources/client-tokens/operations/index.js +3 -0
  550. package/dist/esm/resources/client-tokens/operations/list-client-token-query-parameters.js +1 -0
  551. package/dist/esm/resources/client-tokens/operations/update-client-token-request-body.js +1 -0
  552. package/dist/esm/resources/customer-portal-sessions/index.js +8 -19
  553. package/dist/esm/resources/customers/index.js +35 -56
  554. package/dist/esm/resources/discount-groups/index.js +26 -16
  555. package/dist/esm/resources/discount-groups/operations/index.js +1 -0
  556. package/dist/esm/resources/discount-groups/operations/update-discount-group-request-body.js +1 -0
  557. package/dist/esm/resources/discounts/index.js +21 -37
  558. package/dist/esm/resources/discounts/operations/get-discount-query-parameters.js +1 -0
  559. package/dist/esm/resources/discounts/operations/index.js +1 -0
  560. package/dist/esm/resources/event-types/index.js +4 -15
  561. package/dist/esm/resources/index.js +1 -0
  562. package/dist/esm/resources/notification-settings/index.js +31 -50
  563. package/dist/esm/resources/notifications/index.js +14 -27
  564. package/dist/esm/resources/payment-methods/index.js +17 -30
  565. package/dist/esm/resources/prices/index.js +21 -38
  566. package/dist/esm/resources/pricing-preview/index.js +4 -15
  567. package/dist/esm/resources/products/index.js +21 -38
  568. package/dist/esm/resources/reports/index.js +18 -33
  569. package/dist/esm/resources/simulation-run-events/index.js +18 -31
  570. package/dist/esm/resources/simulation-runs/index.js +16 -29
  571. package/dist/esm/resources/simulation-types/index.js +4 -15
  572. package/dist/esm/resources/simulations/index.js +18 -33
  573. package/dist/esm/resources/subscriptions/index.js +71 -100
  574. package/dist/esm/resources/transactions/index.js +40 -61
  575. package/dist/esm/types/client-token/client-token-response.js +1 -0
  576. package/dist/esm/types/client-token/index.js +1 -0
  577. package/dist/esm/types/index.js +1 -0
  578. package/dist/esm/version.js +1 -1
  579. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  580. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  581. package/dist/tsconfig.types.tsbuildinfo +1 -1
  582. package/dist/types/entities/client-token/client-token-collection.d.ts +6 -0
  583. package/dist/types/entities/client-token/client-token.d.ts +13 -0
  584. package/dist/types/entities/client-token/index.d.ts +2 -0
  585. package/dist/types/entities/discount/discount.d.ts +3 -1
  586. package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +1 -0
  587. package/dist/types/entities/shared/transaction-payout-totals.d.ts +2 -0
  588. package/dist/types/enums/api-key/api-key-permission.d.ts +1 -1
  589. package/dist/types/enums/client-tokens/client-token-status.d.ts +1 -0
  590. package/dist/types/enums/client-tokens/index.d.ts +1 -0
  591. package/dist/types/enums/index.d.ts +1 -0
  592. package/dist/types/notifications/entities/client-token/client-token-notification.d.ts +13 -0
  593. package/dist/types/notifications/entities/client-token/index.d.ts +1 -0
  594. package/dist/types/notifications/entities/discount/discount-notification.d.ts +1 -0
  595. package/dist/types/notifications/entities/index.d.ts +1 -0
  596. package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +1 -0
  597. package/dist/types/notifications/events/client-token/client-token-created-event.d.ts +10 -0
  598. package/dist/types/notifications/events/client-token/client-token-revoked-event.d.ts +10 -0
  599. package/dist/types/notifications/events/client-token/client-token-updated-event.d.ts +10 -0
  600. package/dist/types/notifications/events/client-token/index.d.ts +3 -0
  601. package/dist/types/notifications/events/discount-group/discount-group-updated-event.d.ts +10 -0
  602. package/dist/types/notifications/events/discount-group/index.d.ts +1 -0
  603. package/dist/types/notifications/events/index.d.ts +1 -0
  604. package/dist/types/notifications/helpers/types.d.ts +6 -2
  605. package/dist/types/notifications/types/client-token/client-token-notification-response.d.ts +11 -0
  606. package/dist/types/notifications/types/client-token/index.d.ts +1 -0
  607. package/dist/types/notifications/types/discount/discount-notification-response.d.ts +1 -0
  608. package/dist/types/notifications/types/index.d.ts +1 -0
  609. package/dist/types/notifications/types/shared/payment-method-details.d.ts +1 -1
  610. package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +1 -0
  611. package/dist/types/paddle.d.ts +2 -1
  612. package/dist/types/resources/client-tokens/index.d.ts +11 -0
  613. package/dist/types/resources/client-tokens/operations/create-client-token-request-body.d.ts +4 -0
  614. package/dist/types/resources/client-tokens/operations/index.d.ts +3 -0
  615. package/dist/types/resources/client-tokens/operations/list-client-token-query-parameters.d.ts +7 -0
  616. package/dist/types/resources/client-tokens/operations/update-client-token-request-body.d.ts +4 -0
  617. package/dist/types/resources/discount-groups/index.d.ts +4 -1
  618. package/dist/types/resources/discount-groups/operations/index.d.ts +1 -0
  619. package/dist/types/resources/discount-groups/operations/update-discount-group-request-body.d.ts +5 -0
  620. package/dist/types/resources/discounts/index.d.ts +2 -2
  621. package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +1 -0
  622. package/dist/types/resources/discounts/operations/get-discount-query-parameters.d.ts +3 -0
  623. package/dist/types/resources/discounts/operations/index.d.ts +1 -0
  624. package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +2 -0
  625. package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +1 -0
  626. package/dist/types/resources/index.d.ts +1 -0
  627. package/dist/types/types/client-token/client-token-response.d.ts +11 -0
  628. package/dist/types/types/client-token/index.d.ts +1 -0
  629. package/dist/types/types/discount/discount-response.d.ts +4 -1
  630. package/dist/types/types/events/events-response.d.ts +14 -2
  631. package/dist/types/types/index.d.ts +1 -0
  632. package/dist/types/types/shared/payment-method-details.d.ts +1 -1
  633. package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +1 -0
  634. package/dist/types/types/shared/transaction-payout-totals-response.d.ts +2 -0
  635. package/dist/types/version.d.ts +1 -1
  636. package/package.json +5 -4
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
11
2
  import { Business, BusinessCollection } from '../../entities/index.js';
12
3
  const BusinessPaths = {
@@ -24,41 +15,33 @@ export class BusinessesResource extends BaseResource {
24
15
  }).deriveUrl();
25
16
  return new BusinessCollection(this.client, urlWithPathParams + queryParameters.toQueryString());
26
17
  }
27
- create(customerId, createBusinessParameters) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const urlWithPathParams = new PathParameters(BusinessPaths.create, {
30
- customer_id: customerId,
31
- }).deriveUrl();
32
- const response = yield this.client.post(urlWithPathParams, createBusinessParameters);
33
- const data = this.handleResponse(response);
34
- return new Business(data);
35
- });
18
+ async create(customerId, createBusinessParameters) {
19
+ const urlWithPathParams = new PathParameters(BusinessPaths.create, {
20
+ customer_id: customerId,
21
+ }).deriveUrl();
22
+ const response = await this.client.post(urlWithPathParams, createBusinessParameters);
23
+ const data = this.handleResponse(response);
24
+ return new Business(data);
36
25
  }
37
- get(customerId, businessId) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- const urlWithPathParams = new PathParameters(BusinessPaths.get, {
40
- customer_id: customerId,
41
- business_id: businessId,
42
- }).deriveUrl();
43
- const response = yield this.client.get(urlWithPathParams);
44
- const data = this.handleResponse(response);
45
- return new Business(data);
46
- });
26
+ async get(customerId, businessId) {
27
+ const urlWithPathParams = new PathParameters(BusinessPaths.get, {
28
+ customer_id: customerId,
29
+ business_id: businessId,
30
+ }).deriveUrl();
31
+ const response = await this.client.get(urlWithPathParams);
32
+ const data = this.handleResponse(response);
33
+ return new Business(data);
47
34
  }
48
- update(customerId, businessId, updateBusiness) {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- const urlWithPathParams = new PathParameters(BusinessPaths.update, {
51
- customer_id: customerId,
52
- business_id: businessId,
53
- }).deriveUrl();
54
- const response = yield this.client.patch(urlWithPathParams, updateBusiness);
55
- const data = this.handleResponse(response);
56
- return new Business(data);
57
- });
35
+ async update(customerId, businessId, updateBusiness) {
36
+ const urlWithPathParams = new PathParameters(BusinessPaths.update, {
37
+ customer_id: customerId,
38
+ business_id: businessId,
39
+ }).deriveUrl();
40
+ const response = await this.client.patch(urlWithPathParams, updateBusiness);
41
+ const data = this.handleResponse(response);
42
+ return new Business(data);
58
43
  }
59
- archive(customerId, businessId) {
60
- return __awaiter(this, void 0, void 0, function* () {
61
- return yield this.update(customerId, businessId, { status: 'archived' });
62
- });
44
+ async archive(customerId, businessId) {
45
+ return await this.update(customerId, businessId, { status: 'archived' });
63
46
  }
64
47
  }
@@ -0,0 +1,39 @@
1
+ import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
2
+ import { ClientToken, ClientTokenCollection } from '../../entities/client-token/index.js';
3
+ const ClientTokenPaths = {
4
+ list: '/client-tokens',
5
+ create: '/client-tokens',
6
+ get: '/client-tokens/{client_token_id}',
7
+ update: '/client-tokens/{client_token_id}',
8
+ };
9
+ export * from './operations/index.js';
10
+ export class ClientTokensResource extends BaseResource {
11
+ list(queryParams) {
12
+ const queryParameters = new QueryParameters(queryParams);
13
+ return new ClientTokenCollection(this.client, ClientTokenPaths.list + queryParameters.toQueryString());
14
+ }
15
+ async create(createClientTokenRequestBody) {
16
+ const response = await this.client.post(ClientTokenPaths.create, createClientTokenRequestBody);
17
+ const data = this.handleResponse(response);
18
+ return new ClientToken(data);
19
+ }
20
+ async get(clientTokenId) {
21
+ const urlWithPathParams = new PathParameters(ClientTokenPaths.get, {
22
+ client_token_id: clientTokenId,
23
+ }).deriveUrl();
24
+ const response = await this.client.get(urlWithPathParams);
25
+ const data = this.handleResponse(response);
26
+ return new ClientToken(data);
27
+ }
28
+ async update(clientTokenId, updateClientToken) {
29
+ const urlWithPathParams = new PathParameters(ClientTokenPaths.update, {
30
+ client_token_id: clientTokenId,
31
+ }).deriveUrl();
32
+ const response = await this.client.patch(urlWithPathParams, updateClientToken);
33
+ const data = this.handleResponse(response);
34
+ return new ClientToken(data);
35
+ }
36
+ async revoke(clientTokenId) {
37
+ return await this.update(clientTokenId, { status: 'revoked' });
38
+ }
39
+ }
@@ -0,0 +1,3 @@
1
+ export * from './create-client-token-request-body.js';
2
+ export * from './list-client-token-query-parameters.js';
3
+ export * from './update-client-token-request-body.js';
@@ -1,28 +1,17 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { CustomerPortalSession } from '../../entities/index.js';
11
2
  import { BaseResource, PathParameters } from '../../internal/base/index.js';
12
3
  const CustomerPortalSessionPaths = {
13
4
  create: '/customers/{customer_id}/portal-sessions',
14
5
  };
15
6
  export class CustomerPortalSessionsResource extends BaseResource {
16
- create(customerId, subscriptionIds) {
17
- return __awaiter(this, void 0, void 0, function* () {
18
- const urlWithPathParams = new PathParameters(CustomerPortalSessionPaths.create, {
19
- customer_id: customerId,
20
- }).deriveUrl();
21
- const response = yield this.client.post(urlWithPathParams, {
22
- subscriptionIds,
23
- });
24
- const data = this.handleResponse(response);
25
- return new CustomerPortalSession(data);
7
+ async create(customerId, subscriptionIds) {
8
+ const urlWithPathParams = new PathParameters(CustomerPortalSessionPaths.create, {
9
+ customer_id: customerId,
10
+ }).deriveUrl();
11
+ const response = await this.client.post(urlWithPathParams, {
12
+ subscriptionIds,
26
13
  });
14
+ const data = this.handleResponse(response);
15
+ return new CustomerPortalSession(data);
27
16
  }
28
17
  }
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
11
2
  import { CreditBalance, Customer, CustomerCollection, AuthToken } from '../../entities/index.js';
12
3
  const CustomerPaths = {
@@ -23,57 +14,45 @@ export class CustomersResource extends BaseResource {
23
14
  const queryParameters = new QueryParameters(queryParams);
24
15
  return new CustomerCollection(this.client, CustomerPaths.list + queryParameters.toQueryString());
25
16
  }
26
- create(createCustomerParameters) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const response = yield this.client.post(CustomerPaths.create, createCustomerParameters);
29
- const data = this.handleResponse(response);
30
- return new Customer(data);
31
- });
17
+ async create(createCustomerParameters) {
18
+ const response = await this.client.post(CustomerPaths.create, createCustomerParameters);
19
+ const data = this.handleResponse(response);
20
+ return new Customer(data);
32
21
  }
33
- get(customerId) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- const urlWithPathParams = new PathParameters(CustomerPaths.get, {
36
- customer_id: customerId,
37
- }).deriveUrl();
38
- const response = yield this.client.get(urlWithPathParams);
39
- const data = this.handleResponse(response);
40
- return new Customer(data);
41
- });
22
+ async get(customerId) {
23
+ const urlWithPathParams = new PathParameters(CustomerPaths.get, {
24
+ customer_id: customerId,
25
+ }).deriveUrl();
26
+ const response = await this.client.get(urlWithPathParams);
27
+ const data = this.handleResponse(response);
28
+ return new Customer(data);
42
29
  }
43
- update(customerId, updateCustomer) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- const urlWithPathParams = new PathParameters(CustomerPaths.update, {
46
- customer_id: customerId,
47
- }).deriveUrl();
48
- const response = yield this.client.patch(urlWithPathParams, updateCustomer);
49
- const data = this.handleResponse(response);
50
- return new Customer(data);
51
- });
30
+ async update(customerId, updateCustomer) {
31
+ const urlWithPathParams = new PathParameters(CustomerPaths.update, {
32
+ customer_id: customerId,
33
+ }).deriveUrl();
34
+ const response = await this.client.patch(urlWithPathParams, updateCustomer);
35
+ const data = this.handleResponse(response);
36
+ return new Customer(data);
52
37
  }
53
- getCreditBalance(customerId, queryParams) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- const urlWithPathParams = new PathParameters(CustomerPaths.getCustomerBalance, {
56
- customer_id: customerId,
57
- }).deriveUrl();
58
- const queryParameters = new QueryParameters(queryParams);
59
- const response = yield this.client.get(urlWithPathParams, queryParameters);
60
- const data = this.handleResponse(response);
61
- return data.map((balance) => new CreditBalance(balance));
62
- });
38
+ async getCreditBalance(customerId, queryParams) {
39
+ const urlWithPathParams = new PathParameters(CustomerPaths.getCustomerBalance, {
40
+ customer_id: customerId,
41
+ }).deriveUrl();
42
+ const queryParameters = new QueryParameters(queryParams);
43
+ const response = await this.client.get(urlWithPathParams, queryParameters);
44
+ const data = this.handleResponse(response);
45
+ return data.map((balance) => new CreditBalance(balance));
63
46
  }
64
- archive(customerId) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- return yield this.update(customerId, { status: 'archived' });
67
- });
47
+ async archive(customerId) {
48
+ return await this.update(customerId, { status: 'archived' });
68
49
  }
69
- generateAuthToken(customerId) {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- const urlWithPathParams = new PathParameters(CustomerPaths.generate, {
72
- customer_id: customerId,
73
- }).deriveUrl();
74
- const response = yield this.client.post(urlWithPathParams, undefined);
75
- const data = this.handleResponse(response);
76
- return new AuthToken(data);
77
- });
50
+ async generateAuthToken(customerId) {
51
+ const urlWithPathParams = new PathParameters(CustomerPaths.generate, {
52
+ customer_id: customerId,
53
+ }).deriveUrl();
54
+ const response = await this.client.post(urlWithPathParams, undefined);
55
+ const data = this.handleResponse(response);
56
+ return new AuthToken(data);
78
57
  }
79
58
  }
@@ -1,17 +1,10 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { DiscountGroup, DiscountGroupCollection } from '../../entities/index.js';
11
- import { BaseResource, QueryParameters } from '../../internal/base/index.js';
2
+ import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
12
3
  const DiscountGroupPaths = {
13
4
  list: '/discount-groups',
14
5
  create: '/discount-groups',
6
+ get: '/discount-groups/{discount_group_id}',
7
+ update: '/discount-groups/{discount_group_id}',
15
8
  };
16
9
  export * from './operations/index.js';
17
10
  export class DiscountGroupsResource extends BaseResource {
@@ -19,11 +12,28 @@ export class DiscountGroupsResource extends BaseResource {
19
12
  const queryParameters = new QueryParameters(queryParams);
20
13
  return new DiscountGroupCollection(this.client, DiscountGroupPaths.list + queryParameters.toQueryString());
21
14
  }
22
- create(createDiscountGroupRequestBody) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- const response = yield this.client.post(DiscountGroupPaths.create, createDiscountGroupRequestBody);
25
- const data = this.handleResponse(response);
26
- return new DiscountGroup(data);
27
- });
15
+ async create(createDiscountGroupRequestBody) {
16
+ const response = await this.client.post(DiscountGroupPaths.create, createDiscountGroupRequestBody);
17
+ const data = this.handleResponse(response);
18
+ return new DiscountGroup(data);
19
+ }
20
+ async get(discountGroupId) {
21
+ const urlWithPathParams = new PathParameters(DiscountGroupPaths.get, {
22
+ discount_group_id: discountGroupId,
23
+ }).deriveUrl();
24
+ const response = await this.client.get(urlWithPathParams);
25
+ const data = this.handleResponse(response);
26
+ return new DiscountGroup(data);
27
+ }
28
+ async update(discountGroupId, updateDiscountGroup) {
29
+ const urlWithPathParams = new PathParameters(DiscountGroupPaths.update, {
30
+ discount_group_id: discountGroupId,
31
+ }).deriveUrl();
32
+ const response = await this.client.patch(urlWithPathParams, updateDiscountGroup);
33
+ const data = this.handleResponse(response);
34
+ return new DiscountGroup(data);
35
+ }
36
+ async archive(discountGroupId) {
37
+ return await this.update(discountGroupId, { status: 'archived' });
28
38
  }
29
39
  }
@@ -1,2 +1,3 @@
1
1
  export * from './list-discount-group-query-parameters.js';
2
2
  export * from './create-discount-group-request-body.js';
3
+ export * from './update-discount-group-request-body.js';
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
11
2
  import { Discount, DiscountCollection } from '../../entities/index.js';
12
3
  const DiscountPaths = {
@@ -21,36 +12,29 @@ export class DiscountsResource extends BaseResource {
21
12
  const queryParameters = new QueryParameters(queryParams);
22
13
  return new DiscountCollection(this.client, DiscountPaths.list + queryParameters.toQueryString());
23
14
  }
24
- create(createDiscountParameters) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- const response = yield this.client.post(DiscountPaths.create, createDiscountParameters);
27
- const data = this.handleResponse(response);
28
- return new Discount(data);
29
- });
15
+ async create(createDiscountParameters) {
16
+ const response = await this.client.post(DiscountPaths.create, createDiscountParameters);
17
+ const data = this.handleResponse(response);
18
+ return new Discount(data);
30
19
  }
31
- get(discountId) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- const urlWithPathParams = new PathParameters(DiscountPaths.get, {
34
- discount_id: discountId,
35
- }).deriveUrl();
36
- const response = yield this.client.get(urlWithPathParams);
37
- const data = this.handleResponse(response);
38
- return new Discount(data);
39
- });
20
+ async get(discountId, queryParams) {
21
+ const queryParameters = new QueryParameters(queryParams);
22
+ const urlWithPathParams = new PathParameters(DiscountPaths.get, {
23
+ discount_id: discountId,
24
+ }).deriveUrl();
25
+ const response = await this.client.get(urlWithPathParams + queryParameters.toQueryString());
26
+ const data = this.handleResponse(response);
27
+ return new Discount(data);
40
28
  }
41
- update(discountId, updateDiscount) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- const urlWithPathParams = new PathParameters(DiscountPaths.update, {
44
- discount_id: discountId,
45
- }).deriveUrl();
46
- const response = yield this.client.patch(urlWithPathParams, updateDiscount);
47
- const data = this.handleResponse(response);
48
- return new Discount(data);
49
- });
29
+ async update(discountId, updateDiscount) {
30
+ const urlWithPathParams = new PathParameters(DiscountPaths.update, {
31
+ discount_id: discountId,
32
+ }).deriveUrl();
33
+ const response = await this.client.patch(urlWithPathParams, updateDiscount);
34
+ const data = this.handleResponse(response);
35
+ return new Discount(data);
50
36
  }
51
- archive(discountId) {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- return yield this.update(discountId, { status: 'archived' });
54
- });
37
+ async archive(discountId) {
38
+ return await this.update(discountId, { status: 'archived' });
55
39
  }
56
40
  }
@@ -1,3 +1,4 @@
1
1
  export * from './list-discount-query-parameters.js';
2
2
  export * from './create-discount-request-body.js';
3
3
  export * from './update-discount-request-body.js';
4
+ export * from './get-discount-query-parameters.js';
@@ -1,23 +1,12 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource } from '../../internal/base/index.js';
11
2
  import { EventType } from '../../entities/index.js';
12
3
  const EventTypesPaths = {
13
4
  list: '/event-types',
14
5
  };
15
6
  export class EventTypesResource extends BaseResource {
16
- list() {
17
- return __awaiter(this, void 0, void 0, function* () {
18
- const response = yield this.client.get(EventTypesPaths.list);
19
- const data = this.handleResponse(response);
20
- return data.map((eventType) => new EventType(eventType));
21
- });
7
+ async list() {
8
+ const response = await this.client.get(EventTypesPaths.list);
9
+ const data = this.handleResponse(response);
10
+ return data.map((eventType) => new EventType(eventType));
22
11
  }
23
12
  }
@@ -19,3 +19,4 @@ export * from './simulation-types/index.js';
19
19
  export * from './simulations/index.js';
20
20
  export * from './simulation-runs/index.js';
21
21
  export * from './simulation-run-events/index.js';
22
+ export * from './client-tokens/index.js';
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
11
2
  import { NotificationSettings } from '../../entities/index.js';
12
3
  const NotificationSettingsPaths = {
@@ -18,50 +9,40 @@ const NotificationSettingsPaths = {
18
9
  };
19
10
  export * from './operations/index.js';
20
11
  export class NotificationSettingsResource extends BaseResource {
21
- list(queryParams) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const queryParameters = new QueryParameters(queryParams);
24
- const response = yield this.client.get(NotificationSettingsPaths.list + queryParameters.toQueryString());
25
- const data = this.handleResponse(response);
26
- return data.map((notificationSetting) => new NotificationSettings(notificationSetting));
27
- });
12
+ async list(queryParams) {
13
+ const queryParameters = new QueryParameters(queryParams);
14
+ const response = await this.client.get(NotificationSettingsPaths.list + queryParameters.toQueryString());
15
+ const data = this.handleResponse(response);
16
+ return data.map((notificationSetting) => new NotificationSettings(notificationSetting));
28
17
  }
29
- create(createNotificationSettings) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- const response = yield this.client.post(NotificationSettingsPaths.create, createNotificationSettings);
32
- const data = this.handleResponse(response);
33
- return new NotificationSettings(data);
34
- });
18
+ async create(createNotificationSettings) {
19
+ const response = await this.client.post(NotificationSettingsPaths.create, createNotificationSettings);
20
+ const data = this.handleResponse(response);
21
+ return new NotificationSettings(data);
35
22
  }
36
- get(notificationId) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- const urlWithPathParams = new PathParameters(NotificationSettingsPaths.get, {
39
- notification_setting_id: notificationId,
40
- }).deriveUrl();
41
- const response = yield this.client.get(urlWithPathParams);
42
- const data = this.handleResponse(response);
43
- return new NotificationSettings(data);
44
- });
23
+ async get(notificationId) {
24
+ const urlWithPathParams = new PathParameters(NotificationSettingsPaths.get, {
25
+ notification_setting_id: notificationId,
26
+ }).deriveUrl();
27
+ const response = await this.client.get(urlWithPathParams);
28
+ const data = this.handleResponse(response);
29
+ return new NotificationSettings(data);
45
30
  }
46
- update(notificationId, updateNotificationSettings) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- const urlWithPathParams = new PathParameters(NotificationSettingsPaths.update, {
49
- notification_setting_id: notificationId,
50
- }).deriveUrl();
51
- const response = yield this.client.patch(urlWithPathParams, updateNotificationSettings);
52
- const data = this.handleResponse(response);
53
- return new NotificationSettings(data);
54
- });
31
+ async update(notificationId, updateNotificationSettings) {
32
+ const urlWithPathParams = new PathParameters(NotificationSettingsPaths.update, {
33
+ notification_setting_id: notificationId,
34
+ }).deriveUrl();
35
+ const response = await this.client.patch(urlWithPathParams, updateNotificationSettings);
36
+ const data = this.handleResponse(response);
37
+ return new NotificationSettings(data);
55
38
  }
56
- delete(notificationId) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- const urlWithPathParams = new PathParameters(NotificationSettingsPaths.update, {
59
- notification_setting_id: notificationId,
60
- }).deriveUrl();
61
- const response = yield this.client.delete(urlWithPathParams);
62
- if (response) {
63
- this.handleResponse(response);
64
- }
65
- });
39
+ async delete(notificationId) {
40
+ const urlWithPathParams = new PathParameters(NotificationSettingsPaths.update, {
41
+ notification_setting_id: notificationId,
42
+ }).deriveUrl();
43
+ const response = await this.client.delete(urlWithPathParams);
44
+ if (response) {
45
+ this.handleResponse(response);
46
+ }
66
47
  }
67
48
  }
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
11
2
  import { Notification, NotificationCollection, NotificationLogCollection, ReplayNotification, } from '../../entities/index.js';
12
3
  const NotificationPaths = {
@@ -21,25 +12,21 @@ export class NotificationsResource extends BaseResource {
21
12
  const queryParameters = new QueryParameters(queryParams);
22
13
  return new NotificationCollection(this.client, NotificationPaths.list + queryParameters.toQueryString());
23
14
  }
24
- get(notificationId) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- const urlWithPathParams = new PathParameters(NotificationPaths.get, {
27
- notification_id: notificationId,
28
- }).deriveUrl();
29
- const response = yield this.client.get(urlWithPathParams);
30
- const data = this.handleResponse(response);
31
- return new Notification(data);
32
- });
15
+ async get(notificationId) {
16
+ const urlWithPathParams = new PathParameters(NotificationPaths.get, {
17
+ notification_id: notificationId,
18
+ }).deriveUrl();
19
+ const response = await this.client.get(urlWithPathParams);
20
+ const data = this.handleResponse(response);
21
+ return new Notification(data);
33
22
  }
34
- replay(notificationId) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- const urlWithPathParams = new PathParameters(NotificationPaths.replay, {
37
- notification_id: notificationId,
38
- }).deriveUrl();
39
- const response = yield this.client.post(urlWithPathParams, undefined);
40
- const data = this.handleResponse(response);
41
- return new ReplayNotification(data);
42
- });
23
+ async replay(notificationId) {
24
+ const urlWithPathParams = new PathParameters(NotificationPaths.replay, {
25
+ notification_id: notificationId,
26
+ }).deriveUrl();
27
+ const response = await this.client.post(urlWithPathParams, undefined);
28
+ const data = this.handleResponse(response);
29
+ return new ReplayNotification(data);
43
30
  }
44
31
  getLogs(notificationId, queryParams) {
45
32
  const queryParameters = new QueryParameters(queryParams);