@paddle/paddle-node-sdk 1.3.0 → 1.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (960) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/entities/address/address-collection.js +4 -4
  3. package/dist/cjs/entities/address/address.js +2 -2
  4. package/dist/cjs/entities/address/index.js +2 -2
  5. package/dist/cjs/entities/adjustment/adjustment-collection.js +4 -4
  6. package/dist/cjs/entities/adjustment/adjustment-item.js +4 -3
  7. package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -2
  8. package/dist/cjs/entities/adjustment/adjustment.js +5 -4
  9. package/dist/cjs/entities/adjustment/index.js +6 -6
  10. package/dist/cjs/entities/business/business-collection.js +4 -4
  11. package/dist/cjs/entities/business/business.js +4 -3
  12. package/dist/cjs/entities/business/index.js +3 -3
  13. package/dist/cjs/entities/customer/credit-balance.js +2 -2
  14. package/dist/cjs/entities/customer/customer-collection.js +4 -4
  15. package/dist/cjs/entities/customer/customer.js +2 -2
  16. package/dist/cjs/entities/customer/index.js +4 -4
  17. package/dist/cjs/entities/discount/discount-collection.js +4 -4
  18. package/dist/cjs/entities/discount/discount.js +2 -2
  19. package/dist/cjs/entities/discount/index.js +2 -2
  20. package/dist/cjs/entities/event-types/index.js +1 -1
  21. package/dist/cjs/entities/events/event-collection.js +4 -4
  22. package/dist/cjs/entities/events/index.js +1 -1
  23. package/dist/cjs/entities/index.js +16 -16
  24. package/dist/cjs/entities/notification-settings/index.js +1 -1
  25. package/dist/cjs/entities/notification-settings/notification-settings.js +2 -2
  26. package/dist/cjs/entities/notifications/index.js +5 -5
  27. package/dist/cjs/entities/notifications/notification-collection.js +4 -4
  28. package/dist/cjs/entities/notifications/notification-log-collection.js +4 -4
  29. package/dist/cjs/entities/notifications/notification.js +2 -2
  30. package/dist/cjs/entities/payout/index.js +1 -1
  31. package/dist/cjs/entities/price/index.js +3 -3
  32. package/dist/cjs/entities/price/price-collection.js +4 -4
  33. package/dist/cjs/entities/price/price.js +10 -8
  34. package/dist/cjs/entities/pricing-preview/index.js +4 -4
  35. package/dist/cjs/entities/pricing-preview/pricing-preview-details.js +2 -2
  36. package/dist/cjs/entities/pricing-preview/pricing-preview-discounts.js +2 -2
  37. package/dist/cjs/entities/pricing-preview/pricing-preview-line-item.js +11 -11
  38. package/dist/cjs/entities/pricing-preview/pricing-preview.js +4 -4
  39. package/dist/cjs/entities/product/index.js +2 -2
  40. package/dist/cjs/entities/product/product-collection.js +4 -4
  41. package/dist/cjs/entities/product/product.js +3 -3
  42. package/dist/cjs/entities/report/index.js +4 -4
  43. package/dist/cjs/entities/report/report-collection.js +4 -4
  44. package/dist/cjs/entities/report/report.js +2 -2
  45. package/dist/cjs/entities/shared/billing-details.js +2 -2
  46. package/dist/cjs/entities/shared/chargeback-fee.js +2 -2
  47. package/dist/cjs/entities/shared/index.js +20 -20
  48. package/dist/cjs/entities/shared/payment-method-details.js +2 -2
  49. package/dist/cjs/entities/shared/payout-totals-adjustment.js +2 -2
  50. package/dist/cjs/entities/shared/tax-rates-used.js +2 -2
  51. package/dist/cjs/entities/shared/transaction-payment-attempt.js +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/subscription/index.js +15 -15
  55. package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +3 -3
  56. package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +4 -4
  57. package/dist/cjs/entities/subscription/next-transaction.js +6 -4
  58. package/dist/cjs/entities/subscription/subscription-collection.js +4 -4
  59. package/dist/cjs/entities/subscription/subscription-item.js +4 -3
  60. package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +5 -4
  61. package/dist/cjs/entities/subscription/subscription-preview.js +19 -13
  62. package/dist/cjs/entities/subscription/subscription.js +17 -11
  63. package/dist/cjs/entities/subscription/transaction-details-preview.js +5 -4
  64. package/dist/cjs/entities/subscription/transaction-line-item-preview.js +5 -4
  65. package/dist/cjs/entities/transaction/adjustment-totals.js +2 -2
  66. package/dist/cjs/entities/transaction/index.js +16 -16
  67. package/dist/cjs/entities/transaction/proration.js +2 -2
  68. package/dist/cjs/entities/transaction/transaction-adjustment-item.js +4 -3
  69. package/dist/cjs/entities/transaction/transaction-adjustment.js +5 -4
  70. package/dist/cjs/entities/transaction/transaction-collection.js +4 -4
  71. package/dist/cjs/entities/transaction/transaction-details.js +8 -7
  72. package/dist/cjs/entities/transaction/transaction-item-preview.js +4 -3
  73. package/dist/cjs/entities/transaction/transaction-item.js +4 -3
  74. package/dist/cjs/entities/transaction/transaction-line-item.js +7 -5
  75. package/dist/cjs/entities/transaction/transaction-preview.js +6 -4
  76. package/dist/cjs/entities/transaction/transaction-proration.js +2 -2
  77. package/dist/cjs/entities/transaction/transaction.js +13 -13
  78. package/dist/cjs/enums/adjustment/index.js +4 -4
  79. package/dist/cjs/enums/discount/index.js +2 -2
  80. package/dist/cjs/enums/index.js +9 -9
  81. package/dist/cjs/enums/notification/index.js +2 -2
  82. package/dist/cjs/enums/notification-settings/index.js +1 -1
  83. package/dist/cjs/enums/payout/index.js +1 -1
  84. package/dist/cjs/enums/report/index.js +4 -4
  85. package/dist/cjs/enums/shared/index.js +15 -15
  86. package/dist/cjs/enums/subscription/index.js +6 -6
  87. package/dist/cjs/enums/transaction/index.js +1 -1
  88. package/dist/cjs/index.js +12 -12
  89. package/dist/cjs/internal/api/case-helpers.js +32 -5
  90. package/dist/cjs/internal/api/client.js +17 -17
  91. package/dist/cjs/internal/api/constants.js +3 -3
  92. package/dist/cjs/internal/api/index.js +4 -4
  93. package/dist/cjs/internal/base/base-resource.js +2 -2
  94. package/dist/cjs/internal/base/collection.js +2 -2
  95. package/dist/cjs/internal/base/index.js +4 -4
  96. package/dist/cjs/internal/base/query-parameters.js +24 -4
  97. package/dist/cjs/internal/index.js +3 -3
  98. package/dist/cjs/notifications/entities/address/address-notification.js +2 -2
  99. package/dist/cjs/notifications/entities/address/index.js +1 -1
  100. package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +4 -3
  101. package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +5 -4
  102. package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -2
  103. package/dist/cjs/notifications/entities/adjustment/index.js +5 -5
  104. package/dist/cjs/notifications/entities/business/business-notification.js +4 -3
  105. package/dist/cjs/notifications/entities/business/index.js +2 -2
  106. package/dist/cjs/notifications/entities/customer/customer-notification.js +2 -2
  107. package/dist/cjs/notifications/entities/customer/index.js +1 -1
  108. package/dist/cjs/notifications/entities/discount/discount-notification.js +2 -2
  109. package/dist/cjs/notifications/entities/discount/index.js +1 -1
  110. package/dist/cjs/notifications/entities/index.js +12 -12
  111. package/dist/cjs/notifications/entities/payout/index.js +1 -1
  112. package/dist/cjs/notifications/entities/price/index.js +2 -2
  113. package/dist/cjs/notifications/entities/price/price-notification.js +8 -7
  114. package/dist/cjs/notifications/entities/product/index.js +1 -1
  115. package/dist/cjs/notifications/entities/product/product-notification.js +2 -2
  116. package/dist/cjs/notifications/entities/report/index.js +2 -2
  117. package/dist/cjs/notifications/entities/report/report-notification.js +2 -2
  118. package/dist/cjs/notifications/entities/shared/billing-details-notification.js +2 -2
  119. package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -2
  120. package/dist/cjs/notifications/entities/shared/index.js +20 -20
  121. package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +2 -2
  122. package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -2
  123. package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -2
  124. package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +2 -2
  125. package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -2
  126. package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -2
  127. package/dist/cjs/notifications/entities/subscription/index.js +6 -6
  128. package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +4 -3
  129. package/dist/cjs/notifications/entities/subscription/subscription-notification.js +12 -8
  130. package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +8 -8
  131. package/dist/cjs/notifications/entities/transaction/index.js +6 -6
  132. package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +8 -7
  133. package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +4 -3
  134. package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +7 -5
  135. package/dist/cjs/notifications/entities/transaction/transaction-notification.js +10 -7
  136. package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -2
  137. package/dist/cjs/notifications/events/address/address-created-event.js +6 -6
  138. package/dist/cjs/notifications/events/address/address-imported-event.js +6 -6
  139. package/dist/cjs/notifications/events/address/address-updated-event.js +6 -6
  140. package/dist/cjs/notifications/events/address/index.js +3 -3
  141. package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +6 -6
  142. package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +6 -6
  143. package/dist/cjs/notifications/events/adjustment/index.js +2 -2
  144. package/dist/cjs/notifications/events/business/business-created-event.js +6 -6
  145. package/dist/cjs/notifications/events/business/business-imported-event.js +6 -6
  146. package/dist/cjs/notifications/events/business/business-updated-event.js +6 -6
  147. package/dist/cjs/notifications/events/business/index.js +3 -3
  148. package/dist/cjs/notifications/events/customer/customer-created-event.js +6 -6
  149. package/dist/cjs/notifications/events/customer/customer-imported-event.js +6 -6
  150. package/dist/cjs/notifications/events/customer/customer-updated-event.js +6 -6
  151. package/dist/cjs/notifications/events/customer/index.js +3 -3
  152. package/dist/cjs/notifications/events/discount/discount-created-event.js +6 -6
  153. package/dist/cjs/notifications/events/discount/discount-imported-event.js +6 -6
  154. package/dist/cjs/notifications/events/discount/discount-updated-event.js +6 -6
  155. package/dist/cjs/notifications/events/discount/index.js +3 -3
  156. package/dist/cjs/notifications/events/index.js +11 -11
  157. package/dist/cjs/notifications/events/payout/index.js +2 -2
  158. package/dist/cjs/notifications/events/payout/payout-created-event.js +6 -6
  159. package/dist/cjs/notifications/events/payout/payout-paid-event.js +6 -6
  160. package/dist/cjs/notifications/events/price/index.js +3 -3
  161. package/dist/cjs/notifications/events/price/price-created-event.js +6 -6
  162. package/dist/cjs/notifications/events/price/price-imported-event.js +6 -6
  163. package/dist/cjs/notifications/events/price/price-updated-event.js +6 -6
  164. package/dist/cjs/notifications/events/product/index.js +3 -3
  165. package/dist/cjs/notifications/events/product/product-created-event.js +6 -6
  166. package/dist/cjs/notifications/events/product/product-imported-event.js +6 -6
  167. package/dist/cjs/notifications/events/product/product-updated-event.js +6 -6
  168. package/dist/cjs/notifications/events/report/index.js +2 -2
  169. package/dist/cjs/notifications/events/report/report-created-event.js +6 -6
  170. package/dist/cjs/notifications/events/report/report-updated-event.js +6 -6
  171. package/dist/cjs/notifications/events/subscription/index.js +9 -9
  172. package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +6 -6
  173. package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +6 -6
  174. package/dist/cjs/notifications/events/subscription/subscription-created-event.js +6 -6
  175. package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +6 -6
  176. package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +6 -6
  177. package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +6 -6
  178. package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +6 -6
  179. package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +6 -6
  180. package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +6 -6
  181. package/dist/cjs/notifications/events/transaction/index.js +9 -9
  182. package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +6 -6
  183. package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +6 -6
  184. package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +6 -6
  185. package/dist/cjs/notifications/events/transaction/transaction-created-event.js +6 -6
  186. package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +6 -6
  187. package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +6 -6
  188. package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +6 -6
  189. package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +6 -6
  190. package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +6 -6
  191. package/dist/cjs/notifications/helpers/index.js +3 -3
  192. package/dist/cjs/notifications/helpers/webhooks.js +91 -91
  193. package/dist/cjs/notifications/index.js +4 -4
  194. package/dist/cjs/notifications/types/address/index.js +1 -1
  195. package/dist/cjs/notifications/types/adjustment/index.js +6 -6
  196. package/dist/cjs/notifications/types/business/index.js +2 -2
  197. package/dist/cjs/notifications/types/customer/index.js +1 -1
  198. package/dist/cjs/notifications/types/discount/index.js +1 -1
  199. package/dist/cjs/notifications/types/index.js +12 -12
  200. package/dist/cjs/notifications/types/payout/index.js +1 -1
  201. package/dist/cjs/notifications/types/price/index.js +2 -2
  202. package/dist/cjs/notifications/types/product/index.js +1 -1
  203. package/dist/cjs/notifications/types/report/index.js +2 -2
  204. package/dist/cjs/notifications/types/shared/index.js +22 -22
  205. package/dist/cjs/notifications/types/subscription/index.js +7 -7
  206. package/dist/cjs/notifications/types/transaction/index.js +6 -6
  207. package/dist/cjs/paddle.js +23 -23
  208. package/dist/cjs/resources/addresses/index.js +13 -13
  209. package/dist/cjs/resources/addresses/operations/index.js +3 -3
  210. package/dist/cjs/resources/adjustments/index.js +7 -7
  211. package/dist/cjs/resources/adjustments/operations/index.js +2 -2
  212. package/dist/cjs/resources/businesses/index.js +13 -13
  213. package/dist/cjs/resources/businesses/operations/index.js +3 -3
  214. package/dist/cjs/resources/customers/index.js +14 -14
  215. package/dist/cjs/resources/customers/operations/index.js +4 -4
  216. package/dist/cjs/resources/discounts/index.js +11 -11
  217. package/dist/cjs/resources/discounts/operations/index.js +3 -3
  218. package/dist/cjs/resources/event-types/index.js +4 -4
  219. package/dist/cjs/resources/events/index.js +6 -6
  220. package/dist/cjs/resources/events/operations/index.js +1 -1
  221. package/dist/cjs/resources/index.js +14 -14
  222. package/dist/cjs/resources/notification-settings/index.js +11 -11
  223. package/dist/cjs/resources/notification-settings/operations/index.js +2 -2
  224. package/dist/cjs/resources/notifications/index.js +13 -13
  225. package/dist/cjs/resources/notifications/operations/index.js +2 -2
  226. package/dist/cjs/resources/prices/index.js +12 -12
  227. package/dist/cjs/resources/prices/operations/index.js +4 -4
  228. package/dist/cjs/resources/pricing-preview/index.js +5 -5
  229. package/dist/cjs/resources/pricing-preview/operations/index.js +1 -1
  230. package/dist/cjs/resources/products/index.js +12 -12
  231. package/dist/cjs/resources/products/operations/index.js +4 -4
  232. package/dist/cjs/resources/reports/index.js +11 -11
  233. package/dist/cjs/resources/reports/operations/index.js +2 -2
  234. package/dist/cjs/resources/subscriptions/index.js +27 -27
  235. package/dist/cjs/resources/subscriptions/operations/index.js +7 -7
  236. package/dist/cjs/resources/transactions/index.js +17 -17
  237. package/dist/cjs/resources/transactions/operations/index.js +7 -7
  238. package/dist/cjs/types/address/index.js +1 -1
  239. package/dist/cjs/types/adjustment/index.js +4 -4
  240. package/dist/cjs/types/business/index.js +2 -2
  241. package/dist/cjs/types/customer/index.js +3 -3
  242. package/dist/cjs/types/discount/index.js +1 -1
  243. package/dist/cjs/types/event-types/index.js +1 -1
  244. package/dist/cjs/types/events/index.js +1 -1
  245. package/dist/cjs/types/index.js +17 -17
  246. package/dist/cjs/types/notification-settings/index.js +1 -1
  247. package/dist/cjs/types/notifications/index.js +3 -3
  248. package/dist/cjs/types/payout/index.js +1 -1
  249. package/dist/cjs/types/price/index.js +3 -3
  250. package/dist/cjs/types/pricing-preview/index.js +5 -5
  251. package/dist/cjs/types/product/index.js +1 -1
  252. package/dist/cjs/types/report/index.js +3 -3
  253. package/dist/cjs/types/shared/index.js +29 -29
  254. package/dist/cjs/types/subscription/index.js +12 -12
  255. package/dist/cjs/types/transaction/index.js +15 -15
  256. package/dist/cjs/version.js +1 -1
  257. package/dist/esm/entities/address/address-collection.js +2 -2
  258. package/dist/esm/entities/address/address.js +1 -1
  259. package/dist/esm/entities/address/index.js +2 -2
  260. package/dist/esm/entities/adjustment/adjustment-collection.js +2 -2
  261. package/dist/esm/entities/adjustment/adjustment-item.js +2 -1
  262. package/dist/esm/entities/adjustment/adjustment-proration.js +1 -1
  263. package/dist/esm/entities/adjustment/adjustment.js +2 -1
  264. package/dist/esm/entities/adjustment/index.js +6 -6
  265. package/dist/esm/entities/business/business-collection.js +2 -2
  266. package/dist/esm/entities/business/business.js +2 -1
  267. package/dist/esm/entities/business/index.js +3 -3
  268. package/dist/esm/entities/customer/credit-balance.js +1 -1
  269. package/dist/esm/entities/customer/customer-collection.js +2 -2
  270. package/dist/esm/entities/customer/customer.js +1 -1
  271. package/dist/esm/entities/customer/index.js +4 -4
  272. package/dist/esm/entities/discount/discount-collection.js +2 -2
  273. package/dist/esm/entities/discount/discount.js +1 -1
  274. package/dist/esm/entities/discount/index.js +2 -2
  275. package/dist/esm/entities/event-types/index.js +1 -1
  276. package/dist/esm/entities/events/event-collection.js +2 -2
  277. package/dist/esm/entities/events/index.js +1 -1
  278. package/dist/esm/entities/index.js +16 -16
  279. package/dist/esm/entities/notification-settings/index.js +1 -1
  280. package/dist/esm/entities/notification-settings/notification-settings.js +1 -1
  281. package/dist/esm/entities/notifications/index.js +5 -5
  282. package/dist/esm/entities/notifications/notification-collection.js +2 -2
  283. package/dist/esm/entities/notifications/notification-log-collection.js +2 -2
  284. package/dist/esm/entities/notifications/notification.js +1 -1
  285. package/dist/esm/entities/payout/index.js +1 -1
  286. package/dist/esm/entities/price/index.js +3 -3
  287. package/dist/esm/entities/price/price-collection.js +2 -2
  288. package/dist/esm/entities/price/price.js +3 -1
  289. package/dist/esm/entities/pricing-preview/index.js +4 -4
  290. package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -1
  291. package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +1 -1
  292. package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +4 -4
  293. package/dist/esm/entities/pricing-preview/pricing-preview.js +2 -2
  294. package/dist/esm/entities/product/index.js +2 -2
  295. package/dist/esm/entities/product/product-collection.js +2 -2
  296. package/dist/esm/entities/product/product.js +1 -1
  297. package/dist/esm/entities/report/index.js +4 -4
  298. package/dist/esm/entities/report/report-collection.js +2 -2
  299. package/dist/esm/entities/report/report.js +1 -1
  300. package/dist/esm/entities/shared/billing-details.js +1 -1
  301. package/dist/esm/entities/shared/chargeback-fee.js +1 -1
  302. package/dist/esm/entities/shared/index.js +20 -20
  303. package/dist/esm/entities/shared/payment-method-details.js +1 -1
  304. package/dist/esm/entities/shared/payout-totals-adjustment.js +1 -1
  305. package/dist/esm/entities/shared/tax-rates-used.js +1 -1
  306. package/dist/esm/entities/shared/transaction-payment-attempt.js +1 -1
  307. package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +1 -1
  308. package/dist/esm/entities/shared/unit-price-override.js +1 -1
  309. package/dist/esm/entities/subscription/index.js +15 -15
  310. package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +1 -1
  311. package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +2 -2
  312. package/dist/esm/entities/subscription/next-transaction.js +3 -1
  313. package/dist/esm/entities/subscription/subscription-collection.js +2 -2
  314. package/dist/esm/entities/subscription/subscription-item.js +2 -1
  315. package/dist/esm/entities/subscription/subscription-preview-update-summary.js +2 -1
  316. package/dist/esm/entities/subscription/subscription-preview.js +7 -1
  317. package/dist/esm/entities/subscription/subscription.js +7 -1
  318. package/dist/esm/entities/subscription/transaction-details-preview.js +2 -1
  319. package/dist/esm/entities/subscription/transaction-line-item-preview.js +2 -1
  320. package/dist/esm/entities/transaction/adjustment-totals.js +1 -1
  321. package/dist/esm/entities/transaction/index.js +16 -16
  322. package/dist/esm/entities/transaction/proration.js +1 -1
  323. package/dist/esm/entities/transaction/transaction-adjustment-item.js +2 -1
  324. package/dist/esm/entities/transaction/transaction-adjustment.js +2 -1
  325. package/dist/esm/entities/transaction/transaction-collection.js +2 -2
  326. package/dist/esm/entities/transaction/transaction-details.js +2 -1
  327. package/dist/esm/entities/transaction/transaction-item-preview.js +2 -1
  328. package/dist/esm/entities/transaction/transaction-item.js +2 -1
  329. package/dist/esm/entities/transaction/transaction-line-item.js +3 -1
  330. package/dist/esm/entities/transaction/transaction-preview.js +3 -1
  331. package/dist/esm/entities/transaction/transaction-proration.js +1 -1
  332. package/dist/esm/entities/transaction/transaction.js +1 -1
  333. package/dist/esm/enums/adjustment/index.js +4 -4
  334. package/dist/esm/enums/discount/index.js +2 -2
  335. package/dist/esm/enums/index.js +9 -9
  336. package/dist/esm/enums/notification/index.js +2 -2
  337. package/dist/esm/enums/notification-settings/index.js +1 -1
  338. package/dist/esm/enums/payout/index.js +1 -1
  339. package/dist/esm/enums/report/index.js +4 -4
  340. package/dist/esm/enums/shared/index.js +15 -15
  341. package/dist/esm/enums/subscription/index.js +6 -6
  342. package/dist/esm/enums/transaction/index.js +1 -1
  343. package/dist/esm/index.js +8 -8
  344. package/dist/esm/internal/api/case-helpers.js +9 -5
  345. package/dist/esm/internal/api/client.js +5 -5
  346. package/dist/esm/internal/api/constants.js +1 -1
  347. package/dist/esm/internal/api/index.js +2 -2
  348. package/dist/esm/internal/base/base-resource.js +1 -1
  349. package/dist/esm/internal/base/collection.js +1 -1
  350. package/dist/esm/internal/base/index.js +4 -4
  351. package/dist/esm/internal/base/query-parameters.js +2 -2
  352. package/dist/esm/internal/index.js +2 -2
  353. package/dist/esm/notifications/entities/address/address-notification.js +1 -1
  354. package/dist/esm/notifications/entities/address/index.js +1 -1
  355. package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +2 -1
  356. package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +2 -1
  357. package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +1 -1
  358. package/dist/esm/notifications/entities/adjustment/index.js +5 -5
  359. package/dist/esm/notifications/entities/business/business-notification.js +2 -1
  360. package/dist/esm/notifications/entities/business/index.js +2 -2
  361. package/dist/esm/notifications/entities/customer/customer-notification.js +1 -1
  362. package/dist/esm/notifications/entities/customer/index.js +1 -1
  363. package/dist/esm/notifications/entities/discount/discount-notification.js +1 -1
  364. package/dist/esm/notifications/entities/discount/index.js +1 -1
  365. package/dist/esm/notifications/entities/index.js +12 -12
  366. package/dist/esm/notifications/entities/payout/index.js +1 -1
  367. package/dist/esm/notifications/entities/price/index.js +2 -2
  368. package/dist/esm/notifications/entities/price/price-notification.js +2 -1
  369. package/dist/esm/notifications/entities/product/index.js +1 -1
  370. package/dist/esm/notifications/entities/product/product-notification.js +1 -1
  371. package/dist/esm/notifications/entities/report/index.js +2 -2
  372. package/dist/esm/notifications/entities/report/report-notification.js +1 -1
  373. package/dist/esm/notifications/entities/shared/billing-details-notification.js +1 -1
  374. package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +1 -1
  375. package/dist/esm/notifications/entities/shared/index.js +20 -20
  376. package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +1 -1
  377. package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +1 -1
  378. package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +1 -1
  379. package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +1 -1
  380. package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +1 -1
  381. package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +1 -1
  382. package/dist/esm/notifications/entities/subscription/index.js +6 -6
  383. package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +2 -1
  384. package/dist/esm/notifications/entities/subscription/subscription-notification.js +5 -1
  385. package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +3 -3
  386. package/dist/esm/notifications/entities/transaction/index.js +6 -6
  387. package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +2 -1
  388. package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +2 -1
  389. package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +3 -1
  390. package/dist/esm/notifications/entities/transaction/transaction-notification.js +4 -1
  391. package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +1 -1
  392. package/dist/esm/notifications/events/address/address-created-event.js +3 -3
  393. package/dist/esm/notifications/events/address/address-imported-event.js +3 -3
  394. package/dist/esm/notifications/events/address/address-updated-event.js +3 -3
  395. package/dist/esm/notifications/events/address/index.js +3 -3
  396. package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +3 -3
  397. package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +3 -3
  398. package/dist/esm/notifications/events/adjustment/index.js +2 -2
  399. package/dist/esm/notifications/events/business/business-created-event.js +3 -3
  400. package/dist/esm/notifications/events/business/business-imported-event.js +3 -3
  401. package/dist/esm/notifications/events/business/business-updated-event.js +3 -3
  402. package/dist/esm/notifications/events/business/index.js +3 -3
  403. package/dist/esm/notifications/events/customer/customer-created-event.js +3 -3
  404. package/dist/esm/notifications/events/customer/customer-imported-event.js +3 -3
  405. package/dist/esm/notifications/events/customer/customer-updated-event.js +3 -3
  406. package/dist/esm/notifications/events/customer/index.js +3 -3
  407. package/dist/esm/notifications/events/discount/discount-created-event.js +3 -3
  408. package/dist/esm/notifications/events/discount/discount-imported-event.js +3 -3
  409. package/dist/esm/notifications/events/discount/discount-updated-event.js +3 -3
  410. package/dist/esm/notifications/events/discount/index.js +3 -3
  411. package/dist/esm/notifications/events/index.js +11 -11
  412. package/dist/esm/notifications/events/payout/index.js +2 -2
  413. package/dist/esm/notifications/events/payout/payout-created-event.js +3 -3
  414. package/dist/esm/notifications/events/payout/payout-paid-event.js +3 -3
  415. package/dist/esm/notifications/events/price/index.js +3 -3
  416. package/dist/esm/notifications/events/price/price-created-event.js +3 -3
  417. package/dist/esm/notifications/events/price/price-imported-event.js +3 -3
  418. package/dist/esm/notifications/events/price/price-updated-event.js +3 -3
  419. package/dist/esm/notifications/events/product/index.js +3 -3
  420. package/dist/esm/notifications/events/product/product-created-event.js +3 -3
  421. package/dist/esm/notifications/events/product/product-imported-event.js +3 -3
  422. package/dist/esm/notifications/events/product/product-updated-event.js +3 -3
  423. package/dist/esm/notifications/events/report/index.js +2 -2
  424. package/dist/esm/notifications/events/report/report-created-event.js +3 -3
  425. package/dist/esm/notifications/events/report/report-updated-event.js +3 -3
  426. package/dist/esm/notifications/events/subscription/index.js +9 -9
  427. package/dist/esm/notifications/events/subscription/subscription-activated-event.js +3 -3
  428. package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +3 -3
  429. package/dist/esm/notifications/events/subscription/subscription-created-event.js +3 -3
  430. package/dist/esm/notifications/events/subscription/subscription-imported-event.js +3 -3
  431. package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +3 -3
  432. package/dist/esm/notifications/events/subscription/subscription-paused-event.js +3 -3
  433. package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +3 -3
  434. package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +3 -3
  435. package/dist/esm/notifications/events/subscription/subscription-updated-event.js +3 -3
  436. package/dist/esm/notifications/events/transaction/index.js +9 -9
  437. package/dist/esm/notifications/events/transaction/transaction-billed-event.js +3 -3
  438. package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +3 -3
  439. package/dist/esm/notifications/events/transaction/transaction-completed-event.js +3 -3
  440. package/dist/esm/notifications/events/transaction/transaction-created-event.js +3 -3
  441. package/dist/esm/notifications/events/transaction/transaction-paid-event.js +3 -3
  442. package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +3 -3
  443. package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +3 -3
  444. package/dist/esm/notifications/events/transaction/transaction-ready-event.js +3 -3
  445. package/dist/esm/notifications/events/transaction/transaction-updated-event.js +3 -3
  446. package/dist/esm/notifications/helpers/index.js +3 -3
  447. package/dist/esm/notifications/helpers/webhooks.js +4 -4
  448. package/dist/esm/notifications/index.js +4 -4
  449. package/dist/esm/notifications/types/address/index.js +1 -1
  450. package/dist/esm/notifications/types/adjustment/index.js +6 -6
  451. package/dist/esm/notifications/types/business/index.js +2 -2
  452. package/dist/esm/notifications/types/customer/index.js +1 -1
  453. package/dist/esm/notifications/types/discount/index.js +1 -1
  454. package/dist/esm/notifications/types/index.js +12 -12
  455. package/dist/esm/notifications/types/payout/index.js +1 -1
  456. package/dist/esm/notifications/types/price/index.js +2 -2
  457. package/dist/esm/notifications/types/product/index.js +1 -1
  458. package/dist/esm/notifications/types/report/index.js +2 -2
  459. package/dist/esm/notifications/types/shared/index.js +22 -22
  460. package/dist/esm/notifications/types/subscription/index.js +7 -7
  461. package/dist/esm/notifications/types/transaction/index.js +6 -6
  462. package/dist/esm/paddle.js +5 -5
  463. package/dist/esm/resources/addresses/index.js +3 -3
  464. package/dist/esm/resources/addresses/operations/index.js +3 -3
  465. package/dist/esm/resources/adjustments/index.js +3 -3
  466. package/dist/esm/resources/adjustments/operations/index.js +2 -2
  467. package/dist/esm/resources/businesses/index.js +3 -3
  468. package/dist/esm/resources/businesses/operations/index.js +3 -3
  469. package/dist/esm/resources/customers/index.js +3 -3
  470. package/dist/esm/resources/customers/operations/index.js +4 -4
  471. package/dist/esm/resources/discounts/index.js +3 -3
  472. package/dist/esm/resources/discounts/operations/index.js +3 -3
  473. package/dist/esm/resources/event-types/index.js +2 -2
  474. package/dist/esm/resources/events/index.js +3 -3
  475. package/dist/esm/resources/events/operations/index.js +1 -1
  476. package/dist/esm/resources/index.js +14 -14
  477. package/dist/esm/resources/notification-settings/index.js +3 -3
  478. package/dist/esm/resources/notification-settings/operations/index.js +2 -2
  479. package/dist/esm/resources/notifications/index.js +3 -3
  480. package/dist/esm/resources/notifications/operations/index.js +2 -2
  481. package/dist/esm/resources/prices/index.js +3 -3
  482. package/dist/esm/resources/prices/operations/index.js +4 -4
  483. package/dist/esm/resources/pricing-preview/index.js +3 -3
  484. package/dist/esm/resources/pricing-preview/operations/index.js +1 -1
  485. package/dist/esm/resources/products/index.js +3 -3
  486. package/dist/esm/resources/products/operations/index.js +4 -4
  487. package/dist/esm/resources/reports/index.js +3 -3
  488. package/dist/esm/resources/reports/operations/index.js +2 -2
  489. package/dist/esm/resources/subscriptions/index.js +3 -3
  490. package/dist/esm/resources/subscriptions/operations/index.js +7 -7
  491. package/dist/esm/resources/transactions/index.js +3 -3
  492. package/dist/esm/resources/transactions/operations/index.js +7 -7
  493. package/dist/esm/types/address/index.js +1 -1
  494. package/dist/esm/types/adjustment/index.js +4 -4
  495. package/dist/esm/types/business/index.js +2 -2
  496. package/dist/esm/types/customer/index.js +3 -3
  497. package/dist/esm/types/discount/index.js +1 -1
  498. package/dist/esm/types/event-types/index.js +1 -1
  499. package/dist/esm/types/events/index.js +1 -1
  500. package/dist/esm/types/index.js +17 -17
  501. package/dist/esm/types/notification-settings/index.js +1 -1
  502. package/dist/esm/types/notifications/index.js +3 -3
  503. package/dist/esm/types/payout/index.js +1 -1
  504. package/dist/esm/types/price/index.js +3 -3
  505. package/dist/esm/types/pricing-preview/index.js +5 -5
  506. package/dist/esm/types/product/index.js +1 -1
  507. package/dist/esm/types/report/index.js +3 -3
  508. package/dist/esm/types/shared/index.js +29 -29
  509. package/dist/esm/types/subscription/index.js +12 -12
  510. package/dist/esm/types/transaction/index.js +15 -15
  511. package/dist/esm/version.js +1 -1
  512. package/dist/types/entities/address/address-collection.d.ts +3 -3
  513. package/dist/types/entities/address/address.d.ts +3 -3
  514. package/dist/types/entities/address/index.d.ts +2 -2
  515. package/dist/types/entities/adjustment/adjustment-collection.d.ts +3 -3
  516. package/dist/types/entities/adjustment/adjustment-item-totals.d.ts +1 -1
  517. package/dist/types/entities/adjustment/adjustment-item.d.ts +4 -3
  518. package/dist/types/entities/adjustment/adjustment-proration.d.ts +2 -2
  519. package/dist/types/entities/adjustment/adjustment-time-period.d.ts +1 -1
  520. package/dist/types/entities/adjustment/adjustment.d.ts +4 -3
  521. package/dist/types/entities/adjustment/index.d.ts +6 -6
  522. package/dist/types/entities/business/business-collection.d.ts +3 -3
  523. package/dist/types/entities/business/business.d.ts +4 -3
  524. package/dist/types/entities/business/contacts.d.ts +1 -1
  525. package/dist/types/entities/business/index.d.ts +3 -3
  526. package/dist/types/entities/customer/credit-balance.d.ts +3 -3
  527. package/dist/types/entities/customer/customer-balance.d.ts +1 -1
  528. package/dist/types/entities/customer/customer-collection.d.ts +3 -3
  529. package/dist/types/entities/customer/customer.d.ts +3 -3
  530. package/dist/types/entities/customer/index.d.ts +4 -4
  531. package/dist/types/entities/discount/discount-collection.d.ts +3 -3
  532. package/dist/types/entities/discount/discount.d.ts +3 -3
  533. package/dist/types/entities/discount/index.d.ts +2 -2
  534. package/dist/types/entities/event-types/event-type.d.ts +2 -2
  535. package/dist/types/entities/event-types/index.d.ts +1 -1
  536. package/dist/types/entities/events/event-collection.d.ts +3 -3
  537. package/dist/types/entities/events/event.d.ts +1 -1
  538. package/dist/types/entities/events/index.d.ts +1 -1
  539. package/dist/types/entities/index.d.ts +16 -16
  540. package/dist/types/entities/notification-settings/index.d.ts +1 -1
  541. package/dist/types/entities/notification-settings/notification-settings.d.ts +3 -3
  542. package/dist/types/entities/notifications/index.d.ts +5 -5
  543. package/dist/types/entities/notifications/notification-collection.d.ts +3 -3
  544. package/dist/types/entities/notifications/notification-log-collection.d.ts +3 -3
  545. package/dist/types/entities/notifications/notification.d.ts +3 -3
  546. package/dist/types/entities/notifications/replay-notification.d.ts +1 -1
  547. package/dist/types/entities/payout/index.d.ts +1 -1
  548. package/dist/types/entities/payout/payout.d.ts +2 -2
  549. package/dist/types/entities/price/index.d.ts +3 -3
  550. package/dist/types/entities/price/price-collection.d.ts +3 -3
  551. package/dist/types/entities/price/price-quantity.d.ts +1 -1
  552. package/dist/types/entities/price/price.d.ts +5 -3
  553. package/dist/types/entities/pricing-preview/index.d.ts +4 -4
  554. package/dist/types/entities/pricing-preview/pricing-preview-details.d.ts +2 -2
  555. package/dist/types/entities/pricing-preview/pricing-preview-discounts.d.ts +2 -2
  556. package/dist/types/entities/pricing-preview/pricing-preview-line-item.d.ts +5 -5
  557. package/dist/types/entities/pricing-preview/pricing-preview.d.ts +4 -4
  558. package/dist/types/entities/product/index.d.ts +2 -2
  559. package/dist/types/entities/product/product-collection.d.ts +3 -3
  560. package/dist/types/entities/product/product.d.ts +3 -3
  561. package/dist/types/entities/report/index.d.ts +4 -4
  562. package/dist/types/entities/report/report-collection.d.ts +3 -3
  563. package/dist/types/entities/report/report-csv.d.ts +1 -1
  564. package/dist/types/entities/report/report-filters.d.ts +2 -2
  565. package/dist/types/entities/report/report.d.ts +3 -3
  566. package/dist/types/entities/shared/adjustment-original-amount.d.ts +2 -2
  567. package/dist/types/entities/shared/billing-details.d.ts +2 -2
  568. package/dist/types/entities/shared/chargeback-fee.d.ts +2 -2
  569. package/dist/types/entities/shared/import-meta.d.ts +1 -1
  570. package/dist/types/entities/shared/index.d.ts +20 -20
  571. package/dist/types/entities/shared/money.d.ts +2 -2
  572. package/dist/types/entities/shared/payment-card.d.ts +2 -2
  573. package/dist/types/entities/shared/payment-method-details.d.ts +3 -3
  574. package/dist/types/entities/shared/payout-totals-adjustment.d.ts +3 -3
  575. package/dist/types/entities/shared/tax-rates-used.d.ts +2 -2
  576. package/dist/types/entities/shared/time-period.d.ts +2 -2
  577. package/dist/types/entities/shared/total-adjustments.d.ts +2 -2
  578. package/dist/types/entities/shared/totals.d.ts +1 -1
  579. package/dist/types/entities/shared/transaction-checkout.d.ts +1 -1
  580. package/dist/types/entities/shared/transaction-payment-attempt.d.ts +3 -3
  581. package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +3 -3
  582. package/dist/types/entities/shared/transaction-payout-totals.d.ts +2 -2
  583. package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +2 -2
  584. package/dist/types/entities/shared/transaction-totals.d.ts +2 -2
  585. package/dist/types/entities/shared/unit-price-override.d.ts +3 -3
  586. package/dist/types/entities/shared/unit-totals.d.ts +1 -1
  587. package/dist/types/entities/subscription/index.d.ts +15 -15
  588. package/dist/types/entities/subscription/next-transaction-adjustment-item.d.ts +3 -3
  589. package/dist/types/entities/subscription/next-transaction-adjustment-preview.d.ts +3 -3
  590. package/dist/types/entities/subscription/next-transaction.d.ts +4 -2
  591. package/dist/types/entities/subscription/subscription-collection.d.ts +3 -3
  592. package/dist/types/entities/subscription/subscription-discount.d.ts +1 -1
  593. package/dist/types/entities/subscription/subscription-item.d.ts +4 -3
  594. package/dist/types/entities/subscription/subscription-management.d.ts +1 -1
  595. package/dist/types/entities/subscription/subscription-preview-summary-result.d.ts +2 -2
  596. package/dist/types/entities/subscription/subscription-preview-update-summary.d.ts +3 -2
  597. package/dist/types/entities/subscription/subscription-preview.d.ts +9 -3
  598. package/dist/types/entities/subscription/subscription-scheduled-change.d.ts +2 -2
  599. package/dist/types/entities/subscription/subscription-time-period.d.ts +1 -1
  600. package/dist/types/entities/subscription/subscription.d.ts +9 -3
  601. package/dist/types/entities/subscription/transaction-details-preview.d.ts +3 -2
  602. package/dist/types/entities/subscription/transaction-line-item-preview.d.ts +3 -2
  603. package/dist/types/entities/transaction/address-preview.d.ts +2 -2
  604. package/dist/types/entities/transaction/adjustment-totals-breakdown.d.ts +1 -1
  605. package/dist/types/entities/transaction/adjustment-totals.d.ts +3 -3
  606. package/dist/types/entities/transaction/index.d.ts +16 -16
  607. package/dist/types/entities/transaction/proration.d.ts +2 -2
  608. package/dist/types/entities/transaction/transaction-adjustment-item.d.ts +4 -3
  609. package/dist/types/entities/transaction/transaction-adjustment.d.ts +4 -3
  610. package/dist/types/entities/transaction/transaction-collection.d.ts +3 -3
  611. package/dist/types/entities/transaction/transaction-details.d.ts +3 -2
  612. package/dist/types/entities/transaction/transaction-invoice-pdf.d.ts +1 -1
  613. package/dist/types/entities/transaction/transaction-item-preview.d.ts +3 -2
  614. package/dist/types/entities/transaction/transaction-item.d.ts +3 -2
  615. package/dist/types/entities/transaction/transaction-line-item.d.ts +4 -2
  616. package/dist/types/entities/transaction/transaction-preview.d.ts +5 -3
  617. package/dist/types/entities/transaction/transaction-proration.d.ts +2 -2
  618. package/dist/types/entities/transaction/transaction.d.ts +3 -3
  619. package/dist/types/entities/transaction/transactions-time-period.d.ts +1 -1
  620. package/dist/types/enums/adjustment/index.d.ts +4 -4
  621. package/dist/types/enums/discount/index.d.ts +2 -2
  622. package/dist/types/enums/index.d.ts +9 -9
  623. package/dist/types/enums/notification/index.d.ts +2 -2
  624. package/dist/types/enums/notification-settings/index.d.ts +1 -1
  625. package/dist/types/enums/payout/index.d.ts +1 -1
  626. package/dist/types/enums/report/index.d.ts +4 -4
  627. package/dist/types/enums/shared/index.d.ts +15 -15
  628. package/dist/types/enums/subscription/index.d.ts +6 -6
  629. package/dist/types/enums/transaction/index.d.ts +1 -1
  630. package/dist/types/index.d.ts +8 -8
  631. package/dist/types/internal/api/client.d.ts +3 -3
  632. package/dist/types/internal/api/constants.d.ts +1 -1
  633. package/dist/types/internal/api/index.d.ts +2 -2
  634. package/dist/types/internal/base/base-resource.d.ts +2 -2
  635. package/dist/types/internal/base/collection.d.ts +2 -2
  636. package/dist/types/internal/base/index.d.ts +4 -4
  637. package/dist/types/internal/errors/generic.d.ts +1 -1
  638. package/dist/types/internal/index.d.ts +4 -4
  639. package/dist/types/notifications/entities/address/address-notification.d.ts +3 -3
  640. package/dist/types/notifications/entities/address/index.d.ts +1 -1
  641. package/dist/types/notifications/entities/adjustment/adjustment-item-notification.d.ts +4 -3
  642. package/dist/types/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +1 -1
  643. package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +4 -3
  644. package/dist/types/notifications/entities/adjustment/adjustment-proration-notification.d.ts +2 -2
  645. package/dist/types/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +1 -1
  646. package/dist/types/notifications/entities/adjustment/index.d.ts +5 -5
  647. package/dist/types/notifications/entities/business/business-notification.d.ts +5 -4
  648. package/dist/types/notifications/entities/business/contacts-notification.d.ts +1 -1
  649. package/dist/types/notifications/entities/business/index.d.ts +2 -2
  650. package/dist/types/notifications/entities/customer/customer-notification.d.ts +4 -4
  651. package/dist/types/notifications/entities/customer/index.d.ts +1 -1
  652. package/dist/types/notifications/entities/discount/discount-notification.d.ts +4 -4
  653. package/dist/types/notifications/entities/discount/index.d.ts +1 -1
  654. package/dist/types/notifications/entities/index.d.ts +12 -12
  655. package/dist/types/notifications/entities/payout/index.d.ts +1 -1
  656. package/dist/types/notifications/entities/payout/payout-notification.d.ts +2 -2
  657. package/dist/types/notifications/entities/price/index.d.ts +2 -2
  658. package/dist/types/notifications/entities/price/price-notification.d.ts +5 -4
  659. package/dist/types/notifications/entities/price/price-quantity-notification.d.ts +1 -1
  660. package/dist/types/notifications/entities/product/index.d.ts +1 -1
  661. package/dist/types/notifications/entities/product/product-notification.d.ts +4 -4
  662. package/dist/types/notifications/entities/report/index.d.ts +2 -2
  663. package/dist/types/notifications/entities/report/report-filters-notification.d.ts +2 -2
  664. package/dist/types/notifications/entities/report/report-notification.d.ts +3 -3
  665. package/dist/types/notifications/entities/shared/adjustment-original-amount-notification.d.ts +2 -2
  666. package/dist/types/notifications/entities/shared/billing-details-notification.d.ts +2 -2
  667. package/dist/types/notifications/entities/shared/chargeback-fee-notification.d.ts +2 -2
  668. package/dist/types/notifications/entities/shared/import-meta-notification.d.ts +1 -1
  669. package/dist/types/notifications/entities/shared/index.d.ts +20 -20
  670. package/dist/types/notifications/entities/shared/money-notification.d.ts +2 -2
  671. package/dist/types/notifications/entities/shared/payment-card-notification.d.ts +2 -2
  672. package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +3 -3
  673. package/dist/types/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +3 -3
  674. package/dist/types/notifications/entities/shared/tax-rates-used-notification.d.ts +2 -2
  675. package/dist/types/notifications/entities/shared/time-period-notification.d.ts +2 -2
  676. package/dist/types/notifications/entities/shared/total-adjustments-notification.d.ts +2 -2
  677. package/dist/types/notifications/entities/shared/totals-notification.d.ts +1 -1
  678. package/dist/types/notifications/entities/shared/transaction-checkout-notification.d.ts +1 -1
  679. package/dist/types/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +3 -3
  680. package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +3 -3
  681. package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +2 -2
  682. package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +2 -2
  683. package/dist/types/notifications/entities/shared/transaction-totals-notification.d.ts +2 -2
  684. package/dist/types/notifications/entities/shared/unit-price-override-notification.d.ts +3 -3
  685. package/dist/types/notifications/entities/shared/unit-totals-notification.d.ts +1 -1
  686. package/dist/types/notifications/entities/subscription/index.d.ts +6 -6
  687. package/dist/types/notifications/entities/subscription/subscription-discount-notification.d.ts +1 -1
  688. package/dist/types/notifications/entities/subscription/subscription-item-notification.d.ts +4 -3
  689. package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +8 -4
  690. package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +5 -4
  691. package/dist/types/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +2 -2
  692. package/dist/types/notifications/entities/subscription/subscription-time-period-notification.d.ts +1 -1
  693. package/dist/types/notifications/entities/transaction/index.d.ts +6 -6
  694. package/dist/types/notifications/entities/transaction/transaction-details-notification.d.ts +3 -2
  695. package/dist/types/notifications/entities/transaction/transaction-item-notification.d.ts +3 -2
  696. package/dist/types/notifications/entities/transaction/transaction-line-item-notification.d.ts +4 -2
  697. package/dist/types/notifications/entities/transaction/transaction-notification.d.ts +7 -4
  698. package/dist/types/notifications/entities/transaction/transaction-proration-notification.d.ts +2 -2
  699. package/dist/types/notifications/entities/transaction/transactions-time-period-notification.d.ts +1 -1
  700. package/dist/types/notifications/events/address/address-created-event.d.ts +5 -5
  701. package/dist/types/notifications/events/address/address-imported-event.d.ts +5 -5
  702. package/dist/types/notifications/events/address/address-updated-event.d.ts +5 -5
  703. package/dist/types/notifications/events/address/index.d.ts +3 -3
  704. package/dist/types/notifications/events/adjustment/adjustment-created-event.d.ts +5 -5
  705. package/dist/types/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -5
  706. package/dist/types/notifications/events/adjustment/index.d.ts +2 -2
  707. package/dist/types/notifications/events/business/business-created-event.d.ts +5 -5
  708. package/dist/types/notifications/events/business/business-imported-event.d.ts +5 -5
  709. package/dist/types/notifications/events/business/business-updated-event.d.ts +5 -5
  710. package/dist/types/notifications/events/business/index.d.ts +3 -3
  711. package/dist/types/notifications/events/customer/customer-created-event.d.ts +5 -5
  712. package/dist/types/notifications/events/customer/customer-imported-event.d.ts +5 -5
  713. package/dist/types/notifications/events/customer/customer-updated-event.d.ts +5 -5
  714. package/dist/types/notifications/events/customer/index.d.ts +3 -3
  715. package/dist/types/notifications/events/discount/discount-created-event.d.ts +5 -5
  716. package/dist/types/notifications/events/discount/discount-imported-event.d.ts +5 -5
  717. package/dist/types/notifications/events/discount/discount-updated-event.d.ts +5 -5
  718. package/dist/types/notifications/events/discount/index.d.ts +3 -3
  719. package/dist/types/notifications/events/index.d.ts +11 -11
  720. package/dist/types/notifications/events/payout/index.d.ts +2 -2
  721. package/dist/types/notifications/events/payout/payout-created-event.d.ts +5 -5
  722. package/dist/types/notifications/events/payout/payout-paid-event.d.ts +5 -5
  723. package/dist/types/notifications/events/price/index.d.ts +3 -3
  724. package/dist/types/notifications/events/price/price-created-event.d.ts +5 -5
  725. package/dist/types/notifications/events/price/price-imported-event.d.ts +5 -5
  726. package/dist/types/notifications/events/price/price-updated-event.d.ts +5 -5
  727. package/dist/types/notifications/events/product/index.d.ts +3 -3
  728. package/dist/types/notifications/events/product/product-created-event.d.ts +5 -5
  729. package/dist/types/notifications/events/product/product-imported-event.d.ts +5 -5
  730. package/dist/types/notifications/events/product/product-updated-event.d.ts +5 -5
  731. package/dist/types/notifications/events/report/index.d.ts +2 -2
  732. package/dist/types/notifications/events/report/report-created-event.d.ts +5 -5
  733. package/dist/types/notifications/events/report/report-updated-event.d.ts +5 -5
  734. package/dist/types/notifications/events/subscription/index.d.ts +9 -9
  735. package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +5 -5
  736. package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +5 -5
  737. package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +5 -5
  738. package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +5 -5
  739. package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +5 -5
  740. package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +5 -5
  741. package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +5 -5
  742. package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +5 -5
  743. package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +5 -5
  744. package/dist/types/notifications/events/transaction/index.d.ts +9 -9
  745. package/dist/types/notifications/events/transaction/transaction-billed-event.d.ts +5 -5
  746. package/dist/types/notifications/events/transaction/transaction-canceled-event.d.ts +5 -5
  747. package/dist/types/notifications/events/transaction/transaction-completed-event.d.ts +5 -5
  748. package/dist/types/notifications/events/transaction/transaction-created-event.d.ts +5 -5
  749. package/dist/types/notifications/events/transaction/transaction-paid-event.d.ts +5 -5
  750. package/dist/types/notifications/events/transaction/transaction-past-due-event.d.ts +5 -5
  751. package/dist/types/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -5
  752. package/dist/types/notifications/events/transaction/transaction-ready-event.d.ts +5 -5
  753. package/dist/types/notifications/events/transaction/transaction-updated-event.d.ts +5 -5
  754. package/dist/types/notifications/helpers/index.d.ts +3 -3
  755. package/dist/types/notifications/helpers/types.d.ts +1 -1
  756. package/dist/types/notifications/helpers/webhooks.d.ts +2 -2
  757. package/dist/types/notifications/index.d.ts +4 -4
  758. package/dist/types/notifications/types/address/address-notification-response.d.ts +2 -2
  759. package/dist/types/notifications/types/address/index.d.ts +1 -1
  760. package/dist/types/notifications/types/adjustment/adjustment-item-notification-response.d.ts +3 -2
  761. package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +3 -2
  762. package/dist/types/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +2 -2
  763. package/dist/types/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +1 -1
  764. package/dist/types/notifications/types/adjustment/index.d.ts +6 -6
  765. package/dist/types/notifications/types/business/business-notification-response.d.ts +4 -3
  766. package/dist/types/notifications/types/business/index.d.ts +2 -2
  767. package/dist/types/notifications/types/customer/customer-notification-response.d.ts +3 -3
  768. package/dist/types/notifications/types/customer/index.d.ts +1 -1
  769. package/dist/types/notifications/types/discount/discount-notification-response.d.ts +3 -3
  770. package/dist/types/notifications/types/discount/index.d.ts +1 -1
  771. package/dist/types/notifications/types/index.d.ts +12 -12
  772. package/dist/types/notifications/types/payout/index.d.ts +1 -1
  773. package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -1
  774. package/dist/types/notifications/types/price/index.d.ts +2 -2
  775. package/dist/types/notifications/types/price/price-notification-response.d.ts +4 -3
  776. package/dist/types/notifications/types/product/index.d.ts +1 -1
  777. package/dist/types/notifications/types/product/product-notification-response.d.ts +3 -3
  778. package/dist/types/notifications/types/report/index.d.ts +2 -2
  779. package/dist/types/notifications/types/report/report-filters-notification-response.d.ts +1 -1
  780. package/dist/types/notifications/types/report/report-notification-response.d.ts +2 -2
  781. package/dist/types/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +1 -1
  782. package/dist/types/notifications/types/shared/billing-details-notification-response.d.ts +1 -1
  783. package/dist/types/notifications/types/shared/chargeback-fee.d.ts +1 -1
  784. package/dist/types/notifications/types/shared/index.d.ts +22 -22
  785. package/dist/types/notifications/types/shared/money-notification-response.d.ts +1 -1
  786. package/dist/types/notifications/types/shared/payment-card-notification-response.d.ts +1 -1
  787. package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -2
  788. package/dist/types/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +2 -2
  789. package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +7 -3
  790. package/dist/types/notifications/types/shared/shared-product-notification-response.d.ts +3 -3
  791. package/dist/types/notifications/types/shared/tax-rates-used-notification-response.d.ts +1 -1
  792. package/dist/types/notifications/types/shared/time-period-notification.d.ts +1 -1
  793. package/dist/types/notifications/types/shared/total-adjustments-notification-response.d.ts +1 -1
  794. package/dist/types/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +2 -2
  795. package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +2 -2
  796. package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +1 -1
  797. package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -1
  798. package/dist/types/notifications/types/shared/transaction-totals-notification-response.d.ts +1 -1
  799. package/dist/types/notifications/types/shared/unit-price-override-notification-response.d.ts +2 -2
  800. package/dist/types/notifications/types/subscription/index.d.ts +7 -7
  801. package/dist/types/notifications/types/subscription/subscription-item-notification-response.d.ts +3 -2
  802. package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +7 -3
  803. package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +4 -3
  804. package/dist/types/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +1 -1
  805. package/dist/types/notifications/types/transaction/index.d.ts +6 -6
  806. package/dist/types/notifications/types/transaction/transaction-details-notification-response.d.ts +2 -1
  807. package/dist/types/notifications/types/transaction/transaction-item-notification-response.d.ts +2 -1
  808. package/dist/types/notifications/types/transaction/transaction-line-item-notification-response.d.ts +2 -1
  809. package/dist/types/notifications/types/transaction/transaction-notification-response.d.ts +6 -3
  810. package/dist/types/notifications/types/transaction/transaction-proration-notification-response.d.ts +1 -1
  811. package/dist/types/paddle.d.ts +4 -4
  812. package/dist/types/resources/addresses/index.d.ts +4 -4
  813. package/dist/types/resources/addresses/operations/create-address-request-body.d.ts +2 -2
  814. package/dist/types/resources/addresses/operations/index.d.ts +3 -3
  815. package/dist/types/resources/addresses/operations/list-address-query-parameters.d.ts +1 -1
  816. package/dist/types/resources/addresses/operations/update-address-request-body.d.ts +2 -2
  817. package/dist/types/resources/adjustments/index.d.ts +4 -4
  818. package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +1 -1
  819. package/dist/types/resources/adjustments/operations/index.d.ts +2 -2
  820. package/dist/types/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +1 -1
  821. package/dist/types/resources/businesses/index.d.ts +4 -4
  822. package/dist/types/resources/businesses/operations/create-business-request-body.d.ts +1 -1
  823. package/dist/types/resources/businesses/operations/index.d.ts +3 -3
  824. package/dist/types/resources/businesses/operations/list-business-query-parameters.d.ts +1 -1
  825. package/dist/types/resources/businesses/operations/update-business-request-body.d.ts +2 -2
  826. package/dist/types/resources/customers/index.d.ts +4 -4
  827. package/dist/types/resources/customers/operations/create-customer-request-body.d.ts +1 -1
  828. package/dist/types/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
  829. package/dist/types/resources/customers/operations/index.d.ts +4 -4
  830. package/dist/types/resources/customers/operations/list-customer-query-parameters.d.ts +1 -1
  831. package/dist/types/resources/customers/operations/update-customer-request-body.d.ts +2 -2
  832. package/dist/types/resources/discounts/index.d.ts +4 -4
  833. package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -2
  834. package/dist/types/resources/discounts/operations/index.d.ts +3 -3
  835. package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +1 -1
  836. package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -2
  837. package/dist/types/resources/event-types/index.d.ts +2 -2
  838. package/dist/types/resources/events/index.d.ts +4 -4
  839. package/dist/types/resources/events/operations/index.d.ts +1 -1
  840. package/dist/types/resources/index.d.ts +14 -14
  841. package/dist/types/resources/notification-settings/index.d.ts +4 -4
  842. package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -2
  843. package/dist/types/resources/notification-settings/operations/index.d.ts +2 -2
  844. package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +1 -1
  845. package/dist/types/resources/notifications/index.d.ts +4 -4
  846. package/dist/types/resources/notifications/operations/index.d.ts +2 -2
  847. package/dist/types/resources/notifications/operations/list-notification-query-parameters.d.ts +1 -1
  848. package/dist/types/resources/prices/index.d.ts +4 -4
  849. package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
  850. package/dist/types/resources/prices/operations/index.d.ts +4 -4
  851. package/dist/types/resources/prices/operations/list-price-query-parameters.d.ts +1 -1
  852. package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
  853. package/dist/types/resources/pricing-preview/index.d.ts +4 -4
  854. package/dist/types/resources/pricing-preview/operations/index.d.ts +1 -1
  855. package/dist/types/resources/pricing-preview/operations/pricing-preview-request-body.d.ts +2 -2
  856. package/dist/types/resources/products/index.d.ts +4 -4
  857. package/dist/types/resources/products/operations/create-product-request-body.d.ts +2 -2
  858. package/dist/types/resources/products/operations/index.d.ts +4 -4
  859. package/dist/types/resources/products/operations/list-product-query-parameters.d.ts +1 -1
  860. package/dist/types/resources/products/operations/update-product-request-body.d.ts +2 -2
  861. package/dist/types/resources/reports/index.d.ts +4 -4
  862. package/dist/types/resources/reports/operations/create-report-request-object.d.ts +2 -2
  863. package/dist/types/resources/reports/operations/index.d.ts +2 -2
  864. package/dist/types/resources/reports/operations/list-report-query-parameters.d.ts +1 -1
  865. package/dist/types/resources/subscriptions/index.d.ts +4 -4
  866. package/dist/types/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
  867. package/dist/types/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +2 -2
  868. package/dist/types/resources/subscriptions/operations/index.d.ts +7 -7
  869. package/dist/types/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +1 -1
  870. package/dist/types/resources/subscriptions/operations/pause-subscription-request-object.d.ts +1 -1
  871. package/dist/types/resources/subscriptions/operations/update-subscription-request-body.d.ts +2 -2
  872. package/dist/types/resources/transactions/index.d.ts +4 -4
  873. package/dist/types/resources/transactions/operations/create-transaction-request-body.d.ts +2 -2
  874. package/dist/types/resources/transactions/operations/index.d.ts +7 -7
  875. package/dist/types/resources/transactions/operations/list-transaction-query-parameters.d.ts +1 -1
  876. package/dist/types/resources/transactions/operations/transaction-preview-request-body.d.ts +2 -2
  877. package/dist/types/resources/transactions/operations/update-transaction-request-body.d.ts +2 -2
  878. package/dist/types/types/address/address-response.d.ts +2 -2
  879. package/dist/types/types/address/index.d.ts +1 -1
  880. package/dist/types/types/adjustment/adjustment-item-response.d.ts +3 -2
  881. package/dist/types/types/adjustment/adjustment-response.d.ts +3 -2
  882. package/dist/types/types/adjustment/adjustments-proration-response.d.ts +1 -1
  883. package/dist/types/types/adjustment/index.d.ts +4 -4
  884. package/dist/types/types/business/business-response.d.ts +3 -2
  885. package/dist/types/types/business/index.d.ts +2 -2
  886. package/dist/types/types/customer/credit-balance-response.d.ts +2 -2
  887. package/dist/types/types/customer/customer-response.d.ts +2 -2
  888. package/dist/types/types/customer/index.d.ts +3 -3
  889. package/dist/types/types/discount/discount-response.d.ts +2 -2
  890. package/dist/types/types/discount/index.d.ts +1 -1
  891. package/dist/types/types/event-types/event-type-response.d.ts +1 -1
  892. package/dist/types/types/event-types/index.d.ts +1 -1
  893. package/dist/types/types/events/events-response.d.ts +1 -1
  894. package/dist/types/types/events/index.d.ts +1 -1
  895. package/dist/types/types/index.d.ts +17 -17
  896. package/dist/types/types/notification-settings/index.d.ts +1 -1
  897. package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -2
  898. package/dist/types/types/notifications/index.d.ts +3 -3
  899. package/dist/types/types/notifications/notification.d.ts +3 -3
  900. package/dist/types/types/payout/index.d.ts +1 -1
  901. package/dist/types/types/payout/payout-response.d.ts +1 -1
  902. package/dist/types/types/price/index.d.ts +3 -3
  903. package/dist/types/types/price/non-catalog-price-request.d.ts +3 -3
  904. package/dist/types/types/price/price-response.d.ts +2 -2
  905. package/dist/types/types/price/subscription-non-catalog-price-request.d.ts +3 -3
  906. package/dist/types/types/pricing-preview/index.d.ts +5 -5
  907. package/dist/types/types/pricing-preview/pricing-preview-details-response.d.ts +1 -1
  908. package/dist/types/types/pricing-preview/pricing-preview-discounts-response.d.ts +1 -1
  909. package/dist/types/types/pricing-preview/pricing-preview-line-item-response.d.ts +4 -4
  910. package/dist/types/types/pricing-preview/pricing-preview-response.d.ts +4 -4
  911. package/dist/types/types/product/index.d.ts +1 -1
  912. package/dist/types/types/product/product-response.d.ts +3 -2
  913. package/dist/types/types/report/index.d.ts +3 -3
  914. package/dist/types/types/report/report-filters.d.ts +1 -1
  915. package/dist/types/types/report/report.d.ts +2 -2
  916. package/dist/types/types/shared/adjustment-original-amount-response.d.ts +1 -1
  917. package/dist/types/types/shared/billing-details-create.d.ts +1 -1
  918. package/dist/types/types/shared/billing-details-response.d.ts +1 -1
  919. package/dist/types/types/shared/billing-details-update.d.ts +1 -1
  920. package/dist/types/types/shared/chargeback-fee.d.ts +1 -1
  921. package/dist/types/types/shared/index.d.ts +29 -29
  922. package/dist/types/types/shared/money-response.d.ts +1 -1
  923. package/dist/types/types/shared/money.d.ts +1 -1
  924. package/dist/types/types/shared/payment-card-response.d.ts +1 -1
  925. package/dist/types/types/shared/payment-method-details.d.ts +2 -2
  926. package/dist/types/types/shared/payout-totals-adjustment-response.d.ts +2 -2
  927. package/dist/types/types/shared/tax-rates-used-response.d.ts +1 -1
  928. package/dist/types/types/shared/time-period.d.ts +1 -1
  929. package/dist/types/types/shared/total-adjustments-response.d.ts +1 -1
  930. package/dist/types/types/shared/transaction-details-preview-response.d.ts +3 -1
  931. package/dist/types/types/shared/transaction-line-item-preview-response.d.ts +3 -1
  932. package/dist/types/types/shared/transaction-payment-attempt-response.d.ts +2 -2
  933. package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +2 -2
  934. package/dist/types/types/shared/transaction-payout-totals-response.d.ts +1 -1
  935. package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -1
  936. package/dist/types/types/shared/transaction-totals-response.d.ts +1 -1
  937. package/dist/types/types/shared/unit-price-override-response.d.ts +2 -2
  938. package/dist/types/types/shared/unit-price-override.d.ts +2 -2
  939. package/dist/types/types/subscription/index.d.ts +12 -12
  940. package/dist/types/types/subscription/next-transaction-response.d.ts +3 -1
  941. package/dist/types/types/subscription/subscription-item-response.d.ts +3 -2
  942. package/dist/types/types/subscription/subscription-preview-response.d.ts +9 -2
  943. package/dist/types/types/subscription/subscription-preview-update-summary.d.ts +2 -1
  944. package/dist/types/types/subscription/subscription-response.d.ts +8 -2
  945. package/dist/types/types/subscription/subscription-result-response.d.ts +1 -1
  946. package/dist/types/types/subscription/subscription-scheduled-change-response.d.ts +1 -1
  947. package/dist/types/types/transaction/adjustment-totals-response.d.ts +2 -2
  948. package/dist/types/types/transaction/index.d.ts +15 -15
  949. package/dist/types/types/transaction/transaction-adjustment-item-response.d.ts +3 -2
  950. package/dist/types/types/transaction/transaction-adjustment-response.d.ts +3 -2
  951. package/dist/types/types/transaction/transaction-details-response.d.ts +2 -1
  952. package/dist/types/types/transaction/transaction-item-response.d.ts +2 -1
  953. package/dist/types/types/transaction/transaction-item.d.ts +1 -1
  954. package/dist/types/types/transaction/transaction-line-item-response.d.ts +3 -1
  955. package/dist/types/types/transaction/transaction-preview-item.d.ts +1 -1
  956. package/dist/types/types/transaction/transaction-preview-response.d.ts +5 -5
  957. package/dist/types/types/transaction/transaction-proration-response.d.ts +1 -1
  958. package/dist/types/types/transaction/transaction-response.d.ts +11 -2
  959. package/dist/types/version.d.ts +1 -1
  960. package/package.json +1 -1
