@gr4vy/sdk 2.0.26 → 2.0.28
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 +2 -0
- package/funcs/accountUpdaterJobsCreate.d.ts.map +1 -1
- package/funcs/accountUpdaterJobsCreate.js +2 -16
- package/funcs/accountUpdaterJobsCreate.js.map +1 -1
- package/funcs/auditLogsList.d.ts.map +1 -1
- package/funcs/auditLogsList.js +2 -16
- package/funcs/auditLogsList.js.map +1 -1
- package/funcs/buyersCreate.d.ts.map +1 -1
- package/funcs/buyersCreate.js +2 -16
- package/funcs/buyersCreate.js.map +1 -1
- package/funcs/buyersDelete.d.ts.map +1 -1
- package/funcs/buyersDelete.js +2 -16
- package/funcs/buyersDelete.js.map +1 -1
- package/funcs/buyersGet.d.ts.map +1 -1
- package/funcs/buyersGet.js +2 -16
- package/funcs/buyersGet.js.map +1 -1
- package/funcs/buyersGiftCardsList.d.ts.map +1 -1
- package/funcs/buyersGiftCardsList.js +2 -16
- package/funcs/buyersGiftCardsList.js.map +1 -1
- package/funcs/buyersList.d.ts.map +1 -1
- package/funcs/buyersList.js +2 -16
- package/funcs/buyersList.js.map +1 -1
- package/funcs/buyersPaymentMethodsList.d.ts.map +1 -1
- package/funcs/buyersPaymentMethodsList.js +2 -16
- package/funcs/buyersPaymentMethodsList.js.map +1 -1
- package/funcs/buyersShippingDetailsCreate.d.ts.map +1 -1
- package/funcs/buyersShippingDetailsCreate.js +2 -16
- package/funcs/buyersShippingDetailsCreate.js.map +1 -1
- package/funcs/buyersShippingDetailsDelete.d.ts.map +1 -1
- package/funcs/buyersShippingDetailsDelete.js +2 -16
- package/funcs/buyersShippingDetailsDelete.js.map +1 -1
- package/funcs/buyersShippingDetailsGet.d.ts.map +1 -1
- package/funcs/buyersShippingDetailsGet.js +2 -16
- package/funcs/buyersShippingDetailsGet.js.map +1 -1
- package/funcs/buyersShippingDetailsList.d.ts.map +1 -1
- package/funcs/buyersShippingDetailsList.js +2 -16
- package/funcs/buyersShippingDetailsList.js.map +1 -1
- package/funcs/buyersShippingDetailsUpdate.d.ts.map +1 -1
- package/funcs/buyersShippingDetailsUpdate.js +2 -16
- package/funcs/buyersShippingDetailsUpdate.js.map +1 -1
- package/funcs/buyersUpdate.d.ts.map +1 -1
- package/funcs/buyersUpdate.js +2 -16
- package/funcs/buyersUpdate.js.map +1 -1
- package/funcs/cardSchemeDefinitionsList.d.ts.map +1 -1
- package/funcs/cardSchemeDefinitionsList.js +2 -16
- package/funcs/cardSchemeDefinitionsList.js.map +1 -1
- package/funcs/checkoutSessionsCreate.d.ts.map +1 -1
- package/funcs/checkoutSessionsCreate.js +2 -16
- package/funcs/checkoutSessionsCreate.js.map +1 -1
- package/funcs/checkoutSessionsDelete.d.ts.map +1 -1
- package/funcs/checkoutSessionsDelete.js +2 -16
- package/funcs/checkoutSessionsDelete.js.map +1 -1
- package/funcs/checkoutSessionsGet.d.ts.map +1 -1
- package/funcs/checkoutSessionsGet.js +2 -16
- package/funcs/checkoutSessionsGet.js.map +1 -1
- package/funcs/checkoutSessionsUpdate.d.ts.map +1 -1
- package/funcs/checkoutSessionsUpdate.js +2 -16
- package/funcs/checkoutSessionsUpdate.js.map +1 -1
- package/funcs/digitalWalletsCreate.d.ts.map +1 -1
- package/funcs/digitalWalletsCreate.js +2 -16
- package/funcs/digitalWalletsCreate.js.map +1 -1
- package/funcs/digitalWalletsDelete.d.ts.map +1 -1
- package/funcs/digitalWalletsDelete.js +2 -16
- package/funcs/digitalWalletsDelete.js.map +1 -1
- package/funcs/digitalWalletsDomainsCreate.d.ts.map +1 -1
- package/funcs/digitalWalletsDomainsCreate.js +2 -16
- package/funcs/digitalWalletsDomainsCreate.js.map +1 -1
- package/funcs/digitalWalletsDomainsDelete.d.ts.map +1 -1
- package/funcs/digitalWalletsDomainsDelete.js +2 -16
- package/funcs/digitalWalletsDomainsDelete.js.map +1 -1
- package/funcs/digitalWalletsGet.d.ts.map +1 -1
- package/funcs/digitalWalletsGet.js +2 -16
- package/funcs/digitalWalletsGet.js.map +1 -1
- package/funcs/digitalWalletsList.d.ts.map +1 -1
- package/funcs/digitalWalletsList.js +2 -16
- package/funcs/digitalWalletsList.js.map +1 -1
- package/funcs/digitalWalletsSessionsApplePay.d.ts.map +1 -1
- package/funcs/digitalWalletsSessionsApplePay.js +2 -16
- package/funcs/digitalWalletsSessionsApplePay.js.map +1 -1
- package/funcs/digitalWalletsSessionsClickToPay.d.ts.map +1 -1
- package/funcs/digitalWalletsSessionsClickToPay.js +2 -16
- package/funcs/digitalWalletsSessionsClickToPay.js.map +1 -1
- package/funcs/digitalWalletsSessionsGooglePay.d.ts.map +1 -1
- package/funcs/digitalWalletsSessionsGooglePay.js +2 -16
- package/funcs/digitalWalletsSessionsGooglePay.js.map +1 -1
- package/funcs/digitalWalletsUpdate.d.ts.map +1 -1
- package/funcs/digitalWalletsUpdate.js +2 -16
- package/funcs/digitalWalletsUpdate.js.map +1 -1
- package/funcs/giftCardsBalancesList.d.ts.map +1 -1
- package/funcs/giftCardsBalancesList.js +2 -16
- package/funcs/giftCardsBalancesList.js.map +1 -1
- package/funcs/giftCardsCreate.d.ts.map +1 -1
- package/funcs/giftCardsCreate.js +2 -16
- package/funcs/giftCardsCreate.js.map +1 -1
- package/funcs/giftCardsDelete.d.ts.map +1 -1
- package/funcs/giftCardsDelete.js +2 -16
- package/funcs/giftCardsDelete.js.map +1 -1
- package/funcs/giftCardsGet.d.ts.map +1 -1
- package/funcs/giftCardsGet.js +2 -16
- package/funcs/giftCardsGet.js.map +1 -1
- package/funcs/giftCardsList.d.ts.map +1 -1
- package/funcs/giftCardsList.js +2 -16
- package/funcs/giftCardsList.js.map +1 -1
- package/funcs/merchantAccountsCreate.d.ts.map +1 -1
- package/funcs/merchantAccountsCreate.js +2 -16
- package/funcs/merchantAccountsCreate.js.map +1 -1
- package/funcs/merchantAccountsGet.d.ts.map +1 -1
- package/funcs/merchantAccountsGet.js +2 -16
- package/funcs/merchantAccountsGet.js.map +1 -1
- package/funcs/merchantAccountsList.d.ts.map +1 -1
- package/funcs/merchantAccountsList.js +2 -16
- package/funcs/merchantAccountsList.js.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationCreate.d.ts.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationCreate.js +2 -16
- package/funcs/merchantAccountsThreeDsConfigurationCreate.js.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationDelete.d.ts.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationDelete.js +2 -16
- package/funcs/merchantAccountsThreeDsConfigurationDelete.js.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationList.d.ts.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationList.js +2 -16
- package/funcs/merchantAccountsThreeDsConfigurationList.js.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationUpdate.d.ts.map +1 -1
- package/funcs/merchantAccountsThreeDsConfigurationUpdate.js +2 -16
- package/funcs/merchantAccountsThreeDsConfigurationUpdate.js.map +1 -1
- package/funcs/merchantAccountsUpdate.d.ts.map +1 -1
- package/funcs/merchantAccountsUpdate.js +2 -16
- package/funcs/merchantAccountsUpdate.js.map +1 -1
- package/funcs/paymentLinksCreate.d.ts.map +1 -1
- package/funcs/paymentLinksCreate.js +2 -16
- package/funcs/paymentLinksCreate.js.map +1 -1
- package/funcs/paymentLinksExpire.d.ts.map +1 -1
- package/funcs/paymentLinksExpire.js +2 -16
- package/funcs/paymentLinksExpire.js.map +1 -1
- package/funcs/paymentLinksGet.d.ts.map +1 -1
- package/funcs/paymentLinksGet.js +2 -16
- package/funcs/paymentLinksGet.js.map +1 -1
- package/funcs/paymentLinksList.d.ts.map +1 -1
- package/funcs/paymentLinksList.js +2 -16
- package/funcs/paymentLinksList.js.map +1 -1
- package/funcs/paymentMethodsCreate.d.ts.map +1 -1
- package/funcs/paymentMethodsCreate.js +2 -16
- package/funcs/paymentMethodsCreate.js.map +1 -1
- package/funcs/paymentMethodsDelete.d.ts.map +1 -1
- package/funcs/paymentMethodsDelete.js +2 -16
- package/funcs/paymentMethodsDelete.js.map +1 -1
- package/funcs/paymentMethodsGet.d.ts.map +1 -1
- package/funcs/paymentMethodsGet.js +2 -16
- package/funcs/paymentMethodsGet.js.map +1 -1
- package/funcs/paymentMethodsList.d.ts.map +1 -1
- package/funcs/paymentMethodsList.js +2 -16
- package/funcs/paymentMethodsList.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensCreate.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensCreate.js +2 -16
- package/funcs/paymentMethodsNetworkTokensCreate.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensCryptogramCreate.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensCryptogramCreate.js +2 -16
- package/funcs/paymentMethodsNetworkTokensCryptogramCreate.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensDelete.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensDelete.js +2 -16
- package/funcs/paymentMethodsNetworkTokensDelete.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensList.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensList.js +2 -16
- package/funcs/paymentMethodsNetworkTokensList.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensResume.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensResume.js +2 -16
- package/funcs/paymentMethodsNetworkTokensResume.js.map +1 -1
- package/funcs/paymentMethodsNetworkTokensSuspend.d.ts.map +1 -1
- package/funcs/paymentMethodsNetworkTokensSuspend.js +2 -16
- package/funcs/paymentMethodsNetworkTokensSuspend.js.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensCreate.d.ts.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensCreate.js +2 -16
- package/funcs/paymentMethodsPaymentServiceTokensCreate.js.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensDelete.d.ts.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensDelete.js +2 -16
- package/funcs/paymentMethodsPaymentServiceTokensDelete.js.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensList.d.ts.map +1 -1
- package/funcs/paymentMethodsPaymentServiceTokensList.js +2 -16
- package/funcs/paymentMethodsPaymentServiceTokensList.js.map +1 -1
- package/funcs/paymentMethodsUpdate.d.ts +18 -0
- package/funcs/paymentMethodsUpdate.d.ts.map +1 -0
- package/funcs/paymentMethodsUpdate.js +131 -0
- package/funcs/paymentMethodsUpdate.js.map +1 -0
- package/funcs/paymentOptionsList.d.ts.map +1 -1
- package/funcs/paymentOptionsList.js +2 -16
- package/funcs/paymentOptionsList.js.map +1 -1
- package/funcs/paymentServiceDefinitionsGet.d.ts.map +1 -1
- package/funcs/paymentServiceDefinitionsGet.js +2 -16
- package/funcs/paymentServiceDefinitionsGet.js.map +1 -1
- package/funcs/paymentServiceDefinitionsList.d.ts.map +1 -1
- package/funcs/paymentServiceDefinitionsList.js +2 -16
- package/funcs/paymentServiceDefinitionsList.js.map +1 -1
- package/funcs/paymentServiceDefinitionsSession.d.ts.map +1 -1
- package/funcs/paymentServiceDefinitionsSession.js +2 -16
- package/funcs/paymentServiceDefinitionsSession.js.map +1 -1
- package/funcs/paymentServicesCreate.d.ts.map +1 -1
- package/funcs/paymentServicesCreate.js +2 -16
- package/funcs/paymentServicesCreate.js.map +1 -1
- package/funcs/paymentServicesDelete.d.ts.map +1 -1
- package/funcs/paymentServicesDelete.js +2 -16
- package/funcs/paymentServicesDelete.js.map +1 -1
- package/funcs/paymentServicesGet.d.ts.map +1 -1
- package/funcs/paymentServicesGet.js +2 -16
- package/funcs/paymentServicesGet.js.map +1 -1
- package/funcs/paymentServicesList.d.ts.map +1 -1
- package/funcs/paymentServicesList.js +2 -16
- package/funcs/paymentServicesList.js.map +1 -1
- package/funcs/paymentServicesSession.d.ts.map +1 -1
- package/funcs/paymentServicesSession.js +2 -16
- package/funcs/paymentServicesSession.js.map +1 -1
- package/funcs/paymentServicesUpdate.d.ts.map +1 -1
- package/funcs/paymentServicesUpdate.js +2 -16
- package/funcs/paymentServicesUpdate.js.map +1 -1
- package/funcs/paymentServicesVerify.d.ts.map +1 -1
- package/funcs/paymentServicesVerify.js +2 -16
- package/funcs/paymentServicesVerify.js.map +1 -1
- package/funcs/payoutsCreate.d.ts.map +1 -1
- package/funcs/payoutsCreate.js +2 -16
- package/funcs/payoutsCreate.js.map +1 -1
- package/funcs/payoutsGet.d.ts.map +1 -1
- package/funcs/payoutsGet.js +2 -16
- package/funcs/payoutsGet.js.map +1 -1
- package/funcs/payoutsList.d.ts.map +1 -1
- package/funcs/payoutsList.js +2 -16
- package/funcs/payoutsList.js.map +1 -1
- package/funcs/refundsGet.d.ts.map +1 -1
- package/funcs/refundsGet.js +2 -16
- package/funcs/refundsGet.js.map +1 -1
- package/funcs/reportExecutionsList.d.ts.map +1 -1
- package/funcs/reportExecutionsList.js +2 -16
- package/funcs/reportExecutionsList.js.map +1 -1
- package/funcs/reportsCreate.d.ts.map +1 -1
- package/funcs/reportsCreate.js +2 -16
- package/funcs/reportsCreate.js.map +1 -1
- package/funcs/reportsExecutionsGet.d.ts.map +1 -1
- package/funcs/reportsExecutionsGet.js +2 -16
- package/funcs/reportsExecutionsGet.js.map +1 -1
- package/funcs/reportsExecutionsList.d.ts.map +1 -1
- package/funcs/reportsExecutionsList.js +2 -16
- package/funcs/reportsExecutionsList.js.map +1 -1
- package/funcs/reportsExecutionsUrl.d.ts.map +1 -1
- package/funcs/reportsExecutionsUrl.js +2 -16
- package/funcs/reportsExecutionsUrl.js.map +1 -1
- package/funcs/reportsGet.d.ts.map +1 -1
- package/funcs/reportsGet.js +2 -16
- package/funcs/reportsGet.js.map +1 -1
- package/funcs/reportsList.d.ts.map +1 -1
- package/funcs/reportsList.js +2 -16
- package/funcs/reportsList.js.map +1 -1
- package/funcs/reportsPut.d.ts.map +1 -1
- package/funcs/reportsPut.js +2 -16
- package/funcs/reportsPut.js.map +1 -1
- package/funcs/threeDsScenariosCreate.d.ts.map +1 -1
- package/funcs/threeDsScenariosCreate.js +2 -16
- package/funcs/threeDsScenariosCreate.js.map +1 -1
- package/funcs/threeDsScenariosDelete.d.ts.map +1 -1
- package/funcs/threeDsScenariosDelete.js +2 -16
- package/funcs/threeDsScenariosDelete.js.map +1 -1
- package/funcs/threeDsScenariosList.d.ts.map +1 -1
- package/funcs/threeDsScenariosList.js +2 -16
- package/funcs/threeDsScenariosList.js.map +1 -1
- package/funcs/threeDsScenariosUpdate.d.ts.map +1 -1
- package/funcs/threeDsScenariosUpdate.js +2 -16
- package/funcs/threeDsScenariosUpdate.js.map +1 -1
- package/funcs/transactionsActionsList.d.ts.map +1 -1
- package/funcs/transactionsActionsList.js +2 -16
- package/funcs/transactionsActionsList.js.map +1 -1
- package/funcs/transactionsCancel.d.ts.map +1 -1
- package/funcs/transactionsCancel.js +2 -16
- package/funcs/transactionsCancel.js.map +1 -1
- package/funcs/transactionsCapture.d.ts.map +1 -1
- package/funcs/transactionsCapture.js +2 -16
- package/funcs/transactionsCapture.js.map +1 -1
- package/funcs/transactionsCreate.d.ts.map +1 -1
- package/funcs/transactionsCreate.js +2 -16
- package/funcs/transactionsCreate.js.map +1 -1
- package/funcs/transactionsEventsList.d.ts.map +1 -1
- package/funcs/transactionsEventsList.js +2 -16
- package/funcs/transactionsEventsList.js.map +1 -1
- package/funcs/transactionsGet.d.ts.map +1 -1
- package/funcs/transactionsGet.js +2 -16
- package/funcs/transactionsGet.js.map +1 -1
- package/funcs/transactionsList.d.ts.map +1 -1
- package/funcs/transactionsList.js +2 -16
- package/funcs/transactionsList.js.map +1 -1
- package/funcs/transactionsRefundsAllCreate.d.ts.map +1 -1
- package/funcs/transactionsRefundsAllCreate.js +2 -16
- package/funcs/transactionsRefundsAllCreate.js.map +1 -1
- package/funcs/transactionsRefundsCreate.d.ts.map +1 -1
- package/funcs/transactionsRefundsCreate.js +2 -16
- package/funcs/transactionsRefundsCreate.js.map +1 -1
- package/funcs/transactionsRefundsGet.d.ts.map +1 -1
- package/funcs/transactionsRefundsGet.js +2 -16
- package/funcs/transactionsRefundsGet.js.map +1 -1
- package/funcs/transactionsRefundsList.d.ts.map +1 -1
- package/funcs/transactionsRefundsList.js +2 -16
- package/funcs/transactionsRefundsList.js.map +1 -1
- package/funcs/transactionsSettlementsGet.d.ts.map +1 -1
- package/funcs/transactionsSettlementsGet.js +2 -16
- package/funcs/transactionsSettlementsGet.js.map +1 -1
- package/funcs/transactionsSettlementsList.d.ts.map +1 -1
- package/funcs/transactionsSettlementsList.js +2 -16
- package/funcs/transactionsSettlementsList.js.map +1 -1
- package/funcs/transactionsSync.d.ts.map +1 -1
- package/funcs/transactionsSync.js +2 -16
- package/funcs/transactionsSync.js.map +1 -1
- package/funcs/transactionsUpdate.d.ts.map +1 -1
- package/funcs/transactionsUpdate.js +2 -16
- package/funcs/transactionsUpdate.js.map +1 -1
- package/funcs/transactionsVoid.d.ts.map +1 -1
- package/funcs/transactionsVoid.js +2 -16
- package/funcs/transactionsVoid.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -4
- package/lib/sdks.js.map +1 -1
- package/models/components/ecommpayoptions.d.ts +20 -0
- package/models/components/ecommpayoptions.d.ts.map +1 -0
- package/models/components/ecommpayoptions.js +56 -0
- package/models/components/ecommpayoptions.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paymentmethodupdate.d.ts +29 -0
- package/models/components/paymentmethodupdate.d.ts.map +1 -0
- package/models/components/paymentmethodupdate.js +59 -0
- package/models/components/paymentmethodupdate.js.map +1 -0
- package/models/components/transactionconnectionoptions.d.ts +6 -0
- package/models/components/transactionconnectionoptions.d.ts.map +1 -1
- package/models/components/transactionconnectionoptions.js +3 -0
- package/models/components/transactionconnectionoptions.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updatepaymentmethod.d.ts +26 -0
- package/models/operations/updatepaymentmethod.d.ts.map +1 -0
- package/models/operations/updatepaymentmethod.js +58 -0
- package/models/operations/updatepaymentmethod.js.map +1 -0
- package/package.json +1 -1
- package/sdk/paymentmethods.d.ts +7 -0
- package/sdk/paymentmethods.d.ts.map +1 -1
- package/sdk/paymentmethods.js +10 -0
- package/sdk/paymentmethods.js.map +1 -1
- package/src/funcs/accountUpdaterJobsCreate.ts +3 -16
- package/src/funcs/auditLogsList.ts +3 -16
- package/src/funcs/buyersCreate.ts +3 -16
- package/src/funcs/buyersDelete.ts +3 -16
- package/src/funcs/buyersGet.ts +3 -16
- package/src/funcs/buyersGiftCardsList.ts +3 -16
- package/src/funcs/buyersList.ts +3 -16
- package/src/funcs/buyersPaymentMethodsList.ts +3 -16
- package/src/funcs/buyersShippingDetailsCreate.ts +3 -16
- package/src/funcs/buyersShippingDetailsDelete.ts +3 -16
- package/src/funcs/buyersShippingDetailsGet.ts +3 -16
- package/src/funcs/buyersShippingDetailsList.ts +3 -16
- package/src/funcs/buyersShippingDetailsUpdate.ts +3 -16
- package/src/funcs/buyersUpdate.ts +3 -16
- package/src/funcs/cardSchemeDefinitionsList.ts +3 -16
- package/src/funcs/checkoutSessionsCreate.ts +3 -16
- package/src/funcs/checkoutSessionsDelete.ts +3 -16
- package/src/funcs/checkoutSessionsGet.ts +3 -16
- package/src/funcs/checkoutSessionsUpdate.ts +3 -16
- package/src/funcs/digitalWalletsCreate.ts +3 -16
- package/src/funcs/digitalWalletsDelete.ts +3 -16
- package/src/funcs/digitalWalletsDomainsCreate.ts +3 -16
- package/src/funcs/digitalWalletsDomainsDelete.ts +3 -16
- package/src/funcs/digitalWalletsGet.ts +3 -16
- package/src/funcs/digitalWalletsList.ts +3 -16
- package/src/funcs/digitalWalletsSessionsApplePay.ts +3 -16
- package/src/funcs/digitalWalletsSessionsClickToPay.ts +3 -16
- package/src/funcs/digitalWalletsSessionsGooglePay.ts +3 -16
- package/src/funcs/digitalWalletsUpdate.ts +3 -16
- package/src/funcs/giftCardsBalancesList.ts +3 -16
- package/src/funcs/giftCardsCreate.ts +3 -16
- package/src/funcs/giftCardsDelete.ts +3 -16
- package/src/funcs/giftCardsGet.ts +3 -16
- package/src/funcs/giftCardsList.ts +3 -16
- package/src/funcs/merchantAccountsCreate.ts +3 -16
- package/src/funcs/merchantAccountsGet.ts +3 -16
- package/src/funcs/merchantAccountsList.ts +3 -16
- package/src/funcs/merchantAccountsThreeDsConfigurationCreate.ts +3 -16
- package/src/funcs/merchantAccountsThreeDsConfigurationDelete.ts +3 -16
- package/src/funcs/merchantAccountsThreeDsConfigurationList.ts +3 -16
- package/src/funcs/merchantAccountsThreeDsConfigurationUpdate.ts +3 -16
- package/src/funcs/merchantAccountsUpdate.ts +3 -16
- package/src/funcs/paymentLinksCreate.ts +3 -16
- package/src/funcs/paymentLinksExpire.ts +3 -16
- package/src/funcs/paymentLinksGet.ts +3 -16
- package/src/funcs/paymentLinksList.ts +3 -16
- package/src/funcs/paymentMethodsCreate.ts +3 -16
- package/src/funcs/paymentMethodsDelete.ts +3 -16
- package/src/funcs/paymentMethodsGet.ts +3 -16
- package/src/funcs/paymentMethodsList.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensCreate.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensCryptogramCreate.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensDelete.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensList.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensResume.ts +3 -16
- package/src/funcs/paymentMethodsNetworkTokensSuspend.ts +3 -16
- package/src/funcs/paymentMethodsPaymentServiceTokensCreate.ts +3 -16
- package/src/funcs/paymentMethodsPaymentServiceTokensDelete.ts +3 -16
- package/src/funcs/paymentMethodsPaymentServiceTokensList.ts +3 -16
- package/src/funcs/paymentMethodsUpdate.ts +243 -0
- package/src/funcs/paymentOptionsList.ts +3 -16
- package/src/funcs/paymentServiceDefinitionsGet.ts +3 -16
- package/src/funcs/paymentServiceDefinitionsList.ts +3 -16
- package/src/funcs/paymentServiceDefinitionsSession.ts +3 -16
- package/src/funcs/paymentServicesCreate.ts +3 -16
- package/src/funcs/paymentServicesDelete.ts +3 -16
- package/src/funcs/paymentServicesGet.ts +3 -16
- package/src/funcs/paymentServicesList.ts +3 -16
- package/src/funcs/paymentServicesSession.ts +3 -16
- package/src/funcs/paymentServicesUpdate.ts +3 -16
- package/src/funcs/paymentServicesVerify.ts +3 -16
- package/src/funcs/payoutsCreate.ts +3 -16
- package/src/funcs/payoutsGet.ts +3 -16
- package/src/funcs/payoutsList.ts +3 -16
- package/src/funcs/refundsGet.ts +3 -16
- package/src/funcs/reportExecutionsList.ts +3 -16
- package/src/funcs/reportsCreate.ts +3 -16
- package/src/funcs/reportsExecutionsGet.ts +3 -16
- package/src/funcs/reportsExecutionsList.ts +3 -16
- package/src/funcs/reportsExecutionsUrl.ts +3 -16
- package/src/funcs/reportsGet.ts +3 -16
- package/src/funcs/reportsList.ts +3 -16
- package/src/funcs/reportsPut.ts +3 -16
- package/src/funcs/threeDsScenariosCreate.ts +3 -16
- package/src/funcs/threeDsScenariosDelete.ts +3 -16
- package/src/funcs/threeDsScenariosList.ts +3 -16
- package/src/funcs/threeDsScenariosUpdate.ts +3 -16
- package/src/funcs/transactionsActionsList.ts +3 -16
- package/src/funcs/transactionsCancel.ts +3 -16
- package/src/funcs/transactionsCapture.ts +3 -16
- package/src/funcs/transactionsCreate.ts +3 -16
- package/src/funcs/transactionsEventsList.ts +3 -16
- package/src/funcs/transactionsGet.ts +3 -16
- package/src/funcs/transactionsList.ts +3 -16
- package/src/funcs/transactionsRefundsAllCreate.ts +3 -16
- package/src/funcs/transactionsRefundsCreate.ts +3 -16
- package/src/funcs/transactionsRefundsGet.ts +3 -16
- package/src/funcs/transactionsRefundsList.ts +3 -16
- package/src/funcs/transactionsSettlementsGet.ts +3 -16
- package/src/funcs/transactionsSettlementsList.ts +3 -16
- package/src/funcs/transactionsSync.ts +3 -16
- package/src/funcs/transactionsUpdate.ts +3 -16
- package/src/funcs/transactionsVoid.ts +3 -16
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +3 -6
- package/src/models/components/ecommpayoptions.ts +44 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/paymentmethodupdate.ts +57 -0
- package/src/models/components/transactionconnectionoptions.ts +12 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/updatepaymentmethod.ts +54 -0
- package/src/sdk/paymentmethods.ts +22 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -196,22 +197,8 @@ async function $do(
|
|
|
196
197
|
|
|
197
198
|
const doResult = await client._do(req, {
|
|
198
199
|
context,
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
"401",
|
|
202
|
-
"403",
|
|
203
|
-
"404",
|
|
204
|
-
"405",
|
|
205
|
-
"409",
|
|
206
|
-
"422",
|
|
207
|
-
"425",
|
|
208
|
-
"429",
|
|
209
|
-
"4XX",
|
|
210
|
-
"500",
|
|
211
|
-
"502",
|
|
212
|
-
"504",
|
|
213
|
-
"5XX",
|
|
214
|
-
],
|
|
200
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
201
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
215
202
|
retryConfig: context.retryConfig,
|
|
216
203
|
retryCodes: context.retryCodes,
|
|
217
204
|
});
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Gr4vyCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import { Gr4vyError } from "../models/errors/gr4vyerror.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Update payment method
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Update the details of a stored payment method.
|
|
35
|
+
*/
|
|
36
|
+
export function paymentMethodsUpdate(
|
|
37
|
+
client: Gr4vyCore,
|
|
38
|
+
paymentMethodUpdate: components.PaymentMethodUpdate,
|
|
39
|
+
paymentMethodId: string,
|
|
40
|
+
merchantAccountId?: string | null | undefined,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
components.PaymentMethod,
|
|
45
|
+
| errors.Error400
|
|
46
|
+
| errors.Error401
|
|
47
|
+
| errors.Error403
|
|
48
|
+
| errors.Error404
|
|
49
|
+
| errors.Error405
|
|
50
|
+
| errors.Error409
|
|
51
|
+
| errors.HTTPValidationError
|
|
52
|
+
| errors.Error425
|
|
53
|
+
| errors.Error429
|
|
54
|
+
| errors.Error500
|
|
55
|
+
| errors.Error502
|
|
56
|
+
| errors.Error504
|
|
57
|
+
| Gr4vyError
|
|
58
|
+
| ResponseValidationError
|
|
59
|
+
| ConnectionError
|
|
60
|
+
| RequestAbortedError
|
|
61
|
+
| RequestTimeoutError
|
|
62
|
+
| InvalidRequestError
|
|
63
|
+
| UnexpectedClientError
|
|
64
|
+
| SDKValidationError
|
|
65
|
+
>
|
|
66
|
+
> {
|
|
67
|
+
return new APIPromise($do(
|
|
68
|
+
client,
|
|
69
|
+
paymentMethodUpdate,
|
|
70
|
+
paymentMethodId,
|
|
71
|
+
merchantAccountId,
|
|
72
|
+
options,
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function $do(
|
|
77
|
+
client: Gr4vyCore,
|
|
78
|
+
paymentMethodUpdate: components.PaymentMethodUpdate,
|
|
79
|
+
paymentMethodId: string,
|
|
80
|
+
merchantAccountId?: string | null | undefined,
|
|
81
|
+
options?: RequestOptions,
|
|
82
|
+
): Promise<
|
|
83
|
+
[
|
|
84
|
+
Result<
|
|
85
|
+
components.PaymentMethod,
|
|
86
|
+
| errors.Error400
|
|
87
|
+
| errors.Error401
|
|
88
|
+
| errors.Error403
|
|
89
|
+
| errors.Error404
|
|
90
|
+
| errors.Error405
|
|
91
|
+
| errors.Error409
|
|
92
|
+
| errors.HTTPValidationError
|
|
93
|
+
| errors.Error425
|
|
94
|
+
| errors.Error429
|
|
95
|
+
| errors.Error500
|
|
96
|
+
| errors.Error502
|
|
97
|
+
| errors.Error504
|
|
98
|
+
| Gr4vyError
|
|
99
|
+
| ResponseValidationError
|
|
100
|
+
| ConnectionError
|
|
101
|
+
| RequestAbortedError
|
|
102
|
+
| RequestTimeoutError
|
|
103
|
+
| InvalidRequestError
|
|
104
|
+
| UnexpectedClientError
|
|
105
|
+
| SDKValidationError
|
|
106
|
+
>,
|
|
107
|
+
APICall,
|
|
108
|
+
]
|
|
109
|
+
> {
|
|
110
|
+
const input: operations.UpdatePaymentMethodRequest = {
|
|
111
|
+
paymentMethodUpdate: paymentMethodUpdate,
|
|
112
|
+
paymentMethodId: paymentMethodId,
|
|
113
|
+
merchantAccountId: merchantAccountId,
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const parsed = safeParse(
|
|
117
|
+
input,
|
|
118
|
+
(value) =>
|
|
119
|
+
operations.UpdatePaymentMethodRequest$outboundSchema.parse(value),
|
|
120
|
+
"Input validation failed",
|
|
121
|
+
);
|
|
122
|
+
if (!parsed.ok) {
|
|
123
|
+
return [parsed, { status: "invalid" }];
|
|
124
|
+
}
|
|
125
|
+
const payload = parsed.value;
|
|
126
|
+
const body = encodeJSON("body", payload.PaymentMethodUpdate, {
|
|
127
|
+
explode: true,
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
const pathParams = {
|
|
131
|
+
payment_method_id: encodeSimple(
|
|
132
|
+
"payment_method_id",
|
|
133
|
+
payload.payment_method_id,
|
|
134
|
+
{ explode: false, charEncoding: "percent" },
|
|
135
|
+
),
|
|
136
|
+
};
|
|
137
|
+
const path = pathToFunc("/payment-methods/{payment_method_id}")(pathParams);
|
|
138
|
+
|
|
139
|
+
const headers = new Headers(compactMap({
|
|
140
|
+
"Content-Type": "application/json",
|
|
141
|
+
Accept: "application/json",
|
|
142
|
+
"x-gr4vy-merchant-account-id": encodeSimple(
|
|
143
|
+
"x-gr4vy-merchant-account-id",
|
|
144
|
+
payload.merchantAccountId ?? client._options.merchantAccountId,
|
|
145
|
+
{ explode: false, charEncoding: "none" },
|
|
146
|
+
),
|
|
147
|
+
}));
|
|
148
|
+
|
|
149
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
150
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
151
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
152
|
+
|
|
153
|
+
const context = {
|
|
154
|
+
options: client._options,
|
|
155
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
156
|
+
operationID: "update_payment_method",
|
|
157
|
+
oAuth2Scopes: null,
|
|
158
|
+
|
|
159
|
+
resolvedSecurity: requestSecurity,
|
|
160
|
+
|
|
161
|
+
securitySource: client._options.bearerAuth,
|
|
162
|
+
retryConfig: options?.retries
|
|
163
|
+
|| client._options.retryConfig
|
|
164
|
+
|| { strategy: "none" },
|
|
165
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const requestRes = client._createRequest(context, {
|
|
169
|
+
security: requestSecurity,
|
|
170
|
+
method: "PUT",
|
|
171
|
+
baseURL: options?.serverURL,
|
|
172
|
+
path: path,
|
|
173
|
+
headers: headers,
|
|
174
|
+
body: body,
|
|
175
|
+
userAgent: client._options.userAgent,
|
|
176
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
177
|
+
}, options);
|
|
178
|
+
if (!requestRes.ok) {
|
|
179
|
+
return [requestRes, { status: "invalid" }];
|
|
180
|
+
}
|
|
181
|
+
const req = requestRes.value;
|
|
182
|
+
|
|
183
|
+
const doResult = await client._do(req, {
|
|
184
|
+
context,
|
|
185
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
186
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
187
|
+
retryConfig: context.retryConfig,
|
|
188
|
+
retryCodes: context.retryCodes,
|
|
189
|
+
});
|
|
190
|
+
if (!doResult.ok) {
|
|
191
|
+
return [doResult, { status: "request-error", request: req }];
|
|
192
|
+
}
|
|
193
|
+
const response = doResult.value;
|
|
194
|
+
|
|
195
|
+
const responseFields = {
|
|
196
|
+
HttpMeta: { Response: response, Request: req },
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const [result] = await M.match<
|
|
200
|
+
components.PaymentMethod,
|
|
201
|
+
| errors.Error400
|
|
202
|
+
| errors.Error401
|
|
203
|
+
| errors.Error403
|
|
204
|
+
| errors.Error404
|
|
205
|
+
| errors.Error405
|
|
206
|
+
| errors.Error409
|
|
207
|
+
| errors.HTTPValidationError
|
|
208
|
+
| errors.Error425
|
|
209
|
+
| errors.Error429
|
|
210
|
+
| errors.Error500
|
|
211
|
+
| errors.Error502
|
|
212
|
+
| errors.Error504
|
|
213
|
+
| Gr4vyError
|
|
214
|
+
| ResponseValidationError
|
|
215
|
+
| ConnectionError
|
|
216
|
+
| RequestAbortedError
|
|
217
|
+
| RequestTimeoutError
|
|
218
|
+
| InvalidRequestError
|
|
219
|
+
| UnexpectedClientError
|
|
220
|
+
| SDKValidationError
|
|
221
|
+
>(
|
|
222
|
+
M.json(200, components.PaymentMethod$inboundSchema),
|
|
223
|
+
M.jsonErr(400, errors.Error400$inboundSchema),
|
|
224
|
+
M.jsonErr(401, errors.Error401$inboundSchema),
|
|
225
|
+
M.jsonErr(403, errors.Error403$inboundSchema),
|
|
226
|
+
M.jsonErr(404, errors.Error404$inboundSchema),
|
|
227
|
+
M.jsonErr(405, errors.Error405$inboundSchema),
|
|
228
|
+
M.jsonErr(409, errors.Error409$inboundSchema),
|
|
229
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
230
|
+
M.jsonErr(425, errors.Error425$inboundSchema),
|
|
231
|
+
M.jsonErr(429, errors.Error429$inboundSchema),
|
|
232
|
+
M.jsonErr(500, errors.Error500$inboundSchema),
|
|
233
|
+
M.jsonErr(502, errors.Error502$inboundSchema),
|
|
234
|
+
M.jsonErr(504, errors.Error504$inboundSchema),
|
|
235
|
+
M.fail("4XX"),
|
|
236
|
+
M.fail("5XX"),
|
|
237
|
+
)(response, req, { extraFields: responseFields });
|
|
238
|
+
if (!result.ok) {
|
|
239
|
+
return [result, { status: "complete", request: req, response }];
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
return [result, { status: "complete", request: req, response }];
|
|
243
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -169,22 +170,8 @@ async function $do(
|
|
|
169
170
|
|
|
170
171
|
const doResult = await client._do(req, {
|
|
171
172
|
context,
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
"401",
|
|
175
|
-
"403",
|
|
176
|
-
"404",
|
|
177
|
-
"405",
|
|
178
|
-
"409",
|
|
179
|
-
"422",
|
|
180
|
-
"425",
|
|
181
|
-
"429",
|
|
182
|
-
"4XX",
|
|
183
|
-
"500",
|
|
184
|
-
"502",
|
|
185
|
-
"504",
|
|
186
|
-
"5XX",
|
|
187
|
-
],
|
|
173
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
174
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
188
175
|
retryConfig: context.retryConfig,
|
|
189
176
|
retryCodes: context.retryCodes,
|
|
190
177
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -177,22 +178,8 @@ async function $do(
|
|
|
177
178
|
|
|
178
179
|
const doResult = await client._do(req, {
|
|
179
180
|
context,
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
"401",
|
|
183
|
-
"403",
|
|
184
|
-
"404",
|
|
185
|
-
"405",
|
|
186
|
-
"409",
|
|
187
|
-
"422",
|
|
188
|
-
"425",
|
|
189
|
-
"429",
|
|
190
|
-
"4XX",
|
|
191
|
-
"500",
|
|
192
|
-
"502",
|
|
193
|
-
"504",
|
|
194
|
-
"5XX",
|
|
195
|
-
],
|
|
181
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
182
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
196
183
|
retryConfig: context.retryConfig,
|
|
197
184
|
retryCodes: context.retryCodes,
|
|
198
185
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
7
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -191,22 +192,8 @@ async function $do(
|
|
|
191
192
|
|
|
192
193
|
const doResult = await client._do(req, {
|
|
193
194
|
context,
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
"401",
|
|
197
|
-
"403",
|
|
198
|
-
"404",
|
|
199
|
-
"405",
|
|
200
|
-
"409",
|
|
201
|
-
"422",
|
|
202
|
-
"425",
|
|
203
|
-
"429",
|
|
204
|
-
"4XX",
|
|
205
|
-
"500",
|
|
206
|
-
"502",
|
|
207
|
-
"504",
|
|
208
|
-
"5XX",
|
|
209
|
-
],
|
|
195
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
196
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
210
197
|
retryConfig: context.retryConfig,
|
|
211
198
|
retryCodes: context.retryCodes,
|
|
212
199
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -173,22 +174,8 @@ async function $do(
|
|
|
173
174
|
|
|
174
175
|
const doResult = await client._do(req, {
|
|
175
176
|
context,
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
"401",
|
|
179
|
-
"403",
|
|
180
|
-
"404",
|
|
181
|
-
"405",
|
|
182
|
-
"409",
|
|
183
|
-
"422",
|
|
184
|
-
"425",
|
|
185
|
-
"429",
|
|
186
|
-
"4XX",
|
|
187
|
-
"500",
|
|
188
|
-
"502",
|
|
189
|
-
"504",
|
|
190
|
-
"5XX",
|
|
191
|
-
],
|
|
177
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
178
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
192
179
|
retryConfig: context.retryConfig,
|
|
193
180
|
retryCodes: context.retryCodes,
|
|
194
181
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -170,22 +171,8 @@ async function $do(
|
|
|
170
171
|
|
|
171
172
|
const doResult = await client._do(req, {
|
|
172
173
|
context,
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"401",
|
|
176
|
-
"403",
|
|
177
|
-
"404",
|
|
178
|
-
"405",
|
|
179
|
-
"409",
|
|
180
|
-
"422",
|
|
181
|
-
"425",
|
|
182
|
-
"429",
|
|
183
|
-
"4XX",
|
|
184
|
-
"500",
|
|
185
|
-
"502",
|
|
186
|
-
"504",
|
|
187
|
-
"5XX",
|
|
188
|
-
],
|
|
174
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
175
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
189
176
|
retryConfig: context.retryConfig,
|
|
190
177
|
retryCodes: context.retryCodes,
|
|
191
178
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { Gr4vyCore } from "../core.js";
|
|
7
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -174,22 +175,8 @@ async function $do(
|
|
|
174
175
|
|
|
175
176
|
const doResult = await client._do(req, {
|
|
176
177
|
context,
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
"401",
|
|
180
|
-
"403",
|
|
181
|
-
"404",
|
|
182
|
-
"405",
|
|
183
|
-
"409",
|
|
184
|
-
"422",
|
|
185
|
-
"425",
|
|
186
|
-
"429",
|
|
187
|
-
"4XX",
|
|
188
|
-
"500",
|
|
189
|
-
"502",
|
|
190
|
-
"504",
|
|
191
|
-
"5XX",
|
|
192
|
-
],
|
|
178
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
179
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
193
180
|
retryConfig: context.retryConfig,
|
|
194
181
|
retryCodes: context.retryCodes,
|
|
195
182
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -183,22 +184,8 @@ async function $do(
|
|
|
183
184
|
|
|
184
185
|
const doResult = await client._do(req, {
|
|
185
186
|
context,
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
"401",
|
|
189
|
-
"403",
|
|
190
|
-
"404",
|
|
191
|
-
"405",
|
|
192
|
-
"409",
|
|
193
|
-
"422",
|
|
194
|
-
"425",
|
|
195
|
-
"429",
|
|
196
|
-
"4XX",
|
|
197
|
-
"500",
|
|
198
|
-
"502",
|
|
199
|
-
"504",
|
|
200
|
-
"5XX",
|
|
201
|
-
],
|
|
187
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
188
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
202
189
|
retryConfig: context.retryConfig,
|
|
203
190
|
retryCodes: context.retryCodes,
|
|
204
191
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -191,22 +192,8 @@ async function $do(
|
|
|
191
192
|
|
|
192
193
|
const doResult = await client._do(req, {
|
|
193
194
|
context,
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
"401",
|
|
197
|
-
"403",
|
|
198
|
-
"404",
|
|
199
|
-
"405",
|
|
200
|
-
"409",
|
|
201
|
-
"422",
|
|
202
|
-
"425",
|
|
203
|
-
"429",
|
|
204
|
-
"4XX",
|
|
205
|
-
"500",
|
|
206
|
-
"502",
|
|
207
|
-
"504",
|
|
208
|
-
"5XX",
|
|
209
|
-
],
|
|
195
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
196
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
210
197
|
retryConfig: context.retryConfig,
|
|
211
198
|
retryCodes: context.retryCodes,
|
|
212
199
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -181,22 +182,8 @@ async function $do(
|
|
|
181
182
|
|
|
182
183
|
const doResult = await client._do(req, {
|
|
183
184
|
context,
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
"401",
|
|
187
|
-
"403",
|
|
188
|
-
"404",
|
|
189
|
-
"405",
|
|
190
|
-
"409",
|
|
191
|
-
"422",
|
|
192
|
-
"425",
|
|
193
|
-
"429",
|
|
194
|
-
"4XX",
|
|
195
|
-
"500",
|
|
196
|
-
"502",
|
|
197
|
-
"504",
|
|
198
|
-
"5XX",
|
|
199
|
-
],
|
|
185
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
186
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
200
187
|
retryConfig: context.retryConfig,
|
|
201
188
|
retryCodes: context.retryCodes,
|
|
202
189
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -181,22 +182,8 @@ async function $do(
|
|
|
181
182
|
|
|
182
183
|
const doResult = await client._do(req, {
|
|
183
184
|
context,
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
"401",
|
|
187
|
-
"403",
|
|
188
|
-
"404",
|
|
189
|
-
"405",
|
|
190
|
-
"409",
|
|
191
|
-
"422",
|
|
192
|
-
"425",
|
|
193
|
-
"429",
|
|
194
|
-
"4XX",
|
|
195
|
-
"500",
|
|
196
|
-
"502",
|
|
197
|
-
"504",
|
|
198
|
-
"5XX",
|
|
199
|
-
],
|
|
185
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
186
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
200
187
|
retryConfig: context.retryConfig,
|
|
201
188
|
retryCodes: context.retryCodes,
|
|
202
189
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { Gr4vyCore } from "../core.js";
|
|
7
7
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -171,22 +172,8 @@ async function $do(
|
|
|
171
172
|
|
|
172
173
|
const doResult = await client._do(req, {
|
|
173
174
|
context,
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
"401",
|
|
177
|
-
"403",
|
|
178
|
-
"404",
|
|
179
|
-
"405",
|
|
180
|
-
"409",
|
|
181
|
-
"422",
|
|
182
|
-
"425",
|
|
183
|
-
"429",
|
|
184
|
-
"4XX",
|
|
185
|
-
"500",
|
|
186
|
-
"502",
|
|
187
|
-
"504",
|
|
188
|
-
"5XX",
|
|
189
|
-
],
|
|
175
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
176
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
190
177
|
retryConfig: context.retryConfig,
|
|
191
178
|
retryCodes: context.retryCodes,
|
|
192
179
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Gr4vyCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -167,22 +168,8 @@ async function $do(
|
|
|
167
168
|
|
|
168
169
|
const doResult = await client._do(req, {
|
|
169
170
|
context,
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
"401",
|
|
173
|
-
"403",
|
|
174
|
-
"404",
|
|
175
|
-
"405",
|
|
176
|
-
"409",
|
|
177
|
-
"422",
|
|
178
|
-
"425",
|
|
179
|
-
"429",
|
|
180
|
-
"4XX",
|
|
181
|
-
"500",
|
|
182
|
-
"502",
|
|
183
|
-
"504",
|
|
184
|
-
"5XX",
|
|
185
|
-
],
|
|
171
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
172
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
186
173
|
retryConfig: context.retryConfig,
|
|
187
174
|
retryCodes: context.retryCodes,
|
|
188
175
|
});
|