@naturalpay/sdk 1.6.27 → 1.6.29
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +59 -54
- package/dist/cjs/api/resources/agenticPayments/client/Client.d.ts +188 -0
- package/dist/cjs/api/resources/agenticPayments/client/Client.js +693 -0
- package/dist/cjs/api/resources/agenticPayments/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agenticPayments/client/index.js +17 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/CancelPurchaseAgenticPaymentsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/CancelPurchaseAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/ClaimPurchaseAgenticPaymentsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/ClaimPurchaseAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.d.ts +27 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/GetMandateAgenticPaymentsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/GetMandateAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/GetPurchaseAgenticPaymentsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/GetPurchaseAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/ListMandatesAgenticPaymentsRequest.d.ts +7 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/ListMandatesAgenticPaymentsRequest.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agenticPayments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/agenticPayments/exports.js +21 -0
- package/dist/cjs/api/resources/agenticPayments/index.d.ts +2 -0
- package/dist/cjs/api/resources/agenticPayments/index.js +18 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.d.ts +14 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.js +10 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.js +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.js +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.d.ts +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.js +12 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.d.ts +13 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.d.ts +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.d.ts +10 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.d.ts +14 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.js +10 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.js +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.js +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.d.ts +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.js +12 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.d.ts +17 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.js +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.d.ts +11 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.js +14 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.d.ts +14 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.js +10 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.d.ts +6 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.js +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.js +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.d.ts +9 -0
- package/dist/cjs/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.js +12 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.d.ts +17 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.js +3 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.d.ts +4 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.js +7 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.d.ts +5 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.js +8 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.d.ts +11 -0
- package/dist/cjs/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.js +14 -0
- package/dist/cjs/api/resources/agenticPayments/types/index.d.ts +50 -0
- package/dist/cjs/api/resources/agenticPayments/types/index.js +66 -0
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/cardSessions/client/Client.js +18 -4
- package/dist/cjs/api/resources/cardSessions/client/requests/ClaimCardSessionsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/cardSessions/client/requests/GetCardSessionsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js +1 -0
- package/dist/cjs/api/resources/externalAccounts/client/Client.js +2 -1
- package/dist/cjs/api/resources/externalAccounts/client/requests/ListCardsExternalAccountsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -0
- package/dist/cjs/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts +1 -0
- package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.js +1 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/index.js +17 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.d.ts +16 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.js +48 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/agenticPayments/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/agenticPayments/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/agenticPayments/index.js +18 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.d.ts +25 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.js +57 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.d.ts +11 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.js +43 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.d.ts +19 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.js +51 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.d.ts +13 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.js +45 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.d.ts +14 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.js +46 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.d.ts +12 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.js +44 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.d.ts +16 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.js +48 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.d.ts +12 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.js +44 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.d.ts +13 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.js +45 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.d.ts +12 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.js +44 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.d.ts +11 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.js +43 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.d.ts +25 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.js +57 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.d.ts +11 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.js +43 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.d.ts +25 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.js +57 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.js +48 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.d.ts +25 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.js +57 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.d.ts +11 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.js +43 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.js +42 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.d.ts +25 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.js +57 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.js +39 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.js +48 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/index.d.ts +50 -0
- package/dist/cjs/serialization/resources/agenticPayments/types/index.js +66 -0
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js +1 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts +1 -1
- package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/client/Client.d.mts +188 -0
- package/dist/esm/api/resources/agenticPayments/client/Client.mjs +656 -0
- package/dist/esm/api/resources/agenticPayments/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agenticPayments/client/index.mjs +1 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/CancelPurchaseAgenticPaymentsRequest.d.mts +10 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/CancelPurchaseAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/ClaimPurchaseAgenticPaymentsRequest.d.mts +10 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/ClaimPurchaseAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.d.mts +27 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/GetMandateAgenticPaymentsRequest.d.mts +10 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/GetMandateAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/GetPurchaseAgenticPaymentsRequest.d.mts +10 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/GetPurchaseAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/ListMandatesAgenticPaymentsRequest.d.mts +7 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/ListMandatesAgenticPaymentsRequest.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agenticPayments/exports.d.mts +2 -0
- package/dist/esm/api/resources/agenticPayments/exports.mjs +3 -0
- package/dist/esm/api/resources/agenticPayments/index.d.mts +2 -0
- package/dist/esm/api/resources/agenticPayments/index.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.d.mts +14 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +7 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.mjs +6 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.d.mts +9 -0
- package/dist/esm/api/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.mjs +9 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.d.mts +13 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.d.mts +8 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.d.mts +10 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.d.mts +14 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +7 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.mjs +6 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.d.mts +9 -0
- package/dist/esm/api/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.mjs +9 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.d.mts +17 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.d.mts +11 -0
- package/dist/esm/api/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.mjs +11 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.d.mts +14 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +7 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.d.mts +6 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.mjs +6 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.d.mts +9 -0
- package/dist/esm/api/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.mjs +9 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.d.mts +17 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.mjs +2 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.d.mts +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.mjs +4 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.d.mts +5 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.mjs +5 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.d.mts +11 -0
- package/dist/esm/api/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.mjs +11 -0
- package/dist/esm/api/resources/agenticPayments/types/index.d.mts +50 -0
- package/dist/esm/api/resources/agenticPayments/types/index.mjs +50 -0
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/cardSessions/client/Client.mjs +18 -4
- package/dist/esm/api/resources/cardSessions/client/requests/ClaimCardSessionsRequest.d.mts +1 -0
- package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +2 -0
- package/dist/esm/api/resources/cardSessions/client/requests/GetCardSessionsRequest.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs +1 -0
- package/dist/esm/api/resources/externalAccounts/client/Client.mjs +2 -1
- package/dist/esm/api/resources/externalAccounts/client/requests/ListCardsExternalAccountsRequest.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -0
- package/dist/esm/api/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts +1 -0
- package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.mjs +1 -0
- package/dist/esm/serialization/resources/agenticPayments/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agenticPayments/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.d.mts +16 -0
- package/dist/esm/serialization/resources/agenticPayments/client/requests/CreatePurchaseAgenticPaymentsRequest.mjs +12 -0
- package/dist/esm/serialization/resources/agenticPayments/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/agenticPayments/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/agenticPayments/index.d.mts +2 -0
- package/dist/esm/serialization/resources/agenticPayments/index.mjs +2 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.d.mts +25 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseData.mjs +21 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataDelivery.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.d.mts +11 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataMerchant.mjs +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataProvider.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CancelPurchaseAgenticPaymentsResponseDataStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.d.mts +19 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseData.mjs +15 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.d.mts +13 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentToken.mjs +9 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenFormat.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.d.mts +14 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValue.mjs +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.d.mts +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogram.mjs +8 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataAgentTokenValueCryptogramType.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.d.mts +16 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSession.mjs +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.d.mts +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataBrowserSessionProxy.mjs +8 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.d.mts +13 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardToken.mjs +9 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenFormat.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.d.mts +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ClaimPurchaseAgenticPaymentsResponseDataCardTokenValue.mjs +8 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.d.mts +11 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsRequestMerchant.mjs +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.d.mts +25 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseData.mjs +21 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataDelivery.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.d.mts +11 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataMerchant.mjs +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataProvider.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/CreatePurchaseAgenticPaymentsResponseDataStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.d.mts +25 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseData.mjs +21 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataMerchantScope.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataProvider.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetMandateAgenticPaymentsResponseDataStatus.mjs +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.d.mts +25 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseData.mjs +21 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataConfirmationStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataDelivery.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.d.mts +11 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataMerchant.mjs +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataProvider.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/GetPurchaseAgenticPaymentsResponseDataStatus.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.d.mts +25 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItem.mjs +21 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemMerchantScope.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemProvider.mjs +3 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/agenticPayments/types/ListMandatesAgenticPaymentsResponseDataItemStatus.mjs +12 -0
- package/dist/esm/serialization/resources/agenticPayments/types/index.d.mts +50 -0
- package/dist/esm/serialization/resources/agenticPayments/types/index.mjs +50 -0
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts +1 -1
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/GetInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/ListInvitationLinksResponseDataItemAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.d.mts +1 -1
- package/dist/esm/serialization/resources/invitationLinks/types/RevokeInvitationLinksResponseDataAttributesProposedAgentsItemPermissionsItem.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts +1 -1
- package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +398 -0
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.AgenticPaymentsClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
59
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
60
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
61
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
62
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
63
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
64
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
65
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
66
|
+
const Natural = __importStar(require("../../../index.js"));
|
|
67
|
+
class AgenticPaymentsClient {
|
|
68
|
+
constructor(options = {}) {
|
|
69
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* List the party's usable mandates for the calling agent, or all of the owner's mandates
|
|
73
|
+
*
|
|
74
|
+
* @param {Natural.ListMandatesAgenticPaymentsRequest} request
|
|
75
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Natural.BadRequestError}
|
|
78
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
79
|
+
* @throws {@link Natural.ForbiddenError}
|
|
80
|
+
* @throws {@link Natural.NotFoundError}
|
|
81
|
+
* @throws {@link Natural.ConflictError}
|
|
82
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
83
|
+
* @throws {@link Natural.PreconditionError}
|
|
84
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
85
|
+
* @throws {@link Natural.InternalServerError}
|
|
86
|
+
* @throws {@link Natural.NotImplementedError}
|
|
87
|
+
* @throws {@link Natural.BadGatewayError}
|
|
88
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
89
|
+
* @throws {@link errors.NaturalError}
|
|
90
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.agenticPayments.listMandates()
|
|
94
|
+
*/
|
|
95
|
+
listMandates(request = {}, requestOptions) {
|
|
96
|
+
return core.HttpResponsePromise.fromPromise(this.__listMandates(request, requestOptions));
|
|
97
|
+
}
|
|
98
|
+
__listMandates() {
|
|
99
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
101
|
+
const { customerPartyId } = request;
|
|
102
|
+
const _queryParams = {
|
|
103
|
+
customerPartyId,
|
|
104
|
+
};
|
|
105
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
106
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
107
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
108
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, "agentic-payments/mandates"),
|
|
109
|
+
method: "GET",
|
|
110
|
+
headers: _headers,
|
|
111
|
+
queryString: core.url
|
|
112
|
+
.queryBuilder()
|
|
113
|
+
.addMany(_queryParams)
|
|
114
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
115
|
+
.build(),
|
|
116
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
117
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
118
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
119
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
120
|
+
logging: this._options.logging,
|
|
121
|
+
});
|
|
122
|
+
if (_response.ok) {
|
|
123
|
+
return {
|
|
124
|
+
data: serializers.ListMandatesAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
125
|
+
unrecognizedObjectKeys: "passthrough",
|
|
126
|
+
allowUnrecognizedUnionMembers: true,
|
|
127
|
+
allowUnrecognizedEnumValues: true,
|
|
128
|
+
skipValidation: true,
|
|
129
|
+
breadcrumbsPrefix: ["response"],
|
|
130
|
+
}),
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
if (_response.error.reason === "status-code") {
|
|
135
|
+
switch (_response.error.statusCode) {
|
|
136
|
+
case 400:
|
|
137
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
138
|
+
case 401:
|
|
139
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
140
|
+
case 403:
|
|
141
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
142
|
+
case 404:
|
|
143
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
144
|
+
case 409:
|
|
145
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
146
|
+
case 422:
|
|
147
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
148
|
+
case 428:
|
|
149
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
150
|
+
case 429:
|
|
151
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
152
|
+
case 500:
|
|
153
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
154
|
+
case 501:
|
|
155
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
156
|
+
case 502:
|
|
157
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
158
|
+
case 503:
|
|
159
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
160
|
+
default:
|
|
161
|
+
throw new errors.NaturalError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.body,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/agentic-payments/mandates");
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Get the current budget and approval status
|
|
173
|
+
*
|
|
174
|
+
* @param {Natural.GetMandateAgenticPaymentsRequest} request
|
|
175
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link Natural.BadRequestError}
|
|
178
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
179
|
+
* @throws {@link Natural.ForbiddenError}
|
|
180
|
+
* @throws {@link Natural.NotFoundError}
|
|
181
|
+
* @throws {@link Natural.ConflictError}
|
|
182
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
183
|
+
* @throws {@link Natural.PreconditionError}
|
|
184
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
185
|
+
* @throws {@link Natural.InternalServerError}
|
|
186
|
+
* @throws {@link Natural.NotImplementedError}
|
|
187
|
+
* @throws {@link Natural.BadGatewayError}
|
|
188
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
189
|
+
* @throws {@link errors.NaturalError}
|
|
190
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* await client.agenticPayments.getMandate({
|
|
194
|
+
* mandateId: "mandateId"
|
|
195
|
+
* })
|
|
196
|
+
*/
|
|
197
|
+
getMandate(request, requestOptions) {
|
|
198
|
+
return core.HttpResponsePromise.fromPromise(this.__getMandate(request, requestOptions));
|
|
199
|
+
}
|
|
200
|
+
__getMandate(request, requestOptions) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
203
|
+
const { mandateId, customerPartyId } = request;
|
|
204
|
+
const _queryParams = {
|
|
205
|
+
customerPartyId,
|
|
206
|
+
};
|
|
207
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
208
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
209
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
210
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `agentic-payments/mandates/${core.url.encodePathParam(mandateId)}`),
|
|
211
|
+
method: "GET",
|
|
212
|
+
headers: _headers,
|
|
213
|
+
queryString: core.url
|
|
214
|
+
.queryBuilder()
|
|
215
|
+
.addMany(_queryParams)
|
|
216
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
217
|
+
.build(),
|
|
218
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
219
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
220
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
222
|
+
logging: this._options.logging,
|
|
223
|
+
});
|
|
224
|
+
if (_response.ok) {
|
|
225
|
+
return {
|
|
226
|
+
data: serializers.GetMandateAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
227
|
+
unrecognizedObjectKeys: "passthrough",
|
|
228
|
+
allowUnrecognizedUnionMembers: true,
|
|
229
|
+
allowUnrecognizedEnumValues: true,
|
|
230
|
+
skipValidation: true,
|
|
231
|
+
breadcrumbsPrefix: ["response"],
|
|
232
|
+
}),
|
|
233
|
+
rawResponse: _response.rawResponse,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
if (_response.error.reason === "status-code") {
|
|
237
|
+
switch (_response.error.statusCode) {
|
|
238
|
+
case 400:
|
|
239
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
240
|
+
case 401:
|
|
241
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
242
|
+
case 403:
|
|
243
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
244
|
+
case 404:
|
|
245
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
246
|
+
case 409:
|
|
247
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
248
|
+
case 422:
|
|
249
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 428:
|
|
251
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 429:
|
|
253
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
254
|
+
case 500:
|
|
255
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
256
|
+
case 501:
|
|
257
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
258
|
+
case 502:
|
|
259
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 503:
|
|
261
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
262
|
+
default:
|
|
263
|
+
throw new errors.NaturalError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.body,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/agentic-payments/mandates/{mandateId}");
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Reserve budget for a purchase
|
|
275
|
+
*
|
|
276
|
+
* @param {Natural.CreatePurchaseAgenticPaymentsRequest} request
|
|
277
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
278
|
+
*
|
|
279
|
+
* @throws {@link Natural.BadRequestError}
|
|
280
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
281
|
+
* @throws {@link Natural.ForbiddenError}
|
|
282
|
+
* @throws {@link Natural.NotFoundError}
|
|
283
|
+
* @throws {@link Natural.ConflictError}
|
|
284
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
285
|
+
* @throws {@link Natural.PreconditionError}
|
|
286
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
287
|
+
* @throws {@link Natural.InternalServerError}
|
|
288
|
+
* @throws {@link Natural.NotImplementedError}
|
|
289
|
+
* @throws {@link Natural.BadGatewayError}
|
|
290
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
291
|
+
* @throws {@link errors.NaturalError}
|
|
292
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* await client.agenticPayments.createPurchase({
|
|
296
|
+
* idempotencyKey: "Idempotency-Key",
|
|
297
|
+
* mandateId: "amd_01a0e6466ba3713bba0f0d9d36803b92",
|
|
298
|
+
* amount: 2450,
|
|
299
|
+
* currency: "USD",
|
|
300
|
+
* merchant: {
|
|
301
|
+
* name: "Blue Bottle Coffee",
|
|
302
|
+
* url: "https://bluebottlecoffee.com",
|
|
303
|
+
* countryCode: "US"
|
|
304
|
+
* },
|
|
305
|
+
* ttlSeconds: 600
|
|
306
|
+
* })
|
|
307
|
+
*/
|
|
308
|
+
createPurchase(request, requestOptions) {
|
|
309
|
+
return core.HttpResponsePromise.fromPromise(this.__createPurchase(request, requestOptions));
|
|
310
|
+
}
|
|
311
|
+
__createPurchase(request, requestOptions) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
314
|
+
const { idempotencyKey } = request, _body = __rest(request, ["idempotencyKey"]);
|
|
315
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
316
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
317
|
+
"Idempotency-Key": idempotencyKey,
|
|
318
|
+
"X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId,
|
|
319
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
320
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
321
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, "agentic-payments/purchases"),
|
|
322
|
+
method: "POST",
|
|
323
|
+
headers: _headers,
|
|
324
|
+
contentType: "application/json",
|
|
325
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
326
|
+
requestType: "json",
|
|
327
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.CreatePurchaseAgenticPaymentsRequest.jsonOrThrow(_body, {
|
|
328
|
+
unrecognizedObjectKeys: "strip",
|
|
329
|
+
omitUndefined: true,
|
|
330
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
331
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
332
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
333
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
334
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
335
|
+
logging: this._options.logging,
|
|
336
|
+
});
|
|
337
|
+
if (_response.ok) {
|
|
338
|
+
return {
|
|
339
|
+
data: serializers.CreatePurchaseAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
340
|
+
unrecognizedObjectKeys: "passthrough",
|
|
341
|
+
allowUnrecognizedUnionMembers: true,
|
|
342
|
+
allowUnrecognizedEnumValues: true,
|
|
343
|
+
skipValidation: true,
|
|
344
|
+
breadcrumbsPrefix: ["response"],
|
|
345
|
+
}),
|
|
346
|
+
rawResponse: _response.rawResponse,
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
if (_response.error.reason === "status-code") {
|
|
350
|
+
switch (_response.error.statusCode) {
|
|
351
|
+
case 400:
|
|
352
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
353
|
+
case 401:
|
|
354
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
355
|
+
case 403:
|
|
356
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
357
|
+
case 404:
|
|
358
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
359
|
+
case 409:
|
|
360
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
361
|
+
case 422:
|
|
362
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 428:
|
|
364
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 429:
|
|
366
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
367
|
+
case 500:
|
|
368
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
369
|
+
case 501:
|
|
370
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
371
|
+
case 502:
|
|
372
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
373
|
+
case 503:
|
|
374
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
375
|
+
default:
|
|
376
|
+
throw new errors.NaturalError({
|
|
377
|
+
statusCode: _response.error.statusCode,
|
|
378
|
+
body: _response.error.body,
|
|
379
|
+
rawResponse: _response.rawResponse,
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/agentic-payments/purchases");
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Get credential issuance status without the credential
|
|
388
|
+
*
|
|
389
|
+
* @param {Natural.GetPurchaseAgenticPaymentsRequest} request
|
|
390
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
391
|
+
*
|
|
392
|
+
* @throws {@link Natural.BadRequestError}
|
|
393
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
394
|
+
* @throws {@link Natural.ForbiddenError}
|
|
395
|
+
* @throws {@link Natural.NotFoundError}
|
|
396
|
+
* @throws {@link Natural.ConflictError}
|
|
397
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
398
|
+
* @throws {@link Natural.PreconditionError}
|
|
399
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
400
|
+
* @throws {@link Natural.InternalServerError}
|
|
401
|
+
* @throws {@link Natural.NotImplementedError}
|
|
402
|
+
* @throws {@link Natural.BadGatewayError}
|
|
403
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
404
|
+
* @throws {@link errors.NaturalError}
|
|
405
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* await client.agenticPayments.getPurchase({
|
|
409
|
+
* purchaseId: "purchaseId"
|
|
410
|
+
* })
|
|
411
|
+
*/
|
|
412
|
+
getPurchase(request, requestOptions) {
|
|
413
|
+
return core.HttpResponsePromise.fromPromise(this.__getPurchase(request, requestOptions));
|
|
414
|
+
}
|
|
415
|
+
__getPurchase(request, requestOptions) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
418
|
+
const { purchaseId, customerPartyId } = request;
|
|
419
|
+
const _queryParams = {
|
|
420
|
+
customerPartyId,
|
|
421
|
+
};
|
|
422
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
423
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
424
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
425
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `agentic-payments/purchases/${core.url.encodePathParam(purchaseId)}`),
|
|
426
|
+
method: "GET",
|
|
427
|
+
headers: _headers,
|
|
428
|
+
queryString: core.url
|
|
429
|
+
.queryBuilder()
|
|
430
|
+
.addMany(_queryParams)
|
|
431
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
432
|
+
.build(),
|
|
433
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
434
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
435
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
436
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
437
|
+
logging: this._options.logging,
|
|
438
|
+
});
|
|
439
|
+
if (_response.ok) {
|
|
440
|
+
return {
|
|
441
|
+
data: serializers.GetPurchaseAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
442
|
+
unrecognizedObjectKeys: "passthrough",
|
|
443
|
+
allowUnrecognizedUnionMembers: true,
|
|
444
|
+
allowUnrecognizedEnumValues: true,
|
|
445
|
+
skipValidation: true,
|
|
446
|
+
breadcrumbsPrefix: ["response"],
|
|
447
|
+
}),
|
|
448
|
+
rawResponse: _response.rawResponse,
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
if (_response.error.reason === "status-code") {
|
|
452
|
+
switch (_response.error.statusCode) {
|
|
453
|
+
case 400:
|
|
454
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
455
|
+
case 401:
|
|
456
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
457
|
+
case 403:
|
|
458
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
459
|
+
case 404:
|
|
460
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
461
|
+
case 409:
|
|
462
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
463
|
+
case 422:
|
|
464
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
465
|
+
case 428:
|
|
466
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
467
|
+
case 429:
|
|
468
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
469
|
+
case 500:
|
|
470
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
471
|
+
case 501:
|
|
472
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
473
|
+
case 502:
|
|
474
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
475
|
+
case 503:
|
|
476
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
477
|
+
default:
|
|
478
|
+
throw new errors.NaturalError({
|
|
479
|
+
statusCode: _response.error.statusCode,
|
|
480
|
+
body: _response.error.body,
|
|
481
|
+
rawResponse: _response.rawResponse,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/agentic-payments/purchases/{purchaseId}");
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Return the purchase credential exactly once
|
|
490
|
+
*
|
|
491
|
+
* @param {Natural.ClaimPurchaseAgenticPaymentsRequest} request
|
|
492
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
493
|
+
*
|
|
494
|
+
* @throws {@link Natural.BadRequestError}
|
|
495
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
496
|
+
* @throws {@link Natural.ForbiddenError}
|
|
497
|
+
* @throws {@link Natural.NotFoundError}
|
|
498
|
+
* @throws {@link Natural.ConflictError}
|
|
499
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
500
|
+
* @throws {@link Natural.PreconditionError}
|
|
501
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
502
|
+
* @throws {@link Natural.InternalServerError}
|
|
503
|
+
* @throws {@link Natural.NotImplementedError}
|
|
504
|
+
* @throws {@link Natural.BadGatewayError}
|
|
505
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
506
|
+
* @throws {@link errors.NaturalError}
|
|
507
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
508
|
+
*
|
|
509
|
+
* @example
|
|
510
|
+
* await client.agenticPayments.claimPurchase({
|
|
511
|
+
* purchaseId: "purchaseId"
|
|
512
|
+
* })
|
|
513
|
+
*/
|
|
514
|
+
claimPurchase(request, requestOptions) {
|
|
515
|
+
return core.HttpResponsePromise.fromPromise(this.__claimPurchase(request, requestOptions));
|
|
516
|
+
}
|
|
517
|
+
__claimPurchase(request, requestOptions) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
520
|
+
const { purchaseId, customerPartyId } = request;
|
|
521
|
+
const _queryParams = {
|
|
522
|
+
customerPartyId,
|
|
523
|
+
};
|
|
524
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
525
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
526
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
527
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `agentic-payments/purchases/${core.url.encodePathParam(purchaseId)}/claim`),
|
|
528
|
+
method: "POST",
|
|
529
|
+
headers: _headers,
|
|
530
|
+
queryString: core.url
|
|
531
|
+
.queryBuilder()
|
|
532
|
+
.addMany(_queryParams)
|
|
533
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
534
|
+
.build(),
|
|
535
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
536
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
537
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
538
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
539
|
+
logging: this._options.logging,
|
|
540
|
+
});
|
|
541
|
+
if (_response.ok) {
|
|
542
|
+
return {
|
|
543
|
+
data: serializers.ClaimPurchaseAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
544
|
+
unrecognizedObjectKeys: "passthrough",
|
|
545
|
+
allowUnrecognizedUnionMembers: true,
|
|
546
|
+
allowUnrecognizedEnumValues: true,
|
|
547
|
+
skipValidation: true,
|
|
548
|
+
breadcrumbsPrefix: ["response"],
|
|
549
|
+
}),
|
|
550
|
+
rawResponse: _response.rawResponse,
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
if (_response.error.reason === "status-code") {
|
|
554
|
+
switch (_response.error.statusCode) {
|
|
555
|
+
case 400:
|
|
556
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
557
|
+
case 401:
|
|
558
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
559
|
+
case 403:
|
|
560
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
561
|
+
case 404:
|
|
562
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
563
|
+
case 409:
|
|
564
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
565
|
+
case 422:
|
|
566
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
567
|
+
case 428:
|
|
568
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
569
|
+
case 429:
|
|
570
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
571
|
+
case 500:
|
|
572
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
573
|
+
case 501:
|
|
574
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
575
|
+
case 502:
|
|
576
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
577
|
+
case 503:
|
|
578
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
579
|
+
default:
|
|
580
|
+
throw new errors.NaturalError({
|
|
581
|
+
statusCode: _response.error.statusCode,
|
|
582
|
+
body: _response.error.body,
|
|
583
|
+
rawResponse: _response.rawResponse,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/agentic-payments/purchases/{purchaseId}/claim");
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Release budget reserved for a purchase that has not been claimed
|
|
592
|
+
*
|
|
593
|
+
* @param {Natural.CancelPurchaseAgenticPaymentsRequest} request
|
|
594
|
+
* @param {AgenticPaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
595
|
+
*
|
|
596
|
+
* @throws {@link Natural.BadRequestError}
|
|
597
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
598
|
+
* @throws {@link Natural.ForbiddenError}
|
|
599
|
+
* @throws {@link Natural.NotFoundError}
|
|
600
|
+
* @throws {@link Natural.ConflictError}
|
|
601
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
602
|
+
* @throws {@link Natural.PreconditionError}
|
|
603
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
604
|
+
* @throws {@link Natural.InternalServerError}
|
|
605
|
+
* @throws {@link Natural.NotImplementedError}
|
|
606
|
+
* @throws {@link Natural.BadGatewayError}
|
|
607
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
608
|
+
* @throws {@link errors.NaturalError}
|
|
609
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
610
|
+
*
|
|
611
|
+
* @example
|
|
612
|
+
* await client.agenticPayments.cancelPurchase({
|
|
613
|
+
* purchaseId: "purchaseId"
|
|
614
|
+
* })
|
|
615
|
+
*/
|
|
616
|
+
cancelPurchase(request, requestOptions) {
|
|
617
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelPurchase(request, requestOptions));
|
|
618
|
+
}
|
|
619
|
+
__cancelPurchase(request, requestOptions) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
622
|
+
const { purchaseId, customerPartyId } = request;
|
|
623
|
+
const _queryParams = {
|
|
624
|
+
customerPartyId,
|
|
625
|
+
};
|
|
626
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
627
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
628
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
629
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `agentic-payments/purchases/${core.url.encodePathParam(purchaseId)}/cancel`),
|
|
630
|
+
method: "POST",
|
|
631
|
+
headers: _headers,
|
|
632
|
+
queryString: core.url
|
|
633
|
+
.queryBuilder()
|
|
634
|
+
.addMany(_queryParams)
|
|
635
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
636
|
+
.build(),
|
|
637
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
638
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
639
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
640
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
641
|
+
logging: this._options.logging,
|
|
642
|
+
});
|
|
643
|
+
if (_response.ok) {
|
|
644
|
+
return {
|
|
645
|
+
data: serializers.CancelPurchaseAgenticPaymentsResponse.parseOrThrow(_response.body, {
|
|
646
|
+
unrecognizedObjectKeys: "passthrough",
|
|
647
|
+
allowUnrecognizedUnionMembers: true,
|
|
648
|
+
allowUnrecognizedEnumValues: true,
|
|
649
|
+
skipValidation: true,
|
|
650
|
+
breadcrumbsPrefix: ["response"],
|
|
651
|
+
}),
|
|
652
|
+
rawResponse: _response.rawResponse,
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
if (_response.error.reason === "status-code") {
|
|
656
|
+
switch (_response.error.statusCode) {
|
|
657
|
+
case 400:
|
|
658
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
659
|
+
case 401:
|
|
660
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
661
|
+
case 403:
|
|
662
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
663
|
+
case 404:
|
|
664
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
665
|
+
case 409:
|
|
666
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
667
|
+
case 422:
|
|
668
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
669
|
+
case 428:
|
|
670
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
671
|
+
case 429:
|
|
672
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
673
|
+
case 500:
|
|
674
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
675
|
+
case 501:
|
|
676
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
677
|
+
case 502:
|
|
678
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
679
|
+
case 503:
|
|
680
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
681
|
+
default:
|
|
682
|
+
throw new errors.NaturalError({
|
|
683
|
+
statusCode: _response.error.statusCode,
|
|
684
|
+
body: _response.error.body,
|
|
685
|
+
rawResponse: _response.rawResponse,
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/agentic-payments/purchases/{purchaseId}/cancel");
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
exports.AgenticPaymentsClient = AgenticPaymentsClient;
|