@paddle/paddle-node-sdk 1.8.0 → 2.0.0-rc.1

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 (1082) hide show
  1. package/CHANGELOG.md +20 -1
  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 +20 -20
  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 +22 -22
  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 +2 -2
  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/simulation/index.js +2 -2
  55. package/dist/cjs/entities/simulation/simulation-collection.js +4 -4
  56. package/dist/cjs/entities/simulation-run/index.js +2 -2
  57. package/dist/cjs/entities/simulation-run/simulation-run-collection.js +4 -4
  58. package/dist/cjs/entities/simulation-run/simulation-run.js +2 -2
  59. package/dist/cjs/entities/simulation-run-event/index.js +2 -2
  60. package/dist/cjs/entities/simulation-run-event/simulation-run-event-collection.js +4 -4
  61. package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +3 -3
  62. package/dist/cjs/entities/simulation-types/index.js +1 -1
  63. package/dist/cjs/entities/subscription/index.js +15 -15
  64. package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +3 -3
  65. package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +4 -4
  66. package/dist/cjs/entities/subscription/next-transaction.js +6 -4
  67. package/dist/cjs/entities/subscription/subscription-collection.js +4 -4
  68. package/dist/cjs/entities/subscription/subscription-item.js +6 -4
  69. package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +5 -4
  70. package/dist/cjs/entities/subscription/subscription-preview.js +19 -13
  71. package/dist/cjs/entities/subscription/subscription.js +17 -11
  72. package/dist/cjs/entities/subscription/transaction-details-preview.js +5 -4
  73. package/dist/cjs/entities/subscription/transaction-line-item-preview.js +5 -4
  74. package/dist/cjs/entities/transaction/adjustment-totals.js +2 -2
  75. package/dist/cjs/entities/transaction/index.js +16 -16
  76. package/dist/cjs/entities/transaction/proration.js +2 -2
  77. package/dist/cjs/entities/transaction/transaction-adjustment-item.js +4 -3
  78. package/dist/cjs/entities/transaction/transaction-adjustment.js +5 -4
  79. package/dist/cjs/entities/transaction/transaction-collection.js +4 -4
  80. package/dist/cjs/entities/transaction/transaction-details.js +8 -7
  81. package/dist/cjs/entities/transaction/transaction-item-preview.js +4 -3
  82. package/dist/cjs/entities/transaction/transaction-item.js +4 -3
  83. package/dist/cjs/entities/transaction/transaction-line-item.js +7 -5
  84. package/dist/cjs/entities/transaction/transaction-preview.js +6 -4
  85. package/dist/cjs/entities/transaction/transaction-proration.js +2 -2
  86. package/dist/cjs/entities/transaction/transaction.js +13 -13
  87. package/dist/cjs/enums/adjustment/index.js +4 -4
  88. package/dist/cjs/enums/discount/index.js +2 -2
  89. package/dist/cjs/enums/index.js +13 -13
  90. package/dist/cjs/enums/notification/index.js +2 -2
  91. package/dist/cjs/enums/notification-settings/index.js +1 -1
  92. package/dist/cjs/enums/payout/index.js +1 -1
  93. package/dist/cjs/enums/report/index.js +4 -4
  94. package/dist/cjs/enums/shared/index.js +16 -16
  95. package/dist/cjs/enums/simulation/index.js +1 -1
  96. package/dist/cjs/enums/simulation-run/index.js +1 -1
  97. package/dist/cjs/enums/simulation-run-event/index.js +1 -1
  98. package/dist/cjs/enums/simulation-type/index.js +1 -1
  99. package/dist/cjs/enums/subscription/index.js +6 -6
  100. package/dist/cjs/enums/transaction/index.js +1 -1
  101. package/dist/cjs/index.cjs.edge.js +38 -0
  102. package/dist/cjs/index.cjs.node.js +38 -0
  103. package/dist/cjs/internal/api/case-helpers.js +32 -5
  104. package/dist/cjs/internal/api/client.js +34 -30
  105. package/dist/cjs/internal/api/constants.js +3 -3
  106. package/dist/cjs/internal/api/index.js +6 -6
  107. package/dist/cjs/internal/base/base-resource.js +2 -2
  108. package/dist/cjs/internal/base/collection.js +2 -2
  109. package/dist/cjs/internal/base/index.js +4 -4
  110. package/dist/cjs/internal/base/logger.js +10 -10
  111. package/dist/cjs/internal/index.js +3 -3
  112. package/dist/cjs/internal/providers/crypto/crypto-provider.js +23 -0
  113. package/dist/cjs/internal/providers/crypto/edge-crypto.js +40 -0
  114. package/dist/cjs/internal/providers/crypto/node-crypto.js +28 -0
  115. package/dist/cjs/internal/providers/runtime/edge-runtime.js +13 -0
  116. package/dist/cjs/internal/providers/runtime/node-runtime.js +13 -0
  117. package/dist/cjs/internal/providers/runtime-provider.js +12 -0
  118. package/dist/cjs/notifications/entities/address/address-notification.js +2 -2
  119. package/dist/cjs/notifications/entities/address/index.js +1 -1
  120. package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +4 -3
  121. package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +5 -4
  122. package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -2
  123. package/dist/cjs/notifications/entities/adjustment/index.js +5 -5
  124. package/dist/cjs/notifications/entities/business/business-notification.js +4 -3
  125. package/dist/cjs/notifications/entities/business/index.js +2 -2
  126. package/dist/cjs/notifications/entities/customer/customer-notification.js +2 -2
  127. package/dist/cjs/notifications/entities/customer/index.js +1 -1
  128. package/dist/cjs/notifications/entities/discount/discount-notification.js +2 -2
  129. package/dist/cjs/notifications/entities/discount/index.js +1 -1
  130. package/dist/cjs/notifications/entities/index.js +12 -12
  131. package/dist/cjs/notifications/entities/payout/index.js +1 -1
  132. package/dist/cjs/notifications/entities/price/index.js +2 -2
  133. package/dist/cjs/notifications/entities/price/price-notification.js +8 -7
  134. package/dist/cjs/notifications/entities/product/index.js +1 -1
  135. package/dist/cjs/notifications/entities/product/product-notification.js +2 -2
  136. package/dist/cjs/notifications/entities/report/index.js +2 -2
  137. package/dist/cjs/notifications/entities/report/report-notification.js +2 -2
  138. package/dist/cjs/notifications/entities/shared/billing-details-notification.js +2 -2
  139. package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -2
  140. package/dist/cjs/notifications/entities/shared/index.js +20 -20
  141. package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +2 -2
  142. package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -2
  143. package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -2
  144. package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +2 -2
  145. package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -2
  146. package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -2
  147. package/dist/cjs/notifications/entities/subscription/index.js +6 -6
  148. package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +6 -4
  149. package/dist/cjs/notifications/entities/subscription/subscription-notification.js +12 -8
  150. package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +8 -8
  151. package/dist/cjs/notifications/entities/transaction/index.js +6 -6
  152. package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +8 -7
  153. package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +4 -3
  154. package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +7 -5
  155. package/dist/cjs/notifications/entities/transaction/transaction-notification.js +10 -7
  156. package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -2
  157. package/dist/cjs/notifications/events/address/address-created-event.js +6 -6
  158. package/dist/cjs/notifications/events/address/address-imported-event.js +6 -6
  159. package/dist/cjs/notifications/events/address/address-updated-event.js +6 -6
  160. package/dist/cjs/notifications/events/address/index.js +3 -3
  161. package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +6 -6
  162. package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +6 -6
  163. package/dist/cjs/notifications/events/adjustment/index.js +2 -2
  164. package/dist/cjs/notifications/events/business/business-created-event.js +6 -6
  165. package/dist/cjs/notifications/events/business/business-imported-event.js +6 -6
  166. package/dist/cjs/notifications/events/business/business-updated-event.js +6 -6
  167. package/dist/cjs/notifications/events/business/index.js +3 -3
  168. package/dist/cjs/notifications/events/customer/customer-created-event.js +6 -6
  169. package/dist/cjs/notifications/events/customer/customer-imported-event.js +6 -6
  170. package/dist/cjs/notifications/events/customer/customer-updated-event.js +6 -6
  171. package/dist/cjs/notifications/events/customer/index.js +3 -3
  172. package/dist/cjs/notifications/events/discount/discount-created-event.js +6 -6
  173. package/dist/cjs/notifications/events/discount/discount-imported-event.js +6 -6
  174. package/dist/cjs/notifications/events/discount/discount-updated-event.js +6 -6
  175. package/dist/cjs/notifications/events/discount/index.js +3 -3
  176. package/dist/cjs/notifications/events/index.js +11 -11
  177. package/dist/cjs/notifications/events/payout/index.js +2 -2
  178. package/dist/cjs/notifications/events/payout/payout-created-event.js +6 -6
  179. package/dist/cjs/notifications/events/payout/payout-paid-event.js +6 -6
  180. package/dist/cjs/notifications/events/price/index.js +3 -3
  181. package/dist/cjs/notifications/events/price/price-created-event.js +6 -6
  182. package/dist/cjs/notifications/events/price/price-imported-event.js +6 -6
  183. package/dist/cjs/notifications/events/price/price-updated-event.js +6 -6
  184. package/dist/cjs/notifications/events/product/index.js +3 -3
  185. package/dist/cjs/notifications/events/product/product-created-event.js +6 -6
  186. package/dist/cjs/notifications/events/product/product-imported-event.js +6 -6
  187. package/dist/cjs/notifications/events/product/product-updated-event.js +6 -6
  188. package/dist/cjs/notifications/events/report/index.js +2 -2
  189. package/dist/cjs/notifications/events/report/report-created-event.js +6 -6
  190. package/dist/cjs/notifications/events/report/report-updated-event.js +6 -6
  191. package/dist/cjs/notifications/events/subscription/index.js +9 -9
  192. package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +6 -6
  193. package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +6 -6
  194. package/dist/cjs/notifications/events/subscription/subscription-created-event.js +6 -6
  195. package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +6 -6
  196. package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +6 -6
  197. package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +6 -6
  198. package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +6 -6
  199. package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +6 -6
  200. package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +6 -6
  201. package/dist/cjs/notifications/events/transaction/index.js +9 -9
  202. package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +6 -6
  203. package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +6 -6
  204. package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +6 -6
  205. package/dist/cjs/notifications/events/transaction/transaction-created-event.js +6 -6
  206. package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +6 -6
  207. package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +6 -6
  208. package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +6 -6
  209. package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +6 -6
  210. package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +6 -6
  211. package/dist/cjs/notifications/helpers/index.js +3 -3
  212. package/dist/cjs/notifications/helpers/webhooks-validator.js +26 -10
  213. package/dist/cjs/notifications/helpers/webhooks.js +111 -98
  214. package/dist/cjs/notifications/index.js +4 -4
  215. package/dist/cjs/notifications/types/address/index.js +1 -1
  216. package/dist/cjs/notifications/types/adjustment/index.js +6 -6
  217. package/dist/cjs/notifications/types/business/index.js +2 -2
  218. package/dist/cjs/notifications/types/customer/index.js +1 -1
  219. package/dist/cjs/notifications/types/discount/index.js +1 -1
  220. package/dist/cjs/notifications/types/index.js +12 -12
  221. package/dist/cjs/notifications/types/payout/index.js +1 -1
  222. package/dist/cjs/notifications/types/price/index.js +2 -2
  223. package/dist/cjs/notifications/types/product/index.js +1 -1
  224. package/dist/cjs/notifications/types/report/index.js +2 -2
  225. package/dist/cjs/notifications/types/shared/index.js +22 -22
  226. package/dist/cjs/notifications/types/subscription/index.js +7 -7
  227. package/dist/cjs/notifications/types/transaction/index.js +6 -6
  228. package/dist/cjs/package.json +1 -0
  229. package/dist/cjs/paddle.js +28 -28
  230. package/dist/cjs/resources/addresses/index.js +13 -13
  231. package/dist/cjs/resources/addresses/operations/index.js +3 -3
  232. package/dist/cjs/resources/adjustments/index.js +10 -10
  233. package/dist/cjs/resources/adjustments/operations/index.js +3 -3
  234. package/dist/cjs/resources/businesses/index.js +13 -13
  235. package/dist/cjs/resources/businesses/operations/index.js +3 -3
  236. package/dist/cjs/resources/customers/index.js +14 -14
  237. package/dist/cjs/resources/customers/operations/index.js +4 -4
  238. package/dist/cjs/resources/discounts/index.js +11 -11
  239. package/dist/cjs/resources/discounts/operations/index.js +3 -3
  240. package/dist/cjs/resources/event-types/index.js +4 -4
  241. package/dist/cjs/resources/events/index.js +6 -6
  242. package/dist/cjs/resources/events/operations/index.js +1 -1
  243. package/dist/cjs/resources/index.js +18 -18
  244. package/dist/cjs/resources/notification-settings/index.js +12 -12
  245. package/dist/cjs/resources/notification-settings/operations/index.js +3 -3
  246. package/dist/cjs/resources/notifications/index.js +13 -13
  247. package/dist/cjs/resources/notifications/operations/index.js +2 -2
  248. package/dist/cjs/resources/prices/index.js +12 -12
  249. package/dist/cjs/resources/prices/operations/index.js +4 -4
  250. package/dist/cjs/resources/pricing-preview/index.js +5 -5
  251. package/dist/cjs/resources/pricing-preview/operations/index.js +1 -1
  252. package/dist/cjs/resources/products/index.js +12 -12
  253. package/dist/cjs/resources/products/operations/index.js +4 -4
  254. package/dist/cjs/resources/reports/index.js +11 -11
  255. package/dist/cjs/resources/reports/operations/index.js +2 -2
  256. package/dist/cjs/resources/simulation-run-events/index.js +11 -11
  257. package/dist/cjs/resources/simulation-run-events/operations/index.js +1 -1
  258. package/dist/cjs/resources/simulation-runs/index.js +12 -12
  259. package/dist/cjs/resources/simulation-runs/operations/index.js +2 -2
  260. package/dist/cjs/resources/simulation-types/index.js +4 -4
  261. package/dist/cjs/resources/simulations/index.js +11 -11
  262. package/dist/cjs/resources/simulations/operations/index.js +3 -3
  263. package/dist/cjs/resources/subscriptions/index.js +27 -27
  264. package/dist/cjs/resources/subscriptions/operations/index.js +7 -7
  265. package/dist/cjs/resources/transactions/index.js +18 -18
  266. package/dist/cjs/resources/transactions/operations/index.js +8 -8
  267. package/dist/cjs/types/address/index.js +1 -1
  268. package/dist/cjs/types/adjustment/index.js +5 -5
  269. package/dist/cjs/types/business/index.js +2 -2
  270. package/dist/cjs/types/customer/index.js +3 -3
  271. package/dist/cjs/types/discount/index.js +1 -1
  272. package/dist/cjs/types/event-types/index.js +1 -1
  273. package/dist/cjs/types/events/index.js +1 -1
  274. package/dist/cjs/types/index.js +21 -21
  275. package/dist/cjs/types/notification-settings/index.js +1 -1
  276. package/dist/cjs/types/notifications/index.js +3 -3
  277. package/dist/cjs/types/payout/index.js +1 -1
  278. package/dist/cjs/types/price/index.js +3 -3
  279. package/dist/cjs/types/pricing-preview/index.js +5 -5
  280. package/dist/cjs/types/product/index.js +1 -1
  281. package/dist/cjs/types/report/index.js +3 -3
  282. package/dist/cjs/types/shared/index.js +32 -32
  283. package/dist/cjs/types/simulation/index.js +1 -1
  284. package/dist/cjs/types/simulation-run/index.js +1 -1
  285. package/dist/cjs/types/simulation-run/simulation-run-event.js +2 -0
  286. package/dist/cjs/types/simulation-run-event/index.js +1 -1
  287. package/dist/cjs/types/simulation-type/index.js +1 -1
  288. package/dist/cjs/types/subscription/index.js +13 -13
  289. package/dist/cjs/types/transaction/index.js +15 -15
  290. package/dist/cjs/version.js +1 -1
  291. package/dist/esm/entities/address/address-collection.js +2 -2
  292. package/dist/esm/entities/address/address.js +1 -1
  293. package/dist/esm/entities/address/index.js +2 -2
  294. package/dist/esm/entities/adjustment/adjustment-collection.js +2 -2
  295. package/dist/esm/entities/adjustment/adjustment-item.js +2 -1
  296. package/dist/esm/entities/adjustment/adjustment-proration.js +1 -1
  297. package/dist/esm/entities/adjustment/adjustment.js +2 -1
  298. package/dist/esm/entities/adjustment/index.js +7 -7
  299. package/dist/esm/entities/business/business-collection.js +2 -2
  300. package/dist/esm/entities/business/business.js +2 -1
  301. package/dist/esm/entities/business/index.js +3 -3
  302. package/dist/esm/entities/customer/credit-balance.js +1 -1
  303. package/dist/esm/entities/customer/customer-collection.js +2 -2
  304. package/dist/esm/entities/customer/customer.js +1 -1
  305. package/dist/esm/entities/customer/index.js +4 -4
  306. package/dist/esm/entities/discount/discount-collection.js +2 -2
  307. package/dist/esm/entities/discount/discount.js +1 -1
  308. package/dist/esm/entities/discount/index.js +2 -2
  309. package/dist/esm/entities/event-types/index.js +1 -1
  310. package/dist/esm/entities/events/event-collection.js +2 -2
  311. package/dist/esm/entities/events/index.js +1 -1
  312. package/dist/esm/entities/index.js +20 -20
  313. package/dist/esm/entities/notification-settings/index.js +1 -1
  314. package/dist/esm/entities/notification-settings/notification-settings.js +1 -1
  315. package/dist/esm/entities/notifications/index.js +5 -5
  316. package/dist/esm/entities/notifications/notification-collection.js +2 -2
  317. package/dist/esm/entities/notifications/notification-log-collection.js +2 -2
  318. package/dist/esm/entities/notifications/notification.js +1 -1
  319. package/dist/esm/entities/payout/index.js +1 -1
  320. package/dist/esm/entities/price/index.js +3 -3
  321. package/dist/esm/entities/price/price-collection.js +2 -2
  322. package/dist/esm/entities/price/price.js +3 -1
  323. package/dist/esm/entities/pricing-preview/index.js +4 -4
  324. package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -1
  325. package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +1 -1
  326. package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +4 -4
  327. package/dist/esm/entities/pricing-preview/pricing-preview.js +2 -2
  328. package/dist/esm/entities/product/index.js +2 -2
  329. package/dist/esm/entities/product/product-collection.js +2 -2
  330. package/dist/esm/entities/product/product.js +1 -1
  331. package/dist/esm/entities/report/index.js +4 -4
  332. package/dist/esm/entities/report/report-collection.js +2 -2
  333. package/dist/esm/entities/report/report.js +1 -1
  334. package/dist/esm/entities/shared/billing-details.js +1 -1
  335. package/dist/esm/entities/shared/chargeback-fee.js +1 -1
  336. package/dist/esm/entities/shared/index.js +22 -22
  337. package/dist/esm/entities/shared/payment-method-details.js +1 -1
  338. package/dist/esm/entities/shared/payout-totals-adjustment.js +1 -1
  339. package/dist/esm/entities/shared/tax-rates-used.js +1 -1
  340. package/dist/esm/entities/shared/transaction-payment-attempt.js +1 -1
  341. package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +1 -1
  342. package/dist/esm/entities/shared/unit-price-override.js +1 -1
  343. package/dist/esm/entities/simulation/index.js +2 -2
  344. package/dist/esm/entities/simulation/simulation-collection.js +2 -2
  345. package/dist/esm/entities/simulation-run/index.js +2 -2
  346. package/dist/esm/entities/simulation-run/simulation-run-collection.js +2 -2
  347. package/dist/esm/entities/simulation-run/simulation-run.js +1 -1
  348. package/dist/esm/entities/simulation-run-event/index.js +2 -2
  349. package/dist/esm/entities/simulation-run-event/simulation-run-event-collection.js +2 -2
  350. package/dist/esm/entities/simulation-run-event/simulation-run-event.js +1 -1
  351. package/dist/esm/entities/simulation-types/index.js +1 -1
  352. package/dist/esm/entities/subscription/index.js +15 -15
  353. package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +1 -1
  354. package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +2 -2
  355. package/dist/esm/entities/subscription/next-transaction.js +3 -1
  356. package/dist/esm/entities/subscription/subscription-collection.js +2 -2
  357. package/dist/esm/entities/subscription/subscription-item.js +3 -1
  358. package/dist/esm/entities/subscription/subscription-preview-update-summary.js +2 -1
  359. package/dist/esm/entities/subscription/subscription-preview.js +7 -1
  360. package/dist/esm/entities/subscription/subscription.js +7 -1
  361. package/dist/esm/entities/subscription/transaction-details-preview.js +2 -1
  362. package/dist/esm/entities/subscription/transaction-line-item-preview.js +2 -1
  363. package/dist/esm/entities/transaction/adjustment-totals.js +1 -1
  364. package/dist/esm/entities/transaction/index.js +16 -16
  365. package/dist/esm/entities/transaction/proration.js +1 -1
  366. package/dist/esm/entities/transaction/transaction-adjustment-item.js +2 -1
  367. package/dist/esm/entities/transaction/transaction-adjustment.js +2 -1
  368. package/dist/esm/entities/transaction/transaction-collection.js +2 -2
  369. package/dist/esm/entities/transaction/transaction-details.js +2 -1
  370. package/dist/esm/entities/transaction/transaction-item-preview.js +2 -1
  371. package/dist/esm/entities/transaction/transaction-item.js +2 -1
  372. package/dist/esm/entities/transaction/transaction-line-item.js +3 -1
  373. package/dist/esm/entities/transaction/transaction-preview.js +3 -1
  374. package/dist/esm/entities/transaction/transaction-proration.js +1 -1
  375. package/dist/esm/entities/transaction/transaction.js +1 -1
  376. package/dist/esm/enums/adjustment/index.js +4 -4
  377. package/dist/esm/enums/discount/index.js +2 -2
  378. package/dist/esm/enums/index.js +13 -13
  379. package/dist/esm/enums/notification/index.js +2 -2
  380. package/dist/esm/enums/notification-settings/index.js +1 -1
  381. package/dist/esm/enums/payout/index.js +1 -1
  382. package/dist/esm/enums/report/index.js +4 -4
  383. package/dist/esm/enums/shared/index.js +16 -16
  384. package/dist/esm/enums/simulation/index.js +1 -1
  385. package/dist/esm/enums/simulation-run/index.js +1 -1
  386. package/dist/esm/enums/simulation-run-event/index.js +1 -1
  387. package/dist/esm/enums/simulation-type/index.js +1 -1
  388. package/dist/esm/enums/subscription/index.js +6 -6
  389. package/dist/esm/enums/transaction/index.js +1 -1
  390. package/dist/esm/index.esm.edge.js +16 -0
  391. package/dist/esm/index.esm.node.js +16 -0
  392. package/dist/esm/internal/api/case-helpers.js +9 -5
  393. package/dist/esm/internal/api/client.js +17 -10
  394. package/dist/esm/internal/api/constants.js +1 -1
  395. package/dist/esm/internal/api/index.js +3 -3
  396. package/dist/esm/internal/base/base-resource.js +1 -1
  397. package/dist/esm/internal/base/collection.js +1 -1
  398. package/dist/esm/internal/base/index.js +4 -4
  399. package/dist/esm/internal/base/logger.js +1 -1
  400. package/dist/esm/internal/index.js +2 -2
  401. package/dist/esm/internal/providers/crypto/crypto-provider.js +19 -0
  402. package/dist/esm/internal/providers/crypto/edge-crypto.js +36 -0
  403. package/dist/esm/internal/providers/crypto/node-crypto.js +24 -0
  404. package/dist/esm/internal/providers/runtime/edge-runtime.js +9 -0
  405. package/dist/esm/internal/providers/runtime/node-runtime.js +9 -0
  406. package/dist/esm/internal/providers/runtime-provider.js +8 -0
  407. package/dist/esm/notifications/entities/address/address-notification.js +1 -1
  408. package/dist/esm/notifications/entities/address/index.js +1 -1
  409. package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +2 -1
  410. package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +2 -1
  411. package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +1 -1
  412. package/dist/esm/notifications/entities/adjustment/index.js +5 -5
  413. package/dist/esm/notifications/entities/business/business-notification.js +2 -1
  414. package/dist/esm/notifications/entities/business/index.js +2 -2
  415. package/dist/esm/notifications/entities/customer/customer-notification.js +1 -1
  416. package/dist/esm/notifications/entities/customer/index.js +1 -1
  417. package/dist/esm/notifications/entities/discount/discount-notification.js +1 -1
  418. package/dist/esm/notifications/entities/discount/index.js +1 -1
  419. package/dist/esm/notifications/entities/index.js +12 -12
  420. package/dist/esm/notifications/entities/payout/index.js +1 -1
  421. package/dist/esm/notifications/entities/price/index.js +2 -2
  422. package/dist/esm/notifications/entities/price/price-notification.js +2 -1
  423. package/dist/esm/notifications/entities/product/index.js +1 -1
  424. package/dist/esm/notifications/entities/product/product-notification.js +1 -1
  425. package/dist/esm/notifications/entities/report/index.js +2 -2
  426. package/dist/esm/notifications/entities/report/report-notification.js +1 -1
  427. package/dist/esm/notifications/entities/shared/billing-details-notification.js +1 -1
  428. package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +1 -1
  429. package/dist/esm/notifications/entities/shared/index.js +20 -20
  430. package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +1 -1
  431. package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +1 -1
  432. package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +1 -1
  433. package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +1 -1
  434. package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +1 -1
  435. package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +1 -1
  436. package/dist/esm/notifications/entities/subscription/index.js +6 -6
  437. package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +3 -1
  438. package/dist/esm/notifications/entities/subscription/subscription-notification.js +5 -1
  439. package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +3 -3
  440. package/dist/esm/notifications/entities/transaction/index.js +6 -6
  441. package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +2 -1
  442. package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +2 -1
  443. package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +3 -1
  444. package/dist/esm/notifications/entities/transaction/transaction-notification.js +4 -1
  445. package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +1 -1
  446. package/dist/esm/notifications/events/address/address-created-event.js +3 -3
  447. package/dist/esm/notifications/events/address/address-imported-event.js +3 -3
  448. package/dist/esm/notifications/events/address/address-updated-event.js +3 -3
  449. package/dist/esm/notifications/events/address/index.js +3 -3
  450. package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +3 -3
  451. package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +3 -3
  452. package/dist/esm/notifications/events/adjustment/index.js +2 -2
  453. package/dist/esm/notifications/events/business/business-created-event.js +3 -3
  454. package/dist/esm/notifications/events/business/business-imported-event.js +3 -3
  455. package/dist/esm/notifications/events/business/business-updated-event.js +3 -3
  456. package/dist/esm/notifications/events/business/index.js +3 -3
  457. package/dist/esm/notifications/events/customer/customer-created-event.js +3 -3
  458. package/dist/esm/notifications/events/customer/customer-imported-event.js +3 -3
  459. package/dist/esm/notifications/events/customer/customer-updated-event.js +3 -3
  460. package/dist/esm/notifications/events/customer/index.js +3 -3
  461. package/dist/esm/notifications/events/discount/discount-created-event.js +3 -3
  462. package/dist/esm/notifications/events/discount/discount-imported-event.js +3 -3
  463. package/dist/esm/notifications/events/discount/discount-updated-event.js +3 -3
  464. package/dist/esm/notifications/events/discount/index.js +3 -3
  465. package/dist/esm/notifications/events/index.js +11 -11
  466. package/dist/esm/notifications/events/payout/index.js +2 -2
  467. package/dist/esm/notifications/events/payout/payout-created-event.js +3 -3
  468. package/dist/esm/notifications/events/payout/payout-paid-event.js +3 -3
  469. package/dist/esm/notifications/events/price/index.js +3 -3
  470. package/dist/esm/notifications/events/price/price-created-event.js +3 -3
  471. package/dist/esm/notifications/events/price/price-imported-event.js +3 -3
  472. package/dist/esm/notifications/events/price/price-updated-event.js +3 -3
  473. package/dist/esm/notifications/events/product/index.js +3 -3
  474. package/dist/esm/notifications/events/product/product-created-event.js +3 -3
  475. package/dist/esm/notifications/events/product/product-imported-event.js +3 -3
  476. package/dist/esm/notifications/events/product/product-updated-event.js +3 -3
  477. package/dist/esm/notifications/events/report/index.js +2 -2
  478. package/dist/esm/notifications/events/report/report-created-event.js +3 -3
  479. package/dist/esm/notifications/events/report/report-updated-event.js +3 -3
  480. package/dist/esm/notifications/events/subscription/index.js +9 -9
  481. package/dist/esm/notifications/events/subscription/subscription-activated-event.js +3 -3
  482. package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +3 -3
  483. package/dist/esm/notifications/events/subscription/subscription-created-event.js +3 -3
  484. package/dist/esm/notifications/events/subscription/subscription-imported-event.js +3 -3
  485. package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +3 -3
  486. package/dist/esm/notifications/events/subscription/subscription-paused-event.js +3 -3
  487. package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +3 -3
  488. package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +3 -3
  489. package/dist/esm/notifications/events/subscription/subscription-updated-event.js +3 -3
  490. package/dist/esm/notifications/events/transaction/index.js +9 -9
  491. package/dist/esm/notifications/events/transaction/transaction-billed-event.js +3 -3
  492. package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +3 -3
  493. package/dist/esm/notifications/events/transaction/transaction-completed-event.js +3 -3
  494. package/dist/esm/notifications/events/transaction/transaction-created-event.js +3 -3
  495. package/dist/esm/notifications/events/transaction/transaction-paid-event.js +3 -3
  496. package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +3 -3
  497. package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +3 -3
  498. package/dist/esm/notifications/events/transaction/transaction-ready-event.js +3 -3
  499. package/dist/esm/notifications/events/transaction/transaction-updated-event.js +3 -3
  500. package/dist/esm/notifications/helpers/index.js +3 -3
  501. package/dist/esm/notifications/helpers/webhooks-validator.js +26 -10
  502. package/dist/esm/notifications/helpers/webhooks.js +26 -13
  503. package/dist/esm/notifications/index.js +4 -4
  504. package/dist/esm/notifications/types/address/index.js +1 -1
  505. package/dist/esm/notifications/types/adjustment/index.js +6 -6
  506. package/dist/esm/notifications/types/business/index.js +2 -2
  507. package/dist/esm/notifications/types/customer/index.js +1 -1
  508. package/dist/esm/notifications/types/discount/index.js +1 -1
  509. package/dist/esm/notifications/types/index.js +12 -12
  510. package/dist/esm/notifications/types/payout/index.js +1 -1
  511. package/dist/esm/notifications/types/price/index.js +2 -2
  512. package/dist/esm/notifications/types/product/index.js +1 -1
  513. package/dist/esm/notifications/types/report/index.js +2 -2
  514. package/dist/esm/notifications/types/shared/index.js +22 -22
  515. package/dist/esm/notifications/types/subscription/index.js +7 -7
  516. package/dist/esm/notifications/types/transaction/index.js +6 -6
  517. package/dist/esm/package.json +1 -0
  518. package/dist/esm/paddle.js +5 -5
  519. package/dist/esm/resources/addresses/index.js +3 -3
  520. package/dist/esm/resources/addresses/operations/index.js +3 -3
  521. package/dist/esm/resources/adjustments/index.js +3 -3
  522. package/dist/esm/resources/adjustments/operations/index.js +3 -3
  523. package/dist/esm/resources/businesses/index.js +3 -3
  524. package/dist/esm/resources/businesses/operations/index.js +3 -3
  525. package/dist/esm/resources/customers/index.js +3 -3
  526. package/dist/esm/resources/customers/operations/index.js +4 -4
  527. package/dist/esm/resources/discounts/index.js +3 -3
  528. package/dist/esm/resources/discounts/operations/index.js +3 -3
  529. package/dist/esm/resources/event-types/index.js +2 -2
  530. package/dist/esm/resources/events/index.js +3 -3
  531. package/dist/esm/resources/events/operations/index.js +1 -1
  532. package/dist/esm/resources/index.js +18 -18
  533. package/dist/esm/resources/notification-settings/index.js +3 -3
  534. package/dist/esm/resources/notification-settings/operations/index.js +3 -3
  535. package/dist/esm/resources/notifications/index.js +3 -3
  536. package/dist/esm/resources/notifications/operations/index.js +2 -2
  537. package/dist/esm/resources/prices/index.js +3 -3
  538. package/dist/esm/resources/prices/operations/index.js +4 -4
  539. package/dist/esm/resources/pricing-preview/index.js +3 -3
  540. package/dist/esm/resources/pricing-preview/operations/index.js +1 -1
  541. package/dist/esm/resources/products/index.js +3 -3
  542. package/dist/esm/resources/products/operations/index.js +4 -4
  543. package/dist/esm/resources/reports/index.js +3 -3
  544. package/dist/esm/resources/reports/operations/index.js +2 -2
  545. package/dist/esm/resources/simulation-run-events/index.js +3 -3
  546. package/dist/esm/resources/simulation-run-events/operations/index.js +1 -1
  547. package/dist/esm/resources/simulation-runs/index.js +3 -3
  548. package/dist/esm/resources/simulation-runs/operations/index.js +2 -2
  549. package/dist/esm/resources/simulation-types/index.js +2 -2
  550. package/dist/esm/resources/simulations/index.js +3 -3
  551. package/dist/esm/resources/simulations/operations/index.js +3 -3
  552. package/dist/esm/resources/subscriptions/index.js +3 -3
  553. package/dist/esm/resources/subscriptions/operations/index.js +7 -7
  554. package/dist/esm/resources/transactions/index.js +3 -3
  555. package/dist/esm/resources/transactions/operations/index.js +8 -8
  556. package/dist/esm/types/address/index.js +1 -1
  557. package/dist/esm/types/adjustment/index.js +5 -5
  558. package/dist/esm/types/business/index.js +2 -2
  559. package/dist/esm/types/customer/index.js +3 -3
  560. package/dist/esm/types/discount/index.js +1 -1
  561. package/dist/esm/types/event-types/index.js +1 -1
  562. package/dist/esm/types/events/index.js +1 -1
  563. package/dist/esm/types/index.js +21 -21
  564. package/dist/esm/types/notification-settings/index.js +1 -1
  565. package/dist/esm/types/notifications/index.js +3 -3
  566. package/dist/esm/types/payout/index.js +1 -1
  567. package/dist/esm/types/price/index.js +3 -3
  568. package/dist/esm/types/pricing-preview/index.js +5 -5
  569. package/dist/esm/types/product/index.js +1 -1
  570. package/dist/esm/types/report/index.js +3 -3
  571. package/dist/esm/types/shared/index.js +32 -32
  572. package/dist/esm/types/simulation/index.js +1 -1
  573. package/dist/esm/types/simulation-run/index.js +1 -1
  574. package/dist/esm/types/simulation-run/simulation-run-event.js +1 -0
  575. package/dist/esm/types/simulation-run-event/index.js +1 -1
  576. package/dist/esm/types/simulation-type/index.js +1 -1
  577. package/dist/esm/types/subscription/index.js +13 -13
  578. package/dist/esm/types/transaction/index.js +15 -15
  579. package/dist/esm/version.js +1 -1
  580. package/dist/types/entities/address/address-collection.d.ts +3 -3
  581. package/dist/types/entities/address/address.d.ts +3 -3
  582. package/dist/types/entities/address/index.d.ts +2 -2
  583. package/dist/types/entities/adjustment/adjustment-collection.d.ts +3 -3
  584. package/dist/types/entities/adjustment/adjustment-credit-note-pdf.d.ts +1 -1
  585. package/dist/types/entities/adjustment/adjustment-item-totals.d.ts +1 -1
  586. package/dist/types/entities/adjustment/adjustment-item.d.ts +4 -3
  587. package/dist/types/entities/adjustment/adjustment-proration.d.ts +2 -2
  588. package/dist/types/entities/adjustment/adjustment-time-period.d.ts +1 -1
  589. package/dist/types/entities/adjustment/adjustment.d.ts +4 -3
  590. package/dist/types/entities/adjustment/index.d.ts +7 -7
  591. package/dist/types/entities/business/business-collection.d.ts +3 -3
  592. package/dist/types/entities/business/business.d.ts +4 -3
  593. package/dist/types/entities/business/contacts.d.ts +1 -1
  594. package/dist/types/entities/business/index.d.ts +3 -3
  595. package/dist/types/entities/customer/credit-balance.d.ts +3 -3
  596. package/dist/types/entities/customer/customer-balance.d.ts +1 -1
  597. package/dist/types/entities/customer/customer-collection.d.ts +3 -3
  598. package/dist/types/entities/customer/customer.d.ts +3 -3
  599. package/dist/types/entities/customer/index.d.ts +4 -4
  600. package/dist/types/entities/discount/discount-collection.d.ts +3 -3
  601. package/dist/types/entities/discount/discount.d.ts +3 -3
  602. package/dist/types/entities/discount/index.d.ts +2 -2
  603. package/dist/types/entities/event-types/event-type.d.ts +2 -2
  604. package/dist/types/entities/event-types/index.d.ts +1 -1
  605. package/dist/types/entities/events/event-collection.d.ts +3 -3
  606. package/dist/types/entities/events/event.d.ts +1 -1
  607. package/dist/types/entities/events/index.d.ts +1 -1
  608. package/dist/types/entities/index.d.ts +20 -20
  609. package/dist/types/entities/notification-settings/index.d.ts +1 -1
  610. package/dist/types/entities/notification-settings/notification-settings.d.ts +3 -3
  611. package/dist/types/entities/notifications/index.d.ts +5 -5
  612. package/dist/types/entities/notifications/notification-collection.d.ts +3 -3
  613. package/dist/types/entities/notifications/notification-log-collection.d.ts +3 -3
  614. package/dist/types/entities/notifications/notification.d.ts +3 -3
  615. package/dist/types/entities/notifications/replay-notification.d.ts +1 -1
  616. package/dist/types/entities/payout/index.d.ts +1 -1
  617. package/dist/types/entities/payout/payout.d.ts +2 -2
  618. package/dist/types/entities/price/index.d.ts +3 -3
  619. package/dist/types/entities/price/price-collection.d.ts +3 -3
  620. package/dist/types/entities/price/price-quantity.d.ts +1 -1
  621. package/dist/types/entities/price/price.d.ts +5 -3
  622. package/dist/types/entities/pricing-preview/index.d.ts +4 -4
  623. package/dist/types/entities/pricing-preview/pricing-preview-details.d.ts +2 -2
  624. package/dist/types/entities/pricing-preview/pricing-preview-discounts.d.ts +2 -2
  625. package/dist/types/entities/pricing-preview/pricing-preview-line-item.d.ts +5 -5
  626. package/dist/types/entities/pricing-preview/pricing-preview.d.ts +4 -4
  627. package/dist/types/entities/product/index.d.ts +2 -2
  628. package/dist/types/entities/product/product-collection.d.ts +3 -3
  629. package/dist/types/entities/product/product.d.ts +3 -3
  630. package/dist/types/entities/report/index.d.ts +4 -4
  631. package/dist/types/entities/report/report-collection.d.ts +3 -3
  632. package/dist/types/entities/report/report-csv.d.ts +1 -1
  633. package/dist/types/entities/report/report-filters.d.ts +2 -2
  634. package/dist/types/entities/report/report.d.ts +3 -3
  635. package/dist/types/entities/shared/adjustment-original-amount.d.ts +2 -2
  636. package/dist/types/entities/shared/billing-details.d.ts +2 -2
  637. package/dist/types/entities/shared/chargeback-fee.d.ts +2 -2
  638. package/dist/types/entities/shared/import-meta.d.ts +1 -1
  639. package/dist/types/entities/shared/index.d.ts +22 -22
  640. package/dist/types/entities/shared/money.d.ts +2 -2
  641. package/dist/types/entities/shared/payment-card.d.ts +2 -2
  642. package/dist/types/entities/shared/payment-method-details.d.ts +3 -3
  643. package/dist/types/entities/shared/payout-totals-adjustment.d.ts +3 -3
  644. package/dist/types/entities/shared/simulation-event-request.d.ts +1 -1
  645. package/dist/types/entities/shared/simulation-event-response.d.ts +1 -1
  646. package/dist/types/entities/shared/tax-rates-used.d.ts +2 -2
  647. package/dist/types/entities/shared/time-period.d.ts +2 -2
  648. package/dist/types/entities/shared/total-adjustments.d.ts +2 -2
  649. package/dist/types/entities/shared/totals.d.ts +1 -1
  650. package/dist/types/entities/shared/transaction-checkout.d.ts +1 -1
  651. package/dist/types/entities/shared/transaction-payment-attempt.d.ts +3 -3
  652. package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +3 -3
  653. package/dist/types/entities/shared/transaction-payout-totals.d.ts +2 -2
  654. package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +2 -2
  655. package/dist/types/entities/shared/transaction-totals.d.ts +2 -2
  656. package/dist/types/entities/shared/unit-price-override.d.ts +3 -3
  657. package/dist/types/entities/shared/unit-totals.d.ts +1 -1
  658. package/dist/types/entities/simulation/index.d.ts +2 -2
  659. package/dist/types/entities/simulation/simulation-collection.d.ts +3 -3
  660. package/dist/types/entities/simulation/simulation.d.ts +3 -3
  661. package/dist/types/entities/simulation-run/index.d.ts +2 -2
  662. package/dist/types/entities/simulation-run/simulation-run-collection.d.ts +3 -3
  663. package/dist/types/entities/simulation-run/simulation-run.d.ts +4 -4
  664. package/dist/types/entities/simulation-run-event/index.d.ts +2 -2
  665. package/dist/types/entities/simulation-run-event/simulation-run-event-collection.d.ts +3 -3
  666. package/dist/types/entities/simulation-run-event/simulation-run-event.d.ts +4 -4
  667. package/dist/types/entities/simulation-types/index.d.ts +1 -1
  668. package/dist/types/entities/simulation-types/simulation-type.d.ts +3 -3
  669. package/dist/types/entities/subscription/index.d.ts +15 -15
  670. package/dist/types/entities/subscription/next-transaction-adjustment-item.d.ts +3 -3
  671. package/dist/types/entities/subscription/next-transaction-adjustment-preview.d.ts +3 -3
  672. package/dist/types/entities/subscription/next-transaction.d.ts +4 -2
  673. package/dist/types/entities/subscription/subscription-collection.d.ts +3 -3
  674. package/dist/types/entities/subscription/subscription-discount.d.ts +1 -1
  675. package/dist/types/entities/subscription/subscription-item.d.ts +5 -3
  676. package/dist/types/entities/subscription/subscription-management.d.ts +1 -1
  677. package/dist/types/entities/subscription/subscription-preview-summary-result.d.ts +2 -2
  678. package/dist/types/entities/subscription/subscription-preview-update-summary.d.ts +3 -2
  679. package/dist/types/entities/subscription/subscription-preview.d.ts +9 -3
  680. package/dist/types/entities/subscription/subscription-scheduled-change.d.ts +2 -2
  681. package/dist/types/entities/subscription/subscription-time-period.d.ts +1 -1
  682. package/dist/types/entities/subscription/subscription.d.ts +9 -3
  683. package/dist/types/entities/subscription/transaction-details-preview.d.ts +3 -2
  684. package/dist/types/entities/subscription/transaction-line-item-preview.d.ts +3 -2
  685. package/dist/types/entities/transaction/address-preview.d.ts +2 -2
  686. package/dist/types/entities/transaction/adjustment-totals-breakdown.d.ts +1 -1
  687. package/dist/types/entities/transaction/adjustment-totals.d.ts +3 -3
  688. package/dist/types/entities/transaction/index.d.ts +16 -16
  689. package/dist/types/entities/transaction/proration.d.ts +2 -2
  690. package/dist/types/entities/transaction/transaction-adjustment-item.d.ts +4 -3
  691. package/dist/types/entities/transaction/transaction-adjustment.d.ts +4 -3
  692. package/dist/types/entities/transaction/transaction-collection.d.ts +3 -3
  693. package/dist/types/entities/transaction/transaction-details.d.ts +3 -2
  694. package/dist/types/entities/transaction/transaction-invoice-pdf.d.ts +1 -1
  695. package/dist/types/entities/transaction/transaction-item-preview.d.ts +3 -2
  696. package/dist/types/entities/transaction/transaction-item.d.ts +3 -2
  697. package/dist/types/entities/transaction/transaction-line-item.d.ts +4 -2
  698. package/dist/types/entities/transaction/transaction-preview.d.ts +5 -3
  699. package/dist/types/entities/transaction/transaction-proration.d.ts +2 -2
  700. package/dist/types/entities/transaction/transaction.d.ts +3 -3
  701. package/dist/types/entities/transaction/transactions-time-period.d.ts +1 -1
  702. package/dist/types/enums/adjustment/index.d.ts +4 -4
  703. package/dist/types/enums/discount/index.d.ts +2 -2
  704. package/dist/types/enums/index.d.ts +13 -13
  705. package/dist/types/enums/notification/index.d.ts +2 -2
  706. package/dist/types/enums/notification-settings/index.d.ts +1 -1
  707. package/dist/types/enums/payout/index.d.ts +1 -1
  708. package/dist/types/enums/report/index.d.ts +4 -4
  709. package/dist/types/enums/shared/index.d.ts +16 -16
  710. package/dist/types/enums/simulation/index.d.ts +1 -1
  711. package/dist/types/enums/simulation-run/index.d.ts +1 -1
  712. package/dist/types/enums/simulation-run-event/index.d.ts +1 -1
  713. package/dist/types/enums/simulation-type/index.d.ts +1 -1
  714. package/dist/types/enums/subscription/index.d.ts +6 -6
  715. package/dist/types/enums/transaction/index.d.ts +1 -1
  716. package/dist/types/index.cjs.node.d.ts +14 -0
  717. package/dist/types/internal/api/client.d.ts +3 -3
  718. package/dist/types/internal/api/constants.d.ts +1 -1
  719. package/dist/types/internal/api/index.d.ts +3 -3
  720. package/dist/types/internal/base/base-resource.d.ts +2 -2
  721. package/dist/types/internal/base/collection.d.ts +2 -2
  722. package/dist/types/internal/base/index.d.ts +4 -4
  723. package/dist/types/internal/base/logger.d.ts +1 -2
  724. package/dist/types/internal/errors/generic.d.ts +1 -1
  725. package/dist/types/internal/index.d.ts +4 -4
  726. package/dist/types/internal/providers/crypto/crypto-provider.d.ts +4 -0
  727. package/dist/types/internal/providers/crypto/edge-crypto.d.ts +5 -0
  728. package/dist/types/internal/providers/crypto/node-crypto.d.ts +5 -0
  729. package/dist/types/internal/providers/runtime/edge-runtime.d.ts +3 -0
  730. package/dist/types/internal/providers/runtime/node-runtime.d.ts +3 -0
  731. package/dist/types/internal/providers/runtime-provider.d.ts +9 -0
  732. package/dist/types/internal/types/config.d.ts +1 -1
  733. package/dist/types/notifications/entities/address/address-notification.d.ts +3 -3
  734. package/dist/types/notifications/entities/address/index.d.ts +1 -1
  735. package/dist/types/notifications/entities/adjustment/adjustment-item-notification.d.ts +4 -3
  736. package/dist/types/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +1 -1
  737. package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +4 -3
  738. package/dist/types/notifications/entities/adjustment/adjustment-proration-notification.d.ts +2 -2
  739. package/dist/types/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +1 -1
  740. package/dist/types/notifications/entities/adjustment/index.d.ts +5 -5
  741. package/dist/types/notifications/entities/business/business-notification.d.ts +5 -4
  742. package/dist/types/notifications/entities/business/contacts-notification.d.ts +1 -1
  743. package/dist/types/notifications/entities/business/index.d.ts +2 -2
  744. package/dist/types/notifications/entities/customer/customer-notification.d.ts +4 -4
  745. package/dist/types/notifications/entities/customer/index.d.ts +1 -1
  746. package/dist/types/notifications/entities/discount/discount-notification.d.ts +4 -4
  747. package/dist/types/notifications/entities/discount/index.d.ts +1 -1
  748. package/dist/types/notifications/entities/index.d.ts +12 -12
  749. package/dist/types/notifications/entities/payout/index.d.ts +1 -1
  750. package/dist/types/notifications/entities/payout/payout-notification.d.ts +2 -2
  751. package/dist/types/notifications/entities/price/index.d.ts +2 -2
  752. package/dist/types/notifications/entities/price/price-notification.d.ts +5 -4
  753. package/dist/types/notifications/entities/price/price-quantity-notification.d.ts +1 -1
  754. package/dist/types/notifications/entities/product/index.d.ts +1 -1
  755. package/dist/types/notifications/entities/product/product-notification.d.ts +4 -4
  756. package/dist/types/notifications/entities/report/index.d.ts +2 -2
  757. package/dist/types/notifications/entities/report/report-filters-notification.d.ts +2 -2
  758. package/dist/types/notifications/entities/report/report-notification.d.ts +3 -3
  759. package/dist/types/notifications/entities/shared/adjustment-original-amount-notification.d.ts +2 -2
  760. package/dist/types/notifications/entities/shared/billing-details-notification.d.ts +2 -2
  761. package/dist/types/notifications/entities/shared/chargeback-fee-notification.d.ts +2 -2
  762. package/dist/types/notifications/entities/shared/import-meta-notification.d.ts +1 -1
  763. package/dist/types/notifications/entities/shared/index.d.ts +20 -20
  764. package/dist/types/notifications/entities/shared/money-notification.d.ts +2 -2
  765. package/dist/types/notifications/entities/shared/payment-card-notification.d.ts +2 -2
  766. package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +3 -3
  767. package/dist/types/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +3 -3
  768. package/dist/types/notifications/entities/shared/tax-rates-used-notification.d.ts +2 -2
  769. package/dist/types/notifications/entities/shared/time-period-notification.d.ts +2 -2
  770. package/dist/types/notifications/entities/shared/total-adjustments-notification.d.ts +2 -2
  771. package/dist/types/notifications/entities/shared/totals-notification.d.ts +1 -1
  772. package/dist/types/notifications/entities/shared/transaction-checkout-notification.d.ts +1 -1
  773. package/dist/types/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +3 -3
  774. package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +3 -3
  775. package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +2 -2
  776. package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +2 -2
  777. package/dist/types/notifications/entities/shared/transaction-totals-notification.d.ts +2 -2
  778. package/dist/types/notifications/entities/shared/unit-price-override-notification.d.ts +3 -3
  779. package/dist/types/notifications/entities/shared/unit-totals-notification.d.ts +1 -1
  780. package/dist/types/notifications/entities/subscription/index.d.ts +6 -6
  781. package/dist/types/notifications/entities/subscription/subscription-discount-notification.d.ts +1 -1
  782. package/dist/types/notifications/entities/subscription/subscription-item-notification.d.ts +5 -3
  783. package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +8 -4
  784. package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +5 -4
  785. package/dist/types/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +2 -2
  786. package/dist/types/notifications/entities/subscription/subscription-time-period-notification.d.ts +1 -1
  787. package/dist/types/notifications/entities/transaction/index.d.ts +6 -6
  788. package/dist/types/notifications/entities/transaction/transaction-details-notification.d.ts +3 -2
  789. package/dist/types/notifications/entities/transaction/transaction-item-notification.d.ts +3 -2
  790. package/dist/types/notifications/entities/transaction/transaction-line-item-notification.d.ts +4 -2
  791. package/dist/types/notifications/entities/transaction/transaction-notification.d.ts +7 -4
  792. package/dist/types/notifications/entities/transaction/transaction-proration-notification.d.ts +2 -2
  793. package/dist/types/notifications/entities/transaction/transactions-time-period-notification.d.ts +1 -1
  794. package/dist/types/notifications/events/address/address-created-event.d.ts +5 -5
  795. package/dist/types/notifications/events/address/address-imported-event.d.ts +5 -5
  796. package/dist/types/notifications/events/address/address-updated-event.d.ts +5 -5
  797. package/dist/types/notifications/events/address/index.d.ts +3 -3
  798. package/dist/types/notifications/events/adjustment/adjustment-created-event.d.ts +5 -5
  799. package/dist/types/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -5
  800. package/dist/types/notifications/events/adjustment/index.d.ts +2 -2
  801. package/dist/types/notifications/events/business/business-created-event.d.ts +5 -5
  802. package/dist/types/notifications/events/business/business-imported-event.d.ts +5 -5
  803. package/dist/types/notifications/events/business/business-updated-event.d.ts +5 -5
  804. package/dist/types/notifications/events/business/index.d.ts +3 -3
  805. package/dist/types/notifications/events/customer/customer-created-event.d.ts +5 -5
  806. package/dist/types/notifications/events/customer/customer-imported-event.d.ts +5 -5
  807. package/dist/types/notifications/events/customer/customer-updated-event.d.ts +5 -5
  808. package/dist/types/notifications/events/customer/index.d.ts +3 -3
  809. package/dist/types/notifications/events/discount/discount-created-event.d.ts +5 -5
  810. package/dist/types/notifications/events/discount/discount-imported-event.d.ts +5 -5
  811. package/dist/types/notifications/events/discount/discount-updated-event.d.ts +5 -5
  812. package/dist/types/notifications/events/discount/index.d.ts +3 -3
  813. package/dist/types/notifications/events/index.d.ts +11 -11
  814. package/dist/types/notifications/events/payout/index.d.ts +2 -2
  815. package/dist/types/notifications/events/payout/payout-created-event.d.ts +5 -5
  816. package/dist/types/notifications/events/payout/payout-paid-event.d.ts +5 -5
  817. package/dist/types/notifications/events/price/index.d.ts +3 -3
  818. package/dist/types/notifications/events/price/price-created-event.d.ts +5 -5
  819. package/dist/types/notifications/events/price/price-imported-event.d.ts +5 -5
  820. package/dist/types/notifications/events/price/price-updated-event.d.ts +5 -5
  821. package/dist/types/notifications/events/product/index.d.ts +3 -3
  822. package/dist/types/notifications/events/product/product-created-event.d.ts +5 -5
  823. package/dist/types/notifications/events/product/product-imported-event.d.ts +5 -5
  824. package/dist/types/notifications/events/product/product-updated-event.d.ts +5 -5
  825. package/dist/types/notifications/events/report/index.d.ts +2 -2
  826. package/dist/types/notifications/events/report/report-created-event.d.ts +5 -5
  827. package/dist/types/notifications/events/report/report-updated-event.d.ts +5 -5
  828. package/dist/types/notifications/events/subscription/index.d.ts +9 -9
  829. package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +5 -5
  830. package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +5 -5
  831. package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +5 -5
  832. package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +5 -5
  833. package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +5 -5
  834. package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +5 -5
  835. package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +5 -5
  836. package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +5 -5
  837. package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +5 -5
  838. package/dist/types/notifications/events/transaction/index.d.ts +9 -9
  839. package/dist/types/notifications/events/transaction/transaction-billed-event.d.ts +5 -5
  840. package/dist/types/notifications/events/transaction/transaction-canceled-event.d.ts +5 -5
  841. package/dist/types/notifications/events/transaction/transaction-completed-event.d.ts +5 -5
  842. package/dist/types/notifications/events/transaction/transaction-created-event.d.ts +5 -5
  843. package/dist/types/notifications/events/transaction/transaction-paid-event.d.ts +5 -5
  844. package/dist/types/notifications/events/transaction/transaction-past-due-event.d.ts +5 -5
  845. package/dist/types/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -5
  846. package/dist/types/notifications/events/transaction/transaction-ready-event.d.ts +5 -5
  847. package/dist/types/notifications/events/transaction/transaction-updated-event.d.ts +5 -5
  848. package/dist/types/notifications/helpers/index.d.ts +3 -3
  849. package/dist/types/notifications/helpers/types.d.ts +1 -1
  850. package/dist/types/notifications/helpers/webhooks-validator.d.ts +1 -1
  851. package/dist/types/notifications/helpers/webhooks.d.ts +4 -4
  852. package/dist/types/notifications/index.d.ts +4 -4
  853. package/dist/types/notifications/types/address/address-notification-response.d.ts +2 -2
  854. package/dist/types/notifications/types/address/index.d.ts +1 -1
  855. package/dist/types/notifications/types/adjustment/adjustment-item-notification-response.d.ts +3 -2
  856. package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +3 -2
  857. package/dist/types/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +2 -2
  858. package/dist/types/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +1 -1
  859. package/dist/types/notifications/types/adjustment/index.d.ts +6 -6
  860. package/dist/types/notifications/types/business/business-notification-response.d.ts +4 -3
  861. package/dist/types/notifications/types/business/index.d.ts +2 -2
  862. package/dist/types/notifications/types/customer/customer-notification-response.d.ts +3 -3
  863. package/dist/types/notifications/types/customer/index.d.ts +1 -1
  864. package/dist/types/notifications/types/discount/discount-notification-response.d.ts +3 -3
  865. package/dist/types/notifications/types/discount/index.d.ts +1 -1
  866. package/dist/types/notifications/types/index.d.ts +12 -12
  867. package/dist/types/notifications/types/payout/index.d.ts +1 -1
  868. package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -1
  869. package/dist/types/notifications/types/price/index.d.ts +2 -2
  870. package/dist/types/notifications/types/price/price-notification-response.d.ts +4 -3
  871. package/dist/types/notifications/types/product/index.d.ts +1 -1
  872. package/dist/types/notifications/types/product/product-notification-response.d.ts +3 -3
  873. package/dist/types/notifications/types/report/index.d.ts +2 -2
  874. package/dist/types/notifications/types/report/report-filters-notification-response.d.ts +1 -1
  875. package/dist/types/notifications/types/report/report-notification-response.d.ts +2 -2
  876. package/dist/types/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +1 -1
  877. package/dist/types/notifications/types/shared/billing-details-notification-response.d.ts +1 -1
  878. package/dist/types/notifications/types/shared/chargeback-fee.d.ts +1 -1
  879. package/dist/types/notifications/types/shared/index.d.ts +22 -22
  880. package/dist/types/notifications/types/shared/money-notification-response.d.ts +1 -1
  881. package/dist/types/notifications/types/shared/payment-card-notification-response.d.ts +1 -1
  882. package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -2
  883. package/dist/types/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +2 -2
  884. package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +7 -3
  885. package/dist/types/notifications/types/shared/shared-product-notification-response.d.ts +3 -3
  886. package/dist/types/notifications/types/shared/tax-rates-used-notification-response.d.ts +1 -1
  887. package/dist/types/notifications/types/shared/time-period-notification.d.ts +1 -1
  888. package/dist/types/notifications/types/shared/total-adjustments-notification-response.d.ts +1 -1
  889. package/dist/types/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +2 -2
  890. package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +2 -2
  891. package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +1 -1
  892. package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -1
  893. package/dist/types/notifications/types/shared/transaction-totals-notification-response.d.ts +1 -1
  894. package/dist/types/notifications/types/shared/unit-price-override-notification-response.d.ts +2 -2
  895. package/dist/types/notifications/types/subscription/index.d.ts +7 -7
  896. package/dist/types/notifications/types/subscription/subscription-item-notification-response.d.ts +4 -2
  897. package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +7 -3
  898. package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +4 -3
  899. package/dist/types/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +1 -1
  900. package/dist/types/notifications/types/transaction/index.d.ts +6 -6
  901. package/dist/types/notifications/types/transaction/transaction-details-notification-response.d.ts +2 -1
  902. package/dist/types/notifications/types/transaction/transaction-item-notification-response.d.ts +2 -1
  903. package/dist/types/notifications/types/transaction/transaction-line-item-notification-response.d.ts +2 -1
  904. package/dist/types/notifications/types/transaction/transaction-notification-response.d.ts +6 -3
  905. package/dist/types/notifications/types/transaction/transaction-proration-notification-response.d.ts +1 -1
  906. package/dist/types/paddle.d.ts +4 -4
  907. package/dist/types/resources/addresses/index.d.ts +4 -4
  908. package/dist/types/resources/addresses/operations/create-address-request-body.d.ts +2 -2
  909. package/dist/types/resources/addresses/operations/index.d.ts +3 -3
  910. package/dist/types/resources/addresses/operations/list-address-query-parameters.d.ts +1 -1
  911. package/dist/types/resources/addresses/operations/update-address-request-body.d.ts +2 -2
  912. package/dist/types/resources/adjustments/index.d.ts +4 -4
  913. package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +1 -1
  914. package/dist/types/resources/adjustments/operations/get-adjustment-credit-note-query-parameters.d.ts +1 -1
  915. package/dist/types/resources/adjustments/operations/index.d.ts +3 -3
  916. package/dist/types/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +1 -1
  917. package/dist/types/resources/businesses/index.d.ts +4 -4
  918. package/dist/types/resources/businesses/operations/create-business-request-body.d.ts +1 -1
  919. package/dist/types/resources/businesses/operations/index.d.ts +3 -3
  920. package/dist/types/resources/businesses/operations/list-business-query-parameters.d.ts +1 -1
  921. package/dist/types/resources/businesses/operations/update-business-request-body.d.ts +2 -2
  922. package/dist/types/resources/customers/index.d.ts +4 -4
  923. package/dist/types/resources/customers/operations/create-customer-request-body.d.ts +1 -1
  924. package/dist/types/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
  925. package/dist/types/resources/customers/operations/index.d.ts +4 -4
  926. package/dist/types/resources/customers/operations/list-customer-query-parameters.d.ts +1 -1
  927. package/dist/types/resources/customers/operations/update-customer-request-body.d.ts +2 -2
  928. package/dist/types/resources/discounts/index.d.ts +4 -4
  929. package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -2
  930. package/dist/types/resources/discounts/operations/index.d.ts +3 -3
  931. package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +1 -1
  932. package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -2
  933. package/dist/types/resources/event-types/index.d.ts +2 -2
  934. package/dist/types/resources/events/index.d.ts +4 -4
  935. package/dist/types/resources/events/operations/index.d.ts +1 -1
  936. package/dist/types/resources/index.d.ts +18 -18
  937. package/dist/types/resources/notification-settings/index.d.ts +4 -4
  938. package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -2
  939. package/dist/types/resources/notification-settings/operations/index.d.ts +3 -3
  940. package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +1 -1
  941. package/dist/types/resources/notifications/index.d.ts +4 -4
  942. package/dist/types/resources/notifications/operations/index.d.ts +2 -2
  943. package/dist/types/resources/notifications/operations/list-notification-query-parameters.d.ts +1 -1
  944. package/dist/types/resources/prices/index.d.ts +4 -4
  945. package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
  946. package/dist/types/resources/prices/operations/index.d.ts +4 -4
  947. package/dist/types/resources/prices/operations/list-price-query-parameters.d.ts +1 -1
  948. package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
  949. package/dist/types/resources/pricing-preview/index.d.ts +4 -4
  950. package/dist/types/resources/pricing-preview/operations/index.d.ts +1 -1
  951. package/dist/types/resources/pricing-preview/operations/pricing-preview-request-body.d.ts +2 -2
  952. package/dist/types/resources/products/index.d.ts +4 -4
  953. package/dist/types/resources/products/operations/create-product-request-body.d.ts +2 -2
  954. package/dist/types/resources/products/operations/index.d.ts +4 -4
  955. package/dist/types/resources/products/operations/list-product-query-parameters.d.ts +1 -1
  956. package/dist/types/resources/products/operations/update-product-request-body.d.ts +2 -2
  957. package/dist/types/resources/reports/index.d.ts +4 -4
  958. package/dist/types/resources/reports/operations/create-report-request-object.d.ts +2 -2
  959. package/dist/types/resources/reports/operations/index.d.ts +2 -2
  960. package/dist/types/resources/reports/operations/list-report-query-parameters.d.ts +1 -1
  961. package/dist/types/resources/simulation-run-events/index.d.ts +4 -4
  962. package/dist/types/resources/simulation-run-events/operations/index.d.ts +1 -1
  963. package/dist/types/resources/simulation-runs/index.d.ts +4 -4
  964. package/dist/types/resources/simulation-runs/operations/index.d.ts +2 -2
  965. package/dist/types/resources/simulation-types/index.d.ts +2 -2
  966. package/dist/types/resources/simulations/index.d.ts +4 -4
  967. package/dist/types/resources/simulations/operations/create-simulation-request-body.d.ts +3 -3
  968. package/dist/types/resources/simulations/operations/index.d.ts +3 -3
  969. package/dist/types/resources/simulations/operations/list-simulation-query-parameters.d.ts +1 -1
  970. package/dist/types/resources/simulations/operations/update-simulation-request-body.d.ts +2 -2
  971. package/dist/types/resources/subscriptions/index.d.ts +4 -4
  972. package/dist/types/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
  973. package/dist/types/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +2 -2
  974. package/dist/types/resources/subscriptions/operations/index.d.ts +7 -7
  975. package/dist/types/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +1 -1
  976. package/dist/types/resources/subscriptions/operations/pause-subscription-request-object.d.ts +1 -1
  977. package/dist/types/resources/subscriptions/operations/update-subscription-request-body.d.ts +2 -2
  978. package/dist/types/resources/transactions/index.d.ts +4 -4
  979. package/dist/types/resources/transactions/operations/create-transaction-request-body.d.ts +2 -2
  980. package/dist/types/resources/transactions/operations/get-transaction-invoice-pdf-query-parameters.d.ts +1 -1
  981. package/dist/types/resources/transactions/operations/index.d.ts +8 -8
  982. package/dist/types/resources/transactions/operations/list-transaction-query-parameters.d.ts +1 -1
  983. package/dist/types/resources/transactions/operations/transaction-preview-request-body.d.ts +2 -2
  984. package/dist/types/resources/transactions/operations/update-transaction-request-body.d.ts +2 -2
  985. package/dist/types/types/address/address-response.d.ts +2 -2
  986. package/dist/types/types/address/index.d.ts +1 -1
  987. package/dist/types/types/adjustment/adjustment-item-response.d.ts +3 -2
  988. package/dist/types/types/adjustment/adjustment-response.d.ts +3 -2
  989. package/dist/types/types/adjustment/adjustments-proration-response.d.ts +1 -1
  990. package/dist/types/types/adjustment/index.d.ts +5 -5
  991. package/dist/types/types/business/business-response.d.ts +3 -2
  992. package/dist/types/types/business/index.d.ts +2 -2
  993. package/dist/types/types/customer/credit-balance-response.d.ts +2 -2
  994. package/dist/types/types/customer/customer-response.d.ts +2 -2
  995. package/dist/types/types/customer/index.d.ts +3 -3
  996. package/dist/types/types/discount/discount-response.d.ts +2 -2
  997. package/dist/types/types/discount/index.d.ts +1 -1
  998. package/dist/types/types/event-types/event-type-response.d.ts +1 -1
  999. package/dist/types/types/event-types/index.d.ts +1 -1
  1000. package/dist/types/types/events/events-response.d.ts +1 -1
  1001. package/dist/types/types/events/index.d.ts +1 -1
  1002. package/dist/types/types/index.d.ts +21 -21
  1003. package/dist/types/types/notification-settings/index.d.ts +1 -1
  1004. package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -2
  1005. package/dist/types/types/notifications/index.d.ts +3 -3
  1006. package/dist/types/types/notifications/notification.d.ts +3 -3
  1007. package/dist/types/types/payout/index.d.ts +1 -1
  1008. package/dist/types/types/payout/payout-response.d.ts +1 -1
  1009. package/dist/types/types/price/index.d.ts +3 -3
  1010. package/dist/types/types/price/non-catalog-price-request.d.ts +3 -3
  1011. package/dist/types/types/price/price-response.d.ts +2 -2
  1012. package/dist/types/types/price/subscription-non-catalog-price-request.d.ts +3 -3
  1013. package/dist/types/types/pricing-preview/index.d.ts +5 -5
  1014. package/dist/types/types/pricing-preview/pricing-preview-details-response.d.ts +1 -1
  1015. package/dist/types/types/pricing-preview/pricing-preview-discounts-response.d.ts +1 -1
  1016. package/dist/types/types/pricing-preview/pricing-preview-line-item-response.d.ts +4 -4
  1017. package/dist/types/types/pricing-preview/pricing-preview-response.d.ts +4 -4
  1018. package/dist/types/types/product/index.d.ts +1 -1
  1019. package/dist/types/types/product/product-response.d.ts +3 -2
  1020. package/dist/types/types/report/index.d.ts +3 -3
  1021. package/dist/types/types/report/report-filters.d.ts +1 -1
  1022. package/dist/types/types/report/report.d.ts +2 -2
  1023. package/dist/types/types/shared/adjustment-original-amount-response.d.ts +1 -1
  1024. package/dist/types/types/shared/billing-details-create.d.ts +1 -1
  1025. package/dist/types/types/shared/billing-details-response.d.ts +1 -1
  1026. package/dist/types/types/shared/billing-details-update.d.ts +1 -1
  1027. package/dist/types/types/shared/chargeback-fee.d.ts +1 -1
  1028. package/dist/types/types/shared/index.d.ts +32 -32
  1029. package/dist/types/types/shared/money-response.d.ts +1 -1
  1030. package/dist/types/types/shared/money.d.ts +1 -1
  1031. package/dist/types/types/shared/payment-card-response.d.ts +1 -1
  1032. package/dist/types/types/shared/payment-method-details.d.ts +2 -2
  1033. package/dist/types/types/shared/payout-totals-adjustment-response.d.ts +2 -2
  1034. package/dist/types/types/shared/simulation-payload.d.ts +2 -2
  1035. package/dist/types/types/shared/tax-rates-used-response.d.ts +1 -1
  1036. package/dist/types/types/shared/time-period.d.ts +1 -1
  1037. package/dist/types/types/shared/total-adjustments-response.d.ts +1 -1
  1038. package/dist/types/types/shared/transaction-details-preview-response.d.ts +3 -1
  1039. package/dist/types/types/shared/transaction-line-item-preview-response.d.ts +3 -1
  1040. package/dist/types/types/shared/transaction-payment-attempt-response.d.ts +2 -2
  1041. package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +2 -2
  1042. package/dist/types/types/shared/transaction-payout-totals-response.d.ts +1 -1
  1043. package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -1
  1044. package/dist/types/types/shared/transaction-totals-response.d.ts +1 -1
  1045. package/dist/types/types/shared/unit-price-override-response.d.ts +2 -2
  1046. package/dist/types/types/shared/unit-price-override.d.ts +2 -2
  1047. package/dist/types/types/simulation/index.d.ts +1 -1
  1048. package/dist/types/types/simulation/simulation-response.d.ts +2 -2
  1049. package/dist/types/types/simulation-run/index.d.ts +1 -1
  1050. package/dist/types/types/simulation-run/simulation-run-event.d.ts +17 -0
  1051. package/dist/types/types/simulation-run/simulation-run-response.d.ts +3 -3
  1052. package/dist/types/types/simulation-run-event/index.d.ts +1 -1
  1053. package/dist/types/types/simulation-run-event/simulation-run-event-response.d.ts +3 -3
  1054. package/dist/types/types/simulation-type/index.d.ts +1 -1
  1055. package/dist/types/types/simulation-type/simulation-type.d.ts +2 -2
  1056. package/dist/types/types/subscription/index.d.ts +13 -13
  1057. package/dist/types/types/subscription/next-transaction-response.d.ts +3 -1
  1058. package/dist/types/types/subscription/subscription-item-response.d.ts +4 -2
  1059. package/dist/types/types/subscription/subscription-preview-response.d.ts +9 -2
  1060. package/dist/types/types/subscription/subscription-preview-update-summary.d.ts +2 -1
  1061. package/dist/types/types/subscription/subscription-response.d.ts +8 -2
  1062. package/dist/types/types/subscription/subscription-result-response.d.ts +1 -1
  1063. package/dist/types/types/subscription/subscription-scheduled-change-response.d.ts +1 -1
  1064. package/dist/types/types/subscription/subscription-update-item.d.ts +1 -1
  1065. package/dist/types/types/subscription/subscription-update-non-catalog-price-request.d.ts +1 -1
  1066. package/dist/types/types/transaction/adjustment-totals-response.d.ts +2 -2
  1067. package/dist/types/types/transaction/index.d.ts +15 -15
  1068. package/dist/types/types/transaction/transaction-adjustment-item-response.d.ts +3 -2
  1069. package/dist/types/types/transaction/transaction-adjustment-response.d.ts +3 -2
  1070. package/dist/types/types/transaction/transaction-details-response.d.ts +2 -1
  1071. package/dist/types/types/transaction/transaction-item-response.d.ts +2 -1
  1072. package/dist/types/types/transaction/transaction-item.d.ts +1 -1
  1073. package/dist/types/types/transaction/transaction-line-item-response.d.ts +3 -1
  1074. package/dist/types/types/transaction/transaction-preview-item.d.ts +1 -1
  1075. package/dist/types/types/transaction/transaction-preview-response.d.ts +5 -5
  1076. package/dist/types/types/transaction/transaction-proration-response.d.ts +1 -1
  1077. package/dist/types/types/transaction/transaction-response.d.ts +11 -2
  1078. package/dist/types/version.d.ts +1 -1
  1079. package/package.json +30 -10
  1080. package/dist/cjs/index.js +0 -30
  1081. package/dist/esm/index.js +0 -8
  1082. package/dist/types/index.d.ts +0 -8