@@ -13,13 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Client = void 0;
16
- const constants_1 = require("./constants");
16
+ const environment_js_1 = require("./environment.js");
17
17
  const node_fetch_1 = __importDefault(require("node-fetch"));
18
- const version_1 = require("../../version");
19
- const environment_1 = require("./environment");
18
+ const constants_js_1 = require("./constants.js");
20
19
  const node_crypto_1 = require("node:crypto");
21
- const logger_1 = require("../base/logger");
22
- const case_helpers_1 = require("./case-helpers");
20
+ const version_js_1 = require("../../version.js");
21
+ const logger_js_1 = require("../base/logger.js");
22
+ const case_helpers_js_1 = require("./case-helpers.js");
23
23
  class Client {
24
24
  constructor(apiKey, options) {
25
25
  this.apiKey = apiKey;
@@ -27,7 +27,7 @@ class Client {
27
27
  this.baseUrl = this.getBaseUrl(this.options.environment);
28
28
  }
29
29
  getBaseUrl(environment) {
30
- const urlBasedOnEnv = constants_1.API_ENVIRONMENT_TO_BASE_URL_MAP[environment !== null && environment !== void 0 ? environment : environment_1.Environment.production];
30
+ const urlBasedOnEnv = constants_js_1.API_ENVIRONMENT_TO_BASE_URL_MAP[environment !== null && environment !== void 0 ? environment : environment_js_1.Environment.production];
31
31
  return urlBasedOnEnv || environment;
32
32
  }
33
33
  getHeaders() {
@@ -35,7 +35,7 @@ class Client {
35
35
  return {
36
36
  Authorization: `bearer ${this.apiKey}`,
37
37
  'Content-Type': 'application/json',
38
- 'user-agent': `PaddleSDK/node ${version_1.SDK_VERSION}`,
38
+ 'user-agent': `PaddleSDK/node ${version_js_1.SDK_VERSION}`,
39
39
  'X-Transaction-ID': uuid,
40
40
  };
41
41
  }
@@ -47,11 +47,11 @@ class Client {
47
47
  }
48
48
  const logUrl = finalUrl.split('?')[0];
49
49
  const headers = this.getHeaders();
50
- logger_1.Logger.logRequest('GET', logUrl, headers);
50
+ logger_js_1.Logger.logRequest('GET', logUrl, headers);
51
51
  const rawResponse = yield (0, node_fetch_1.default)(finalUrl, {
52
52
  headers,
53
53
  });
54
- logger_1.Logger.logResponse('GET', logUrl, headers, rawResponse);
54
+ logger_js_1.Logger.logResponse('GET', logUrl, headers, rawResponse);
55
55
  return rawResponse.json();
56
56
  });
57
57
  }
