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