@paddle/paddle-node-sdk 0.1.7 → 0.2.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 (416) hide show
  1. package/CHANGELOG.md +35 -2
  2. package/README.md +90 -106
  3. package/dist/entities/address/address-collection.d.ts +3 -3
  4. package/dist/entities/address/address.d.ts +12 -13
  5. package/dist/entities/address/address.js +10 -26
  6. package/dist/entities/adjustment/adjustment-collection.d.ts +3 -3
  7. package/dist/entities/adjustment/adjustment-item-totals.d.ts +0 -1
  8. package/dist/entities/adjustment/adjustment-item-totals.js +0 -7
  9. package/dist/entities/adjustment/adjustment-item.d.ts +6 -7
  10. package/dist/entities/adjustment/adjustment-item.js +4 -14
  11. package/dist/entities/adjustment/adjustment-proration.d.ts +3 -4
  12. package/dist/entities/adjustment/adjustment-proration.js +2 -8
  13. package/dist/entities/adjustment/adjustment-time-period.d.ts +4 -5
  14. package/dist/entities/adjustment/adjustment-time-period.js +2 -8
  15. package/dist/entities/adjustment/adjustment.d.ts +10 -11
  16. package/dist/entities/adjustment/adjustment.js +8 -26
  17. package/dist/entities/business/business-collection.d.ts +3 -3
  18. package/dist/entities/business/business.d.ts +8 -9
  19. package/dist/entities/business/business.js +6 -19
  20. package/dist/entities/business/contacts.d.ts +1 -2
  21. package/dist/entities/business/contacts.js +1 -7
  22. package/dist/entities/customer/credit-balance.d.ts +5 -6
  23. package/dist/entities/customer/credit-balance.js +2 -9
  24. package/dist/entities/customer/customer-balance.d.ts +1 -2
  25. package/dist/entities/customer/customer-balance.js +4 -11
  26. package/dist/entities/customer/customer-collection.d.ts +3 -3
  27. package/dist/entities/customer/customer.d.ts +7 -8
  28. package/dist/entities/customer/customer.js +5 -18
  29. package/dist/entities/discount/discount-collection.d.ts +3 -3
  30. package/dist/entities/discount/discount.d.ts +14 -13
  31. package/dist/entities/discount/discount.js +11 -30
  32. package/dist/entities/index.d.ts +1 -2
  33. package/dist/entities/price/price-collection.d.ts +3 -3
  34. package/dist/entities/price/price-quantity.d.ts +0 -1
  35. package/dist/entities/price/price-quantity.js +0 -6
  36. package/dist/entities/price/price-with-includes.d.ts +13 -12
  37. package/dist/entities/price/price-with-includes.js +10 -24
  38. package/dist/entities/price/price.d.ts +13 -12
  39. package/dist/entities/price/price.js +10 -23
  40. package/dist/entities/product/product-collection.d.ts +3 -3
  41. package/dist/entities/product/product-with-includes.d.ts +10 -10
  42. package/dist/entities/product/product-with-includes.js +7 -20
  43. package/dist/entities/product/product.d.ts +9 -9
  44. package/dist/entities/product/product.js +7 -17
  45. package/dist/entities/shared/adjustment-original-amount.d.ts +3 -4
  46. package/dist/entities/shared/adjustment-original-amount.js +1 -7
  47. package/dist/entities/shared/billing-details.d.ts +6 -7
  48. package/dist/entities/shared/billing-details.js +5 -12
  49. package/dist/entities/shared/chargeback-fee.d.ts +1 -2
  50. package/dist/entities/shared/chargeback-fee.js +1 -7
  51. package/dist/entities/shared/import-meta.d.ts +6 -0
  52. package/dist/entities/shared/import-meta.js +10 -0
  53. package/dist/entities/shared/index.d.ts +1 -0
  54. package/dist/entities/shared/index.js +1 -0
  55. package/dist/entities/shared/money.d.ts +3 -4
  56. package/dist/entities/shared/money.js +1 -7
  57. package/dist/entities/shared/payment-card.d.ts +5 -6
  58. package/dist/entities/shared/payment-card.js +3 -12
  59. package/dist/entities/shared/payment-method-details.d.ts +1 -2
  60. package/dist/entities/shared/payment-method-details.js +1 -7
  61. package/dist/entities/shared/payout-totals-adjustment.d.ts +4 -5
  62. package/dist/entities/shared/payout-totals-adjustment.js +3 -14
  63. package/dist/entities/shared/tax-rates-used.d.ts +4 -5
  64. package/dist/entities/shared/tax-rates-used.js +2 -8
  65. package/dist/entities/shared/time-period.d.ts +0 -1
  66. package/dist/entities/shared/time-period.js +0 -6
  67. package/dist/entities/shared/total-adjustments.d.ts +3 -4
  68. package/dist/entities/shared/total-adjustments.js +1 -11
  69. package/dist/entities/shared/totals.d.ts +0 -1
  70. package/dist/entities/shared/totals.js +0 -8
  71. package/dist/entities/shared/transaction-checkout.d.ts +1 -2
  72. package/dist/entities/shared/transaction-checkout.js +1 -6
  73. package/dist/entities/shared/transaction-payment-attempt.d.ts +8 -9
  74. package/dist/entities/shared/transaction-payment-attempt.js +7 -19
  75. package/dist/entities/shared/transaction-payout-totals-adjusted.d.ts +4 -5
  76. package/dist/entities/shared/transaction-payout-totals-adjusted.js +3 -14
  77. package/dist/entities/shared/transaction-payout-totals.d.ts +4 -5
  78. package/dist/entities/shared/transaction-payout-totals.js +2 -16
  79. package/dist/entities/shared/transaction-totals-adjusted.d.ts +6 -7
  80. package/dist/entities/shared/transaction-totals-adjusted.js +4 -15
  81. package/dist/entities/shared/transaction-totals.d.ts +6 -7
  82. package/dist/entities/shared/transaction-totals.js +4 -18
  83. package/dist/entities/shared/unit-price-override.d.ts +4 -5
  84. package/dist/entities/shared/unit-price-override.js +2 -8
  85. package/dist/entities/shared/unit-totals.d.ts +0 -1
  86. package/dist/entities/shared/unit-totals.js +0 -8
  87. package/dist/entities/subscription/index.d.ts +2 -0
  88. package/dist/entities/subscription/index.js +2 -0
  89. package/dist/entities/subscription/next-transaction-adjustment-item.d.ts +11 -0
  90. package/dist/entities/subscription/next-transaction-adjustment-item.js +14 -0
  91. package/dist/entities/subscription/next-transaction-adjustment-preview.d.ts +9 -0
  92. package/dist/entities/subscription/next-transaction-adjustment-preview.js +13 -0
  93. package/dist/entities/subscription/next-transaction.d.ts +5 -6
  94. package/dist/entities/subscription/next-transaction.js +2 -9
  95. package/dist/entities/subscription/subscription-collection.d.ts +3 -3
  96. package/dist/entities/subscription/subscription-discount.d.ts +4 -5
  97. package/dist/entities/subscription/subscription-discount.js +2 -9
  98. package/dist/entities/subscription/subscription-includes.d.ts +23 -24
  99. package/dist/entities/subscription/subscription-includes.js +20 -48
  100. package/dist/entities/subscription/subscription-item.d.ts +8 -9
  101. package/dist/entities/subscription/subscription-item.js +6 -21
  102. package/dist/entities/subscription/subscription-management.d.ts +3 -4
  103. package/dist/entities/subscription/subscription-management.js +3 -7
  104. package/dist/entities/subscription/subscription-preview-summary-result.d.ts +3 -4
  105. package/dist/entities/subscription/subscription-preview-summary-result.js +1 -8
  106. package/dist/entities/subscription/subscription-preview-update-summary.d.ts +0 -1
  107. package/dist/entities/subscription/subscription-preview-update-summary.js +0 -7
  108. package/dist/entities/subscription/subscription-preview.d.ts +25 -26
  109. package/dist/entities/subscription/subscription-preview.js +22 -51
  110. package/dist/entities/subscription/subscription-price.d.ts +7 -8
  111. package/dist/entities/subscription/subscription-price.js +5 -16
  112. package/dist/entities/subscription/subscription-scheduled-change.d.ts +4 -5
  113. package/dist/entities/subscription/subscription-scheduled-change.js +2 -9
  114. package/dist/entities/subscription/subscription-time-period.d.ts +4 -5
  115. package/dist/entities/subscription/subscription-time-period.js +2 -8
  116. package/dist/entities/subscription/subscription.d.ts +21 -22
  117. package/dist/entities/subscription/subscription.js +22 -48
  118. package/dist/entities/subscription/transaction-details-preview.d.ts +4 -5
  119. package/dist/entities/subscription/transaction-details-preview.js +2 -9
  120. package/dist/entities/subscription/transaction-line-item-preview.d.ts +6 -7
  121. package/dist/entities/subscription/transaction-line-item-preview.js +3 -13
  122. package/dist/entities/transaction/address-preview.d.ts +7 -0
  123. package/dist/entities/transaction/address-preview.js +10 -0
  124. package/dist/entities/transaction/adjustment-totals.d.ts +4 -5
  125. package/dist/entities/transaction/adjustment-totals.js +2 -13
  126. package/dist/entities/transaction/index.d.ts +4 -0
  127. package/dist/entities/transaction/index.js +4 -0
  128. package/dist/entities/transaction/proration.d.ts +7 -0
  129. package/dist/entities/transaction/proration.js +11 -0
  130. package/dist/entities/transaction/transaction-adjustment-item.d.ts +7 -8
  131. package/dist/entities/transaction/transaction-adjustment-item.js +5 -17
  132. package/dist/entities/transaction/transaction-adjustment.d.ts +11 -12
  133. package/dist/entities/transaction/transaction-adjustment.js +9 -27
  134. package/dist/entities/transaction/transaction-collection.d.ts +3 -3
  135. package/dist/entities/transaction/transaction-details.d.ts +8 -9
  136. package/dist/entities/transaction/transaction-details.js +9 -19
  137. package/dist/entities/transaction/transaction-includes.d.ts +25 -26
  138. package/dist/entities/transaction/transaction-includes.js +26 -58
  139. package/dist/entities/transaction/transaction-invoice-pdf.d.ts +0 -1
  140. package/dist/entities/transaction/transaction-invoice-pdf.js +0 -5
  141. package/dist/entities/transaction/transaction-item-preview.d.ts +9 -0
  142. package/dist/entities/transaction/transaction-item-preview.js +14 -0
  143. package/dist/entities/transaction/transaction-item.d.ts +4 -6
  144. package/dist/entities/transaction/transaction-item.js +2 -11
  145. package/dist/entities/transaction/transaction-line-item.d.ts +8 -9
  146. package/dist/entities/transaction/transaction-line-item.js +6 -20
  147. package/dist/entities/transaction/transaction-preview.d.ts +16 -0
  148. package/dist/entities/transaction/transaction-preview.js +19 -0
  149. package/dist/entities/transaction/transaction-proration.d.ts +3 -4
  150. package/dist/entities/transaction/transaction-proration.js +2 -8
  151. package/dist/entities/transaction/transaction.d.ts +19 -20
  152. package/dist/entities/transaction/transaction.js +17 -45
  153. package/dist/entities/transaction/transactions-time-period.d.ts +4 -5
  154. package/dist/entities/transaction/transactions-time-period.js +2 -8
  155. package/dist/internal/api/case-helpers.d.ts +1 -0
  156. package/dist/internal/api/case-helpers.js +55 -0
  157. package/dist/internal/api/client.js +3 -2
  158. package/dist/internal/api/index.d.ts +2 -0
  159. package/dist/internal/api/index.js +7 -0
  160. package/dist/internal/base/path-parameters.d.ts +2 -2
  161. package/dist/internal/base/query-parameters.js +5 -1
  162. package/dist/internal/errors/generic.d.ts +6 -7
  163. package/dist/internal/errors/generic.js +1 -10
  164. package/dist/internal/index.d.ts +1 -1
  165. package/dist/internal/index.js +15 -3
  166. package/dist/resources/addresses/operations/create-address-request-body.d.ts +8 -8
  167. package/dist/resources/addresses/operations/index.d.ts +0 -4
  168. package/dist/resources/addresses/operations/index.js +0 -4
  169. package/dist/resources/addresses/operations/list-address-query-parameters.d.ts +2 -2
  170. package/dist/resources/addresses/operations/update-address-request-body.d.ts +8 -8
  171. package/dist/resources/adjustments/operations/create-adjustment-request-body.d.ts +3 -3
  172. package/dist/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +5 -5
  173. package/dist/resources/businesses/operations/create-business-request-body.d.ts +4 -4
  174. package/dist/resources/businesses/operations/index.d.ts +0 -4
  175. package/dist/resources/businesses/operations/index.js +0 -4
  176. package/dist/resources/businesses/operations/list-business-query-parameters.d.ts +2 -2
  177. package/dist/resources/businesses/operations/update-business-request-body.d.ts +4 -4
  178. package/dist/resources/customers/index.d.ts +2 -2
  179. package/dist/resources/customers/index.js +1 -1
  180. package/dist/resources/customers/operations/create-customer-request-body.d.ts +2 -2
  181. package/dist/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
  182. package/dist/resources/customers/operations/index.d.ts +0 -3
  183. package/dist/resources/customers/operations/index.js +0 -3
  184. package/dist/resources/customers/operations/list-customer-query-parameters.d.ts +2 -2
  185. package/dist/resources/customers/operations/update-customer-request-body.d.ts +2 -2
  186. package/dist/resources/discounts/index.d.ts +1 -1
  187. package/dist/resources/discounts/operations/create-discount-request-body.d.ts +9 -7
  188. package/dist/resources/discounts/operations/index.d.ts +0 -2
  189. package/dist/resources/discounts/operations/index.js +0 -2
  190. package/dist/resources/discounts/operations/list-discount-query-parameters.d.ts +2 -2
  191. package/dist/resources/discounts/operations/update-discount-request-body.d.ts +11 -9
  192. package/dist/resources/prices/index.d.ts +1 -1
  193. package/dist/resources/prices/operations/create-price-request-body.d.ts +10 -9
  194. package/dist/resources/prices/operations/index.d.ts +0 -2
  195. package/dist/resources/prices/operations/index.js +0 -2
  196. package/dist/resources/prices/operations/list-price-query-parameters.d.ts +3 -3
  197. package/dist/resources/prices/operations/update-price-request-body.d.ts +9 -8
  198. package/dist/resources/products/operations/create-product-request-body.d.ts +4 -4
  199. package/dist/resources/products/operations/index.d.ts +0 -2
  200. package/dist/resources/products/operations/index.js +0 -2
  201. package/dist/resources/products/operations/list-product-query-parameters.d.ts +3 -3
  202. package/dist/resources/products/operations/update-product-request-body.d.ts +4 -4
  203. package/dist/resources/subscriptions/index.d.ts +1 -1
  204. package/dist/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
  205. package/dist/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +3 -6
  206. package/dist/resources/subscriptions/operations/index.d.ts +0 -2
  207. package/dist/resources/subscriptions/operations/index.js +0 -2
  208. package/dist/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +7 -7
  209. package/dist/resources/subscriptions/operations/pause-subscription-request-object.d.ts +2 -2
  210. package/dist/resources/subscriptions/operations/resume-subscription-request-object.d.ts +1 -1
  211. package/dist/resources/subscriptions/operations/update-subscription-request-body.d.ts +17 -12
  212. package/dist/resources/transactions/index.d.ts +3 -2
  213. package/dist/resources/transactions/index.js +8 -0
  214. package/dist/resources/transactions/operations/create-transaction-request-body.d.ts +13 -18
  215. package/dist/resources/transactions/operations/index.d.ts +1 -2
  216. package/dist/resources/transactions/operations/index.js +1 -2
  217. package/dist/resources/transactions/operations/list-transaction-query-parameters.d.ts +21 -21
  218. package/dist/resources/transactions/operations/transaction-preview-request-body.d.ts +21 -0
  219. package/dist/resources/transactions/operations/update-transaction-request-body.d.ts +12 -17
  220. package/dist/types/address/address-response.d.ts +16 -0
  221. package/dist/types/address/index.d.ts +1 -1
  222. package/dist/types/address/index.js +1 -1
  223. package/dist/types/adjustment/adjustment-item-response.d.ts +10 -0
  224. package/dist/types/adjustment/{adjustment.d.ts → adjustment-response.d.ts} +6 -6
  225. package/dist/types/adjustment/adjustments-proration-response.d.ts +5 -0
  226. package/dist/types/adjustment/adjustments-time-period-response.d.ts +4 -0
  227. package/dist/types/adjustment/index.d.ts +4 -4
  228. package/dist/types/adjustment/index.js +4 -4
  229. package/dist/types/business/{business.d.ts → business-response.d.ts} +5 -5
  230. package/dist/types/business/businesses-contacts.d.ts +1 -1
  231. package/dist/types/business/index.d.ts +1 -1
  232. package/dist/types/business/index.js +1 -1
  233. package/dist/types/customer/credit-balance-response.d.ts +7 -0
  234. package/dist/types/customer/{customer.d.ts → customer-response.d.ts} +3 -3
  235. package/dist/types/customer/index.d.ts +2 -2
  236. package/dist/types/customer/index.js +2 -2
  237. package/dist/types/discount/discount-response.d.ts +21 -0
  238. package/dist/types/discount/index.d.ts +1 -1
  239. package/dist/types/discount/index.js +1 -1
  240. package/dist/types/price/index.d.ts +1 -1
  241. package/dist/types/price/index.js +1 -1
  242. package/dist/types/price/price-response.d.ts +18 -0
  243. package/dist/types/product/index.d.ts +1 -1
  244. package/dist/types/product/index.js +1 -1
  245. package/dist/types/product/product-response.d.ts +14 -0
  246. package/dist/types/shared/{adjustment-original-amount.d.ts → adjustment-original-amount-response.d.ts} +1 -1
  247. package/dist/types/shared/billing-details-create.d.ts +7 -0
  248. package/dist/types/shared/billing-details-response.d.ts +7 -0
  249. package/dist/types/shared/billing-details-update.d.ts +4 -4
  250. package/dist/types/shared/chargeback-fee.d.ts +2 -2
  251. package/dist/types/shared/custom-data.d.ts +1 -1
  252. package/dist/types/shared/import-meta-response.d.ts +4 -0
  253. package/dist/types/shared/index.d.ts +19 -15
  254. package/dist/types/shared/index.js +19 -15
  255. package/dist/types/shared/money-response.d.ts +5 -0
  256. package/dist/types/shared/money.d.ts +1 -1
  257. package/dist/types/shared/{payment-card.d.ts → payment-card-response.d.ts} +3 -3
  258. package/dist/types/shared/payment-method-details.d.ts +2 -2
  259. package/dist/types/shared/{payout-totals-adjustment.d.ts → payout-totals-adjustment-response.d.ts} +2 -2
  260. package/dist/types/shared/shared-price-response.d.ts +17 -0
  261. package/dist/types/shared/shared-product-response.d.ts +13 -0
  262. package/dist/types/shared/tax-rates-used-response.d.ts +5 -0
  263. package/dist/types/shared/{total-adjustments.d.ts → total-adjustments-response.d.ts} +1 -1
  264. package/dist/types/shared/transaction-checkout.d.ts +1 -1
  265. package/dist/types/shared/transaction-details-preview-response.d.ts +6 -0
  266. package/dist/types/shared/transaction-line-item-preview-response.d.ts +9 -0
  267. package/dist/types/shared/{transaction-payment-attempt.d.ts → transaction-payment-attempt-response.d.ts} +4 -4
  268. package/dist/types/shared/{transaction-payout-totals-adjusted.d.ts → transaction-payout-totals-adjusted-response.d.ts} +2 -2
  269. package/dist/types/shared/{transaction-payout-totals.d.ts → transaction-payout-totals-response.d.ts} +1 -1
  270. package/dist/types/shared/{transaction-totals-adjusted.d.ts → transaction-totals-adjusted-response.d.ts} +3 -3
  271. package/dist/types/shared/{transaction-totals.d.ts → transaction-totals-response.d.ts} +3 -3
  272. package/dist/types/shared/unit-price-override-response.d.ts +6 -0
  273. package/dist/types/shared/unit-price-override.d.ts +2 -2
  274. package/dist/types/subscription/index.d.ts +10 -10
  275. package/dist/types/subscription/index.js +10 -10
  276. package/dist/types/subscription/next-transaction-response.d.ts +11 -0
  277. package/dist/types/subscription/{subscription-discount.d.ts → subscription-discount-response.d.ts} +1 -1
  278. package/dist/types/subscription/subscription-item-response.d.ts +13 -0
  279. package/dist/types/subscription/subscription-management-response.d.ts +4 -0
  280. package/dist/types/subscription/subscription-preview-response.d.ts +29 -0
  281. package/dist/types/subscription/subscription-preview-update-summary.d.ts +4 -4
  282. package/dist/types/subscription/subscription-price-response.d.ts +11 -0
  283. package/dist/types/subscription/subscription-response.d.ts +17 -17
  284. package/dist/types/subscription/subscription-result-response.d.ts +4 -0
  285. package/dist/types/subscription/{subscription-scheduled-change.d.ts → subscription-scheduled-change-response.d.ts} +2 -2
  286. package/dist/types/subscription/subscription-time-period-response.d.ts +4 -0
  287. package/dist/types/subscription/subscription-update-item.d.ts +2 -2
  288. package/dist/types/transaction/{adjustment-totals.d.ts → adjustment-totals-response.d.ts} +2 -2
  289. package/dist/types/transaction/index.d.ts +11 -7
  290. package/dist/types/transaction/index.js +11 -7
  291. package/dist/types/transaction/transaction-adjustment-item-response.d.ts +10 -0
  292. package/dist/types/transaction/transaction-adjustment-response.d.ts +18 -0
  293. package/dist/types/transaction/transaction-details-response.d.ts +9 -0
  294. package/dist/types/transaction/transaction-item-response.d.ts +7 -0
  295. package/dist/types/transaction/transaction-item.d.ts +1 -4
  296. package/dist/types/transaction/transaction-line-item-response.d.ts +11 -0
  297. package/dist/types/transaction/transaction-preview-item.d.ts +5 -0
  298. package/dist/types/transaction/transaction-preview-response.d.ts +27 -0
  299. package/dist/types/transaction/transaction-proration-response.d.ts +5 -0
  300. package/dist/types/transaction/transaction-response.d.ts +32 -0
  301. package/dist/types/transaction/transactions-time-period-response.d.ts +4 -0
  302. package/dist/types/transaction/transactions-time-period.d.ts +2 -2
  303. package/dist/version.d.ts +1 -1
  304. package/dist/version.js +1 -1
  305. package/package.json +3 -1
  306. package/dist/resources/addresses/operations/create-address-path-parameters.d.ts +0 -3
  307. package/dist/resources/addresses/operations/get-address-path-parameters.d.ts +0 -4
  308. package/dist/resources/addresses/operations/list-address-path-parameters.d.ts +0 -3
  309. package/dist/resources/addresses/operations/update-address-path-parameters.d.ts +0 -4
  310. package/dist/resources/businesses/operations/create-business-path-parameters.d.ts +0 -3
  311. package/dist/resources/businesses/operations/get-business-path-parameters.d.ts +0 -4
  312. package/dist/resources/businesses/operations/list-business-path-parameters.d.ts +0 -3
  313. package/dist/resources/businesses/operations/update-business-path-parameters.d.ts +0 -4
  314. package/dist/resources/customers/operations/get-credit-balance-path-parameters.d.ts +0 -3
  315. package/dist/resources/customers/operations/get-customer-path-parameters.d.ts +0 -3
  316. package/dist/resources/customers/operations/update-customer-path-parameters.d.ts +0 -3
  317. package/dist/resources/discounts/operations/get-discount-path-parameters.d.ts +0 -3
  318. package/dist/resources/discounts/operations/update-discount-path-parameters.d.ts +0 -3
  319. package/dist/resources/prices/operations/get-price-path-parameters.d.ts +0 -3
  320. package/dist/resources/prices/operations/update-price-path-parameters.d.ts +0 -3
  321. package/dist/resources/products/operations/get-product-path-parameters.d.ts +0 -3
  322. package/dist/resources/products/operations/update-product-path-parameters.d.ts +0 -3
  323. package/dist/resources/subscriptions/operations/get-subscription-path-parameters.d.ts +0 -3
  324. package/dist/resources/subscriptions/operations/update-subscription-path-parameters.d.ts +0 -3
  325. package/dist/resources/transactions/operations/get-transaction-path-parameters.d.ts +0 -3
  326. package/dist/resources/transactions/operations/update-transaction-path-parameters.d.ts +0 -3
  327. package/dist/types/address/address.d.ts +0 -16
  328. package/dist/types/adjustment/adjustment-item.d.ts +0 -10
  329. package/dist/types/adjustment/adjustments-proration.d.ts +0 -5
  330. package/dist/types/adjustment/adjustments-time-period.d.ts +0 -4
  331. package/dist/types/customer/credit-balance.d.ts +0 -7
  332. package/dist/types/discount/discount.d.ts +0 -19
  333. package/dist/types/price/price.d.ts +0 -16
  334. package/dist/types/product/product.d.ts +0 -13
  335. package/dist/types/shared/billing-details.d.ts +0 -7
  336. package/dist/types/shared/shared-price.d.ts +0 -15
  337. package/dist/types/shared/shared-product.d.ts +0 -12
  338. package/dist/types/shared/tax-rates-used.d.ts +0 -5
  339. package/dist/types/shared/transaction-details-preview.d.ts +0 -6
  340. package/dist/types/shared/transaction-line-item-preview.d.ts +0 -9
  341. package/dist/types/subscription/next-transaction.d.ts +0 -6
  342. package/dist/types/subscription/subscription-item.d.ts +0 -13
  343. package/dist/types/subscription/subscription-management.d.ts +0 -4
  344. package/dist/types/subscription/subscription-preview.d.ts +0 -29
  345. package/dist/types/subscription/subscription-preview.js +0 -2
  346. package/dist/types/subscription/subscription-price.d.ts +0 -11
  347. package/dist/types/subscription/subscription-price.js +0 -2
  348. package/dist/types/subscription/subscription-result.d.ts +0 -4
  349. package/dist/types/subscription/subscription-result.js +0 -2
  350. package/dist/types/subscription/subscription-scheduled-change.js +0 -2
  351. package/dist/types/subscription/subscription-time-period.d.ts +0 -4
  352. package/dist/types/subscription/subscription-time-period.js +0 -2
  353. package/dist/types/transaction/adjustment-totals.js +0 -2
  354. package/dist/types/transaction/transaction-adjustment-item.d.ts +0 -10
  355. package/dist/types/transaction/transaction-adjustment-item.js +0 -2
  356. package/dist/types/transaction/transaction-adjustment.d.ts +0 -18
  357. package/dist/types/transaction/transaction-adjustment.js +0 -2
  358. package/dist/types/transaction/transaction-details.d.ts +0 -9
  359. package/dist/types/transaction/transaction-details.js +0 -2
  360. package/dist/types/transaction/transaction-line-item.d.ts +0 -11
  361. package/dist/types/transaction/transaction-line-item.js +0 -2
  362. package/dist/types/transaction/transaction-proration.d.ts +0 -5
  363. package/dist/types/transaction/transaction-proration.js +0 -2
  364. package/dist/types/transaction/transaction.d.ts +0 -32
  365. package/dist/types/transaction/transaction.js +0 -2
  366. /package/dist/resources/{addresses/operations/create-address-path-parameters.js → transactions/operations/transaction-preview-request-body.js} +0 -0
  367. /package/dist/{resources/addresses/operations/get-address-path-parameters.js → types/address/address-response.js} +0 -0
  368. /package/dist/{resources/addresses/operations/list-address-path-parameters.js → types/adjustment/adjustment-item-response.js} +0 -0
  369. /package/dist/{resources/addresses/operations/update-address-path-parameters.js → types/adjustment/adjustment-response.js} +0 -0
  370. /package/dist/{resources/businesses/operations/create-business-path-parameters.js → types/adjustment/adjustments-proration-response.js} +0 -0
  371. /package/dist/{resources/businesses/operations/get-business-path-parameters.js → types/adjustment/adjustments-time-period-response.js} +0 -0
  372. /package/dist/{resources/businesses/operations/list-business-path-parameters.js → types/business/business-response.js} +0 -0
  373. /package/dist/{resources/businesses/operations/update-business-path-parameters.js → types/customer/credit-balance-response.js} +0 -0
  374. /package/dist/{resources/customers/operations/get-credit-balance-path-parameters.js → types/customer/customer-response.js} +0 -0
  375. /package/dist/{resources/customers/operations/get-customer-path-parameters.js → types/discount/discount-response.js} +0 -0
  376. /package/dist/{resources/customers/operations/update-customer-path-parameters.js → types/price/price-response.js} +0 -0
  377. /package/dist/{resources/discounts/operations/get-discount-path-parameters.js → types/product/product-response.js} +0 -0
  378. /package/dist/{resources/discounts/operations/update-discount-path-parameters.js → types/shared/adjustment-original-amount-response.js} +0 -0
  379. /package/dist/{resources/prices/operations/get-price-path-parameters.js → types/shared/billing-details-create.js} +0 -0
  380. /package/dist/{resources/prices/operations/update-price-path-parameters.js → types/shared/billing-details-response.js} +0 -0
  381. /package/dist/{resources/products/operations/get-product-path-parameters.js → types/shared/import-meta-response.js} +0 -0
  382. /package/dist/{resources/products/operations/update-product-path-parameters.js → types/shared/money-response.js} +0 -0
  383. /package/dist/{resources/subscriptions/operations/get-subscription-path-parameters.js → types/shared/payment-card-response.js} +0 -0
  384. /package/dist/{resources/subscriptions/operations/update-subscription-path-parameters.js → types/shared/payout-totals-adjustment-response.js} +0 -0
  385. /package/dist/{resources/transactions/operations/get-transaction-path-parameters.js → types/shared/shared-price-response.js} +0 -0
  386. /package/dist/{resources/transactions/operations/update-transaction-path-parameters.js → types/shared/shared-product-response.js} +0 -0
  387. /package/dist/types/{address/address.js → shared/tax-rates-used-response.js} +0 -0
  388. /package/dist/types/{adjustment/adjustment-item.js → shared/total-adjustments-response.js} +0 -0
  389. /package/dist/types/{adjustment/adjustment.js → shared/transaction-details-preview-response.js} +0 -0
  390. /package/dist/types/{adjustment/adjustments-proration.js → shared/transaction-line-item-preview-response.js} +0 -0
  391. /package/dist/types/{adjustment/adjustments-time-period.js → shared/transaction-payment-attempt-response.js} +0 -0
  392. /package/dist/types/{business/business.js → shared/transaction-payout-totals-adjusted-response.js} +0 -0
  393. /package/dist/types/{customer/credit-balance.js → shared/transaction-payout-totals-response.js} +0 -0
  394. /package/dist/types/{customer/customer.js → shared/transaction-totals-adjusted-response.js} +0 -0
  395. /package/dist/types/{discount/discount.js → shared/transaction-totals-response.js} +0 -0
  396. /package/dist/types/{price/price.js → shared/unit-price-override-response.js} +0 -0
  397. /package/dist/types/{product/product.js → subscription/next-transaction-response.js} +0 -0
  398. /package/dist/types/{shared/adjustment-original-amount.js → subscription/subscription-discount-response.js} +0 -0
  399. /package/dist/types/{shared/billing-details.js → subscription/subscription-item-response.js} +0 -0
  400. /package/dist/types/{shared/payment-card.js → subscription/subscription-management-response.js} +0 -0
  401. /package/dist/types/{shared/payout-totals-adjustment.js → subscription/subscription-preview-response.js} +0 -0
  402. /package/dist/types/{shared/shared-price.js → subscription/subscription-price-response.js} +0 -0
  403. /package/dist/types/{shared/shared-product.js → subscription/subscription-result-response.js} +0 -0
  404. /package/dist/types/{shared/tax-rates-used.js → subscription/subscription-scheduled-change-response.js} +0 -0
  405. /package/dist/types/{shared/total-adjustments.js → subscription/subscription-time-period-response.js} +0 -0
  406. /package/dist/types/{shared/transaction-details-preview.js → transaction/adjustment-totals-response.js} +0 -0
  407. /package/dist/types/{shared/transaction-line-item-preview.js → transaction/transaction-adjustment-item-response.js} +0 -0
  408. /package/dist/types/{shared/transaction-payment-attempt.js → transaction/transaction-adjustment-response.js} +0 -0
  409. /package/dist/types/{shared/transaction-payout-totals-adjusted.js → transaction/transaction-details-response.js} +0 -0
  410. /package/dist/types/{shared/transaction-payout-totals.js → transaction/transaction-item-response.js} +0 -0
  411. /package/dist/types/{shared/transaction-totals-adjusted.js → transaction/transaction-line-item-response.js} +0 -0
  412. /package/dist/types/{shared/transaction-totals.js → transaction/transaction-preview-item.js} +0 -0
  413. /package/dist/types/{subscription/next-transaction.js → transaction/transaction-preview-response.js} +0 -0
  414. /package/dist/types/{subscription/subscription-discount.js → transaction/transaction-proration-response.js} +0 -0
  415. /package/dist/types/{subscription/subscription-item.js → transaction/transaction-response.js} +0 -0
  416. /package/dist/types/{subscription/subscription-management.js → transaction/transactions-time-period-response.js} +0 -0