@@ -59,13 +59,13 @@ class Client {
59
59
  return __awaiter(this, void 0, void 0, function* () {
60
60
  const logUrl = url.split('?')[0];
61
61
  const headers = this.getHeaders();
62
- logger_1.Logger.logRequest('POST', logUrl, headers);
62
+ logger_js_1.Logger.logRequest('POST', logUrl, headers);
63
63
  const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
64
64
  method: 'POST',
65
- body: JSON.stringify((0, case_helpers_1.convertToSnakeCase)(requestBody)),
65
+ body: JSON.stringify((0, case_helpers_js_1.convertToSnakeCase)(requestBody)),
66
66
  headers,
67
67
  });
68
- logger_1.Logger.logResponse('POST', logUrl, headers, rawResponse);
68
+ logger_js_1.Logger.logResponse('POST', logUrl, headers, rawResponse);
69
69
  return rawResponse.json();
70
70
  });
71
71
  }
@@ -73,13 +73,13 @@ class Client {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  const logUrl = url.split('?')[0];
75
75
  const headers = this.getHeaders();
76
- logger_1.Logger.logRequest('PATCH', logUrl, headers);
76
+ logger_js_1.Logger.logRequest('PATCH', logUrl, headers);
77
77
  const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
78
78
  method: 'PATCH',
79
- body: JSON.stringify((0, case_helpers_1.convertToSnakeCase)(requestBody)),
79
+ body: JSON.stringify((0, case_helpers_js_1.convertToSnakeCase)(requestBody)),
80
80
  headers,
81
81
  });
