@paddle/paddle-node-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +270 -0
  3. package/dist/entities/address/address-collection.d.ts +6 -0
  4. package/dist/entities/address/address-collection.js +11 -0
  5. package/dist/entities/address/address.d.ts +19 -0
  6. package/dist/entities/address/address.js +36 -0
  7. package/dist/entities/address/index.d.ts +2 -0
  8. package/dist/entities/address/index.js +18 -0
  9. package/dist/entities/adjustment/adjustment-collection.d.ts +6 -0
  10. package/dist/entities/adjustment/adjustment-collection.js +11 -0
  11. package/dist/entities/adjustment/adjustment-item-totals.d.ts +8 -0
  12. package/dist/entities/adjustment/adjustment-item-totals.js +18 -0
  13. package/dist/entities/adjustment/adjustment-item.d.ts +13 -0
  14. package/dist/entities/adjustment/adjustment-item.js +25 -0
  15. package/dist/entities/adjustment/adjustment-proration.d.ts +8 -0
  16. package/dist/entities/adjustment/adjustment-proration.js +19 -0
  17. package/dist/entities/adjustment/adjustment-time-period.d.ts +7 -0
  18. package/dist/entities/adjustment/adjustment-time-period.js +16 -0
  19. package/dist/entities/adjustment/adjustment.d.ts +21 -0
  20. package/dist/entities/adjustment/adjustment.js +41 -0
  21. package/dist/entities/adjustment/index.d.ts +6 -0
  22. package/dist/entities/adjustment/index.js +22 -0
  23. package/dist/entities/business/business-collection.d.ts +6 -0
  24. package/dist/entities/business/business-collection.js +11 -0
  25. package/dist/entities/business/business.d.ts +16 -0
  26. package/dist/entities/business/business.js +31 -0
  27. package/dist/entities/business/contacts.d.ts +7 -0
  28. package/dist/entities/business/contacts.js +16 -0
  29. package/dist/entities/business/index.d.ts +3 -0
  30. package/dist/entities/business/index.js +19 -0
  31. package/dist/entities/customer/customer-collection.d.ts +6 -0
  32. package/dist/entities/customer/customer-collection.js +11 -0
  33. package/dist/entities/customer/customer.d.ts +16 -0
  34. package/dist/entities/customer/customer.js +30 -0
  35. package/dist/entities/customer/index.d.ts +2 -0
  36. package/dist/entities/customer/index.js +18 -0
  37. package/dist/entities/discount/discount-collection.d.ts +6 -0
  38. package/dist/entities/discount/discount-collection.js +11 -0
  39. package/dist/entities/discount/discount.d.ts +22 -0
  40. package/dist/entities/discount/discount.js +44 -0
  41. package/dist/entities/discount/index.d.ts +2 -0
  42. package/dist/entities/discount/index.js +18 -0
  43. package/dist/entities/index.d.ts +12 -0
  44. package/dist/entities/index.js +26 -0
  45. package/dist/entities/price/index.d.ts +4 -0
  46. package/dist/entities/price/index.js +20 -0
  47. package/dist/entities/price/price-collection.d.ts +6 -0
  48. package/dist/entities/price/price-collection.js +11 -0
  49. package/dist/entities/price/price-quantity.d.ts +7 -0
  50. package/dist/entities/price/price-quantity.js +16 -0
  51. package/dist/entities/price/price-with-includes.d.ts +19 -0
  52. package/dist/entities/price/price-with-includes.js +37 -0
  53. package/dist/entities/price/price.d.ts +18 -0
  54. package/dist/entities/price/price.js +35 -0
  55. package/dist/entities/product/index.d.ts +3 -0
  56. package/dist/entities/product/index.js +19 -0
  57. package/dist/entities/product/product-collection.d.ts +6 -0
  58. package/dist/entities/product/product-collection.js +11 -0
  59. package/dist/entities/product/product-with-includes.d.ts +16 -0
  60. package/dist/entities/product/product-with-includes.js +32 -0
  61. package/dist/entities/product/product.d.ts +15 -0
  62. package/dist/entities/product/product.js +28 -0
  63. package/dist/entities/shared/adjustment-original-amount.d.ts +8 -0
  64. package/dist/entities/shared/adjustment-original-amount.js +16 -0
  65. package/dist/entities/shared/billing-details.d.ts +10 -0
  66. package/dist/entities/shared/billing-details.js +21 -0
  67. package/dist/entities/shared/chargeback-fee.d.ts +8 -0
  68. package/dist/entities/shared/chargeback-fee.js +17 -0
  69. package/dist/entities/shared/index.d.ts +19 -0
  70. package/dist/entities/shared/index.js +35 -0
  71. package/dist/entities/shared/money.d.ts +8 -0
  72. package/dist/entities/shared/money.js +16 -0
  73. package/dist/entities/shared/payment-card.d.ts +11 -0
  74. package/dist/entities/shared/payment-card.js +22 -0
  75. package/dist/entities/shared/payment-method-details.d.ts +9 -0
  76. package/dist/entities/shared/payment-method-details.js +17 -0
  77. package/dist/entities/shared/payout-totals-adjustment.d.ts +14 -0
  78. package/dist/entities/shared/payout-totals-adjustment.js +29 -0
  79. package/dist/entities/shared/tax-rates-used.d.ts +8 -0
  80. package/dist/entities/shared/tax-rates-used.js +17 -0
  81. package/dist/entities/shared/time-period.d.ts +8 -0
  82. package/dist/entities/shared/time-period.js +16 -0
  83. package/dist/entities/shared/total-adjustments.d.ts +12 -0
  84. package/dist/entities/shared/total-adjustments.js +24 -0
  85. package/dist/entities/shared/totals.d.ts +9 -0
  86. package/dist/entities/shared/totals.js +20 -0
  87. package/dist/entities/shared/transaction-checkout.d.ts +6 -0
  88. package/dist/entities/shared/transaction-checkout.js +14 -0
  89. package/dist/entities/shared/transaction-payment-attempt.d.ts +15 -0
  90. package/dist/entities/shared/transaction-payment-attempt.js +31 -0
  91. package/dist/entities/shared/transaction-payout-totals-adjusted.d.ts +14 -0
  92. package/dist/entities/shared/transaction-payout-totals-adjusted.js +29 -0
  93. package/dist/entities/shared/transaction-payout-totals.d.ts +16 -0
  94. package/dist/entities/shared/transaction-payout-totals.js +32 -0
  95. package/dist/entities/shared/transaction-totals-adjusted.d.ts +13 -0
  96. package/dist/entities/shared/transaction-totals-adjusted.js +26 -0
  97. package/dist/entities/shared/transaction-totals.d.ts +16 -0
  98. package/dist/entities/shared/transaction-totals.js +32 -0
  99. package/dist/entities/shared/unit-price-override.d.ts +9 -0
  100. package/dist/entities/shared/unit-price-override.js +17 -0
  101. package/dist/entities/shared/unit-totals.d.ts +9 -0
  102. package/dist/entities/shared/unit-totals.js +20 -0
  103. package/dist/entities/subscription/index.d.ts +12 -0
  104. package/dist/entities/subscription/index.js +28 -0
  105. package/dist/entities/subscription/next-transaction.d.ts +9 -0
  106. package/dist/entities/subscription/next-transaction.js +19 -0
  107. package/dist/entities/subscription/subscription-collection.d.ts +6 -0
  108. package/dist/entities/subscription/subscription-collection.js +11 -0
  109. package/dist/entities/subscription/subscription-discount.d.ts +8 -0
  110. package/dist/entities/subscription/subscription-discount.js +18 -0
  111. package/dist/entities/subscription/subscription-includes.d.ts +31 -0
  112. package/dist/entities/subscription/subscription-includes.js +67 -0
  113. package/dist/entities/subscription/subscription-item.d.ts +16 -0
  114. package/dist/entities/subscription/subscription-item.js +33 -0
  115. package/dist/entities/subscription/subscription-management.d.ts +7 -0
  116. package/dist/entities/subscription/subscription-management.js +16 -0
  117. package/dist/entities/subscription/subscription-price.d.ts +14 -0
  118. package/dist/entities/subscription/subscription-price.js +27 -0
  119. package/dist/entities/subscription/subscription-scheduled-change.d.ts +9 -0
  120. package/dist/entities/subscription/subscription-scheduled-change.js +18 -0
  121. package/dist/entities/subscription/subscription-time-period.d.ts +7 -0
  122. package/dist/entities/subscription/subscription-time-period.js +16 -0
  123. package/dist/entities/subscription/subscription.d.ts +29 -0
  124. package/dist/entities/subscription/subscription.js +61 -0
  125. package/dist/entities/subscription/transaction-details-preview.d.ts +9 -0
  126. package/dist/entities/subscription/transaction-details-preview.js +19 -0
  127. package/dist/entities/subscription/transaction-line-item-preview.d.ts +12 -0
  128. package/dist/entities/subscription/transaction-line-item-preview.js +25 -0
  129. package/dist/entities/transaction/adjustment-totals-breakdown.d.ts +8 -0
  130. package/dist/entities/transaction/adjustment-totals-breakdown.js +18 -0
  131. package/dist/entities/transaction/adjustment-totals.d.ts +14 -0
  132. package/dist/entities/transaction/adjustment-totals.js +27 -0
  133. package/dist/entities/transaction/index.d.ts +12 -0
  134. package/dist/entities/transaction/index.js +28 -0
  135. package/dist/entities/transaction/transaction-adjustment-item.d.ts +13 -0
  136. package/dist/entities/transaction/transaction-adjustment-item.js +29 -0
  137. package/dist/entities/transaction/transaction-adjustment.d.ts +21 -0
  138. package/dist/entities/transaction/transaction-adjustment.js +41 -0
  139. package/dist/entities/transaction/transaction-collection.d.ts +6 -0
  140. package/dist/entities/transaction/transaction-collection.js +11 -0
  141. package/dist/entities/transaction/transaction-details.d.ts +12 -0
  142. package/dist/entities/transaction/transaction-details.js +31 -0
  143. package/dist/entities/transaction/transaction-includes.d.ts +35 -0
  144. package/dist/entities/transaction/transaction-includes.js +74 -0
  145. package/dist/entities/transaction/transaction-item.d.ts +10 -0
  146. package/dist/entities/transaction/transaction-item.js +21 -0
  147. package/dist/entities/transaction/transaction-line-item.d.ts +14 -0
  148. package/dist/entities/transaction/transaction-line-item.js +31 -0
  149. package/dist/entities/transaction/transaction-proration.d.ts +8 -0
  150. package/dist/entities/transaction/transaction-proration.js +19 -0
  151. package/dist/entities/transaction/transaction.d.ts +29 -0
  152. package/dist/entities/transaction/transaction.js +59 -0
  153. package/dist/entities/transaction/transactions-time-period.d.ts +7 -0
  154. package/dist/entities/transaction/transactions-time-period.js +16 -0
  155. package/dist/enums/adjustment/adjustment-action.d.ts +1 -0
  156. package/dist/enums/adjustment/adjustment-action.js +2 -0
  157. package/dist/enums/adjustment/adjustment-currency-code.d.ts +1 -0
  158. package/dist/enums/adjustment/adjustment-currency-code.js +2 -0
  159. package/dist/enums/adjustment/adjustment-status.d.ts +1 -0
  160. package/dist/enums/adjustment/adjustment-status.js +2 -0
  161. package/dist/enums/adjustment/adjustment-type.d.ts +1 -0
  162. package/dist/enums/adjustment/adjustment-type.js +2 -0
  163. package/dist/enums/adjustment/index.d.ts +4 -0
  164. package/dist/enums/adjustment/index.js +20 -0
  165. package/dist/enums/discount/discount-status.d.ts +1 -0
  166. package/dist/enums/discount/discount-status.js +2 -0
  167. package/dist/enums/discount/discount-type.d.ts +1 -0
  168. package/dist/enums/discount/discount-type.js +2 -0
  169. package/dist/enums/discount/index.d.ts +2 -0
  170. package/dist/enums/discount/index.js +18 -0
  171. package/dist/enums/index.d.ts +5 -0
  172. package/dist/enums/index.js +21 -0
  173. package/dist/enums/shared/collection-mode.d.ts +1 -0
  174. package/dist/enums/shared/collection-mode.js +2 -0
  175. package/dist/enums/shared/country-code.d.ts +1 -0
  176. package/dist/enums/shared/country-code.js +2 -0
  177. package/dist/enums/shared/currency-code.d.ts +1 -0
  178. package/dist/enums/shared/currency-code.js +2 -0
  179. package/dist/enums/shared/error-code.d.ts +1 -0
  180. package/dist/enums/shared/error-code.js +2 -0
  181. package/dist/enums/shared/index.d.ts +13 -0
  182. package/dist/enums/shared/index.js +29 -0
  183. package/dist/enums/shared/interval.d.ts +1 -0
  184. package/dist/enums/shared/interval.js +2 -0
  185. package/dist/enums/shared/payment-attempt-status.d.ts +1 -0
  186. package/dist/enums/shared/payment-attempt-status.js +2 -0
  187. package/dist/enums/shared/payment-type.d.ts +1 -0
  188. package/dist/enums/shared/payment-type.js +2 -0
  189. package/dist/enums/shared/payout-currency-code.d.ts +1 -0
  190. package/dist/enums/shared/payout-currency-code.js +2 -0
  191. package/dist/enums/shared/status.d.ts +1 -0
  192. package/dist/enums/shared/status.js +2 -0
  193. package/dist/enums/shared/tax-category.d.ts +1 -0
  194. package/dist/enums/shared/tax-category.js +2 -0
  195. package/dist/enums/shared/tax-mode.d.ts +1 -0
  196. package/dist/enums/shared/tax-mode.js +2 -0
  197. package/dist/enums/shared/transaction-origin.d.ts +1 -0
  198. package/dist/enums/shared/transaction-origin.js +2 -0
  199. package/dist/enums/shared/transaction-status.d.ts +1 -0
  200. package/dist/enums/shared/transaction-status.js +2 -0
  201. package/dist/enums/subscription/index.d.ts +5 -0
  202. package/dist/enums/subscription/index.js +21 -0
  203. package/dist/enums/subscription/proration-billing-mode.d.ts +1 -0
  204. package/dist/enums/subscription/proration-billing-mode.js +2 -0
  205. package/dist/enums/subscription/scheduled-change-action.d.ts +1 -0
  206. package/dist/enums/subscription/scheduled-change-action.js +2 -0
  207. package/dist/enums/subscription/subscription-effective-from.d.ts +1 -0
  208. package/dist/enums/subscription/subscription-effective-from.js +2 -0
  209. package/dist/enums/subscription/subscription-item-status.d.ts +1 -0
  210. package/dist/enums/subscription/subscription-item-status.js +2 -0
  211. package/dist/enums/subscription/subscription-status.d.ts +1 -0
  212. package/dist/enums/subscription/subscription-status.js +2 -0
  213. package/dist/enums/transaction/index.d.ts +1 -0
  214. package/dist/enums/transaction/index.js +17 -0
  215. package/dist/enums/transaction/payment-card-type.d.ts +1 -0
  216. package/dist/enums/transaction/payment-card-type.js +2 -0
  217. package/dist/index.d.ts +8 -0
  218. package/dist/index.js +28 -0
  219. package/dist/internal/api/client.d.ts +13 -0
  220. package/dist/internal/api/client.js +69 -0
  221. package/dist/internal/api/constants.d.ts +2 -0
  222. package/dist/internal/api/constants.js +8 -0
  223. package/dist/internal/api/environment.d.ts +4 -0
  224. package/dist/internal/api/environment.js +8 -0
  225. package/dist/internal/base/base-resource.d.ts +8 -0
  226. package/dist/internal/base/base-resource.js +21 -0
  227. package/dist/internal/base/collection.d.ts +13 -0
  228. package/dist/internal/base/collection.js +65 -0
  229. package/dist/internal/base/index.d.ts +4 -0
  230. package/dist/internal/base/index.js +20 -0
  231. package/dist/internal/base/path-parameters.d.ts +6 -0
  232. package/dist/internal/base/path-parameters.js +20 -0
  233. package/dist/internal/base/query-parameters.d.ts +5 -0
  234. package/dist/internal/base/query-parameters.js +19 -0
  235. package/dist/internal/errors/generic.d.ts +12 -0
  236. package/dist/internal/errors/generic.js +25 -0
  237. package/dist/internal/index.d.ts +3 -0
  238. package/dist/internal/index.js +5 -0
  239. package/dist/internal/types/config.d.ts +4 -0
  240. package/dist/internal/types/config.js +2 -0
  241. package/dist/internal/types/response.d.ts +31 -0
  242. package/dist/internal/types/response.js +2 -0
  243. package/dist/notifications/index.d.ts +1 -0
  244. package/dist/notifications/index.js +17 -0
  245. package/dist/notifications/validator/notifications-validator.d.ts +5 -0
  246. package/dist/notifications/validator/notifications-validator.js +41 -0
  247. package/dist/paddle.d.ts +16 -0
  248. package/dist/paddle.js +24 -0
  249. package/dist/resources/addresses/index.d.ts +10 -0
  250. package/dist/resources/addresses/index.js +79 -0
  251. package/dist/resources/addresses/operations/create-address-path-parameters.d.ts +3 -0
  252. package/dist/resources/addresses/operations/create-address-path-parameters.js +2 -0
  253. package/dist/resources/addresses/operations/create-address-request-body.d.ts +12 -0
  254. package/dist/resources/addresses/operations/create-address-request-body.js +2 -0
  255. package/dist/resources/addresses/operations/get-address-path-parameters.d.ts +4 -0
  256. package/dist/resources/addresses/operations/get-address-path-parameters.js +2 -0
  257. package/dist/resources/addresses/operations/index.d.ts +7 -0
  258. package/dist/resources/addresses/operations/index.js +23 -0
  259. package/dist/resources/addresses/operations/list-address-path-parameters.d.ts +3 -0
  260. package/dist/resources/addresses/operations/list-address-path-parameters.js +2 -0
  261. package/dist/resources/addresses/operations/list-address-query-parameters.d.ts +9 -0
  262. package/dist/resources/addresses/operations/list-address-query-parameters.js +2 -0
  263. package/dist/resources/addresses/operations/update-address-path-parameters.d.ts +4 -0
  264. package/dist/resources/addresses/operations/update-address-path-parameters.js +2 -0
  265. package/dist/resources/addresses/operations/update-address-request-body.d.ts +13 -0
  266. package/dist/resources/addresses/operations/update-address-request-body.js +2 -0
  267. package/dist/resources/adjustments/index.d.ts +8 -0
  268. package/dist/resources/adjustments/index.js +49 -0
  269. package/dist/resources/adjustments/operations/create-adjustment-request-body.d.ts +12 -0
  270. package/dist/resources/adjustments/operations/create-adjustment-request-body.js +2 -0
  271. package/dist/resources/adjustments/operations/index.d.ts +2 -0
  272. package/dist/resources/adjustments/operations/index.js +18 -0
  273. package/dist/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +12 -0
  274. package/dist/resources/adjustments/operations/list-adjustment-query-parameters.js +2 -0
  275. package/dist/resources/businesses/index.d.ts +10 -0
  276. package/dist/resources/businesses/index.js +79 -0
  277. package/dist/resources/businesses/operations/create-business-path-parameters.d.ts +3 -0
  278. package/dist/resources/businesses/operations/create-business-path-parameters.js +2 -0
  279. package/dist/resources/businesses/operations/create-business-request-body.d.ts +8 -0
  280. package/dist/resources/businesses/operations/create-business-request-body.js +2 -0
  281. package/dist/resources/businesses/operations/get-business-path-parameters.d.ts +4 -0
  282. package/dist/resources/businesses/operations/get-business-path-parameters.js +2 -0
  283. package/dist/resources/businesses/operations/index.d.ts +7 -0
  284. package/dist/resources/businesses/operations/index.js +23 -0
  285. package/dist/resources/businesses/operations/list-business-path-parameters.d.ts +3 -0
  286. package/dist/resources/businesses/operations/list-business-path-parameters.js +2 -0
  287. package/dist/resources/businesses/operations/list-business-query-parameters.d.ts +9 -0
  288. package/dist/resources/businesses/operations/list-business-query-parameters.js +2 -0
  289. package/dist/resources/businesses/operations/update-business-path-parameters.d.ts +4 -0
  290. package/dist/resources/businesses/operations/update-business-path-parameters.js +2 -0
  291. package/dist/resources/businesses/operations/update-business-request-body.d.ts +10 -0
  292. package/dist/resources/businesses/operations/update-business-request-body.js +2 -0
  293. package/dist/resources/customers/index.d.ts +10 -0
  294. package/dist/resources/customers/index.js +71 -0
  295. package/dist/resources/customers/operations/create-customer-request-body.d.ts +7 -0
  296. package/dist/resources/customers/operations/create-customer-request-body.js +2 -0
  297. package/dist/resources/customers/operations/get-customer-path-parameters.d.ts +3 -0
  298. package/dist/resources/customers/operations/get-customer-path-parameters.js +2 -0
  299. package/dist/resources/customers/operations/index.d.ts +5 -0
  300. package/dist/resources/customers/operations/index.js +21 -0
  301. package/dist/resources/customers/operations/list-customer-query-parameters.d.ts +9 -0
  302. package/dist/resources/customers/operations/list-customer-query-parameters.js +2 -0
  303. package/dist/resources/customers/operations/update-customer-path-parameters.d.ts +3 -0
  304. package/dist/resources/customers/operations/update-customer-path-parameters.js +2 -0
  305. package/dist/resources/customers/operations/update-customer-request-body.d.ts +9 -0
  306. package/dist/resources/customers/operations/update-customer-request-body.js +2 -0
  307. package/dist/resources/discounts/index.d.ts +10 -0
  308. package/dist/resources/discounts/index.js +71 -0
  309. package/dist/resources/discounts/operations/create-discount-request-body.d.ts +14 -0
  310. package/dist/resources/discounts/operations/create-discount-request-body.js +2 -0
  311. package/dist/resources/discounts/operations/get-discount-path-parameters.d.ts +3 -0
  312. package/dist/resources/discounts/operations/get-discount-path-parameters.js +2 -0
  313. package/dist/resources/discounts/operations/index.d.ts +5 -0
  314. package/dist/resources/discounts/operations/index.js +21 -0
  315. package/dist/resources/discounts/operations/list-discount-query-parameters.d.ts +9 -0
  316. package/dist/resources/discounts/operations/list-discount-query-parameters.js +2 -0
  317. package/dist/resources/discounts/operations/update-discount-path-parameters.d.ts +3 -0
  318. package/dist/resources/discounts/operations/update-discount-path-parameters.js +2 -0
  319. package/dist/resources/discounts/operations/update-discount-request-body.d.ts +15 -0
  320. package/dist/resources/discounts/operations/update-discount-request-body.js +2 -0
  321. package/dist/resources/index.d.ts +9 -0
  322. package/dist/resources/index.js +25 -0
  323. package/dist/resources/prices/index.d.ts +10 -0
  324. package/dist/resources/prices/index.js +72 -0
  325. package/dist/resources/prices/operations/create-price-request-body.d.ts +13 -0
  326. package/dist/resources/prices/operations/create-price-request-body.js +2 -0
  327. package/dist/resources/prices/operations/get-price-path-parameters.d.ts +3 -0
  328. package/dist/resources/prices/operations/get-price-path-parameters.js +2 -0
  329. package/dist/resources/prices/operations/get-price-query-parameters.d.ts +3 -0
  330. package/dist/resources/prices/operations/get-price-query-parameters.js +2 -0
  331. package/dist/resources/prices/operations/index.d.ts +6 -0
  332. package/dist/resources/prices/operations/index.js +22 -0
  333. package/dist/resources/prices/operations/list-price-query-parameters.d.ts +11 -0
  334. package/dist/resources/prices/operations/list-price-query-parameters.js +2 -0
  335. package/dist/resources/prices/operations/update-price-path-parameters.d.ts +3 -0
  336. package/dist/resources/prices/operations/update-price-path-parameters.js +2 -0
  337. package/dist/resources/prices/operations/update-price-request-body.d.ts +13 -0
  338. package/dist/resources/prices/operations/update-price-request-body.js +2 -0
  339. package/dist/resources/products/index.d.ts +10 -0
  340. package/dist/resources/products/index.js +72 -0
  341. package/dist/resources/products/operations/create-product-request-body.d.ts +9 -0
  342. package/dist/resources/products/operations/create-product-request-body.js +2 -0
  343. package/dist/resources/products/operations/get-product-path-parameters.d.ts +3 -0
  344. package/dist/resources/products/operations/get-product-path-parameters.js +2 -0
  345. package/dist/resources/products/operations/get-product-query-parameters.d.ts +3 -0
  346. package/dist/resources/products/operations/get-product-query-parameters.js +2 -0
  347. package/dist/resources/products/operations/index.d.ts +6 -0
  348. package/dist/resources/products/operations/index.js +22 -0
  349. package/dist/resources/products/operations/list-product-query-parameters.d.ts +10 -0
  350. package/dist/resources/products/operations/list-product-query-parameters.js +2 -0
  351. package/dist/resources/products/operations/update-product-path-parameters.d.ts +3 -0
  352. package/dist/resources/products/operations/update-product-path-parameters.js +2 -0
  353. package/dist/resources/products/operations/update-product-request-body.d.ts +10 -0
  354. package/dist/resources/products/operations/update-product-request-body.js +2 -0
  355. package/dist/resources/subscriptions/index.d.ts +9 -0
  356. package/dist/resources/subscriptions/index.js +64 -0
  357. package/dist/resources/subscriptions/operations/get-subscription-path-parameters.d.ts +3 -0
  358. package/dist/resources/subscriptions/operations/get-subscription-path-parameters.js +2 -0
  359. package/dist/resources/subscriptions/operations/get-subscription-query-parameters.d.ts +3 -0
  360. package/dist/resources/subscriptions/operations/get-subscription-query-parameters.js +2 -0
  361. package/dist/resources/subscriptions/operations/index.d.ts +5 -0
  362. package/dist/resources/subscriptions/operations/index.js +21 -0
  363. package/dist/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +13 -0
  364. package/dist/resources/subscriptions/operations/list-subscription-query-parameters.js +2 -0
  365. package/dist/resources/subscriptions/operations/update-subscription-path-parameters.d.ts +3 -0
  366. package/dist/resources/subscriptions/operations/update-subscription-path-parameters.js +2 -0
  367. package/dist/resources/subscriptions/operations/update-subscription-request-body.d.ts +16 -0
  368. package/dist/resources/subscriptions/operations/update-subscription-request-body.js +2 -0
  369. package/dist/resources/transactions/index.d.ts +10 -0
  370. package/dist/resources/transactions/index.js +73 -0
  371. package/dist/resources/transactions/operations/create-transaction-query-parameters.d.ts +3 -0
  372. package/dist/resources/transactions/operations/create-transaction-query-parameters.js +2 -0
  373. package/dist/resources/transactions/operations/create-transaction-request-body.d.ts +21 -0
  374. package/dist/resources/transactions/operations/create-transaction-request-body.js +2 -0
  375. package/dist/resources/transactions/operations/get-transaction-path-parameters.d.ts +3 -0
  376. package/dist/resources/transactions/operations/get-transaction-path-parameters.js +2 -0
  377. package/dist/resources/transactions/operations/get-transaction-query-parameters.d.ts +3 -0
  378. package/dist/resources/transactions/operations/get-transaction-query-parameters.js +2 -0
  379. package/dist/resources/transactions/operations/index.d.ts +7 -0
  380. package/dist/resources/transactions/operations/index.js +23 -0
  381. package/dist/resources/transactions/operations/list-transaction-query-parameters.d.ts +16 -0
  382. package/dist/resources/transactions/operations/list-transaction-query-parameters.js +2 -0
  383. package/dist/resources/transactions/operations/update-transaction-path-parameters.d.ts +3 -0
  384. package/dist/resources/transactions/operations/update-transaction-path-parameters.js +2 -0
  385. package/dist/resources/transactions/operations/update-transaction-request-body.d.ts +21 -0
  386. package/dist/resources/transactions/operations/update-transaction-request-body.js +2 -0
  387. package/dist/types/address/address.d.ts +16 -0
  388. package/dist/types/address/address.js +2 -0
  389. package/dist/types/address/index.d.ts +1 -0
  390. package/dist/types/address/index.js +17 -0
  391. package/dist/types/adjustment/adjustment-item.d.ts +10 -0
  392. package/dist/types/adjustment/adjustment-item.js +2 -0
  393. package/dist/types/adjustment/adjustment.d.ts +18 -0
  394. package/dist/types/adjustment/adjustment.js +2 -0
  395. package/dist/types/adjustment/adjustments-proration.d.ts +5 -0
  396. package/dist/types/adjustment/adjustments-proration.js +2 -0
  397. package/dist/types/adjustment/adjustments-time-period.d.ts +4 -0
  398. package/dist/types/adjustment/adjustments-time-period.js +2 -0
  399. package/dist/types/adjustment/index.d.ts +4 -0
  400. package/dist/types/adjustment/index.js +20 -0
  401. package/dist/types/business/business.d.ts +13 -0
  402. package/dist/types/business/business.js +2 -0
  403. package/dist/types/business/businesses-contacts.d.ts +4 -0
  404. package/dist/types/business/businesses-contacts.js +2 -0
  405. package/dist/types/business/index.d.ts +2 -0
  406. package/dist/types/business/index.js +18 -0
  407. package/dist/types/customer/customer.d.ts +13 -0
  408. package/dist/types/customer/customer.js +2 -0
  409. package/dist/types/customer/index.d.ts +1 -0
  410. package/dist/types/customer/index.js +17 -0
  411. package/dist/types/discount/discount.d.ts +19 -0
  412. package/dist/types/discount/discount.js +2 -0
  413. package/dist/types/discount/index.d.ts +1 -0
  414. package/dist/types/discount/index.js +17 -0
  415. package/dist/types/index.d.ts +10 -0
  416. package/dist/types/index.js +26 -0
  417. package/dist/types/price/index.d.ts +1 -0
  418. package/dist/types/price/index.js +17 -0
  419. package/dist/types/price/price.d.ts +16 -0
  420. package/dist/types/price/price.js +2 -0
  421. package/dist/types/product/index.d.ts +1 -0
  422. package/dist/types/product/index.js +17 -0
  423. package/dist/types/product/product.d.ts +13 -0
  424. package/dist/types/product/product.js +2 -0
  425. package/dist/types/shared/adjustment-item-totals.d.ts +5 -0
  426. package/dist/types/shared/adjustment-item-totals.js +2 -0
  427. package/dist/types/shared/adjustment-original-amount.d.ts +5 -0
  428. package/dist/types/shared/adjustment-original-amount.js +2 -0
  429. package/dist/types/shared/billing-details-update.d.ts +7 -0
  430. package/dist/types/shared/billing-details-update.js +2 -0
  431. package/dist/types/shared/billing-details.d.ts +7 -0
  432. package/dist/types/shared/billing-details.js +2 -0
  433. package/dist/types/shared/chargeback-fee.d.ts +5 -0
  434. package/dist/types/shared/chargeback-fee.js +2 -0
  435. package/dist/types/shared/custom-data.d.ts +1 -0
  436. package/dist/types/shared/custom-data.js +2 -0
  437. package/dist/types/shared/index.d.ts +27 -0
  438. package/dist/types/shared/index.js +43 -0
  439. package/dist/types/shared/money.d.ts +5 -0
  440. package/dist/types/shared/money.js +2 -0
  441. package/dist/types/shared/payment-card.d.ts +8 -0
  442. package/dist/types/shared/payment-card.js +2 -0
  443. package/dist/types/shared/payment-method-details.d.ts +6 -0
  444. package/dist/types/shared/payment-method-details.js +2 -0
  445. package/dist/types/shared/payout-totals-adjustment.d.ts +11 -0
  446. package/dist/types/shared/payout-totals-adjustment.js +2 -0
  447. package/dist/types/shared/price-quantity.d.ts +4 -0
  448. package/dist/types/shared/price-quantity.js +2 -0
  449. package/dist/types/shared/shared-price.d.ts +15 -0
  450. package/dist/types/shared/shared-price.js +2 -0
  451. package/dist/types/shared/shared-product.d.ts +12 -0
  452. package/dist/types/shared/shared-product.js +2 -0
  453. package/dist/types/shared/tax-rates-used.d.ts +5 -0
  454. package/dist/types/shared/tax-rates-used.js +2 -0
  455. package/dist/types/shared/time-period.d.ts +5 -0
  456. package/dist/types/shared/time-period.js +2 -0
  457. package/dist/types/shared/total-adjustments.d.ts +9 -0
  458. package/dist/types/shared/total-adjustments.js +2 -0
  459. package/dist/types/shared/totals.d.ts +6 -0
  460. package/dist/types/shared/totals.js +2 -0
  461. package/dist/types/shared/transaction-checkout.d.ts +3 -0
  462. package/dist/types/shared/transaction-checkout.js +2 -0
  463. package/dist/types/shared/transaction-details-preview.d.ts +6 -0
  464. package/dist/types/shared/transaction-details-preview.js +2 -0
  465. package/dist/types/shared/transaction-line-item-preview.d.ts +9 -0
  466. package/dist/types/shared/transaction-line-item-preview.js +2 -0
  467. package/dist/types/shared/transaction-payment-attempt.d.ts +12 -0
  468. package/dist/types/shared/transaction-payment-attempt.js +2 -0
  469. package/dist/types/shared/transaction-payout-totals-adjusted.d.ts +11 -0
  470. package/dist/types/shared/transaction-payout-totals-adjusted.js +2 -0
  471. package/dist/types/shared/transaction-payout-totals.d.ts +13 -0
  472. package/dist/types/shared/transaction-payout-totals.js +2 -0
  473. package/dist/types/shared/transaction-totals-adjusted.d.ts +10 -0
  474. package/dist/types/shared/transaction-totals-adjusted.js +2 -0
  475. package/dist/types/shared/transaction-totals.d.ts +13 -0
  476. package/dist/types/shared/transaction-totals.js +2 -0
  477. package/dist/types/shared/unit-price-override.d.ts +6 -0
  478. package/dist/types/shared/unit-price-override.js +2 -0
  479. package/dist/types/shared/unit-totals.d.ts +6 -0
  480. package/dist/types/shared/unit-totals.js +2 -0
  481. package/dist/types/subscription/index.d.ts +10 -0
  482. package/dist/types/subscription/index.js +26 -0
  483. package/dist/types/subscription/next-transaction.d.ts +6 -0
  484. package/dist/types/subscription/next-transaction.js +2 -0
  485. package/dist/types/subscription/subscription-discount.d.ts +5 -0
  486. package/dist/types/subscription/subscription-discount.js +2 -0
  487. package/dist/types/subscription/subscription-item.d.ts +13 -0
  488. package/dist/types/subscription/subscription-item.js +2 -0
  489. package/dist/types/subscription/subscription-management.d.ts +4 -0
  490. package/dist/types/subscription/subscription-management.js +2 -0
  491. package/dist/types/subscription/subscription-price.d.ts +11 -0
  492. package/dist/types/subscription/subscription-price.js +2 -0
  493. package/dist/types/subscription/subscription-response.d.ts +28 -0
  494. package/dist/types/subscription/subscription-response.js +2 -0
  495. package/dist/types/subscription/subscription-scheduled-change.d.ts +6 -0
  496. package/dist/types/subscription/subscription-scheduled-change.js +2 -0
  497. package/dist/types/subscription/subscription-time-period.d.ts +4 -0
  498. package/dist/types/subscription/subscription-time-period.js +2 -0
  499. package/dist/types/subscription/subscription-update-item.d.ts +4 -0
  500. package/dist/types/subscription/subscription-update-item.js +2 -0
  501. package/dist/types/transaction/adjustment-totals-breakdown.d.ts +5 -0
  502. package/dist/types/transaction/adjustment-totals-breakdown.js +2 -0
  503. package/dist/types/transaction/adjustment-totals.d.ts +11 -0
  504. package/dist/types/transaction/adjustment-totals.js +2 -0
  505. package/dist/types/transaction/index.d.ts +10 -0
  506. package/dist/types/transaction/index.js +26 -0
  507. package/dist/types/transaction/transaction-adjustment-item.d.ts +10 -0
  508. package/dist/types/transaction/transaction-adjustment-item.js +2 -0
  509. package/dist/types/transaction/transaction-adjustment.d.ts +18 -0
  510. package/dist/types/transaction/transaction-adjustment.js +2 -0
  511. package/dist/types/transaction/transaction-details.d.ts +9 -0
  512. package/dist/types/transaction/transaction-details.js +2 -0
  513. package/dist/types/transaction/transaction-item.d.ts +7 -0
  514. package/dist/types/transaction/transaction-item.js +2 -0
  515. package/dist/types/transaction/transaction-line-item.d.ts +11 -0
  516. package/dist/types/transaction/transaction-line-item.js +2 -0
  517. package/dist/types/transaction/transaction-proration.d.ts +5 -0
  518. package/dist/types/transaction/transaction-proration.js +2 -0
  519. package/dist/types/transaction/transaction.d.ts +32 -0
  520. package/dist/types/transaction/transaction.js +2 -0
  521. package/dist/types/transaction/transactions-time-period.d.ts +4 -0
  522. package/dist/types/transaction/transactions-time-period.js +2 -0
  523. package/dist/version.d.ts +1 -0
  524. package/dist/version.js +4 -0
  525. package/package.json +58 -0