@@ -14,19 +14,19 @@ 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("./tax-category"), exports);
18
- __exportStar(require("./status"), exports);
19
- __exportStar(require("./interval"), exports);
20
- __exportStar(require("./tax-mode"), exports);
21
- __exportStar(require("./currency-code"), exports);
22
- __exportStar(require("./country-code"), exports);
23
- __exportStar(require("./collection-mode"), exports);
24
- __exportStar(require("./transaction-status"), exports);
25
- __exportStar(require("./transaction-origin"), exports);
26
- __exportStar(require("./payout-currency-code"), exports);
27
- __exportStar(require("./payment-attempt-status"), exports);
28
- __exportStar(require("./error-code"), exports);
29
- __exportStar(require("./payment-type"), exports);
30
- __exportStar(require("./catalog-type"), exports);
31
- __exportStar(require("./available-payment-methods"), exports);
32
- __exportStar(require("./disposition"), exports);
17
+ __exportStar(require("./tax-category.js"), exports);
18
+ __exportStar(require("./status.js"), exports);
19
+ __exportStar(require("./interval.js"), exports);
20
+ __exportStar(require("./tax-mode.js"), exports);
21
+ __exportStar(require("./currency-code.js"), exports);
22
+ __exportStar(require("./country-code.js"), exports);
23
+ __exportStar(require("./collection-mode.js"), exports);
24
+ __exportStar(require("./transaction-status.js"), exports);
25
+ __exportStar(require("./transaction-origin.js"), exports);
26
+ __exportStar(require("./payout-currency-code.js"), exports);
27
+ __exportStar(require("./payment-attempt-status.js"), exports);
28
+ __exportStar(require("./error-code.js"), exports);
29
+ __exportStar(require("./payment-type.js"), exports);
30
+ __exportStar(require("./catalog-type.js"), exports);
31
+ __exportStar(require("./available-payment-methods.js"), exports);
32
+ __exportStar(require("./disposition.js"), exports);
@@ -14,4 +14,4 @@ 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("./simulation-scenario-type"), exports);
17
+ __exportStar(require("./simulation-scenario-type.js"), exports);
@@ -14,4 +14,4 @@ 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("./simulation-run-status"), exports);
17
+ __exportStar(require("./simulation-run-status.js"), exports);
@@ -14,4 +14,4 @@ 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("./simulation-run-event-status"), exports);
17
+ __exportStar(require("./simulation-run-event-status.js"), exports);
@@ -14,4 +14,4 @@ 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("./simulation-kind"), exports);
17
+ __exportStar(require("./simulation-kind.js"), exports);
@@ -14,9 +14,9 @@ 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-effective-from"), exports);
18
- __exportStar(require("./proration-billing-mode"), exports);
19
- __exportStar(require("./scheduled-change-action"), exports);
20
- __exportStar(require("./subscription-status"), exports);
21
- __exportStar(require("./subscription-item-status"), exports);
22
- __exportStar(require("./subscription-on-payment-failure"), exports);
17
+ __exportStar(require("./subscription-effective-from.js"), exports);
18
+ __exportStar(require("./proration-billing-mode.js"), exports);
19
+ __exportStar(require("./scheduled-change-action.js"), exports);
20
+ __exportStar(require("./subscription-status.js"), exports);
21
+ __exportStar(require("./subscription-item-status.js"), exports);
22
+ __exportStar(require("./subscription-on-payment-failure.js"), exports);
@@ -14,4 +14,4 @@ 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("./payment-card-type"), exports);
17
+ __exportStar(require("./payment-card-type.js"), exports);
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Paddle = exports.EdgeRuntime = exports.SDK_VERSION = exports.ApiError = exports.LogLevel = exports.Environment = void 0;
18
+ const edge_runtime_js_1 = require("./internal/providers/runtime/edge-runtime.js");
19
+ Object.defineProperty(exports, "EdgeRuntime", { enumerable: true, get: function () { return edge_runtime_js_1.EdgeRuntime; } });
20
+ const paddle_js_1 = require("./paddle.js");
21
+ var index_js_1 = require("./internal/index.js");
22
+ Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return index_js_1.Environment; } });
23
+ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return index_js_1.LogLevel; } });
24
+ Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return index_js_1.ApiError; } });
25
+ var version_js_1 = require("./version.js");
26
+ Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return version_js_1.SDK_VERSION; } });
27
+ __exportStar(require("./entities/index.js"), exports);
28
+ __exportStar(require("./enums/index.js"), exports);
29
+ __exportStar(require("./notifications/index.js"), exports);
30
+ __exportStar(require("./resources/index.js"), exports);
31
+ __exportStar(require("./types/index.js"), exports);
32
+ class Paddle extends paddle_js_1.Paddle {
33
+ constructor(apiKey, options) {
34
+ edge_runtime_js_1.EdgeRuntime.initialize();
35
+ super(apiKey, options);
36
+ }
37
+ }
38
+ exports.Paddle = Paddle;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Paddle = exports.NodeRuntime = exports.SDK_VERSION = exports.ApiError = exports.LogLevel = exports.Environment = void 0;
18
+ const paddle_js_1 = require("./paddle.js");
19
+ const node_runtime_js_1 = require("./internal/providers/runtime/node-runtime.js");
20
+ Object.defineProperty(exports, "NodeRuntime", { enumerable: true, get: function () { return node_runtime_js_1.NodeRuntime; } });
21
+ var index_js_1 = require("./internal/index.js");
22
+ Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return index_js_1.Environment; } });
23
+ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return index_js_1.LogLevel; } });
24
+ Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return index_js_1.ApiError; } });
25
+ var version_js_1 = require("./version.js");
26
+ Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return version_js_1.SDK_VERSION; } });
27
+ __exportStar(require("./entities/index.js"), exports);
28
+ __exportStar(require("./enums/index.js"), exports);
29
+ __exportStar(require("./notifications/index.js"), exports);
30
+ __exportStar(require("./resources/index.js"), exports);
31
+ __exportStar(require("./types/index.js"), exports);
32
+ class Paddle extends paddle_js_1.Paddle {
33
+ constructor(apiKey, options) {
34
+ node_runtime_js_1.NodeRuntime.initialize();
35
+ super(apiKey, options);
36
+ }
37
+ }
38
+ exports.Paddle = Paddle;
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __rest = (this && this.__rest) || function (s, e) {
3
26
  var t = {};
4
27
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -12,18 +35,22 @@ var __rest = (this && this.__rest) || function (s, e) {
12
35
  };
13
36
  Object.defineProperty(exports, "__esModule", { value: true });
14
37
  exports.convertToSnakeCase = void 0;
15
- const lodash_1 = require("lodash");
38
+ const lodash = __importStar(require("lodash"));
16
39
  function isTopLevelCustomDataCamel(input) {
17
40
  return 'customData' in input;
18
41
  }
19
42
  function decamelizeKeys(obj) {
20
- if (!(0, lodash_1.isObject)(obj) || (0, lodash_1.isDate)(obj) || (0, lodash_1.isRegExp)(obj) || (0, lodash_1.isBoolean)(obj) || (0, lodash_1.isFunction)(obj)) {
43
+ if (!lodash.isObject(obj) ||
44
+ lodash.isDate(obj) ||
45
+ lodash.isRegExp(obj) ||
46
+ lodash.isBoolean(obj) ||
47
+ lodash.isFunction(obj)) {
21
48
  return obj;
22
49
  }
23
50
  let output;
24
51
  let i = 0;
25
52
  let l = 0;
26
- if ((0, lodash_1.isArray)(obj)) {
53
+ if (lodash.isArray(obj)) {
27
54
  output = [];
28
55
  for (l = obj.length; i < l; i++) {
29
56
  output.push(decamelizeKeys(obj[i]));
@@ -33,14 +60,14 @@ function decamelizeKeys(obj) {
33
60
  output = {};
34
61
  for (const key in obj) {
35
62
  if (Object.prototype.hasOwnProperty.call(obj, key)) {
36
- output[(0, lodash_1.snakeCase)(key)] = decamelizeKeys(obj[key]);
63
+ output[lodash.snakeCase(key)] = decamelizeKeys(obj[key]);
37
64
  }
38
65
  }
39
66
  }
40
67
  return output;
41
68
  }
42
69
  function convertToSnakeCase(input) {
43
- if (!input || !(0, lodash_1.isObject)(input)) {
70
+ if (!input || !lodash.isObject(input)) {
44
71
  return input;
45
72
  }
46
73
  if (isTopLevelCustomDataCamel(input)) {
@@ -8,38 +8,42 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.Client = void 0;
16
- const constants_1 = require("./constants");
17
- const node_fetch_1 = __importDefault(require("node-fetch"));
18
- const version_1 = require("../../version");
19
- const environment_1 = require("./environment");
20
- const node_crypto_1 = require("node:crypto");
21
- const logger_1 = require("../base/logger");
22
- const case_helpers_1 = require("./case-helpers");
23
- const log_level_1 = require("./log-level");
13
+ const environment_js_1 = require("./environment.js");
14
+ const constants_js_1 = require("./constants.js");
15
+ const logger_js_1 = require("../base/logger.js");
16
+ const log_level_js_1 = require("./log-level.js");
17
+ const runtime_provider_js_1 = require("../providers/runtime-provider.js");
18
+ const version_js_1 = require("../../version.js");
19
+ const case_helpers_js_1 = require("./case-helpers.js");
24
20
  class Client {
25
21
  constructor(apiKey, options) {
26
22
  var _a;
27
23
  this.apiKey = apiKey;
28
24
  this.options = options;
29
25
  this.baseUrl = this.getBaseUrl(this.options.environment);
30
- logger_1.Logger.logLevel = (_a = this.options.logLevel) !== null && _a !== void 0 ? _a : log_level_1.LogLevel.verbose;
26
+ logger_js_1.Logger.logLevel = (_a = this.options.logLevel) !== null && _a !== void 0 ? _a : log_level_js_1.LogLevel.verbose;
31
27
  }
32
28
  getBaseUrl(environment) {
33
- const urlBasedOnEnv = constants_1.API_ENVIRONMENT_TO_BASE_URL_MAP[environment !== null && environment !== void 0 ? environment : environment_1.Environment.production];
29
+ const urlBasedOnEnv = constants_js_1.API_ENVIRONMENT_TO_BASE_URL_MAP[environment !== null && environment !== void 0 ? environment : environment_js_1.Environment.production];
34
30
  return urlBasedOnEnv || environment;
35
31
  }
36
32
  getHeaders() {
37
- const uuid = (0, node_crypto_1.randomUUID)();
33
+ var _a;
34
+ let uuid;
35
+ const cryptoProvider = (_a = runtime_provider_js_1.RuntimeProvider.getProvider()) === null || _a === void 0 ? void 0 : _a.crypto;
36
+ if (cryptoProvider) {
37
+ uuid = cryptoProvider.randomUUID();
38
+ }
39
+ else {
40
+ logger_js_1.Logger.error('Unknown runtime. Cannot generate uuid');
41
+ }
38
42
  return {
39
43
  Authorization: `bearer ${this.apiKey}`,
40
44
  'Content-Type': 'application/json',
41
- 'user-agent': `PaddleSDK/node ${version_1.SDK_VERSION}`,
42
- 'X-Transaction-ID': uuid,
45
+ 'user-agent': `PaddleSDK/node ${version_js_1.SDK_VERSION}`,
46
+ 'X-Transaction-ID': uuid !== null && uuid !== void 0 ? uuid : '',
43
47
  };
44
48
  }
45
49
  get(url, queryParams) {
@@ -50,11 +54,11 @@ class Client {
50
54
  }
51
55
  const logUrl = finalUrl.split('?')[0];
52
56
  const headers = this.getHeaders();
53
- logger_1.Logger.logRequest('GET', logUrl, headers);
54
- const rawResponse = yield (0, node_fetch_1.default)(finalUrl, {
57
+ logger_js_1.Logger.logRequest('GET', logUrl, headers);
58
+ const rawResponse = yield fetch(finalUrl, {
55
59
  headers,
56
60
  });
57
- logger_1.Logger.logResponse('GET', logUrl, headers, rawResponse);
61
+ logger_js_1.Logger.logResponse('GET', logUrl, headers, rawResponse);
58
62
  return rawResponse.json();
59
63
  });
60
64
  }
@@ -62,13 +66,13 @@ class Client {
62
66
  return __awaiter(this, void 0, void 0, function* () {
63
67
  const logUrl = url.split('?')[0];
64
68
  const headers = this.getHeaders();
65
- logger_1.Logger.logRequest('POST', logUrl, headers);
66
- const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
69
+ logger_js_1.Logger.logRequest('POST', logUrl, headers);
70
+ const rawResponse = yield fetch(`${this.baseUrl}${url}`, {
67
71
  method: 'POST',
68
- body: JSON.stringify((0, case_helpers_1.convertToSnakeCase)(requestBody)),
72
+ body: JSON.stringify((0, case_helpers_js_1.convertToSnakeCase)(requestBody)),
69
73
  headers,
70
74
  });
71
- logger_1.Logger.logResponse('POST', logUrl, headers, rawResponse);
75
+ logger_js_1.Logger.logResponse('POST', logUrl, headers, rawResponse);
72
76
  return rawResponse.json();
73
77
  });
74
78
  }
@@ -76,13 +80,13 @@ class Client {
76
80
  return __awaiter(this, void 0, void 0, function* () {
77
81
  const logUrl = url.split('?')[0];
78
82
  const headers = this.getHeaders();
79
- logger_1.Logger.logRequest('PATCH', logUrl, headers);
80
- const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
83
+ logger_js_1.Logger.logRequest('PATCH', logUrl, headers);
84
+ const rawResponse = yield fetch(`${this.baseUrl}${url}`, {
81
85
  method: 'PATCH',
82
- body: JSON.stringify((0, case_helpers_1.convertToSnakeCase)(requestBody)),
86
+ body: JSON.stringify((0, case_helpers_js_1.convertToSnakeCase)(requestBody)),
83
87
  headers,
84
88
  });
85
- logger_1.Logger.logResponse('PATCH', logUrl, headers, rawResponse);
89
+ logger_js_1.Logger.logResponse('PATCH', logUrl, headers, rawResponse);
86
90
  return rawResponse.json();
87
91
  });
88
92
  }
@@ -90,12 +94,12 @@ class Client {
90
94
  return __awaiter(this, void 0, void 0, function* () {
91
95
  const logUrl = url.split('?')[0];
92
96
  const headers = this.getHeaders();
93
- logger_1.Logger.logRequest('DELETE', logUrl, headers);
94
- const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
97
+ logger_js_1.Logger.logRequest('DELETE', logUrl, headers);
98
+ const rawResponse = yield fetch(`${this.baseUrl}${url}`, {
95
99
  method: 'DELETE',
96
100
  headers,
97
101
  });
98
- logger_1.Logger.logResponse('DELETE', logUrl, headers, rawResponse);
102
+ logger_js_1.Logger.logResponse('DELETE', logUrl, headers, rawResponse);
99
103
  return rawResponse;
100
104
  });
101
105
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.API_ENVIRONMENT_TO_BASE_URL_MAP = void 0;
4
- const environment_1 = require("./environment");
4
+ const environment_js_1 = require("./environment.js");
5
5
  exports.API_ENVIRONMENT_TO_BASE_URL_MAP = {
6
- [environment_1.Environment.production]: 'https://api.paddle.com',
7
- [environment_1.Environment.sandbox]: 'https://sandbox-api.paddle.com',
6
+ [environment_js_1.Environment.production]: 'https://api.paddle.com',
7
+ [environment_js_1.Environment.sandbox]: 'https://sandbox-api.paddle.com',
8
8
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LogLevel = exports.convertToSnakeCase = exports.Environment = void 0;
4
- var environment_1 = require("./environment");
5
- Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return environment_1.Environment; } });
6
- var case_helpers_1 = require("./case-helpers");
7
- Object.defineProperty(exports, "convertToSnakeCase", { enumerable: true, get: function () { return case_helpers_1.convertToSnakeCase; } });
8
- var log_level_1 = require("./log-level");
9
- Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return log_level_1.LogLevel; } });
4
+ var environment_js_1 = require("./environment.js");
5
+ Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return environment_js_1.Environment; } });
6
+ var case_helpers_js_1 = require("./case-helpers.js");
7
+ Object.defineProperty(exports, "convertToSnakeCase", { enumerable: true, get: function () { return case_helpers_js_1.convertToSnakeCase; } });
8
+ var log_level_js_1 = require("./log-level.js");
9
+ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return log_level_js_1.LogLevel; } });
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseResource = void 0;
4
- const generic_1 = require("../errors/generic");
4
+ const generic_js_1 = require("../errors/generic.js");
5
5
  class BaseResource {
6
6
  constructor(client) {
7
7
  this.client = client;
8
8
  }
9
9
  handleError(error) {
10
10
  if (error.error) {
11
- throw new generic_1.ApiError(error.error);
11
+ throw new generic_js_1.ApiError(error.error);
12
12
  }
13
13
  }
14
14
  handleResponse(response) {
@@ -22,7 +22,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
24
  exports.Collection = void 0;
25
- const generic_1 = require("../errors/generic");
25
+ const generic_js_1 = require("../errors/generic.js");
26
26
  class Collection {
27
27
  constructor(client, initialUri) {
28
28
  this.client = client;
@@ -47,7 +47,7 @@ class Collection {
47
47
  const entityResponse = response;
48
48
  const error = response;
49
49
  if (error.error) {
50
- throw new generic_1.ApiError(error.error);
50
+ throw new generic_js_1.ApiError(error.error);
51
51
  }
52
52
  return entityResponse;
53
53
  }
@@ -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("./base-resource"), exports);
18
- __exportStar(require("./query-parameters"), exports);
19
- __exportStar(require("./path-parameters"), exports);
20
- __exportStar(require("./collection"), exports);
17
+ __exportStar(require("./base-resource.js"), exports);
18
+ __exportStar(require("./query-parameters.js"), exports);
19
+ __exportStar(require("./path-parameters.js"), exports);
20
+ __exportStar(require("./collection.js"), exports);
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Logger = void 0;
4
- const api_1 = require("../api");
4
+ const index_js_1 = require("../api/index.js");
5
5
  class Logger {
6
6
  static shouldLog(level) {
7
7
  switch (Logger.logLevel) {
8
- case api_1.LogLevel.verbose:
9
- return level !== api_1.LogLevel.none;
10
- case api_1.LogLevel.warn:
11
- return level === api_1.LogLevel.warn || level === api_1.LogLevel.error;
12
- case api_1.LogLevel.error:
13
- return level === api_1.LogLevel.error;
8
+ case index_js_1.LogLevel.verbose:
9
+ return level !== index_js_1.LogLevel.none;
10
+ case index_js_1.LogLevel.warn:
11
+ return level === index_js_1.LogLevel.warn || level === index_js_1.LogLevel.error;
12
+ case index_js_1.LogLevel.error:
13
+ return level === index_js_1.LogLevel.error;
14
14
  default:
15
15
  return false;
16
16
  }
17
17
  }
18
18
  static log(...args) {
19
- if (Logger.shouldLog(api_1.LogLevel.verbose)) {
19
+ if (Logger.shouldLog(index_js_1.LogLevel.verbose)) {
20
20
  console.log('[Paddle] [LOG]', ...args);
21
21
  }
22
22
  }
23
23
  static warn(...args) {
24
- if (Logger.shouldLog(api_1.LogLevel.warn)) {
24
+ if (Logger.shouldLog(index_js_1.LogLevel.warn)) {
25
25
  console.warn('[Paddle] [WARN]', ...args);
26
26
  }
27
27
  }
28
28
  static error(...args) {
29
- if (Logger.shouldLog(api_1.LogLevel.error)) {
29
+ if (Logger.shouldLog(index_js_1.LogLevel.error)) {
30
30
  console.error('[Paddle] [ERROR]', ...args);
31
31
  }
32
32
  }
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.ApiError = void 0;
18
- __exportStar(require("./api"), exports);
19
- var generic_1 = require("./errors/generic");
20
- Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return generic_1.ApiError; } });
18
+ __exportStar(require("./api/index.js"), exports);
19
+ var generic_js_1 = require("./errors/generic.js");
20
+ Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return generic_js_1.ApiError; } });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CryptoProvider = void 0;
13
+ class CryptoProvider {
14
+ randomUUID() {
15
+ throw new Error('randomUUID not implemented.');
16
+ }
17
+ computeHmac(payload, secret) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ throw new Error('computeHmac not implemented.');
20
+ });
21
+ }
22
+ }
23
+ exports.CryptoProvider = CryptoProvider;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EdgeCrypto = void 0;
13
+ const byteHexMapping = new Array(256);
14
+ for (let i = 0; i < byteHexMapping.length; i++) {
15
+ byteHexMapping[i] = i.toString(16).padStart(2, '0');
16
+ }
17
+ class EdgeCrypto {
18
+ randomUUID() {
19
+ return crypto.randomUUID();
20
+ }
21
+ computeHmac(payload, secret) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const encoder = new TextEncoder();
24
+ const key = yield crypto.subtle.importKey('raw', encoder.encode(secret), {
25
+ name: 'HMAC',
26
+ hash: { name: 'SHA-256' },
27
+ }, false, ['sign']);
28
+ const signatureBuffer = yield crypto.subtle.sign('hmac', key, encoder.encode(payload));
29
+ const signatureBytes = new Uint8Array(signatureBuffer);
30
+ const signatureHexCodes = new Array(signatureBytes.length);
31
+ for (let i = 0; i < signatureBytes.length; i++) {
32
+ if (signatureBytes[i] !== undefined && signatureBytes[i] !== null) {
33
+ signatureHexCodes[i] = byteHexMapping[signatureBytes[i]];
34
+ }
35
+ }
36
+ return signatureHexCodes.join('');
37
+ });
38
+ }
39
+ }
40
+ exports.EdgeCrypto = EdgeCrypto;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NodeCrypto = void 0;
13
+ const node_crypto_1 = require("node:crypto");
14
+ class NodeCrypto {
15
+ randomUUID() {
16
+ return (0, node_crypto_1.randomUUID)();
17
+ }
18
+ computeHmac(payload, secret) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const hmac = (0, node_crypto_1.createHmac)('sha256', secret);
21
+ hmac.update(payload);
22
+ return yield new Promise((resolve) => {
23
+ resolve(hmac.digest('hex'));
24
+ });
25
+ });
26
+ }
27
+ }
28
+ exports.NodeCrypto = NodeCrypto;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EdgeRuntime = void 0;
4
+ const runtime_provider_js_1 = require("../runtime-provider.js");
5
+ const edge_crypto_js_1 = require("../crypto/edge-crypto.js");
6
+ class EdgeRuntime {
7
+ static initialize() {
8
+ runtime_provider_js_1.RuntimeProvider.setProvider({
9
+ crypto: new edge_crypto_js_1.EdgeCrypto(),
10
+ });
11
+ }
12
+ }
13
+ exports.EdgeRuntime = EdgeRuntime;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeRuntime = void 0;
4
+ const runtime_provider_js_1 = require("../runtime-provider.js");
5
+ const node_crypto_js_1 = require("../crypto/node-crypto.js");
6
+ class NodeRuntime {
7
+ static initialize() {
8
+ runtime_provider_js_1.RuntimeProvider.setProvider({
9
+ crypto: new node_crypto_js_1.NodeCrypto(),
10
+ });
11
+ }
12
+ }
13
+ exports.NodeRuntime = NodeRuntime;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuntimeProvider = void 0;
4
+ class RuntimeProvider {
5
+ static setProvider(provider) {
6
+ this.provider = provider;
7
+ }
8
+ static getProvider() {
9
+ return this.provider;
10
+ }
11
+ }
12
+ exports.RuntimeProvider = RuntimeProvider;