@flintpay/node 0.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1012) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +43 -0
  3. package/REFERENCE.md +5967 -0
  4. package/canonical.d.ts +1 -0
  5. package/canonical.js +4 -0
  6. package/codec-plan.d.ts +77 -0
  7. package/codec-plan.js +369 -0
  8. package/contract.d.ts +225 -0
  9. package/diagnostic.d.ts +4 -0
  10. package/diagnostic.js +9 -0
  11. package/examples/api-addOrderCharge.mjs +16 -0
  12. package/examples/api-addOrderCharge.ts +16 -0
  13. package/examples/api-addOrderLineItems.mjs +13 -0
  14. package/examples/api-addOrderLineItems.ts +13 -0
  15. package/examples/api-addReturnLineItem.mjs +13 -0
  16. package/examples/api-addReturnLineItem.ts +13 -0
  17. package/examples/api-addRiskListItems.mjs +11 -0
  18. package/examples/api-addRiskListItems.ts +11 -0
  19. package/examples/api-advanceOnboarding.mjs +6 -0
  20. package/examples/api-advanceOnboarding.ts +6 -0
  21. package/examples/api-applyInventoryCount.mjs +8 -0
  22. package/examples/api-applyInventoryCount.ts +8 -0
  23. package/examples/api-applyOrderDiscount.mjs +11 -0
  24. package/examples/api-applyOrderDiscount.ts +11 -0
  25. package/examples/api-approveReview.mjs +6 -0
  26. package/examples/api-approveReview.ts +6 -0
  27. package/examples/api-assignToUnconfiguredDeliveryProfile.mjs +7 -0
  28. package/examples/api-assignToUnconfiguredDeliveryProfile.ts +7 -0
  29. package/examples/api-authorizePartnerInstall.mjs +10 -0
  30. package/examples/api-authorizePartnerInstall.ts +10 -0
  31. package/examples/api-cancelInventoryCount.mjs +8 -0
  32. package/examples/api-cancelInventoryCount.ts +8 -0
  33. package/examples/api-cancelInvoicePaymentAttempt.mjs +7 -0
  34. package/examples/api-cancelInvoicePaymentAttempt.ts +7 -0
  35. package/examples/api-cancelMeReturn.mjs +9 -0
  36. package/examples/api-cancelMeReturn.ts +9 -0
  37. package/examples/api-cancelMeSubscription.mjs +7 -0
  38. package/examples/api-cancelMeSubscription.ts +7 -0
  39. package/examples/api-cancelOrderPayment.mjs +7 -0
  40. package/examples/api-cancelOrderPayment.ts +7 -0
  41. package/examples/api-cancelOrderPaymentAttempt.mjs +7 -0
  42. package/examples/api-cancelOrderPaymentAttempt.ts +7 -0
  43. package/examples/api-cancelPaymentIntent.mjs +7 -0
  44. package/examples/api-cancelPaymentIntent.ts +7 -0
  45. package/examples/api-cancelPayout.mjs +7 -0
  46. package/examples/api-cancelPayout.ts +7 -0
  47. package/examples/api-cancelReturn.mjs +9 -0
  48. package/examples/api-cancelReturn.ts +9 -0
  49. package/examples/api-cancelReturnDisposition.mjs +9 -0
  50. package/examples/api-cancelReturnDisposition.ts +9 -0
  51. package/examples/api-cancelReturnLineItem.mjs +12 -0
  52. package/examples/api-cancelReturnLineItem.ts +12 -0
  53. package/examples/api-cancelReturnResolution.mjs +9 -0
  54. package/examples/api-cancelReturnResolution.ts +9 -0
  55. package/examples/api-cancelSubscription.mjs +7 -0
  56. package/examples/api-cancelSubscription.ts +7 -0
  57. package/examples/api-captureOrderPayment.mjs +7 -0
  58. package/examples/api-captureOrderPayment.ts +7 -0
  59. package/examples/api-capturePaymentIntent.mjs +7 -0
  60. package/examples/api-capturePaymentIntent.ts +7 -0
  61. package/examples/api-changeMeSubscriptionPaymentMethod.mjs +9 -0
  62. package/examples/api-changeMeSubscriptionPaymentMethod.ts +9 -0
  63. package/examples/api-changeSubscriptionPaymentMethod.mjs +9 -0
  64. package/examples/api-changeSubscriptionPaymentMethod.ts +9 -0
  65. package/examples/api-checkDeliveryRateCallbackConnection.mjs +6 -0
  66. package/examples/api-checkDeliveryRateCallbackConnection.ts +6 -0
  67. package/examples/api-closeCheckoutSession.mjs +7 -0
  68. package/examples/api-closeCheckoutSession.ts +7 -0
  69. package/examples/api-closeOrder.mjs +7 -0
  70. package/examples/api-closeOrder.ts +7 -0
  71. package/examples/api-collectInvoice.mjs +8 -0
  72. package/examples/api-collectInvoice.ts +8 -0
  73. package/examples/api-commitInventoryReservation.mjs +10 -0
  74. package/examples/api-commitInventoryReservation.ts +10 -0
  75. package/examples/api-completeReturn.mjs +7 -0
  76. package/examples/api-completeReturn.ts +7 -0
  77. package/examples/api-confirmMeEmailChangeRequest.mjs +9 -0
  78. package/examples/api-confirmMeEmailChangeRequest.ts +9 -0
  79. package/examples/api-confirmPaymentIntent.mjs +7 -0
  80. package/examples/api-confirmPaymentIntent.ts +7 -0
  81. package/examples/api-confirmReturnResolution.mjs +7 -0
  82. package/examples/api-confirmReturnResolution.ts +7 -0
  83. package/examples/api-consumeInventoryReservation.mjs +11 -0
  84. package/examples/api-consumeInventoryReservation.ts +11 -0
  85. package/examples/api-createAPIKey.mjs +9 -0
  86. package/examples/api-createAPIKey.ts +9 -0
  87. package/examples/api-createBundle.mjs +12 -0
  88. package/examples/api-createBundle.ts +12 -0
  89. package/examples/api-createCategory.mjs +8 -0
  90. package/examples/api-createCategory.ts +8 -0
  91. package/examples/api-createCheckoutSession.mjs +8 -0
  92. package/examples/api-createCheckoutSession.ts +8 -0
  93. package/examples/api-createCheckoutSessionDeliveryQuote.mjs +9 -0
  94. package/examples/api-createCheckoutSessionDeliveryQuote.ts +9 -0
  95. package/examples/api-createCheckoutSessionDeliverySelection.mjs +11 -0
  96. package/examples/api-createCheckoutSessionDeliverySelection.ts +11 -0
  97. package/examples/api-createCreditNote.mjs +9 -0
  98. package/examples/api-createCreditNote.ts +9 -0
  99. package/examples/api-createCreditNoteAllocation.mjs +13 -0
  100. package/examples/api-createCreditNoteAllocation.ts +13 -0
  101. package/examples/api-createCustomer.mjs +8 -0
  102. package/examples/api-createCustomer.ts +8 -0
  103. package/examples/api-createCustomerAddress.mjs +16 -0
  104. package/examples/api-createCustomerAddress.ts +16 -0
  105. package/examples/api-createCustomerDeletionRequest.mjs +6 -0
  106. package/examples/api-createCustomerDeletionRequest.ts +6 -0
  107. package/examples/api-createCustomerSession.mjs +8 -0
  108. package/examples/api-createCustomerSession.ts +8 -0
  109. package/examples/api-createDeliveryLocationSet.mjs +11 -0
  110. package/examples/api-createDeliveryLocationSet.ts +11 -0
  111. package/examples/api-createDeliveryMethod.mjs +20 -0
  112. package/examples/api-createDeliveryMethod.ts +20 -0
  113. package/examples/api-createDeliveryPreview.mjs +14 -0
  114. package/examples/api-createDeliveryPreview.ts +14 -0
  115. package/examples/api-createDeliveryProfile.mjs +11 -0
  116. package/examples/api-createDeliveryProfile.ts +11 -0
  117. package/examples/api-createDeliveryRateCallback.mjs +11 -0
  118. package/examples/api-createDeliveryRateCallback.ts +11 -0
  119. package/examples/api-createDeliveryRateCallbackTestDelivery.mjs +6 -0
  120. package/examples/api-createDeliveryRateCallbackTestDelivery.ts +6 -0
  121. package/examples/api-createDeliveryZone.mjs +15 -0
  122. package/examples/api-createDeliveryZone.ts +15 -0
  123. package/examples/api-createDemoSession.mjs +6 -0
  124. package/examples/api-createDemoSession.ts +6 -0
  125. package/examples/api-createDeveloperPartnerApp.mjs +10 -0
  126. package/examples/api-createDeveloperPartnerApp.ts +10 -0
  127. package/examples/api-createDeveloperSandbox.mjs +8 -0
  128. package/examples/api-createDeveloperSandbox.ts +8 -0
  129. package/examples/api-createDevice.mjs +8 -0
  130. package/examples/api-createDevice.ts +8 -0
  131. package/examples/api-createFeedbackReport.mjs +10 -0
  132. package/examples/api-createFeedbackReport.ts +10 -0
  133. package/examples/api-createFulfillment.mjs +15 -0
  134. package/examples/api-createFulfillment.ts +15 -0
  135. package/examples/api-createFulfillmentEvent.mjs +9 -0
  136. package/examples/api-createFulfillmentEvent.ts +9 -0
  137. package/examples/api-createInventoryAdjustment.mjs +10 -0
  138. package/examples/api-createInventoryAdjustment.ts +10 -0
  139. package/examples/api-createInventoryAllocationPolicy.mjs +18 -0
  140. package/examples/api-createInventoryAllocationPolicy.ts +18 -0
  141. package/examples/api-createInventoryCount.mjs +12 -0
  142. package/examples/api-createInventoryCount.ts +12 -0
  143. package/examples/api-createInventoryItem.mjs +8 -0
  144. package/examples/api-createInventoryItem.ts +8 -0
  145. package/examples/api-createInventoryReceipt.mjs +9 -0
  146. package/examples/api-createInventoryReceipt.ts +9 -0
  147. package/examples/api-createInventoryReservation.mjs +17 -0
  148. package/examples/api-createInventoryReservation.ts +17 -0
  149. package/examples/api-createInventoryTransfer.mjs +16 -0
  150. package/examples/api-createInventoryTransfer.ts +16 -0
  151. package/examples/api-createInvoice.mjs +8 -0
  152. package/examples/api-createInvoice.ts +8 -0
  153. package/examples/api-createInvoicePaymentTerm.mjs +11 -0
  154. package/examples/api-createInvoicePaymentTerm.ts +11 -0
  155. package/examples/api-createLocation.mjs +10 -0
  156. package/examples/api-createLocation.ts +10 -0
  157. package/examples/api-createMeAddress.mjs +15 -0
  158. package/examples/api-createMeAddress.ts +15 -0
  159. package/examples/api-createMeDeletionRequest.mjs +4 -0
  160. package/examples/api-createMeDeletionRequest.ts +4 -0
  161. package/examples/api-createMeEmailChangeRequest.mjs +8 -0
  162. package/examples/api-createMeEmailChangeRequest.ts +8 -0
  163. package/examples/api-createMeInvoiceCheckoutSession.mjs +6 -0
  164. package/examples/api-createMeInvoiceCheckoutSession.ts +6 -0
  165. package/examples/api-createMeReturn.mjs +15 -0
  166. package/examples/api-createMeReturn.ts +15 -0
  167. package/examples/api-createMeReturnPreview.mjs +14 -0
  168. package/examples/api-createMeReturnPreview.ts +14 -0
  169. package/examples/api-createMeReturnResolutionCheckoutSession.mjs +6 -0
  170. package/examples/api-createMeReturnResolutionCheckoutSession.ts +6 -0
  171. package/examples/api-createMerchantAccountSession.mjs +10 -0
  172. package/examples/api-createMerchantAccountSession.ts +10 -0
  173. package/examples/api-createModifierGroup.mjs +8 -0
  174. package/examples/api-createModifierGroup.ts +8 -0
  175. package/examples/api-createModifierSet.mjs +8 -0
  176. package/examples/api-createModifierSet.ts +8 -0
  177. package/examples/api-createOnboardingAPIKey.mjs +8 -0
  178. package/examples/api-createOnboardingAPIKey.ts +8 -0
  179. package/examples/api-createOrder.mjs +12 -0
  180. package/examples/api-createOrder.ts +12 -0
  181. package/examples/api-createOrderPaymentIntent.mjs +7 -0
  182. package/examples/api-createOrderPaymentIntent.ts +7 -0
  183. package/examples/api-createOrganization.mjs +8 -0
  184. package/examples/api-createOrganization.ts +8 -0
  185. package/examples/api-createPackage.mjs +7 -0
  186. package/examples/api-createPackage.ts +7 -0
  187. package/examples/api-createPackageItem.mjs +10 -0
  188. package/examples/api-createPackageItem.ts +10 -0
  189. package/examples/api-createPaymentIntent.mjs +14 -0
  190. package/examples/api-createPaymentIntent.ts +14 -0
  191. package/examples/api-createPaymentLink.mjs +8 -0
  192. package/examples/api-createPaymentLink.ts +8 -0
  193. package/examples/api-createPaymentMethodDomain.mjs +8 -0
  194. package/examples/api-createPaymentMethodDomain.ts +8 -0
  195. package/examples/api-createPayout.mjs +11 -0
  196. package/examples/api-createPayout.ts +11 -0
  197. package/examples/api-createProduct.mjs +15 -0
  198. package/examples/api-createProduct.ts +15 -0
  199. package/examples/api-createProductVariant.mjs +14 -0
  200. package/examples/api-createProductVariant.ts +14 -0
  201. package/examples/api-createPromotion.mjs +11 -0
  202. package/examples/api-createPromotion.ts +11 -0
  203. package/examples/api-createPromotionCode.mjs +9 -0
  204. package/examples/api-createPromotionCode.ts +9 -0
  205. package/examples/api-createRefund.mjs +8 -0
  206. package/examples/api-createRefund.ts +8 -0
  207. package/examples/api-createReport.mjs +11 -0
  208. package/examples/api-createReport.ts +11 -0
  209. package/examples/api-createReturn.mjs +15 -0
  210. package/examples/api-createReturn.ts +15 -0
  211. package/examples/api-createReturnDisposition.mjs +13 -0
  212. package/examples/api-createReturnDisposition.ts +13 -0
  213. package/examples/api-createReturnInspection.mjs +19 -0
  214. package/examples/api-createReturnInspection.ts +19 -0
  215. package/examples/api-createReturnPolicy.mjs +15 -0
  216. package/examples/api-createReturnPolicy.ts +15 -0
  217. package/examples/api-createReturnPreview.mjs +14 -0
  218. package/examples/api-createReturnPreview.ts +14 -0
  219. package/examples/api-createReturnReason.mjs +9 -0
  220. package/examples/api-createReturnReason.ts +9 -0
  221. package/examples/api-createReturnReceipt.mjs +16 -0
  222. package/examples/api-createReturnReceipt.ts +16 -0
  223. package/examples/api-createReturnResolution.mjs +15 -0
  224. package/examples/api-createReturnResolution.ts +15 -0
  225. package/examples/api-createRiskList.mjs +10 -0
  226. package/examples/api-createRiskList.ts +10 -0
  227. package/examples/api-createRiskPreview.mjs +8 -0
  228. package/examples/api-createRiskPreview.ts +8 -0
  229. package/examples/api-createRiskRule.mjs +14 -0
  230. package/examples/api-createRiskRule.ts +14 -0
  231. package/examples/api-createShipment.mjs +7 -0
  232. package/examples/api-createShipment.ts +7 -0
  233. package/examples/api-createSubscription.mjs +15 -0
  234. package/examples/api-createSubscription.ts +15 -0
  235. package/examples/api-createSubscriptionPaymentRetry.mjs +7 -0
  236. package/examples/api-createSubscriptionPaymentRetry.ts +7 -0
  237. package/examples/api-createSubscriptionPlan.mjs +11 -0
  238. package/examples/api-createSubscriptionPlan.ts +11 -0
  239. package/examples/api-createWebhookEndpoint.mjs +8 -0
  240. package/examples/api-createWebhookEndpoint.ts +8 -0
  241. package/examples/api-createWebhookTestEvent.mjs +9 -0
  242. package/examples/api-createWebhookTestEvent.ts +9 -0
  243. package/examples/api-decideReturn.mjs +15 -0
  244. package/examples/api-decideReturn.ts +15 -0
  245. package/examples/api-decideReturnInspectionLineItem.mjs +11 -0
  246. package/examples/api-decideReturnInspectionLineItem.ts +11 -0
  247. package/examples/api-declineReview.mjs +6 -0
  248. package/examples/api-declineReview.ts +6 -0
  249. package/examples/api-deleteBundle.mjs +6 -0
  250. package/examples/api-deleteBundle.ts +6 -0
  251. package/examples/api-deleteCategory.mjs +6 -0
  252. package/examples/api-deleteCategory.ts +6 -0
  253. package/examples/api-deleteCheckoutSessionCurrentDeliverySelection.mjs +7 -0
  254. package/examples/api-deleteCheckoutSessionCurrentDeliverySelection.ts +7 -0
  255. package/examples/api-deleteCustomerAddress.mjs +7 -0
  256. package/examples/api-deleteCustomerAddress.ts +7 -0
  257. package/examples/api-deleteDeliveryLocationSet.mjs +6 -0
  258. package/examples/api-deleteDeliveryLocationSet.ts +6 -0
  259. package/examples/api-deleteDeliveryMethod.mjs +6 -0
  260. package/examples/api-deleteDeliveryMethod.ts +6 -0
  261. package/examples/api-deleteDeliveryProfile.mjs +6 -0
  262. package/examples/api-deleteDeliveryProfile.ts +6 -0
  263. package/examples/api-deleteDeliveryRateCallback.mjs +6 -0
  264. package/examples/api-deleteDeliveryRateCallback.ts +6 -0
  265. package/examples/api-deleteDeliveryZone.mjs +6 -0
  266. package/examples/api-deleteDeliveryZone.ts +6 -0
  267. package/examples/api-deleteDeveloperSandbox.mjs +6 -0
  268. package/examples/api-deleteDeveloperSandbox.ts +6 -0
  269. package/examples/api-deleteDevice.mjs +6 -0
  270. package/examples/api-deleteDevice.ts +6 -0
  271. package/examples/api-deleteInventoryAllocationPolicy.mjs +6 -0
  272. package/examples/api-deleteInventoryAllocationPolicy.ts +6 -0
  273. package/examples/api-deleteInventoryItem.mjs +6 -0
  274. package/examples/api-deleteInventoryItem.ts +6 -0
  275. package/examples/api-deleteInvoicePaymentTerm.mjs +6 -0
  276. package/examples/api-deleteInvoicePaymentTerm.ts +6 -0
  277. package/examples/api-deleteLocation.mjs +6 -0
  278. package/examples/api-deleteLocation.ts +6 -0
  279. package/examples/api-deleteMeAddress.mjs +6 -0
  280. package/examples/api-deleteMeAddress.ts +6 -0
  281. package/examples/api-deleteModifierGroup.mjs +6 -0
  282. package/examples/api-deleteModifierGroup.ts +6 -0
  283. package/examples/api-deleteModifierSet.mjs +6 -0
  284. package/examples/api-deleteModifierSet.ts +6 -0
  285. package/examples/api-deleteOrderCharge.mjs +7 -0
  286. package/examples/api-deleteOrderCharge.ts +7 -0
  287. package/examples/api-deleteOrderLineItem.mjs +7 -0
  288. package/examples/api-deleteOrderLineItem.ts +7 -0
  289. package/examples/api-deleteOrganization.mjs +6 -0
  290. package/examples/api-deleteOrganization.ts +6 -0
  291. package/examples/api-deletePackageItem.mjs +7 -0
  292. package/examples/api-deletePackageItem.ts +7 -0
  293. package/examples/api-deletePayoutDestination.mjs +7 -0
  294. package/examples/api-deletePayoutDestination.ts +7 -0
  295. package/examples/api-deleteProduct.mjs +6 -0
  296. package/examples/api-deleteProduct.ts +6 -0
  297. package/examples/api-deleteProductVariant.mjs +7 -0
  298. package/examples/api-deleteProductVariant.ts +7 -0
  299. package/examples/api-deletePromotion.mjs +6 -0
  300. package/examples/api-deletePromotion.ts +6 -0
  301. package/examples/api-deletePromotionCode.mjs +7 -0
  302. package/examples/api-deletePromotionCode.ts +7 -0
  303. package/examples/api-deleteReturnLineItem.mjs +7 -0
  304. package/examples/api-deleteReturnLineItem.ts +7 -0
  305. package/examples/api-deleteReturnPolicy.mjs +6 -0
  306. package/examples/api-deleteReturnPolicy.ts +6 -0
  307. package/examples/api-deleteReturnReason.mjs +6 -0
  308. package/examples/api-deleteReturnReason.ts +6 -0
  309. package/examples/api-deleteRiskList.mjs +6 -0
  310. package/examples/api-deleteRiskList.ts +6 -0
  311. package/examples/api-deleteRiskListItem.mjs +7 -0
  312. package/examples/api-deleteRiskListItem.ts +7 -0
  313. package/examples/api-deleteRiskRule.mjs +6 -0
  314. package/examples/api-deleteRiskRule.ts +6 -0
  315. package/examples/api-deleteSubscriptionPlan.mjs +6 -0
  316. package/examples/api-deleteSubscriptionPlan.ts +6 -0
  317. package/examples/api-deleteWebhookEndpoint.mjs +6 -0
  318. package/examples/api-deleteWebhookEndpoint.ts +6 -0
  319. package/examples/api-exchangePartnerInstallToken.mjs +10 -0
  320. package/examples/api-exchangePartnerInstallToken.ts +10 -0
  321. package/examples/api-getAPIKey.mjs +6 -0
  322. package/examples/api-getAPIKey.ts +6 -0
  323. package/examples/api-getAnalyticsOverview.mjs +6 -0
  324. package/examples/api-getAnalyticsOverview.ts +6 -0
  325. package/examples/api-getBalanceTransaction.mjs +6 -0
  326. package/examples/api-getBalanceTransaction.ts +6 -0
  327. package/examples/api-getBundle.mjs +6 -0
  328. package/examples/api-getBundle.ts +6 -0
  329. package/examples/api-getCategory.mjs +6 -0
  330. package/examples/api-getCategory.ts +6 -0
  331. package/examples/api-getCheckoutSession.mjs +6 -0
  332. package/examples/api-getCheckoutSession.ts +6 -0
  333. package/examples/api-getCheckoutSessionCurrentDeliverySelection.mjs +6 -0
  334. package/examples/api-getCheckoutSessionCurrentDeliverySelection.ts +6 -0
  335. package/examples/api-getCheckoutSessionDeliveryQuote.mjs +7 -0
  336. package/examples/api-getCheckoutSessionDeliveryQuote.ts +7 -0
  337. package/examples/api-getCheckoutSessionDeliverySelectionHistory.mjs +7 -0
  338. package/examples/api-getCheckoutSessionDeliverySelectionHistory.ts +7 -0
  339. package/examples/api-getCreditNote.mjs +6 -0
  340. package/examples/api-getCreditNote.ts +6 -0
  341. package/examples/api-getCreditNoteAllocation.mjs +7 -0
  342. package/examples/api-getCreditNoteAllocation.ts +7 -0
  343. package/examples/api-getCreditNotePDF.mjs +6 -0
  344. package/examples/api-getCreditNotePDF.ts +6 -0
  345. package/examples/api-getCurrentAPIKeyRequestLog.mjs +6 -0
  346. package/examples/api-getCurrentAPIKeyRequestLog.ts +6 -0
  347. package/examples/api-getCustomer.mjs +6 -0
  348. package/examples/api-getCustomer.ts +6 -0
  349. package/examples/api-getCustomerAddress.mjs +7 -0
  350. package/examples/api-getCustomerAddress.ts +7 -0
  351. package/examples/api-getCustomerDeletionRequest.mjs +7 -0
  352. package/examples/api-getCustomerDeletionRequest.ts +7 -0
  353. package/examples/api-getDeliveryLocationSet.mjs +6 -0
  354. package/examples/api-getDeliveryLocationSet.ts +6 -0
  355. package/examples/api-getDeliveryMethod.mjs +6 -0
  356. package/examples/api-getDeliveryMethod.ts +6 -0
  357. package/examples/api-getDeliveryProfile.mjs +6 -0
  358. package/examples/api-getDeliveryProfile.ts +6 -0
  359. package/examples/api-getDeliveryRateCallback.mjs +6 -0
  360. package/examples/api-getDeliveryRateCallback.ts +6 -0
  361. package/examples/api-getDeliveryRevocation.mjs +6 -0
  362. package/examples/api-getDeliveryRevocation.ts +6 -0
  363. package/examples/api-getDeliveryZone.mjs +6 -0
  364. package/examples/api-getDeliveryZone.ts +6 -0
  365. package/examples/api-getDeveloperAuthContext.mjs +4 -0
  366. package/examples/api-getDeveloperAuthContext.ts +4 -0
  367. package/examples/api-getDeveloperPartnerApp.mjs +6 -0
  368. package/examples/api-getDeveloperPartnerApp.ts +6 -0
  369. package/examples/api-getDeveloperPartnerAppInstall.mjs +7 -0
  370. package/examples/api-getDeveloperPartnerAppInstall.ts +7 -0
  371. package/examples/api-getDeveloperSandbox.mjs +6 -0
  372. package/examples/api-getDeveloperSandbox.ts +6 -0
  373. package/examples/api-getDevice.mjs +6 -0
  374. package/examples/api-getDevice.ts +6 -0
  375. package/examples/api-getDispute.mjs +6 -0
  376. package/examples/api-getDispute.ts +6 -0
  377. package/examples/api-getEffectiveSettings.mjs +4 -0
  378. package/examples/api-getEffectiveSettings.ts +4 -0
  379. package/examples/api-getFeedbackReport.mjs +6 -0
  380. package/examples/api-getFeedbackReport.ts +6 -0
  381. package/examples/api-getFraudWarning.mjs +6 -0
  382. package/examples/api-getFraudWarning.ts +6 -0
  383. package/examples/api-getFulfillment.mjs +6 -0
  384. package/examples/api-getFulfillment.ts +6 -0
  385. package/examples/api-getFulfillmentEvent.mjs +6 -0
  386. package/examples/api-getFulfillmentEvent.ts +6 -0
  387. package/examples/api-getFulfillmentNotification.mjs +6 -0
  388. package/examples/api-getFulfillmentNotification.ts +6 -0
  389. package/examples/api-getInvoice.mjs +6 -0
  390. package/examples/api-getInvoice.ts +6 -0
  391. package/examples/api-getInvoicePDF.mjs +6 -0
  392. package/examples/api-getInvoicePDF.ts +6 -0
  393. package/examples/api-getInvoicePaymentAttempt.mjs +7 -0
  394. package/examples/api-getInvoicePaymentAttempt.ts +7 -0
  395. package/examples/api-getInvoicePaymentTerm.mjs +6 -0
  396. package/examples/api-getInvoicePaymentTerm.ts +6 -0
  397. package/examples/api-getLocation.mjs +6 -0
  398. package/examples/api-getLocation.ts +6 -0
  399. package/examples/api-getMe.mjs +4 -0
  400. package/examples/api-getMe.ts +4 -0
  401. package/examples/api-getMeAddress.mjs +6 -0
  402. package/examples/api-getMeAddress.ts +6 -0
  403. package/examples/api-getMeCreditNote.mjs +7 -0
  404. package/examples/api-getMeCreditNote.ts +7 -0
  405. package/examples/api-getMeCreditNotePDF.mjs +7 -0
  406. package/examples/api-getMeCreditNotePDF.ts +7 -0
  407. package/examples/api-getMeDeletionRequest.mjs +6 -0
  408. package/examples/api-getMeDeletionRequest.ts +6 -0
  409. package/examples/api-getMeInvoice.mjs +6 -0
  410. package/examples/api-getMeInvoice.ts +6 -0
  411. package/examples/api-getMeInvoicePDF.mjs +6 -0
  412. package/examples/api-getMeInvoicePDF.ts +6 -0
  413. package/examples/api-getMeOrder.mjs +6 -0
  414. package/examples/api-getMeOrder.ts +6 -0
  415. package/examples/api-getMeReturn.mjs +6 -0
  416. package/examples/api-getMeReturn.ts +6 -0
  417. package/examples/api-getMeSubscription.mjs +6 -0
  418. package/examples/api-getMeSubscription.ts +6 -0
  419. package/examples/api-getMerchant.mjs +6 -0
  420. package/examples/api-getMerchant.ts +6 -0
  421. package/examples/api-getMerchantBillingBalance.mjs +6 -0
  422. package/examples/api-getMerchantBillingBalance.ts +6 -0
  423. package/examples/api-getMerchantSubscriptionInvoice.mjs +6 -0
  424. package/examples/api-getMerchantSubscriptionInvoice.ts +6 -0
  425. package/examples/api-getModifierGroup.mjs +6 -0
  426. package/examples/api-getModifierGroup.ts +6 -0
  427. package/examples/api-getModifierSet.mjs +6 -0
  428. package/examples/api-getModifierSet.ts +6 -0
  429. package/examples/api-getOnboardingState.mjs +4 -0
  430. package/examples/api-getOnboardingState.ts +4 -0
  431. package/examples/api-getOpenAPISpec.mjs +4 -0
  432. package/examples/api-getOpenAPISpec.ts +4 -0
  433. package/examples/api-getOrCreateInvoiceCheckoutSession.mjs +6 -0
  434. package/examples/api-getOrCreateInvoiceCheckoutSession.ts +6 -0
  435. package/examples/api-getOrCreateReturnResolutionCheckoutSession.mjs +6 -0
  436. package/examples/api-getOrCreateReturnResolutionCheckoutSession.ts +6 -0
  437. package/examples/api-getOrder.mjs +6 -0
  438. package/examples/api-getOrder.ts +6 -0
  439. package/examples/api-getOrderCurrentDeliverySelection.mjs +6 -0
  440. package/examples/api-getOrderCurrentDeliverySelection.ts +6 -0
  441. package/examples/api-getOrderPaymentAttempt.mjs +7 -0
  442. package/examples/api-getOrderPaymentAttempt.ts +7 -0
  443. package/examples/api-getOrganization.mjs +6 -0
  444. package/examples/api-getOrganization.ts +6 -0
  445. package/examples/api-getPackage.mjs +6 -0
  446. package/examples/api-getPackage.ts +6 -0
  447. package/examples/api-getPackageItem.mjs +7 -0
  448. package/examples/api-getPackageItem.ts +7 -0
  449. package/examples/api-getPaymentIntent.mjs +6 -0
  450. package/examples/api-getPaymentIntent.ts +6 -0
  451. package/examples/api-getPaymentLink.mjs +6 -0
  452. package/examples/api-getPaymentLink.ts +6 -0
  453. package/examples/api-getPaymentLinkPublic.mjs +6 -0
  454. package/examples/api-getPaymentLinkPublic.ts +6 -0
  455. package/examples/api-getPaymentMethod.mjs +6 -0
  456. package/examples/api-getPaymentMethod.ts +6 -0
  457. package/examples/api-getPaymentMethodDomain.mjs +6 -0
  458. package/examples/api-getPaymentMethodDomain.ts +6 -0
  459. package/examples/api-getPaymentVolumeTimeseries.mjs +6 -0
  460. package/examples/api-getPaymentVolumeTimeseries.ts +6 -0
  461. package/examples/api-getPayout.mjs +6 -0
  462. package/examples/api-getPayout.ts +6 -0
  463. package/examples/api-getPayoutDestination.mjs +6 -0
  464. package/examples/api-getPayoutDestination.ts +6 -0
  465. package/examples/api-getPayoutSettings.mjs +4 -0
  466. package/examples/api-getPayoutSettings.ts +4 -0
  467. package/examples/api-getProduct.mjs +6 -0
  468. package/examples/api-getProduct.ts +6 -0
  469. package/examples/api-getProductOption.mjs +7 -0
  470. package/examples/api-getProductOption.ts +7 -0
  471. package/examples/api-getProductVariant.mjs +7 -0
  472. package/examples/api-getProductVariant.ts +7 -0
  473. package/examples/api-getPromotion.mjs +6 -0
  474. package/examples/api-getPromotion.ts +6 -0
  475. package/examples/api-getRefund.mjs +6 -0
  476. package/examples/api-getRefund.ts +6 -0
  477. package/examples/api-getReport.mjs +6 -0
  478. package/examples/api-getReport.ts +6 -0
  479. package/examples/api-getReportDownload.mjs +6 -0
  480. package/examples/api-getReportDownload.ts +6 -0
  481. package/examples/api-getResourceTimeline.mjs +6 -0
  482. package/examples/api-getResourceTimeline.ts +6 -0
  483. package/examples/api-getReturn.mjs +6 -0
  484. package/examples/api-getReturn.ts +6 -0
  485. package/examples/api-getReturnDisposition.mjs +6 -0
  486. package/examples/api-getReturnDisposition.ts +6 -0
  487. package/examples/api-getReturnInspection.mjs +6 -0
  488. package/examples/api-getReturnInspection.ts +6 -0
  489. package/examples/api-getReturnLineItem.mjs +7 -0
  490. package/examples/api-getReturnLineItem.ts +7 -0
  491. package/examples/api-getReturnPolicy.mjs +6 -0
  492. package/examples/api-getReturnPolicy.ts +6 -0
  493. package/examples/api-getReturnPolicyRevision.mjs +7 -0
  494. package/examples/api-getReturnPolicyRevision.ts +7 -0
  495. package/examples/api-getReturnReason.mjs +6 -0
  496. package/examples/api-getReturnReason.ts +6 -0
  497. package/examples/api-getReturnReceipt.mjs +6 -0
  498. package/examples/api-getReturnReceipt.ts +6 -0
  499. package/examples/api-getReturnResolution.mjs +6 -0
  500. package/examples/api-getReturnResolution.ts +6 -0
  501. package/examples/api-getReview.mjs +6 -0
  502. package/examples/api-getReview.ts +6 -0
  503. package/examples/api-getRiskList.mjs +6 -0
  504. package/examples/api-getRiskList.ts +6 -0
  505. package/examples/api-getRiskListItem.mjs +7 -0
  506. package/examples/api-getRiskListItem.ts +7 -0
  507. package/examples/api-getRiskRule.mjs +6 -0
  508. package/examples/api-getRiskRule.ts +6 -0
  509. package/examples/api-getRiskRuleAttributeRegistry.mjs +4 -0
  510. package/examples/api-getRiskRuleAttributeRegistry.ts +4 -0
  511. package/examples/api-getSettings.mjs +4 -0
  512. package/examples/api-getSettings.ts +4 -0
  513. package/examples/api-getShipment.mjs +6 -0
  514. package/examples/api-getShipment.ts +6 -0
  515. package/examples/api-getSubscription.mjs +6 -0
  516. package/examples/api-getSubscription.ts +6 -0
  517. package/examples/api-getSubscriptionAnalytics.mjs +6 -0
  518. package/examples/api-getSubscriptionAnalytics.ts +6 -0
  519. package/examples/api-getSubscriptionPaymentRetry.mjs +7 -0
  520. package/examples/api-getSubscriptionPaymentRetry.ts +7 -0
  521. package/examples/api-getSubscriptionPlan.mjs +6 -0
  522. package/examples/api-getSubscriptionPlan.ts +6 -0
  523. package/examples/api-getWebhookDelivery.mjs +6 -0
  524. package/examples/api-getWebhookDelivery.ts +6 -0
  525. package/examples/api-getWebhookEndpoint.mjs +6 -0
  526. package/examples/api-getWebhookEndpoint.ts +6 -0
  527. package/examples/api-getWebhookEvent.mjs +6 -0
  528. package/examples/api-getWebhookEvent.ts +6 -0
  529. package/examples/api-grantOrganizationMembership.mjs +10 -0
  530. package/examples/api-grantOrganizationMembership.ts +10 -0
  531. package/examples/api-issueCreditNote.mjs +6 -0
  532. package/examples/api-issueCreditNote.ts +6 -0
  533. package/examples/api-issueDeveloperSandboxTestKey.mjs +9 -0
  534. package/examples/api-issueDeveloperSandboxTestKey.ts +9 -0
  535. package/examples/api-issueInvoice.mjs +7 -0
  536. package/examples/api-issueInvoice.ts +7 -0
  537. package/examples/api-listAPIKeys.mjs +4 -0
  538. package/examples/api-listAPIKeys.ts +4 -0
  539. package/examples/api-listBalanceTransactions.mjs +4 -0
  540. package/examples/api-listBalanceTransactions.ts +4 -0
  541. package/examples/api-listBalances.mjs +4 -0
  542. package/examples/api-listBalances.ts +4 -0
  543. package/examples/api-listBundleComponents.mjs +6 -0
  544. package/examples/api-listBundleComponents.ts +6 -0
  545. package/examples/api-listBundles.mjs +4 -0
  546. package/examples/api-listBundles.ts +4 -0
  547. package/examples/api-listCapabilities.mjs +4 -0
  548. package/examples/api-listCapabilities.ts +4 -0
  549. package/examples/api-listCategories.mjs +4 -0
  550. package/examples/api-listCategories.ts +4 -0
  551. package/examples/api-listCheckoutSessions.mjs +4 -0
  552. package/examples/api-listCheckoutSessions.ts +4 -0
  553. package/examples/api-listCreditNoteAllocations.mjs +6 -0
  554. package/examples/api-listCreditNoteAllocations.ts +6 -0
  555. package/examples/api-listCreditNotes.mjs +4 -0
  556. package/examples/api-listCreditNotes.ts +4 -0
  557. package/examples/api-listCurrentAPIKeyRequestLogs.mjs +4 -0
  558. package/examples/api-listCurrentAPIKeyRequestLogs.ts +4 -0
  559. package/examples/api-listCustomerAddresses.mjs +6 -0
  560. package/examples/api-listCustomerAddresses.ts +6 -0
  561. package/examples/api-listCustomerDeletionRequests.mjs +4 -0
  562. package/examples/api-listCustomerDeletionRequests.ts +4 -0
  563. package/examples/api-listCustomers.mjs +4 -0
  564. package/examples/api-listCustomers.ts +4 -0
  565. package/examples/api-listDeliveryLocationSets.mjs +4 -0
  566. package/examples/api-listDeliveryLocationSets.ts +4 -0
  567. package/examples/api-listDeliveryMethods.mjs +4 -0
  568. package/examples/api-listDeliveryMethods.ts +4 -0
  569. package/examples/api-listDeliveryProfiles.mjs +4 -0
  570. package/examples/api-listDeliveryProfiles.ts +4 -0
  571. package/examples/api-listDeliveryQuotes.mjs +4 -0
  572. package/examples/api-listDeliveryQuotes.ts +4 -0
  573. package/examples/api-listDeliveryRateCallbacks.mjs +4 -0
  574. package/examples/api-listDeliveryRateCallbacks.ts +4 -0
  575. package/examples/api-listDeliveryZones.mjs +4 -0
  576. package/examples/api-listDeliveryZones.ts +4 -0
  577. package/examples/api-listDeveloperPartnerAppInstalls.mjs +6 -0
  578. package/examples/api-listDeveloperPartnerAppInstalls.ts +6 -0
  579. package/examples/api-listDeveloperPartnerApps.mjs +4 -0
  580. package/examples/api-listDeveloperPartnerApps.ts +4 -0
  581. package/examples/api-listDeveloperSandboxes.mjs +4 -0
  582. package/examples/api-listDeveloperSandboxes.ts +4 -0
  583. package/examples/api-listDevices.mjs +4 -0
  584. package/examples/api-listDevices.ts +4 -0
  585. package/examples/api-listDisputes.mjs +4 -0
  586. package/examples/api-listDisputes.ts +4 -0
  587. package/examples/api-listFeedbackReports.mjs +4 -0
  588. package/examples/api-listFeedbackReports.ts +4 -0
  589. package/examples/api-listFraudWarnings.mjs +4 -0
  590. package/examples/api-listFraudWarnings.ts +4 -0
  591. package/examples/api-listFulfillmentEvents.mjs +4 -0
  592. package/examples/api-listFulfillmentEvents.ts +4 -0
  593. package/examples/api-listFulfillmentNotifications.mjs +4 -0
  594. package/examples/api-listFulfillmentNotifications.ts +4 -0
  595. package/examples/api-listFulfillments.mjs +4 -0
  596. package/examples/api-listFulfillments.ts +4 -0
  597. package/examples/api-listInventoryAdjustments.mjs +4 -0
  598. package/examples/api-listInventoryAdjustments.ts +4 -0
  599. package/examples/api-listInventoryAllocationPolicies.mjs +4 -0
  600. package/examples/api-listInventoryAllocationPolicies.ts +4 -0
  601. package/examples/api-listInventoryCounts.mjs +4 -0
  602. package/examples/api-listInventoryCounts.ts +4 -0
  603. package/examples/api-listInventoryItems.mjs +4 -0
  604. package/examples/api-listInventoryItems.ts +4 -0
  605. package/examples/api-listInventoryLevels.mjs +4 -0
  606. package/examples/api-listInventoryLevels.ts +4 -0
  607. package/examples/api-listInventoryMovements.mjs +4 -0
  608. package/examples/api-listInventoryMovements.ts +4 -0
  609. package/examples/api-listInventoryReceipts.mjs +4 -0
  610. package/examples/api-listInventoryReceipts.ts +4 -0
  611. package/examples/api-listInventoryReservations.mjs +4 -0
  612. package/examples/api-listInventoryReservations.ts +4 -0
  613. package/examples/api-listInventoryTransfers.mjs +4 -0
  614. package/examples/api-listInventoryTransfers.ts +4 -0
  615. package/examples/api-listInvoiceDeliveryAttempts.mjs +6 -0
  616. package/examples/api-listInvoiceDeliveryAttempts.ts +6 -0
  617. package/examples/api-listInvoiceEvents.mjs +6 -0
  618. package/examples/api-listInvoiceEvents.ts +6 -0
  619. package/examples/api-listInvoicePaymentAttempts.mjs +6 -0
  620. package/examples/api-listInvoicePaymentAttempts.ts +6 -0
  621. package/examples/api-listInvoicePaymentTerms.mjs +4 -0
  622. package/examples/api-listInvoicePaymentTerms.ts +4 -0
  623. package/examples/api-listInvoices.mjs +4 -0
  624. package/examples/api-listInvoices.ts +4 -0
  625. package/examples/api-listLocations.mjs +4 -0
  626. package/examples/api-listLocations.ts +4 -0
  627. package/examples/api-listMeAddresses.mjs +4 -0
  628. package/examples/api-listMeAddresses.ts +4 -0
  629. package/examples/api-listMeCreditNotes.mjs +6 -0
  630. package/examples/api-listMeCreditNotes.ts +6 -0
  631. package/examples/api-listMeFulfillments.mjs +4 -0
  632. package/examples/api-listMeFulfillments.ts +4 -0
  633. package/examples/api-listMeInvoices.mjs +4 -0
  634. package/examples/api-listMeInvoices.ts +4 -0
  635. package/examples/api-listMeOrderActivities.mjs +6 -0
  636. package/examples/api-listMeOrderActivities.ts +6 -0
  637. package/examples/api-listMeOrders.mjs +4 -0
  638. package/examples/api-listMeOrders.ts +4 -0
  639. package/examples/api-listMePackages.mjs +4 -0
  640. package/examples/api-listMePackages.ts +4 -0
  641. package/examples/api-listMePaymentMethods.mjs +4 -0
  642. package/examples/api-listMePaymentMethods.ts +4 -0
  643. package/examples/api-listMePayments.mjs +4 -0
  644. package/examples/api-listMePayments.ts +4 -0
  645. package/examples/api-listMeRefunds.mjs +4 -0
  646. package/examples/api-listMeRefunds.ts +4 -0
  647. package/examples/api-listMeReturns.mjs +4 -0
  648. package/examples/api-listMeReturns.ts +4 -0
  649. package/examples/api-listMeShipments.mjs +4 -0
  650. package/examples/api-listMeShipments.ts +4 -0
  651. package/examples/api-listMeSubscriptions.mjs +4 -0
  652. package/examples/api-listMeSubscriptions.ts +4 -0
  653. package/examples/api-listMerchantBillingBalances.mjs +4 -0
  654. package/examples/api-listMerchantBillingBalances.ts +4 -0
  655. package/examples/api-listMerchantSubscriptionInvoices.mjs +4 -0
  656. package/examples/api-listMerchantSubscriptionInvoices.ts +4 -0
  657. package/examples/api-listModifierGroups.mjs +4 -0
  658. package/examples/api-listModifierGroups.ts +4 -0
  659. package/examples/api-listModifierSets.mjs +4 -0
  660. package/examples/api-listModifierSets.ts +4 -0
  661. package/examples/api-listOrderActivities.mjs +6 -0
  662. package/examples/api-listOrderActivities.ts +6 -0
  663. package/examples/api-listOrderPaymentAttempts.mjs +6 -0
  664. package/examples/api-listOrderPaymentAttempts.ts +6 -0
  665. package/examples/api-listOrders.mjs +4 -0
  666. package/examples/api-listOrders.ts +4 -0
  667. package/examples/api-listOrganizationMemberships.mjs +6 -0
  668. package/examples/api-listOrganizationMemberships.ts +6 -0
  669. package/examples/api-listOrganizations.mjs +4 -0
  670. package/examples/api-listOrganizations.ts +4 -0
  671. package/examples/api-listPackageItems.mjs +6 -0
  672. package/examples/api-listPackageItems.ts +6 -0
  673. package/examples/api-listPackages.mjs +4 -0
  674. package/examples/api-listPackages.ts +4 -0
  675. package/examples/api-listPaymentIntents.mjs +4 -0
  676. package/examples/api-listPaymentIntents.ts +4 -0
  677. package/examples/api-listPaymentLinks.mjs +4 -0
  678. package/examples/api-listPaymentLinks.ts +4 -0
  679. package/examples/api-listPaymentMethodDomains.mjs +4 -0
  680. package/examples/api-listPaymentMethodDomains.ts +4 -0
  681. package/examples/api-listPaymentMethods.mjs +4 -0
  682. package/examples/api-listPaymentMethods.ts +4 -0
  683. package/examples/api-listPayoutDestinations.mjs +4 -0
  684. package/examples/api-listPayoutDestinations.ts +4 -0
  685. package/examples/api-listPayoutEntries.mjs +6 -0
  686. package/examples/api-listPayoutEntries.ts +6 -0
  687. package/examples/api-listPayouts.mjs +4 -0
  688. package/examples/api-listPayouts.ts +4 -0
  689. package/examples/api-listProductOptions.mjs +6 -0
  690. package/examples/api-listProductOptions.ts +6 -0
  691. package/examples/api-listProductVariants.mjs +6 -0
  692. package/examples/api-listProductVariants.ts +6 -0
  693. package/examples/api-listProducts.mjs +4 -0
  694. package/examples/api-listProducts.ts +4 -0
  695. package/examples/api-listPromotionCodes.mjs +6 -0
  696. package/examples/api-listPromotionCodes.ts +6 -0
  697. package/examples/api-listPromotions.mjs +4 -0
  698. package/examples/api-listPromotions.ts +4 -0
  699. package/examples/api-listRefunds.mjs +4 -0
  700. package/examples/api-listRefunds.ts +4 -0
  701. package/examples/api-listReports.mjs +4 -0
  702. package/examples/api-listReports.ts +4 -0
  703. package/examples/api-listReturnDispositions.mjs +4 -0
  704. package/examples/api-listReturnDispositions.ts +4 -0
  705. package/examples/api-listReturnInspections.mjs +4 -0
  706. package/examples/api-listReturnInspections.ts +4 -0
  707. package/examples/api-listReturnLineItems.mjs +6 -0
  708. package/examples/api-listReturnLineItems.ts +6 -0
  709. package/examples/api-listReturnPolicies.mjs +4 -0
  710. package/examples/api-listReturnPolicies.ts +4 -0
  711. package/examples/api-listReturnPolicyRevisions.mjs +6 -0
  712. package/examples/api-listReturnPolicyRevisions.ts +6 -0
  713. package/examples/api-listReturnReasons.mjs +4 -0
  714. package/examples/api-listReturnReasons.ts +4 -0
  715. package/examples/api-listReturnReceipts.mjs +4 -0
  716. package/examples/api-listReturnReceipts.ts +4 -0
  717. package/examples/api-listReturnResolutions.mjs +4 -0
  718. package/examples/api-listReturnResolutions.ts +4 -0
  719. package/examples/api-listReturns.mjs +4 -0
  720. package/examples/api-listReturns.ts +4 -0
  721. package/examples/api-listReviews.mjs +4 -0
  722. package/examples/api-listReviews.ts +4 -0
  723. package/examples/api-listRiskListItems.mjs +6 -0
  724. package/examples/api-listRiskListItems.ts +6 -0
  725. package/examples/api-listRiskLists.mjs +4 -0
  726. package/examples/api-listRiskLists.ts +4 -0
  727. package/examples/api-listRiskRules.mjs +4 -0
  728. package/examples/api-listRiskRules.ts +4 -0
  729. package/examples/api-listShipments.mjs +4 -0
  730. package/examples/api-listShipments.ts +4 -0
  731. package/examples/api-listSubscriptionPaymentRetries.mjs +6 -0
  732. package/examples/api-listSubscriptionPaymentRetries.ts +6 -0
  733. package/examples/api-listSubscriptionPlans.mjs +4 -0
  734. package/examples/api-listSubscriptionPlans.ts +4 -0
  735. package/examples/api-listSubscriptions.mjs +4 -0
  736. package/examples/api-listSubscriptions.ts +4 -0
  737. package/examples/api-listWebhookDeliveries.mjs +6 -0
  738. package/examples/api-listWebhookDeliveries.ts +6 -0
  739. package/examples/api-listWebhookDeliveryAttempts.mjs +6 -0
  740. package/examples/api-listWebhookDeliveryAttempts.ts +6 -0
  741. package/examples/api-listWebhookEndpoints.mjs +4 -0
  742. package/examples/api-listWebhookEndpoints.ts +4 -0
  743. package/examples/api-listWebhookEventTypes.mjs +4 -0
  744. package/examples/api-listWebhookEventTypes.ts +4 -0
  745. package/examples/api-listWebhookEvents.mjs +4 -0
  746. package/examples/api-listWebhookEvents.ts +4 -0
  747. package/examples/api-markInvoiceUncollectible.mjs +6 -0
  748. package/examples/api-markInvoiceUncollectible.ts +6 -0
  749. package/examples/api-pauseInvoiceReminders.mjs +6 -0
  750. package/examples/api-pauseInvoiceReminders.ts +6 -0
  751. package/examples/api-pauseMeSubscription.mjs +7 -0
  752. package/examples/api-pauseMeSubscription.ts +7 -0
  753. package/examples/api-pauseSubscription.mjs +7 -0
  754. package/examples/api-pauseSubscription.ts +7 -0
  755. package/examples/api-payOrder.mjs +9 -0
  756. package/examples/api-payOrder.ts +9 -0
  757. package/examples/api-previewOrderDiscounts.mjs +6 -0
  758. package/examples/api-previewOrderDiscounts.ts +6 -0
  759. package/examples/api-previewPartnerInstallAuthorization.mjs +8 -0
  760. package/examples/api-previewPartnerInstallAuthorization.ts +8 -0
  761. package/examples/api-processExistingReturn.mjs +14 -0
  762. package/examples/api-processExistingReturn.ts +14 -0
  763. package/examples/api-publishLocationGeography.mjs +11 -0
  764. package/examples/api-publishLocationGeography.ts +11 -0
  765. package/examples/api-publishReturnPolicyRevision.mjs +16 -0
  766. package/examples/api-publishReturnPolicyRevision.ts +16 -0
  767. package/examples/api-queryCheckoutSessionPickupAvailability.mjs +7 -0
  768. package/examples/api-queryCheckoutSessionPickupAvailability.ts +7 -0
  769. package/examples/api-reactivateMeSubscription.mjs +6 -0
  770. package/examples/api-reactivateMeSubscription.ts +6 -0
  771. package/examples/api-reactivateSubscription.mjs +6 -0
  772. package/examples/api-reactivateSubscription.ts +6 -0
  773. package/examples/api-recordManualInvoicePayment.mjs +12 -0
  774. package/examples/api-recordManualInvoicePayment.ts +12 -0
  775. package/examples/api-refreshCustomerSession.mjs +9 -0
  776. package/examples/api-refreshCustomerSession.ts +9 -0
  777. package/examples/api-refreshMerchantAccountSession.mjs +8 -0
  778. package/examples/api-refreshMerchantAccountSession.ts +8 -0
  779. package/examples/api-regenerateInvoicePublicLink.mjs +6 -0
  780. package/examples/api-regenerateInvoicePublicLink.ts +6 -0
  781. package/examples/api-releaseInventoryReservation.mjs +10 -0
  782. package/examples/api-releaseInventoryReservation.ts +10 -0
  783. package/examples/api-releaseReturnResolution.mjs +9 -0
  784. package/examples/api-releaseReturnResolution.ts +9 -0
  785. package/examples/api-removeMePaymentMethod.mjs +6 -0
  786. package/examples/api-removeMePaymentMethod.ts +6 -0
  787. package/examples/api-removeOrderDiscounts.mjs +9 -0
  788. package/examples/api-removeOrderDiscounts.ts +9 -0
  789. package/examples/api-removePaymentMethod.mjs +6 -0
  790. package/examples/api-removePaymentMethod.ts +6 -0
  791. package/examples/api-reopenReturn.mjs +9 -0
  792. package/examples/api-reopenReturn.ts +9 -0
  793. package/examples/api-repriceOrderDiscounts.mjs +6 -0
  794. package/examples/api-repriceOrderDiscounts.ts +6 -0
  795. package/examples/api-resendMeOrderReceipt.mjs +6 -0
  796. package/examples/api-resendMeOrderReceipt.ts +6 -0
  797. package/examples/api-resendOrderReceipt.mjs +6 -0
  798. package/examples/api-resendOrderReceipt.ts +6 -0
  799. package/examples/api-resendWebhookDelivery.mjs +6 -0
  800. package/examples/api-resendWebhookDelivery.ts +6 -0
  801. package/examples/api-resetDemoSession.mjs +6 -0
  802. package/examples/api-resetDemoSession.ts +6 -0
  803. package/examples/api-resetDeveloperSandbox.mjs +6 -0
  804. package/examples/api-resetDeveloperSandbox.ts +6 -0
  805. package/examples/api-resolveCustomerDeletionRequest.mjs +9 -0
  806. package/examples/api-resolveCustomerDeletionRequest.ts +9 -0
  807. package/examples/api-resolveOrderInventoryException.mjs +6 -0
  808. package/examples/api-resolveOrderInventoryException.ts +6 -0
  809. package/examples/api-resolvePaymentLink.mjs +10 -0
  810. package/examples/api-resolvePaymentLink.ts +10 -0
  811. package/examples/api-resolvePromotionCode.mjs +6 -0
  812. package/examples/api-resolvePromotionCode.ts +6 -0
  813. package/examples/api-resumeInvoiceReminders.mjs +6 -0
  814. package/examples/api-resumeInvoiceReminders.ts +6 -0
  815. package/examples/api-resumeMeSubscription.mjs +6 -0
  816. package/examples/api-resumeMeSubscription.ts +6 -0
  817. package/examples/api-resumeSubscription.mjs +6 -0
  818. package/examples/api-resumeSubscription.ts +6 -0
  819. package/examples/api-retryReturnDisposition.mjs +9 -0
  820. package/examples/api-retryReturnDisposition.ts +9 -0
  821. package/examples/api-retryReturnResolution.mjs +9 -0
  822. package/examples/api-retryReturnResolution.ts +9 -0
  823. package/examples/api-reverseCreditNoteAllocation.mjs +7 -0
  824. package/examples/api-reverseCreditNoteAllocation.ts +7 -0
  825. package/examples/api-reverseManualInvoicePayment.mjs +12 -0
  826. package/examples/api-reverseManualInvoicePayment.ts +12 -0
  827. package/examples/api-revokeAPIKey.mjs +6 -0
  828. package/examples/api-revokeAPIKey.ts +6 -0
  829. package/examples/api-revokeCustomerSession.mjs +6 -0
  830. package/examples/api-revokeCustomerSession.ts +6 -0
  831. package/examples/api-revokeCustomerSessions.mjs +6 -0
  832. package/examples/api-revokeCustomerSessions.ts +6 -0
  833. package/examples/api-revokeDeliveryDependency.mjs +13 -0
  834. package/examples/api-revokeDeliveryDependency.ts +13 -0
  835. package/examples/api-revokeDeveloperPartnerAppInstall.mjs +7 -0
  836. package/examples/api-revokeDeveloperPartnerAppInstall.ts +7 -0
  837. package/examples/api-revokeDeveloperPartnerEnvironmentGrant.mjs +8 -0
  838. package/examples/api-revokeDeveloperPartnerEnvironmentGrant.ts +8 -0
  839. package/examples/api-revokeOrganizationMembership.mjs +7 -0
  840. package/examples/api-revokeOrganizationMembership.ts +7 -0
  841. package/examples/api-rotateDeliveryRateCallbackSigningKey.mjs +6 -0
  842. package/examples/api-rotateDeliveryRateCallbackSigningKey.ts +6 -0
  843. package/examples/api-rotateDeveloperPartnerAppSecret.mjs +6 -0
  844. package/examples/api-rotateDeveloperPartnerAppSecret.ts +6 -0
  845. package/examples/api-rotateWebhookSecret.mjs +6 -0
  846. package/examples/api-rotateWebhookSecret.ts +6 -0
  847. package/examples/api-saveMePaymentMethod.mjs +6 -0
  848. package/examples/api-saveMePaymentMethod.ts +6 -0
  849. package/examples/api-savePaymentMethod.mjs +8 -0
  850. package/examples/api-savePaymentMethod.ts +8 -0
  851. package/examples/api-sendInvoiceReminder.mjs +6 -0
  852. package/examples/api-sendInvoiceReminder.ts +6 -0
  853. package/examples/api-setDefaultCustomerAddress.mjs +10 -0
  854. package/examples/api-setDefaultCustomerAddress.ts +10 -0
  855. package/examples/api-setDefaultMeAddress.mjs +9 -0
  856. package/examples/api-setDefaultMeAddress.ts +9 -0
  857. package/examples/api-setDefaultMePaymentMethod.mjs +6 -0
  858. package/examples/api-setDefaultMePaymentMethod.ts +6 -0
  859. package/examples/api-setDefaultPaymentMethod.mjs +6 -0
  860. package/examples/api-setDefaultPaymentMethod.ts +6 -0
  861. package/examples/api-skipSubscriptionCycle.mjs +7 -0
  862. package/examples/api-skipSubscriptionCycle.ts +7 -0
  863. package/examples/api-startOnboarding.mjs +10 -0
  864. package/examples/api-startOnboarding.ts +10 -0
  865. package/examples/api-streamWebhookEvents.mjs +8 -0
  866. package/examples/api-streamWebhookEvents.ts +8 -0
  867. package/examples/api-transferOrganizationOwnership.mjs +9 -0
  868. package/examples/api-transferOrganizationOwnership.ts +9 -0
  869. package/examples/api-transitionFulfillment.mjs +9 -0
  870. package/examples/api-transitionFulfillment.ts +9 -0
  871. package/examples/api-transitionInventoryTransfer.mjs +17 -0
  872. package/examples/api-transitionInventoryTransfer.ts +17 -0
  873. package/examples/api-transitionPackage.mjs +9 -0
  874. package/examples/api-transitionPackage.ts +9 -0
  875. package/examples/api-updateAPIKey.mjs +7 -0
  876. package/examples/api-updateAPIKey.ts +7 -0
  877. package/examples/api-updateBundle.mjs +7 -0
  878. package/examples/api-updateBundle.ts +7 -0
  879. package/examples/api-updateCategory.mjs +7 -0
  880. package/examples/api-updateCategory.ts +7 -0
  881. package/examples/api-updateCheckoutSession.mjs +7 -0
  882. package/examples/api-updateCheckoutSession.ts +7 -0
  883. package/examples/api-updateCreditNote.mjs +7 -0
  884. package/examples/api-updateCreditNote.ts +7 -0
  885. package/examples/api-updateCustomer.mjs +7 -0
  886. package/examples/api-updateCustomer.ts +7 -0
  887. package/examples/api-updateCustomerAddress.mjs +8 -0
  888. package/examples/api-updateCustomerAddress.ts +8 -0
  889. package/examples/api-updateDeliveryLocationSet.mjs +9 -0
  890. package/examples/api-updateDeliveryLocationSet.ts +9 -0
  891. package/examples/api-updateDeliveryMethod.mjs +9 -0
  892. package/examples/api-updateDeliveryMethod.ts +9 -0
  893. package/examples/api-updateDeliveryProfile.mjs +9 -0
  894. package/examples/api-updateDeliveryProfile.ts +9 -0
  895. package/examples/api-updateDeliveryRateCallback.mjs +9 -0
  896. package/examples/api-updateDeliveryRateCallback.ts +9 -0
  897. package/examples/api-updateDeliveryZone.mjs +9 -0
  898. package/examples/api-updateDeliveryZone.ts +9 -0
  899. package/examples/api-updateDeveloperPartnerApp.mjs +7 -0
  900. package/examples/api-updateDeveloperPartnerApp.ts +7 -0
  901. package/examples/api-updateDevice.mjs +7 -0
  902. package/examples/api-updateDevice.ts +7 -0
  903. package/examples/api-updateFulfillment.mjs +7 -0
  904. package/examples/api-updateFulfillment.ts +7 -0
  905. package/examples/api-updateInventoryAllocationPolicy.mjs +7 -0
  906. package/examples/api-updateInventoryAllocationPolicy.ts +7 -0
  907. package/examples/api-updateInventoryCount.mjs +22 -0
  908. package/examples/api-updateInventoryCount.ts +22 -0
  909. package/examples/api-updateInventoryItem.mjs +7 -0
  910. package/examples/api-updateInventoryItem.ts +7 -0
  911. package/examples/api-updateInventoryLevel.mjs +10 -0
  912. package/examples/api-updateInventoryLevel.ts +10 -0
  913. package/examples/api-updateInventoryTransfer.mjs +7 -0
  914. package/examples/api-updateInventoryTransfer.ts +7 -0
  915. package/examples/api-updateInvoice.mjs +7 -0
  916. package/examples/api-updateInvoice.ts +7 -0
  917. package/examples/api-updateInvoicePaymentTerm.mjs +11 -0
  918. package/examples/api-updateInvoicePaymentTerm.ts +11 -0
  919. package/examples/api-updateLocation.mjs +7 -0
  920. package/examples/api-updateLocation.ts +7 -0
  921. package/examples/api-updateLocationInventory.mjs +9 -0
  922. package/examples/api-updateLocationInventory.ts +9 -0
  923. package/examples/api-updateMe.mjs +6 -0
  924. package/examples/api-updateMe.ts +6 -0
  925. package/examples/api-updateMeAddress.mjs +7 -0
  926. package/examples/api-updateMeAddress.ts +7 -0
  927. package/examples/api-updateMerchant.mjs +7 -0
  928. package/examples/api-updateMerchant.ts +7 -0
  929. package/examples/api-updateModifierGroup.mjs +7 -0
  930. package/examples/api-updateModifierGroup.ts +7 -0
  931. package/examples/api-updateModifierSet.mjs +7 -0
  932. package/examples/api-updateModifierSet.ts +7 -0
  933. package/examples/api-updateOrder.mjs +9 -0
  934. package/examples/api-updateOrder.ts +9 -0
  935. package/examples/api-updateOrderCharge.mjs +8 -0
  936. package/examples/api-updateOrderCharge.ts +8 -0
  937. package/examples/api-updateOrderLineItem.mjs +8 -0
  938. package/examples/api-updateOrderLineItem.ts +8 -0
  939. package/examples/api-updateOrganization.mjs +7 -0
  940. package/examples/api-updateOrganization.ts +7 -0
  941. package/examples/api-updatePackage.mjs +7 -0
  942. package/examples/api-updatePackage.ts +7 -0
  943. package/examples/api-updatePackageItem.mjs +8 -0
  944. package/examples/api-updatePackageItem.ts +8 -0
  945. package/examples/api-updatePaymentIntent.mjs +7 -0
  946. package/examples/api-updatePaymentIntent.ts +7 -0
  947. package/examples/api-updatePaymentLink.mjs +7 -0
  948. package/examples/api-updatePaymentLink.ts +7 -0
  949. package/examples/api-updatePaymentMethodDomain.mjs +9 -0
  950. package/examples/api-updatePaymentMethodDomain.ts +9 -0
  951. package/examples/api-updatePayoutDestination.mjs +7 -0
  952. package/examples/api-updatePayoutDestination.ts +7 -0
  953. package/examples/api-updatePayoutSettings.mjs +6 -0
  954. package/examples/api-updatePayoutSettings.ts +6 -0
  955. package/examples/api-updateProduct.mjs +7 -0
  956. package/examples/api-updateProduct.ts +7 -0
  957. package/examples/api-updateProductVariant.mjs +8 -0
  958. package/examples/api-updateProductVariant.ts +8 -0
  959. package/examples/api-updatePromotion.mjs +7 -0
  960. package/examples/api-updatePromotion.ts +7 -0
  961. package/examples/api-updatePromotionCode.mjs +8 -0
  962. package/examples/api-updatePromotionCode.ts +8 -0
  963. package/examples/api-updateRefund.mjs +7 -0
  964. package/examples/api-updateRefund.ts +7 -0
  965. package/examples/api-updateReturn.mjs +7 -0
  966. package/examples/api-updateReturn.ts +7 -0
  967. package/examples/api-updateReturnLineItem.mjs +8 -0
  968. package/examples/api-updateReturnLineItem.ts +8 -0
  969. package/examples/api-updateReturnPolicy.mjs +7 -0
  970. package/examples/api-updateReturnPolicy.ts +7 -0
  971. package/examples/api-updateReturnReason.mjs +7 -0
  972. package/examples/api-updateReturnReason.ts +7 -0
  973. package/examples/api-updateReturnResolution.mjs +7 -0
  974. package/examples/api-updateReturnResolution.ts +7 -0
  975. package/examples/api-updateRiskList.mjs +9 -0
  976. package/examples/api-updateRiskList.ts +9 -0
  977. package/examples/api-updateRiskRule.mjs +9 -0
  978. package/examples/api-updateRiskRule.ts +9 -0
  979. package/examples/api-updateSettings.mjs +6 -0
  980. package/examples/api-updateSettings.ts +6 -0
  981. package/examples/api-updateShipment.mjs +7 -0
  982. package/examples/api-updateShipment.ts +7 -0
  983. package/examples/api-updateSubscription.mjs +7 -0
  984. package/examples/api-updateSubscription.ts +7 -0
  985. package/examples/api-updateSubscriptionBillingSchedule.mjs +11 -0
  986. package/examples/api-updateSubscriptionBillingSchedule.ts +11 -0
  987. package/examples/api-updateSubscriptionPlan.mjs +7 -0
  988. package/examples/api-updateSubscriptionPlan.ts +7 -0
  989. package/examples/api-updateWebhookEndpoint.mjs +7 -0
  990. package/examples/api-updateWebhookEndpoint.ts +7 -0
  991. package/examples/api-verifyOnboardingEmail.mjs +9 -0
  992. package/examples/api-verifyOnboardingEmail.ts +9 -0
  993. package/examples/api-verifyReturnReceiptLineItem.mjs +11 -0
  994. package/examples/api-verifyReturnReceiptLineItem.ts +11 -0
  995. package/examples/api-voidCreditNote.mjs +6 -0
  996. package/examples/api-voidCreditNote.ts +6 -0
  997. package/examples/api-voidInvoice.mjs +6 -0
  998. package/examples/api-voidInvoice.ts +6 -0
  999. package/examples/api-voidPackage.mjs +6 -0
  1000. package/examples/api-voidPackage.ts +6 -0
  1001. package/examples/api-voidShipment.mjs +6 -0
  1002. package/examples/api-voidShipment.ts +6 -0
  1003. package/examples/api-waiveReturnLineInspection.mjs +10 -0
  1004. package/examples/api-waiveReturnLineInspection.ts +10 -0
  1005. package/examples/webhook-inbox.mjs +82 -0
  1006. package/index.d.ts +9372 -0
  1007. package/index.js +544284 -0
  1008. package/package.json +45 -0
  1009. package/runtime-plan.d.ts +50 -0
  1010. package/runtime-plan.js +187 -0
  1011. package/runtime.d.ts +192 -0
  1012. package/runtime.js +2072 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Flint Public API SDK (node)