@@ -0,0 +1,14 @@
1
+ import { type ITransactionLineItem } from '../../types';
2
+ import { TransactionProration, UnitTotals, Totals, Product } from '../index';
3
+ export declare class TransactionLineItem {
4
+ readonly id: string;
5
+ readonly price_id: string;
6
+ readonly quantity: number;
7
+ readonly proration?: TransactionProration | undefined | null;
8
+ readonly tax_rate: string;
9
+ readonly unit_totals?: UnitTotals | undefined | null;
10
+ readonly totals?: Totals | undefined | null;
11
+ readonly product?: Product | undefined | null;
12
+ constructor(transactionLineItem: ITransactionLineItem);
13
+ toJson(): ITransactionLineItem;
14
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionLineItem = void 0;
4
+ const index_1 = require("../index");
5
+ class TransactionLineItem {
6
+ constructor(transactionLineItem) {
7
+ this.id = transactionLineItem.id;
8
+ this.price_id = transactionLineItem.price_id;
9
+ this.quantity = transactionLineItem.quantity;
10
+ this.proration = transactionLineItem.proration
11
+ ? new index_1.TransactionProration(transactionLineItem.proration)
12
+ : undefined;
13
+ this.tax_rate = transactionLineItem.tax_rate;
14
+ this.unit_totals = transactionLineItem.unit_totals ? new index_1.UnitTotals(transactionLineItem.unit_totals) : undefined;
15
+ this.totals = transactionLineItem.totals ? new index_1.Totals(transactionLineItem.totals) : undefined;
16
+ this.product = transactionLineItem.product ? new index_1.Product(transactionLineItem.product) : undefined;
17
+ }
18
+ toJson() {
19
+ return {
20
+ id: this.id,
21
+ price_id: this.price_id,
22
+ quantity: this.quantity,
23
+ proration: this.proration,
24
+ tax_rate: this.tax_rate,
25
+ unit_totals: this.unit_totals,
26
+ totals: this.totals,
27
+ product: this.product,
28
+ };
29
+ }
30
+ }
31
+ exports.TransactionLineItem = TransactionLineItem;
@@ -0,0 +1,8 @@
1
+ import { type ITransactionProration } from '../../types';
2
+ import { TransactionsTimePeriod } from '../index';
3
+ export declare class TransactionProration {
4
+ readonly rate: string;
5
+ readonly billing_period?: TransactionsTimePeriod | undefined;
6
+ constructor(transactionProration: ITransactionProration);
7
+ toJson(): ITransactionProration;
8
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionProration = void 0;
4
+ const index_1 = require("../index");
5
+ class TransactionProration {
6
+ constructor(transactionProration) {
7
+ this.rate = transactionProration.rate;
8
+ this.billing_period = transactionProration.billing_period
9
+ ? new index_1.TransactionsTimePeriod(transactionProration.billing_period)
10
+ : undefined;
11
+ }
12
+ toJson() {
13
+ return {
14
+ rate: this.rate,
15
+ billing_period: this.billing_period,
16
+ };
17
+ }
18
+ }
19
+ exports.TransactionProration = TransactionProration;
@@ -0,0 +1,29 @@
1
+ import { type CustomData, BillingDetails, TransactionsTimePeriod, TransactionItem, TransactionDetails, TransactionPaymentAttempt, TransactionCheckout } from '../index';
2
+ import { type TransactionStatus, type CurrencyCode, type TransactionOrigin, type CollectionMode } from '../../enums';
3
+ import { type ITransaction } from '../../types';
4
+ export declare class Transaction {
5
+ readonly id: string;
6
+ readonly status: TransactionStatus;
7
+ readonly customer_id?: string | undefined | null;
8
+ readonly address_id?: string | undefined | null;
9
+ readonly business_id?: string | undefined | null;
10
+ readonly custom_data?: CustomData | undefined | null;
11
+ readonly currency_code: CurrencyCode;
12
+ readonly origin: TransactionOrigin;
13
+ readonly subscription_id?: string | undefined | null;
14
+ readonly invoice_id?: string | undefined | null;
15
+ readonly invoice_number?: string | undefined | null;
16
+ readonly collection_mode: CollectionMode;
17
+ readonly discount_id?: string | undefined | null;
18
+ readonly billing_details?: BillingDetails | undefined | null;
19
+ readonly billing_period?: TransactionsTimePeriod | undefined | null;
20
+ readonly items: TransactionItem[];
21
+ readonly details?: TransactionDetails | undefined | null;
22
+ readonly payments: TransactionPaymentAttempt[];
23
+ readonly checkout?: TransactionCheckout | undefined | null;
24
+ readonly created_at: string;
25
+ readonly updated_at: string;
26
+ readonly billed_at?: string | undefined | null;
27
+ constructor(transaction: ITransaction);
28
+ toJson(): ITransaction;
29
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Transaction = void 0;
4
+ const index_1 = require("../index");
5
+ class Transaction {
6
+ constructor(transaction) {
7
+ this.id = transaction.id;
8
+ this.status = transaction.status;
9
+ this.customer_id = transaction.customer_id;
10
+ this.address_id = transaction.address_id;
11
+ this.business_id = transaction.business_id;
12
+ this.custom_data = transaction.custom_data;
13
+ this.currency_code = transaction.currency_code;
14
+ this.origin = transaction.origin;
15
+ this.subscription_id = transaction.subscription_id;
16
+ this.invoice_id = transaction.invoice_id;
17
+ this.invoice_number = transaction.invoice_number;
18
+ this.collection_mode = transaction.collection_mode;
19
+ this.discount_id = transaction.discount_id;
20
+ this.billing_details = transaction.billing_details ? new index_1.BillingDetails(transaction.billing_details) : undefined;
21
+ this.billing_period = transaction.billing_period
22
+ ? new index_1.TransactionsTimePeriod(transaction.billing_period)
23
+ : undefined;
24
+ this.items = transaction.items.map((item) => new index_1.TransactionItem(item));
25
+ this.details = transaction.details ? new index_1.TransactionDetails(transaction.details) : undefined;
26
+ this.payments = transaction.payments.map((payment) => new index_1.TransactionPaymentAttempt(payment));
27
+ this.checkout = transaction.checkout ? new index_1.TransactionCheckout(transaction.checkout) : undefined;
28
+ this.created_at = transaction.created_at;
29
+ this.updated_at = transaction.updated_at;
30
+ this.billed_at = transaction.billed_at;
31
+ }
32
+ toJson() {
33
+ return {
34
+ id: this.id,
35
+ status: this.status,
36
+ customer_id: this.customer_id,
37
+ address_id: this.address_id,
38
+ business_id: this.business_id,
39
+ custom_data: this.custom_data,
40
+ currency_code: this.currency_code,
41
+ origin: this.origin,
42
+ subscription_id: this.subscription_id,
43
+ invoice_id: this.invoice_id,
44
+ invoice_number: this.invoice_number,
45
+ collection_mode: this.collection_mode,
46
+ discount_id: this.discount_id,
47
+ billing_details: this.billing_details,
48
+ billing_period: this.billing_period,
49
+ items: this.items,
50
+ details: this.details,
51
+ payments: this.payments,
52
+ checkout: this.checkout,
53
+ created_at: this.created_at,
54
+ updated_at: this.updated_at,
55
+ billed_at: this.billed_at,
56
+ };
57
+ }
58
+ }
59
+ exports.Transaction = Transaction;
@@ -0,0 +1,7 @@
1
+ import { type ITransactionsTimePeriod } from '../../types';
2
+ export declare class TransactionsTimePeriod {
3
+ readonly starts_at: string;
4
+ readonly ends_at: string;
5
+ constructor(transactionsTimePeriod: ITransactionsTimePeriod);
6
+ toJson(): ITransactionsTimePeriod;
7
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionsTimePeriod = void 0;
4
+ class TransactionsTimePeriod {
5
+ constructor(transactionsTimePeriod) {
6
+ this.starts_at = transactionsTimePeriod.starts_at;
7
+ this.ends_at = transactionsTimePeriod.ends_at;
8
+ }
9
+ toJson() {
10
+ return {
11
+ starts_at: this.starts_at,
12
+ ends_at: this.ends_at,
13
+ };
14
+ }
15
+ }
16
+ exports.TransactionsTimePeriod = TransactionsTimePeriod;
@@ -0,0 +1 @@
1
+ export type AdjustmentAction = 'credit' | 'credit_reverse' | 'refund' | 'chargeback' | 'chargeback_reverse' | 'chargeback_warning';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type AdjustmentCurrencyCode = 'EUR' | 'GBP' | 'USD';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type AdjustmentStatus = 'pending_approval' | 'approved' | 'rejected' | 'reversed';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type AdjustmentType = 'full' | 'partial' | 'tax' | 'proration';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from './adjustment-type';
2
+ export * from './adjustment-currency-code';
3
+ export * from './adjustment-action';
4
+ export * from './adjustment-status';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./adjustment-type"), exports);
18
+ __exportStar(require("./adjustment-currency-code"), exports);
19
+ __exportStar(require("./adjustment-action"), exports);
20
+ __exportStar(require("./adjustment-status"), exports);
@@ -0,0 +1 @@
1
+ export type DiscountStatus = 'active' | 'archived' | 'expired' | 'used';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type DiscountType = 'flat' | 'flat_per_seat' | 'percentage';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './discount-status';
2
+ export * from './discount-type';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./discount-status"), exports);
18
+ __exportStar(require("./discount-type"), exports);
@@ -0,0 +1,5 @@
1
+ export * from './shared';
2
+ export * from './subscription';
3
+ export * from './discount';
4
+ export * from './adjustment';
5
+ export * from './transaction';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./subscription"), exports);
19
+ __exportStar(require("./discount"), exports);
20
+ __exportStar(require("./adjustment"), exports);
21
+ __exportStar(require("./transaction"), exports);
@@ -0,0 +1 @@
1
+ export type CollectionMode = 'automatic' | 'manual';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type CountryCode = 'AD' | 'AE' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BZ' | 'CA' | 'CC' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RW' | 'SA' | 'SB' | 'SC' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SR' | 'ST' | 'SV' | 'SX' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YT' | 'ZA' | 'ZM';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type CurrencyCode = 'USD' | 'EUR' | 'GBP' | 'JPY' | 'AUD' | 'CAD' | 'CHF' | 'HKD' | 'SGD' | 'SEK' | 'ARS' | 'BRL' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'HUF' | 'ILS' | 'INR' | 'KRW' | 'MXN' | 'NOK' | 'NZD' | 'PLN' | 'RUB' | 'THB' | 'TRY' | 'TWD' | 'UAH' | 'ZAR';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ErrorCode = 'already_canceled' | 'already_refunded' | 'authentication_failed' | 'blocked_card' | 'canceled' | 'declined' | 'expired_card' | 'fraud' | 'invalid_amount' | 'invalid_payment_details' | 'issuer_unavailable' | 'not_enough_balance' | 'psp_error' | 'redacted_payment_method' | 'system_error' | 'transaction_not_permitted' | 'unknown';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export * from './tax-category';
2
+ export * from './status';
3
+ export * from './interval';
4
+ export * from './tax-mode';
5
+ export * from './currency-code';
6
+ export * from './country-code';
7
+ export * from './collection-mode';
8
+ export * from './transaction-status';
9
+ export * from './transaction-origin';
10
+ export * from './payout-currency-code';
11
+ export * from './payment-attempt-status';
12
+ export * from './error-code';
13
+ export * from './payment-type';
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./tax-category"), exports);
18
+ __exportStar(require("./status"), exports);
19
+ __exportStar(require("./interval"), exports);
20
+ __exportStar(require("./tax-mode"), exports);
21
+ __exportStar(require("./currency-code"), exports);
22
+ __exportStar(require("./country-code"), exports);
23
+ __exportStar(require("./collection-mode"), exports);
24
+ __exportStar(require("./transaction-status"), exports);
25
+ __exportStar(require("./transaction-origin"), exports);
26
+ __exportStar(require("./payout-currency-code"), exports);
27
+ __exportStar(require("./payment-attempt-status"), exports);
28
+ __exportStar(require("./error-code"), exports);
29
+ __exportStar(require("./payment-type"), exports);
@@ -0,0 +1 @@
1
+ export type Interval = 'day' | 'week' | 'month' | 'year';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type PaymentAttemptStatus = 'authorized' | 'authorized_flagged' | 'canceled' | 'captured' | 'error' | 'action_required' | 'pending_no_action_required' | 'created' | 'unknown' | 'dropped';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type PaymentType = 'alipay' | 'apple_pay' | 'bancontact' | 'card' | 'google_pay' | 'ideal' | 'offline' | 'paypal' | 'unknown' | 'wire_transfer';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type PayoutCurrencyCode = 'AUD' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HUF' | 'PLN' | 'SEK' | 'USD' | 'ZAR';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type Status = 'active' | 'archived';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type TaxCategory = 'digital-goods' | 'ebooks' | 'implementation-services' | 'professional-services' | 'saas' | 'software-programming-services' | 'standard' | 'training-services' | 'website-hosting';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type TaxMode = 'account_setting' | 'external' | 'internal';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type TransactionOrigin = 'api' | 'subscription_charge' | 'subscription_payment_method_change' | 'subscription_recurring' | 'subscription_update' | 'web';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type TransactionStatus = 'draft' | 'ready' | 'billed' | 'paid' | 'completed' | 'canceled' | 'past_due';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from './subscription-effective-from';
2
+ export * from './proration-billing-mode';
3
+ export * from './scheduled-change-action';
4
+ export * from './subscription-status';
5
+ export * from './subscription-item-status';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./subscription-effective-from"), exports);
18
+ __exportStar(require("./proration-billing-mode"), exports);
19
+ __exportStar(require("./scheduled-change-action"), exports);
20
+ __exportStar(require("./subscription-status"), exports);
21
+ __exportStar(require("./subscription-item-status"), exports);
@@ -0,0 +1 @@
1
+ export type ProrationBillingMode = 'prorated_immediately' | 'prorated_next_billing_period' | 'full_immediately' | 'full_next_billing_period' | 'do_not_bill';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ScheduledChangeAction = 'cancel' | 'pause' | 'resume';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SubscriptionEffectiveFrom = 'next_billing_period' | 'immediately';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SubscriptionItemStatus = 'active' | 'inactive' | 'trialing';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SubscriptionStatus = 'active' | 'canceled' | 'past_due' | 'paused' | 'trialing';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './payment-card-type';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./payment-card-type"), exports);
@@ -0,0 +1 @@
1
+ export type PaymentCardType = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mada' | 'maestro' | 'mastercard' | 'union_pay' | 'unknown' | 'visa';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export { Environment } from './internal';
2
+ export { SDK_VERSION } from './version';
3
+ export { Paddle } from './paddle';
4
+ export * from './entities';
5
+ export * from './enums';
6
+ export * from './notifications';
7
+ export * from './resources';
8
+ export * from './types';
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Paddle = exports.SDK_VERSION = exports.Environment = void 0;
18
+ var internal_1 = require("./internal");
19
+ Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return internal_1.Environment; } });
20
+ var version_1 = require("./version");
21
+ Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return version_1.SDK_VERSION; } });
22
+ var paddle_1 = require("./paddle");
23
+ Object.defineProperty(exports, "Paddle", { enumerable: true, get: function () { return paddle_1.Paddle; } });
24
+ __exportStar(require("./entities"), exports);
25
+ __exportStar(require("./enums"), exports);
26
+ __exportStar(require("./notifications"), exports);
27
+ __exportStar(require("./resources"), exports);
28
+ __exportStar(require("./types"), exports);