82
- logger_1.Logger.logResponse('PATCH', logUrl, headers, rawResponse);
82
+ logger_js_1.Logger.logResponse('PATCH', logUrl, headers, rawResponse);
83
83
  return rawResponse.json();
84
84
  });
85
85
  }
@@ -87,12 +87,12 @@ class Client {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
88
  const logUrl = url.split('?')[0];
89
89
  const headers = this.getHeaders();
90
- logger_1.Logger.logRequest('DELETE', logUrl, headers);
90
+ logger_js_1.Logger.logRequest('DELETE', logUrl, headers);
91
91
  const rawResponse = yield (0, node_fetch_1.default)(`${this.baseUrl}${url}`, {
92
92
  method: 'DELETE',
93
93
  headers,
94
94
  });
95
- logger_1.Logger.logResponse('DELETE', logUrl, headers, rawResponse);
95
+ logger_js_1.Logger.logResponse('DELETE', logUrl, headers, rawResponse);
96
96
  return rawResponse;
97
97
  });
98
98
  }
@@ -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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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; } });
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; } });
@@ -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,10 +1,30 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
26
  exports.QueryParameters = void 0;
7
- const snakeCase_1 = __importDefault(require("lodash/snakeCase"));
27
+ const lodash = __importStar(require("lodash"));
8
28
  class QueryParameters {
9
29
  constructor(queryParameters) {
10
30
  this.queryParameters = queryParameters;
@@ -14,7 +34,7 @@ class QueryParameters {
14
34
  for (const key in this.queryParameters) {
15
35
  const value = this.queryParameters[key];
16
36
  if (key && value) {
17
- urlSearchParam.append((0, snakeCase_1.default)(key), `${value}`);
37
+ urlSearchParam.append(lodash.snakeCase(key), `${value}`);
18
38
  }
19
39
  }
20
40
  return '?' + urlSearchParam.toString();
@@ -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; } });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddressNotification = void 0;
4
- const entities_1 = require("../../../entities");
4
+ const index_js_1 = require("../../../entities/index.js");
5
5
  class AddressNotification {
6
6
  constructor(address) {
7
7
  var _a;
@@ -18,7 +18,7 @@ class AddressNotification {
18
18
  this.status = address.status;
19
19
  this.createdAt = address.created_at;
20
20
  this.updatedAt = address.updated_at;
21
- this.importMeta = address.import_meta ? new entities_1.ImportMeta(address.import_meta) : null;
21
+ this.importMeta = address.import_meta ? new index_js_1.ImportMeta(address.import_meta) : null;
22
22
  }
23
23
  }
24
24
  exports.AddressNotification = AddressNotification;
@@ -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("./address-notification"), exports);
17
+ __exportStar(require("./address-notification.js"), exports);
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdjustmentItemNotification = void 0;
4
- const index_1 = require("../index");
4
+ const adjustment_proration_notification_js_1 = require("./adjustment-proration-notification.js");
5
+ const adjustment_item_totals_notification_js_1 = require("./adjustment-item-totals-notification.js");
5
6
  class AdjustmentItemNotification {
6
7
  constructor(adjustmentItem) {
7
8
  this.id = adjustmentItem.id;
8
9
  this.itemId = adjustmentItem.item_id;
9
10
  this.type = adjustmentItem.type;
10
11
  this.amount = adjustmentItem.amount ? adjustmentItem.amount : null;
11
- this.proration = adjustmentItem.proration ? new index_1.AdjustmentProrationNotification(adjustmentItem.proration) : null;
12
- this.totals = adjustmentItem.totals ? new index_1.AdjustmentItemTotalsNotification(adjustmentItem.totals) : null;
12
+ this.proration = adjustmentItem.proration ? new adjustment_proration_notification_js_1.AdjustmentProrationNotification(adjustmentItem.proration) : null;
13
+ this.totals = adjustmentItem.totals ? new adjustment_item_totals_notification_js_1.AdjustmentItemTotalsNotification(adjustmentItem.totals) : null;
13
14
  }
14
15
  }