2
+
3
+ Package 0.2.0-beta.1; generated for API 2026-09-07.
4
+
5
+ Requires Node.js 22+; TypeScript 5.9+. ESM JavaScript and declarations ship together.
6
+
7
+ Install: `npm install @flintpay/node`
8
+
9
+ Start with [the quickstart](examples/api-addOrderCharge.mjs). Set API_BASE_URL explicitly. Legacy authentication examples use API_TOKEN; composed-mode examples name each required API_MODE_SCHEME credential variable. Examples target a placeholder sandbox and make one attempt. Provider example values must match your sandbox. Run examples from the generated package: for Node use node examples/NAME.mjs; for PHP run composer install in the generated php/ directory, then php examples/NAME.php. When copying a PHP example into an application, point its require statement at that application's vendor/autoload.php.
10
+
11
+ ## Client and request options
12
+
13
+ Construct a client with baseUrl and, for legacy authenticated operations, token. Composed clients accept authMode and credentials keyed by mode and scheme; requests can select a mode with request-local credentials. A combined scheme set must be complete. The SDK does not discover credentials or read environment variables; the operation example scripts read API_BASE_URL and their named credential variables explicitly. Pass per-request options as the second method argument: a plain object in Node, or RequestOptions in PHP. Defaults are timeoutMs: 10000 per attempt and deadlineMs: 30000 for the overall duration (not an absolute timestamp). Request values override client defaults. maxAttempts defaults to the operation's declared limit, or one when no retries are declared; overrides cannot exceed that limit. Request headers carry tenant context without shared mutable state.
14
+
15
+ Results expose data, meta and explicit raw response access. JSON raw values are text; PDF data/raw are Uint8Array in Node and binary-safe strings in PHP. SSE data is a closeable iterable carrying event names, IDs, decoded data and rawData. Node metadata uses properties; PHP metadata uses array keys. SdkError exposes kind, outcome, retryAllowed and optional metadata; provider codes use code in Node and errorCode in PHP. outcome is not_sent, response or unknown. Reconcile an unknown mutation outcome with the provider and the original persisted idempotency key before resubmitting.
16
+
17
+ ## Behavior and ownership
18
+
19
+ Optional properties distinguish omission from null. PHP inputs use presence-aware typed input objects constructed from arrays: omit a key to omit it; include a key with null to clear only where permitted. PHP models expose presence through has()/get(); typed getters unwrap nested models and getters for omitted optional fields throw. In object/array alternatives, PHP lists (including []) represent JSON arrays; use (object) [] for an empty JSON object. Numeric enum inputs use exact strings for number/int64/uint64 schemas; membership compares exact values, so equivalent decimal/exponent spellings are accepted. Numeric anyOf branches merge equivalent values exactly and preserve the request token; oneOf still requires exactly one matching branch. Numeric conversions supported only by branches that stop matching fail validation before dispatch. Mutually dependent numeric alternatives use joint matching, limited to 256 combinations per value path; exceeding this limit fails validation. Large integers (int64) and decimals use exact strings, including numeric JSON wire values. When the provider enables explicit numeric unions, ambiguous numeric inputs use new ExactNumber("1.2500") and plain strings retain their JSON string meaning. Integer responses accept integral decimal/exponent notation without rounding. Sparse Node input arrays fail before dispatch. Timestamps remain strings. Unknown response fields, enum members, and tagged variants are retained. PHP response class names include status codes and, for tagged alternatives, branch positions. Adding a status can introduce a new return class even with an identical JSON shape; consult migration notes before upgrading class-based dispatch. Portable digit/word pattern escapes retain their ASCII ECMAScript meaning in both targets, including inside character classes. Full request encoding checks run locally; server business effects require provider tests.
20
+
21
+ Retries count total attempts, include jitter and Retry-After, and never exceed the declared policy. Persist an idempotency key across process restarts and submissions within the server's documented retention/scope. Automatic keys cover one SDK call only. Explicit keys from operation inputs, request headers or idempotencyKey are preserved; conflicting values fail before dispatch. A timeout after dispatch can leave the remote outcome unknown; inspect SdkError.outcome. Disable nested transport/application retries to avoid multiplied attempts. 409/412 are distinct conflicts and never automatically overwritten.
22
+
23
+ Timeout is per attempt, including buffered body consumption. For SSE, timeout/deadline bound connection setup; streamIdleTimeoutMs controls idle reads and streamLifetimeMs optionally bounds stream lifetime. Close result.data or the client to release a stream; breaking iteration also closes it. Unknown event names retain raw strings. Reconnect and persist resume cursors explicitly; no yielded event is retried automatically. Deadline covers attempts and waits; pagination and polling share an overall deadline. Cancellation stops local work, not the remote operation. Node uses AbortSignal. PHP uses a Cancellation token checked during cURL progress and between waits; synchronous calls need an external signal handler to cancel while blocked. Pagination is lazy, supports maxPages/maxItems, and does not guarantee a stable snapshot or durable continuation. Generation rejects incompatible continuation/query representations, including an int64/uint64 continuation with an ordinary integer query parameter. Configured money helpers reject whitespace, including trailing newlines, and excess precision when converting exact major-unit strings to minor units.
24
+
25
+ Explicit allowedOrigins govern all destinations, including pagination. HTTPS is required unless allowInsecureHttp is set for local tests. Declared 302/307 responses return Location metadata without following redirects; undeclared redirects are rejected. Authentication is attached only after destination validation. API version headers are pinned when configured; changing them does not update generated types.
26
+
27
+ Clients perform no network I/O at import/construction. Node clients reuse the runtime's fetch connection pool; injected transports remain caller-owned and must honor AbortSignal and disable redirects/retries. PHP owns a reusable cURL handle, released by close()/destruction; a client supports sequential calls within one PHP execution context. Do not concurrently share a PHP client across threads/fibers. Node requests keep headers/context local and support concurrent calls. No SDK telemetry is sent. Requests use the media type selected by the provider profile. Schema validation counts encoded object properties, including explicit nulls, after optional-field omission. Requests identify the selected package name/version and runtime through an overridable User-Agent header.
28
+
29
+ Diagnostics run once per attempted HTTP request, including transport failures, with operation, request ID, status, timing, attempt count and error kind only; hook failures are ignored. Bodies and credentials are excluded. Raw response text/headers and structured error details are privileged explicit access. Binary/stream result inspection omits raw headers and URLs; event inspection omits payloads. Node Model.toJSON() and PHP model accessors return defensive copies. To change an input, edit the Node toJSON() or PHP toInputArray()/toInputValue() copy and construct a new model; the PHP input exports preserve exact numeric kinds. Model debug printing redacts declared sensitive fields and additional field names supplied in ClientOptions.redactFields; printing arbitrary raw values is application responsibility. Injected transports are privileged and see credentials/bodies.
30
+
31
+ ## Schema helpers
32
+
33
+ The package exports serialize(value, schema), new Model(value, schema), and redact(value, schema) for application-supplied schemas. These helpers use the package's local value execution rules and require no generator installation or schema registry service. Generated methods and factories use the codecs included in the package. For a null-only schema, use {"type":"null"}. The legacy form {"type":["null"]} also permits non-null values in Node; PHP rejects them.
34
+
35
+ ## Package upgrades
36
+
37
+ Review provider release notes before upgrading. Compatibility checks account for public declarations, required response values and PHP class identities. Complex schema changes can still require manual review.
38
+
39
+ ## Webhooks and recovery
40
+
41
+ Verification uses the configured HMAC-SHA256 signature format, signed headers and original body bytes, with timestamp tolerance and overlapping secrets. Preserve raw request bytes; never verify reserialized JSON. Verification is not durable deduplication. In one database transaction, insert a unique provider event ID and durable work record before acknowledging. Workers should fetch authoritative current state for out-of-order events; commit business side effects idempotently. Unknown event types must not be treated as known success.
42
+
43
+ Custom helpers belong in custom/; they survive regeneration. Multi-call helpers are not atomic and must expose partial completion. See [reference](REFERENCE.md).