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