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