@naturalpay/sdk 1.6.6 → 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/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/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/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/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
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.7",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.7",
|
|
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,
|
|
@@ -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
|
*
|
|
@@ -275,6 +275,105 @@ class CustomersClient {
|
|
|
275
275
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customers/{customerId}");
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Revoke the customer connection and all remaining agent access
|
|
280
|
+
*
|
|
281
|
+
* @param {Natural.RemoveCustomersRequest} request
|
|
282
|
+
* @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
|
+
*
|
|
284
|
+
* @throws {@link Natural.BadRequestError}
|
|
285
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
286
|
+
* @throws {@link Natural.ForbiddenError}
|
|
287
|
+
* @throws {@link Natural.NotFoundError}
|
|
288
|
+
* @throws {@link Natural.ConflictError}
|
|
289
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
290
|
+
* @throws {@link Natural.PreconditionError}
|
|
291
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
292
|
+
* @throws {@link Natural.InternalServerError}
|
|
293
|
+
* @throws {@link Natural.NotImplementedError}
|
|
294
|
+
* @throws {@link Natural.BadGatewayError}
|
|
295
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
296
|
+
* @throws {@link errors.NaturalError}
|
|
297
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* await client.customers.remove({
|
|
301
|
+
* idempotencyKey: "Idempotency-Key",
|
|
302
|
+
* customerId: "customerId"
|
|
303
|
+
* })
|
|
304
|
+
*/
|
|
305
|
+
remove(request, requestOptions) {
|
|
306
|
+
return core.HttpResponsePromise.fromPromise(this.__remove(request, requestOptions));
|
|
307
|
+
}
|
|
308
|
+
__remove(request, requestOptions) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
311
|
+
const { customerId, idempotencyKey } = request;
|
|
312
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
313
|
+
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)({
|
|
314
|
+
"Idempotency-Key": idempotencyKey,
|
|
315
|
+
"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,
|
|
316
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
317
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
318
|
+
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)}`),
|
|
319
|
+
method: "DELETE",
|
|
320
|
+
headers: _headers,
|
|
321
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
322
|
+
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,
|
|
323
|
+
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,
|
|
324
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
325
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
326
|
+
logging: this._options.logging,
|
|
327
|
+
});
|
|
328
|
+
if (_response.ok) {
|
|
329
|
+
return {
|
|
330
|
+
data: serializers.RemoveCustomersResponse.parseOrThrow(_response.body, {
|
|
331
|
+
unrecognizedObjectKeys: "passthrough",
|
|
332
|
+
allowUnrecognizedUnionMembers: true,
|
|
333
|
+
allowUnrecognizedEnumValues: true,
|
|
334
|
+
skipValidation: true,
|
|
335
|
+
breadcrumbsPrefix: ["response"],
|
|
336
|
+
}),
|
|
337
|
+
rawResponse: _response.rawResponse,
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
if (_response.error.reason === "status-code") {
|
|
341
|
+
switch (_response.error.statusCode) {
|
|
342
|
+
case 400:
|
|
343
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
344
|
+
case 401:
|
|
345
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
346
|
+
case 403:
|
|
347
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
348
|
+
case 404:
|
|
349
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
350
|
+
case 409:
|
|
351
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
352
|
+
case 422:
|
|
353
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
354
|
+
case 428:
|
|
355
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
356
|
+
case 429:
|
|
357
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
358
|
+
case 500:
|
|
359
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
360
|
+
case 501:
|
|
361
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
362
|
+
case 502:
|
|
363
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
364
|
+
case 503:
|
|
365
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
366
|
+
default:
|
|
367
|
+
throw new errors.NaturalError({
|
|
368
|
+
statusCode: _response.error.statusCode,
|
|
369
|
+
body: _response.error.body,
|
|
370
|
+
rawResponse: _response.rawResponse,
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/customers/{customerId}");
|
|
375
|
+
});
|
|
376
|
+
}
|
|
278
377
|
/**
|
|
279
378
|
* List pending invitations addressed to specific customers
|
|
280
379
|
*
|
|
@@ -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.js";
|
|
3
3
|
export type { ListCustomersRequest } from "./ListCustomersRequest.js";
|
|
4
4
|
export type { ListInvitationsCustomersRequest } from "./ListInvitationsCustomersRequest.js";
|
|
5
|
+
export type { RemoveCustomersRequest } from "./RemoveCustomersRequest.js";
|
|
5
6
|
export type { RevokeAgentCustomersRequest } from "./RevokeAgentCustomersRequest.js";
|
|
6
7
|
export type { RevokeInvitationCustomersRequest } from "./RevokeInvitationCustomersRequest.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
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.js";
|
|
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/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesAgentsItem.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
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/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributesDelegation.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
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];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RemoveCustomersResponseDataAttributesDelegationStatus = void 0;
|
|
5
|
+
/** Delegation status. */
|
|
6
|
+
exports.RemoveCustomersResponseDataAttributesDelegationStatus = {
|
|
7
|
+
Active: "ACTIVE",
|
|
8
|
+
Suspended: "SUSPENDED",
|
|
9
|
+
Revoked: "REVOKED",
|
|
10
|
+
Expired: "EXPIRED",
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RemoveCustomersResponseDataType = void 0;
|
|
5
|
+
exports.RemoveCustomersResponseDataType = {
|
|
6
|
+
Customer: "customer",
|
|
7
|
+
};
|
|
@@ -80,6 +80,15 @@ export * from "./ListInvitationsCustomersResponseDataItemAttributesParty.js";
|
|
|
80
80
|
export * from "./ListInvitationsCustomersResponseDataItemType.js";
|
|
81
81
|
export * from "./ListInvitationsCustomersResponseMeta.js";
|
|
82
82
|
export * from "./ListInvitationsCustomersResponseMetaPagination.js";
|
|
83
|
+
export * from "./RemoveCustomersResponse.js";
|
|
84
|
+
export * from "./RemoveCustomersResponseData.js";
|
|
85
|
+
export * from "./RemoveCustomersResponseDataAttributes.js";
|
|
86
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItem.js";
|
|
87
|
+
export * from "./RemoveCustomersResponseDataAttributesAgentsItemLimits.js";
|
|
88
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegation.js";
|
|
89
|
+
export * from "./RemoveCustomersResponseDataAttributesDelegationStatus.js";
|
|
90
|
+
export * from "./RemoveCustomersResponseDataType.js";
|
|
91
|
+
export * from "./RemoveCustomersResponseMeta.js";
|
|
83
92
|
export * from "./RevokeAgentCustomersResponse.js";
|
|
84
93
|
export * from "./RevokeAgentCustomersResponseMeta.js";
|
|
85
94
|
export * from "./RevokeAgentCustomersResponseMetaData.js";
|
|
@@ -96,6 +96,15 @@ __exportStar(require("./ListInvitationsCustomersResponseDataItemAttributesParty.
|
|
|
96
96
|
__exportStar(require("./ListInvitationsCustomersResponseDataItemType.js"), exports);
|
|
97
97
|
__exportStar(require("./ListInvitationsCustomersResponseMeta.js"), exports);
|
|
98
98
|
__exportStar(require("./ListInvitationsCustomersResponseMetaPagination.js"), exports);
|
|
99
|
+
__exportStar(require("./RemoveCustomersResponse.js"), exports);
|
|
100
|
+
__exportStar(require("./RemoveCustomersResponseData.js"), exports);
|
|
101
|
+
__exportStar(require("./RemoveCustomersResponseDataAttributes.js"), exports);
|
|
102
|
+
__exportStar(require("./RemoveCustomersResponseDataAttributesAgentsItem.js"), exports);
|
|
103
|
+
__exportStar(require("./RemoveCustomersResponseDataAttributesAgentsItemLimits.js"), exports);
|
|
104
|
+
__exportStar(require("./RemoveCustomersResponseDataAttributesDelegation.js"), exports);
|
|
105
|
+
__exportStar(require("./RemoveCustomersResponseDataAttributesDelegationStatus.js"), exports);
|
|
106
|
+
__exportStar(require("./RemoveCustomersResponseDataType.js"), exports);
|
|
107
|
+
__exportStar(require("./RemoveCustomersResponseMeta.js"), exports);
|
|
99
108
|
__exportStar(require("./RevokeAgentCustomersResponse.js"), exports);
|
|
100
109
|
__exportStar(require("./RevokeAgentCustomersResponseMeta.js"), exports);
|
|
101
110
|
__exportStar(require("./RevokeAgentCustomersResponseMetaData.js"), exports);
|
|
@@ -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, partyId, includeCompleted, includeCanceled } = request;
|
|
103
|
+
const { limit, cursor, partyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
104
104
|
const _queryParams = {
|
|
105
105
|
limit,
|
|
106
106
|
cursor,
|
|
@@ -127,6 +127,8 @@ class PaymentRequestsClient {
|
|
|
127
127
|
return typeof mapped === "string" ? mapped : (0, json_js_1.toJson)(mapped);
|
|
128
128
|
})()
|
|
129
129
|
: undefined,
|
|
130
|
+
initiatedByAgent,
|
|
131
|
+
addressedToAgent,
|
|
130
132
|
};
|
|
131
133
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
132
134
|
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)({
|
|
@@ -352,11 +354,12 @@ class PaymentRequestsClient {
|
|
|
352
354
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
353
355
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
354
356
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
355
|
-
const { limit, cursor, partyId } = request;
|
|
357
|
+
const { limit, cursor, partyId, addressedToAgent } = request;
|
|
356
358
|
const _queryParams = {
|
|
357
359
|
limit,
|
|
358
360
|
cursor,
|
|
359
361
|
partyId,
|
|
362
|
+
addressedToAgent,
|
|
360
363
|
};
|
|
361
364
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
362
365
|
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)({
|
package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts
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
|
}
|
|
@@ -286,4 +286,34 @@ export declare class SimulationsClient {
|
|
|
286
286
|
*/
|
|
287
287
|
revokeAgentConnection(request: Natural.RevokeAgentConnectionSimulationsRequest, requestOptions?: SimulationsClient.RequestOptions): core.HttpResponsePromise<Natural.RevokeAgentConnectionSimulationsResponse>;
|
|
288
288
|
private __revokeAgentConnection;
|
|
289
|
+
/**
|
|
290
|
+
* End a test customer's connection and revoke all remaining agent access
|
|
291
|
+
*
|
|
292
|
+
* @param {Natural.DisconnectCustomerSimulationsRequest} request
|
|
293
|
+
* @param {SimulationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
|
+
*
|
|
295
|
+
* @throws {@link Natural.BadRequestError}
|
|
296
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
297
|
+
* @throws {@link Natural.ForbiddenError}
|
|
298
|
+
* @throws {@link Natural.NotFoundError}
|
|
299
|
+
* @throws {@link Natural.RequestTimeoutError}
|
|
300
|
+
* @throws {@link Natural.ConflictError}
|
|
301
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
302
|
+
* @throws {@link Natural.PreconditionError}
|
|
303
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
304
|
+
* @throws {@link Natural.InternalServerError}
|
|
305
|
+
* @throws {@link Natural.NotImplementedError}
|
|
306
|
+
* @throws {@link Natural.BadGatewayError}
|
|
307
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
308
|
+
* @throws {@link errors.NaturalError}
|
|
309
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
310
|
+
*
|
|
311
|
+
* @example
|
|
312
|
+
* await client.simulations.disconnectCustomer({
|
|
313
|
+
* idempotencyKey: "Idempotency-Key",
|
|
314
|
+
* customerId: "customerId"
|
|
315
|
+
* })
|
|
316
|
+
*/
|
|
317
|
+
disconnectCustomer(request: Natural.DisconnectCustomerSimulationsRequest, requestOptions?: SimulationsClient.RequestOptions): core.HttpResponsePromise<Natural.DisconnectCustomerSimulationsResponse>;
|
|
318
|
+
private __disconnectCustomer;
|
|
289
319
|
}
|
|
@@ -1007,5 +1007,107 @@ class SimulationsClient {
|
|
|
1007
1007
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/simulations/customers/{customerId}/agents/{agentId}/revoke");
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
* End a test customer's connection and revoke all remaining agent access
|
|
1012
|
+
*
|
|
1013
|
+
* @param {Natural.DisconnectCustomerSimulationsRequest} request
|
|
1014
|
+
* @param {SimulationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1015
|
+
*
|
|
1016
|
+
* @throws {@link Natural.BadRequestError}
|
|
1017
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
1018
|
+
* @throws {@link Natural.ForbiddenError}
|
|
1019
|
+
* @throws {@link Natural.NotFoundError}
|
|
1020
|
+
* @throws {@link Natural.RequestTimeoutError}
|
|
1021
|
+
* @throws {@link Natural.ConflictError}
|
|
1022
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
1023
|
+
* @throws {@link Natural.PreconditionError}
|
|
1024
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
1025
|
+
* @throws {@link Natural.InternalServerError}
|
|
1026
|
+
* @throws {@link Natural.NotImplementedError}
|
|
1027
|
+
* @throws {@link Natural.BadGatewayError}
|
|
1028
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
1029
|
+
* @throws {@link errors.NaturalError}
|
|
1030
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* await client.simulations.disconnectCustomer({
|
|
1034
|
+
* idempotencyKey: "Idempotency-Key",
|
|
1035
|
+
* customerId: "customerId"
|
|
1036
|
+
* })
|
|
1037
|
+
*/
|
|
1038
|
+
disconnectCustomer(request, requestOptions) {
|
|
1039
|
+
return core.HttpResponsePromise.fromPromise(this.__disconnectCustomer(request, requestOptions));
|
|
1040
|
+
}
|
|
1041
|
+
__disconnectCustomer(request, requestOptions) {
|
|
1042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1043
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1044
|
+
const { customerId, idempotencyKey } = request;
|
|
1045
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1046
|
+
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)({
|
|
1047
|
+
"Idempotency-Key": idempotencyKey,
|
|
1048
|
+
"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,
|
|
1049
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1050
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
1051
|
+
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, `simulations/customers/${core.url.encodePathParam(customerId)}/disconnect`),
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
headers: _headers,
|
|
1054
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1055
|
+
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,
|
|
1056
|
+
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,
|
|
1057
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1058
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
1059
|
+
logging: this._options.logging,
|
|
1060
|
+
});
|
|
1061
|
+
if (_response.ok) {
|
|
1062
|
+
return {
|
|
1063
|
+
data: serializers.DisconnectCustomerSimulationsResponse.parseOrThrow(_response.body, {
|
|
1064
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1065
|
+
allowUnrecognizedUnionMembers: true,
|
|
1066
|
+
allowUnrecognizedEnumValues: true,
|
|
1067
|
+
skipValidation: true,
|
|
1068
|
+
breadcrumbsPrefix: ["response"],
|
|
1069
|
+
}),
|
|
1070
|
+
rawResponse: _response.rawResponse,
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
if (_response.error.reason === "status-code") {
|
|
1074
|
+
switch (_response.error.statusCode) {
|
|
1075
|
+
case 400:
|
|
1076
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1077
|
+
case 401:
|
|
1078
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1079
|
+
case 403:
|
|
1080
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1081
|
+
case 404:
|
|
1082
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1083
|
+
case 408:
|
|
1084
|
+
throw new Natural.RequestTimeoutError(_response.error.body, _response.rawResponse);
|
|
1085
|
+
case 409:
|
|
1086
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
1087
|
+
case 422:
|
|
1088
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1089
|
+
case 428:
|
|
1090
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
1091
|
+
case 429:
|
|
1092
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1093
|
+
case 500:
|
|
1094
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1095
|
+
case 501:
|
|
1096
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
1097
|
+
case 502:
|
|
1098
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
1099
|
+
case 503:
|
|
1100
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1101
|
+
default:
|
|
1102
|
+
throw new errors.NaturalError({
|
|
1103
|
+
statusCode: _response.error.statusCode,
|
|
1104
|
+
body: _response.error.body,
|
|
1105
|
+
rawResponse: _response.rawResponse,
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/simulations/customers/{customerId}/disconnect");
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1010
1112
|
}
|
|
1011
1113
|
exports.SimulationsClient = SimulationsClient;
|
package/dist/cjs/api/resources/simulations/client/requests/DisconnectCustomerSimulationsRequest.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* idempotencyKey: "Idempotency-Key",
|
|
5
|
+
* customerId: "customerId"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface DisconnectCustomerSimulationsRequest {
|
|
9
|
+
customerId: string;
|
|
10
|
+
/** Unique key for safely retrying a request without creating duplicates. */
|
|
11
|
+
idempotencyKey: string;
|
|
12
|
+
}
|
|
@@ -2,6 +2,7 @@ export type { AcceptCustomerInvitationSimulationsRequest } from "./AcceptCustome
|
|
|
2
2
|
export type { CompletePaymentClaimSimulationsRequest } from "./CompletePaymentClaimSimulationsRequest.js";
|
|
3
3
|
export type { DeclineCustomerInvitationSimulationsRequest } from "./DeclineCustomerInvitationSimulationsRequest.js";
|
|
4
4
|
export type { DeclinePaymentRequestSimulationsRequest } from "./DeclinePaymentRequestSimulationsRequest.js";
|
|
5
|
+
export type { DisconnectCustomerSimulationsRequest } from "./DisconnectCustomerSimulationsRequest.js";
|
|
5
6
|
export type { FulfillPaymentRequestSimulationsRequest } from "./FulfillPaymentRequestSimulationsRequest.js";
|
|
6
7
|
export type { FundCustomerSimulationsRequest } from "./FundCustomerSimulationsRequest.js";
|
|
7
8
|
export type { InviteCustomerSimulationsRequest } from "./InviteCustomerSimulationsRequest.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
export interface DisconnectCustomerSimulationsResponse {
|
|
3
|
+
/** Customer connection, including revoked connections when requested. */
|
|
4
|
+
data: Natural.DisconnectCustomerSimulationsResponseData;
|
|
5
|
+
meta: Natural.DisconnectCustomerSimulationsResponseMeta;
|
|
6
|
+
}
|
package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseData.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Customer connection, including revoked connections when requested.
|
|
4
|
+
*/
|
|
5
|
+
export interface DisconnectCustomerSimulationsResponseData {
|
|
6
|
+
type: Natural.DisconnectCustomerSimulationsResponseDataType;
|
|
7
|
+
/** Customer party ID (pty_*). */
|
|
8
|
+
id: string;
|
|
9
|
+
attributes: Natural.DisconnectCustomerSimulationsResponseDataAttributes;
|
|
10
|
+
}
|