@paddle/paddle-node-sdk 1.6.0 → 2.0.0-rc.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 (994) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/entities/address/address-collection.js +4 -4
  3. package/dist/cjs/entities/address/address.js +2 -2
  4. package/dist/cjs/entities/address/index.js +2 -2
  5. package/dist/cjs/entities/adjustment/adjustment-collection.js +4 -4
  6. package/dist/cjs/entities/adjustment/adjustment-item.js +4 -3
  7. package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -2
  8. package/dist/cjs/entities/adjustment/adjustment.js +5 -4
  9. package/dist/cjs/entities/adjustment/index.js +7 -7
  10. package/dist/cjs/entities/business/business-collection.js +4 -4
  11. package/dist/cjs/entities/business/business.js +4 -3
  12. package/dist/cjs/entities/business/index.js +3 -3
  13. package/dist/cjs/entities/customer/credit-balance.js +2 -2
  14. package/dist/cjs/entities/customer/customer-collection.js +4 -4
  15. package/dist/cjs/entities/customer/customer.js +2 -2
  16. package/dist/cjs/entities/customer/index.js +4 -4
  17. package/dist/cjs/entities/discount/discount-collection.js +4 -4
  18. package/dist/cjs/entities/discount/discount.js +2 -2
  19. package/dist/cjs/entities/discount/index.js +2 -2
  20. package/dist/cjs/entities/event-types/index.js +1 -1
  21. package/dist/cjs/entities/events/event-collection.js +4 -4
  22. package/dist/cjs/entities/events/index.js +1 -1
  23. package/dist/cjs/entities/index.js +16 -16
  24. package/dist/cjs/entities/notification-settings/index.js +1 -1
  25. package/dist/cjs/entities/notification-settings/notification-settings.js +2 -2
  26. package/dist/cjs/entities/notifications/index.js +5 -5
  27. package/dist/cjs/entities/notifications/notification-collection.js +4 -4
  28. package/dist/cjs/entities/notifications/notification-log-collection.js +4 -4
  29. package/dist/cjs/entities/notifications/notification.js +2 -2
  30. package/dist/cjs/entities/payout/index.js +1 -1
  31. package/dist/cjs/entities/price/index.js +3 -3
  32. package/dist/cjs/entities/price/price-collection.js +4 -4
  33. package/dist/cjs/entities/price/price.js +10 -8
  34. package/dist/cjs/entities/pricing-preview/index.js +4 -4
  35. package/dist/cjs/entities/pricing-preview/pricing-preview-details.js +2 -2
  36. package/dist/cjs/entities/pricing-preview/pricing-preview-discounts.js +2 -2
  37. package/dist/cjs/entities/pricing-preview/pricing-preview-line-item.js +11 -11
  38. package/dist/cjs/entities/pricing-preview/pricing-preview.js +4 -4
  39. package/dist/cjs/entities/product/index.js +2 -2
  40. package/dist/cjs/entities/product/product-collection.js +4 -4
  41. package/dist/cjs/entities/product/product.js +3 -3
  42. package/dist/cjs/entities/report/index.js +4 -4
  43. package/dist/cjs/entities/report/report-collection.js +4 -4
  44. package/dist/cjs/entities/report/report.js +2 -2
  45. package/dist/cjs/entities/shared/billing-details.js +2 -2
  46. package/dist/cjs/entities/shared/chargeback-fee.js +2 -2
  47. package/dist/cjs/entities/shared/index.js +20 -20
  48. package/dist/cjs/entities/shared/payment-method-details.js +2 -2
  49. package/dist/cjs/entities/shared/payout-totals-adjustment.js +2 -2
  50. package/dist/cjs/entities/shared/tax-rates-used.js +2 -2
  51. package/dist/cjs/entities/shared/transaction-payment-attempt.js +4 -3
  52. package/dist/cjs/entities/shared/transaction-payout-totals-adjusted.js +2 -2
  53. package/dist/cjs/entities/shared/unit-price-override.js +2 -2
  54. package/dist/cjs/entities/subscription/index.js +15 -15
  55. package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +3 -3
  56. package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +4 -4
  57. package/dist/cjs/entities/subscription/next-transaction.js +6 -4
  58. package/dist/cjs/entities/subscription/subscription-collection.js +4 -4
  59. package/dist/cjs/entities/subscription/subscription-item.js +6 -4
  60. package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +5 -4
  61. package/dist/cjs/entities/subscription/subscription-preview.js +19 -13
  62. package/dist/cjs/entities/subscription/subscription.js +17 -11
  63. package/dist/cjs/entities/subscription/transaction-details-preview.js +5 -4
  64. package/dist/cjs/entities/subscription/transaction-line-item-preview.js +5 -4
  65. package/dist/cjs/entities/transaction/adjustment-totals.js +2 -2
  66. package/dist/cjs/entities/transaction/index.js +16 -16
  67. package/dist/cjs/entities/transaction/proration.js +2 -2
  68. package/dist/cjs/entities/transaction/transaction-adjustment-item.js +4 -3
  69. package/dist/cjs/entities/transaction/transaction-adjustment.js +5 -4
  70. package/dist/cjs/entities/transaction/transaction-collection.js +4 -4
  71. package/dist/cjs/entities/transaction/transaction-details.js +8 -7
  72. package/dist/cjs/entities/transaction/transaction-item-preview.js +4 -3
  73. package/dist/cjs/entities/transaction/transaction-item.js +4 -3
  74. package/dist/cjs/entities/transaction/transaction-line-item.js +7 -5
  75. package/dist/cjs/entities/transaction/transaction-preview.js +6 -4
  76. package/dist/cjs/entities/transaction/transaction-proration.js +2 -2
  77. package/dist/cjs/entities/transaction/transaction.js +13 -13
  78. package/dist/cjs/enums/adjustment/index.js +4 -4
  79. package/dist/cjs/enums/discount/index.js +2 -2
  80. package/dist/cjs/enums/index.js +9 -9
  81. package/dist/cjs/enums/notification/index.js +2 -2
  82. package/dist/cjs/enums/notification-settings/index.js +1 -1
  83. package/dist/cjs/enums/payout/index.js +1 -1
  84. package/dist/cjs/enums/report/index.js +4 -4
  85. package/dist/cjs/enums/shared/index.js +16 -16
  86. package/dist/cjs/enums/subscription/index.js +6 -6
  87. package/dist/cjs/enums/transaction/index.js +1 -1
  88. package/dist/cjs/index.cjs.edge.js +38 -0
  89. package/dist/cjs/index.cjs.node.js +38 -0
  90. package/dist/cjs/internal/api/case-helpers.js +32 -5
  91. package/dist/cjs/internal/api/client.js +34 -30
  92. package/dist/cjs/internal/api/constants.js +3 -3
  93. package/dist/cjs/internal/api/index.js +6 -6
  94. package/dist/cjs/internal/base/base-resource.js +2 -2
  95. package/dist/cjs/internal/base/collection.js +2 -2
  96. package/dist/cjs/internal/base/index.js +4 -4
  97. package/dist/cjs/internal/base/logger.js +10 -10
  98. package/dist/cjs/internal/index.js +3 -3
  99. package/dist/cjs/internal/providers/crypto/crypto-provider.js +23 -0
  100. package/dist/cjs/internal/providers/crypto/edge-crypto.js +40 -0
  101. package/dist/cjs/internal/providers/crypto/node-crypto.js +28 -0
  102. package/dist/cjs/internal/providers/runtime/edge-runtime.js +13 -0
  103. package/dist/cjs/internal/providers/runtime/node-runtime.js +13 -0
  104. package/dist/cjs/internal/providers/runtime-provider.js +12 -0
  105. package/dist/cjs/notifications/entities/address/address-notification.js +2 -2
  106. package/dist/cjs/notifications/entities/address/index.js +1 -1
  107. package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +4 -3
  108. package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +5 -4
  109. package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -2
  110. package/dist/cjs/notifications/entities/adjustment/index.js +5 -5
  111. package/dist/cjs/notifications/entities/business/business-notification.js +4 -3
  112. package/dist/cjs/notifications/entities/business/index.js +2 -2
  113. package/dist/cjs/notifications/entities/customer/customer-notification.js +2 -2
  114. package/dist/cjs/notifications/entities/customer/index.js +1 -1
  115. package/dist/cjs/notifications/entities/discount/discount-notification.js +2 -2
  116. package/dist/cjs/notifications/entities/discount/index.js +1 -1
  117. package/dist/cjs/notifications/entities/index.js +12 -12
  118. package/dist/cjs/notifications/entities/payout/index.js +1 -1
  119. package/dist/cjs/notifications/entities/price/index.js +2 -2
  120. package/dist/cjs/notifications/entities/price/price-notification.js +8 -7
  121. package/dist/cjs/notifications/entities/product/index.js +1 -1
  122. package/dist/cjs/notifications/entities/product/product-notification.js +2 -2
  123. package/dist/cjs/notifications/entities/report/index.js +2 -2
  124. package/dist/cjs/notifications/entities/report/report-notification.js +2 -2
  125. package/dist/cjs/notifications/entities/shared/billing-details-notification.js +2 -2
  126. package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -2
  127. package/dist/cjs/notifications/entities/shared/index.js +20 -20
  128. package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +2 -2
  129. package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -2
  130. package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -2
  131. package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +2 -2
  132. package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -2
  133. package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -2
  134. package/dist/cjs/notifications/entities/subscription/index.js +6 -6
  135. package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +6 -4
  136. package/dist/cjs/notifications/entities/subscription/subscription-notification.js +12 -8
  137. package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +8 -8
  138. package/dist/cjs/notifications/entities/transaction/index.js +6 -6
  139. package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +8 -7
  140. package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +4 -3
  141. package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +7 -5
  142. package/dist/cjs/notifications/entities/transaction/transaction-notification.js +10 -7
  143. package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -2
  144. package/dist/cjs/notifications/events/address/address-created-event.js +6 -6
  145. package/dist/cjs/notifications/events/address/address-imported-event.js +6 -6
  146. package/dist/cjs/notifications/events/address/address-updated-event.js +6 -6
  147. package/dist/cjs/notifications/events/address/index.js +3 -3
  148. package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +6 -6
  149. package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +6 -6
  150. package/dist/cjs/notifications/events/adjustment/index.js +2 -2
  151. package/dist/cjs/notifications/events/business/business-created-event.js +6 -6
  152. package/dist/cjs/notifications/events/business/business-imported-event.js +6 -6
  153. package/dist/cjs/notifications/events/business/business-updated-event.js +6 -6
  154. package/dist/cjs/notifications/events/business/index.js +3 -3
  155. package/dist/cjs/notifications/events/customer/customer-created-event.js +6 -6
  156. package/dist/cjs/notifications/events/customer/customer-imported-event.js +6 -6
  157. package/dist/cjs/notifications/events/customer/customer-updated-event.js +6 -6
  158. package/dist/cjs/notifications/events/customer/index.js +3 -3
  159. package/dist/cjs/notifications/events/discount/discount-created-event.js +6 -6
  160. package/dist/cjs/notifications/events/discount/discount-imported-event.js +6 -6
  161. package/dist/cjs/notifications/events/discount/discount-updated-event.js +6 -6
  162. package/dist/cjs/notifications/events/discount/index.js +3 -3
  163. package/dist/cjs/notifications/events/index.js +11 -11
  164. package/dist/cjs/notifications/events/payout/index.js +2 -2
  165. package/dist/cjs/notifications/events/payout/payout-created-event.js +6 -6
  166. package/dist/cjs/notifications/events/payout/payout-paid-event.js +6 -6
  167. package/dist/cjs/notifications/events/price/index.js +3 -3
  168. package/dist/cjs/notifications/events/price/price-created-event.js +6 -6
  169. package/dist/cjs/notifications/events/price/price-imported-event.js +6 -6
  170. package/dist/cjs/notifications/events/price/price-updated-event.js +6 -6
  171. package/dist/cjs/notifications/events/product/index.js +3 -3
  172. package/dist/cjs/notifications/events/product/product-created-event.js +6 -6
  173. package/dist/cjs/notifications/events/product/product-imported-event.js +6 -6
  174. package/dist/cjs/notifications/events/product/product-updated-event.js +6 -6
  175. package/dist/cjs/notifications/events/report/index.js +2 -2
  176. package/dist/cjs/notifications/events/report/report-created-event.js +6 -6
  177. package/dist/cjs/notifications/events/report/report-updated-event.js +6 -6
  178. package/dist/cjs/notifications/events/subscription/index.js +9 -9
  179. package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +6 -6
  180. package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +6 -6
  181. package/dist/cjs/notifications/events/subscription/subscription-created-event.js +6 -6
  182. package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +6 -6
  183. package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +6 -6
  184. package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +6 -6
  185. package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +6 -6
  186. package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +6 -6
  187. package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +6 -6
  188. package/dist/cjs/notifications/events/transaction/index.js +9 -9
  189. package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +6 -6
  190. package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +6 -6
  191. package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +6 -6
  192. package/dist/cjs/notifications/events/transaction/transaction-created-event.js +6 -6
  193. package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +6 -6
  194. package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +6 -6
  195. package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +6 -6
  196. package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +6 -6
  197. package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +6 -6
  198. package/dist/cjs/notifications/helpers/index.js +3 -3
  199. package/dist/cjs/notifications/helpers/webhooks-validator.js +26 -10
  200. package/dist/cjs/notifications/helpers/webhooks.js +111 -98
  201. package/dist/cjs/notifications/index.js +4 -4
  202. package/dist/cjs/notifications/types/address/index.js +1 -1
  203. package/dist/cjs/notifications/types/adjustment/index.js +6 -6
  204. package/dist/cjs/notifications/types/business/index.js +2 -2
  205. package/dist/cjs/notifications/types/customer/index.js +1 -1
  206. package/dist/cjs/notifications/types/discount/index.js +1 -1
  207. package/dist/cjs/notifications/types/index.js +12 -12
  208. package/dist/cjs/notifications/types/payout/index.js +1 -1
  209. package/dist/cjs/notifications/types/price/index.js +2 -2
  210. package/dist/cjs/notifications/types/product/index.js +1 -1
  211. package/dist/cjs/notifications/types/report/index.js +2 -2
  212. package/dist/cjs/notifications/types/shared/index.js +22 -22
  213. package/dist/cjs/notifications/types/subscription/index.js +7 -7
  214. package/dist/cjs/notifications/types/transaction/index.js +6 -6
  215. package/dist/cjs/package.json +1 -0
  216. package/dist/cjs/paddle.js +24 -24
  217. package/dist/cjs/resources/addresses/index.js +13 -13
  218. package/dist/cjs/resources/addresses/operations/index.js +3 -3
  219. package/dist/cjs/resources/adjustments/index.js +10 -10
  220. package/dist/cjs/resources/adjustments/operations/index.js +3 -3
  221. package/dist/cjs/resources/businesses/index.js +13 -13
  222. package/dist/cjs/resources/businesses/operations/index.js +3 -3
  223. package/dist/cjs/resources/customers/index.js +14 -14
  224. package/dist/cjs/resources/customers/operations/index.js +4 -4
  225. package/dist/cjs/resources/discounts/index.js +11 -11
  226. package/dist/cjs/resources/discounts/operations/index.js +3 -3
  227. package/dist/cjs/resources/event-types/index.js +4 -4
  228. package/dist/cjs/resources/events/index.js +6 -6
  229. package/dist/cjs/resources/events/operations/index.js +1 -1
  230. package/dist/cjs/resources/index.js +14 -14
  231. package/dist/cjs/resources/notification-settings/index.js +12 -12
  232. package/dist/cjs/resources/notification-settings/operations/index.js +3 -3
  233. package/dist/cjs/resources/notifications/index.js +13 -13
  234. package/dist/cjs/resources/notifications/operations/index.js +2 -2
  235. package/dist/cjs/resources/prices/index.js +12 -12
  236. package/dist/cjs/resources/prices/operations/index.js +4 -4
  237. package/dist/cjs/resources/pricing-preview/index.js +5 -5
  238. package/dist/cjs/resources/pricing-preview/operations/index.js +1 -1
  239. package/dist/cjs/resources/products/index.js +12 -12
  240. package/dist/cjs/resources/products/operations/index.js +4 -4
  241. package/dist/cjs/resources/reports/index.js +11 -11
  242. package/dist/cjs/resources/reports/operations/index.js +2 -2
  243. package/dist/cjs/resources/subscriptions/index.js +27 -27
  244. package/dist/cjs/resources/subscriptions/operations/index.js +7 -7
  245. package/dist/cjs/resources/transactions/index.js +18 -18
  246. package/dist/cjs/resources/transactions/operations/index.js +8 -8
  247. package/dist/cjs/types/address/index.js +1 -1
  248. package/dist/cjs/types/adjustment/index.js +5 -5
  249. package/dist/cjs/types/business/index.js +2 -2
  250. package/dist/cjs/types/customer/index.js +3 -3
  251. package/dist/cjs/types/discount/index.js +1 -1
  252. package/dist/cjs/types/event-types/index.js +1 -1
  253. package/dist/cjs/types/events/index.js +1 -1
  254. package/dist/cjs/types/index.js +17 -17
  255. package/dist/cjs/types/notification-settings/index.js +1 -1
  256. package/dist/cjs/types/notifications/index.js +3 -3
  257. package/dist/cjs/types/payout/index.js +1 -1
  258. package/dist/cjs/types/price/index.js +3 -3
  259. package/dist/cjs/types/pricing-preview/index.js +5 -5
  260. package/dist/cjs/types/product/index.js +1 -1
  261. package/dist/cjs/types/report/index.js +3 -3
  262. package/dist/cjs/types/shared/index.js +29 -29
  263. package/dist/cjs/types/subscription/index.js +13 -13
  264. package/dist/cjs/types/transaction/index.js +15 -15
  265. package/dist/cjs/version.js +1 -1
  266. package/dist/esm/entities/address/address-collection.js +2 -2
  267. package/dist/esm/entities/address/address.js +1 -1
  268. package/dist/esm/entities/address/index.js +2 -2
  269. package/dist/esm/entities/adjustment/adjustment-collection.js +2 -2
  270. package/dist/esm/entities/adjustment/adjustment-item.js +2 -1
  271. package/dist/esm/entities/adjustment/adjustment-proration.js +1 -1
  272. package/dist/esm/entities/adjustment/adjustment.js +2 -1
  273. package/dist/esm/entities/adjustment/index.js +7 -7
  274. package/dist/esm/entities/business/business-collection.js +2 -2
  275. package/dist/esm/entities/business/business.js +2 -1
  276. package/dist/esm/entities/business/index.js +3 -3
  277. package/dist/esm/entities/customer/credit-balance.js +1 -1
  278. package/dist/esm/entities/customer/customer-collection.js +2 -2
  279. package/dist/esm/entities/customer/customer.js +1 -1
  280. package/dist/esm/entities/customer/index.js +4 -4
  281. package/dist/esm/entities/discount/discount-collection.js +2 -2
  282. package/dist/esm/entities/discount/discount.js +1 -1
  283. package/dist/esm/entities/discount/index.js +2 -2
  284. package/dist/esm/entities/event-types/index.js +1 -1
  285. package/dist/esm/entities/events/event-collection.js +2 -2
  286. package/dist/esm/entities/events/index.js +1 -1
  287. package/dist/esm/entities/index.js +16 -16
  288. package/dist/esm/entities/notification-settings/index.js +1 -1
  289. package/dist/esm/entities/notification-settings/notification-settings.js +1 -1
  290. package/dist/esm/entities/notifications/index.js +5 -5
  291. package/dist/esm/entities/notifications/notification-collection.js +2 -2
  292. package/dist/esm/entities/notifications/notification-log-collection.js +2 -2
  293. package/dist/esm/entities/notifications/notification.js +1 -1
  294. package/dist/esm/entities/payout/index.js +1 -1
  295. package/dist/esm/entities/price/index.js +3 -3
  296. package/dist/esm/entities/price/price-collection.js +2 -2
  297. package/dist/esm/entities/price/price.js +3 -1
  298. package/dist/esm/entities/pricing-preview/index.js +4 -4
  299. package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -1
  300. package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +1 -1
  301. package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +4 -4
  302. package/dist/esm/entities/pricing-preview/pricing-preview.js +2 -2
  303. package/dist/esm/entities/product/index.js +2 -2
  304. package/dist/esm/entities/product/product-collection.js +2 -2
  305. package/dist/esm/entities/product/product.js +1 -1
  306. package/dist/esm/entities/report/index.js +4 -4
  307. package/dist/esm/entities/report/report-collection.js +2 -2
  308. package/dist/esm/entities/report/report.js +1 -1
  309. package/dist/esm/entities/shared/billing-details.js +1 -1
  310. package/dist/esm/entities/shared/chargeback-fee.js +1 -1
  311. package/dist/esm/entities/shared/index.js +20 -20
  312. package/dist/esm/entities/shared/payment-method-details.js +1 -1
  313. package/dist/esm/entities/shared/payout-totals-adjustment.js +1 -1
  314. package/dist/esm/entities/shared/tax-rates-used.js +1 -1
  315. package/dist/esm/entities/shared/transaction-payment-attempt.js +3 -2
  316. package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +1 -1
  317. package/dist/esm/entities/shared/unit-price-override.js +1 -1
  318. package/dist/esm/entities/subscription/index.js +15 -15
  319. package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +1 -1
  320. package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +2 -2
  321. package/dist/esm/entities/subscription/next-transaction.js +3 -1
  322. package/dist/esm/entities/subscription/subscription-collection.js +2 -2
  323. package/dist/esm/entities/subscription/subscription-item.js +3 -1
  324. package/dist/esm/entities/subscription/subscription-preview-update-summary.js +2 -1
  325. package/dist/esm/entities/subscription/subscription-preview.js +7 -1
  326. package/dist/esm/entities/subscription/subscription.js +7 -1
  327. package/dist/esm/entities/subscription/transaction-details-preview.js +2 -1
  328. package/dist/esm/entities/subscription/transaction-line-item-preview.js +2 -1
  329. package/dist/esm/entities/transaction/adjustment-totals.js +1 -1
  330. package/dist/esm/entities/transaction/index.js +16 -16
  331. package/dist/esm/entities/transaction/proration.js +1 -1
  332. package/dist/esm/entities/transaction/transaction-adjustment-item.js +2 -1
  333. package/dist/esm/entities/transaction/transaction-adjustment.js +2 -1
  334. package/dist/esm/entities/transaction/transaction-collection.js +2 -2
  335. package/dist/esm/entities/transaction/transaction-details.js +2 -1
  336. package/dist/esm/entities/transaction/transaction-item-preview.js +2 -1
  337. package/dist/esm/entities/transaction/transaction-item.js +2 -1
  338. package/dist/esm/entities/transaction/transaction-line-item.js +3 -1
  339. package/dist/esm/entities/transaction/transaction-preview.js +3 -1
  340. package/dist/esm/entities/transaction/transaction-proration.js +1 -1
  341. package/dist/esm/entities/transaction/transaction.js +1 -1
  342. package/dist/esm/enums/adjustment/index.js +4 -4
  343. package/dist/esm/enums/discount/index.js +2 -2
  344. package/dist/esm/enums/index.js +9 -9
  345. package/dist/esm/enums/notification/index.js +2 -2
  346. package/dist/esm/enums/notification-settings/index.js +1 -1
  347. package/dist/esm/enums/payout/index.js +1 -1
  348. package/dist/esm/enums/report/index.js +4 -4
  349. package/dist/esm/enums/shared/index.js +16 -16
  350. package/dist/esm/enums/subscription/index.js +6 -6
  351. package/dist/esm/enums/transaction/index.js +1 -1
  352. package/dist/esm/index.esm.edge.js +16 -0
  353. package/dist/esm/index.esm.node.js +16 -0
  354. package/dist/esm/internal/api/case-helpers.js +9 -5
  355. package/dist/esm/internal/api/client.js +17 -10
  356. package/dist/esm/internal/api/constants.js +1 -1
  357. package/dist/esm/internal/api/index.js +3 -3
  358. package/dist/esm/internal/base/base-resource.js +1 -1
  359. package/dist/esm/internal/base/collection.js +1 -1
  360. package/dist/esm/internal/base/index.js +4 -4
  361. package/dist/esm/internal/base/logger.js +1 -1
  362. package/dist/esm/internal/index.js +2 -2
  363. package/dist/esm/internal/providers/crypto/crypto-provider.js +19 -0
  364. package/dist/esm/internal/providers/crypto/edge-crypto.js +36 -0
  365. package/dist/esm/internal/providers/crypto/node-crypto.js +24 -0
  366. package/dist/esm/internal/providers/runtime/edge-runtime.js +9 -0
  367. package/dist/esm/internal/providers/runtime/node-runtime.js +9 -0
  368. package/dist/esm/internal/providers/runtime-provider.js +8 -0
  369. package/dist/esm/notifications/entities/address/address-notification.js +1 -1
  370. package/dist/esm/notifications/entities/address/index.js +1 -1
  371. package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +2 -1
  372. package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +2 -1
  373. package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +1 -1
  374. package/dist/esm/notifications/entities/adjustment/index.js +5 -5
  375. package/dist/esm/notifications/entities/business/business-notification.js +2 -1
  376. package/dist/esm/notifications/entities/business/index.js +2 -2
  377. package/dist/esm/notifications/entities/customer/customer-notification.js +1 -1
  378. package/dist/esm/notifications/entities/customer/index.js +1 -1
  379. package/dist/esm/notifications/entities/discount/discount-notification.js +1 -1
  380. package/dist/esm/notifications/entities/discount/index.js +1 -1
  381. package/dist/esm/notifications/entities/index.js +12 -12
  382. package/dist/esm/notifications/entities/payout/index.js +1 -1
  383. package/dist/esm/notifications/entities/price/index.js +2 -2
  384. package/dist/esm/notifications/entities/price/price-notification.js +2 -1
  385. package/dist/esm/notifications/entities/product/index.js +1 -1
  386. package/dist/esm/notifications/entities/product/product-notification.js +1 -1
  387. package/dist/esm/notifications/entities/report/index.js +2 -2
  388. package/dist/esm/notifications/entities/report/report-notification.js +1 -1
  389. package/dist/esm/notifications/entities/shared/billing-details-notification.js +1 -1
  390. package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +1 -1
  391. package/dist/esm/notifications/entities/shared/index.js +20 -20
  392. package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +1 -1
  393. package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +1 -1
  394. package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +1 -1
  395. package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +1 -1
  396. package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +1 -1
  397. package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +1 -1
  398. package/dist/esm/notifications/entities/subscription/index.js +6 -6
  399. package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +3 -1
  400. package/dist/esm/notifications/entities/subscription/subscription-notification.js +5 -1
  401. package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +3 -3
  402. package/dist/esm/notifications/entities/transaction/index.js +6 -6
  403. package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +2 -1
  404. package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +2 -1
  405. package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +3 -1
  406. package/dist/esm/notifications/entities/transaction/transaction-notification.js +4 -1
  407. package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +1 -1
  408. package/dist/esm/notifications/events/address/address-created-event.js +3 -3
  409. package/dist/esm/notifications/events/address/address-imported-event.js +3 -3
  410. package/dist/esm/notifications/events/address/address-updated-event.js +3 -3
  411. package/dist/esm/notifications/events/address/index.js +3 -3
  412. package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +3 -3
  413. package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +3 -3
  414. package/dist/esm/notifications/events/adjustment/index.js +2 -2
  415. package/dist/esm/notifications/events/business/business-created-event.js +3 -3
  416. package/dist/esm/notifications/events/business/business-imported-event.js +3 -3
  417. package/dist/esm/notifications/events/business/business-updated-event.js +3 -3
  418. package/dist/esm/notifications/events/business/index.js +3 -3
  419. package/dist/esm/notifications/events/customer/customer-created-event.js +3 -3
  420. package/dist/esm/notifications/events/customer/customer-imported-event.js +3 -3
  421. package/dist/esm/notifications/events/customer/customer-updated-event.js +3 -3
  422. package/dist/esm/notifications/events/customer/index.js +3 -3
  423. package/dist/esm/notifications/events/discount/discount-created-event.js +3 -3
  424. package/dist/esm/notifications/events/discount/discount-imported-event.js +3 -3
  425. package/dist/esm/notifications/events/discount/discount-updated-event.js +3 -3
  426. package/dist/esm/notifications/events/discount/index.js +3 -3
  427. package/dist/esm/notifications/events/index.js +11 -11
  428. package/dist/esm/notifications/events/payout/index.js +2 -2
  429. package/dist/esm/notifications/events/payout/payout-created-event.js +3 -3
  430. package/dist/esm/notifications/events/payout/payout-paid-event.js +3 -3
  431. package/dist/esm/notifications/events/price/index.js +3 -3
  432. package/dist/esm/notifications/events/price/price-created-event.js +3 -3
  433. package/dist/esm/notifications/events/price/price-imported-event.js +3 -3
  434. package/dist/esm/notifications/events/price/price-updated-event.js +3 -3
  435. package/dist/esm/notifications/events/product/index.js +3 -3
  436. package/dist/esm/notifications/events/product/product-created-event.js +3 -3
  437. package/dist/esm/notifications/events/product/product-imported-event.js +3 -3
  438. package/dist/esm/notifications/events/product/product-updated-event.js +3 -3
  439. package/dist/esm/notifications/events/report/index.js +2 -2
  440. package/dist/esm/notifications/events/report/report-created-event.js +3 -3
  441. package/dist/esm/notifications/events/report/report-updated-event.js +3 -3
  442. package/dist/esm/notifications/events/subscription/index.js +9 -9
  443. package/dist/esm/notifications/events/subscription/subscription-activated-event.js +3 -3
  444. package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +3 -3
  445. package/dist/esm/notifications/events/subscription/subscription-created-event.js +3 -3
  446. package/dist/esm/notifications/events/subscription/subscription-imported-event.js +3 -3
  447. package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +3 -3
  448. package/dist/esm/notifications/events/subscription/subscription-paused-event.js +3 -3
  449. package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +3 -3
  450. package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +3 -3
  451. package/dist/esm/notifications/events/subscription/subscription-updated-event.js +3 -3
  452. package/dist/esm/notifications/events/transaction/index.js +9 -9
  453. package/dist/esm/notifications/events/transaction/transaction-billed-event.js +3 -3
  454. package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +3 -3
  455. package/dist/esm/notifications/events/transaction/transaction-completed-event.js +3 -3
  456. package/dist/esm/notifications/events/transaction/transaction-created-event.js +3 -3
  457. package/dist/esm/notifications/events/transaction/transaction-paid-event.js +3 -3
  458. package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +3 -3
  459. package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +3 -3
  460. package/dist/esm/notifications/events/transaction/transaction-ready-event.js +3 -3
  461. package/dist/esm/notifications/events/transaction/transaction-updated-event.js +3 -3
  462. package/dist/esm/notifications/helpers/index.js +3 -3
  463. package/dist/esm/notifications/helpers/webhooks-validator.js +26 -10
  464. package/dist/esm/notifications/helpers/webhooks.js +26 -13
  465. package/dist/esm/notifications/index.js +4 -4
  466. package/dist/esm/notifications/types/address/index.js +1 -1
  467. package/dist/esm/notifications/types/adjustment/index.js +6 -6
  468. package/dist/esm/notifications/types/business/index.js +2 -2
  469. package/dist/esm/notifications/types/customer/index.js +1 -1
  470. package/dist/esm/notifications/types/discount/index.js +1 -1
  471. package/dist/esm/notifications/types/index.js +12 -12
  472. package/dist/esm/notifications/types/payout/index.js +1 -1
  473. package/dist/esm/notifications/types/price/index.js +2 -2
  474. package/dist/esm/notifications/types/product/index.js +1 -1
  475. package/dist/esm/notifications/types/report/index.js +2 -2
  476. package/dist/esm/notifications/types/shared/index.js +22 -22
  477. package/dist/esm/notifications/types/subscription/index.js +7 -7
  478. package/dist/esm/notifications/types/transaction/index.js +6 -6
  479. package/dist/esm/package.json +1 -0
  480. package/dist/esm/paddle.js +5 -5
  481. package/dist/esm/resources/addresses/index.js +3 -3
  482. package/dist/esm/resources/addresses/operations/index.js +3 -3
  483. package/dist/esm/resources/adjustments/index.js +3 -3
  484. package/dist/esm/resources/adjustments/operations/index.js +3 -3
  485. package/dist/esm/resources/businesses/index.js +3 -3
  486. package/dist/esm/resources/businesses/operations/index.js +3 -3
  487. package/dist/esm/resources/customers/index.js +3 -3
  488. package/dist/esm/resources/customers/operations/index.js +4 -4
  489. package/dist/esm/resources/discounts/index.js +3 -3
  490. package/dist/esm/resources/discounts/operations/index.js +3 -3
  491. package/dist/esm/resources/event-types/index.js +2 -2
  492. package/dist/esm/resources/events/index.js +3 -3
  493. package/dist/esm/resources/events/operations/index.js +1 -1
  494. package/dist/esm/resources/index.js +14 -14
  495. package/dist/esm/resources/notification-settings/index.js +3 -3
  496. package/dist/esm/resources/notification-settings/operations/index.js +3 -3
  497. package/dist/esm/resources/notifications/index.js +3 -3
  498. package/dist/esm/resources/notifications/operations/index.js +2 -2
  499. package/dist/esm/resources/prices/index.js +3 -3
  500. package/dist/esm/resources/prices/operations/index.js +4 -4
  501. package/dist/esm/resources/pricing-preview/index.js +3 -3
  502. package/dist/esm/resources/pricing-preview/operations/index.js +1 -1
  503. package/dist/esm/resources/products/index.js +3 -3
  504. package/dist/esm/resources/products/operations/index.js +4 -4
  505. package/dist/esm/resources/reports/index.js +3 -3
  506. package/dist/esm/resources/reports/operations/index.js +2 -2
  507. package/dist/esm/resources/subscriptions/index.js +3 -3
  508. package/dist/esm/resources/subscriptions/operations/index.js +7 -7
  509. package/dist/esm/resources/transactions/index.js +3 -3
  510. package/dist/esm/resources/transactions/operations/index.js +8 -8
  511. package/dist/esm/types/address/index.js +1 -1
  512. package/dist/esm/types/adjustment/index.js +5 -5
  513. package/dist/esm/types/business/index.js +2 -2
  514. package/dist/esm/types/customer/index.js +3 -3
  515. package/dist/esm/types/discount/index.js +1 -1
  516. package/dist/esm/types/event-types/index.js +1 -1
  517. package/dist/esm/types/events/index.js +1 -1
  518. package/dist/esm/types/index.js +17 -17
  519. package/dist/esm/types/notification-settings/index.js +1 -1
  520. package/dist/esm/types/notifications/index.js +3 -3
  521. package/dist/esm/types/payout/index.js +1 -1
  522. package/dist/esm/types/price/index.js +3 -3
  523. package/dist/esm/types/pricing-preview/index.js +5 -5
  524. package/dist/esm/types/product/index.js +1 -1
  525. package/dist/esm/types/report/index.js +3 -3
  526. package/dist/esm/types/shared/index.js +29 -29
  527. package/dist/esm/types/subscription/index.js +13 -13
  528. package/dist/esm/types/transaction/index.js +15 -15
  529. package/dist/esm/version.js +1 -1
  530. package/dist/types/entities/address/address-collection.d.ts +3 -3
  531. package/dist/types/entities/address/address.d.ts +3 -3
  532. package/dist/types/entities/address/index.d.ts +2 -2
  533. package/dist/types/entities/adjustment/adjustment-collection.d.ts +3 -3
  534. package/dist/types/entities/adjustment/adjustment-credit-note-pdf.d.ts +1 -1
  535. package/dist/types/entities/adjustment/adjustment-item-totals.d.ts +1 -1
  536. package/dist/types/entities/adjustment/adjustment-item.d.ts +4 -3
  537. package/dist/types/entities/adjustment/adjustment-proration.d.ts +2 -2
  538. package/dist/types/entities/adjustment/adjustment-time-period.d.ts +1 -1
  539. package/dist/types/entities/adjustment/adjustment.d.ts +4 -3
  540. package/dist/types/entities/adjustment/index.d.ts +7 -7
  541. package/dist/types/entities/business/business-collection.d.ts +3 -3
  542. package/dist/types/entities/business/business.d.ts +4 -3
  543. package/dist/types/entities/business/contacts.d.ts +1 -1
  544. package/dist/types/entities/business/index.d.ts +3 -3
  545. package/dist/types/entities/customer/credit-balance.d.ts +3 -3
  546. package/dist/types/entities/customer/customer-balance.d.ts +1 -1
  547. package/dist/types/entities/customer/customer-collection.d.ts +3 -3
  548. package/dist/types/entities/customer/customer.d.ts +3 -3
  549. package/dist/types/entities/customer/index.d.ts +4 -4
  550. package/dist/types/entities/discount/discount-collection.d.ts +3 -3
  551. package/dist/types/entities/discount/discount.d.ts +3 -3
  552. package/dist/types/entities/discount/index.d.ts +2 -2
  553. package/dist/types/entities/event-types/event-type.d.ts +2 -2
  554. package/dist/types/entities/event-types/index.d.ts +1 -1
  555. package/dist/types/entities/events/event-collection.d.ts +3 -3
  556. package/dist/types/entities/events/event.d.ts +1 -1
  557. package/dist/types/entities/events/index.d.ts +1 -1
  558. package/dist/types/entities/index.d.ts +16 -16
  559. package/dist/types/entities/notification-settings/index.d.ts +1 -1
  560. package/dist/types/entities/notification-settings/notification-settings.d.ts +3 -3
  561. package/dist/types/entities/notifications/index.d.ts +5 -5
  562. package/dist/types/entities/notifications/notification-collection.d.ts +3 -3
  563. package/dist/types/entities/notifications/notification-log-collection.d.ts +3 -3
  564. package/dist/types/entities/notifications/notification.d.ts +3 -3
  565. package/dist/types/entities/notifications/replay-notification.d.ts +1 -1
  566. package/dist/types/entities/payout/index.d.ts +1 -1
  567. package/dist/types/entities/payout/payout.d.ts +2 -2
  568. package/dist/types/entities/price/index.d.ts +3 -3
  569. package/dist/types/entities/price/price-collection.d.ts +3 -3
  570. package/dist/types/entities/price/price-quantity.d.ts +1 -1
  571. package/dist/types/entities/price/price.d.ts +5 -3
  572. package/dist/types/entities/pricing-preview/index.d.ts +4 -4
  573. package/dist/types/entities/pricing-preview/pricing-preview-details.d.ts +2 -2
  574. package/dist/types/entities/pricing-preview/pricing-preview-discounts.d.ts +2 -2
  575. package/dist/types/entities/pricing-preview/pricing-preview-line-item.d.ts +5 -5
  576. package/dist/types/entities/pricing-preview/pricing-preview.d.ts +4 -4
  577. package/dist/types/entities/product/index.d.ts +2 -2
  578. package/dist/types/entities/product/product-collection.d.ts +3 -3
  579. package/dist/types/entities/product/product.d.ts +3 -3
  580. package/dist/types/entities/report/index.d.ts +4 -4
  581. package/dist/types/entities/report/report-collection.d.ts +3 -3
  582. package/dist/types/entities/report/report-csv.d.ts +1 -1
  583. package/dist/types/entities/report/report-filters.d.ts +2 -2
  584. package/dist/types/entities/report/report.d.ts +3 -3
  585. package/dist/types/entities/shared/adjustment-original-amount.d.ts +2 -2
  586. package/dist/types/entities/shared/billing-details.d.ts +2 -2
  587. package/dist/types/entities/shared/chargeback-fee.d.ts +2 -2
  588. package/dist/types/entities/shared/import-meta.d.ts +1 -1
  589. package/dist/types/entities/shared/index.d.ts +20 -20
  590. package/dist/types/entities/shared/money.d.ts +2 -2
  591. package/dist/types/entities/shared/payment-card.d.ts +2 -2
  592. package/dist/types/entities/shared/payment-method-details.d.ts +3 -3
  593. package/dist/types/entities/shared/payout-totals-adjustment.d.ts +3 -3
  594. package/dist/types/entities/shared/tax-rates-used.d.ts +2 -2
  595. package/dist/types/entities/shared/time-period.d.ts +2 -2
  596. package/dist/types/entities/shared/total-adjustments.d.ts +2 -2
  597. package/dist/types/entities/shared/totals.d.ts +1 -1
  598. package/dist/types/entities/shared/transaction-checkout.d.ts +1 -1
  599. package/dist/types/entities/shared/transaction-payment-attempt.d.ts +4 -4
  600. package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +3 -3
  601. package/dist/types/entities/shared/transaction-payout-totals.d.ts +2 -2
  602. package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +2 -2
  603. package/dist/types/entities/shared/transaction-totals.d.ts +2 -2
  604. package/dist/types/entities/shared/unit-price-override.d.ts +3 -3
  605. package/dist/types/entities/shared/unit-totals.d.ts +1 -1
  606. package/dist/types/entities/subscription/index.d.ts +15 -15
  607. package/dist/types/entities/subscription/next-transaction-adjustment-item.d.ts +3 -3
  608. package/dist/types/entities/subscription/next-transaction-adjustment-preview.d.ts +3 -3
  609. package/dist/types/entities/subscription/next-transaction.d.ts +4 -2
  610. package/dist/types/entities/subscription/subscription-collection.d.ts +3 -3
  611. package/dist/types/entities/subscription/subscription-discount.d.ts +1 -1
  612. package/dist/types/entities/subscription/subscription-item.d.ts +5 -3
  613. package/dist/types/entities/subscription/subscription-management.d.ts +1 -1
  614. package/dist/types/entities/subscription/subscription-preview-summary-result.d.ts +2 -2
  615. package/dist/types/entities/subscription/subscription-preview-update-summary.d.ts +3 -2
  616. package/dist/types/entities/subscription/subscription-preview.d.ts +9 -3
  617. package/dist/types/entities/subscription/subscription-scheduled-change.d.ts +2 -2
  618. package/dist/types/entities/subscription/subscription-time-period.d.ts +1 -1
  619. package/dist/types/entities/subscription/subscription.d.ts +9 -3
  620. package/dist/types/entities/subscription/transaction-details-preview.d.ts +3 -2
  621. package/dist/types/entities/subscription/transaction-line-item-preview.d.ts +3 -2
  622. package/dist/types/entities/transaction/address-preview.d.ts +2 -2
  623. package/dist/types/entities/transaction/adjustment-totals-breakdown.d.ts +1 -1
  624. package/dist/types/entities/transaction/adjustment-totals.d.ts +3 -3
  625. package/dist/types/entities/transaction/index.d.ts +16 -16
  626. package/dist/types/entities/transaction/proration.d.ts +2 -2
  627. package/dist/types/entities/transaction/transaction-adjustment-item.d.ts +4 -3
  628. package/dist/types/entities/transaction/transaction-adjustment.d.ts +4 -3
  629. package/dist/types/entities/transaction/transaction-collection.d.ts +3 -3
  630. package/dist/types/entities/transaction/transaction-details.d.ts +3 -2
  631. package/dist/types/entities/transaction/transaction-invoice-pdf.d.ts +1 -1
  632. package/dist/types/entities/transaction/transaction-item-preview.d.ts +3 -2
  633. package/dist/types/entities/transaction/transaction-item.d.ts +3 -2
  634. package/dist/types/entities/transaction/transaction-line-item.d.ts +4 -2
  635. package/dist/types/entities/transaction/transaction-preview.d.ts +5 -3
  636. package/dist/types/entities/transaction/transaction-proration.d.ts +2 -2
  637. package/dist/types/entities/transaction/transaction.d.ts +3 -3
  638. package/dist/types/entities/transaction/transactions-time-period.d.ts +1 -1
  639. package/dist/types/enums/adjustment/index.d.ts +4 -4
  640. package/dist/types/enums/discount/index.d.ts +2 -2
  641. package/dist/types/enums/index.d.ts +9 -9
  642. package/dist/types/enums/notification/index.d.ts +2 -2
  643. package/dist/types/enums/notification-settings/index.d.ts +1 -1
  644. package/dist/types/enums/payout/index.d.ts +1 -1
  645. package/dist/types/enums/report/index.d.ts +4 -4
  646. package/dist/types/enums/shared/index.d.ts +16 -16
  647. package/dist/types/enums/subscription/index.d.ts +6 -6
  648. package/dist/types/enums/transaction/index.d.ts +1 -1
  649. package/dist/types/index.cjs.node.d.ts +14 -0
  650. package/dist/types/internal/api/client.d.ts +3 -3
  651. package/dist/types/internal/api/constants.d.ts +1 -1
  652. package/dist/types/internal/api/index.d.ts +3 -3
  653. package/dist/types/internal/base/base-resource.d.ts +2 -2
  654. package/dist/types/internal/base/collection.d.ts +2 -2
  655. package/dist/types/internal/base/index.d.ts +4 -4
  656. package/dist/types/internal/base/logger.d.ts +1 -2
  657. package/dist/types/internal/errors/generic.d.ts +1 -1
  658. package/dist/types/internal/index.d.ts +4 -4
  659. package/dist/types/internal/providers/crypto/crypto-provider.d.ts +4 -0
  660. package/dist/types/internal/providers/crypto/edge-crypto.d.ts +5 -0
  661. package/dist/types/internal/providers/crypto/node-crypto.d.ts +5 -0
  662. package/dist/types/internal/providers/runtime/edge-runtime.d.ts +3 -0
  663. package/dist/types/internal/providers/runtime/node-runtime.d.ts +3 -0
  664. package/dist/types/internal/providers/runtime-provider.d.ts +9 -0
  665. package/dist/types/internal/types/config.d.ts +1 -1
  666. package/dist/types/notifications/entities/address/address-notification.d.ts +3 -3
  667. package/dist/types/notifications/entities/address/index.d.ts +1 -1
  668. package/dist/types/notifications/entities/adjustment/adjustment-item-notification.d.ts +4 -3
  669. package/dist/types/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +1 -1
  670. package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +4 -3
  671. package/dist/types/notifications/entities/adjustment/adjustment-proration-notification.d.ts +2 -2
  672. package/dist/types/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +1 -1
  673. package/dist/types/notifications/entities/adjustment/index.d.ts +5 -5
  674. package/dist/types/notifications/entities/business/business-notification.d.ts +5 -4
  675. package/dist/types/notifications/entities/business/contacts-notification.d.ts +1 -1
  676. package/dist/types/notifications/entities/business/index.d.ts +2 -2
  677. package/dist/types/notifications/entities/customer/customer-notification.d.ts +4 -4
  678. package/dist/types/notifications/entities/customer/index.d.ts +1 -1
  679. package/dist/types/notifications/entities/discount/discount-notification.d.ts +4 -4
  680. package/dist/types/notifications/entities/discount/index.d.ts +1 -1
  681. package/dist/types/notifications/entities/index.d.ts +12 -12
  682. package/dist/types/notifications/entities/payout/index.d.ts +1 -1
  683. package/dist/types/notifications/entities/payout/payout-notification.d.ts +2 -2
  684. package/dist/types/notifications/entities/price/index.d.ts +2 -2
  685. package/dist/types/notifications/entities/price/price-notification.d.ts +5 -4
  686. package/dist/types/notifications/entities/price/price-quantity-notification.d.ts +1 -1
  687. package/dist/types/notifications/entities/product/index.d.ts +1 -1
  688. package/dist/types/notifications/entities/product/product-notification.d.ts +4 -4
  689. package/dist/types/notifications/entities/report/index.d.ts +2 -2
  690. package/dist/types/notifications/entities/report/report-filters-notification.d.ts +2 -2
  691. package/dist/types/notifications/entities/report/report-notification.d.ts +3 -3
  692. package/dist/types/notifications/entities/shared/adjustment-original-amount-notification.d.ts +2 -2
  693. package/dist/types/notifications/entities/shared/billing-details-notification.d.ts +2 -2
  694. package/dist/types/notifications/entities/shared/chargeback-fee-notification.d.ts +2 -2
  695. package/dist/types/notifications/entities/shared/import-meta-notification.d.ts +1 -1
  696. package/dist/types/notifications/entities/shared/index.d.ts +20 -20
  697. package/dist/types/notifications/entities/shared/money-notification.d.ts +2 -2
  698. package/dist/types/notifications/entities/shared/payment-card-notification.d.ts +2 -2
  699. package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +3 -3
  700. package/dist/types/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +3 -3
  701. package/dist/types/notifications/entities/shared/tax-rates-used-notification.d.ts +2 -2
  702. package/dist/types/notifications/entities/shared/time-period-notification.d.ts +2 -2
  703. package/dist/types/notifications/entities/shared/total-adjustments-notification.d.ts +2 -2
  704. package/dist/types/notifications/entities/shared/totals-notification.d.ts +1 -1
  705. package/dist/types/notifications/entities/shared/transaction-checkout-notification.d.ts +1 -1
  706. package/dist/types/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +3 -3
  707. package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +3 -3
  708. package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +2 -2
  709. package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +2 -2
  710. package/dist/types/notifications/entities/shared/transaction-totals-notification.d.ts +2 -2
  711. package/dist/types/notifications/entities/shared/unit-price-override-notification.d.ts +3 -3
  712. package/dist/types/notifications/entities/shared/unit-totals-notification.d.ts +1 -1
  713. package/dist/types/notifications/entities/subscription/index.d.ts +6 -6
  714. package/dist/types/notifications/entities/subscription/subscription-discount-notification.d.ts +1 -1
  715. package/dist/types/notifications/entities/subscription/subscription-item-notification.d.ts +5 -3
  716. package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +8 -4
  717. package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +5 -4
  718. package/dist/types/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +2 -2
  719. package/dist/types/notifications/entities/subscription/subscription-time-period-notification.d.ts +1 -1
  720. package/dist/types/notifications/entities/transaction/index.d.ts +6 -6
  721. package/dist/types/notifications/entities/transaction/transaction-details-notification.d.ts +3 -2
  722. package/dist/types/notifications/entities/transaction/transaction-item-notification.d.ts +3 -2
  723. package/dist/types/notifications/entities/transaction/transaction-line-item-notification.d.ts +4 -2
  724. package/dist/types/notifications/entities/transaction/transaction-notification.d.ts +7 -4
  725. package/dist/types/notifications/entities/transaction/transaction-proration-notification.d.ts +2 -2
  726. package/dist/types/notifications/entities/transaction/transactions-time-period-notification.d.ts +1 -1
  727. package/dist/types/notifications/events/address/address-created-event.d.ts +5 -5
  728. package/dist/types/notifications/events/address/address-imported-event.d.ts +5 -5
  729. package/dist/types/notifications/events/address/address-updated-event.d.ts +5 -5
  730. package/dist/types/notifications/events/address/index.d.ts +3 -3
  731. package/dist/types/notifications/events/adjustment/adjustment-created-event.d.ts +5 -5
  732. package/dist/types/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -5
  733. package/dist/types/notifications/events/adjustment/index.d.ts +2 -2
  734. package/dist/types/notifications/events/business/business-created-event.d.ts +5 -5
  735. package/dist/types/notifications/events/business/business-imported-event.d.ts +5 -5
  736. package/dist/types/notifications/events/business/business-updated-event.d.ts +5 -5
  737. package/dist/types/notifications/events/business/index.d.ts +3 -3
  738. package/dist/types/notifications/events/customer/customer-created-event.d.ts +5 -5
  739. package/dist/types/notifications/events/customer/customer-imported-event.d.ts +5 -5
  740. package/dist/types/notifications/events/customer/customer-updated-event.d.ts +5 -5
  741. package/dist/types/notifications/events/customer/index.d.ts +3 -3
  742. package/dist/types/notifications/events/discount/discount-created-event.d.ts +5 -5
  743. package/dist/types/notifications/events/discount/discount-imported-event.d.ts +5 -5
  744. package/dist/types/notifications/events/discount/discount-updated-event.d.ts +5 -5
  745. package/dist/types/notifications/events/discount/index.d.ts +3 -3
  746. package/dist/types/notifications/events/index.d.ts +11 -11
  747. package/dist/types/notifications/events/payout/index.d.ts +2 -2
  748. package/dist/types/notifications/events/payout/payout-created-event.d.ts +5 -5
  749. package/dist/types/notifications/events/payout/payout-paid-event.d.ts +5 -5
  750. package/dist/types/notifications/events/price/index.d.ts +3 -3
  751. package/dist/types/notifications/events/price/price-created-event.d.ts +5 -5
  752. package/dist/types/notifications/events/price/price-imported-event.d.ts +5 -5
  753. package/dist/types/notifications/events/price/price-updated-event.d.ts +5 -5
  754. package/dist/types/notifications/events/product/index.d.ts +3 -3
  755. package/dist/types/notifications/events/product/product-created-event.d.ts +5 -5
  756. package/dist/types/notifications/events/product/product-imported-event.d.ts +5 -5
  757. package/dist/types/notifications/events/product/product-updated-event.d.ts +5 -5
  758. package/dist/types/notifications/events/report/index.d.ts +2 -2
  759. package/dist/types/notifications/events/report/report-created-event.d.ts +5 -5
  760. package/dist/types/notifications/events/report/report-updated-event.d.ts +5 -5
  761. package/dist/types/notifications/events/subscription/index.d.ts +9 -9
  762. package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +5 -5
  763. package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +5 -5
  764. package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +5 -5
  765. package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +5 -5
  766. package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +5 -5
  767. package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +5 -5
  768. package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +5 -5
  769. package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +5 -5
  770. package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +5 -5
  771. package/dist/types/notifications/events/transaction/index.d.ts +9 -9
  772. package/dist/types/notifications/events/transaction/transaction-billed-event.d.ts +5 -5
  773. package/dist/types/notifications/events/transaction/transaction-canceled-event.d.ts +5 -5
  774. package/dist/types/notifications/events/transaction/transaction-completed-event.d.ts +5 -5
  775. package/dist/types/notifications/events/transaction/transaction-created-event.d.ts +5 -5
  776. package/dist/types/notifications/events/transaction/transaction-paid-event.d.ts +5 -5
  777. package/dist/types/notifications/events/transaction/transaction-past-due-event.d.ts +5 -5
  778. package/dist/types/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -5
  779. package/dist/types/notifications/events/transaction/transaction-ready-event.d.ts +5 -5
  780. package/dist/types/notifications/events/transaction/transaction-updated-event.d.ts +5 -5
  781. package/dist/types/notifications/helpers/index.d.ts +3 -3
  782. package/dist/types/notifications/helpers/types.d.ts +1 -1
  783. package/dist/types/notifications/helpers/webhooks-validator.d.ts +1 -1
  784. package/dist/types/notifications/helpers/webhooks.d.ts +4 -4
  785. package/dist/types/notifications/index.d.ts +4 -4
  786. package/dist/types/notifications/types/address/address-notification-response.d.ts +2 -2
  787. package/dist/types/notifications/types/address/index.d.ts +1 -1
  788. package/dist/types/notifications/types/adjustment/adjustment-item-notification-response.d.ts +3 -2
  789. package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +3 -2
  790. package/dist/types/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +2 -2
  791. package/dist/types/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +1 -1
  792. package/dist/types/notifications/types/adjustment/index.d.ts +6 -6
  793. package/dist/types/notifications/types/business/business-notification-response.d.ts +4 -3
  794. package/dist/types/notifications/types/business/index.d.ts +2 -2
  795. package/dist/types/notifications/types/customer/customer-notification-response.d.ts +3 -3
  796. package/dist/types/notifications/types/customer/index.d.ts +1 -1
  797. package/dist/types/notifications/types/discount/discount-notification-response.d.ts +3 -3
  798. package/dist/types/notifications/types/discount/index.d.ts +1 -1
  799. package/dist/types/notifications/types/index.d.ts +12 -12
  800. package/dist/types/notifications/types/payout/index.d.ts +1 -1
  801. package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -1
  802. package/dist/types/notifications/types/price/index.d.ts +2 -2
  803. package/dist/types/notifications/types/price/price-notification-response.d.ts +4 -3
  804. package/dist/types/notifications/types/product/index.d.ts +1 -1
  805. package/dist/types/notifications/types/product/product-notification-response.d.ts +3 -3
  806. package/dist/types/notifications/types/report/index.d.ts +2 -2
  807. package/dist/types/notifications/types/report/report-filters-notification-response.d.ts +1 -1
  808. package/dist/types/notifications/types/report/report-notification-response.d.ts +2 -2
  809. package/dist/types/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +1 -1
  810. package/dist/types/notifications/types/shared/billing-details-notification-response.d.ts +1 -1
  811. package/dist/types/notifications/types/shared/chargeback-fee.d.ts +1 -1
  812. package/dist/types/notifications/types/shared/index.d.ts +22 -22
  813. package/dist/types/notifications/types/shared/money-notification-response.d.ts +1 -1
  814. package/dist/types/notifications/types/shared/payment-card-notification-response.d.ts +1 -1
  815. package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -2
  816. package/dist/types/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +2 -2
  817. package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +7 -3
  818. package/dist/types/notifications/types/shared/shared-product-notification-response.d.ts +3 -3
  819. package/dist/types/notifications/types/shared/tax-rates-used-notification-response.d.ts +1 -1
  820. package/dist/types/notifications/types/shared/time-period-notification.d.ts +1 -1
  821. package/dist/types/notifications/types/shared/total-adjustments-notification-response.d.ts +1 -1
  822. package/dist/types/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +2 -2
  823. package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +2 -2
  824. package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +1 -1
  825. package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -1
  826. package/dist/types/notifications/types/shared/transaction-totals-notification-response.d.ts +1 -1
  827. package/dist/types/notifications/types/shared/unit-price-override-notification-response.d.ts +2 -2
  828. package/dist/types/notifications/types/subscription/index.d.ts +7 -7
  829. package/dist/types/notifications/types/subscription/subscription-item-notification-response.d.ts +4 -2
  830. package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +7 -3
  831. package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +4 -3
  832. package/dist/types/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +1 -1
  833. package/dist/types/notifications/types/transaction/index.d.ts +6 -6
  834. package/dist/types/notifications/types/transaction/transaction-details-notification-response.d.ts +2 -1
  835. package/dist/types/notifications/types/transaction/transaction-item-notification-response.d.ts +2 -1
  836. package/dist/types/notifications/types/transaction/transaction-line-item-notification-response.d.ts +2 -1
  837. package/dist/types/notifications/types/transaction/transaction-notification-response.d.ts +6 -3
  838. package/dist/types/notifications/types/transaction/transaction-proration-notification-response.d.ts +1 -1
  839. package/dist/types/paddle.d.ts +4 -4
  840. package/dist/types/resources/addresses/index.d.ts +4 -4
  841. package/dist/types/resources/addresses/operations/create-address-request-body.d.ts +2 -2
  842. package/dist/types/resources/addresses/operations/index.d.ts +3 -3
  843. package/dist/types/resources/addresses/operations/list-address-query-parameters.d.ts +1 -1
  844. package/dist/types/resources/addresses/operations/update-address-request-body.d.ts +2 -2
  845. package/dist/types/resources/adjustments/index.d.ts +4 -4
  846. package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +1 -1
  847. package/dist/types/resources/adjustments/operations/get-adjustment-credit-note-query-parameters.d.ts +1 -1
  848. package/dist/types/resources/adjustments/operations/index.d.ts +3 -3
  849. package/dist/types/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +1 -1
  850. package/dist/types/resources/businesses/index.d.ts +4 -4
  851. package/dist/types/resources/businesses/operations/create-business-request-body.d.ts +1 -1
  852. package/dist/types/resources/businesses/operations/index.d.ts +3 -3
  853. package/dist/types/resources/businesses/operations/list-business-query-parameters.d.ts +1 -1
  854. package/dist/types/resources/businesses/operations/update-business-request-body.d.ts +2 -2
  855. package/dist/types/resources/customers/index.d.ts +4 -4
  856. package/dist/types/resources/customers/operations/create-customer-request-body.d.ts +1 -1
  857. package/dist/types/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
  858. package/dist/types/resources/customers/operations/index.d.ts +4 -4
  859. package/dist/types/resources/customers/operations/list-customer-query-parameters.d.ts +1 -1
  860. package/dist/types/resources/customers/operations/update-customer-request-body.d.ts +2 -2
  861. package/dist/types/resources/discounts/index.d.ts +4 -4
  862. package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -2
  863. package/dist/types/resources/discounts/operations/index.d.ts +3 -3
  864. package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +1 -1
  865. package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -2
  866. package/dist/types/resources/event-types/index.d.ts +2 -2
  867. package/dist/types/resources/events/index.d.ts +4 -4
  868. package/dist/types/resources/events/operations/index.d.ts +1 -1
  869. package/dist/types/resources/index.d.ts +14 -14
  870. package/dist/types/resources/notification-settings/index.d.ts +4 -4
  871. package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -2
  872. package/dist/types/resources/notification-settings/operations/index.d.ts +3 -3
  873. package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +1 -1
  874. package/dist/types/resources/notifications/index.d.ts +4 -4
  875. package/dist/types/resources/notifications/operations/index.d.ts +2 -2
  876. package/dist/types/resources/notifications/operations/list-notification-query-parameters.d.ts +1 -1
  877. package/dist/types/resources/prices/index.d.ts +4 -4
  878. package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
  879. package/dist/types/resources/prices/operations/index.d.ts +4 -4
  880. package/dist/types/resources/prices/operations/list-price-query-parameters.d.ts +1 -1
  881. package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
  882. package/dist/types/resources/pricing-preview/index.d.ts +4 -4
  883. package/dist/types/resources/pricing-preview/operations/index.d.ts +1 -1
  884. package/dist/types/resources/pricing-preview/operations/pricing-preview-request-body.d.ts +2 -2
  885. package/dist/types/resources/products/index.d.ts +4 -4
  886. package/dist/types/resources/products/operations/create-product-request-body.d.ts +2 -2
  887. package/dist/types/resources/products/operations/index.d.ts +4 -4
  888. package/dist/types/resources/products/operations/list-product-query-parameters.d.ts +1 -1
  889. package/dist/types/resources/products/operations/update-product-request-body.d.ts +2 -2
  890. package/dist/types/resources/reports/index.d.ts +4 -4
  891. package/dist/types/resources/reports/operations/create-report-request-object.d.ts +2 -2
  892. package/dist/types/resources/reports/operations/index.d.ts +2 -2
  893. package/dist/types/resources/reports/operations/list-report-query-parameters.d.ts +1 -1
  894. package/dist/types/resources/subscriptions/index.d.ts +4 -4
  895. package/dist/types/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
  896. package/dist/types/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +2 -2
  897. package/dist/types/resources/subscriptions/operations/index.d.ts +7 -7
  898. package/dist/types/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +1 -1
  899. package/dist/types/resources/subscriptions/operations/pause-subscription-request-object.d.ts +1 -1
  900. package/dist/types/resources/subscriptions/operations/update-subscription-request-body.d.ts +2 -2
  901. package/dist/types/resources/transactions/index.d.ts +4 -4
  902. package/dist/types/resources/transactions/operations/create-transaction-request-body.d.ts +2 -2
  903. package/dist/types/resources/transactions/operations/get-transaction-invoice-pdf-query-parameters.d.ts +1 -1
  904. package/dist/types/resources/transactions/operations/index.d.ts +8 -8
  905. package/dist/types/resources/transactions/operations/list-transaction-query-parameters.d.ts +1 -1
  906. package/dist/types/resources/transactions/operations/transaction-preview-request-body.d.ts +2 -2
  907. package/dist/types/resources/transactions/operations/update-transaction-request-body.d.ts +2 -2
  908. package/dist/types/types/address/address-response.d.ts +2 -2
  909. package/dist/types/types/address/index.d.ts +1 -1
  910. package/dist/types/types/adjustment/adjustment-item-response.d.ts +3 -2
  911. package/dist/types/types/adjustment/adjustment-response.d.ts +3 -2
  912. package/dist/types/types/adjustment/adjustments-proration-response.d.ts +1 -1
  913. package/dist/types/types/adjustment/index.d.ts +5 -5
  914. package/dist/types/types/business/business-response.d.ts +3 -2
  915. package/dist/types/types/business/index.d.ts +2 -2
  916. package/dist/types/types/customer/credit-balance-response.d.ts +2 -2
  917. package/dist/types/types/customer/customer-response.d.ts +2 -2
  918. package/dist/types/types/customer/index.d.ts +3 -3
  919. package/dist/types/types/discount/discount-response.d.ts +2 -2
  920. package/dist/types/types/discount/index.d.ts +1 -1
  921. package/dist/types/types/event-types/event-type-response.d.ts +1 -1
  922. package/dist/types/types/event-types/index.d.ts +1 -1
  923. package/dist/types/types/events/events-response.d.ts +1 -1
  924. package/dist/types/types/events/index.d.ts +1 -1
  925. package/dist/types/types/index.d.ts +17 -17
  926. package/dist/types/types/notification-settings/index.d.ts +1 -1
  927. package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -2
  928. package/dist/types/types/notifications/index.d.ts +3 -3
  929. package/dist/types/types/notifications/notification.d.ts +3 -3
  930. package/dist/types/types/payout/index.d.ts +1 -1
  931. package/dist/types/types/payout/payout-response.d.ts +1 -1
  932. package/dist/types/types/price/index.d.ts +3 -3
  933. package/dist/types/types/price/non-catalog-price-request.d.ts +3 -3
  934. package/dist/types/types/price/price-response.d.ts +2 -2
  935. package/dist/types/types/price/subscription-non-catalog-price-request.d.ts +3 -3
  936. package/dist/types/types/pricing-preview/index.d.ts +5 -5
  937. package/dist/types/types/pricing-preview/pricing-preview-details-response.d.ts +1 -1
  938. package/dist/types/types/pricing-preview/pricing-preview-discounts-response.d.ts +1 -1
  939. package/dist/types/types/pricing-preview/pricing-preview-line-item-response.d.ts +4 -4
  940. package/dist/types/types/pricing-preview/pricing-preview-response.d.ts +4 -4
  941. package/dist/types/types/product/index.d.ts +1 -1
  942. package/dist/types/types/product/product-response.d.ts +3 -2
  943. package/dist/types/types/report/index.d.ts +3 -3
  944. package/dist/types/types/report/report-filters.d.ts +1 -1
  945. package/dist/types/types/report/report.d.ts +2 -2
  946. package/dist/types/types/shared/adjustment-original-amount-response.d.ts +1 -1
  947. package/dist/types/types/shared/billing-details-create.d.ts +1 -1
  948. package/dist/types/types/shared/billing-details-response.d.ts +1 -1
  949. package/dist/types/types/shared/billing-details-update.d.ts +1 -1
  950. package/dist/types/types/shared/chargeback-fee.d.ts +1 -1
  951. package/dist/types/types/shared/index.d.ts +29 -29
  952. package/dist/types/types/shared/money-response.d.ts +1 -1
  953. package/dist/types/types/shared/money.d.ts +1 -1
  954. package/dist/types/types/shared/payment-card-response.d.ts +1 -1
  955. package/dist/types/types/shared/payment-method-details.d.ts +2 -2
  956. package/dist/types/types/shared/payout-totals-adjustment-response.d.ts +2 -2
  957. package/dist/types/types/shared/tax-rates-used-response.d.ts +1 -1
  958. package/dist/types/types/shared/time-period.d.ts +1 -1
  959. package/dist/types/types/shared/total-adjustments-response.d.ts +1 -1
  960. package/dist/types/types/shared/transaction-details-preview-response.d.ts +3 -1
  961. package/dist/types/types/shared/transaction-line-item-preview-response.d.ts +3 -1
  962. package/dist/types/types/shared/transaction-payment-attempt-response.d.ts +3 -3
  963. package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +2 -2
  964. package/dist/types/types/shared/transaction-payout-totals-response.d.ts +1 -1
  965. package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -1
  966. package/dist/types/types/shared/transaction-totals-response.d.ts +1 -1
  967. package/dist/types/types/shared/unit-price-override-response.d.ts +2 -2
  968. package/dist/types/types/shared/unit-price-override.d.ts +2 -2
  969. package/dist/types/types/subscription/index.d.ts +13 -13
  970. package/dist/types/types/subscription/next-transaction-response.d.ts +3 -1
  971. package/dist/types/types/subscription/subscription-item-response.d.ts +4 -2
  972. package/dist/types/types/subscription/subscription-preview-response.d.ts +9 -2
  973. package/dist/types/types/subscription/subscription-preview-update-summary.d.ts +2 -1
  974. package/dist/types/types/subscription/subscription-response.d.ts +8 -2
  975. package/dist/types/types/subscription/subscription-result-response.d.ts +1 -1
  976. package/dist/types/types/subscription/subscription-scheduled-change-response.d.ts +1 -1
  977. package/dist/types/types/subscription/subscription-update-non-catalog-price-request.d.ts +1 -1
  978. package/dist/types/types/transaction/adjustment-totals-response.d.ts +2 -2
  979. package/dist/types/types/transaction/index.d.ts +15 -15
  980. package/dist/types/types/transaction/transaction-adjustment-item-response.d.ts +3 -2
  981. package/dist/types/types/transaction/transaction-adjustment-response.d.ts +3 -2
  982. package/dist/types/types/transaction/transaction-details-response.d.ts +2 -1
  983. package/dist/types/types/transaction/transaction-item-response.d.ts +2 -1
  984. package/dist/types/types/transaction/transaction-item.d.ts +1 -1
  985. package/dist/types/types/transaction/transaction-line-item-response.d.ts +3 -1
  986. package/dist/types/types/transaction/transaction-preview-item.d.ts +1 -1
  987. package/dist/types/types/transaction/transaction-preview-response.d.ts +5 -5
  988. package/dist/types/types/transaction/transaction-proration-response.d.ts +1 -1
  989. package/dist/types/types/transaction/transaction-response.d.ts +11 -2
  990. package/dist/types/version.d.ts +1 -1
  991. package/package.json +30 -10
  992. package/dist/cjs/index.js +0 -30
  993. package/dist/esm/index.js +0 -8
  994. package/dist/types/index.d.ts +0 -8
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PricingPreviewLineItem = void 0;
4
- const price_1 = require("../price");
5
- const shared_1 = require("../shared");
6
- const product_1 = require("../product");
7
- const pricing_preview_discounts_1 = require("./pricing-preview-discounts");
4
+ const index_js_1 = require("../price/index.js");
5
+ const index_js_2 = require("../shared/index.js");
6
+ const index_js_3 = require("../product/index.js");
7
+ const pricing_preview_discounts_js_1 = require("./pricing-preview-discounts.js");
8
8
  class PricingPreviewLineItem {
9
9
  constructor(lineItem) {
10
- this.price = new price_1.Price(lineItem.price);
10
+ this.price = new index_js_1.Price(lineItem.price);
11
11
  this.quantity = lineItem.quantity;
12
12
  this.taxRate = lineItem.tax_rate;
13
- this.unitTotals = new shared_1.Totals(lineItem.unit_totals);
14
- this.formattedUnitTotals = new shared_1.Totals(lineItem.formatted_unit_totals);
15
- this.totals = new shared_1.Totals(lineItem.totals);
16
- this.formattedTotals = new shared_1.Totals(lineItem.formatted_totals);
17
- this.product = new product_1.Product(lineItem.product);
18
- this.discounts = lineItem.discounts.map((discount) => new pricing_preview_discounts_1.PricingPreviewDiscounts(discount));
13
+ this.unitTotals = new index_js_2.Totals(lineItem.unit_totals);
14
+ this.formattedUnitTotals = new index_js_2.Totals(lineItem.formatted_unit_totals);
15
+ this.totals = new index_js_2.Totals(lineItem.totals);
16
+ this.formattedTotals = new index_js_2.Totals(lineItem.formatted_totals);
17
+ this.product = new index_js_3.Product(lineItem.product);
18
+ this.discounts = lineItem.discounts.map((discount) => new pricing_preview_discounts_js_1.PricingPreviewDiscounts(discount));
19
19
  }
20
20
  }
