@naturalpay/sdk 1.6.21 → 1.6.23
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/api/resources/ach/client/requests/NewAchParams.d.ts +1 -1
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.d.ts +3 -1
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.d.ts +7 -0
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.js +3 -0
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.d.ts +5 -0
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.js +8 -0
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.d.ts +1 -1
- package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.js +1 -1
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributes.d.ts +3 -1
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.d.ts +7 -0
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.js +3 -0
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.d.ts +5 -0
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.js +8 -0
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.d.ts +1 -1
- package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.js +1 -1
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.d.ts +3 -1
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.d.ts +7 -0
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.js +3 -0
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.d.ts +5 -0
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.js +8 -0
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesStatus.d.ts +1 -1
- package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesStatus.js +1 -1
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.d.ts +3 -1
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.d.ts +7 -0
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.js +3 -0
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.d.ts +5 -0
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.js +8 -0
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.d.ts +1 -1
- package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.js +1 -1
- package/dist/cjs/api/resources/chargebacks/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/chargebacks/types/index.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/client/Client.js +11 -3
- package/dist/cjs/api/resources/externalAccounts/client/requests/GetExternalAccountsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/externalAccounts/client/requests/ListExternalAccountsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/client/Client.js +7 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +1 -1
- package/dist/cjs/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.ts +1 -1
- package/dist/cjs/api/resources/paymentRequests/types/IncomingReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.ts +7 -0
- package/dist/cjs/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.js +10 -0
- package/dist/cjs/api/resources/paymentRequests/types/NewPayReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.js +1 -0
- package/dist/cjs/api/resources/payments/client/requests/NewPaymentParams.d.ts +1 -1
- package/dist/cjs/api/resources/realtime/client/requests/CreateRealtimeRequest.d.ts +1 -1
- package/dist/cjs/api/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsCardPayment.d.ts +1 -1
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.d.ts +8 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.js +3 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.d.ts +9 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.js +3 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.d.ts +5 -0
- package/dist/cjs/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.js +8 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.d.ts +2 -1
- package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.js +2 -1
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsCardPayment.d.ts +1 -1
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.d.ts +8 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.js +3 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.d.ts +9 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.js +3 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.d.ts +5 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.js +8 -0
- package/dist/cjs/api/resources/transactions/types/TxnAttrs.d.ts +2 -2
- package/dist/cjs/api/resources/transactions/types/TxnDetailAttrs.d.ts +2 -2
- package/dist/cjs/api/resources/transactions/types/TxnDetailRels.d.ts +3 -1
- package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.d.ts +2 -1
- package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.js +2 -1
- package/dist/cjs/api/resources/transactions/types/TxnRels.d.ts +3 -1
- package/dist/cjs/api/resources/transactions/types/TxnTransactionType.d.ts +2 -1
- package/dist/cjs/api/resources/transactions/types/TxnTransactionType.js +2 -1
- package/dist/cjs/api/resources/transactions/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/transactions/types/index.js +6 -0
- package/dist/cjs/api/resources/transfers/client/requests/NewDepositParams.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/requests/NewWithdrawalParams.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/wallets/client/Client.js +4 -4
- package/dist/cjs/api/resources/wallets/client/requests/AttachAgentWalletsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/AttachAgentWalletsResponseDataAttributes.d.ts +6 -6
- package/dist/cjs/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.d.ts +3 -0
- package/dist/cjs/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.d.ts +6 -0
- package/dist/cjs/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.js +9 -0
- package/dist/cjs/api/resources/wallets/types/CreateWalletsResponseDataAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/FreezeWalletsResponseDataAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/ListAgentsWalletsResponseDataItemAttributes.d.ts +6 -6
- package/dist/cjs/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.d.ts +3 -0
- package/dist/cjs/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.d.ts +6 -0
- package/dist/cjs/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.js +9 -0
- package/dist/cjs/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataAttributes.d.ts +6 -6
- package/dist/cjs/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.d.ts +3 -0
- package/dist/cjs/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.d.ts +6 -0
- package/dist/cjs/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.js +9 -0
- package/dist/cjs/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/UpdateWalletsResponseDataAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/WalletAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/WalletDetailAttrs.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/wallets/types/index.js +3 -0
- package/dist/cjs/api/resources/wire/client/requests/CreateWireRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.d.ts +11 -0
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.js +43 -0
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.js +39 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.d.ts +11 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.js +43 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.js +39 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.js +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.d.ts +11 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.js +43 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.js +39 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.d.ts +11 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.js +43 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.d.ts +7 -0
- package/dist/cjs/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.js +39 -0
- package/dist/cjs/serialization/resources/chargebacks/types/index.d.ts +8 -0
- package/dist/cjs/serialization/resources/chargebacks/types/index.js +8 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.ts +7 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.js +39 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.d.ts +10 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.js +42 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.d.ts +11 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.js +43 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.js +39 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.js +1 -1
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.d.ts +10 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.js +42 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.d.ts +11 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.js +43 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.js +39 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailRels.js +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.js +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnRels.js +2 -0
- package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.js +1 -1
- package/dist/cjs/serialization/resources/transactions/types/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/transactions/types/index.js +6 -0
- package/dist/cjs/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.d.ts +7 -0
- package/dist/cjs/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.js +39 -0
- package/dist/cjs/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.d.ts +7 -0
- package/dist/cjs/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.js +39 -0
- package/dist/cjs/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.d.ts +2 -0
- package/dist/cjs/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.js +2 -0
- package/dist/cjs/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.d.ts +7 -0
- package/dist/cjs/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.js +39 -0
- package/dist/cjs/serialization/resources/wallets/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/wallets/types/index.js +3 -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/api/resources/ach/client/requests/NewAchParams.d.mts +1 -1
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.d.mts +3 -1
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.d.mts +7 -0
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.mjs +2 -0
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.d.mts +5 -0
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.mjs +5 -0
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.d.mts +1 -1
- package/dist/esm/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.mjs +1 -1
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributes.d.mts +3 -1
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.d.mts +7 -0
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.mjs +2 -0
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.d.mts +5 -0
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.mjs +5 -0
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.d.mts +1 -1
- package/dist/esm/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.mjs +1 -1
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.d.mts +3 -1
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.d.mts +7 -0
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.mjs +2 -0
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.d.mts +5 -0
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.mjs +5 -0
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesStatus.d.mts +1 -1
- package/dist/esm/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesStatus.mjs +1 -1
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.d.mts +3 -1
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.d.mts +7 -0
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.mjs +2 -0
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.d.mts +5 -0
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.mjs +5 -0
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.d.mts +1 -1
- package/dist/esm/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.mjs +1 -1
- package/dist/esm/api/resources/chargebacks/types/index.d.mts +8 -0
- package/dist/esm/api/resources/chargebacks/types/index.mjs +8 -0
- package/dist/esm/api/resources/externalAccounts/client/Client.mjs +11 -3
- package/dist/esm/api/resources/externalAccounts/client/requests/GetExternalAccountsRequest.d.mts +1 -0
- package/dist/esm/api/resources/externalAccounts/client/requests/ListExternalAccountsRequest.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/client/Client.mjs +7 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +1 -1
- package/dist/esm/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/FulfillPaymentRequestsRequestPaymentSourceWallet.d.mts +1 -1
- package/dist/esm/api/resources/paymentRequests/types/IncomingReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.mts +7 -0
- package/dist/esm/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.mjs +7 -0
- package/dist/esm/api/resources/paymentRequests/types/NewPayReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/index.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/types/index.mjs +1 -0
- package/dist/esm/api/resources/payments/client/requests/NewPaymentParams.d.mts +1 -1
- package/dist/esm/api/resources/realtime/client/requests/CreateRealtimeRequest.d.mts +1 -1
- package/dist/esm/api/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsCardPayment.d.mts +1 -1
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.d.mts +8 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.d.mts +9 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.d.mts +5 -0
- package/dist/esm/api/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.mjs +5 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.d.mts +2 -1
- package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.mjs +2 -1
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsCardPayment.d.mts +1 -1
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.d.mts +8 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.d.mts +9 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.d.mts +5 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.mjs +5 -0
- package/dist/esm/api/resources/transactions/types/TxnAttrs.d.mts +2 -2
- package/dist/esm/api/resources/transactions/types/TxnDetailAttrs.d.mts +2 -2
- package/dist/esm/api/resources/transactions/types/TxnDetailRels.d.mts +3 -1
- package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.d.mts +2 -1
- package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.mjs +2 -1
- package/dist/esm/api/resources/transactions/types/TxnRels.d.mts +3 -1
- package/dist/esm/api/resources/transactions/types/TxnTransactionType.d.mts +2 -1
- package/dist/esm/api/resources/transactions/types/TxnTransactionType.mjs +2 -1
- package/dist/esm/api/resources/transactions/types/index.d.mts +6 -0
- package/dist/esm/api/resources/transactions/types/index.mjs +6 -0
- package/dist/esm/api/resources/transfers/client/requests/NewDepositParams.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/requests/NewWithdrawalParams.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/wallets/client/Client.mjs +4 -4
- package/dist/esm/api/resources/wallets/client/requests/AttachAgentWalletsRequest.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/AttachAgentWalletsResponseDataAttributes.d.mts +6 -6
- package/dist/esm/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.d.mts +3 -0
- package/dist/esm/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.d.mts +6 -0
- package/dist/esm/api/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.mjs +6 -0
- package/dist/esm/api/resources/wallets/types/CreateWalletsResponseDataAttributes.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/FreezeWalletsResponseDataAttributes.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/ListAgentsWalletsResponseDataItemAttributes.d.mts +6 -6
- package/dist/esm/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.d.mts +3 -0
- package/dist/esm/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.d.mts +6 -0
- package/dist/esm/api/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.mjs +6 -0
- package/dist/esm/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataAttributes.d.mts +6 -6
- package/dist/esm/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.d.mts +3 -0
- package/dist/esm/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.d.mts +6 -0
- package/dist/esm/api/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.mjs +6 -0
- package/dist/esm/api/resources/wallets/types/SetDefaultWalletsResponseDataAttributes.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/UnfreezeWalletsResponseDataAttributes.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/UpdateWalletsResponseDataAttributes.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/WalletAttrs.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/WalletDetailAttrs.d.mts +1 -1
- package/dist/esm/api/resources/wallets/types/index.d.mts +3 -0
- package/dist/esm/api/resources/wallets/types/index.mjs +3 -0
- package/dist/esm/api/resources/wire/client/requests/CreateWireRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.d.mts +11 -0
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.mjs +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFeeCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.d.mts +11 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFee.mjs +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.d.mts +11 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.mjs +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFeeCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.d.mts +11 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.mjs +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.d.mts +7 -0
- package/dist/esm/serialization/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFeeCurrency.mjs +3 -0
- package/dist/esm/serialization/resources/chargebacks/types/index.d.mts +8 -0
- package/dist/esm/serialization/resources/chargebacks/types/index.mjs +8 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.mts +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.mjs +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.d.mts +10 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargeback.mjs +6 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.d.mts +11 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackData.mjs +7 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/transactions/types/GetTransactionsResponseDataRelationshipsChargebackDataType.mjs +3 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.mjs +1 -1
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.d.mts +10 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargeback.mjs +6 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.d.mts +11 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackData.mjs +7 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsResponseDataItemRelationshipsChargebackDataType.mjs +3 -0
- package/dist/esm/serialization/resources/transactions/types/TxnDetailRels.d.mts +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnDetailRels.mjs +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.mjs +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnRels.d.mts +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnRels.mjs +2 -0
- package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.mjs +1 -1
- package/dist/esm/serialization/resources/transactions/types/index.d.mts +6 -0
- package/dist/esm/serialization/resources/transactions/types/index.mjs +6 -0
- package/dist/esm/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccess.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.d.mts +7 -0
- package/dist/esm/serialization/resources/wallets/types/AttachAgentWalletsResponseDataMetaWalletAccessAccessType.mjs +3 -0
- package/dist/esm/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccess.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.d.mts +7 -0
- package/dist/esm/serialization/resources/wallets/types/ListAgentsWalletsResponseDataItemMetaWalletAccessAccessType.mjs +3 -0
- package/dist/esm/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.d.mts +2 -0
- package/dist/esm/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccess.mjs +2 -0
- package/dist/esm/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.d.mts +7 -0
- package/dist/esm/serialization/resources/wallets/types/SetAgentDefaultWalletWalletsResponseDataMetaWalletAccessAccessType.mjs +3 -0
- package/dist/esm/serialization/resources/wallets/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/wallets/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +4 -4
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.6.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.23",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.23",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -23,7 +23,7 @@ export interface NewAchParams {
|
|
|
23
23
|
amount: number;
|
|
24
24
|
/** Currency code. Defaults to USD. */
|
|
25
25
|
currency?: Natural.NewAchParamsCurrency;
|
|
26
|
-
/** Wallet (wal_*)
|
|
26
|
+
/** Wallet (wal_*) that funds an ACH credit or receives an ACH debit. Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
|
|
27
27
|
walletId?: string;
|
|
28
28
|
/** External party account (epa_*) to pay. */
|
|
29
29
|
externalPartyAccountId: string;
|
package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributes.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export interface AcceptChargebacksResponseDataAttributes {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
/** Reported ISO 4217 currency of the disputed amount. */
|
|
6
6
|
currency: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Natural's fee for this case, billed once when the case opens. It can be billed before the disputed amount is withheld and isn't refunded if you win. Null when no fee applies or the fee was voided. */
|
|
8
|
+
fee: Natural.AcceptChargebacksResponseDataAttributesFee | null;
|
|
9
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
8
10
|
status: Natural.AcceptChargebacksResponseDataAttributesStatus;
|
|
9
11
|
/** Card network that reported the case. */
|
|
10
12
|
network: Natural.AcceptChargebacksResponseDataAttributesNetwork;
|
package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesFee.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface AcceptChargebacksResponseDataAttributesFee {
|
|
3
|
+
/** Fee amount in cents. */
|
|
4
|
+
amount: number;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
currency: Natural.AcceptChargebacksResponseDataAttributesFeeCurrency;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Currency of the fee. */
|
|
2
|
+
export declare const AcceptChargebacksResponseDataAttributesFeeCurrency: {
|
|
3
|
+
readonly Usd: "USD";
|
|
4
|
+
};
|
|
5
|
+
export type AcceptChargebacksResponseDataAttributesFeeCurrency = (typeof AcceptChargebacksResponseDataAttributesFeeCurrency)[keyof typeof AcceptChargebacksResponseDataAttributesFeeCurrency];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AcceptChargebacksResponseDataAttributesFeeCurrency = void 0;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
exports.AcceptChargebacksResponseDataAttributesFeeCurrency = {
|
|
7
|
+
Usd: "USD",
|
|
8
|
+
};
|
package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
1
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
2
2
|
export declare const AcceptChargebacksResponseDataAttributesStatus: {
|
|
3
3
|
readonly NeedsResponse: "needsResponse";
|
|
4
4
|
readonly Expired: "expired";
|
package/dist/cjs/api/resources/chargebacks/types/AcceptChargebacksResponseDataAttributesStatus.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AcceptChargebacksResponseDataAttributesStatus = void 0;
|
|
5
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
5
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
6
6
|
exports.AcceptChargebacksResponseDataAttributesStatus = {
|
|
7
7
|
NeedsResponse: "needsResponse",
|
|
8
8
|
Expired: "expired",
|
|
@@ -4,7 +4,9 @@ export interface GetChargebacksResponseDataAttributes {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
/** Reported ISO 4217 currency of the disputed amount. */
|
|
6
6
|
currency: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Natural's fee for this case, billed once when the case opens. It can be billed before the disputed amount is withheld and isn't refunded if you win. Null when no fee applies or the fee was voided. */
|
|
8
|
+
fee: Natural.GetChargebacksResponseDataAttributesFee | null;
|
|
9
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
8
10
|
status: Natural.GetChargebacksResponseDataAttributesStatus;
|
|
9
11
|
/** Card network that reported the case. */
|
|
10
12
|
network: Natural.GetChargebacksResponseDataAttributesNetwork;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Currency of the fee. */
|
|
2
|
+
export declare const GetChargebacksResponseDataAttributesFeeCurrency: {
|
|
3
|
+
readonly Usd: "USD";
|
|
4
|
+
};
|
|
5
|
+
export type GetChargebacksResponseDataAttributesFeeCurrency = (typeof GetChargebacksResponseDataAttributesFeeCurrency)[keyof typeof GetChargebacksResponseDataAttributesFeeCurrency];
|
package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesFeeCurrency.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GetChargebacksResponseDataAttributesFeeCurrency = void 0;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
exports.GetChargebacksResponseDataAttributesFeeCurrency = {
|
|
7
|
+
Usd: "USD",
|
|
8
|
+
};
|
package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
1
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
2
2
|
export declare const GetChargebacksResponseDataAttributesStatus: {
|
|
3
3
|
readonly NeedsResponse: "needsResponse";
|
|
4
4
|
readonly Expired: "expired";
|
package/dist/cjs/api/resources/chargebacks/types/GetChargebacksResponseDataAttributesStatus.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GetChargebacksResponseDataAttributesStatus = void 0;
|
|
5
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
5
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
6
6
|
exports.GetChargebacksResponseDataAttributesStatus = {
|
|
7
7
|
NeedsResponse: "needsResponse",
|
|
8
8
|
Expired: "expired",
|
package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributes.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export interface ListChargebacksResponseDataItemAttributes {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
/** Reported ISO 4217 currency of the disputed amount. */
|
|
6
6
|
currency: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Natural's fee for this case, billed once when the case opens. It can be billed before the disputed amount is withheld and isn't refunded if you win. Null when no fee applies or the fee was voided. */
|
|
8
|
+
fee: Natural.ListChargebacksResponseDataItemAttributesFee | null;
|
|
9
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
8
10
|
status: Natural.ListChargebacksResponseDataItemAttributesStatus;
|
|
9
11
|
/** Card network that reported the case. */
|
|
10
12
|
network: Natural.ListChargebacksResponseDataItemAttributesNetwork;
|
package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesFee.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface ListChargebacksResponseDataItemAttributesFee {
|
|
3
|
+
/** Fee amount in cents. */
|
|
4
|
+
amount: number;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
currency: Natural.ListChargebacksResponseDataItemAttributesFeeCurrency;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Currency of the fee. */
|
|
2
|
+
export declare const ListChargebacksResponseDataItemAttributesFeeCurrency: {
|
|
3
|
+
readonly Usd: "USD";
|
|
4
|
+
};
|
|
5
|
+
export type ListChargebacksResponseDataItemAttributesFeeCurrency = (typeof ListChargebacksResponseDataItemAttributesFeeCurrency)[keyof typeof ListChargebacksResponseDataItemAttributesFeeCurrency];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListChargebacksResponseDataItemAttributesFeeCurrency = void 0;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
exports.ListChargebacksResponseDataItemAttributesFeeCurrency = {
|
|
7
|
+
Usd: "USD",
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
1
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
2
2
|
export declare const ListChargebacksResponseDataItemAttributesStatus: {
|
|
3
3
|
readonly NeedsResponse: "needsResponse";
|
|
4
4
|
readonly Expired: "expired";
|
package/dist/cjs/api/resources/chargebacks/types/ListChargebacksResponseDataItemAttributesStatus.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ListChargebacksResponseDataItemAttributesStatus = void 0;
|
|
5
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
5
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
6
6
|
exports.ListChargebacksResponseDataItemAttributesStatus = {
|
|
7
7
|
NeedsResponse: "needsResponse",
|
|
8
8
|
Expired: "expired",
|
package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributes.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export interface SubmitChargebacksResponseDataAttributes {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
/** Reported ISO 4217 currency of the disputed amount. */
|
|
6
6
|
currency: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Natural's fee for this case, billed once when the case opens. It can be billed before the disputed amount is withheld and isn't refunded if you win. Null when no fee applies or the fee was voided. */
|
|
8
|
+
fee: Natural.SubmitChargebacksResponseDataAttributesFee | null;
|
|
9
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
8
10
|
status: Natural.SubmitChargebacksResponseDataAttributesStatus;
|
|
9
11
|
/** Card network that reported the case. */
|
|
10
12
|
network: Natural.SubmitChargebacksResponseDataAttributesNetwork;
|
package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesFee.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface SubmitChargebacksResponseDataAttributesFee {
|
|
3
|
+
/** Fee amount in cents. */
|
|
4
|
+
amount: number;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
currency: Natural.SubmitChargebacksResponseDataAttributesFeeCurrency;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Currency of the fee. */
|
|
2
|
+
export declare const SubmitChargebacksResponseDataAttributesFeeCurrency: {
|
|
3
|
+
readonly Usd: "USD";
|
|
4
|
+
};
|
|
5
|
+
export type SubmitChargebacksResponseDataAttributesFeeCurrency = (typeof SubmitChargebacksResponseDataAttributesFeeCurrency)[keyof typeof SubmitChargebacksResponseDataAttributesFeeCurrency];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SubmitChargebacksResponseDataAttributesFeeCurrency = void 0;
|
|
5
|
+
/** Currency of the fee. */
|
|
6
|
+
exports.SubmitChargebacksResponseDataAttributesFeeCurrency = {
|
|
7
|
+
Usd: "USD",
|
|
8
|
+
};
|
package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
1
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
2
2
|
export declare const SubmitChargebacksResponseDataAttributesStatus: {
|
|
3
3
|
readonly NeedsResponse: "needsResponse";
|
|
4
4
|
readonly Expired: "expired";
|
package/dist/cjs/api/resources/chargebacks/types/SubmitChargebacksResponseDataAttributesStatus.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SubmitChargebacksResponseDataAttributesStatus = void 0;
|
|
5
|
-
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. */
|
|
5
|
+
/** Response and outcome state. Submitted means Natural accepted the response. Under review requires provider acknowledgment. Accepted and expired are not provider-reported losses. While the case is needsResponse, submitted, or underReview, the disputed amount is withheld from your available balance. The hold can post shortly after the case is created. Won returns the amount. Lost, accepted, and expired do not. */
|
|
6
6
|
exports.SubmitChargebacksResponseDataAttributesStatus = {
|
|
7
7
|
NeedsResponse: "needsResponse",
|
|
8
8
|
Expired: "expired",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./AcceptChargebacksResponse.js";
|
|
2
2
|
export * from "./AcceptChargebacksResponseData.js";
|
|
3
3
|
export * from "./AcceptChargebacksResponseDataAttributes.js";
|
|
4
|
+
export * from "./AcceptChargebacksResponseDataAttributesFee.js";
|
|
5
|
+
export * from "./AcceptChargebacksResponseDataAttributesFeeCurrency.js";
|
|
4
6
|
export * from "./AcceptChargebacksResponseDataAttributesNetwork.js";
|
|
5
7
|
export * from "./AcceptChargebacksResponseDataAttributesReason.js";
|
|
6
8
|
export * from "./AcceptChargebacksResponseDataAttributesReasonCategory.js";
|
|
@@ -19,6 +21,8 @@ export * from "./AcceptChargebacksResponseDataType.js";
|
|
|
19
21
|
export * from "./GetChargebacksResponse.js";
|
|
20
22
|
export * from "./GetChargebacksResponseData.js";
|
|
21
23
|
export * from "./GetChargebacksResponseDataAttributes.js";
|
|
24
|
+
export * from "./GetChargebacksResponseDataAttributesFee.js";
|
|
25
|
+
export * from "./GetChargebacksResponseDataAttributesFeeCurrency.js";
|
|
22
26
|
export * from "./GetChargebacksResponseDataAttributesNetwork.js";
|
|
23
27
|
export * from "./GetChargebacksResponseDataAttributesReason.js";
|
|
24
28
|
export * from "./GetChargebacksResponseDataAttributesReasonCategory.js";
|
|
@@ -53,6 +57,8 @@ export * from "./ListChargebacksRequestStatus.js";
|
|
|
53
57
|
export * from "./ListChargebacksResponse.js";
|
|
54
58
|
export * from "./ListChargebacksResponseDataItem.js";
|
|
55
59
|
export * from "./ListChargebacksResponseDataItemAttributes.js";
|
|
60
|
+
export * from "./ListChargebacksResponseDataItemAttributesFee.js";
|
|
61
|
+
export * from "./ListChargebacksResponseDataItemAttributesFeeCurrency.js";
|
|
56
62
|
export * from "./ListChargebacksResponseDataItemAttributesNetwork.js";
|
|
57
63
|
export * from "./ListChargebacksResponseDataItemAttributesReason.js";
|
|
58
64
|
export * from "./ListChargebacksResponseDataItemAttributesReasonCategory.js";
|
|
@@ -73,6 +79,8 @@ export * from "./ListChargebacksResponseMetaPagination.js";
|
|
|
73
79
|
export * from "./SubmitChargebacksResponse.js";
|
|
74
80
|
export * from "./SubmitChargebacksResponseData.js";
|
|
75
81
|
export * from "./SubmitChargebacksResponseDataAttributes.js";
|
|
82
|
+
export * from "./SubmitChargebacksResponseDataAttributesFee.js";
|
|
83
|
+
export * from "./SubmitChargebacksResponseDataAttributesFeeCurrency.js";
|
|
76
84
|
export * from "./SubmitChargebacksResponseDataAttributesNetwork.js";
|
|
77
85
|
export * from "./SubmitChargebacksResponseDataAttributesReason.js";
|
|
78
86
|
export * from "./SubmitChargebacksResponseDataAttributesReasonCategory.js";
|
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AcceptChargebacksResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./AcceptChargebacksResponseData.js"), exports);
|
|
19
19
|
__exportStar(require("./AcceptChargebacksResponseDataAttributes.js"), exports);
|
|
20
|
+
__exportStar(require("./AcceptChargebacksResponseDataAttributesFee.js"), exports);
|
|
21
|
+
__exportStar(require("./AcceptChargebacksResponseDataAttributesFeeCurrency.js"), exports);
|
|
20
22
|
__exportStar(require("./AcceptChargebacksResponseDataAttributesNetwork.js"), exports);
|
|
21
23
|
__exportStar(require("./AcceptChargebacksResponseDataAttributesReason.js"), exports);
|
|
22
24
|
__exportStar(require("./AcceptChargebacksResponseDataAttributesReasonCategory.js"), exports);
|
|
@@ -35,6 +37,8 @@ __exportStar(require("./AcceptChargebacksResponseDataType.js"), exports);
|
|
|
35
37
|
__exportStar(require("./GetChargebacksResponse.js"), exports);
|
|
36
38
|
__exportStar(require("./GetChargebacksResponseData.js"), exports);
|
|
37
39
|
__exportStar(require("./GetChargebacksResponseDataAttributes.js"), exports);
|
|
40
|
+
__exportStar(require("./GetChargebacksResponseDataAttributesFee.js"), exports);
|
|
41
|
+
__exportStar(require("./GetChargebacksResponseDataAttributesFeeCurrency.js"), exports);
|
|
38
42
|
__exportStar(require("./GetChargebacksResponseDataAttributesNetwork.js"), exports);
|
|
39
43
|
__exportStar(require("./GetChargebacksResponseDataAttributesReason.js"), exports);
|
|
40
44
|
__exportStar(require("./GetChargebacksResponseDataAttributesReasonCategory.js"), exports);
|
|
@@ -69,6 +73,8 @@ __exportStar(require("./ListChargebacksRequestStatus.js"), exports);
|
|
|
69
73
|
__exportStar(require("./ListChargebacksResponse.js"), exports);
|
|
70
74
|
__exportStar(require("./ListChargebacksResponseDataItem.js"), exports);
|
|
71
75
|
__exportStar(require("./ListChargebacksResponseDataItemAttributes.js"), exports);
|
|
76
|
+
__exportStar(require("./ListChargebacksResponseDataItemAttributesFee.js"), exports);
|
|
77
|
+
__exportStar(require("./ListChargebacksResponseDataItemAttributesFeeCurrency.js"), exports);
|
|
72
78
|
__exportStar(require("./ListChargebacksResponseDataItemAttributesNetwork.js"), exports);
|
|
73
79
|
__exportStar(require("./ListChargebacksResponseDataItemAttributesReason.js"), exports);
|
|
74
80
|
__exportStar(require("./ListChargebacksResponseDataItemAttributesReasonCategory.js"), exports);
|
|
@@ -89,6 +95,8 @@ __exportStar(require("./ListChargebacksResponseMetaPagination.js"), exports);
|
|
|
89
95
|
__exportStar(require("./SubmitChargebacksResponse.js"), exports);
|
|
90
96
|
__exportStar(require("./SubmitChargebacksResponseData.js"), exports);
|
|
91
97
|
__exportStar(require("./SubmitChargebacksResponseDataAttributes.js"), exports);
|
|
98
|
+
__exportStar(require("./SubmitChargebacksResponseDataAttributesFee.js"), exports);
|
|
99
|
+
__exportStar(require("./SubmitChargebacksResponseDataAttributesFeeCurrency.js"), exports);
|
|
92
100
|
__exportStar(require("./SubmitChargebacksResponseDataAttributesNetwork.js"), exports);
|
|
93
101
|
__exportStar(require("./SubmitChargebacksResponseDataAttributesReason.js"), exports);
|
|
94
102
|
__exportStar(require("./SubmitChargebacksResponseDataAttributesReasonCategory.js"), exports);
|
|
@@ -211,10 +211,11 @@ class ExternalAccountsClient {
|
|
|
211
211
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
212
212
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
213
213
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
214
|
-
const { cursor, limit } = request;
|
|
214
|
+
const { cursor, limit, customerPartyId } = request;
|
|
215
215
|
const _queryParams = {
|
|
216
216
|
cursor,
|
|
217
217
|
limit,
|
|
218
|
+
customerPartyId,
|
|
218
219
|
};
|
|
219
220
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
220
221
|
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)({
|
|
@@ -329,14 +330,21 @@ class ExternalAccountsClient {
|
|
|
329
330
|
__get(request, requestOptions) {
|
|
330
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
331
332
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
332
|
-
const { externalAccountId } = request;
|
|
333
|
+
const { externalAccountId, customerPartyId } = request;
|
|
334
|
+
const _queryParams = {
|
|
335
|
+
customerPartyId,
|
|
336
|
+
};
|
|
333
337
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
334
338
|
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);
|
|
335
339
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
336
340
|
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, `external-accounts/${core.url.encodePathParam(externalAccountId)}`),
|
|
337
341
|
method: "GET",
|
|
338
342
|
headers: _headers,
|
|
339
|
-
queryString: core.url
|
|
343
|
+
queryString: core.url
|
|
344
|
+
.queryBuilder()
|
|
345
|
+
.addMany(_queryParams)
|
|
346
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
347
|
+
.build(),
|
|
340
348
|
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,
|
|
341
349
|
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,
|
|
342
350
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -100,7 +100,7 @@ class PaymentRequestsClient {
|
|
|
100
100
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
101
101
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
103
|
-
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
103
|
+
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, group, initiatedByAgent, addressedToAgent, } = request;
|
|
104
104
|
const _queryParams = {
|
|
105
105
|
limit,
|
|
106
106
|
cursor,
|
|
@@ -127,6 +127,12 @@ class PaymentRequestsClient {
|
|
|
127
127
|
return typeof mapped === "string" ? mapped : (0, json_js_1.toJson)(mapped);
|
|
128
128
|
})()
|
|
129
129
|
: undefined,
|
|
130
|
+
group: group != null
|
|
131
|
+
? serializers.ListPaymentRequestsRequestGroup.jsonOrThrow(group, {
|
|
132
|
+
unrecognizedObjectKeys: "strip",
|
|
133
|
+
omitUndefined: true,
|
|
134
|
+
})
|
|
135
|
+
: undefined,
|
|
130
136
|
initiatedByAgent,
|
|
131
137
|
addressedToAgent,
|
|
132
138
|
};
|
package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface ListPaymentRequestsRequest {
|
|
|
9
9
|
customerPartyId?: string;
|
|
10
10
|
includeCompleted?: Natural.ListPaymentRequestsRequestIncludeCompleted;
|
|
11
11
|
includeCanceled?: Natural.ListPaymentRequestsRequestIncludeCanceled;
|
|
12
|
+
group?: Natural.ListPaymentRequestsRequestGroup;
|
|
12
13
|
initiatedByAgent?: string;
|
|
13
14
|
addressedToAgent?: string;
|
|
14
15
|
}
|
|
@@ -21,7 +21,7 @@ export interface NewPayReqParams {
|
|
|
21
21
|
idempotencyKey: string;
|
|
22
22
|
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
23
23
|
customerPartyId?: string;
|
|
24
|
-
/** Wallet (wal_*) that should receive the funds. Omit to use the
|
|
24
|
+
/** Wallet (wal_*) that should receive the funds. Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
|
|
25
25
|
walletId?: string;
|
|
26
26
|
/** Amount in cents. */
|
|
27
27
|
amount: number;
|
|
@@ -50,6 +50,8 @@ export interface CancelPaymentRequestsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface DeclinedReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface FulfillPaymentRequestsRequestPaymentSourceWallet {
|
|
2
|
-
/** Wallet (wal_*) to pay from.
|
|
2
|
+
/** Wallet (wal_*) to pay from. Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
|
|
3
3
|
walletId?: string;
|
|
4
4
|
}
|
|
@@ -50,6 +50,8 @@ export interface IncomingReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
2
|
+
export declare const ListPaymentRequestsRequestGroup: {
|
|
3
|
+
readonly Open: "open";
|
|
4
|
+
readonly Completed: "completed";
|
|
5
|
+
readonly Closed: "closed";
|
|
6
|
+
};
|
|
7
|
+
export type ListPaymentRequestsRequestGroup = (typeof ListPaymentRequestsRequestGroup)[keyof typeof ListPaymentRequestsRequestGroup];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListPaymentRequestsRequestGroup = void 0;
|
|
5
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
6
|
+
exports.ListPaymentRequestsRequestGroup = {
|
|
7
|
+
Open: "open",
|
|
8
|
+
Completed: "completed",
|
|
9
|
+
Closed: "closed",
|
|
10
|
+
};
|
|
@@ -50,6 +50,8 @@ export interface NewPayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqDetailAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.js";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.js";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.js";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js";
|
|
@@ -165,6 +165,7 @@ __exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationships
|
|
|
165
165
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js"), exports);
|
|
166
166
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js"), exports);
|
|
167
167
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js"), exports);
|
|
168
|
+
__exportStar(require("./ListPaymentRequestsRequestGroup.js"), exports);
|
|
168
169
|
__exportStar(require("./ListPaymentRequestsResponseDataItem.js"), exports);
|
|
169
170
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFee.js"), exports);
|
|
170
171
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js"), exports);
|
|
@@ -30,7 +30,7 @@ export interface NewPaymentParams {
|
|
|
30
30
|
description?: string;
|
|
31
31
|
/** Key-value metadata stored on the resource. At most 30 keys; keys 1-128 characters, alphanumeric and underscores; values 1-256 characters. Visible to anyone who can read the resource; do not include sensitive data. */
|
|
32
32
|
tags?: Record<string, string>;
|
|
33
|
-
/** Source wallet ID (wal_*). Omit to
|
|
33
|
+
/** Source wallet ID (wal_*). Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
|
|
34
34
|
walletId?: string;
|
|
35
35
|
/** Deprecated. Previously skipped our notification to the counterparty; Natural now always sends its own notifications and this field is accepted but ignored. The returned link is unaffected. */
|
|
36
36
|
disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
|
|
@@ -19,7 +19,7 @@ export interface CreateRealtimeRequest {
|
|
|
19
19
|
amount: number;
|
|
20
20
|
/** Currency code. Defaults to USD. */
|
|
21
21
|
currency?: Natural.CreateRealtimeRequestCurrency;
|
|
22
|
-
/** Wallet (wal_*) to pay from.
|
|
22
|
+
/** Wallet (wal_*) to pay from. Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
|
|
23
23
|
walletId?: string;
|
|
24
24
|
/** External party account (epa_*) to pay. */
|
|
25
25
|
externalPartyAccountId: string;
|
|
@@ -50,6 +50,8 @@ export interface DeclinePaymentRequestSimulationsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Natural from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Related card payment, when accessible.
|
|
3
|
+
* Related card payment, when accessible. On a chargeback row, the disputed payment.
|
|
4
4
|
*/
|
|
5
5
|
export interface GetTransactionsResponseDataRelationshipsCardPayment {
|
|
6
6
|
/** Related resource identifier. */
|