@@ -1,4 +1,4 @@
1
1
  export interface IBusinessContacts {
2
- name?: string | undefined | null;
2
+ name?: string | null;
3
3
  email: string;
4
4
  }
@@ -1,2 +1,2 @@
1
1
  export * from './businesses-contacts';
2
- export * from './business';
2
+ export * from './business-response';
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./businesses-contacts"), exports);
18
- __exportStar(require("./business"), exports);
18
+ __exportStar(require("./business-response"), exports);
@@ -0,0 +1,7 @@
1
+ import { type ICustomerBalance } from '../index';
2
+ import { type CurrencyCode } from '../../enums';
3
+ export interface ICreditBalanceResponse {
4
+ customer_id?: string | null;
5
+ currency_code?: CurrencyCode | null;
6
+ balance?: ICustomerBalance | null;
7
+ }
@@ -1,12 +1,12 @@
1
1
  import { type ICustomData } from '../index';
2
2
  import { type Status } from '../../enums';
3
- export interface ICustomer {
3
+ export interface ICustomerResponse {
4
4
  id: string;
5
- name?: string | undefined | null;
5
+ name?: string | null;
6
6
  email: string;
7
7
  marketing_consent: boolean;
8
8
  status: Status;
9
- custom_data?: ICustomData | undefined | null;
9
+ custom_data?: ICustomData | null;
10
10
  locale: string;
11
11
  created_at: string;
12
12
  updated_at: string;
@@ -1,3 +1,3 @@
1
- export * from './customer';
2
- export * from './credit-balance';
1
+ export * from './customer-response';
2
+ export * from './credit-balance-response';
3
3
  export * from './customer-balance';
@@ -14,6 +14,6 @@ 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"), exports);
18
- __exportStar(require("./credit-balance"), exports);
17
+ __exportStar(require("./customer-response"), exports);
18
+ __exportStar(require("./credit-balance-response"), exports);
19
19
  __exportStar(require("./customer-balance"), exports);
@@ -0,0 +1,21 @@
1
+ import { type CurrencyCode, type DiscountStatus, type DiscountType } from '../../enums';
2
+ import { type ICustomData } from '../shared';
3
+ export interface IDiscountResponse {
4
+ id: string;
5
+ status: DiscountStatus;
6
+ description: string;
7
+ enabled_for_checkout: boolean;
8
+ code?: string | null;
9
+ type: DiscountType;
10
+ amount: string;
11
+ currency_code?: CurrencyCode | null;
12
+ recur: boolean;
13
+ maximum_recurring_intervals?: number | null;
14
+ usage_limit?: number | null;
15
+ restrict_to?: string[] | null;
16
+ expires_at?: string | null;
17
+ custom_data?: ICustomData | null;
18
+ times_used: number;
19
+ created_at: string;
20
+ updated_at: string;
21
+ }
@@ -1 +1 @@
1
- export * from './discount';
1
+ export * from './discount-response';
@@ -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"), exports);
17
+ __exportStar(require("./discount-response"), exports);
@@ -1 +1 @@
1
- export * from './price';
1
+ export * from './price-response';
@@ -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("./price"), exports);
17
+ __exportStar(require("./price-response"), exports);
@@ -0,0 +1,18 @@
1
+ import { type ITimePeriod, type IMoneyResponse, type IUnitPriceOverrideResponse, type IPriceQuantity, type ICustomData, type ISharedProductResponse, type IImportMetaResponse } from '../index';
2
+ import { type TaxMode, type Status } from '../../enums';
3
+ export interface IPriceResponse {
4
+ id: string;
5
+ product_id: string;
6
+ description: string;
7
+ name?: string | null;
8
+ billing_cycle?: ITimePeriod | null;
9
+ trial_period?: ITimePeriod | null;
10
+ tax_mode: TaxMode;
11
+ unit_price: IMoneyResponse;
12
+ unit_price_overrides: IUnitPriceOverrideResponse[];
13
+ quantity: IPriceQuantity;
14
+ status: Status;
15
+ custom_data?: ICustomData | null;
16
+ import_meta?: IImportMetaResponse | null;
17
+ product?: ISharedProductResponse | null;
18
+ }
@@ -1 +1 @@
1
- export * from './product';
1
+ export * from './product-response';
@@ -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"), exports);
17
+ __exportStar(require("./product-response"), exports);
@@ -0,0 +1,14 @@
1
+ import { type ICustomData, type IImportMetaResponse, type ISharedPriceResponse } from '../index';
2
+ import { type TaxCategory, type Status } from '../../enums';
3
+ export interface IProductResponse {
4
+ id: string;
5
+ name: string;
6
+ description?: string | null;
7
+ tax_category: TaxCategory;
8
+ image_url?: string | null;
9
+ custom_data?: ICustomData | null;
10
+ status: Status;
11
+ created_at: string;
12
+ import_meta?: IImportMetaResponse | null;
13
+ prices?: ISharedPriceResponse[] | null;
14
+ }
@@ -1,5 +1,5 @@
1
1
  import { type AdjustmentCurrencyCode } from '../../enums';
2
- export interface IAdjustmentOriginalAmount {
2
+ export interface IAdjustmentOriginalAmountResponse {
3
3
  amount: string;
4
4
  currency_code: AdjustmentCurrencyCode;
5
5
  }
@@ -0,0 +1,7 @@
1
+ import { type ITimePeriod } from '../index';
2
+ export interface IBillingDetailsCreate {
3
+ enableCheckout?: boolean;
4
+ purchaseOrderNumber?: string;
5
+ additionalInformation?: string | null;
6
+ paymentTerms: ITimePeriod;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { type ITimePeriod } from '../index';
2
+ export interface IBillingDetailsResponse {
3
+ enable_checkout?: boolean | null;
4
+ purchase_order_number?: string | null;
5
+ additional_information?: string | null;
6
+ payment_terms: ITimePeriod;
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { type ITimePeriod } from '../index';
2
2
  export interface IBillingDetailsUpdate {
3
- enable_checkout: boolean;
4
- purchase_order_number: string;
5
- additional_information: string;
6
- payment_terms: ITimePeriod;
3
+ enableCheckout: boolean;
4
+ purchaseOrderNumber: string;
5
+ additionalInformation: string;
6
+ paymentTerms: ITimePeriod;
7
7
  }
@@ -1,5 +1,5 @@
1
- import { type IAdjustmentOriginalAmount } from '../index';
1
+ import { type IAdjustmentOriginalAmountResponse } from '../index';
2
2
  export interface IChargebackFee {
3
3
  amount: string;
4
- original?: IAdjustmentOriginalAmount | undefined | null;
4
+ original?: IAdjustmentOriginalAmountResponse | null;
5
5
  }
@@ -1 +1 @@
1
- export type ICustomData = Record<string, unknown>;
1
+ export type ICustomData = object;
@@ -0,0 +1,4 @@
1
+ export interface IImportMetaResponse {
2
+ external_id?: string | null;
3
+ imported_from: string;
4
+ }
@@ -1,27 +1,31 @@
1
1
  export * from './time-period';
2
2
  export * from './money';
3
+ export * from './money-response';
3
4
  export * from './unit-price-override';
5
+ export * from './unit-price-override-response';
4
6
  export * from './price-quantity';
5
- export * from './shared-price';
6
- export * from './shared-product';
7
- export * from './billing-details';
7
+ export * from './shared-price-response';
8
+ export * from './shared-product-response';
9
+ export * from './billing-details-response';
8
10
  export * from './totals';
9
- export * from './tax-rates-used';
10
- export * from './transaction-totals';
11
- export * from './transaction-totals-adjusted';
12
- export * from './transaction-payout-totals';
13
- export * from './adjustment-original-amount';
11
+ export * from './tax-rates-used-response';
12
+ export * from './transaction-totals-response';
13
+ export * from './transaction-totals-adjusted-response';
14
+ export * from './transaction-payout-totals-response';
15
+ export * from './adjustment-original-amount-response';
14
16
  export * from './chargeback-fee';
15
- export * from './transaction-payout-totals-adjusted';
17
+ export * from './transaction-payout-totals-adjusted-response';
16
18
  export * from './unit-totals';
17
- export * from './payment-card';
19
+ export * from './payment-card-response';
18
20
  export * from './payment-method-details';
19
- export * from './transaction-payment-attempt';
21
+ export * from './transaction-payment-attempt-response';
20
22
  export * from './transaction-checkout';
21
23
  export * from './adjustment-item-totals';
22
- export * from './total-adjustments';
23
- export * from './payout-totals-adjustment';
24
- export * from './transaction-line-item-preview';
25
- export * from './transaction-details-preview';
24
+ export * from './total-adjustments-response';
25
+ export * from './payout-totals-adjustment-response';
26
+ export * from './transaction-line-item-preview-response';
27
+ export * from './transaction-details-preview-response';
28
+ export * from './billing-details-create';
26
29
  export * from './billing-details-update';
27
30
  export * from './custom-data';
31
+ export * from './import-meta-response';
@@ -16,28 +16,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./time-period"), exports);
18
18
  __exportStar(require("./money"), exports);
19
+ __exportStar(require("./money-response"), exports);
19
20
  __exportStar(require("./unit-price-override"), exports);
21
+ __exportStar(require("./unit-price-override-response"), exports);
20
22
  __exportStar(require("./price-quantity"), exports);
21
- __exportStar(require("./shared-price"), exports);
22
- __exportStar(require("./shared-product"), exports);
23
- __exportStar(require("./billing-details"), exports);
23
+ __exportStar(require("./shared-price-response"), exports);
24
+ __exportStar(require("./shared-product-response"), exports);
25
+ __exportStar(require("./billing-details-response"), exports);
24
26
  __exportStar(require("./totals"), exports);
25
- __exportStar(require("./tax-rates-used"), exports);
26
- __exportStar(require("./transaction-totals"), exports);
27
- __exportStar(require("./transaction-totals-adjusted"), exports);
28
- __exportStar(require("./transaction-payout-totals"), exports);
29
- __exportStar(require("./adjustment-original-amount"), exports);
27
+ __exportStar(require("./tax-rates-used-response"), exports);
28
+ __exportStar(require("./transaction-totals-response"), exports);
29
+ __exportStar(require("./transaction-totals-adjusted-response"), exports);
30
+ __exportStar(require("./transaction-payout-totals-response"), exports);
31
+ __exportStar(require("./adjustment-original-amount-response"), exports);
30
32
  __exportStar(require("./chargeback-fee"), exports);
31
- __exportStar(require("./transaction-payout-totals-adjusted"), exports);
33
+ __exportStar(require("./transaction-payout-totals-adjusted-response"), exports);
32
34
  __exportStar(require("./unit-totals"), exports);
33
- __exportStar(require("./payment-card"), exports);
35
+ __exportStar(require("./payment-card-response"), exports);
34
36
  __exportStar(require("./payment-method-details"), exports);
35
- __exportStar(require("./transaction-payment-attempt"), exports);
37
+ __exportStar(require("./transaction-payment-attempt-response"), exports);
36
38
  __exportStar(require("./transaction-checkout"), exports);
37
39
  __exportStar(require("./adjustment-item-totals"), exports);
38
- __exportStar(require("./total-adjustments"), exports);
39
- __exportStar(require("./payout-totals-adjustment"), exports);
40
- __exportStar(require("./transaction-line-item-preview"), exports);
41
- __exportStar(require("./transaction-details-preview"), exports);
40
+ __exportStar(require("./total-adjustments-response"), exports);
41
+ __exportStar(require("./payout-totals-adjustment-response"), exports);
42
+ __exportStar(require("./transaction-line-item-preview-response"), exports);
43
+ __exportStar(require("./transaction-details-preview-response"), exports);
44
+ __exportStar(require("./billing-details-create"), exports);
42
45
  __exportStar(require("./billing-details-update"), exports);
43
46
  __exportStar(require("./custom-data"), exports);
47
+ __exportStar(require("./import-meta-response"), exports);
@@ -0,0 +1,5 @@
1
+ import { type CurrencyCode } from '../../enums';
2
+ export interface IMoneyResponse {
3
+ amount: string;
4
+ currency_code: CurrencyCode;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import { type CurrencyCode } from '../../enums';
2
2
  export interface IMoney {
3
3
  amount: string;
4
- currency_code: CurrencyCode;
4
+ currencyCode: CurrencyCode;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { type PaymentCardType } from '../../enums';
2
- export interface IPaymentCard {
2
+ export interface IPaymentCardResponse {
3
3
  type: PaymentCardType;
4
4
  last4: string;
5
- expiry_month: unknown;
6
- expiry_year: unknown;
5
+ expiry_month: number;
6
+ expiry_year: number;
7
7
  cardholder_name: string;
8
8
  }
@@ -1,6 +1,6 @@
1
- import { type IPaymentCard } from '../index';
1
+ import { type IPaymentCardResponse } from '../index';
2
2
  import { type PaymentType } from '../../enums';
3
3
  export interface IPaymentMethodDetails {
4
4
  type: PaymentType;
5
- card?: IPaymentCard | undefined | null;
5
+ card?: IPaymentCardResponse | null;
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { type IChargebackFee } from '../index';
2
2
  import { type PayoutCurrencyCode } from '../../enums';
3
- export interface IPayoutTotalsAdjustment {
3
+ export interface IPayoutTotalsAdjustmentResponse {
4
4
  subtotal: string;
5
5
  tax: string;
6
6
  total: string;
7
7
  fee: string;
8
- chargeback_fee?: IChargebackFee | undefined | null;
8
+ chargeback_fee?: IChargebackFee | null;
9
9
  earnings: string;
10
10
  currency_code: PayoutCurrencyCode;
11
11
  }
@@ -0,0 +1,17 @@
1
+ import { type ITimePeriod, type IMoneyResponse, type IUnitPriceOverrideResponse, type IPriceQuantity, type ICustomData, type IImportMetaResponse } from '../index';
2
+ import { type TaxMode, type Status } from '../../enums';
3
+ export interface ISharedPriceResponse {
4
+ id: string;
5
+ product_id: string;
6
+ description: string;
7
+ name?: string | null;
8
+ billing_cycle?: ITimePeriod | null;
9
+ trial_period?: ITimePeriod | null;
10
+ tax_mode: TaxMode;
11
+ unit_price?: IMoneyResponse | null;
12
+ unit_price_overrides: IUnitPriceOverrideResponse[];
13
+ quantity?: IPriceQuantity | null;
14
+ status: Status;
15
+ custom_data?: ICustomData | null;
16
+ import_meta?: IImportMetaResponse | null;
17
+ }
@@ -0,0 +1,13 @@
1
+ import { type ICustomData, type IImportMetaResponse } from '../index';
2
+ import { type TaxCategory, type Status } from '../../enums';
3
+ export interface ISharedProductResponse {
4
+ id: string;
5
+ name: string;
6
+ description?: string | null;
7
+ tax_category: TaxCategory;
8
+ image_url?: string | null;
9
+ custom_data?: ICustomData | null;
10
+ status: Status;
11
+ created_at: string;
12
+ import_meta?: IImportMetaResponse | null;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { type ITotals } from '../index';
2
+ export interface ITaxRatesUsedResponse {
3
+ tax_rate: string;
4
+ totals?: ITotals | null;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import { type CurrencyCode } from '../../enums';
2
- export interface ITotalAdjustments {
2
+ export interface ITotalAdjustmentsResponse {
3
3
  subtotal: string;
4
4
  tax: string;
5
5
  total: string;
@@ -1,3 +1,3 @@
1
1
  export interface ITransactionCheckout {
2
- url?: string | undefined | null;
2
+ url?: string | null;
3
3
  }
@@ -0,0 +1,6 @@
1
+ import { type ITaxRatesUsedResponse, type ITransactionTotalsResponse, type ITransactionLineItemPreviewResponse } from '../index';
2
+ export interface ITransactionDetailsPreviewResponse {
3
+ tax_rates_used: ITaxRatesUsedResponse[];
4
+ totals: ITransactionTotalsResponse;
5
+ line_items: ITransactionLineItemPreviewResponse[];
6
+ }
@@ -0,0 +1,9 @@
1
+ import { type IUnitTotals, type ITotals, type ISharedProductResponse } from '../index';
2
+ export interface ITransactionLineItemPreviewResponse {
3
+ price_id: string;
4
+ quantity: number;
5
+ tax_rate: string;
6
+ unit_totals: IUnitTotals;
7
+ totals: ITotals;
8
+ product: ISharedProductResponse;
9
+ }
@@ -1,12 +1,12 @@
1
1
  import { type IPaymentMethodDetails } from '../index';
2
2
  import { type PaymentAttemptStatus, type ErrorCode } from '../../enums';
3
- export interface ITransactionPaymentAttempt {
3
+ export interface ITransactionPaymentAttemptResponse {
4
4
  payment_attempt_id: string;
5
5
  stored_payment_method_id: string;
6
6
  amount: string;
7
7
  status: PaymentAttemptStatus;
8
- error_code?: ErrorCode | undefined | null;
9
- method_details?: IPaymentMethodDetails | undefined | null;
8
+ error_code?: ErrorCode | null;
9
+ method_details?: IPaymentMethodDetails | null;
10
10
  created_at: string;
11
- captured_at?: string | undefined | null;
11
+ captured_at?: string | null;
12
12
  }
@@ -1,11 +1,11 @@
1
1
  import { type IChargebackFee } from '../index';
2
2
  import { type PayoutCurrencyCode } from '../../enums';
3
- export interface ITransactionPayoutTotalsAdjusted {
3
+ export interface ITransactionPayoutTotalsAdjustedResponse {
4
4
  subtotal: string;
5
5
  tax: string;
6
6
  total: string;
7
7
  fee: string;
8
- chargeback_fee?: IChargebackFee | undefined | null;
8
+ chargeback_fee?: IChargebackFee | null;
9
9
  earnings: string;
10
10
  currency_code: PayoutCurrencyCode;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { type PayoutCurrencyCode } from '../../enums';
2
- export interface ITransactionPayoutTotals {
2
+ export interface ITransactionPayoutTotalsResponse {
3
3
  subtotal: string;
4
4
  discount: string;
5
5
  tax: string;
@@ -1,10 +1,10 @@
1
1
  import { type CurrencyCode } from '../../enums';
2
- export interface ITransactionTotalsAdjusted {
2
+ export interface ITransactionTotalsAdjustedResponse {
3
3
  subtotal: string;
4
4
  tax: string;
5
5
  total: string;
6
6
  grand_total: string;
7
- fee?: string | undefined | null;
8
- earnings?: string | undefined | null;
7
+ fee?: string | null;
8
+ earnings?: string | null;
9
9
  currency_code: CurrencyCode;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import { type CurrencyCode } from '../../enums';
2
- export interface ITransactionTotals {
2
+ export interface ITransactionTotalsResponse {
3
3
  subtotal: string;
4
4
  discount: string;
5
5
  tax: string;
@@ -7,7 +7,7 @@ export interface ITransactionTotals {
7
7
  credit: string;
8
8
  balance: string;
9
9
  grand_total: string;
10
- fee?: string | undefined | null;
11
- earnings?: string | undefined | null;
10
+ fee?: string | null;
11
+ earnings?: string | null;
12
12
  currency_code: CurrencyCode;
13
13
  }
@@ -0,0 +1,6 @@
1
+ import { type IMoneyResponse } from '../index';
2
+ import { type CountryCode } from '../../enums';
3
+ export interface IUnitPriceOverrideResponse {
4
+ country_codes: CountryCode[];
5
+ unit_price: IMoneyResponse;
6
+ }
@@ -1,6 +1,6 @@
1
1
  import { type IMoney } from '../index';
2
2
  import { type CountryCode } from '../../enums';
3
3
  export interface IUnitPriceOverride {
4
- country_codes: CountryCode[];
5
- unit_price: IMoney;
4
+ countryCodes: CountryCode[];
5
+ unitPrice: IMoney;
6
6
  }
@@ -1,13 +1,13 @@
1
- export * from './subscription-discount';
2
- export * from './subscription-time-period';
3
- export * from './subscription-scheduled-change';
4
- export * from './subscription-management';
5
- export * from './subscription-price';
6
- export * from './subscription-item';
7
- export * from './next-transaction';
8
- export * from './subscription-discount';
1
+ export * from './subscription-discount-response';
2
+ export * from './subscription-time-period-response';
3
+ export * from './subscription-scheduled-change-response';
4
+ export * from './subscription-management-response';
5
+ export * from './subscription-price-response';
6
+ export * from './subscription-item-response';
7
+ export * from './next-transaction-response';
8
+ export * from './subscription-discount-response';
9
9
  export * from './subscription-update-item';
10
10
  export * from './subscription-response';
11
- export * from './subscription-preview';
11
+ export * from './subscription-preview-response';
12
12
  export * from './subscription-preview-update-summary';
13
- export * from './subscription-result';
13
+ export * from './subscription-result-response';
@@ -14,16 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./subscription-discount"), exports);
18
- __exportStar(require("./subscription-time-period"), exports);
19
- __exportStar(require("./subscription-scheduled-change"), exports);
20
- __exportStar(require("./subscription-management"), exports);
21
- __exportStar(require("./subscription-price"), exports);
22
- __exportStar(require("./subscription-item"), exports);
23
- __exportStar(require("./next-transaction"), exports);
24
- __exportStar(require("./subscription-discount"), exports);
17
+ __exportStar(require("./subscription-discount-response"), exports);
18
+ __exportStar(require("./subscription-time-period-response"), exports);
19
+ __exportStar(require("./subscription-scheduled-change-response"), exports);
20
+ __exportStar(require("./subscription-management-response"), exports);
21
+ __exportStar(require("./subscription-price-response"), exports);
22
+ __exportStar(require("./subscription-item-response"), exports);
23
+ __exportStar(require("./next-transaction-response"), exports);
24
+ __exportStar(require("./subscription-discount-response"), exports);
25
25
  __exportStar(require("./subscription-update-item"), exports);
26
26
  __exportStar(require("./subscription-response"), exports);
27
- __exportStar(require("./subscription-preview"), exports);
27
+ __exportStar(require("./subscription-preview-response"), exports);
28
28
  __exportStar(require("./subscription-preview-update-summary"), exports);
29
- __exportStar(require("./subscription-result"), exports);
29
+ __exportStar(require("./subscription-result-response"), exports);
@@ -0,0 +1,11 @@
1
+ import { type IAdjustmentItemResponse, type ISubscriptionTimePeriodResponse, type ITotalAdjustmentsResponse, type ITransactionDetailsPreviewResponse } from '../index';
2
+ export interface AdjustmentPreviewResponse {
3
+ transaction_id: string;
4
+ items: IAdjustmentItemResponse[];
5
+ totals?: ITotalAdjustmentsResponse | null;
6
+ }
7
+ export interface INextTransactionResponse {
8
+ billing_period: ISubscriptionTimePeriodResponse;
9
+ details: ITransactionDetailsPreviewResponse;
10
+ adjustments: AdjustmentPreviewResponse[];
11
+ }
@@ -1,4 +1,4 @@
1
- export interface ISubscriptionDiscount {
1
+ export interface ISubscriptionDiscountResponse {
2
2
  id: string;
3
3
  starts_at: string;
4
4
  ends_at: string;
@@ -0,0 +1,13 @@
1
+ import { type ISubscriptionPriceResponse, type ISubscriptionTimePeriodResponse } from '../index';
2
+ import { type SubscriptionItemStatus } from '../../enums';
3
+ export interface ISubscriptionItemResponse {
4
+ status: SubscriptionItemStatus;
5
+ quantity: number;
6
+ recurring: boolean;
7
+ created_at: string;
8
+ updated_at: string;
9
+ previously_billed_at?: string | null;
10
+ next_billed_at?: string | null;
11
+ trial_dates?: ISubscriptionTimePeriodResponse | null;
12
+ price?: ISubscriptionPriceResponse | null;
13
+ }
@@ -0,0 +1,4 @@
1
+ export interface ISubscriptionManagementResponse {
2
+ update_payment_method?: string | null;
3
+ cancel: string;
4
+ }