@naturalpay/sdk 1.6.5 → 1.6.7
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/customers/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/customers/client/Client.js +99 -0
- package/dist/cjs/api/resources/customers/client/requests/RemoveCustomersRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customers/client/requests/RemoveCustomersRequest.js +3 -0
- package/dist/cjs/api/resources/customers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponse.d.ts +6 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponse.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseData.d.ts +10 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseData.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +15 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +15 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.ts +8 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +16 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.js +3 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.ts +8 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.js +11 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataType.js +7 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseMeta.d.ts +4 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseMeta.js +3 -0
- package/dist/cjs/api/resources/customers/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/customers/types/index.js +9 -0
- package/dist/cjs/api/resources/paymentRequests/client/Client.js +5 -2
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +8 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +8 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +7 -0
- package/dist/cjs/api/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.js +3 -0
- package/dist/cjs/api/resources/simulations/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/simulations/client/Client.js +102 -0
- package/dist/cjs/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.js +3 -0
- package/dist/cjs/api/resources/simulations/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.ts +10 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +15 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +15 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.ts +8 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +16 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.js +3 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.ts +8 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.js +11 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.js +7 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.ts +4 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.js +3 -0
- package/dist/cjs/api/resources/simulations/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/simulations/types/index.js +9 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +2 -0
- package/dist/cjs/api/resources/webhooks/client/requests/NewWebhookParams.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/UpdWebhookParams.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/DelWebhookAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/NewWebhookAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/UpdWebhookAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.ts +5 -0
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.js +8 -0
- package/dist/cjs/api/resources/webhooks/types/WebhookAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/WebhookDetailAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/webhooks/types/index.js +7 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponse.d.ts +12 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponse.js +44 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseData.js +45 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +16 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.js +48 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts +15 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.js +47 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.ts +11 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.js +43 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts +14 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.js +46 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.js +39 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseMeta.d.ts +9 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseMeta.js +41 -0
- package/dist/cjs/serialization/resources/customers/types/index.d.ts +9 -0
- package/dist/cjs/serialization/resources/customers/types/index.js +9 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +10 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +42 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +11 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +43 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +39 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.js +3 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.ts +12 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.js +44 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.js +45 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +16 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +48 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.ts +15 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.js +47 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.ts +11 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.js +43 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.ts +14 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.js +46 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.js +39 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.ts +9 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.js +41 -0
- package/dist/cjs/serialization/resources/simulations/types/index.d.ts +9 -0
- package/dist/cjs/serialization/resources/simulations/types/index.js +9 -0
- package/dist/cjs/serialization/resources/webhooks/client/requests/NewWebhookParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/client/requests/NewWebhookParams.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/client/requests/UpdWebhookParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/client/requests/UpdWebhookParams.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/DelWebhookAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/DelWebhookAttrs.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/NewWebhookAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/NewWebhookAttrs.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdWebhookAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdWebhookAttrs.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/types/WebhookAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/WebhookAttrs.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/WebhookDetailAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/WebhookDetailAttrs.js +2 -0
- package/dist/cjs/serialization/resources/webhooks/types/index.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/types/index.js +7 -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/customers/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/customers/client/Client.mjs +99 -0
- package/dist/esm/api/resources/customers/client/requests/RemoveCustomersRequest.d.mts +12 -0
- package/dist/esm/api/resources/customers/client/requests/RemoveCustomersRequest.mjs +2 -0
- package/dist/esm/api/resources/customers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponse.d.mts +6 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponse.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseData.d.mts +10 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseData.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +15 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +15 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.mts +8 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +16 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.mjs +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.mts +8 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.mjs +8 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseMeta.d.mts +4 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseMeta.mjs +2 -0
- package/dist/esm/api/resources/customers/types/index.d.mts +9 -0
- package/dist/esm/api/resources/customers/types/index.mjs +9 -0
- package/dist/esm/api/resources/paymentRequests/client/Client.mjs +5 -2
- package/dist/esm/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +8 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +8 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +4 -0
- package/dist/esm/api/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/index.d.mts +3 -0
- package/dist/esm/api/resources/paymentRequests/types/index.mjs +3 -0
- package/dist/esm/api/resources/simulations/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/simulations/client/Client.mjs +102 -0
- package/dist/esm/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.d.mts +12 -0
- package/dist/esm/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.mjs +2 -0
- package/dist/esm/api/resources/simulations/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.mts +6 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponse.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.mts +10 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +15 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +15 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.mts +8 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +16 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.mts +8 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs +8 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.mts +4 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.mjs +2 -0
- package/dist/esm/api/resources/simulations/types/index.d.mts +9 -0
- package/dist/esm/api/resources/simulations/types/index.mjs +9 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/NewWebhookParams.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/client/requests/UpdWebhookParams.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/DelWebhookAttrs.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/NewWebhookAttrs.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/UpdWebhookAttrs.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.mts +5 -0
- package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.mjs +5 -0
- package/dist/esm/api/resources/webhooks/types/WebhookAttrs.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/WebhookDetailAttrs.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/types/index.d.mts +7 -0
- package/dist/esm/api/resources/webhooks/types/index.mjs +7 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponse.d.mts +12 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponse.mjs +8 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +16 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +12 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts +15 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.mjs +11 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.d.mts +11 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs +7 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts +14 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.mjs +10 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributesDelegationStatus.mjs +3 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseMeta.d.mts +9 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseMeta.mjs +5 -0
- package/dist/esm/serialization/resources/customers/types/index.d.mts +9 -0
- package/dist/esm/serialization/resources/customers/types/index.mjs +9 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +10 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +6 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +11 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.d.mts +12 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponse.mjs +8 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +16 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +12 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.d.mts +15 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItem.mjs +11 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.d.mts +11 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesAgentsItemLimits.mjs +7 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.d.mts +14 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegation.mjs +10 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributesDelegationStatus.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.d.mts +9 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseMeta.mjs +5 -0
- package/dist/esm/serialization/resources/simulations/types/index.d.mts +9 -0
- package/dist/esm/serialization/resources/simulations/types/index.mjs +9 -0
- package/dist/esm/serialization/resources/webhooks/client/requests/NewWebhookParams.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/client/requests/NewWebhookParams.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/client/requests/UpdWebhookParams.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/client/requests/UpdWebhookParams.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/DelWebhookAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/DelWebhookAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponseDataItemAttributesSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/NewWebhookAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/NewWebhookAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdWebhookAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdWebhookAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesSourcesItem.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/types/WebhookAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/WebhookAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/WebhookDetailAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/types/WebhookDetailAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/types/index.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +134 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Natural from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { ListWebhooksResponseDataItemAttributesSourcesItem } from "./ListWebhooksResponseDataItemAttributesSourcesItem.js";
|
|
4
5
|
import { WebhookEnabledEventsItem } from "./WebhookEnabledEventsItem.js";
|
|
5
6
|
import { WebhookStatus } from "./WebhookStatus.js";
|
|
6
7
|
export declare const WebhookAttrs: core.serialization.ObjectSchema<serializers.WebhookAttrs.Raw, Natural.WebhookAttrs>;
|
|
@@ -10,6 +11,7 @@ export declare namespace WebhookAttrs {
|
|
|
10
11
|
description: string;
|
|
11
12
|
status: WebhookStatus.Raw;
|
|
12
13
|
enabledEvents: WebhookEnabledEventsItem.Raw[];
|
|
14
|
+
sources: ListWebhooksResponseDataItemAttributesSourcesItem.Raw[];
|
|
13
15
|
tags: Record<string, string>;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.WebhookAttrs = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const ListWebhooksResponseDataItemAttributesSourcesItem_js_1 = require("./ListWebhooksResponseDataItemAttributesSourcesItem.js");
|
|
39
40
|
const WebhookEnabledEventsItem_js_1 = require("./WebhookEnabledEventsItem.js");
|
|
40
41
|
const WebhookStatus_js_1 = require("./WebhookStatus.js");
|
|
41
42
|
exports.WebhookAttrs = core.serialization.object({
|
|
@@ -43,6 +44,7 @@ exports.WebhookAttrs = core.serialization.object({
|
|
|
43
44
|
description: core.serialization.string(),
|
|
44
45
|
status: WebhookStatus_js_1.WebhookStatus,
|
|
45
46
|
enabledEvents: core.serialization.list(WebhookEnabledEventsItem_js_1.WebhookEnabledEventsItem),
|
|
47
|
+
sources: core.serialization.list(ListWebhooksResponseDataItemAttributesSourcesItem_js_1.ListWebhooksResponseDataItemAttributesSourcesItem),
|
|
46
48
|
tags: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
47
49
|
createdAt: core.serialization.date(),
|
|
48
50
|
updatedAt: core.serialization.date(),
|
|
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { GetWebhooksResponseDataAttributesEnabledEventsItem } from "./GetWebhooksResponseDataAttributesEnabledEventsItem.js";
|
|
5
|
+
import { GetWebhooksResponseDataAttributesSourcesItem } from "./GetWebhooksResponseDataAttributesSourcesItem.js";
|
|
5
6
|
import { WebhookDetailStatus } from "./WebhookDetailStatus.js";
|
|
6
7
|
export declare const WebhookDetailAttrs: core.serialization.ObjectSchema<serializers.WebhookDetailAttrs.Raw, Natural.WebhookDetailAttrs>;
|
|
7
8
|
export declare namespace WebhookDetailAttrs {
|
|
@@ -10,6 +11,7 @@ export declare namespace WebhookDetailAttrs {
|
|
|
10
11
|
description: string;
|
|
11
12
|
status: WebhookDetailStatus.Raw;
|
|
12
13
|
enabledEvents: GetWebhooksResponseDataAttributesEnabledEventsItem.Raw[];
|
|
14
|
+
sources: GetWebhooksResponseDataAttributesSourcesItem.Raw[];
|
|
13
15
|
tags: Record<string, string>;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
@@ -37,12 +37,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.WebhookDetailAttrs = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const GetWebhooksResponseDataAttributesEnabledEventsItem_js_1 = require("./GetWebhooksResponseDataAttributesEnabledEventsItem.js");
|
|
40
|
+
const GetWebhooksResponseDataAttributesSourcesItem_js_1 = require("./GetWebhooksResponseDataAttributesSourcesItem.js");
|
|
40
41
|
const WebhookDetailStatus_js_1 = require("./WebhookDetailStatus.js");
|
|
41
42
|
exports.WebhookDetailAttrs = core.serialization.object({
|
|
42
43
|
url: core.serialization.string(),
|
|
43
44
|
description: core.serialization.string(),
|
|
44
45
|
status: WebhookDetailStatus_js_1.WebhookDetailStatus,
|
|
45
46
|
enabledEvents: core.serialization.list(GetWebhooksResponseDataAttributesEnabledEventsItem_js_1.GetWebhooksResponseDataAttributesEnabledEventsItem),
|
|
47
|
+
sources: core.serialization.list(GetWebhooksResponseDataAttributesSourcesItem_js_1.GetWebhooksResponseDataAttributesSourcesItem),
|
|
46
48
|
tags: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
47
49
|
createdAt: core.serialization.date(),
|
|
48
50
|
updatedAt: core.serialization.date(),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./CreateWebhooksRequestEnabledEventsItem.js";
|
|
2
|
+
export * from "./CreateWebhooksRequestSourcesItem.js";
|
|
2
3
|
export * from "./CreateWebhooksResponseDataAttributesEnabledEventsItem.js";
|
|
4
|
+
export * from "./CreateWebhooksResponseDataAttributesSourcesItem.js";
|
|
3
5
|
export * from "./DelWebhook.js";
|
|
4
6
|
export * from "./DelWebhookAttrs.js";
|
|
5
7
|
export * from "./DelWebhookData.js";
|
|
@@ -11,8 +13,10 @@ export * from "./DelWebhookPartyRel.js";
|
|
|
11
13
|
export * from "./DelWebhookRels.js";
|
|
12
14
|
export * from "./DelWebhookStatus.js";
|
|
13
15
|
export * from "./GetWebhooksResponseDataAttributesEnabledEventsItem.js";
|
|
16
|
+
export * from "./GetWebhooksResponseDataAttributesSourcesItem.js";
|
|
14
17
|
export * from "./ListWebhooksRequestStatus.js";
|
|
15
18
|
export * from "./ListWebhooksResponseDataItem.js";
|
|
19
|
+
export * from "./ListWebhooksResponseDataItemAttributesSourcesItem.js";
|
|
16
20
|
export * from "./NewWebhook.js";
|
|
17
21
|
export * from "./NewWebhookAttrs.js";
|
|
18
22
|
export * from "./NewWebhookData.js";
|
|
@@ -23,6 +27,7 @@ export * from "./NewWebhookPartyRel.js";
|
|
|
23
27
|
export * from "./NewWebhookRels.js";
|
|
24
28
|
export * from "./NewWebhookStatus.js";
|
|
25
29
|
export * from "./RemoveWebhooksResponseDataAttributesEnabledEventsItem.js";
|
|
30
|
+
export * from "./RemoveWebhooksResponseDataAttributesSourcesItem.js";
|
|
26
31
|
export * from "./RotatedWebhook.js";
|
|
27
32
|
export * from "./RotatedWebhookAttrs.js";
|
|
28
33
|
export * from "./RotatedWebhookData.js";
|
|
@@ -32,8 +37,10 @@ export * from "./RotatedWebhookPartyRefKind.js";
|
|
|
32
37
|
export * from "./RotatedWebhookPartyRel.js";
|
|
33
38
|
export * from "./RotatedWebhookRels.js";
|
|
34
39
|
export * from "./UpdateWebhooksRequestEnabledEventsItem.js";
|
|
40
|
+
export * from "./UpdateWebhooksRequestSourcesItem.js";
|
|
35
41
|
export * from "./UpdateWebhooksRequestStatus.js";
|
|
36
42
|
export * from "./UpdateWebhooksResponseDataAttributesEnabledEventsItem.js";
|
|
43
|
+
export * from "./UpdateWebhooksResponseDataAttributesSourcesItem.js";
|
|
37
44
|
export * from "./UpdWebhook.js";
|
|
38
45
|
export * from "./UpdWebhookAttrs.js";
|
|
39
46
|
export * from "./UpdWebhookData.js";
|
|
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateWebhooksRequestEnabledEventsItem.js"), exports);
|
|
18
|
+
__exportStar(require("./CreateWebhooksRequestSourcesItem.js"), exports);
|
|
18
19
|
__exportStar(require("./CreateWebhooksResponseDataAttributesEnabledEventsItem.js"), exports);
|
|
20
|
+
__exportStar(require("./CreateWebhooksResponseDataAttributesSourcesItem.js"), exports);
|
|
19
21
|
__exportStar(require("./DelWebhook.js"), exports);
|
|
20
22
|
__exportStar(require("./DelWebhookAttrs.js"), exports);
|
|
21
23
|
__exportStar(require("./DelWebhookData.js"), exports);
|
|
@@ -27,8 +29,10 @@ __exportStar(require("./DelWebhookPartyRel.js"), exports);
|
|
|
27
29
|
__exportStar(require("./DelWebhookRels.js"), exports);
|
|
28
30
|
__exportStar(require("./DelWebhookStatus.js"), exports);
|
|
29
31
|
__exportStar(require("./GetWebhooksResponseDataAttributesEnabledEventsItem.js"), exports);
|
|
32
|
+
__exportStar(require("./GetWebhooksResponseDataAttributesSourcesItem.js"), exports);
|
|
30
33
|
__exportStar(require("./ListWebhooksRequestStatus.js"), exports);
|
|
31
34
|
__exportStar(require("./ListWebhooksResponseDataItem.js"), exports);
|
|
35
|
+
__exportStar(require("./ListWebhooksResponseDataItemAttributesSourcesItem.js"), exports);
|
|
32
36
|
__exportStar(require("./NewWebhook.js"), exports);
|
|
33
37
|
__exportStar(require("./NewWebhookAttrs.js"), exports);
|
|
34
38
|
__exportStar(require("./NewWebhookData.js"), exports);
|
|
@@ -39,6 +43,7 @@ __exportStar(require("./NewWebhookPartyRel.js"), exports);
|
|
|
39
43
|
__exportStar(require("./NewWebhookRels.js"), exports);
|
|
40
44
|
__exportStar(require("./NewWebhookStatus.js"), exports);
|
|
41
45
|
__exportStar(require("./RemoveWebhooksResponseDataAttributesEnabledEventsItem.js"), exports);
|
|
46
|
+
__exportStar(require("./RemoveWebhooksResponseDataAttributesSourcesItem.js"), exports);
|
|
42
47
|
__exportStar(require("./RotatedWebhook.js"), exports);
|
|
43
48
|
__exportStar(require("./RotatedWebhookAttrs.js"), exports);
|
|
44
49
|
__exportStar(require("./RotatedWebhookData.js"), exports);
|
|
@@ -48,8 +53,10 @@ __exportStar(require("./RotatedWebhookPartyRefKind.js"), exports);
|
|
|
48
53
|
__exportStar(require("./RotatedWebhookPartyRel.js"), exports);
|
|
49
54
|
__exportStar(require("./RotatedWebhookRels.js"), exports);
|
|
50
55
|
__exportStar(require("./UpdateWebhooksRequestEnabledEventsItem.js"), exports);
|
|
56
|
+
__exportStar(require("./UpdateWebhooksRequestSourcesItem.js"), exports);
|
|
51
57
|
__exportStar(require("./UpdateWebhooksRequestStatus.js"), exports);
|
|
52
58
|
__exportStar(require("./UpdateWebhooksResponseDataAttributesEnabledEventsItem.js"), exports);
|
|
59
|
+
__exportStar(require("./UpdateWebhooksResponseDataAttributesSourcesItem.js"), exports);
|
|
53
60
|
__exportStar(require("./UpdWebhook.js"), exports);
|
|
54
61
|
__exportStar(require("./UpdWebhookAttrs.js"), exports);
|
|
55
62
|
__exportStar(require("./UpdWebhookData.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.7";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.7",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.7",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -66,6 +66,35 @@ export declare class CustomersClient {
|
|
|
66
66
|
*/
|
|
67
67
|
get(request: Natural.GetCustomersRequest, requestOptions?: CustomersClient.RequestOptions): core.HttpResponsePromise<Natural.CustomerDetail>;
|
|
68
68
|
private __get;
|
|
69
|
+
/**
|
|
70
|
+
* Revoke the customer connection and all remaining agent access
|
|
71
|
+
*
|
|
72
|
+
* @param {Natural.RemoveCustomersRequest} request
|
|
73
|
+
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Natural.BadRequestError}
|
|
76
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
77
|
+
* @throws {@link Natural.ForbiddenError}
|
|
78
|
+
* @throws {@link Natural.NotFoundError}
|
|
79
|
+
* @throws {@link Natural.ConflictError}
|
|
80
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
81
|
+
* @throws {@link Natural.PreconditionError}
|
|
82
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
83
|
+
* @throws {@link Natural.InternalServerError}
|
|
84
|
+
* @throws {@link Natural.NotImplementedError}
|
|
85
|
+
* @throws {@link Natural.BadGatewayError}
|
|
86
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
87
|
+
* @throws {@link errors.NaturalError}
|
|
88
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* await client.customers.remove({
|
|
92
|
+
* idempotencyKey: "Idempotency-Key",
|
|
93
|
+
* customerId: "customerId"
|
|
94
|
+
* })
|
|
95
|
+
*/
|
|
96
|
+
remove(request: Natural.RemoveCustomersRequest, requestOptions?: CustomersClient.RequestOptions): core.HttpResponsePromise<Natural.RemoveCustomersResponse>;
|
|
97
|
+
private __remove;
|
|
69
98
|
/**
|
|
70
99
|
* List pending invitations addressed to specific customers
|
|
71
100
|
*
|
|
@@ -239,6 +239,105 @@ export class CustomersClient {
|
|
|
239
239
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customers/{customerId}");
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Revoke the customer connection and all remaining agent access
|
|
244
|
+
*
|
|
245
|
+
* @param {Natural.RemoveCustomersRequest} request
|
|
246
|
+
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
|
+
*
|
|
248
|
+
* @throws {@link Natural.BadRequestError}
|
|
249
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
250
|
+
* @throws {@link Natural.ForbiddenError}
|
|
251
|
+
* @throws {@link Natural.NotFoundError}
|
|
252
|
+
* @throws {@link Natural.ConflictError}
|
|
253
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
254
|
+
* @throws {@link Natural.PreconditionError}
|
|
255
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
256
|
+
* @throws {@link Natural.InternalServerError}
|
|
257
|
+
* @throws {@link Natural.NotImplementedError}
|
|
258
|
+
* @throws {@link Natural.BadGatewayError}
|
|
259
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
260
|
+
* @throws {@link errors.NaturalError}
|
|
261
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* await client.customers.remove({
|
|
265
|
+
* idempotencyKey: "Idempotency-Key",
|
|
266
|
+
* customerId: "customerId"
|
|
267
|
+
* })
|
|
268
|
+
*/
|
|
269
|
+
remove(request, requestOptions) {
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__remove(request, requestOptions));
|
|
271
|
+
}
|
|
272
|
+
__remove(request, requestOptions) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
275
|
+
const { customerId, idempotencyKey } = request;
|
|
276
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
277
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
278
|
+
"Idempotency-Key": idempotencyKey,
|
|
279
|
+
"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,
|
|
280
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
281
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
282
|
+
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, `customers/${core.url.encodePathParam(customerId)}`),
|
|
283
|
+
method: "DELETE",
|
|
284
|
+
headers: _headers,
|
|
285
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
286
|
+
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,
|
|
287
|
+
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,
|
|
288
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
289
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
290
|
+
logging: this._options.logging,
|
|
291
|
+
});
|
|
292
|
+
if (_response.ok) {
|
|
293
|
+
return {
|
|
294
|
+
data: serializers.RemoveCustomersResponse.parseOrThrow(_response.body, {
|
|
295
|
+
unrecognizedObjectKeys: "passthrough",
|
|
296
|
+
allowUnrecognizedUnionMembers: true,
|
|
297
|
+
allowUnrecognizedEnumValues: true,
|
|
298
|
+
skipValidation: true,
|
|
299
|
+
breadcrumbsPrefix: ["response"],
|
|
300
|
+
}),
|
|
301
|
+
rawResponse: _response.rawResponse,
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
if (_response.error.reason === "status-code") {
|
|
305
|
+
switch (_response.error.statusCode) {
|
|
306
|
+
case 400:
|
|
307
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
308
|
+
case 401:
|
|
309
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
310
|
+
case 403:
|
|
311
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
312
|
+
case 404:
|
|
313
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
314
|
+
case 409:
|
|
315
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
316
|
+
case 422:
|
|
317
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
318
|
+
case 428:
|
|
319
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
320
|
+
case 429:
|
|
321
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
322
|
+
case 500:
|
|
323
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
324
|
+
case 501:
|
|
325
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
326
|
+
case 502:
|
|
327
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
328
|
+
case 503:
|
|
329
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
330
|
+
default:
|
|
331
|
+
throw new errors.NaturalError({
|
|
332
|
+
statusCode: _response.error.statusCode,
|
|
333
|
+
body: _response.error.body,
|
|
334
|
+
rawResponse: _response.rawResponse,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customers/{customerId}");
|
|
339
|
+
});
|
|
340
|
+
}
|
|
242
341
|
/**
|
|
243
342
|
* List pending invitations addressed to specific customers
|
|
244
343
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* idempotencyKey: "Idempotency-Key",
|
|
5
|
+
* customerId: "customerId"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface RemoveCustomersRequest {
|
|
9
|
+
customerId: string;
|
|
10
|
+
/** Unique key for safely retrying a request without creating duplicates. */
|
|
11
|
+
idempotencyKey: string;
|
|
12
|
+
}
|
|
@@ -2,5 +2,6 @@ export type { CreateInvitationsCustomersRequest } from "./CreateInvitationsCusto
|
|
|
2
2
|
export type { GetCustomersRequest } from "./GetCustomersRequest.mjs";
|
|
3
3
|
export type { ListCustomersRequest } from "./ListCustomersRequest.mjs";
|
|
4
4
|
export type { ListInvitationsCustomersRequest } from "./ListInvitationsCustomersRequest.mjs";
|
|
5
|
+
export type { RemoveCustomersRequest } from "./RemoveCustomersRequest.mjs";
|
|
5
6
|
export type { RevokeAgentCustomersRequest } from "./RevokeAgentCustomersRequest.mjs";
|
|
6
7
|
export type { RevokeInvitationCustomersRequest } from "./RevokeInvitationCustomersRequest.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Customer connection, including revoked connections when requested.
|
|
4
|
+
*/
|
|
5
|
+
export interface RemoveCustomersResponseData {
|
|
6
|
+
type: Natural.RemoveCustomersResponseDataType;
|
|
7
|
+
/** Customer party ID (pty_*). */
|
|
8
|
+
id: string;
|
|
9
|
+
attributes: Natural.RemoveCustomersResponseDataAttributes;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
export interface RemoveCustomersResponseDataAttributes {
|
|
3
|
+
/** Customer name. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Email address. */
|
|
6
|
+
email: string | null;
|
|
7
|
+
/** Public avatar URL, or null if none is set. */
|
|
8
|
+
avatarUrl: string | null;
|
|
9
|
+
/** When the customer was created. */
|
|
10
|
+
createdAt: Date | null;
|
|
11
|
+
/** Delegation details. */
|
|
12
|
+
delegation: Natural.RemoveCustomersResponseDataAttributesDelegation;
|
|
13
|
+
/** Connected agents. */
|
|
14
|
+
agents: Natural.RemoveCustomersResponseDataAttributesAgentsItem[];
|
|
15
|
+
}
|
package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
export interface RemoveCustomersResponseDataAttributesAgentsItem {
|
|
3
|
+
/** Agent ID (agt_*). */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Agent name. */
|
|
6
|
+
name: string | null;
|
|
7
|
+
/** The agent's composed public handle (@namespace-slug), or null when it has none. */
|
|
8
|
+
handle: string | null;
|
|
9
|
+
/** Connection status. */
|
|
10
|
+
status: string;
|
|
11
|
+
/** Permissions this agent holds. */
|
|
12
|
+
permissions: string[];
|
|
13
|
+
/** Spending limits in cents (per-transaction, daily, monthly) for this agent. */
|
|
14
|
+
limits: Natural.RemoveCustomersResponseDataAttributesAgentsItemLimits | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface RemoveCustomersResponseDataAttributesAgentsItemLimits {
|
|
2
|
+
/** Per-transaction spending limit in cents, or null for no limit. */
|
|
3
|
+
perTransaction?: number | null;
|
|
4
|
+
/** Daily spending limit in cents, or null for no limit. */
|
|
5
|
+
perDay?: number | null;
|
|
6
|
+
/** Monthly spending limit in cents, or null for no limit. */
|
|
7
|
+
perMonth?: number | null;
|
|
8
|
+
}
|
package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Delegation details.
|
|
4
|
+
*/
|
|
5
|
+
export interface RemoveCustomersResponseDataAttributesDelegation {
|
|
6
|
+
/** Delegation ID (dlg_*). */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Delegation status. */
|
|
9
|
+
status: Natural.RemoveCustomersResponseDataAttributesDelegationStatus;
|
|
10
|
+
/** Granted permissions. */
|
|
11
|
+
permissions: string[];
|
|
12
|
+
/** When the customer was connected. */
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
/** When access was revoked, or null if not revoked. */
|
|
15
|
+
revokedAt: Date | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Delegation status. */
|
|
2
|
+
export declare const RemoveCustomersResponseDataAttributesDelegationStatus: {
|
|
3
|
+
readonly Active: "ACTIVE";
|
|
4
|
+
readonly Suspended: "SUSPENDED";
|
|
5
|
+
readonly Revoked: "REVOKED";
|
|
6
|
+
readonly Expired: "EXPIRED";
|
|
7
|
+
};
|
|
8
|
+
export type RemoveCustomersResponseDataAttributesDelegationStatus = (typeof RemoveCustomersResponseDataAttributesDelegationStatus)[keyof typeof RemoveCustomersResponseDataAttributesDelegationStatus];
|
|
@@ -80,6 +80,15 @@ export * from "./ListInvitationsCustomersResponseDataItemAttributesParty.mjs";
|
|
|
80
80
|
export * from "./ListInvitationsCustomersResponseDataItemType.mjs";
|
|
81
81
|
export * from "./ListInvitationsCustomersResponseMeta.mjs";
|
|
82
82
|
export * from "./ListInvitationsCustomersResponseMetaPagination.mjs";
|
|
83
|
+
export * from "./RemoveCustomersResponse.mjs";
|
|
84
|
+
export * from "./RemoveCustomersResponseData.mjs";
|
|
85
|
+
export * from "./RemoveCustomersResponseDataAttributes.mjs";
|
|
86
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItem.mjs";
|
|
87
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs";
|
|
88
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegation.mjs";
|
|
89
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegationStatus.mjs";
|
|
90
|
+
export * from "./RemoveCustomersResponseDataType.mjs";
|
|
91
|
+
export * from "./RemoveCustomersResponseMeta.mjs";
|
|
83
92
|
export * from "./RevokeAgentCustomersResponse.mjs";
|
|
84
93
|
export * from "./RevokeAgentCustomersResponseMeta.mjs";
|
|
85
94
|
export * from "./RevokeAgentCustomersResponseMetaData.mjs";
|
|
@@ -80,6 +80,15 @@ export * from "./ListInvitationsCustomersResponseDataItemAttributesParty.mjs";
|
|
|
80
80
|
export * from "./ListInvitationsCustomersResponseDataItemType.mjs";
|
|
81
81
|
export * from "./ListInvitationsCustomersResponseMeta.mjs";
|
|
82
82
|
export * from "./ListInvitationsCustomersResponseMetaPagination.mjs";
|
|
83
|
+
export * from "./RemoveCustomersResponse.mjs";
|
|
84
|
+
export * from "./RemoveCustomersResponseData.mjs";
|
|
85
|
+
export * from "./RemoveCustomersResponseDataAttributes.mjs";
|
|
86
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItem.mjs";
|
|
87
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItemLimits.mjs";
|
|
88
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegation.mjs";
|
|
89
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegationStatus.mjs";
|
|
90
|
+
export * from "./RemoveCustomersResponseDataType.mjs";
|
|
91
|
+
export * from "./RemoveCustomersResponseMeta.mjs";
|
|
83
92
|
export * from "./RevokeAgentCustomersResponse.mjs";
|
|
84
93
|
export * from "./RevokeAgentCustomersResponseMeta.mjs";
|
|
85
94
|
export * from "./RevokeAgentCustomersResponseMetaData.mjs";
|
|
@@ -64,7 +64,7 @@ export class PaymentRequestsClient {
|
|
|
64
64
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
65
65
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
67
|
-
const { limit, cursor, partyId, includeCompleted, includeCanceled } = request;
|
|
67
|
+
const { limit, cursor, partyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
68
68
|
const _queryParams = {
|
|
69
69
|
limit,
|
|
70
70
|
cursor,
|
|
@@ -91,6 +91,8 @@ export class PaymentRequestsClient {
|
|
|
91
91
|
return typeof mapped === "string" ? mapped : toJson(mapped);
|
|
92
92
|
})()
|
|
93
93
|
: undefined,
|
|
94
|
+
initiatedByAgent,
|
|
95
|
+
addressedToAgent,
|
|
94
96
|
};
|
|
95
97
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
98
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
@@ -316,11 +318,12 @@ export class PaymentRequestsClient {
|
|
|
316
318
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
317
319
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
318
320
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
319
|
-
const { limit, cursor, partyId } = request;
|
|
321
|
+
const { limit, cursor, partyId, addressedToAgent } = request;
|
|
320
322
|
const _queryParams = {
|
|
321
323
|
limit,
|
|
322
324
|
cursor,
|
|
323
325
|
partyId,
|
|
326
|
+
addressedToAgent,
|
|
324
327
|
};
|
|
325
328
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
326
329
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts
CHANGED
|
@@ -9,4 +9,6 @@ export interface ListPaymentRequestsRequest {
|
|
|
9
9
|
partyId?: string;
|
|
10
10
|
includeCompleted?: Natural.ListPaymentRequestsRequestIncludeCompleted;
|
|
11
11
|
includeCanceled?: Natural.ListPaymentRequestsRequestIncludeCanceled;
|
|
12
|
+
initiatedByAgent?: string;
|
|
13
|
+
addressedToAgent?: string;
|
|
12
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Payer agent, or null unless addressed by agent ID or agent handle.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgent {
|
|
6
|
+
/** Related resource identifier. */
|
|
7
|
+
data: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Related resource identifier.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgentData {
|
|
6
|
+
type: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType: {
|
|
2
|
+
readonly Agent: "agent";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = (typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType)[keyof typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType];
|
|
@@ -4,4 +4,6 @@ export interface NewPayReqRels {
|
|
|
4
4
|
requesterParty: Natural.NewPayReqRequesterRel;
|
|
5
5
|
/** Resolved payer party, if the payer is known to Natural. */
|
|
6
6
|
payerParty: Natural.NewPayReqPayerRel;
|
|
7
|
+
/** Payer agent, or null unless addressed by agent ID or agent handle. */
|
|
8
|
+
payerAgent: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgent;
|
|
7
9
|
}
|