@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.
- package/LICENSE +201 -0
- package/README.md +43 -0
- package/REFERENCE.md +5967 -0
- package/canonical.d.ts +1 -0
- package/canonical.js +4 -0
- package/codec-plan.d.ts +77 -0
- package/codec-plan.js +369 -0
- package/contract.d.ts +225 -0
- package/diagnostic.d.ts +4 -0
- package/diagnostic.js +9 -0
- package/examples/api-addOrderCharge.mjs +16 -0
- package/examples/api-addOrderCharge.ts +16 -0
- package/examples/api-addOrderLineItems.mjs +13 -0
- package/examples/api-addOrderLineItems.ts +13 -0
- package/examples/api-addReturnLineItem.mjs +13 -0
- package/examples/api-addReturnLineItem.ts +13 -0
- package/examples/api-addRiskListItems.mjs +11 -0
- package/examples/api-addRiskListItems.ts +11 -0
- package/examples/api-advanceOnboarding.mjs +6 -0
- package/examples/api-advanceOnboarding.ts +6 -0
- package/examples/api-applyInventoryCount.mjs +8 -0
- package/examples/api-applyInventoryCount.ts +8 -0
- package/examples/api-applyOrderDiscount.mjs +11 -0
- package/examples/api-applyOrderDiscount.ts +11 -0
- package/examples/api-approveReview.mjs +6 -0
- package/examples/api-approveReview.ts +6 -0
- package/examples/api-assignToUnconfiguredDeliveryProfile.mjs +7 -0
- package/examples/api-assignToUnconfiguredDeliveryProfile.ts +7 -0
- package/examples/api-authorizePartnerInstall.mjs +10 -0
- package/examples/api-authorizePartnerInstall.ts +10 -0
- package/examples/api-cancelInventoryCount.mjs +8 -0
- package/examples/api-cancelInventoryCount.ts +8 -0
- package/examples/api-cancelInvoicePaymentAttempt.mjs +7 -0
- package/examples/api-cancelInvoicePaymentAttempt.ts +7 -0
- package/examples/api-cancelMeReturn.mjs +9 -0
- package/examples/api-cancelMeReturn.ts +9 -0
- package/examples/api-cancelMeSubscription.mjs +7 -0
- package/examples/api-cancelMeSubscription.ts +7 -0
- package/examples/api-cancelOrderPayment.mjs +7 -0
- package/examples/api-cancelOrderPayment.ts +7 -0
- package/examples/api-cancelOrderPaymentAttempt.mjs +7 -0
- package/examples/api-cancelOrderPaymentAttempt.ts +7 -0
- package/examples/api-cancelPaymentIntent.mjs +7 -0
- package/examples/api-cancelPaymentIntent.ts +7 -0
- package/examples/api-cancelPayout.mjs +7 -0
- package/examples/api-cancelPayout.ts +7 -0
- package/examples/api-cancelReturn.mjs +9 -0
- package/examples/api-cancelReturn.ts +9 -0
- package/examples/api-cancelReturnDisposition.mjs +9 -0
- package/examples/api-cancelReturnDisposition.ts +9 -0
- package/examples/api-cancelReturnLineItem.mjs +12 -0
- package/examples/api-cancelReturnLineItem.ts +12 -0
- package/examples/api-cancelReturnResolution.mjs +9 -0
- package/examples/api-cancelReturnResolution.ts +9 -0
- package/examples/api-cancelSubscription.mjs +7 -0
- package/examples/api-cancelSubscription.ts +7 -0
- package/examples/api-captureOrderPayment.mjs +7 -0
- package/examples/api-captureOrderPayment.ts +7 -0
- package/examples/api-capturePaymentIntent.mjs +7 -0
- package/examples/api-capturePaymentIntent.ts +7 -0
- package/examples/api-changeMeSubscriptionPaymentMethod.mjs +9 -0
- package/examples/api-changeMeSubscriptionPaymentMethod.ts +9 -0
- package/examples/api-changeSubscriptionPaymentMethod.mjs +9 -0
- package/examples/api-changeSubscriptionPaymentMethod.ts +9 -0
- package/examples/api-checkDeliveryRateCallbackConnection.mjs +6 -0
- package/examples/api-checkDeliveryRateCallbackConnection.ts +6 -0
- package/examples/api-closeCheckoutSession.mjs +7 -0
- package/examples/api-closeCheckoutSession.ts +7 -0
- package/examples/api-closeOrder.mjs +7 -0
- package/examples/api-closeOrder.ts +7 -0
- package/examples/api-collectInvoice.mjs +8 -0
- package/examples/api-collectInvoice.ts +8 -0
- package/examples/api-commitInventoryReservation.mjs +10 -0
- package/examples/api-commitInventoryReservation.ts +10 -0
- package/examples/api-completeReturn.mjs +7 -0
- package/examples/api-completeReturn.ts +7 -0
- package/examples/api-confirmMeEmailChangeRequest.mjs +9 -0
- package/examples/api-confirmMeEmailChangeRequest.ts +9 -0
- package/examples/api-confirmPaymentIntent.mjs +7 -0
- package/examples/api-confirmPaymentIntent.ts +7 -0
- package/examples/api-confirmReturnResolution.mjs +7 -0
- package/examples/api-confirmReturnResolution.ts +7 -0
- package/examples/api-consumeInventoryReservation.mjs +11 -0
- package/examples/api-consumeInventoryReservation.ts +11 -0
- package/examples/api-createAPIKey.mjs +9 -0
- package/examples/api-createAPIKey.ts +9 -0
- package/examples/api-createBundle.mjs +12 -0
- package/examples/api-createBundle.ts +12 -0
- package/examples/api-createCategory.mjs +8 -0
- package/examples/api-createCategory.ts +8 -0
- package/examples/api-createCheckoutSession.mjs +8 -0
- package/examples/api-createCheckoutSession.ts +8 -0
- package/examples/api-createCheckoutSessionDeliveryQuote.mjs +9 -0
- package/examples/api-createCheckoutSessionDeliveryQuote.ts +9 -0
- package/examples/api-createCheckoutSessionDeliverySelection.mjs +11 -0
- package/examples/api-createCheckoutSessionDeliverySelection.ts +11 -0
- package/examples/api-createCreditNote.mjs +9 -0
- package/examples/api-createCreditNote.ts +9 -0
- package/examples/api-createCreditNoteAllocation.mjs +13 -0
- package/examples/api-createCreditNoteAllocation.ts +13 -0
- package/examples/api-createCustomer.mjs +8 -0
- package/examples/api-createCustomer.ts +8 -0
- package/examples/api-createCustomerAddress.mjs +16 -0
- package/examples/api-createCustomerAddress.ts +16 -0
- package/examples/api-createCustomerDeletionRequest.mjs +6 -0
- package/examples/api-createCustomerDeletionRequest.ts +6 -0
- package/examples/api-createCustomerSession.mjs +8 -0
- package/examples/api-createCustomerSession.ts +8 -0
- package/examples/api-createDeliveryLocationSet.mjs +11 -0
- package/examples/api-createDeliveryLocationSet.ts +11 -0
- package/examples/api-createDeliveryMethod.mjs +20 -0
- package/examples/api-createDeliveryMethod.ts +20 -0
- package/examples/api-createDeliveryPreview.mjs +14 -0
- package/examples/api-createDeliveryPreview.ts +14 -0
- package/examples/api-createDeliveryProfile.mjs +11 -0
- package/examples/api-createDeliveryProfile.ts +11 -0
- package/examples/api-createDeliveryRateCallback.mjs +11 -0
- package/examples/api-createDeliveryRateCallback.ts +11 -0
- package/examples/api-createDeliveryRateCallbackTestDelivery.mjs +6 -0
- package/examples/api-createDeliveryRateCallbackTestDelivery.ts +6 -0
- package/examples/api-createDeliveryZone.mjs +15 -0
- package/examples/api-createDeliveryZone.ts +15 -0
- package/examples/api-createDemoSession.mjs +6 -0
- package/examples/api-createDemoSession.ts +6 -0
- package/examples/api-createDeveloperPartnerApp.mjs +10 -0
- package/examples/api-createDeveloperPartnerApp.ts +10 -0
- package/examples/api-createDeveloperSandbox.mjs +8 -0
- package/examples/api-createDeveloperSandbox.ts +8 -0
- package/examples/api-createDevice.mjs +8 -0
- package/examples/api-createDevice.ts +8 -0
- package/examples/api-createFeedbackReport.mjs +10 -0
- package/examples/api-createFeedbackReport.ts +10 -0
- package/examples/api-createFulfillment.mjs +15 -0
- package/examples/api-createFulfillment.ts +15 -0
- package/examples/api-createFulfillmentEvent.mjs +9 -0
- package/examples/api-createFulfillmentEvent.ts +9 -0
- package/examples/api-createInventoryAdjustment.mjs +10 -0
- package/examples/api-createInventoryAdjustment.ts +10 -0
- package/examples/api-createInventoryAllocationPolicy.mjs +18 -0
- package/examples/api-createInventoryAllocationPolicy.ts +18 -0
- package/examples/api-createInventoryCount.mjs +12 -0
- package/examples/api-createInventoryCount.ts +12 -0
- package/examples/api-createInventoryItem.mjs +8 -0
- package/examples/api-createInventoryItem.ts +8 -0
- package/examples/api-createInventoryReceipt.mjs +9 -0
- package/examples/api-createInventoryReceipt.ts +9 -0
- package/examples/api-createInventoryReservation.mjs +17 -0
- package/examples/api-createInventoryReservation.ts +17 -0
- package/examples/api-createInventoryTransfer.mjs +16 -0
- package/examples/api-createInventoryTransfer.ts +16 -0
- package/examples/api-createInvoice.mjs +8 -0
- package/examples/api-createInvoice.ts +8 -0
- package/examples/api-createInvoicePaymentTerm.mjs +11 -0
- package/examples/api-createInvoicePaymentTerm.ts +11 -0
- package/examples/api-createLocation.mjs +10 -0
- package/examples/api-createLocation.ts +10 -0
- package/examples/api-createMeAddress.mjs +15 -0
- package/examples/api-createMeAddress.ts +15 -0
- package/examples/api-createMeDeletionRequest.mjs +4 -0
- package/examples/api-createMeDeletionRequest.ts +4 -0
- package/examples/api-createMeEmailChangeRequest.mjs +8 -0
- package/examples/api-createMeEmailChangeRequest.ts +8 -0
- package/examples/api-createMeInvoiceCheckoutSession.mjs +6 -0
- package/examples/api-createMeInvoiceCheckoutSession.ts +6 -0
- package/examples/api-createMeReturn.mjs +15 -0
- package/examples/api-createMeReturn.ts +15 -0
- package/examples/api-createMeReturnPreview.mjs +14 -0
- package/examples/api-createMeReturnPreview.ts +14 -0
- package/examples/api-createMeReturnResolutionCheckoutSession.mjs +6 -0
- package/examples/api-createMeReturnResolutionCheckoutSession.ts +6 -0
- package/examples/api-createMerchantAccountSession.mjs +10 -0
- package/examples/api-createMerchantAccountSession.ts +10 -0
- package/examples/api-createModifierGroup.mjs +8 -0
- package/examples/api-createModifierGroup.ts +8 -0
- package/examples/api-createModifierSet.mjs +8 -0
- package/examples/api-createModifierSet.ts +8 -0
- package/examples/api-createOnboardingAPIKey.mjs +8 -0
- package/examples/api-createOnboardingAPIKey.ts +8 -0
- package/examples/api-createOrder.mjs +12 -0
- package/examples/api-createOrder.ts +12 -0
- package/examples/api-createOrderPaymentIntent.mjs +7 -0
- package/examples/api-createOrderPaymentIntent.ts +7 -0
- package/examples/api-createOrganization.mjs +8 -0
- package/examples/api-createOrganization.ts +8 -0
- package/examples/api-createPackage.mjs +7 -0
- package/examples/api-createPackage.ts +7 -0
- package/examples/api-createPackageItem.mjs +10 -0
- package/examples/api-createPackageItem.ts +10 -0
- package/examples/api-createPaymentIntent.mjs +14 -0
- package/examples/api-createPaymentIntent.ts +14 -0
- package/examples/api-createPaymentLink.mjs +8 -0
- package/examples/api-createPaymentLink.ts +8 -0
- package/examples/api-createPaymentMethodDomain.mjs +8 -0
- package/examples/api-createPaymentMethodDomain.ts +8 -0
- package/examples/api-createPayout.mjs +11 -0
- package/examples/api-createPayout.ts +11 -0
- package/examples/api-createProduct.mjs +15 -0
- package/examples/api-createProduct.ts +15 -0
- package/examples/api-createProductVariant.mjs +14 -0
- package/examples/api-createProductVariant.ts +14 -0
- package/examples/api-createPromotion.mjs +11 -0
- package/examples/api-createPromotion.ts +11 -0
- package/examples/api-createPromotionCode.mjs +9 -0
- package/examples/api-createPromotionCode.ts +9 -0
- package/examples/api-createRefund.mjs +8 -0
- package/examples/api-createRefund.ts +8 -0
- package/examples/api-createReport.mjs +11 -0
- package/examples/api-createReport.ts +11 -0
- package/examples/api-createReturn.mjs +15 -0
- package/examples/api-createReturn.ts +15 -0
- package/examples/api-createReturnDisposition.mjs +13 -0
- package/examples/api-createReturnDisposition.ts +13 -0
- package/examples/api-createReturnInspection.mjs +19 -0
- package/examples/api-createReturnInspection.ts +19 -0
- package/examples/api-createReturnPolicy.mjs +15 -0
- package/examples/api-createReturnPolicy.ts +15 -0
- package/examples/api-createReturnPreview.mjs +14 -0
- package/examples/api-createReturnPreview.ts +14 -0
- package/examples/api-createReturnReason.mjs +9 -0
- package/examples/api-createReturnReason.ts +9 -0
- package/examples/api-createReturnReceipt.mjs +16 -0
- package/examples/api-createReturnReceipt.ts +16 -0
- package/examples/api-createReturnResolution.mjs +15 -0
- package/examples/api-createReturnResolution.ts +15 -0
- package/examples/api-createRiskList.mjs +10 -0
- package/examples/api-createRiskList.ts +10 -0
- package/examples/api-createRiskPreview.mjs +8 -0
- package/examples/api-createRiskPreview.ts +8 -0
- package/examples/api-createRiskRule.mjs +14 -0
- package/examples/api-createRiskRule.ts +14 -0
- package/examples/api-createShipment.mjs +7 -0
- package/examples/api-createShipment.ts +7 -0
- package/examples/api-createSubscription.mjs +15 -0
- package/examples/api-createSubscription.ts +15 -0
- package/examples/api-createSubscriptionPaymentRetry.mjs +7 -0
- package/examples/api-createSubscriptionPaymentRetry.ts +7 -0
- package/examples/api-createSubscriptionPlan.mjs +11 -0
- package/examples/api-createSubscriptionPlan.ts +11 -0
- package/examples/api-createWebhookEndpoint.mjs +8 -0
- package/examples/api-createWebhookEndpoint.ts +8 -0
- package/examples/api-createWebhookTestEvent.mjs +9 -0
- package/examples/api-createWebhookTestEvent.ts +9 -0
- package/examples/api-decideReturn.mjs +15 -0
- package/examples/api-decideReturn.ts +15 -0
- package/examples/api-decideReturnInspectionLineItem.mjs +11 -0
- package/examples/api-decideReturnInspectionLineItem.ts +11 -0
- package/examples/api-declineReview.mjs +6 -0
- package/examples/api-declineReview.ts +6 -0
- package/examples/api-deleteBundle.mjs +6 -0
- package/examples/api-deleteBundle.ts +6 -0
- package/examples/api-deleteCategory.mjs +6 -0
- package/examples/api-deleteCategory.ts +6 -0
- package/examples/api-deleteCheckoutSessionCurrentDeliverySelection.mjs +7 -0
- package/examples/api-deleteCheckoutSessionCurrentDeliverySelection.ts +7 -0
- package/examples/api-deleteCustomerAddress.mjs +7 -0
- package/examples/api-deleteCustomerAddress.ts +7 -0
- package/examples/api-deleteDeliveryLocationSet.mjs +6 -0
- package/examples/api-deleteDeliveryLocationSet.ts +6 -0
- package/examples/api-deleteDeliveryMethod.mjs +6 -0
- package/examples/api-deleteDeliveryMethod.ts +6 -0
- package/examples/api-deleteDeliveryProfile.mjs +6 -0
- package/examples/api-deleteDeliveryProfile.ts +6 -0
- package/examples/api-deleteDeliveryRateCallback.mjs +6 -0
- package/examples/api-deleteDeliveryRateCallback.ts +6 -0
- package/examples/api-deleteDeliveryZone.mjs +6 -0
- package/examples/api-deleteDeliveryZone.ts +6 -0
- package/examples/api-deleteDeveloperSandbox.mjs +6 -0
- package/examples/api-deleteDeveloperSandbox.ts +6 -0
- package/examples/api-deleteDevice.mjs +6 -0
- package/examples/api-deleteDevice.ts +6 -0
- package/examples/api-deleteInventoryAllocationPolicy.mjs +6 -0
- package/examples/api-deleteInventoryAllocationPolicy.ts +6 -0
- package/examples/api-deleteInventoryItem.mjs +6 -0
- package/examples/api-deleteInventoryItem.ts +6 -0
- package/examples/api-deleteInvoicePaymentTerm.mjs +6 -0
- package/examples/api-deleteInvoicePaymentTerm.ts +6 -0
- package/examples/api-deleteLocation.mjs +6 -0
- package/examples/api-deleteLocation.ts +6 -0
- package/examples/api-deleteMeAddress.mjs +6 -0
- package/examples/api-deleteMeAddress.ts +6 -0
- package/examples/api-deleteModifierGroup.mjs +6 -0
- package/examples/api-deleteModifierGroup.ts +6 -0
- package/examples/api-deleteModifierSet.mjs +6 -0
- package/examples/api-deleteModifierSet.ts +6 -0
- package/examples/api-deleteOrderCharge.mjs +7 -0
- package/examples/api-deleteOrderCharge.ts +7 -0
- package/examples/api-deleteOrderLineItem.mjs +7 -0
- package/examples/api-deleteOrderLineItem.ts +7 -0
- package/examples/api-deleteOrganization.mjs +6 -0
- package/examples/api-deleteOrganization.ts +6 -0
- package/examples/api-deletePackageItem.mjs +7 -0
- package/examples/api-deletePackageItem.ts +7 -0
- package/examples/api-deletePayoutDestination.mjs +7 -0
- package/examples/api-deletePayoutDestination.ts +7 -0
- package/examples/api-deleteProduct.mjs +6 -0
- package/examples/api-deleteProduct.ts +6 -0
- package/examples/api-deleteProductVariant.mjs +7 -0
- package/examples/api-deleteProductVariant.ts +7 -0
- package/examples/api-deletePromotion.mjs +6 -0
- package/examples/api-deletePromotion.ts +6 -0
- package/examples/api-deletePromotionCode.mjs +7 -0
- package/examples/api-deletePromotionCode.ts +7 -0
- package/examples/api-deleteReturnLineItem.mjs +7 -0
- package/examples/api-deleteReturnLineItem.ts +7 -0
- package/examples/api-deleteReturnPolicy.mjs +6 -0
- package/examples/api-deleteReturnPolicy.ts +6 -0
- package/examples/api-deleteReturnReason.mjs +6 -0
- package/examples/api-deleteReturnReason.ts +6 -0
- package/examples/api-deleteRiskList.mjs +6 -0
- package/examples/api-deleteRiskList.ts +6 -0
- package/examples/api-deleteRiskListItem.mjs +7 -0
- package/examples/api-deleteRiskListItem.ts +7 -0
- package/examples/api-deleteRiskRule.mjs +6 -0
- package/examples/api-deleteRiskRule.ts +6 -0
- package/examples/api-deleteSubscriptionPlan.mjs +6 -0
- package/examples/api-deleteSubscriptionPlan.ts +6 -0
- package/examples/api-deleteWebhookEndpoint.mjs +6 -0
- package/examples/api-deleteWebhookEndpoint.ts +6 -0
- package/examples/api-exchangePartnerInstallToken.mjs +10 -0
- package/examples/api-exchangePartnerInstallToken.ts +10 -0
- package/examples/api-getAPIKey.mjs +6 -0
- package/examples/api-getAPIKey.ts +6 -0
- package/examples/api-getAnalyticsOverview.mjs +6 -0
- package/examples/api-getAnalyticsOverview.ts +6 -0
- package/examples/api-getBalanceTransaction.mjs +6 -0
- package/examples/api-getBalanceTransaction.ts +6 -0
- package/examples/api-getBundle.mjs +6 -0
- package/examples/api-getBundle.ts +6 -0
- package/examples/api-getCategory.mjs +6 -0
- package/examples/api-getCategory.ts +6 -0
- package/examples/api-getCheckoutSession.mjs +6 -0
- package/examples/api-getCheckoutSession.ts +6 -0
- package/examples/api-getCheckoutSessionCurrentDeliverySelection.mjs +6 -0
- package/examples/api-getCheckoutSessionCurrentDeliverySelection.ts +6 -0
- package/examples/api-getCheckoutSessionDeliveryQuote.mjs +7 -0
- package/examples/api-getCheckoutSessionDeliveryQuote.ts +7 -0
- package/examples/api-getCheckoutSessionDeliverySelectionHistory.mjs +7 -0
- package/examples/api-getCheckoutSessionDeliverySelectionHistory.ts +7 -0
- package/examples/api-getCreditNote.mjs +6 -0
- package/examples/api-getCreditNote.ts +6 -0
- package/examples/api-getCreditNoteAllocation.mjs +7 -0
- package/examples/api-getCreditNoteAllocation.ts +7 -0
- package/examples/api-getCreditNotePDF.mjs +6 -0
- package/examples/api-getCreditNotePDF.ts +6 -0
- package/examples/api-getCurrentAPIKeyRequestLog.mjs +6 -0
- package/examples/api-getCurrentAPIKeyRequestLog.ts +6 -0
- package/examples/api-getCustomer.mjs +6 -0
- package/examples/api-getCustomer.ts +6 -0
- package/examples/api-getCustomerAddress.mjs +7 -0
- package/examples/api-getCustomerAddress.ts +7 -0
- package/examples/api-getCustomerDeletionRequest.mjs +7 -0
- package/examples/api-getCustomerDeletionRequest.ts +7 -0
- package/examples/api-getDeliveryLocationSet.mjs +6 -0
- package/examples/api-getDeliveryLocationSet.ts +6 -0
- package/examples/api-getDeliveryMethod.mjs +6 -0
- package/examples/api-getDeliveryMethod.ts +6 -0
- package/examples/api-getDeliveryProfile.mjs +6 -0
- package/examples/api-getDeliveryProfile.ts +6 -0
- package/examples/api-getDeliveryRateCallback.mjs +6 -0
- package/examples/api-getDeliveryRateCallback.ts +6 -0
- package/examples/api-getDeliveryRevocation.mjs +6 -0
- package/examples/api-getDeliveryRevocation.ts +6 -0
- package/examples/api-getDeliveryZone.mjs +6 -0
- package/examples/api-getDeliveryZone.ts +6 -0
- package/examples/api-getDeveloperAuthContext.mjs +4 -0
- package/examples/api-getDeveloperAuthContext.ts +4 -0
- package/examples/api-getDeveloperPartnerApp.mjs +6 -0
- package/examples/api-getDeveloperPartnerApp.ts +6 -0
- package/examples/api-getDeveloperPartnerAppInstall.mjs +7 -0
- package/examples/api-getDeveloperPartnerAppInstall.ts +7 -0
- package/examples/api-getDeveloperSandbox.mjs +6 -0
- package/examples/api-getDeveloperSandbox.ts +6 -0
- package/examples/api-getDevice.mjs +6 -0
- package/examples/api-getDevice.ts +6 -0
- package/examples/api-getDispute.mjs +6 -0
- package/examples/api-getDispute.ts +6 -0
- package/examples/api-getEffectiveSettings.mjs +4 -0
- package/examples/api-getEffectiveSettings.ts +4 -0
- package/examples/api-getFeedbackReport.mjs +6 -0
- package/examples/api-getFeedbackReport.ts +6 -0
- package/examples/api-getFraudWarning.mjs +6 -0
- package/examples/api-getFraudWarning.ts +6 -0
- package/examples/api-getFulfillment.mjs +6 -0
- package/examples/api-getFulfillment.ts +6 -0
- package/examples/api-getFulfillmentEvent.mjs +6 -0
- package/examples/api-getFulfillmentEvent.ts +6 -0
- package/examples/api-getFulfillmentNotification.mjs +6 -0
- package/examples/api-getFulfillmentNotification.ts +6 -0
- package/examples/api-getInvoice.mjs +6 -0
- package/examples/api-getInvoice.ts +6 -0
- package/examples/api-getInvoicePDF.mjs +6 -0
- package/examples/api-getInvoicePDF.ts +6 -0
- package/examples/api-getInvoicePaymentAttempt.mjs +7 -0
- package/examples/api-getInvoicePaymentAttempt.ts +7 -0
- package/examples/api-getInvoicePaymentTerm.mjs +6 -0
- package/examples/api-getInvoicePaymentTerm.ts +6 -0
- package/examples/api-getLocation.mjs +6 -0
- package/examples/api-getLocation.ts +6 -0
- package/examples/api-getMe.mjs +4 -0
- package/examples/api-getMe.ts +4 -0
- package/examples/api-getMeAddress.mjs +6 -0
- package/examples/api-getMeAddress.ts +6 -0
- package/examples/api-getMeCreditNote.mjs +7 -0
- package/examples/api-getMeCreditNote.ts +7 -0
- package/examples/api-getMeCreditNotePDF.mjs +7 -0
- package/examples/api-getMeCreditNotePDF.ts +7 -0
- package/examples/api-getMeDeletionRequest.mjs +6 -0
- package/examples/api-getMeDeletionRequest.ts +6 -0
- package/examples/api-getMeInvoice.mjs +6 -0
- package/examples/api-getMeInvoice.ts +6 -0
- package/examples/api-getMeInvoicePDF.mjs +6 -0
- package/examples/api-getMeInvoicePDF.ts +6 -0
- package/examples/api-getMeOrder.mjs +6 -0
- package/examples/api-getMeOrder.ts +6 -0
- package/examples/api-getMeReturn.mjs +6 -0
- package/examples/api-getMeReturn.ts +6 -0
- package/examples/api-getMeSubscription.mjs +6 -0
- package/examples/api-getMeSubscription.ts +6 -0
- package/examples/api-getMerchant.mjs +6 -0
- package/examples/api-getMerchant.ts +6 -0
- package/examples/api-getMerchantBillingBalance.mjs +6 -0
- package/examples/api-getMerchantBillingBalance.ts +6 -0
- package/examples/api-getMerchantSubscriptionInvoice.mjs +6 -0
- package/examples/api-getMerchantSubscriptionInvoice.ts +6 -0
- package/examples/api-getModifierGroup.mjs +6 -0
- package/examples/api-getModifierGroup.ts +6 -0
- package/examples/api-getModifierSet.mjs +6 -0
- package/examples/api-getModifierSet.ts +6 -0
- package/examples/api-getOnboardingState.mjs +4 -0
- package/examples/api-getOnboardingState.ts +4 -0
- package/examples/api-getOpenAPISpec.mjs +4 -0
- package/examples/api-getOpenAPISpec.ts +4 -0
- package/examples/api-getOrCreateInvoiceCheckoutSession.mjs +6 -0
- package/examples/api-getOrCreateInvoiceCheckoutSession.ts +6 -0
- package/examples/api-getOrCreateReturnResolutionCheckoutSession.mjs +6 -0
- package/examples/api-getOrCreateReturnResolutionCheckoutSession.ts +6 -0
- package/examples/api-getOrder.mjs +6 -0
- package/examples/api-getOrder.ts +6 -0
- package/examples/api-getOrderCurrentDeliverySelection.mjs +6 -0
- package/examples/api-getOrderCurrentDeliverySelection.ts +6 -0
- package/examples/api-getOrderPaymentAttempt.mjs +7 -0
- package/examples/api-getOrderPaymentAttempt.ts +7 -0
- package/examples/api-getOrganization.mjs +6 -0
- package/examples/api-getOrganization.ts +6 -0
- package/examples/api-getPackage.mjs +6 -0
- package/examples/api-getPackage.ts +6 -0
- package/examples/api-getPackageItem.mjs +7 -0
- package/examples/api-getPackageItem.ts +7 -0
- package/examples/api-getPaymentIntent.mjs +6 -0
- package/examples/api-getPaymentIntent.ts +6 -0
- package/examples/api-getPaymentLink.mjs +6 -0
- package/examples/api-getPaymentLink.ts +6 -0
- package/examples/api-getPaymentLinkPublic.mjs +6 -0
- package/examples/api-getPaymentLinkPublic.ts +6 -0
- package/examples/api-getPaymentMethod.mjs +6 -0
- package/examples/api-getPaymentMethod.ts +6 -0
- package/examples/api-getPaymentMethodDomain.mjs +6 -0
- package/examples/api-getPaymentMethodDomain.ts +6 -0
- package/examples/api-getPaymentVolumeTimeseries.mjs +6 -0
- package/examples/api-getPaymentVolumeTimeseries.ts +6 -0
- package/examples/api-getPayout.mjs +6 -0
- package/examples/api-getPayout.ts +6 -0
- package/examples/api-getPayoutDestination.mjs +6 -0
- package/examples/api-getPayoutDestination.ts +6 -0
- package/examples/api-getPayoutSettings.mjs +4 -0
- package/examples/api-getPayoutSettings.ts +4 -0
- package/examples/api-getProduct.mjs +6 -0
- package/examples/api-getProduct.ts +6 -0
- package/examples/api-getProductOption.mjs +7 -0
- package/examples/api-getProductOption.ts +7 -0
- package/examples/api-getProductVariant.mjs +7 -0
- package/examples/api-getProductVariant.ts +7 -0
- package/examples/api-getPromotion.mjs +6 -0
- package/examples/api-getPromotion.ts +6 -0
- package/examples/api-getRefund.mjs +6 -0
- package/examples/api-getRefund.ts +6 -0
- package/examples/api-getReport.mjs +6 -0
- package/examples/api-getReport.ts +6 -0
- package/examples/api-getReportDownload.mjs +6 -0
- package/examples/api-getReportDownload.ts +6 -0
- package/examples/api-getResourceTimeline.mjs +6 -0
- package/examples/api-getResourceTimeline.ts +6 -0
- package/examples/api-getReturn.mjs +6 -0
- package/examples/api-getReturn.ts +6 -0
- package/examples/api-getReturnDisposition.mjs +6 -0
- package/examples/api-getReturnDisposition.ts +6 -0
- package/examples/api-getReturnInspection.mjs +6 -0
- package/examples/api-getReturnInspection.ts +6 -0
- package/examples/api-getReturnLineItem.mjs +7 -0
- package/examples/api-getReturnLineItem.ts +7 -0
- package/examples/api-getReturnPolicy.mjs +6 -0
- package/examples/api-getReturnPolicy.ts +6 -0
- package/examples/api-getReturnPolicyRevision.mjs +7 -0
- package/examples/api-getReturnPolicyRevision.ts +7 -0
- package/examples/api-getReturnReason.mjs +6 -0
- package/examples/api-getReturnReason.ts +6 -0
- package/examples/api-getReturnReceipt.mjs +6 -0
- package/examples/api-getReturnReceipt.ts +6 -0
- package/examples/api-getReturnResolution.mjs +6 -0
- package/examples/api-getReturnResolution.ts +6 -0
- package/examples/api-getReview.mjs +6 -0
- package/examples/api-getReview.ts +6 -0
- package/examples/api-getRiskList.mjs +6 -0
- package/examples/api-getRiskList.ts +6 -0
- package/examples/api-getRiskListItem.mjs +7 -0
- package/examples/api-getRiskListItem.ts +7 -0
- package/examples/api-getRiskRule.mjs +6 -0
- package/examples/api-getRiskRule.ts +6 -0
- package/examples/api-getRiskRuleAttributeRegistry.mjs +4 -0
- package/examples/api-getRiskRuleAttributeRegistry.ts +4 -0
- package/examples/api-getSettings.mjs +4 -0
- package/examples/api-getSettings.ts +4 -0
- package/examples/api-getShipment.mjs +6 -0
- package/examples/api-getShipment.ts +6 -0
- package/examples/api-getSubscription.mjs +6 -0
- package/examples/api-getSubscription.ts +6 -0
- package/examples/api-getSubscriptionAnalytics.mjs +6 -0
- package/examples/api-getSubscriptionAnalytics.ts +6 -0
- package/examples/api-getSubscriptionPaymentRetry.mjs +7 -0
- package/examples/api-getSubscriptionPaymentRetry.ts +7 -0
- package/examples/api-getSubscriptionPlan.mjs +6 -0
- package/examples/api-getSubscriptionPlan.ts +6 -0
- package/examples/api-getWebhookDelivery.mjs +6 -0
- package/examples/api-getWebhookDelivery.ts +6 -0
- package/examples/api-getWebhookEndpoint.mjs +6 -0
- package/examples/api-getWebhookEndpoint.ts +6 -0
- package/examples/api-getWebhookEvent.mjs +6 -0
- package/examples/api-getWebhookEvent.ts +6 -0
- package/examples/api-grantOrganizationMembership.mjs +10 -0
- package/examples/api-grantOrganizationMembership.ts +10 -0
- package/examples/api-issueCreditNote.mjs +6 -0
- package/examples/api-issueCreditNote.ts +6 -0
- package/examples/api-issueDeveloperSandboxTestKey.mjs +9 -0
- package/examples/api-issueDeveloperSandboxTestKey.ts +9 -0
- package/examples/api-issueInvoice.mjs +7 -0
- package/examples/api-issueInvoice.ts +7 -0
- package/examples/api-listAPIKeys.mjs +4 -0
- package/examples/api-listAPIKeys.ts +4 -0
- package/examples/api-listBalanceTransactions.mjs +4 -0
- package/examples/api-listBalanceTransactions.ts +4 -0
- package/examples/api-listBalances.mjs +4 -0
- package/examples/api-listBalances.ts +4 -0
- package/examples/api-listBundleComponents.mjs +6 -0
- package/examples/api-listBundleComponents.ts +6 -0
- package/examples/api-listBundles.mjs +4 -0
- package/examples/api-listBundles.ts +4 -0
- package/examples/api-listCapabilities.mjs +4 -0
- package/examples/api-listCapabilities.ts +4 -0
- package/examples/api-listCategories.mjs +4 -0
- package/examples/api-listCategories.ts +4 -0
- package/examples/api-listCheckoutSessions.mjs +4 -0
- package/examples/api-listCheckoutSessions.ts +4 -0
- package/examples/api-listCreditNoteAllocations.mjs +6 -0
- package/examples/api-listCreditNoteAllocations.ts +6 -0
- package/examples/api-listCreditNotes.mjs +4 -0
- package/examples/api-listCreditNotes.ts +4 -0
- package/examples/api-listCurrentAPIKeyRequestLogs.mjs +4 -0
- package/examples/api-listCurrentAPIKeyRequestLogs.ts +4 -0
- package/examples/api-listCustomerAddresses.mjs +6 -0
- package/examples/api-listCustomerAddresses.ts +6 -0
- package/examples/api-listCustomerDeletionRequests.mjs +4 -0
- package/examples/api-listCustomerDeletionRequests.ts +4 -0
- package/examples/api-listCustomers.mjs +4 -0
- package/examples/api-listCustomers.ts +4 -0
- package/examples/api-listDeliveryLocationSets.mjs +4 -0
- package/examples/api-listDeliveryLocationSets.ts +4 -0
- package/examples/api-listDeliveryMethods.mjs +4 -0
- package/examples/api-listDeliveryMethods.ts +4 -0
- package/examples/api-listDeliveryProfiles.mjs +4 -0
- package/examples/api-listDeliveryProfiles.ts +4 -0
- package/examples/api-listDeliveryQuotes.mjs +4 -0
- package/examples/api-listDeliveryQuotes.ts +4 -0
- package/examples/api-listDeliveryRateCallbacks.mjs +4 -0
- package/examples/api-listDeliveryRateCallbacks.ts +4 -0
- package/examples/api-listDeliveryZones.mjs +4 -0
- package/examples/api-listDeliveryZones.ts +4 -0
- package/examples/api-listDeveloperPartnerAppInstalls.mjs +6 -0
- package/examples/api-listDeveloperPartnerAppInstalls.ts +6 -0
- package/examples/api-listDeveloperPartnerApps.mjs +4 -0
- package/examples/api-listDeveloperPartnerApps.ts +4 -0
- package/examples/api-listDeveloperSandboxes.mjs +4 -0
- package/examples/api-listDeveloperSandboxes.ts +4 -0
- package/examples/api-listDevices.mjs +4 -0
- package/examples/api-listDevices.ts +4 -0
- package/examples/api-listDisputes.mjs +4 -0
- package/examples/api-listDisputes.ts +4 -0
- package/examples/api-listFeedbackReports.mjs +4 -0
- package/examples/api-listFeedbackReports.ts +4 -0
- package/examples/api-listFraudWarnings.mjs +4 -0
- package/examples/api-listFraudWarnings.ts +4 -0
- package/examples/api-listFulfillmentEvents.mjs +4 -0
- package/examples/api-listFulfillmentEvents.ts +4 -0
- package/examples/api-listFulfillmentNotifications.mjs +4 -0
- package/examples/api-listFulfillmentNotifications.ts +4 -0
- package/examples/api-listFulfillments.mjs +4 -0
- package/examples/api-listFulfillments.ts +4 -0
- package/examples/api-listInventoryAdjustments.mjs +4 -0
- package/examples/api-listInventoryAdjustments.ts +4 -0
- package/examples/api-listInventoryAllocationPolicies.mjs +4 -0
- package/examples/api-listInventoryAllocationPolicies.ts +4 -0
- package/examples/api-listInventoryCounts.mjs +4 -0
- package/examples/api-listInventoryCounts.ts +4 -0
- package/examples/api-listInventoryItems.mjs +4 -0
- package/examples/api-listInventoryItems.ts +4 -0
- package/examples/api-listInventoryLevels.mjs +4 -0
- package/examples/api-listInventoryLevels.ts +4 -0
- package/examples/api-listInventoryMovements.mjs +4 -0
- package/examples/api-listInventoryMovements.ts +4 -0
- package/examples/api-listInventoryReceipts.mjs +4 -0
- package/examples/api-listInventoryReceipts.ts +4 -0
- package/examples/api-listInventoryReservations.mjs +4 -0
- package/examples/api-listInventoryReservations.ts +4 -0
- package/examples/api-listInventoryTransfers.mjs +4 -0
- package/examples/api-listInventoryTransfers.ts +4 -0
- package/examples/api-listInvoiceDeliveryAttempts.mjs +6 -0
- package/examples/api-listInvoiceDeliveryAttempts.ts +6 -0
- package/examples/api-listInvoiceEvents.mjs +6 -0
- package/examples/api-listInvoiceEvents.ts +6 -0
- package/examples/api-listInvoicePaymentAttempts.mjs +6 -0
- package/examples/api-listInvoicePaymentAttempts.ts +6 -0
- package/examples/api-listInvoicePaymentTerms.mjs +4 -0
- package/examples/api-listInvoicePaymentTerms.ts +4 -0
- package/examples/api-listInvoices.mjs +4 -0
- package/examples/api-listInvoices.ts +4 -0
- package/examples/api-listLocations.mjs +4 -0
- package/examples/api-listLocations.ts +4 -0
- package/examples/api-listMeAddresses.mjs +4 -0
- package/examples/api-listMeAddresses.ts +4 -0
- package/examples/api-listMeCreditNotes.mjs +6 -0
- package/examples/api-listMeCreditNotes.ts +6 -0
- package/examples/api-listMeFulfillments.mjs +4 -0
- package/examples/api-listMeFulfillments.ts +4 -0
- package/examples/api-listMeInvoices.mjs +4 -0
- package/examples/api-listMeInvoices.ts +4 -0
- package/examples/api-listMeOrderActivities.mjs +6 -0
- package/examples/api-listMeOrderActivities.ts +6 -0
- package/examples/api-listMeOrders.mjs +4 -0
- package/examples/api-listMeOrders.ts +4 -0
- package/examples/api-listMePackages.mjs +4 -0
- package/examples/api-listMePackages.ts +4 -0
- package/examples/api-listMePaymentMethods.mjs +4 -0
- package/examples/api-listMePaymentMethods.ts +4 -0
- package/examples/api-listMePayments.mjs +4 -0
- package/examples/api-listMePayments.ts +4 -0
- package/examples/api-listMeRefunds.mjs +4 -0
- package/examples/api-listMeRefunds.ts +4 -0
- package/examples/api-listMeReturns.mjs +4 -0
- package/examples/api-listMeReturns.ts +4 -0
- package/examples/api-listMeShipments.mjs +4 -0
- package/examples/api-listMeShipments.ts +4 -0
- package/examples/api-listMeSubscriptions.mjs +4 -0
- package/examples/api-listMeSubscriptions.ts +4 -0
- package/examples/api-listMerchantBillingBalances.mjs +4 -0
- package/examples/api-listMerchantBillingBalances.ts +4 -0
- package/examples/api-listMerchantSubscriptionInvoices.mjs +4 -0
- package/examples/api-listMerchantSubscriptionInvoices.ts +4 -0
- package/examples/api-listModifierGroups.mjs +4 -0
- package/examples/api-listModifierGroups.ts +4 -0
- package/examples/api-listModifierSets.mjs +4 -0
- package/examples/api-listModifierSets.ts +4 -0
- package/examples/api-listOrderActivities.mjs +6 -0
- package/examples/api-listOrderActivities.ts +6 -0
- package/examples/api-listOrderPaymentAttempts.mjs +6 -0
- package/examples/api-listOrderPaymentAttempts.ts +6 -0
- package/examples/api-listOrders.mjs +4 -0
- package/examples/api-listOrders.ts +4 -0
- package/examples/api-listOrganizationMemberships.mjs +6 -0
- package/examples/api-listOrganizationMemberships.ts +6 -0
- package/examples/api-listOrganizations.mjs +4 -0
- package/examples/api-listOrganizations.ts +4 -0
- package/examples/api-listPackageItems.mjs +6 -0
- package/examples/api-listPackageItems.ts +6 -0
- package/examples/api-listPackages.mjs +4 -0
- package/examples/api-listPackages.ts +4 -0
- package/examples/api-listPaymentIntents.mjs +4 -0
- package/examples/api-listPaymentIntents.ts +4 -0
- package/examples/api-listPaymentLinks.mjs +4 -0
- package/examples/api-listPaymentLinks.ts +4 -0
- package/examples/api-listPaymentMethodDomains.mjs +4 -0
- package/examples/api-listPaymentMethodDomains.ts +4 -0
- package/examples/api-listPaymentMethods.mjs +4 -0
- package/examples/api-listPaymentMethods.ts +4 -0
- package/examples/api-listPayoutDestinations.mjs +4 -0
- package/examples/api-listPayoutDestinations.ts +4 -0
- package/examples/api-listPayoutEntries.mjs +6 -0
- package/examples/api-listPayoutEntries.ts +6 -0
- package/examples/api-listPayouts.mjs +4 -0
- package/examples/api-listPayouts.ts +4 -0
- package/examples/api-listProductOptions.mjs +6 -0
- package/examples/api-listProductOptions.ts +6 -0
- package/examples/api-listProductVariants.mjs +6 -0
- package/examples/api-listProductVariants.ts +6 -0
- package/examples/api-listProducts.mjs +4 -0
- package/examples/api-listProducts.ts +4 -0
- package/examples/api-listPromotionCodes.mjs +6 -0
- package/examples/api-listPromotionCodes.ts +6 -0
- package/examples/api-listPromotions.mjs +4 -0
- package/examples/api-listPromotions.ts +4 -0
- package/examples/api-listRefunds.mjs +4 -0
- package/examples/api-listRefunds.ts +4 -0
- package/examples/api-listReports.mjs +4 -0
- package/examples/api-listReports.ts +4 -0
- package/examples/api-listReturnDispositions.mjs +4 -0
- package/examples/api-listReturnDispositions.ts +4 -0
- package/examples/api-listReturnInspections.mjs +4 -0
- package/examples/api-listReturnInspections.ts +4 -0
- package/examples/api-listReturnLineItems.mjs +6 -0
- package/examples/api-listReturnLineItems.ts +6 -0
- package/examples/api-listReturnPolicies.mjs +4 -0
- package/examples/api-listReturnPolicies.ts +4 -0
- package/examples/api-listReturnPolicyRevisions.mjs +6 -0
- package/examples/api-listReturnPolicyRevisions.ts +6 -0
- package/examples/api-listReturnReasons.mjs +4 -0
- package/examples/api-listReturnReasons.ts +4 -0
- package/examples/api-listReturnReceipts.mjs +4 -0
- package/examples/api-listReturnReceipts.ts +4 -0
- package/examples/api-listReturnResolutions.mjs +4 -0
- package/examples/api-listReturnResolutions.ts +4 -0
- package/examples/api-listReturns.mjs +4 -0
- package/examples/api-listReturns.ts +4 -0
- package/examples/api-listReviews.mjs +4 -0
- package/examples/api-listReviews.ts +4 -0
- package/examples/api-listRiskListItems.mjs +6 -0
- package/examples/api-listRiskListItems.ts +6 -0
- package/examples/api-listRiskLists.mjs +4 -0
- package/examples/api-listRiskLists.ts +4 -0
- package/examples/api-listRiskRules.mjs +4 -0
- package/examples/api-listRiskRules.ts +4 -0
- package/examples/api-listShipments.mjs +4 -0
- package/examples/api-listShipments.ts +4 -0
- package/examples/api-listSubscriptionPaymentRetries.mjs +6 -0
- package/examples/api-listSubscriptionPaymentRetries.ts +6 -0
- package/examples/api-listSubscriptionPlans.mjs +4 -0
- package/examples/api-listSubscriptionPlans.ts +4 -0
- package/examples/api-listSubscriptions.mjs +4 -0
- package/examples/api-listSubscriptions.ts +4 -0
- package/examples/api-listWebhookDeliveries.mjs +6 -0
- package/examples/api-listWebhookDeliveries.ts +6 -0
- package/examples/api-listWebhookDeliveryAttempts.mjs +6 -0
- package/examples/api-listWebhookDeliveryAttempts.ts +6 -0
- package/examples/api-listWebhookEndpoints.mjs +4 -0
- package/examples/api-listWebhookEndpoints.ts +4 -0
- package/examples/api-listWebhookEventTypes.mjs +4 -0
- package/examples/api-listWebhookEventTypes.ts +4 -0
- package/examples/api-listWebhookEvents.mjs +4 -0
- package/examples/api-listWebhookEvents.ts +4 -0
- package/examples/api-markInvoiceUncollectible.mjs +6 -0
- package/examples/api-markInvoiceUncollectible.ts +6 -0
- package/examples/api-pauseInvoiceReminders.mjs +6 -0
- package/examples/api-pauseInvoiceReminders.ts +6 -0
- package/examples/api-pauseMeSubscription.mjs +7 -0
- package/examples/api-pauseMeSubscription.ts +7 -0
- package/examples/api-pauseSubscription.mjs +7 -0
- package/examples/api-pauseSubscription.ts +7 -0
- package/examples/api-payOrder.mjs +9 -0
- package/examples/api-payOrder.ts +9 -0
- package/examples/api-previewOrderDiscounts.mjs +6 -0
- package/examples/api-previewOrderDiscounts.ts +6 -0
- package/examples/api-previewPartnerInstallAuthorization.mjs +8 -0
- package/examples/api-previewPartnerInstallAuthorization.ts +8 -0
- package/examples/api-processExistingReturn.mjs +14 -0
- package/examples/api-processExistingReturn.ts +14 -0
- package/examples/api-publishLocationGeography.mjs +11 -0
- package/examples/api-publishLocationGeography.ts +11 -0
- package/examples/api-publishReturnPolicyRevision.mjs +16 -0
- package/examples/api-publishReturnPolicyRevision.ts +16 -0
- package/examples/api-queryCheckoutSessionPickupAvailability.mjs +7 -0
- package/examples/api-queryCheckoutSessionPickupAvailability.ts +7 -0
- package/examples/api-reactivateMeSubscription.mjs +6 -0
- package/examples/api-reactivateMeSubscription.ts +6 -0
- package/examples/api-reactivateSubscription.mjs +6 -0
- package/examples/api-reactivateSubscription.ts +6 -0
- package/examples/api-recordManualInvoicePayment.mjs +12 -0
- package/examples/api-recordManualInvoicePayment.ts +12 -0
- package/examples/api-refreshCustomerSession.mjs +9 -0
- package/examples/api-refreshCustomerSession.ts +9 -0
- package/examples/api-refreshMerchantAccountSession.mjs +8 -0
- package/examples/api-refreshMerchantAccountSession.ts +8 -0
- package/examples/api-regenerateInvoicePublicLink.mjs +6 -0
- package/examples/api-regenerateInvoicePublicLink.ts +6 -0
- package/examples/api-releaseInventoryReservation.mjs +10 -0
- package/examples/api-releaseInventoryReservation.ts +10 -0
- package/examples/api-releaseReturnResolution.mjs +9 -0
- package/examples/api-releaseReturnResolution.ts +9 -0
- package/examples/api-removeMePaymentMethod.mjs +6 -0
- package/examples/api-removeMePaymentMethod.ts +6 -0
- package/examples/api-removeOrderDiscounts.mjs +9 -0
- package/examples/api-removeOrderDiscounts.ts +9 -0
- package/examples/api-removePaymentMethod.mjs +6 -0
- package/examples/api-removePaymentMethod.ts +6 -0
- package/examples/api-reopenReturn.mjs +9 -0
- package/examples/api-reopenReturn.ts +9 -0
- package/examples/api-repriceOrderDiscounts.mjs +6 -0
- package/examples/api-repriceOrderDiscounts.ts +6 -0
- package/examples/api-resendMeOrderReceipt.mjs +6 -0
- package/examples/api-resendMeOrderReceipt.ts +6 -0
- package/examples/api-resendOrderReceipt.mjs +6 -0
- package/examples/api-resendOrderReceipt.ts +6 -0
- package/examples/api-resendWebhookDelivery.mjs +6 -0
- package/examples/api-resendWebhookDelivery.ts +6 -0
- package/examples/api-resetDemoSession.mjs +6 -0
- package/examples/api-resetDemoSession.ts +6 -0
- package/examples/api-resetDeveloperSandbox.mjs +6 -0
- package/examples/api-resetDeveloperSandbox.ts +6 -0
- package/examples/api-resolveCustomerDeletionRequest.mjs +9 -0
- package/examples/api-resolveCustomerDeletionRequest.ts +9 -0
- package/examples/api-resolveOrderInventoryException.mjs +6 -0
- package/examples/api-resolveOrderInventoryException.ts +6 -0
- package/examples/api-resolvePaymentLink.mjs +10 -0
- package/examples/api-resolvePaymentLink.ts +10 -0
- package/examples/api-resolvePromotionCode.mjs +6 -0
- package/examples/api-resolvePromotionCode.ts +6 -0
- package/examples/api-resumeInvoiceReminders.mjs +6 -0
- package/examples/api-resumeInvoiceReminders.ts +6 -0
- package/examples/api-resumeMeSubscription.mjs +6 -0
- package/examples/api-resumeMeSubscription.ts +6 -0
- package/examples/api-resumeSubscription.mjs +6 -0
- package/examples/api-resumeSubscription.ts +6 -0
- package/examples/api-retryReturnDisposition.mjs +9 -0
- package/examples/api-retryReturnDisposition.ts +9 -0
- package/examples/api-retryReturnResolution.mjs +9 -0
- package/examples/api-retryReturnResolution.ts +9 -0
- package/examples/api-reverseCreditNoteAllocation.mjs +7 -0
- package/examples/api-reverseCreditNoteAllocation.ts +7 -0
- package/examples/api-reverseManualInvoicePayment.mjs +12 -0
- package/examples/api-reverseManualInvoicePayment.ts +12 -0
- package/examples/api-revokeAPIKey.mjs +6 -0
- package/examples/api-revokeAPIKey.ts +6 -0
- package/examples/api-revokeCustomerSession.mjs +6 -0
- package/examples/api-revokeCustomerSession.ts +6 -0
- package/examples/api-revokeCustomerSessions.mjs +6 -0
- package/examples/api-revokeCustomerSessions.ts +6 -0
- package/examples/api-revokeDeliveryDependency.mjs +13 -0
- package/examples/api-revokeDeliveryDependency.ts +13 -0
- package/examples/api-revokeDeveloperPartnerAppInstall.mjs +7 -0
- package/examples/api-revokeDeveloperPartnerAppInstall.ts +7 -0
- package/examples/api-revokeDeveloperPartnerEnvironmentGrant.mjs +8 -0
- package/examples/api-revokeDeveloperPartnerEnvironmentGrant.ts +8 -0
- package/examples/api-revokeOrganizationMembership.mjs +7 -0
- package/examples/api-revokeOrganizationMembership.ts +7 -0
- package/examples/api-rotateDeliveryRateCallbackSigningKey.mjs +6 -0
- package/examples/api-rotateDeliveryRateCallbackSigningKey.ts +6 -0
- package/examples/api-rotateDeveloperPartnerAppSecret.mjs +6 -0
- package/examples/api-rotateDeveloperPartnerAppSecret.ts +6 -0
- package/examples/api-rotateWebhookSecret.mjs +6 -0
- package/examples/api-rotateWebhookSecret.ts +6 -0
- package/examples/api-saveMePaymentMethod.mjs +6 -0
- package/examples/api-saveMePaymentMethod.ts +6 -0
- package/examples/api-savePaymentMethod.mjs +8 -0
- package/examples/api-savePaymentMethod.ts +8 -0
- package/examples/api-sendInvoiceReminder.mjs +6 -0
- package/examples/api-sendInvoiceReminder.ts +6 -0
- package/examples/api-setDefaultCustomerAddress.mjs +10 -0
- package/examples/api-setDefaultCustomerAddress.ts +10 -0
- package/examples/api-setDefaultMeAddress.mjs +9 -0
- package/examples/api-setDefaultMeAddress.ts +9 -0
- package/examples/api-setDefaultMePaymentMethod.mjs +6 -0
- package/examples/api-setDefaultMePaymentMethod.ts +6 -0
- package/examples/api-setDefaultPaymentMethod.mjs +6 -0
- package/examples/api-setDefaultPaymentMethod.ts +6 -0
- package/examples/api-skipSubscriptionCycle.mjs +7 -0
- package/examples/api-skipSubscriptionCycle.ts +7 -0
- package/examples/api-startOnboarding.mjs +10 -0
- package/examples/api-startOnboarding.ts +10 -0
- package/examples/api-streamWebhookEvents.mjs +8 -0
- package/examples/api-streamWebhookEvents.ts +8 -0
- package/examples/api-transferOrganizationOwnership.mjs +9 -0
- package/examples/api-transferOrganizationOwnership.ts +9 -0
- package/examples/api-transitionFulfillment.mjs +9 -0
- package/examples/api-transitionFulfillment.ts +9 -0
- package/examples/api-transitionInventoryTransfer.mjs +17 -0
- package/examples/api-transitionInventoryTransfer.ts +17 -0
- package/examples/api-transitionPackage.mjs +9 -0
- package/examples/api-transitionPackage.ts +9 -0
- package/examples/api-updateAPIKey.mjs +7 -0
- package/examples/api-updateAPIKey.ts +7 -0
- package/examples/api-updateBundle.mjs +7 -0
- package/examples/api-updateBundle.ts +7 -0
- package/examples/api-updateCategory.mjs +7 -0
- package/examples/api-updateCategory.ts +7 -0
- package/examples/api-updateCheckoutSession.mjs +7 -0
- package/examples/api-updateCheckoutSession.ts +7 -0
- package/examples/api-updateCreditNote.mjs +7 -0
- package/examples/api-updateCreditNote.ts +7 -0
- package/examples/api-updateCustomer.mjs +7 -0
- package/examples/api-updateCustomer.ts +7 -0
- package/examples/api-updateCustomerAddress.mjs +8 -0
- package/examples/api-updateCustomerAddress.ts +8 -0
- package/examples/api-updateDeliveryLocationSet.mjs +9 -0
- package/examples/api-updateDeliveryLocationSet.ts +9 -0
- package/examples/api-updateDeliveryMethod.mjs +9 -0
- package/examples/api-updateDeliveryMethod.ts +9 -0
- package/examples/api-updateDeliveryProfile.mjs +9 -0
- package/examples/api-updateDeliveryProfile.ts +9 -0
- package/examples/api-updateDeliveryRateCallback.mjs +9 -0
- package/examples/api-updateDeliveryRateCallback.ts +9 -0
- package/examples/api-updateDeliveryZone.mjs +9 -0
- package/examples/api-updateDeliveryZone.ts +9 -0
- package/examples/api-updateDeveloperPartnerApp.mjs +7 -0
- package/examples/api-updateDeveloperPartnerApp.ts +7 -0
- package/examples/api-updateDevice.mjs +7 -0
- package/examples/api-updateDevice.ts +7 -0
- package/examples/api-updateFulfillment.mjs +7 -0
- package/examples/api-updateFulfillment.ts +7 -0
- package/examples/api-updateInventoryAllocationPolicy.mjs +7 -0
- package/examples/api-updateInventoryAllocationPolicy.ts +7 -0
- package/examples/api-updateInventoryCount.mjs +22 -0
- package/examples/api-updateInventoryCount.ts +22 -0
- package/examples/api-updateInventoryItem.mjs +7 -0
- package/examples/api-updateInventoryItem.ts +7 -0
- package/examples/api-updateInventoryLevel.mjs +10 -0
- package/examples/api-updateInventoryLevel.ts +10 -0
- package/examples/api-updateInventoryTransfer.mjs +7 -0
- package/examples/api-updateInventoryTransfer.ts +7 -0
- package/examples/api-updateInvoice.mjs +7 -0
- package/examples/api-updateInvoice.ts +7 -0
- package/examples/api-updateInvoicePaymentTerm.mjs +11 -0
- package/examples/api-updateInvoicePaymentTerm.ts +11 -0
- package/examples/api-updateLocation.mjs +7 -0
- package/examples/api-updateLocation.ts +7 -0
- package/examples/api-updateLocationInventory.mjs +9 -0
- package/examples/api-updateLocationInventory.ts +9 -0
- package/examples/api-updateMe.mjs +6 -0
- package/examples/api-updateMe.ts +6 -0
- package/examples/api-updateMeAddress.mjs +7 -0
- package/examples/api-updateMeAddress.ts +7 -0
- package/examples/api-updateMerchant.mjs +7 -0
- package/examples/api-updateMerchant.ts +7 -0
- package/examples/api-updateModifierGroup.mjs +7 -0
- package/examples/api-updateModifierGroup.ts +7 -0
- package/examples/api-updateModifierSet.mjs +7 -0
- package/examples/api-updateModifierSet.ts +7 -0
- package/examples/api-updateOrder.mjs +9 -0
- package/examples/api-updateOrder.ts +9 -0
- package/examples/api-updateOrderCharge.mjs +8 -0
- package/examples/api-updateOrderCharge.ts +8 -0
- package/examples/api-updateOrderLineItem.mjs +8 -0
- package/examples/api-updateOrderLineItem.ts +8 -0
- package/examples/api-updateOrganization.mjs +7 -0
- package/examples/api-updateOrganization.ts +7 -0
- package/examples/api-updatePackage.mjs +7 -0
- package/examples/api-updatePackage.ts +7 -0
- package/examples/api-updatePackageItem.mjs +8 -0
- package/examples/api-updatePackageItem.ts +8 -0
- package/examples/api-updatePaymentIntent.mjs +7 -0
- package/examples/api-updatePaymentIntent.ts +7 -0
- package/examples/api-updatePaymentLink.mjs +7 -0
- package/examples/api-updatePaymentLink.ts +7 -0
- package/examples/api-updatePaymentMethodDomain.mjs +9 -0
- package/examples/api-updatePaymentMethodDomain.ts +9 -0
- package/examples/api-updatePayoutDestination.mjs +7 -0
- package/examples/api-updatePayoutDestination.ts +7 -0
- package/examples/api-updatePayoutSettings.mjs +6 -0
- package/examples/api-updatePayoutSettings.ts +6 -0
- package/examples/api-updateProduct.mjs +7 -0
- package/examples/api-updateProduct.ts +7 -0
- package/examples/api-updateProductVariant.mjs +8 -0
- package/examples/api-updateProductVariant.ts +8 -0
- package/examples/api-updatePromotion.mjs +7 -0
- package/examples/api-updatePromotion.ts +7 -0
- package/examples/api-updatePromotionCode.mjs +8 -0
- package/examples/api-updatePromotionCode.ts +8 -0
- package/examples/api-updateRefund.mjs +7 -0
- package/examples/api-updateRefund.ts +7 -0
- package/examples/api-updateReturn.mjs +7 -0
- package/examples/api-updateReturn.ts +7 -0
- package/examples/api-updateReturnLineItem.mjs +8 -0
- package/examples/api-updateReturnLineItem.ts +8 -0
- package/examples/api-updateReturnPolicy.mjs +7 -0
- package/examples/api-updateReturnPolicy.ts +7 -0
- package/examples/api-updateReturnReason.mjs +7 -0
- package/examples/api-updateReturnReason.ts +7 -0
- package/examples/api-updateReturnResolution.mjs +7 -0
- package/examples/api-updateReturnResolution.ts +7 -0
- package/examples/api-updateRiskList.mjs +9 -0
- package/examples/api-updateRiskList.ts +9 -0
- package/examples/api-updateRiskRule.mjs +9 -0
- package/examples/api-updateRiskRule.ts +9 -0
- package/examples/api-updateSettings.mjs +6 -0
- package/examples/api-updateSettings.ts +6 -0
- package/examples/api-updateShipment.mjs +7 -0
- package/examples/api-updateShipment.ts +7 -0
- package/examples/api-updateSubscription.mjs +7 -0
- package/examples/api-updateSubscription.ts +7 -0
- package/examples/api-updateSubscriptionBillingSchedule.mjs +11 -0
- package/examples/api-updateSubscriptionBillingSchedule.ts +11 -0
- package/examples/api-updateSubscriptionPlan.mjs +7 -0
- package/examples/api-updateSubscriptionPlan.ts +7 -0
- package/examples/api-updateWebhookEndpoint.mjs +7 -0
- package/examples/api-updateWebhookEndpoint.ts +7 -0
- package/examples/api-verifyOnboardingEmail.mjs +9 -0
- package/examples/api-verifyOnboardingEmail.ts +9 -0
- package/examples/api-verifyReturnReceiptLineItem.mjs +11 -0
- package/examples/api-verifyReturnReceiptLineItem.ts +11 -0
- package/examples/api-voidCreditNote.mjs +6 -0
- package/examples/api-voidCreditNote.ts +6 -0
- package/examples/api-voidInvoice.mjs +6 -0
- package/examples/api-voidInvoice.ts +6 -0
- package/examples/api-voidPackage.mjs +6 -0
- package/examples/api-voidPackage.ts +6 -0
- package/examples/api-voidShipment.mjs +6 -0
- package/examples/api-voidShipment.ts +6 -0
- package/examples/api-waiveReturnLineInspection.mjs +10 -0
- package/examples/api-waiveReturnLineInspection.ts +10 -0
- package/examples/webhook-inbox.mjs +82 -0
- package/index.d.ts +9372 -0
- package/index.js +544284 -0
- package/package.json +45 -0
- package/runtime-plan.d.ts +50 -0
- package/runtime-plan.js +187 -0
- package/runtime.d.ts +192 -0
- 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).
|