21
21
  exports.PricingPreviewLineItem = PricingPreviewLineItem;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PricingPreview = void 0;
4
- const transaction_1 = require("../transaction");
5
- const pricing_preview_details_1 = require("./pricing-preview-details");
4
+ const index_js_1 = require("../transaction/index.js");
5
+ const pricing_preview_details_js_1 = require("./pricing-preview-details.js");
6
6
  class PricingPreview {
7
7
  constructor(pricePreview) {
8
8
  var _a, _b, _c, _d, _e, _f;
@@ -11,9 +11,9 @@ class PricingPreview {
11
11
  this.businessId = (_c = pricePreview.business_id) !== null && _c !== void 0 ? _c : null;
12
12
  this.currencyCode = pricePreview.currency_code;
13
13
  this.discountId = (_d = pricePreview.discount_id) !== null && _d !== void 0 ? _d : null;
14
- this.address = pricePreview.address ? new transaction_1.AddressPreview(pricePreview.address) : null;
14
+ this.address = pricePreview.address ? new index_js_1.AddressPreview(pricePreview.address) : null;
15
15
  this.customerIpAddress = (_e = pricePreview.customer_ip_address) !== null && _e !== void 0 ? _e : null;
16
- this.details = new pricing_preview_details_1.PricingPreviewDetails(pricePreview.details);
16
+ this.details = new pricing_preview_details_js_1.PricingPreviewDetails(pricePreview.details);
17
17
  this.availablePaymentMethods = (_f = pricePreview.available_payment_methods) !== null && _f !== void 0 ? _f : [];
18
18
  }
19
19
  }
@@ -14,5 +14,5 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./product-collection"), exports);
18
- __exportStar(require("./product"), exports);
17
+ __exportStar(require("./product-collection.js"), exports);
18
+ __exportStar(require("./product.js"), exports);
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProductCollection = void 0;
4
- const base_1 = require("../../internal/base");
5
- const product_1 = require("./product");
6
- class ProductCollection extends base_1.Collection {
4
+ const index_js_1 = require("../../internal/base/index.js");
5
+ const product_js_1 = require("./product.js");
6
+ class ProductCollection extends index_js_1.Collection {
7
7
  fromJson(data) {
8
- return new product_1.Product(data);
8
+ return new product_js_1.Product(data);
9
9
  }
10
10
  }
11
11
  exports.ProductCollection = ProductCollection;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Product = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../index.js");
5
5
  class Product {
6
6
  constructor(product) {
7
7
  var _a;
@@ -15,8 +15,8 @@ class Product {
15
15
  this.status = product.status;
16
16
  this.createdAt = product.created_at;
17
17
  this.updatedAt = product.updated_at;
18
- this.importMeta = product.import_meta ? new index_1.ImportMeta(product.import_meta) : null;
19
- this.prices = product.prices ? product.prices.map((price) => new index_1.Price(price)) : null;
18
+ this.importMeta = product.import_meta ? new index_js_1.ImportMeta(product.import_meta) : null;
19
+ this.prices = product.prices ? product.prices.map((price) => new index_js_1.Price(price)) : null;
20
20
  }
21
21
  }
22
22
  exports.Product = Product;
@@ -14,7 +14,7 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./report-filters"), exports);
18
- __exportStar(require("./report"), exports);
19
- __exportStar(require("./report-csv"), exports);
20
- __exportStar(require("./report-collection"), exports);
17
+ __exportStar(require("./report-filters.js"), exports);
18
+ __exportStar(require("./report.js"), exports);
19
+ __exportStar(require("./report-csv.js"), exports);
20
+ __exportStar(require("./report-collection.js"), exports);
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReportCollection = void 0;
4
- const entities_1 = require("../../entities");
5
- const base_1 = require("../../internal/base");
6
- class ReportCollection extends base_1.Collection {
4
+ const index_js_1 = require("../../internal/base/index.js");
5
+ const report_js_1 = require("./report.js");
6
+ class ReportCollection extends index_js_1.Collection {
7
7
  fromJson(data) {
8
- return new entities_1.Report(data);
8
+ return new report_js_1.Report(data);
9
9
  }
10
10
  }
11
11
  exports.ReportCollection = ReportCollection;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Report = void 0;
4
- const index_1 = require("../index");
4
+ const report_filters_js_1 = require("./report-filters.js");
5
5
  class Report {
6
6
  constructor(reportResponse) {
7
7
  var _a, _b, _c;
@@ -9,7 +9,7 @@ class Report {
9
9
  this.status = reportResponse.status;
10
10
  this.rows = (_a = reportResponse.rows) !== null && _a !== void 0 ? _a : null;
11
11
  this.type = reportResponse.type;
12
- this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new index_1.ReportFilters(filter));
12
+ this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new report_filters_js_1.ReportFilters(filter));
13
13
  this.expiresAt = (_c = reportResponse.expires_at) !== null && _c !== void 0 ? _c : null;
14
14
  this.createdAt = reportResponse.created_at;
15
15
  }
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillingDetails = void 0;
4
- const index_1 = require("../index");
4
+ const time_period_js_1 = require("./time-period.js");
5
5
  class BillingDetails {
6
6
  constructor(billingDetails) {
7
7
  var _a;
8
8
  this.enableCheckout = (_a = billingDetails.enable_checkout) !== null && _a !== void 0 ? _a : null;
9
9
  this.purchaseOrderNumber = billingDetails.purchase_order_number ? billingDetails.purchase_order_number : null;
10
10
  this.additionalInformation = billingDetails.additional_information ? billingDetails.additional_information : null;
11
- this.paymentTerms = new index_1.TimePeriod(billingDetails.payment_terms);
11
+ this.paymentTerms = new time_period_js_1.TimePeriod(billingDetails.payment_terms);
12
12
  }
13
13
  }
14
14
  exports.BillingDetails = BillingDetails;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChargebackFee = void 0;
4
- const index_1 = require("../index");
4
+ const adjustment_original_amount_js_1 = require("./adjustment-original-amount.js");
5
5
  class ChargebackFee {
6
6
  constructor(chargebackFee) {
7
7
  this.amount = chargebackFee.amount;
8
- this.original = chargebackFee.original ? new index_1.AdjustmentOriginalAmount(chargebackFee.original) : null;
8
+ this.original = chargebackFee.original ? new adjustment_original_amount_js_1.AdjustmentOriginalAmount(chargebackFee.original) : null;
9
9
  }
10
10
  }
11
11
  exports.ChargebackFee = ChargebackFee;
@@ -14,23 +14,23 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./time-period"), exports);
18
- __exportStar(require("./money"), exports);
19
- __exportStar(require("./unit-price-override"), exports);
20
- __exportStar(require("./billing-details"), exports);
21
- __exportStar(require("./totals"), exports);
22
- __exportStar(require("./tax-rates-used"), exports);
23
- __exportStar(require("./transaction-totals"), exports);
24
- __exportStar(require("./transaction-totals-adjusted"), exports);
25
- __exportStar(require("./transaction-payout-totals"), exports);
26
- __exportStar(require("./adjustment-original-amount"), exports);
27
- __exportStar(require("./chargeback-fee"), exports);
28
- __exportStar(require("./transaction-payout-totals-adjusted"), exports);
29
- __exportStar(require("./unit-totals"), exports);
30
- __exportStar(require("./payment-card"), exports);
31
- __exportStar(require("./payment-method-details"), exports);
32
- __exportStar(require("./transaction-payment-attempt"), exports);
33
- __exportStar(require("./transaction-checkout"), exports);
34
- __exportStar(require("./total-adjustments"), exports);
35
- __exportStar(require("./payout-totals-adjustment"), exports);
36
- __exportStar(require("./import-meta"), exports);
17
+ __exportStar(require("./time-period.js"), exports);
18
+ __exportStar(require("./money.js"), exports);
19
+ __exportStar(require("./unit-price-override.js"), exports);
20
+ __exportStar(require("./billing-details.js"), exports);
21
+ __exportStar(require("./totals.js"), exports);
22
+ __exportStar(require("./tax-rates-used.js"), exports);
23
+ __exportStar(require("./transaction-totals.js"), exports);
24
+ __exportStar(require("./transaction-totals-adjusted.js"), exports);
25
+ __exportStar(require("./transaction-payout-totals.js"), exports);
26
+ __exportStar(require("./adjustment-original-amount.js"), exports);
27
+ __exportStar(require("./chargeback-fee.js"), exports);
28
+ __exportStar(require("./transaction-payout-totals-adjusted.js"), exports);
29
+ __exportStar(require("./unit-totals.js"), exports);
30
+ __exportStar(require("./payment-card.js"), exports);
31
+ __exportStar(require("./payment-method-details.js"), exports);
32
+ __exportStar(require("./transaction-payment-attempt.js"), exports);
33
+ __exportStar(require("./transaction-checkout.js"), exports);
34
+ __exportStar(require("./total-adjustments.js"), exports);
35
+ __exportStar(require("./payout-totals-adjustment.js"), exports);
36
+ __exportStar(require("./import-meta.js"), exports);
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethodDetails = void 0;
4
- const index_1 = require("../index");
4
+ const payment_card_js_1 = require("./payment-card.js");
5
5
  class PaymentMethodDetails {
6
6
  constructor(paymentMethodDetails) {
7
7
  this.type = paymentMethodDetails.type;
8
- this.card = paymentMethodDetails.card ? new index_1.PaymentCard(paymentMethodDetails.card) : null;
8
+ this.card = paymentMethodDetails.card ? new payment_card_js_1.PaymentCard(paymentMethodDetails.card) : null;
9
9
  }
10
10
  }
11
11
  exports.PaymentMethodDetails = PaymentMethodDetails;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayoutTotalsAdjustment = void 0;
4
- const index_1 = require("../index");
4
+ const chargeback_fee_js_1 = require("./chargeback-fee.js");
5
5
  class PayoutTotalsAdjustment {
6
6
  constructor(payoutTotalsAdjustment) {
7
7
  this.subtotal = payoutTotalsAdjustment.subtotal;
@@ -9,7 +9,7 @@ class PayoutTotalsAdjustment {
9
9
  this.total = payoutTotalsAdjustment.total;
10
10
  this.fee = payoutTotalsAdjustment.fee;
11
11
  this.chargebackFee = payoutTotalsAdjustment.chargeback_fee
12
- ? new index_1.ChargebackFee(payoutTotalsAdjustment.chargeback_fee)
12
+ ? new chargeback_fee_js_1.ChargebackFee(payoutTotalsAdjustment.chargeback_fee)
13
13
  : null;
14
14
  this.earnings = payoutTotalsAdjustment.earnings;
15
15
  this.currencyCode = payoutTotalsAdjustment.currency_code;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TaxRatesUsed = void 0;
4
- const index_1 = require("../index");
4
+ const totals_js_1 = require("./totals.js");
5
5
  class TaxRatesUsed {
6
6
  constructor(taxRatesUsed) {
7
7
  this.taxRate = taxRatesUsed.tax_rate;
8
- this.totals = taxRatesUsed.totals ? new index_1.Totals(taxRatesUsed.totals) : null;
8
+ this.totals = taxRatesUsed.totals ? new totals_js_1.Totals(taxRatesUsed.totals) : null;
9
9
  }
10
10
  }
11
11
  exports.TaxRatesUsed = TaxRatesUsed;
@@ -1,17 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionPaymentAttempt = void 0;
4
- const index_1 = require("../index");
4
+ const payment_method_details_js_1 = require("./payment-method-details.js");
5
5
  class TransactionPaymentAttempt {
6
6
  constructor(transactionPaymentAttempt) {
7
+ var _a;
7
8
  this.paymentAttemptId = transactionPaymentAttempt.payment_attempt_id;
8
- this.paymentMethodId = transactionPaymentAttempt.payment_method_id;
9
+ this.paymentMethodId = (_a = transactionPaymentAttempt.payment_method_id) !== null && _a !== void 0 ? _a : null;
9
10
  this.storedPaymentMethodId = transactionPaymentAttempt.stored_payment_method_id;
10
11
  this.amount = transactionPaymentAttempt.amount;
11
12
  this.status = transactionPaymentAttempt.status;
12
13
  this.errorCode = transactionPaymentAttempt.error_code ? transactionPaymentAttempt.error_code : null;
13
14
  this.methodDetails = transactionPaymentAttempt.method_details
14
- ? new index_1.PaymentMethodDetails(transactionPaymentAttempt.method_details)
15
+ ? new payment_method_details_js_1.PaymentMethodDetails(transactionPaymentAttempt.method_details)
15
16
  : null;
16
17
  this.createdAt = transactionPaymentAttempt.created_at;
17
18
  this.capturedAt = transactionPaymentAttempt.captured_at ? transactionPaymentAttempt.captured_at : null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionPayoutTotalsAdjusted = void 0;
4
- const index_1 = require("../index");
4
+ const chargeback_fee_js_1 = require("./chargeback-fee.js");
5
5
  class TransactionPayoutTotalsAdjusted {
6
6
  constructor(transactionPayoutTotalsAdjusted) {
7
7
  this.subtotal = transactionPayoutTotalsAdjusted.subtotal;
@@ -9,7 +9,7 @@ class TransactionPayoutTotalsAdjusted {
9
9
  this.total = transactionPayoutTotalsAdjusted.total;
10
10
  this.fee = transactionPayoutTotalsAdjusted.fee;
11
11
  this.chargebackFee = transactionPayoutTotalsAdjusted.chargeback_fee
12
- ? new index_1.ChargebackFee(transactionPayoutTotalsAdjusted.chargeback_fee)
12
+ ? new chargeback_fee_js_1.ChargebackFee(transactionPayoutTotalsAdjusted.chargeback_fee)
13
13
  : null;
14
14
  this.earnings = transactionPayoutTotalsAdjusted.earnings;
15
15
  this.currencyCode = transactionPayoutTotalsAdjusted.currency_code;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnitPriceOverride = void 0;
4
- const index_1 = require("../index");
4
+ const money_js_1 = require("./money.js");
5
5
  class UnitPriceOverride {
6
6
  constructor(unitPriceOverride) {
7
7
  this.countryCodes = unitPriceOverride.country_codes;
8
- this.unitPrice = new index_1.Money(unitPriceOverride.unit_price);
8
+ this.unitPrice = new money_js_1.Money(unitPriceOverride.unit_price);
9
9
  }
10
10
  }
11
11
  exports.UnitPriceOverride = UnitPriceOverride;
@@ -14,18 +14,18 @@ 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
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-discount"), exports);
18
- __exportStar(require("./subscription-time-period"), exports);
19
- __exportStar(require("./subscription-scheduled-change"), exports);
20
- __exportStar(require("./subscription-management"), exports);
21
- __exportStar(require("./subscription-item"), exports);
22
- __exportStar(require("./subscription"), exports);
23
- __exportStar(require("./subscription-collection"), exports);
24
- __exportStar(require("./next-transaction"), exports);
25
- __exportStar(require("./transaction-details-preview"), exports);
26
- __exportStar(require("./transaction-line-item-preview"), exports);
27
- __exportStar(require("./subscription-preview"), exports);
28
- __exportStar(require("./subscription-preview-update-summary"), exports);
29
- __exportStar(require("./subscription-preview-summary-result"), exports);
30
- __exportStar(require("./next-transaction-adjustment-preview"), exports);
31
- __exportStar(require("./next-transaction-adjustment-item"), exports);
17
+ __exportStar(require("./subscription-discount.js"), exports);
18
+ __exportStar(require("./subscription-time-period.js"), exports);
19
+ __exportStar(require("./subscription-scheduled-change.js"), exports);
20
+ __exportStar(require("./subscription-management.js"), exports);
21
+ __exportStar(require("./subscription-item.js"), exports);
22
+ __exportStar(require("./subscription.js"), exports);
23
+ __exportStar(require("./subscription-collection.js"), exports);
24
+ __exportStar(require("./next-transaction.js"), exports);
25
+ __exportStar(require("./transaction-details-preview.js"), exports);
26
+ __exportStar(require("./transaction-line-item-preview.js"), exports);
27
+ __exportStar(require("./subscription-preview.js"), exports);
28
+ __exportStar(require("./subscription-preview-update-summary.js"), exports);
29
+ __exportStar(require("./subscription-preview-summary-result.js"), exports);
30
+ __exportStar(require("./next-transaction-adjustment-preview.js"), exports);
31
+ __exportStar(require("./next-transaction-adjustment-item.js"), exports);
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NextTransactionAdjustmentItem = void 0;
4
- const adjustment_1 = require("../adjustment");
4
+ const index_js_1 = require("../adjustment/index.js");
5
5
  class NextTransactionAdjustmentItem {
6
6
  constructor(adjustmentItem) {
7
7
  this.itemId = adjustmentItem.item_id;
8
8
  this.type = adjustmentItem.type;
9
9
  this.amount = adjustmentItem.amount ? adjustmentItem.amount : null;
10
- this.proration = adjustmentItem.proration ? new adjustment_1.AdjustmentProration(adjustmentItem.proration) : null;
11
- this.totals = adjustmentItem.totals ? new adjustment_1.AdjustmentItemTotals(adjustmentItem.totals) : null;
10
+ this.proration = adjustmentItem.proration ? new index_js_1.AdjustmentProration(adjustmentItem.proration) : null;
11
+ this.totals = adjustmentItem.totals ? new index_js_1.AdjustmentItemTotals(adjustmentItem.totals) : null;
12
12
  }
13
13
  }
14
14
  exports.NextTransactionAdjustmentItem = NextTransactionAdjustmentItem;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NextTransactionAdjustmentPreview = void 0;
4
- const next_transaction_adjustment_item_1 = require("./next-transaction-adjustment-item");
5
- const shared_1 = require("../shared");
4
+ const next_transaction_adjustment_item_js_1 = require("./next-transaction-adjustment-item.js");
5
+ const index_js_1 = require("../shared/index.js");
6
6
  class NextTransactionAdjustmentPreview {
7
7
  constructor(adjustmentPreview) {
8
8
  this.transactionId = adjustmentPreview.transaction_id;
9
- this.items = adjustmentPreview.items.map((item) => new next_transaction_adjustment_item_1.NextTransactionAdjustmentItem(item));
10
- this.totals = adjustmentPreview.totals ? new shared_1.TotalAdjustments(adjustmentPreview.totals) : null;
9
+ this.items = adjustmentPreview.items.map((item) => new next_transaction_adjustment_item_js_1.NextTransactionAdjustmentItem(item));
10
+ this.totals = adjustmentPreview.totals ? new index_js_1.TotalAdjustments(adjustmentPreview.totals) : null;
11
11
  }
12
12
  }
13
13
  exports.NextTransactionAdjustmentPreview = NextTransactionAdjustmentPreview;
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NextTransaction = void 0;
4
- const index_1 = require("../index");
4
+ const subscription_time_period_js_1 = require("./subscription-time-period.js");
5
+ const transaction_details_preview_js_1 = require("./transaction-details-preview.js");
6
+ const next_transaction_adjustment_preview_js_1 = require("./next-transaction-adjustment-preview.js");
5
7
  class NextTransaction {
6
8
  constructor(nextTransaction) {
7
- this.billingPeriod = new index_1.SubscriptionTimePeriod(nextTransaction.billing_period);
8
- this.details = new index_1.TransactionDetailsPreview(nextTransaction.details);
9
- this.adjustments = nextTransaction.adjustments.map((adjustment) => new index_1.NextTransactionAdjustmentPreview(adjustment));
9
+ this.billingPeriod = new subscription_time_period_js_1.SubscriptionTimePeriod(nextTransaction.billing_period);
10
+ this.details = new transaction_details_preview_js_1.TransactionDetailsPreview(nextTransaction.details);
11
+ this.adjustments = nextTransaction.adjustments.map((adjustment) => new next_transaction_adjustment_preview_js_1.NextTransactionAdjustmentPreview(adjustment));
10
12
  }
11
13
  }
12
14
  exports.NextTransaction = NextTransaction;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionCollection = void 0;
4
- const subscription_1 = require("./subscription");
5
- const base_1 = require("../../internal/base");
6
- class SubscriptionCollection extends base_1.Collection {
4
+ const index_js_1 = require("../../internal/base/index.js");
5
+ const subscription_js_1 = require("./subscription.js");
6
+ class SubscriptionCollection extends index_js_1.Collection {
7
7
  fromJson(data) {
8
- return new subscription_1.Subscription(data);
8
+ return new subscription_js_1.Subscription(data);
9
9
  }
10
10
  }
11
11
  exports.SubscriptionCollection = SubscriptionCollection;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionItem = void 0;
4
- const index_1 = require("../index");
4
+ const subscription_time_period_js_1 = require("./subscription-time-period.js");
5
+ const index_js_1 = require("../price/index.js");
6
+ const index_js_2 = require("../product/index.js");
5
7
  class SubscriptionItem {
6
8
  constructor(subscriptionItem) {
7
9
  this.status = subscriptionItem.status;
@@ -11,9 +13,9 @@ class SubscriptionItem {
11
13
  this.updatedAt = subscriptionItem.updated_at;
12
14
  this.previouslyBilledAt = subscriptionItem.previously_billed_at ? subscriptionItem.previously_billed_at : null;
13
15
  this.nextBilledAt = subscriptionItem.next_billed_at ? subscriptionItem.next_billed_at : null;
14
- this.trialDates = subscriptionItem.trial_dates ? new index_1.SubscriptionTimePeriod(subscriptionItem.trial_dates) : null;
15
- this.price = new index_1.Price(subscriptionItem.price);
16
- this.product = new index_1.Product(subscriptionItem.product);
16
+ this.trialDates = subscriptionItem.trial_dates ? new subscription_time_period_js_1.SubscriptionTimePeriod(subscriptionItem.trial_dates) : null;
17
+ this.price = new index_js_1.Price(subscriptionItem.price);
18
+ this.product = new index_js_2.Product(subscriptionItem.product);
17
19
  }
18
20
  }
19
21
  exports.SubscriptionItem = SubscriptionItem;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionPreviewUpdateSummary = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../shared/index.js");
5
+ const subscription_preview_summary_result_js_1 = require("./subscription-preview-summary-result.js");
5
6
  class SubscriptionPreviewUpdateSummary {
6
7
  constructor(previewUpdateSummary) {
7
- this.credit = new index_1.Money(previewUpdateSummary.credit);
8
- this.charge = new index_1.Money(previewUpdateSummary.charge);
9
- this.result = new index_1.SubscriptionPreviewSummaryResult(previewUpdateSummary.result);
8
+ this.credit = new index_js_1.Money(previewUpdateSummary.credit);
9
+ this.charge = new index_js_1.Money(previewUpdateSummary.charge);
10
+ this.result = new subscription_preview_summary_result_js_1.SubscriptionPreviewSummaryResult(previewUpdateSummary.result);
10
11
  }
11
12
  }
12
13
  exports.SubscriptionPreviewUpdateSummary = SubscriptionPreviewUpdateSummary;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionPreview = void 0;
4
- const index_1 = require("../index");
4
+ const subscription_discount_js_1 = require("./subscription-discount.js");
5
+ const index_js_1 = require("../shared/index.js");
6
+ const subscription_time_period_js_1 = require("./subscription-time-period.js");
7
+ const subscription_scheduled_change_js_1 = require("./subscription-scheduled-change.js");
8
+ const subscription_management_js_1 = require("./subscription-management.js");
9
+ const subscription_item_js_1 = require("./subscription-item.js");
10
+ const index_js_2 = require("../index.js");
5
11
  class SubscriptionPreview {
6
12
  constructor(subscriptionPreview) {
7
13
  this.status = subscriptionPreview.status;
@@ -16,36 +22,36 @@ class SubscriptionPreview {
16
22
  this.nextBilledAt = subscriptionPreview.next_billed_at ? subscriptionPreview.next_billed_at : null;
17
23
  this.pausedAt = subscriptionPreview.paused_at ? subscriptionPreview.paused_at : null;
18
24
  this.canceledAt = subscriptionPreview.canceled_at ? subscriptionPreview.canceled_at : null;
19
- this.discount = subscriptionPreview.discount ? new index_1.SubscriptionDiscount(subscriptionPreview.discount) : null;
25
+ this.discount = subscriptionPreview.discount ? new subscription_discount_js_1.SubscriptionDiscount(subscriptionPreview.discount) : null;
20
26
  this.collectionMode = subscriptionPreview.collection_mode;
21
27
  this.billingDetails = subscriptionPreview.billing_details
22
- ? new index_1.BillingDetails(subscriptionPreview.billing_details)
28
+ ? new index_js_1.BillingDetails(subscriptionPreview.billing_details)
23
29
  : null;
24
30
  this.currentBillingPeriod = subscriptionPreview.current_billing_period
25
- ? new index_1.SubscriptionTimePeriod(subscriptionPreview.current_billing_period)
31
+ ? new subscription_time_period_js_1.SubscriptionTimePeriod(subscriptionPreview.current_billing_period)
26
32
  : null;
27
- this.billingCycle = subscriptionPreview.billing_cycle ? new index_1.TimePeriod(subscriptionPreview.billing_cycle) : null;
33
+ this.billingCycle = subscriptionPreview.billing_cycle ? new index_js_1.TimePeriod(subscriptionPreview.billing_cycle) : null;
28
34
  this.scheduledChange = subscriptionPreview.scheduled_change
29
- ? new index_1.SubscriptionScheduledChange(subscriptionPreview.scheduled_change)
35
+ ? new subscription_scheduled_change_js_1.SubscriptionScheduledChange(subscriptionPreview.scheduled_change)
30
36
  : null;
31
37
  this.managementUrls = subscriptionPreview.management_urls
32
- ? new index_1.SubscriptionManagement(subscriptionPreview.management_urls)
38
+ ? new subscription_management_js_1.SubscriptionManagement(subscriptionPreview.management_urls)
33
39
  : null;
34
- this.items = subscriptionPreview.items.map((item) => new index_1.SubscriptionItem(item));
40
+ this.items = subscriptionPreview.items.map((item) => new subscription_item_js_1.SubscriptionItem(item));
35
41
  this.customData = subscriptionPreview.custom_data ? subscriptionPreview.custom_data : null;
36
42
  this.immediateTransaction = subscriptionPreview.immediate_transaction
37
- ? new index_1.NextTransaction(subscriptionPreview.immediate_transaction)
43
+ ? new index_js_2.NextTransaction(subscriptionPreview.immediate_transaction)
38
44
  : null;
39
45
  this.nextTransaction = subscriptionPreview.next_transaction
40
- ? new index_1.NextTransaction(subscriptionPreview.next_transaction)
46
+ ? new index_js_2.NextTransaction(subscriptionPreview.next_transaction)
41
47
  : null;
42
48
  this.recurringTransactionDetails = subscriptionPreview.recurring_transaction_details
43
- ? new index_1.TransactionDetailsPreview(subscriptionPreview.recurring_transaction_details)
49
+ ? new index_js_2.TransactionDetailsPreview(subscriptionPreview.recurring_transaction_details)
44
50
  : null;
45
51
  this.updateSummary = subscriptionPreview.update_summary
46
- ? new index_1.SubscriptionPreviewUpdateSummary(subscriptionPreview.update_summary)
52
+ ? new index_js_2.SubscriptionPreviewUpdateSummary(subscriptionPreview.update_summary)
47
53
  : null;
48
- this.importMeta = subscriptionPreview.import_meta ? new index_1.ImportMeta(subscriptionPreview.import_meta) : null;
54
+ this.importMeta = subscriptionPreview.import_meta ? new index_js_1.ImportMeta(subscriptionPreview.import_meta) : null;
49
55
  }
50
56
  }
51
57
  exports.SubscriptionPreview = SubscriptionPreview;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Subscription = void 0;
4
- const index_1 = require("../index");
4
+ const subscription_discount_js_1 = require("./subscription-discount.js");
5
+ const index_js_1 = require("../shared/index.js");
6
+ const subscription_time_period_js_1 = require("./subscription-time-period.js");
7
+ const subscription_scheduled_change_js_1 = require("./subscription-scheduled-change.js");
8
+ const subscription_management_js_1 = require("./subscription-management.js");
9
+ const subscription_item_js_1 = require("./subscription-item.js");
10
+ const index_js_2 = require("../index.js");
5
11
  class Subscription {
6
12
  constructor(subscription) {
7
13
  this.id = subscription.id;
@@ -17,25 +23,25 @@ class Subscription {
17
23
  this.nextBilledAt = subscription.next_billed_at ? subscription.next_billed_at : null;
18
24
  this.pausedAt = subscription.paused_at ? subscription.paused_at : null;
19
25
  this.canceledAt = subscription.canceled_at ? subscription.canceled_at : null;
20
- this.discount = subscription.discount ? new index_1.SubscriptionDiscount(subscription.discount) : null;
26
+ this.discount = subscription.discount ? new subscription_discount_js_1.SubscriptionDiscount(subscription.discount) : null;
21
27
  this.collectionMode = subscription.collection_mode;
22
- this.billingDetails = subscription.billing_details ? new index_1.BillingDetails(subscription.billing_details) : null;
28
+ this.billingDetails = subscription.billing_details ? new index_js_1.BillingDetails(subscription.billing_details) : null;
23
29
  this.currentBillingPeriod = subscription.current_billing_period
24
- ? new index_1.SubscriptionTimePeriod(subscription.current_billing_period)
30
+ ? new subscription_time_period_js_1.SubscriptionTimePeriod(subscription.current_billing_period)
25
31
  : null;
26
- this.billingCycle = new index_1.TimePeriod(subscription.billing_cycle);
32
+ this.billingCycle = new index_js_1.TimePeriod(subscription.billing_cycle);
27
33
  this.scheduledChange = subscription.scheduled_change
28
- ? new index_1.SubscriptionScheduledChange(subscription.scheduled_change)
34
+ ? new subscription_scheduled_change_js_1.SubscriptionScheduledChange(subscription.scheduled_change)
29
35
  : null;
30
36
  this.managementUrls = subscription.management_urls
31
- ? new index_1.SubscriptionManagement(subscription.management_urls)
37
+ ? new subscription_management_js_1.SubscriptionManagement(subscription.management_urls)
32
38
  : null;
33
- this.items = subscription.items.map((item) => new index_1.SubscriptionItem(item));
39
+ this.items = subscription.items.map((item) => new subscription_item_js_1.SubscriptionItem(item));
34
40
  this.customData = subscription.custom_data ? subscription.custom_data : null;
35
- this.importMeta = subscription.import_meta ? new index_1.ImportMeta(subscription.import_meta) : null;
36
- this.nextTransaction = subscription.next_transaction ? new index_1.NextTransaction(subscription.next_transaction) : null;
41
+ this.importMeta = subscription.import_meta ? new index_js_1.ImportMeta(subscription.import_meta) : null;
42
+ this.nextTransaction = subscription.next_transaction ? new index_js_2.NextTransaction(subscription.next_transaction) : null;
37
43
  this.recurringTransactionDetails = subscription.recurring_transaction_details
38
- ? new index_1.TransactionDetailsPreview(subscription.recurring_transaction_details)
44
+ ? new index_js_2.TransactionDetailsPreview(subscription.recurring_transaction_details)
39
45
  : null;
40
46
  }
41
47
  }