15
16
  exports.AdjustmentItemNotification = AdjustmentItemNotification;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdjustmentNotification = void 0;
4
- const index_1 = require("../index");
4
+ const adjustment_item_notification_js_1 = require("./adjustment-item-notification.js");
5
+ const index_js_1 = require("../shared/index.js");
5
6
  class AdjustmentNotification {
6
7
  constructor(adjustment) {
7
8
  this.id = adjustment.id;
@@ -13,10 +14,10 @@ class AdjustmentNotification {
13
14
  this.creditAppliedToBalance = adjustment.credit_applied_to_balance;
14
15
  this.currencyCode = adjustment.currency_code;
15
16
  this.status = adjustment.status;
16
- this.items = adjustment.items.map((item) => new index_1.AdjustmentItemNotification(item));
17
- this.totals = new index_1.TotalAdjustmentsNotification(adjustment.totals);
17
+ this.items = adjustment.items.map((item) => new adjustment_item_notification_js_1.AdjustmentItemNotification(item));
18
+ this.totals = new index_js_1.TotalAdjustmentsNotification(adjustment.totals);
18
19
  this.payoutTotals = adjustment.payout_totals
19
- ? new index_1.PayoutTotalsAdjustmentNotification(adjustment.payout_totals)
20
+ ? new index_js_1.PayoutTotalsAdjustmentNotification(adjustment.payout_totals)
20
21
  : null;
21
22
  this.createdAt = adjustment.created_at;
22
23
  this.updatedAt = adjustment.updated_at;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdjustmentProrationNotification = void 0;
4
- const index_1 = require("../index");
4
+ const adjustment_time_period_notification_js_1 = require("./adjustment-time-period-notification.js");
5
5
  class AdjustmentProrationNotification {
6
6
  constructor(adjustmentsProration) {
7
7
  this.rate = adjustmentsProration.rate;
8
8
  this.billingPeriod = adjustmentsProration.billing_period
9
- ? new index_1.AdjustmentTimePeriodNotification(adjustmentsProration.billing_period)
9
+ ? new adjustment_time_period_notification_js_1.AdjustmentTimePeriodNotification(adjustmentsProration.billing_period)
10
10
  : null;
11
11
  }
12
12
  }
@@ -14,8 +14,8 @@ 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("./adjustment-time-period-notification"), exports);
18
- __exportStar(require("./adjustment-proration-notification"), exports);
19
- __exportStar(require("./adjustment-item-notification"), exports);
20
- __exportStar(require("./adjustment-item-totals-notification"), exports);
21
- __exportStar(require("./adjustment-notification"), exports);
17
+ __exportStar(require("./adjustment-time-period-notification.js"), exports);
18
+ __exportStar(require("./adjustment-proration-notification.js"), exports);
19
+ __exportStar(require("./adjustment-item-notification.js"), exports);
20
+ __exportStar(require("./adjustment-item-totals-notification.js"), exports);
21
+ __exportStar(require("./adjustment-notification.js"), exports);
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BusinessNotification = void 0;
4
- const index_1 = require("../index");
4
+ const contacts_notification_js_1 = require("./contacts-notification.js");
5
+ const index_js_1 = require("../shared/index.js");
5
6
  class BusinessNotification {
6
7
  constructor(business) {
7
8
  var _a;
@@ -11,11 +12,11 @@ class BusinessNotification {
11
12
  this.companyNumber = business.company_number ? business.company_number : null;
12
13
  this.taxIdentifier = business.tax_identifier ? business.tax_identifier : null;
13
14
  this.status = business.status;
14
- this.contacts = business.contacts ? business.contacts.map((contact) => new index_1.ContactsNotification(contact)) : null;
15
+ this.contacts = business.contacts ? business.contacts.map((contact) => new contacts_notification_js_1.ContactsNotification(contact)) : null;
15
16
  this.createdAt = business.created_at;
16
17
  this.updatedAt = business.updated_at;
17
18
  this.customData = business.custom_data ? business.custom_data : null;
18
- this.importMeta = business.import_meta ? new index_1.ImportMetaNotification(business.import_meta) : null;
19
+ this.importMeta = business.import_meta ? new index_js_1.ImportMetaNotification(business.import_meta) : null;
19
20
  }
20
21
  }
21
22
  exports.BusinessNotification = BusinessNotification;
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./contacts-notification"), exports);
18
- __exportStar(require("./business-notification"), exports);
17
+ __exportStar(require("./contacts-notification.js"), exports);
18
+ __exportStar(require("./business-notification.js"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomerNotification = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../shared/index.js");
5
5
  class CustomerNotification {
6
6
  constructor(customer) {
7
7
  this.id = customer.id;
@@ -13,7 +13,7 @@ class CustomerNotification {
13
13
  this.locale = customer.locale;
14
14
  this.createdAt = customer.created_at;
15
15
  this.updatedAt = customer.updated_at;
16
- this.importMeta = customer.import_meta ? new index_1.ImportMetaNotification(customer.import_meta) : null;
16
+ this.importMeta = customer.import_meta ? new index_js_1.ImportMetaNotification(customer.import_meta) : null;
17
17
  }
18
18
  }
19
19
  exports.CustomerNotification = CustomerNotification;
@@ -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("./customer-notification"), exports);
17
+ __exportStar(require("./customer-notification.js"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiscountNotification = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../shared/index.js");
5
5
  class DiscountNotification {
6
6
  constructor(discount) {
7
7
  var _a;
@@ -22,7 +22,7 @@ class DiscountNotification {
22
22
  this.timesUsed = (_a = discount.times_used) !== null && _a !== void 0 ? _a : null;
23
23
  this.createdAt = discount.created_at;
24
24
  this.updatedAt = discount.updated_at;
25
- this.importMeta = discount.import_meta ? new index_1.ImportMetaNotification(discount.import_meta) : null;
25
+ this.importMeta = discount.import_meta ? new index_js_1.ImportMetaNotification(discount.import_meta) : null;
26
26
  }
27
27
  }
28
28
  exports.DiscountNotification = DiscountNotification;
@@ -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("./discount-notification"), exports);
17
+ __exportStar(require("./discount-notification.js"), exports);
@@ -14,15 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./product"), exports);
18
- __exportStar(require("./price"), exports);
19
- __exportStar(require("./transaction"), exports);
20
- __exportStar(require("./adjustment"), exports);
21
- __exportStar(require("./customer"), exports);
22
- __exportStar(require("./business"), exports);
23
- __exportStar(require("./subscription"), exports);
24
- __exportStar(require("./address"), exports);
25
- __exportStar(require("./discount"), exports);
26
- __exportStar(require("./payout"), exports);
27
- __exportStar(require("./report"), exports);
28
- __exportStar(require("./shared"), exports);
17
+ __exportStar(require("./product/index.js"), exports);
18
+ __exportStar(require("./price/index.js"), exports);
19
+ __exportStar(require("./transaction/index.js"), exports);
20
+ __exportStar(require("./adjustment/index.js"), exports);
21
+ __exportStar(require("./customer/index.js"), exports);
22
+ __exportStar(require("./business/index.js"), exports);
23
+ __exportStar(require("./subscription/index.js"), exports);
24
+ __exportStar(require("./address/index.js"), exports);
25
+ __exportStar(require("./discount/index.js"), exports);
26
+ __exportStar(require("./payout/index.js"), exports);
27
+ __exportStar(require("./report/index.js"), exports);
28
+ __exportStar(require("./shared/index.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("./payout-notification"), exports);
17
+ __exportStar(require("./payout-notification.js"), exports);
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./price-quantity-notification"), exports);
18
- __exportStar(require("./price-notification"), exports);
17
+ __exportStar(require("./price-quantity-notification.js"), exports);
18
+ __exportStar(require("./price-notification.js"), exports);
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PriceNotification = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../shared/index.js");
5
+ const price_quantity_notification_js_1 = require("./price-quantity-notification.js");
5
6
  class PriceNotification {
6
7
  constructor(price) {
7
8
  var _a, _b, _c, _d;
@@ -10,18 +11,18 @@ class PriceNotification {
10
11
  this.description = price.description;
11
12
  this.type = price.type ? price.type : null;
12
13
  this.name = price.name ? price.name : null;
13
- this.billingCycle = price.billing_cycle ? new index_1.TimePeriodNotification(price.billing_cycle) : null;
14
- this.trialPeriod = price.trial_period ? new index_1.TimePeriodNotification(price.trial_period) : null;
14
+ this.billingCycle = price.billing_cycle ? new index_js_1.TimePeriodNotification(price.billing_cycle) : null;
15
+ this.trialPeriod = price.trial_period ? new index_js_1.TimePeriodNotification(price.trial_period) : null;
15
16
  this.taxMode = price.tax_mode;
16
- this.unitPrice = new index_1.MoneyNotification(price.unit_price);
17
+ this.unitPrice = new index_js_1.MoneyNotification(price.unit_price);
17
18
  this.unitPriceOverrides =
18
- (_b = (_a = price.unit_price_overrides) === null || _a === void 0 ? void 0 : _a.map((unit_price_override) => new index_1.UnitPriceOverrideNotification(unit_price_override))) !== null && _b !== void 0 ? _b : [];
19
- this.quantity = new index_1.PriceQuantityNotification(price.quantity);
19
+ (_b = (_a = price.unit_price_overrides) === null || _a === void 0 ? void 0 : _a.map((unit_price_override) => new index_js_1.UnitPriceOverrideNotification(unit_price_override))) !== null && _b !== void 0 ? _b : [];
20
+ this.quantity = new price_quantity_notification_js_1.PriceQuantityNotification(price.quantity);
20
21
  this.status = price.status;
21
22
  this.createdAt = (_c = price.created_at) !== null && _c !== void 0 ? _c : null;
22
23
  this.updatedAt = (_d = price.updated_at) !== null && _d !== void 0 ? _d : null;
23
24
  this.customData = price.custom_data ? price.custom_data : null;
24
- this.importMeta = price.import_meta ? new index_1.ImportMetaNotification(price.import_meta) : null;
25
+ this.importMeta = price.import_meta ? new index_js_1.ImportMetaNotification(price.import_meta) : null;
25
26
  }
26
27
  }
27
28
  exports.PriceNotification = PriceNotification;
@@ -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("./product-notification"), exports);
17
+ __exportStar(require("./product-notification.js"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProductNotification = void 0;
4
- const index_1 = require("../index");
4
+ const index_js_1 = require("../shared/index.js");
5
5
  class ProductNotification {
6
6
  constructor(product) {
7
7
  var _a, _b;
@@ -15,7 +15,7 @@ class ProductNotification {
15
15
  this.status = product.status;
16
16
  this.createdAt = product.created_at;
17
17
  this.updatedAt = (_b = product.updated_at) !== null && _b !== void 0 ? _b : null;
18
- this.importMeta = product.import_meta ? new index_1.ImportMetaNotification(product.import_meta) : null;
18
+ this.importMeta = product.import_meta ? new index_js_1.ImportMetaNotification(product.import_meta) : null;
19
19
  }
20
20
  }
21
21
  exports.ProductNotification = ProductNotification;
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./report-filters-notification"), exports);
18
- __exportStar(require("./report-notification"), exports);
17
+ __exportStar(require("./report-filters-notification.js"), exports);
18
+ __exportStar(require("./report-notification.js"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReportNotification = void 0;
4
- const index_1 = require("../index");
4
+ const report_filters_notification_js_1 = require("./report-filters-notification.js");
5
5
  class ReportNotification {
6
6
  constructor(reportResponse) {
7
7
  var _a, _b, _c;
@@ -9,7 +9,7 @@ class ReportNotification {
9
9
  this.status = reportResponse.status;
10
10
  this.rows = (_a = reportResponse.rows) !== null && _a !== void 0 ? _a : null;
11
11
  this.type = reportResponse.type;
12
- this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new index_1.ReportFiltersNotification(filter));
12
+ this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new report_filters_notification_js_1.ReportFiltersNotification(filter));
13
13
  this.expiresAt = (_c = reportResponse.expires_at) !== null && _c !== void 0 ? _c : null;
14
14
  this.createdAt = reportResponse.created_at;
15
15
  }
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillingDetailsNotification = void 0;
4
- const index_1 = require("../index");
4
+ const time_period_notification_js_1 = require("./time-period-notification.js");
5
5
  class BillingDetailsNotification {
6
6
  constructor(billingDetails) {
7
7
  var _a;
8
8
  this.enableCheckout = (_a = billingDetails.enable_checkout) !== null && _a !== void 0 ? _a : null;
9
9
  this.purchaseOrderNumber = billingDetails.purchase_order_number ? billingDetails.purchase_order_number : null;
10
10
  this.additionalInformation = billingDetails.additional_information ? billingDetails.additional_information : null;
11
- this.paymentTerms = new index_1.TimePeriodNotification(billingDetails.payment_terms);
11
+ this.paymentTerms = new time_period_notification_js_1.TimePeriodNotification(billingDetails.payment_terms);
12
12
  }
13
13
  }
14
14
  exports.BillingDetailsNotification = BillingDetailsNotification;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChargebackFeeNotification = void 0;
4
- const index_1 = require("../index");
4
+ const adjustment_original_amount_notification_js_1 = require("./adjustment-original-amount-notification.js");
5
5
  class ChargebackFeeNotification {
6
6
  constructor(chargebackFee) {
7
7
  this.amount = chargebackFee.amount;
8
- this.original = chargebackFee.original ? new index_1.AdjustmentOriginalAmountNotification(chargebackFee.original) : null;
8
+ this.original = chargebackFee.original ? new adjustment_original_amount_notification_js_1.AdjustmentOriginalAmountNotification(chargebackFee.original) : null;
9
9
  }
10
10
  }
11
11
  exports.ChargebackFeeNotification = ChargebackFeeNotification;