@revkeen/sdk 1.20260312.41
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/BaseClient.d.ts +41 -0
- package/BaseClient.js +29 -0
- package/BaseClient.ts +83 -0
- package/Client.d.ts +123 -0
- package/Client.js +156 -0
- package/Client.ts +240 -0
- package/api/errors/BadRequestError.d.ts +6 -0
- package/api/errors/BadRequestError.js +18 -0
- package/api/errors/BadRequestError.ts +21 -0
- package/api/errors/ConflictError.d.ts +6 -0
- package/api/errors/ConflictError.js +18 -0
- package/api/errors/ConflictError.ts +21 -0
- package/api/errors/ForbiddenError.d.ts +6 -0
- package/api/errors/ForbiddenError.js +18 -0
- package/api/errors/ForbiddenError.ts +21 -0
- package/api/errors/InternalServerError.d.ts +6 -0
- package/api/errors/InternalServerError.js +18 -0
- package/api/errors/InternalServerError.ts +21 -0
- package/api/errors/NotFoundError.d.ts +6 -0
- package/api/errors/NotFoundError.js +18 -0
- package/api/errors/NotFoundError.ts +21 -0
- package/api/errors/UnauthorizedError.d.ts +6 -0
- package/api/errors/UnauthorizedError.js +18 -0
- package/api/errors/UnauthorizedError.ts +21 -0
- package/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/api/errors/UnprocessableEntityError.js +18 -0
- package/api/errors/UnprocessableEntityError.ts +21 -0
- package/api/errors/index.d.ts +8 -0
- package/api/errors/index.js +8 -0
- package/api/errors/index.ts +7 -0
- package/api/index.d.ts +4 -0
- package/api/index.js +4 -0
- package/api/index.ts +3 -0
- package/api/resources/analytics/client/Client.d.ts +170 -0
- package/api/resources/analytics/client/Client.js +613 -0
- package/api/resources/analytics/client/Client.ts +860 -0
- package/api/resources/analytics/client/index.d.ts +2 -0
- package/api/resources/analytics/client/index.js +2 -0
- package/api/resources/analytics/client/index.ts +1 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.d.ts +14 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.ts +15 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.d.ts +16 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.ts +18 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.d.ts +14 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.ts +15 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.d.ts +18 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.ts +20 -0
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.d.ts +14 -0
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.ts +15 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.d.ts +11 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.ts +12 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.d.ts +11 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.ts +12 -0
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.d.ts +11 -0
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.ts +12 -0
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.d.ts +14 -0
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.ts +15 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.d.ts +11 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.ts +12 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.d.ts +17 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.js +3 -0
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.ts +19 -0
- package/api/resources/analytics/client/requests/index.d.ts +12 -0
- package/api/resources/analytics/client/requests/index.js +2 -0
- package/api/resources/analytics/client/requests/index.ts +11 -0
- package/api/resources/analytics/index.d.ts +3 -0
- package/api/resources/analytics/index.js +3 -0
- package/api/resources/analytics/index.ts +2 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.d.ts +22 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.ts +25 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.d.ts +9 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.js +9 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.ts +11 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.d.ts +9 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.js +9 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.ts +11 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.d.ts +31 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.ts +34 -0
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.d.ts +25 -0
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.ts +28 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.d.ts +23 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.ts +26 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.d.ts +10 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.js +10 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.ts +12 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.d.ts +8 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.js +8 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.ts +10 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.d.ts +45 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.js +23 -0
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.ts +49 -0
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.d.ts +16 -0
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.js +10 -0
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.ts +18 -0
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.d.ts +19 -0
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.ts +22 -0
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.d.ts +10 -0
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.ts +11 -0
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.d.ts +17 -0
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.ts +20 -0
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.d.ts +9 -0
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.ts +10 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.d.ts +11 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.ts +12 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.d.ts +10 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.js +10 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.ts +12 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.d.ts +19 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.js +3 -0
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.ts +22 -0
- package/api/resources/analytics/types/index.d.ts +18 -0
- package/api/resources/analytics/types/index.js +18 -0
- package/api/resources/analytics/types/index.ts +17 -0
- package/api/resources/apps/client/Client.d.ts +63 -0
- package/api/resources/apps/client/Client.js +187 -0
- package/api/resources/apps/client/Client.ts +246 -0
- package/api/resources/apps/client/index.d.ts +2 -0
- package/api/resources/apps/client/index.js +2 -0
- package/api/resources/apps/client/index.ts +1 -0
- package/api/resources/apps/client/requests/DeleteAppsAppKeyInstallRequest.d.ts +10 -0
- package/api/resources/apps/client/requests/DeleteAppsAppKeyInstallRequest.js +3 -0
- package/api/resources/apps/client/requests/DeleteAppsAppKeyInstallRequest.ts +11 -0
- package/api/resources/apps/client/requests/PostAppsAppKeyInstallRequest.d.ts +10 -0
- package/api/resources/apps/client/requests/PostAppsAppKeyInstallRequest.js +3 -0
- package/api/resources/apps/client/requests/PostAppsAppKeyInstallRequest.ts +11 -0
- package/api/resources/apps/client/requests/index.d.ts +3 -0
- package/api/resources/apps/client/requests/index.js +2 -0
- package/api/resources/apps/client/requests/index.ts +2 -0
- package/api/resources/apps/index.d.ts +3 -0
- package/api/resources/apps/index.js +3 -0
- package/api/resources/apps/index.ts +2 -0
- package/api/resources/apps/types/DeleteAppsAppKeyInstallResponse.d.ts +5 -0
- package/api/resources/apps/types/DeleteAppsAppKeyInstallResponse.js +3 -0
- package/api/resources/apps/types/DeleteAppsAppKeyInstallResponse.ts +6 -0
- package/api/resources/apps/types/GetAppsEntitlementsResponse.d.ts +5 -0
- package/api/resources/apps/types/GetAppsEntitlementsResponse.js +3 -0
- package/api/resources/apps/types/GetAppsEntitlementsResponse.ts +6 -0
- package/api/resources/apps/types/PostAppsAppKeyInstallResponse.d.ts +6 -0
- package/api/resources/apps/types/PostAppsAppKeyInstallResponse.js +3 -0
- package/api/resources/apps/types/PostAppsAppKeyInstallResponse.ts +7 -0
- package/api/resources/apps/types/index.d.ts +4 -0
- package/api/resources/apps/types/index.js +4 -0
- package/api/resources/apps/types/index.ts +3 -0
- package/api/resources/billing/client/Client.d.ts +61 -0
- package/api/resources/billing/client/Client.js +156 -0
- package/api/resources/billing/client/Client.ts +213 -0
- package/api/resources/billing/client/index.d.ts +2 -0
- package/api/resources/billing/client/index.js +2 -0
- package/api/resources/billing/client/index.ts +1 -0
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.d.ts +50 -0
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.js +27 -0
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.ts +52 -0
- package/api/resources/billing/client/requests/index.d.ts +2 -0
- package/api/resources/billing/client/requests/index.js +2 -0
- package/api/resources/billing/client/requests/index.ts +1 -0
- package/api/resources/billing/index.d.ts +2 -0
- package/api/resources/billing/index.js +2 -0
- package/api/resources/billing/index.ts +1 -0
- package/api/resources/businesses/client/Client.d.ts +59 -0
- package/api/resources/businesses/client/Client.js +175 -0
- package/api/resources/businesses/client/Client.ts +236 -0
- package/api/resources/businesses/client/index.d.ts +2 -0
- package/api/resources/businesses/client/index.js +2 -0
- package/api/resources/businesses/client/index.ts +1 -0
- package/api/resources/businesses/client/requests/GetBusinessesIdRequest.d.ts +10 -0
- package/api/resources/businesses/client/requests/GetBusinessesIdRequest.js +3 -0
- package/api/resources/businesses/client/requests/GetBusinessesIdRequest.ts +11 -0
- package/api/resources/businesses/client/requests/GetBusinessesRequest.d.ts +13 -0
- package/api/resources/businesses/client/requests/GetBusinessesRequest.js +3 -0
- package/api/resources/businesses/client/requests/GetBusinessesRequest.ts +14 -0
- package/api/resources/businesses/client/requests/PostBusinessesRequest.d.ts +21 -0
- package/api/resources/businesses/client/requests/PostBusinessesRequest.js +3 -0
- package/api/resources/businesses/client/requests/PostBusinessesRequest.ts +22 -0
- package/api/resources/businesses/client/requests/index.d.ts +4 -0
- package/api/resources/businesses/client/requests/index.js +2 -0
- package/api/resources/businesses/client/requests/index.ts +3 -0
- package/api/resources/businesses/index.d.ts +3 -0
- package/api/resources/businesses/index.js +3 -0
- package/api/resources/businesses/index.ts +2 -0
- package/api/resources/businesses/types/GetBusinessesIdResponse.d.ts +5 -0
- package/api/resources/businesses/types/GetBusinessesIdResponse.js +3 -0
- package/api/resources/businesses/types/GetBusinessesIdResponse.ts +6 -0
- package/api/resources/businesses/types/GetBusinessesResponse.d.ts +15 -0
- package/api/resources/businesses/types/GetBusinessesResponse.js +3 -0
- package/api/resources/businesses/types/GetBusinessesResponse.ts +17 -0
- package/api/resources/businesses/types/PostBusinessesResponse.d.ts +5 -0
- package/api/resources/businesses/types/PostBusinessesResponse.js +3 -0
- package/api/resources/businesses/types/PostBusinessesResponse.ts +6 -0
- package/api/resources/businesses/types/index.d.ts +4 -0
- package/api/resources/businesses/types/index.js +4 -0
- package/api/resources/businesses/types/index.ts +3 -0
- package/api/resources/charges/client/Client.d.ts +110 -0
- package/api/resources/charges/client/Client.js +317 -0
- package/api/resources/charges/client/Client.ts +412 -0
- package/api/resources/charges/client/index.d.ts +2 -0
- package/api/resources/charges/client/index.js +2 -0
- package/api/resources/charges/client/index.ts +1 -0
- package/api/resources/charges/client/requests/ChargesCaptureRequest.d.ts +11 -0
- package/api/resources/charges/client/requests/ChargesCaptureRequest.js +3 -0
- package/api/resources/charges/client/requests/ChargesCaptureRequest.ts +12 -0
- package/api/resources/charges/client/requests/ChargesCreateRequest.d.ts +21 -0
- package/api/resources/charges/client/requests/ChargesCreateRequest.js +3 -0
- package/api/resources/charges/client/requests/ChargesCreateRequest.ts +22 -0
- package/api/resources/charges/client/requests/ChargesListRequest.d.ts +20 -0
- package/api/resources/charges/client/requests/ChargesListRequest.js +3 -0
- package/api/resources/charges/client/requests/ChargesListRequest.ts +22 -0
- package/api/resources/charges/client/requests/ChargesRefundRequest.d.ts +22 -0
- package/api/resources/charges/client/requests/ChargesRefundRequest.js +11 -0
- package/api/resources/charges/client/requests/ChargesRefundRequest.ts +24 -0
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.d.ts +10 -0
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.js +3 -0
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.ts +11 -0
- package/api/resources/charges/client/requests/index.d.ts +6 -0
- package/api/resources/charges/client/requests/index.js +2 -0
- package/api/resources/charges/client/requests/index.ts +5 -0
- package/api/resources/charges/index.d.ts +3 -0
- package/api/resources/charges/index.js +3 -0
- package/api/resources/charges/index.ts +2 -0
- package/api/resources/charges/types/ChargesListRequestStatus.d.ts +10 -0
- package/api/resources/charges/types/ChargesListRequestStatus.js +10 -0
- package/api/resources/charges/types/ChargesListRequestStatus.ts +11 -0
- package/api/resources/charges/types/index.d.ts +2 -0
- package/api/resources/charges/types/index.js +2 -0
- package/api/resources/charges/types/index.ts +1 -0
- package/api/resources/checkoutSessions/client/Client.d.ts +36 -0
- package/api/resources/checkoutSessions/client/Client.js +80 -0
- package/api/resources/checkoutSessions/client/Client.ts +107 -0
- package/api/resources/checkoutSessions/client/index.d.ts +2 -0
- package/api/resources/checkoutSessions/client/index.js +2 -0
- package/api/resources/checkoutSessions/client/index.ts +1 -0
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.d.ts +13 -0
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.js +3 -0
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.ts +14 -0
- package/api/resources/checkoutSessions/client/requests/index.d.ts +2 -0
- package/api/resources/checkoutSessions/client/requests/index.js +2 -0
- package/api/resources/checkoutSessions/client/requests/index.ts +1 -0
- package/api/resources/checkoutSessions/index.d.ts +2 -0
- package/api/resources/checkoutSessions/index.js +2 -0
- package/api/resources/checkoutSessions/index.ts +1 -0
- package/api/resources/clients/client/Client.d.ts +32 -0
- package/api/resources/clients/client/Client.js +76 -0
- package/api/resources/clients/client/Client.ts +108 -0
- package/api/resources/clients/client/index.d.ts +2 -0
- package/api/resources/clients/client/index.js +2 -0
- package/api/resources/clients/client/index.ts +1 -0
- package/api/resources/clients/client/requests/GetClientsIdConfiguredCurrenciesRequest.d.ts +10 -0
- package/api/resources/clients/client/requests/GetClientsIdConfiguredCurrenciesRequest.js +3 -0
- package/api/resources/clients/client/requests/GetClientsIdConfiguredCurrenciesRequest.ts +11 -0
- package/api/resources/clients/client/requests/index.d.ts +2 -0
- package/api/resources/clients/client/requests/index.js +2 -0
- package/api/resources/clients/client/requests/index.ts +1 -0
- package/api/resources/clients/index.d.ts +3 -0
- package/api/resources/clients/index.js +3 -0
- package/api/resources/clients/index.ts +2 -0
- package/api/resources/clients/types/GetClientsIdConfiguredCurrenciesResponse.d.ts +18 -0
- package/api/resources/clients/types/GetClientsIdConfiguredCurrenciesResponse.js +3 -0
- package/api/resources/clients/types/GetClientsIdConfiguredCurrenciesResponse.ts +21 -0
- package/api/resources/clients/types/index.d.ts +2 -0
- package/api/resources/clients/types/index.js +2 -0
- package/api/resources/clients/types/index.ts +1 -0
- package/api/resources/comms/client/Client.d.ts +56 -0
- package/api/resources/comms/client/Client.js +170 -0
- package/api/resources/comms/client/Client.ts +236 -0
- package/api/resources/comms/client/index.d.ts +2 -0
- package/api/resources/comms/client/index.js +2 -0
- package/api/resources/comms/client/index.ts +1 -0
- package/api/resources/comms/client/requests/CommsMessagesListRequest.d.ts +15 -0
- package/api/resources/comms/client/requests/CommsMessagesListRequest.js +3 -0
- package/api/resources/comms/client/requests/CommsMessagesListRequest.ts +16 -0
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.d.ts +45 -0
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.js +22 -0
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.ts +47 -0
- package/api/resources/comms/client/requests/CommsThreadsListRequest.d.ts +20 -0
- package/api/resources/comms/client/requests/CommsThreadsListRequest.js +3 -0
- package/api/resources/comms/client/requests/CommsThreadsListRequest.ts +22 -0
- package/api/resources/comms/client/requests/index.d.ts +4 -0
- package/api/resources/comms/client/requests/index.js +2 -0
- package/api/resources/comms/client/requests/index.ts +3 -0
- package/api/resources/comms/index.d.ts +3 -0
- package/api/resources/comms/index.js +3 -0
- package/api/resources/comms/index.ts +2 -0
- package/api/resources/comms/types/CommsMessagesListResponse.d.ts +8 -0
- package/api/resources/comms/types/CommsMessagesListResponse.js +3 -0
- package/api/resources/comms/types/CommsMessagesListResponse.ts +9 -0
- package/api/resources/comms/types/CommsMessagesSendResponse.d.ts +8 -0
- package/api/resources/comms/types/CommsMessagesSendResponse.js +3 -0
- package/api/resources/comms/types/CommsMessagesSendResponse.ts +9 -0
- package/api/resources/comms/types/CommsThreadsListRequestStatus.d.ts +8 -0
- package/api/resources/comms/types/CommsThreadsListRequestStatus.js +8 -0
- package/api/resources/comms/types/CommsThreadsListRequestStatus.ts +10 -0
- package/api/resources/comms/types/CommsThreadsListResponse.d.ts +8 -0
- package/api/resources/comms/types/CommsThreadsListResponse.js +3 -0
- package/api/resources/comms/types/CommsThreadsListResponse.ts +9 -0
- package/api/resources/comms/types/index.d.ts +5 -0
- package/api/resources/comms/types/index.js +5 -0
- package/api/resources/comms/types/index.ts +4 -0
- package/api/resources/creditNotes/client/Client.d.ts +93 -0
- package/api/resources/creditNotes/client/Client.js +263 -0
- package/api/resources/creditNotes/client/Client.ts +350 -0
- package/api/resources/creditNotes/client/index.d.ts +2 -0
- package/api/resources/creditNotes/client/index.js +2 -0
- package/api/resources/creditNotes/client/index.ts +1 -0
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.d.ts +54 -0
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.js +21 -0
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.ts +56 -0
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.d.ts +28 -0
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.js +3 -0
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.ts +30 -0
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.d.ts +11 -0
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.js +3 -0
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts +12 -0
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.d.ts +11 -0
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.js +3 -0
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.ts +12 -0
- package/api/resources/creditNotes/client/requests/index.d.ts +5 -0
- package/api/resources/creditNotes/client/requests/index.js +2 -0
- package/api/resources/creditNotes/client/requests/index.ts +4 -0
- package/api/resources/creditNotes/index.d.ts +3 -0
- package/api/resources/creditNotes/index.js +3 -0
- package/api/resources/creditNotes/index.ts +2 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.d.ts +8 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.js +8 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.ts +10 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.d.ts +10 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.js +10 -0
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.ts +12 -0
- package/api/resources/creditNotes/types/index.d.ts +3 -0
- package/api/resources/creditNotes/types/index.js +3 -0
- package/api/resources/creditNotes/types/index.ts +2 -0
- package/api/resources/customers/client/Client.d.ts +223 -0
- package/api/resources/customers/client/Client.js +729 -0
- package/api/resources/customers/client/Client.ts +978 -0
- package/api/resources/customers/client/index.d.ts +2 -0
- package/api/resources/customers/client/index.js +2 -0
- package/api/resources/customers/client/index.ts +1 -0
- package/api/resources/customers/client/requests/CustomersCreateRequest.d.ts +15 -0
- package/api/resources/customers/client/requests/CustomersCreateRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersCreateRequest.ts +16 -0
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.d.ts +53 -0
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.ts +56 -0
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.d.ts +31 -0
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.ts +32 -0
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.d.ts +18 -0
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.ts +19 -0
- package/api/resources/customers/client/requests/CustomersListRequest.d.ts +13 -0
- package/api/resources/customers/client/requests/CustomersListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersListRequest.ts +14 -0
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.d.ts +21 -0
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.ts +23 -0
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.d.ts +11 -0
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.ts +12 -0
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.d.ts +21 -0
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.ts +23 -0
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.d.ts +13 -0
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.ts +14 -0
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.d.ts +11 -0
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.ts +12 -0
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.d.ts +21 -0
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.ts +23 -0
- package/api/resources/customers/client/requests/CustomersUpdateRequest.d.ts +17 -0
- package/api/resources/customers/client/requests/CustomersUpdateRequest.js +3 -0
- package/api/resources/customers/client/requests/CustomersUpdateRequest.ts +18 -0
- package/api/resources/customers/client/requests/index.d.ts +13 -0
- package/api/resources/customers/client/requests/index.js +2 -0
- package/api/resources/customers/client/requests/index.ts +12 -0
- package/api/resources/customers/index.d.ts +3 -0
- package/api/resources/customers/index.js +3 -0
- package/api/resources/customers/index.ts +2 -0
- package/api/resources/customers/types/CustomersExternalBatchResponse.d.ts +20 -0
- package/api/resources/customers/types/CustomersExternalBatchResponse.js +3 -0
- package/api/resources/customers/types/CustomersExternalBatchResponse.ts +23 -0
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.d.ts +23 -0
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.js +3 -0
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.ts +26 -0
- package/api/resources/customers/types/CustomersInvoicesListResponse.d.ts +13 -0
- package/api/resources/customers/types/CustomersInvoicesListResponse.js +8 -0
- package/api/resources/customers/types/CustomersInvoicesListResponse.ts +16 -0
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.d.ts +9 -0
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.js +9 -0
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.ts +11 -0
- package/api/resources/customers/types/CustomersOrdersListResponse.d.ts +13 -0
- package/api/resources/customers/types/CustomersOrdersListResponse.js +8 -0
- package/api/resources/customers/types/CustomersOrdersListResponse.ts +16 -0
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.d.ts +11 -0
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.js +11 -0
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.ts +13 -0
- package/api/resources/customers/types/CustomersPaymentsListResponse.d.ts +13 -0
- package/api/resources/customers/types/CustomersPaymentsListResponse.js +8 -0
- package/api/resources/customers/types/CustomersPaymentsListResponse.ts +16 -0
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.d.ts +10 -0
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.js +10 -0
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.ts +12 -0
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.d.ts +13 -0
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.js +8 -0
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.ts +16 -0
- package/api/resources/customers/types/index.d.ts +10 -0
- package/api/resources/customers/types/index.js +10 -0
- package/api/resources/customers/types/index.ts +9 -0
- package/api/resources/discounts/client/Client.d.ts +104 -0
- package/api/resources/discounts/client/Client.js +300 -0
- package/api/resources/discounts/client/Client.ts +395 -0
- package/api/resources/discounts/client/index.d.ts +2 -0
- package/api/resources/discounts/client/index.js +2 -0
- package/api/resources/discounts/client/index.ts +1 -0
- package/api/resources/discounts/client/requests/CreateDiscountInput.d.ts +71 -0
- package/api/resources/discounts/client/requests/CreateDiscountInput.js +28 -0
- package/api/resources/discounts/client/requests/CreateDiscountInput.ts +73 -0
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.d.ts +11 -0
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.js +3 -0
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.ts +12 -0
- package/api/resources/discounts/client/requests/DiscountsListRequest.d.ts +18 -0
- package/api/resources/discounts/client/requests/DiscountsListRequest.js +3 -0
- package/api/resources/discounts/client/requests/DiscountsListRequest.ts +20 -0
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.d.ts +11 -0
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.js +3 -0
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.ts +12 -0
- package/api/resources/discounts/client/requests/UpdateDiscountInput.d.ts +46 -0
- package/api/resources/discounts/client/requests/UpdateDiscountInput.js +20 -0
- package/api/resources/discounts/client/requests/UpdateDiscountInput.ts +48 -0
- package/api/resources/discounts/client/requests/index.d.ts +6 -0
- package/api/resources/discounts/client/requests/index.js +3 -0
- package/api/resources/discounts/client/requests/index.ts +5 -0
- package/api/resources/discounts/index.d.ts +3 -0
- package/api/resources/discounts/index.js +3 -0
- package/api/resources/discounts/index.ts +2 -0
- package/api/resources/discounts/types/DiscountsListRequestIsActive.d.ts +7 -0
- package/api/resources/discounts/types/DiscountsListRequestIsActive.js +7 -0
- package/api/resources/discounts/types/DiscountsListRequestIsActive.ts +9 -0
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.d.ts +7 -0
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.js +7 -0
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.ts +9 -0
- package/api/resources/discounts/types/index.d.ts +3 -0
- package/api/resources/discounts/types/index.js +3 -0
- package/api/resources/discounts/types/index.ts +2 -0
- package/api/resources/disputes/client/Client.d.ts +72 -0
- package/api/resources/disputes/client/Client.js +199 -0
- package/api/resources/disputes/client/Client.ts +270 -0
- package/api/resources/disputes/client/index.d.ts +2 -0
- package/api/resources/disputes/client/index.js +2 -0
- package/api/resources/disputes/client/index.ts +1 -0
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.d.ts +11 -0
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.js +3 -0
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.ts +12 -0
- package/api/resources/disputes/client/requests/DisputesListRequest.d.ts +30 -0
- package/api/resources/disputes/client/requests/DisputesListRequest.js +3 -0
- package/api/resources/disputes/client/requests/DisputesListRequest.ts +32 -0
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.d.ts +11 -0
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.js +3 -0
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.ts +12 -0
- package/api/resources/disputes/client/requests/index.d.ts +4 -0
- package/api/resources/disputes/client/requests/index.js +2 -0
- package/api/resources/disputes/client/requests/index.ts +3 -0
- package/api/resources/disputes/index.d.ts +3 -0
- package/api/resources/disputes/index.js +3 -0
- package/api/resources/disputes/index.ts +2 -0
- package/api/resources/disputes/types/DisputesGetOpenResponse.d.ts +12 -0
- package/api/resources/disputes/types/DisputesGetOpenResponse.js +3 -0
- package/api/resources/disputes/types/DisputesGetOpenResponse.ts +15 -0
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.d.ts +7 -0
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.js +7 -0
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.ts +9 -0
- package/api/resources/disputes/types/DisputesListRequestResolution.d.ts +8 -0
- package/api/resources/disputes/types/DisputesListRequestResolution.js +8 -0
- package/api/resources/disputes/types/DisputesListRequestResolution.ts +10 -0
- package/api/resources/disputes/types/DisputesListRequestStatus.d.ts +11 -0
- package/api/resources/disputes/types/DisputesListRequestStatus.js +11 -0
- package/api/resources/disputes/types/DisputesListRequestStatus.ts +12 -0
- package/api/resources/disputes/types/DisputesListResponse.d.ts +14 -0
- package/api/resources/disputes/types/DisputesListResponse.js +3 -0
- package/api/resources/disputes/types/DisputesListResponse.ts +17 -0
- package/api/resources/disputes/types/DisputesRetrieveResponse.d.ts +11 -0
- package/api/resources/disputes/types/DisputesRetrieveResponse.js +3 -0
- package/api/resources/disputes/types/DisputesRetrieveResponse.ts +14 -0
- package/api/resources/disputes/types/index.d.ts +7 -0
- package/api/resources/disputes/types/index.js +7 -0
- package/api/resources/disputes/types/index.ts +6 -0
- package/api/resources/entitlements/client/Client.d.ts +98 -0
- package/api/resources/entitlements/client/Client.js +318 -0
- package/api/resources/entitlements/client/Client.ts +438 -0
- package/api/resources/entitlements/client/index.d.ts +2 -0
- package/api/resources/entitlements/client/index.js +2 -0
- package/api/resources/entitlements/client/index.ts +1 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.d.ts +14 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.js +3 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.ts +15 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.d.ts +15 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.js +3 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.ts +16 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.d.ts +21 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.js +3 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.ts +22 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.d.ts +14 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.js +3 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.ts +15 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.d.ts +13 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.js +3 -0
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.ts +14 -0
- package/api/resources/entitlements/client/requests/index.d.ts +6 -0
- package/api/resources/entitlements/client/requests/index.js +2 -0
- package/api/resources/entitlements/client/requests/index.ts +5 -0
- package/api/resources/entitlements/index.d.ts +3 -0
- package/api/resources/entitlements/index.js +3 -0
- package/api/resources/entitlements/index.ts +2 -0
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.d.ts +45 -0
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.js +22 -0
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.ts +49 -0
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.d.ts +52 -0
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.js +22 -0
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.ts +56 -0
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.d.ts +66 -0
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.js +25 -0
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.ts +73 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.d.ts +52 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.js +22 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.ts +56 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.d.ts +52 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.js +22 -0
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.ts +56 -0
- package/api/resources/entitlements/types/index.d.ts +6 -0
- package/api/resources/entitlements/types/index.js +6 -0
- package/api/resources/entitlements/types/index.ts +5 -0
- package/api/resources/events/client/Client.d.ts +84 -0
- package/api/resources/events/client/Client.js +243 -0
- package/api/resources/events/client/Client.ts +333 -0
- package/api/resources/events/client/index.d.ts +2 -0
- package/api/resources/events/client/index.js +2 -0
- package/api/resources/events/client/index.ts +1 -0
- package/api/resources/events/client/requests/CreateTestEventRequest.d.ts +60 -0
- package/api/resources/events/client/requests/CreateTestEventRequest.js +51 -0
- package/api/resources/events/client/requests/CreateTestEventRequest.ts +62 -0
- package/api/resources/events/client/requests/EventsListRequest.d.ts +32 -0
- package/api/resources/events/client/requests/EventsListRequest.js +3 -0
- package/api/resources/events/client/requests/EventsListRequest.ts +33 -0
- package/api/resources/events/client/requests/EventsResendRequest.d.ts +11 -0
- package/api/resources/events/client/requests/EventsResendRequest.js +3 -0
- package/api/resources/events/client/requests/EventsResendRequest.ts +12 -0
- package/api/resources/events/client/requests/EventsRetrieveRequest.d.ts +11 -0
- package/api/resources/events/client/requests/EventsRetrieveRequest.js +3 -0
- package/api/resources/events/client/requests/EventsRetrieveRequest.ts +12 -0
- package/api/resources/events/client/requests/index.d.ts +5 -0
- package/api/resources/events/client/requests/index.js +2 -0
- package/api/resources/events/client/requests/index.ts +4 -0
- package/api/resources/events/index.d.ts +2 -0
- package/api/resources/events/index.js +2 -0
- package/api/resources/events/index.ts +1 -0
- package/api/resources/finance/client/Client.d.ts +46 -0
- package/api/resources/finance/client/Client.js +130 -0
- package/api/resources/finance/client/Client.ts +178 -0
- package/api/resources/finance/client/index.d.ts +2 -0
- package/api/resources/finance/client/index.js +2 -0
- package/api/resources/finance/client/index.ts +1 -0
- package/api/resources/finance/client/requests/GetFinanceIncomeRequest.d.ts +21 -0
- package/api/resources/finance/client/requests/GetFinanceIncomeRequest.js +3 -0
- package/api/resources/finance/client/requests/GetFinanceIncomeRequest.ts +23 -0
- package/api/resources/finance/client/requests/index.d.ts +2 -0
- package/api/resources/finance/client/requests/index.js +2 -0
- package/api/resources/finance/client/requests/index.ts +1 -0
- package/api/resources/finance/index.d.ts +3 -0
- package/api/resources/finance/index.js +3 -0
- package/api/resources/finance/index.ts +2 -0
- package/api/resources/finance/types/GetFinanceIncomeRequestGroupBy.d.ts +8 -0
- package/api/resources/finance/types/GetFinanceIncomeRequestGroupBy.js +8 -0
- package/api/resources/finance/types/GetFinanceIncomeRequestGroupBy.ts +10 -0
- package/api/resources/finance/types/GetFinanceIncomeResponse.d.ts +15 -0
- package/api/resources/finance/types/GetFinanceIncomeResponse.js +3 -0
- package/api/resources/finance/types/GetFinanceIncomeResponse.ts +17 -0
- package/api/resources/finance/types/GetFinanceSummaryResponse.d.ts +7 -0
- package/api/resources/finance/types/GetFinanceSummaryResponse.js +3 -0
- package/api/resources/finance/types/GetFinanceSummaryResponse.ts +8 -0
- package/api/resources/finance/types/index.d.ts +4 -0
- package/api/resources/finance/types/index.js +4 -0
- package/api/resources/finance/types/index.ts +3 -0
- package/api/resources/index.d.ts +109 -0
- package/api/resources/index.js +109 -0
- package/api/resources/index.ts +108 -0
- package/api/resources/integrations/client/Client.d.ts +416 -0
- package/api/resources/integrations/client/Client.js +1385 -0
- package/api/resources/integrations/client/Client.ts +1922 -0
- package/api/resources/integrations/client/index.d.ts +2 -0
- package/api/resources/integrations/client/index.js +2 -0
- package/api/resources/integrations/client/index.ts +1 -0
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.d.ts +26 -0
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.ts +29 -0
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.d.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.ts +17 -0
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.d.ts +12 -0
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.ts +14 -0
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.d.ts +11 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.d.ts +11 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.d.ts +11 -0
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.d.ts +11 -0
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.d.ts +27 -0
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.ts +31 -0
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.d.ts +17 -0
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.ts +19 -0
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.d.ts +33 -0
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.ts +38 -0
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.d.ts +20 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.ts +22 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.d.ts +11 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.ts +15 -0
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.d.ts +24 -0
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.ts +27 -0
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.d.ts +12 -0
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.js +3 -0
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.ts +14 -0
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.d.ts +23 -0
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.js +11 -0
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.ts +26 -0
- package/api/resources/integrations/client/requests/index.d.ts +24 -0
- package/api/resources/integrations/client/requests/index.js +2 -0
- package/api/resources/integrations/client/requests/index.ts +23 -0
- package/api/resources/integrations/index.d.ts +3 -0
- package/api/resources/integrations/index.js +3 -0
- package/api/resources/integrations/index.ts +2 -0
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsActivateResponse.d.ts +37 -0
- package/api/resources/integrations/types/IntegrationsActivateResponse.js +18 -0
- package/api/resources/integrations/types/IntegrationsActivateResponse.ts +41 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.ts +5 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.d.ts +25 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.ts +29 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.d.ts +16 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.ts +19 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.d.ts +18 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.ts +21 -0
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.d.ts +36 -0
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.js +18 -0
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.ts +40 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.ts +5 -0
- package/api/resources/integrations/types/IntegrationsListResponse.d.ts +39 -0
- package/api/resources/integrations/types/IntegrationsListResponse.js +21 -0
- package/api/resources/integrations/types/IntegrationsListResponse.ts +44 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.ts +5 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.d.ts +16 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.ts +19 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.ts +5 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.d.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.js +8 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.ts +10 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.d.ts +9 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.js +9 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.ts +11 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.d.ts +18 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.ts +21 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.ts +5 -0
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsTestResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsTestResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsTestResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.d.ts +5 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.ts +6 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.d.ts +6 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.js +6 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.ts +8 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.d.ts +4 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.js +3 -0
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.ts +5 -0
- package/api/resources/integrations/types/index.d.ts +51 -0
- package/api/resources/integrations/types/index.js +51 -0
- package/api/resources/integrations/types/index.ts +50 -0
- package/api/resources/invoices/client/Client.d.ts +297 -0
- package/api/resources/invoices/client/Client.js +964 -0
- package/api/resources/invoices/client/Client.ts +1290 -0
- package/api/resources/invoices/client/index.d.ts +2 -0
- package/api/resources/invoices/client/index.js +2 -0
- package/api/resources/invoices/client/index.ts +1 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.d.ts +15 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.ts +16 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.d.ts +13 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.ts +14 -0
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.d.ts +20 -0
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.ts +22 -0
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.d.ts +10 -0
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.ts +11 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.d.ts +56 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.js +23 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.ts +58 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.d.ts +10 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.ts +11 -0
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.d.ts +10 -0
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts +11 -0
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.d.ts +74 -0
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.ts +81 -0
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.d.ts +50 -0
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.ts +55 -0
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.d.ts +12 -0
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.ts +13 -0
- package/api/resources/invoices/client/requests/InvoicesListRequest.d.ts +15 -0
- package/api/resources/invoices/client/requests/InvoicesListRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesListRequest.ts +16 -0
- package/api/resources/invoices/client/requests/InvoicesPayRequest.d.ts +30 -0
- package/api/resources/invoices/client/requests/InvoicesPayRequest.js +12 -0
- package/api/resources/invoices/client/requests/InvoicesPayRequest.ts +32 -0
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.d.ts +14 -0
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.ts +15 -0
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.d.ts +13 -0
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.ts +14 -0
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.d.ts +10 -0
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.ts +11 -0
- package/api/resources/invoices/client/requests/InvoicesSendRequest.d.ts +23 -0
- package/api/resources/invoices/client/requests/InvoicesSendRequest.js +11 -0
- package/api/resources/invoices/client/requests/InvoicesSendRequest.ts +25 -0
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.d.ts +65 -0
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.js +31 -0
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.ts +68 -0
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.d.ts +12 -0
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.js +3 -0
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.ts +13 -0
- package/api/resources/invoices/client/requests/index.d.ts +19 -0
- package/api/resources/invoices/client/requests/index.js +5 -0
- package/api/resources/invoices/client/requests/index.ts +18 -0
- package/api/resources/invoices/index.d.ts +3 -0
- package/api/resources/invoices/index.js +3 -0
- package/api/resources/invoices/index.ts +2 -0
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.d.ts +23 -0
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.js +3 -0
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.ts +26 -0
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.d.ts +3 -0
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.js +3 -0
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.ts +5 -0
- package/api/resources/invoices/types/index.d.ts +3 -0
- package/api/resources/invoices/types/index.js +3 -0
- package/api/resources/invoices/types/index.ts +2 -0
- package/api/resources/orders/client/Client.d.ts +123 -0
- package/api/resources/orders/client/Client.js +372 -0
- package/api/resources/orders/client/Client.ts +493 -0
- package/api/resources/orders/client/index.d.ts +2 -0
- package/api/resources/orders/client/index.js +2 -0
- package/api/resources/orders/client/index.ts +1 -0
- package/api/resources/orders/client/requests/CancelOrderRequest.d.ts +13 -0
- package/api/resources/orders/client/requests/CancelOrderRequest.js +3 -0
- package/api/resources/orders/client/requests/CancelOrderRequest.ts +14 -0
- package/api/resources/orders/client/requests/CreateOrderRequest.d.ts +50 -0
- package/api/resources/orders/client/requests/CreateOrderRequest.js +10 -0
- package/api/resources/orders/client/requests/CreateOrderRequest.ts +53 -0
- package/api/resources/orders/client/requests/FulfillOrderRequest.d.ts +19 -0
- package/api/resources/orders/client/requests/FulfillOrderRequest.js +3 -0
- package/api/resources/orders/client/requests/FulfillOrderRequest.ts +20 -0
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +24 -0
- package/api/resources/orders/client/requests/OrdersListRequest.js +3 -0
- package/api/resources/orders/client/requests/OrdersListRequest.ts +26 -0
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.d.ts +11 -0
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.js +3 -0
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.ts +12 -0
- package/api/resources/orders/client/requests/PayOrderRequest.d.ts +17 -0
- package/api/resources/orders/client/requests/PayOrderRequest.js +3 -0
- package/api/resources/orders/client/requests/PayOrderRequest.ts +18 -0
- package/api/resources/orders/client/requests/index.d.ts +7 -0
- package/api/resources/orders/client/requests/index.js +2 -0
- package/api/resources/orders/client/requests/index.ts +6 -0
- package/api/resources/orders/index.d.ts +3 -0
- package/api/resources/orders/index.js +3 -0
- package/api/resources/orders/index.ts +2 -0
- package/api/resources/orders/types/OrdersListRequestBillingType.d.ts +7 -0
- package/api/resources/orders/types/OrdersListRequestBillingType.js +7 -0
- package/api/resources/orders/types/OrdersListRequestBillingType.ts +9 -0
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/api/resources/orders/types/OrdersListRequestStatus.js +12 -0
- package/api/resources/orders/types/OrdersListRequestStatus.ts +13 -0
- package/api/resources/orders/types/index.d.ts +3 -0
- package/api/resources/orders/types/index.js +3 -0
- package/api/resources/orders/types/index.ts +2 -0
- package/api/resources/paymentAttempts/client/Client.d.ts +165 -0
- package/api/resources/paymentAttempts/client/Client.js +537 -0
- package/api/resources/paymentAttempts/client/Client.ts +757 -0
- package/api/resources/paymentAttempts/client/index.d.ts +2 -0
- package/api/resources/paymentAttempts/client/index.js +2 -0
- package/api/resources/paymentAttempts/client/index.ts +1 -0
- package/api/resources/paymentAttempts/client/requests/CheckRetryEligibilityPaymentAttemptsRequest.d.ts +11 -0
- package/api/resources/paymentAttempts/client/requests/CheckRetryEligibilityPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/CheckRetryEligibilityPaymentAttemptsRequest.ts +12 -0
- package/api/resources/paymentAttempts/client/requests/GetByGatewayOrderIdPaymentAttemptsRequest.d.ts +11 -0
- package/api/resources/paymentAttempts/client/requests/GetByGatewayOrderIdPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/GetByGatewayOrderIdPaymentAttemptsRequest.ts +12 -0
- package/api/resources/paymentAttempts/client/requests/GetPaymentAttemptsRequest.d.ts +11 -0
- package/api/resources/paymentAttempts/client/requests/GetPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/GetPaymentAttemptsRequest.ts +12 -0
- package/api/resources/paymentAttempts/client/requests/GetSecurityResultPaymentAttemptsRequest.d.ts +11 -0
- package/api/resources/paymentAttempts/client/requests/GetSecurityResultPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/GetSecurityResultPaymentAttemptsRequest.ts +12 -0
- package/api/resources/paymentAttempts/client/requests/ListByInvoicePaymentAttemptsRequest.d.ts +13 -0
- package/api/resources/paymentAttempts/client/requests/ListByInvoicePaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/ListByInvoicePaymentAttemptsRequest.ts +14 -0
- package/api/resources/paymentAttempts/client/requests/ListBySubscriptionPaymentAttemptsRequest.d.ts +13 -0
- package/api/resources/paymentAttempts/client/requests/ListBySubscriptionPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/ListBySubscriptionPaymentAttemptsRequest.ts +14 -0
- package/api/resources/paymentAttempts/client/requests/ListByTransactionPaymentAttemptsRequest.d.ts +11 -0
- package/api/resources/paymentAttempts/client/requests/ListByTransactionPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/ListByTransactionPaymentAttemptsRequest.ts +12 -0
- package/api/resources/paymentAttempts/client/requests/ListPaymentAttemptsRequest.d.ts +19 -0
- package/api/resources/paymentAttempts/client/requests/ListPaymentAttemptsRequest.js +3 -0
- package/api/resources/paymentAttempts/client/requests/ListPaymentAttemptsRequest.ts +20 -0
- package/api/resources/paymentAttempts/client/requests/index.d.ts +9 -0
- package/api/resources/paymentAttempts/client/requests/index.js +2 -0
- package/api/resources/paymentAttempts/client/requests/index.ts +8 -0
- package/api/resources/paymentAttempts/index.d.ts +4 -0
- package/api/resources/paymentAttempts/index.js +4 -0
- package/api/resources/paymentAttempts/index.ts +3 -0
- package/api/resources/paymentAttempts/resources/analytics/client/Client.d.ts +30 -0
- package/api/resources/paymentAttempts/resources/analytics/client/Client.js +70 -0
- package/api/resources/paymentAttempts/resources/analytics/client/Client.ts +102 -0
- package/api/resources/paymentAttempts/resources/analytics/client/index.d.ts +2 -0
- package/api/resources/paymentAttempts/resources/analytics/client/index.js +2 -0
- package/api/resources/paymentAttempts/resources/analytics/client/index.ts +1 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/GetDeclinesAnalyticsRequest.d.ts +16 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/GetDeclinesAnalyticsRequest.js +3 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/GetDeclinesAnalyticsRequest.ts +17 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/index.d.ts +2 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/index.js +2 -0
- package/api/resources/paymentAttempts/resources/analytics/client/requests/index.ts +1 -0
- package/api/resources/paymentAttempts/resources/analytics/index.d.ts +2 -0
- package/api/resources/paymentAttempts/resources/analytics/index.js +2 -0
- package/api/resources/paymentAttempts/resources/analytics/index.ts +1 -0
- package/api/resources/paymentAttempts/resources/index.d.ts +3 -0
- package/api/resources/paymentAttempts/resources/index.js +3 -0
- package/api/resources/paymentAttempts/resources/index.ts +2 -0
- package/api/resources/paymentAttempts/types/ListSecurityCodesPaymentAttemptsResponse.d.ts +32 -0
- package/api/resources/paymentAttempts/types/ListSecurityCodesPaymentAttemptsResponse.js +3 -0
- package/api/resources/paymentAttempts/types/ListSecurityCodesPaymentAttemptsResponse.ts +38 -0
- package/api/resources/paymentAttempts/types/index.d.ts +2 -0
- package/api/resources/paymentAttempts/types/index.js +2 -0
- package/api/resources/paymentAttempts/types/index.ts +1 -0
- package/api/resources/paymentIntents/client/Client.d.ts +132 -0
- package/api/resources/paymentIntents/client/Client.js +410 -0
- package/api/resources/paymentIntents/client/Client.ts +557 -0
- package/api/resources/paymentIntents/client/index.d.ts +2 -0
- package/api/resources/paymentIntents/client/index.js +2 -0
- package/api/resources/paymentIntents/client/index.ts +1 -0
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.d.ts +24 -0
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.js +13 -0
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.ts +26 -0
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.d.ts +13 -0
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.js +3 -0
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.ts +14 -0
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.d.ts +15 -0
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.js +3 -0
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.ts +16 -0
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.d.ts +40 -0
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.js +10 -0
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.ts +42 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.d.ts +22 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.js +3 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.ts +24 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.d.ts +11 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.js +3 -0
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.ts +12 -0
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.d.ts +27 -0
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.js +3 -0
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.ts +28 -0
- package/api/resources/paymentIntents/client/requests/index.d.ts +8 -0
- package/api/resources/paymentIntents/client/requests/index.js +3 -0
- package/api/resources/paymentIntents/client/requests/index.ts +7 -0
- package/api/resources/paymentIntents/index.d.ts +3 -0
- package/api/resources/paymentIntents/index.js +3 -0
- package/api/resources/paymentIntents/index.ts +2 -0
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.d.ts +11 -0
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.js +11 -0
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.ts +13 -0
- package/api/resources/paymentIntents/types/index.d.ts +2 -0
- package/api/resources/paymentIntents/types/index.js +2 -0
- package/api/resources/paymentIntents/types/index.ts +1 -0
- package/api/resources/paymentLinks/client/Client.d.ts +151 -0
- package/api/resources/paymentLinks/client/Client.js +478 -0
- package/api/resources/paymentLinks/client/Client.ts +629 -0
- package/api/resources/paymentLinks/client/index.d.ts +2 -0
- package/api/resources/paymentLinks/client/index.js +2 -0
- package/api/resources/paymentLinks/client/index.ts +1 -0
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.d.ts +11 -0
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.ts +12 -0
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.d.ts +11 -0
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.ts +12 -0
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.d.ts +86 -0
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.js +37 -0
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.ts +95 -0
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.d.ts +11 -0
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.ts +12 -0
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.d.ts +12 -0
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.ts +13 -0
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.d.ts +11 -0
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.ts +12 -0
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.d.ts +13 -0
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.js +3 -0
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts +15 -0
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.d.ts +23 -0
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.js +11 -0
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.ts +25 -0
- package/api/resources/paymentLinks/client/requests/index.d.ts +9 -0
- package/api/resources/paymentLinks/client/requests/index.js +3 -0
- package/api/resources/paymentLinks/client/requests/index.ts +8 -0
- package/api/resources/paymentLinks/index.d.ts +3 -0
- package/api/resources/paymentLinks/index.js +3 -0
- package/api/resources/paymentLinks/index.ts +2 -0
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.d.ts +16 -0
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.js +10 -0
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.ts +18 -0
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.d.ts +16 -0
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.js +10 -0
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.ts +18 -0
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.d.ts +84 -0
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.js +39 -0
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.ts +91 -0
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.d.ts +16 -0
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.js +10 -0
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.ts +18 -0
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.d.ts +84 -0
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.js +39 -0
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.ts +91 -0
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.d.ts +84 -0
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.js +39 -0
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.ts +91 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.d.ts +7 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.js +7 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.ts +9 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.d.ts +8 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.js +8 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.ts +10 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.d.ts +98 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.js +45 -0
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.ts +108 -0
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.d.ts +16 -0
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.js +10 -0
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.ts +18 -0
- package/api/resources/paymentLinks/types/index.d.ts +11 -0
- package/api/resources/paymentLinks/types/index.js +11 -0
- package/api/resources/paymentLinks/types/index.ts +10 -0
- package/api/resources/paymentMethods/client/Client.d.ts +115 -0
- package/api/resources/paymentMethods/client/Client.js +327 -0
- package/api/resources/paymentMethods/client/Client.ts +428 -0
- package/api/resources/paymentMethods/client/index.d.ts +2 -0
- package/api/resources/paymentMethods/client/index.js +2 -0
- package/api/resources/paymentMethods/client/index.ts +1 -0
- package/api/resources/paymentMethods/client/requests/AttachPaymentMethodRequest.d.ts +14 -0
- package/api/resources/paymentMethods/client/requests/AttachPaymentMethodRequest.js +3 -0
- package/api/resources/paymentMethods/client/requests/AttachPaymentMethodRequest.ts +15 -0
- package/api/resources/paymentMethods/client/requests/DetachPaymentMethodsRequest.d.ts +11 -0
- package/api/resources/paymentMethods/client/requests/DetachPaymentMethodsRequest.js +3 -0
- package/api/resources/paymentMethods/client/requests/DetachPaymentMethodsRequest.ts +12 -0
- package/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.d.ts +18 -0
- package/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.js +3 -0
- package/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.ts +20 -0
- package/api/resources/paymentMethods/client/requests/RetrievePaymentMethodsRequest.d.ts +11 -0
- package/api/resources/paymentMethods/client/requests/RetrievePaymentMethodsRequest.js +3 -0
- package/api/resources/paymentMethods/client/requests/RetrievePaymentMethodsRequest.ts +12 -0
- package/api/resources/paymentMethods/client/requests/UpdatePaymentMethodRequest.d.ts +15 -0
- package/api/resources/paymentMethods/client/requests/UpdatePaymentMethodRequest.js +3 -0
- package/api/resources/paymentMethods/client/requests/UpdatePaymentMethodRequest.ts +17 -0
- package/api/resources/paymentMethods/client/requests/index.d.ts +6 -0
- package/api/resources/paymentMethods/client/requests/index.js +2 -0
- package/api/resources/paymentMethods/client/requests/index.ts +5 -0
- package/api/resources/paymentMethods/index.d.ts +3 -0
- package/api/resources/paymentMethods/index.js +3 -0
- package/api/resources/paymentMethods/index.ts +2 -0
- package/api/resources/paymentMethods/types/ListPaymentMethodsRequestType.d.ts +8 -0
- package/api/resources/paymentMethods/types/ListPaymentMethodsRequestType.js +8 -0
- package/api/resources/paymentMethods/types/ListPaymentMethodsRequestType.ts +10 -0
- package/api/resources/paymentMethods/types/index.d.ts +2 -0
- package/api/resources/paymentMethods/types/index.js +2 -0
- package/api/resources/paymentMethods/types/index.ts +1 -0
- package/api/resources/payments/client/Client.d.ts +86 -0
- package/api/resources/payments/client/Client.js +253 -0
- package/api/resources/payments/client/Client.ts +341 -0
- package/api/resources/payments/client/index.d.ts +2 -0
- package/api/resources/payments/client/index.js +2 -0
- package/api/resources/payments/client/index.ts +1 -0
- package/api/resources/payments/client/requests/CancelPaymentRequest.d.ts +13 -0
- package/api/resources/payments/client/requests/CancelPaymentRequest.js +3 -0
- package/api/resources/payments/client/requests/CancelPaymentRequest.ts +14 -0
- package/api/resources/payments/client/requests/CapturePaymentRequest.d.ts +13 -0
- package/api/resources/payments/client/requests/CapturePaymentRequest.js +3 -0
- package/api/resources/payments/client/requests/CapturePaymentRequest.ts +14 -0
- package/api/resources/payments/client/requests/PaymentsListRequest.d.ts +26 -0
- package/api/resources/payments/client/requests/PaymentsListRequest.js +3 -0
- package/api/resources/payments/client/requests/PaymentsListRequest.ts +28 -0
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.d.ts +11 -0
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.js +3 -0
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.ts +12 -0
- package/api/resources/payments/client/requests/index.d.ts +5 -0
- package/api/resources/payments/client/requests/index.js +2 -0
- package/api/resources/payments/client/requests/index.ts +4 -0
- package/api/resources/payments/index.d.ts +3 -0
- package/api/resources/payments/index.js +3 -0
- package/api/resources/payments/index.ts +2 -0
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.d.ts +9 -0
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.js +9 -0
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.ts +11 -0
- package/api/resources/payments/types/PaymentsListRequestStatus.d.ts +13 -0
- package/api/resources/payments/types/PaymentsListRequestStatus.js +13 -0
- package/api/resources/payments/types/PaymentsListRequestStatus.ts +14 -0
- package/api/resources/payments/types/index.d.ts +3 -0
- package/api/resources/payments/types/index.js +3 -0
- package/api/resources/payments/types/index.ts +2 -0
- package/api/resources/payouts/client/Client.d.ts +72 -0
- package/api/resources/payouts/client/Client.js +199 -0
- package/api/resources/payouts/client/Client.ts +260 -0
- package/api/resources/payouts/client/index.d.ts +2 -0
- package/api/resources/payouts/client/index.js +2 -0
- package/api/resources/payouts/client/index.ts +1 -0
- package/api/resources/payouts/client/requests/PayoutsListRequest.d.ts +24 -0
- package/api/resources/payouts/client/requests/PayoutsListRequest.js +3 -0
- package/api/resources/payouts/client/requests/PayoutsListRequest.ts +26 -0
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.d.ts +15 -0
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.js +3 -0
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.ts +16 -0
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.d.ts +11 -0
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.js +3 -0
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.ts +12 -0
- package/api/resources/payouts/client/requests/index.d.ts +4 -0
- package/api/resources/payouts/client/requests/index.js +2 -0
- package/api/resources/payouts/client/requests/index.ts +3 -0
- package/api/resources/payouts/index.d.ts +3 -0
- package/api/resources/payouts/index.js +3 -0
- package/api/resources/payouts/index.ts +2 -0
- package/api/resources/payouts/types/PayoutsListRequestStatus.d.ts +10 -0
- package/api/resources/payouts/types/PayoutsListRequestStatus.js +10 -0
- package/api/resources/payouts/types/PayoutsListRequestStatus.ts +11 -0
- package/api/resources/payouts/types/PayoutsListResponse.d.ts +14 -0
- package/api/resources/payouts/types/PayoutsListResponse.js +3 -0
- package/api/resources/payouts/types/PayoutsListResponse.ts +17 -0
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.d.ts +14 -0
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.js +3 -0
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.ts +17 -0
- package/api/resources/payouts/types/PayoutsRetrieveResponse.d.ts +5 -0
- package/api/resources/payouts/types/PayoutsRetrieveResponse.js +3 -0
- package/api/resources/payouts/types/PayoutsRetrieveResponse.ts +7 -0
- package/api/resources/payouts/types/index.d.ts +5 -0
- package/api/resources/payouts/types/index.js +5 -0
- package/api/resources/payouts/types/index.ts +4 -0
- package/api/resources/prices/client/Client.d.ts +100 -0
- package/api/resources/prices/client/Client.js +303 -0
- package/api/resources/prices/client/Client.ts +408 -0
- package/api/resources/prices/client/index.d.ts +2 -0
- package/api/resources/prices/client/index.js +2 -0
- package/api/resources/prices/client/index.ts +1 -0
- package/api/resources/prices/client/requests/CreatePriceRequest.d.ts +62 -0
- package/api/resources/prices/client/requests/CreatePriceRequest.js +23 -0
- package/api/resources/prices/client/requests/CreatePriceRequest.ts +64 -0
- package/api/resources/prices/client/requests/PricesArchiveRequest.d.ts +11 -0
- package/api/resources/prices/client/requests/PricesArchiveRequest.js +3 -0
- package/api/resources/prices/client/requests/PricesArchiveRequest.ts +12 -0
- package/api/resources/prices/client/requests/PricesListRequest.d.ts +26 -0
- package/api/resources/prices/client/requests/PricesListRequest.js +3 -0
- package/api/resources/prices/client/requests/PricesListRequest.ts +28 -0
- package/api/resources/prices/client/requests/PricesRetrieveRequest.d.ts +11 -0
- package/api/resources/prices/client/requests/PricesRetrieveRequest.js +3 -0
- package/api/resources/prices/client/requests/PricesRetrieveRequest.ts +12 -0
- package/api/resources/prices/client/requests/UpdatePriceRequest.d.ts +19 -0
- package/api/resources/prices/client/requests/UpdatePriceRequest.js +3 -0
- package/api/resources/prices/client/requests/UpdatePriceRequest.ts +20 -0
- package/api/resources/prices/client/requests/index.d.ts +6 -0
- package/api/resources/prices/client/requests/index.js +2 -0
- package/api/resources/prices/client/requests/index.ts +5 -0
- package/api/resources/prices/index.d.ts +3 -0
- package/api/resources/prices/index.js +3 -0
- package/api/resources/prices/index.ts +2 -0
- package/api/resources/prices/types/PricesListRequestActive.d.ts +7 -0
- package/api/resources/prices/types/PricesListRequestActive.js +7 -0
- package/api/resources/prices/types/PricesListRequestActive.ts +8 -0
- package/api/resources/prices/types/PricesListRequestPricingModel.d.ts +8 -0
- package/api/resources/prices/types/PricesListRequestPricingModel.js +8 -0
- package/api/resources/prices/types/PricesListRequestPricingModel.ts +10 -0
- package/api/resources/prices/types/PricesListRequestType.d.ts +7 -0
- package/api/resources/prices/types/PricesListRequestType.js +7 -0
- package/api/resources/prices/types/PricesListRequestType.ts +8 -0
- package/api/resources/prices/types/index.d.ts +4 -0
- package/api/resources/prices/types/index.js +4 -0
- package/api/resources/prices/types/index.ts +3 -0
- package/api/resources/products/client/Client.d.ts +130 -0
- package/api/resources/products/client/Client.js +379 -0
- package/api/resources/products/client/Client.ts +496 -0
- package/api/resources/products/client/index.d.ts +2 -0
- package/api/resources/products/client/index.js +2 -0
- package/api/resources/products/client/index.ts +1 -0
- package/api/resources/products/client/requests/CreateProductRequest.d.ts +78 -0
- package/api/resources/products/client/requests/CreateProductRequest.js +38 -0
- package/api/resources/products/client/requests/CreateProductRequest.ts +80 -0
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.d.ts +65 -0
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.js +23 -0
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.ts +69 -0
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.d.ts +56 -0
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.js +17 -0
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.ts +58 -0
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +13 -0
- package/api/resources/products/client/requests/ProductsListRequest.js +3 -0
- package/api/resources/products/client/requests/ProductsListRequest.ts +14 -0
- package/api/resources/products/client/requests/ProductsRetrieveRequest.d.ts +10 -0
- package/api/resources/products/client/requests/ProductsRetrieveRequest.js +3 -0
- package/api/resources/products/client/requests/ProductsRetrieveRequest.ts +11 -0
- package/api/resources/products/client/requests/UpdateProductRequest.d.ts +58 -0
- package/api/resources/products/client/requests/UpdateProductRequest.js +28 -0
- package/api/resources/products/client/requests/UpdateProductRequest.ts +60 -0
- package/api/resources/products/client/requests/index.d.ts +7 -0
- package/api/resources/products/client/requests/index.js +5 -0
- package/api/resources/products/client/requests/index.ts +6 -0
- package/api/resources/products/index.d.ts +3 -0
- package/api/resources/products/index.js +3 -0
- package/api/resources/products/index.ts +2 -0
- package/api/resources/products/types/ProductsExternalBatchResponse.d.ts +20 -0
- package/api/resources/products/types/ProductsExternalBatchResponse.js +3 -0
- package/api/resources/products/types/ProductsExternalBatchResponse.ts +23 -0
- package/api/resources/products/types/ProductsExternalUpsertResponse.d.ts +32 -0
- package/api/resources/products/types/ProductsExternalUpsertResponse.js +12 -0
- package/api/resources/products/types/ProductsExternalUpsertResponse.ts +35 -0
- package/api/resources/products/types/index.d.ts +3 -0
- package/api/resources/products/types/index.js +3 -0
- package/api/resources/products/types/index.ts +2 -0
- package/api/resources/refunds/client/Client.d.ts +75 -0
- package/api/resources/refunds/client/Client.js +202 -0
- package/api/resources/refunds/client/Client.ts +272 -0
- package/api/resources/refunds/client/index.d.ts +2 -0
- package/api/resources/refunds/client/index.js +2 -0
- package/api/resources/refunds/client/index.ts +1 -0
- package/api/resources/refunds/client/requests/CreateRefundInput.d.ts +30 -0
- package/api/resources/refunds/client/requests/CreateRefundInput.js +15 -0
- package/api/resources/refunds/client/requests/CreateRefundInput.ts +32 -0
- package/api/resources/refunds/client/requests/RefundsListRequest.d.ts +28 -0
- package/api/resources/refunds/client/requests/RefundsListRequest.js +3 -0
- package/api/resources/refunds/client/requests/RefundsListRequest.ts +30 -0
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.d.ts +11 -0
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.js +3 -0
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.ts +12 -0
- package/api/resources/refunds/client/requests/index.d.ts +4 -0
- package/api/resources/refunds/client/requests/index.js +2 -0
- package/api/resources/refunds/client/requests/index.ts +3 -0
- package/api/resources/refunds/index.d.ts +3 -0
- package/api/resources/refunds/index.js +3 -0
- package/api/resources/refunds/index.ts +2 -0
- package/api/resources/refunds/types/RefundsListRequestReason.d.ts +12 -0
- package/api/resources/refunds/types/RefundsListRequestReason.js +12 -0
- package/api/resources/refunds/types/RefundsListRequestReason.ts +13 -0
- package/api/resources/refunds/types/RefundsListRequestStatus.d.ts +10 -0
- package/api/resources/refunds/types/RefundsListRequestStatus.js +10 -0
- package/api/resources/refunds/types/RefundsListRequestStatus.ts +11 -0
- package/api/resources/refunds/types/index.d.ts +3 -0
- package/api/resources/refunds/types/index.js +3 -0
- package/api/resources/refunds/types/index.ts +2 -0
- package/api/resources/setupIntents/client/Client.d.ts +144 -0
- package/api/resources/setupIntents/client/Client.js +400 -0
- package/api/resources/setupIntents/client/Client.ts +518 -0
- package/api/resources/setupIntents/client/index.d.ts +2 -0
- package/api/resources/setupIntents/client/index.js +2 -0
- package/api/resources/setupIntents/client/index.ts +1 -0
- package/api/resources/setupIntents/client/requests/CancelSetupIntentRequest.d.ts +22 -0
- package/api/resources/setupIntents/client/requests/CancelSetupIntentRequest.js +11 -0
- package/api/resources/setupIntents/client/requests/CancelSetupIntentRequest.ts +24 -0
- package/api/resources/setupIntents/client/requests/ConfirmSetupIntentRequest.d.ts +15 -0
- package/api/resources/setupIntents/client/requests/ConfirmSetupIntentRequest.js +3 -0
- package/api/resources/setupIntents/client/requests/ConfirmSetupIntentRequest.ts +16 -0
- package/api/resources/setupIntents/client/requests/CreateSetupIntentRequest.d.ts +25 -0
- package/api/resources/setupIntents/client/requests/CreateSetupIntentRequest.js +10 -0
- package/api/resources/setupIntents/client/requests/CreateSetupIntentRequest.ts +27 -0
- package/api/resources/setupIntents/client/requests/ListSetupIntentsRequest.d.ts +18 -0
- package/api/resources/setupIntents/client/requests/ListSetupIntentsRequest.js +3 -0
- package/api/resources/setupIntents/client/requests/ListSetupIntentsRequest.ts +20 -0
- package/api/resources/setupIntents/client/requests/RetrieveSetupIntentsRequest.d.ts +11 -0
- package/api/resources/setupIntents/client/requests/RetrieveSetupIntentsRequest.js +3 -0
- package/api/resources/setupIntents/client/requests/RetrieveSetupIntentsRequest.ts +12 -0
- package/api/resources/setupIntents/client/requests/UpdateSetupIntentRequest.d.ts +19 -0
- package/api/resources/setupIntents/client/requests/UpdateSetupIntentRequest.js +3 -0
- package/api/resources/setupIntents/client/requests/UpdateSetupIntentRequest.ts +20 -0
- package/api/resources/setupIntents/client/requests/index.d.ts +7 -0
- package/api/resources/setupIntents/client/requests/index.js +3 -0
- package/api/resources/setupIntents/client/requests/index.ts +6 -0
- package/api/resources/setupIntents/index.d.ts +3 -0
- package/api/resources/setupIntents/index.js +3 -0
- package/api/resources/setupIntents/index.ts +2 -0
- package/api/resources/setupIntents/types/ListSetupIntentsRequestStatus.d.ts +11 -0
- package/api/resources/setupIntents/types/ListSetupIntentsRequestStatus.js +11 -0
- package/api/resources/setupIntents/types/ListSetupIntentsRequestStatus.ts +13 -0
- package/api/resources/setupIntents/types/index.d.ts +2 -0
- package/api/resources/setupIntents/types/index.js +2 -0
- package/api/resources/setupIntents/types/index.ts +1 -0
- package/api/resources/subscriptionSchedules/client/Client.d.ts +122 -0
- package/api/resources/subscriptionSchedules/client/Client.js +372 -0
- package/api/resources/subscriptionSchedules/client/Client.ts +503 -0
- package/api/resources/subscriptionSchedules/client/index.d.ts +2 -0
- package/api/resources/subscriptionSchedules/client/index.js +2 -0
- package/api/resources/subscriptionSchedules/client/index.ts +1 -0
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.d.ts +15 -0
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.js +3 -0
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.ts +16 -0
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.d.ts +39 -0
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.js +10 -0
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.ts +42 -0
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.d.ts +13 -0
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.js +3 -0
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.ts +14 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.d.ts +24 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.js +3 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.ts +26 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.d.ts +11 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.js +3 -0
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.ts +12 -0
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.d.ts +35 -0
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.js +16 -0
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.ts +38 -0
- package/api/resources/subscriptionSchedules/client/requests/index.d.ts +7 -0
- package/api/resources/subscriptionSchedules/client/requests/index.js +3 -0
- package/api/resources/subscriptionSchedules/client/requests/index.ts +6 -0
- package/api/resources/subscriptionSchedules/index.d.ts +3 -0
- package/api/resources/subscriptionSchedules/index.js +3 -0
- package/api/resources/subscriptionSchedules/index.ts +2 -0
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.d.ts +10 -0
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.js +10 -0
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.ts +12 -0
- package/api/resources/subscriptionSchedules/types/index.d.ts +2 -0
- package/api/resources/subscriptionSchedules/types/index.js +2 -0
- package/api/resources/subscriptionSchedules/types/index.ts +1 -0
- package/api/resources/subscriptions/client/Client.d.ts +309 -0
- package/api/resources/subscriptions/client/Client.js +971 -0
- package/api/resources/subscriptions/client/Client.ts +1293 -0
- package/api/resources/subscriptions/client/index.d.ts +2 -0
- package/api/resources/subscriptions/client/index.js +2 -0
- package/api/resources/subscriptions/client/index.ts +1 -0
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.d.ts +24 -0
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.js +10 -0
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.ts +26 -0
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.d.ts +38 -0
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.js +11 -0
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.ts +40 -0
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.d.ts +24 -0
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.js +11 -0
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.ts +26 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.d.ts +14 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.ts +15 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.d.ts +15 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.ts +16 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.d.ts +11 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.ts +12 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.d.ts +24 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.js +10 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.ts +26 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.d.ts +24 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.js +10 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.ts +26 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.d.ts +42 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.js +15 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.ts +44 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.d.ts +16 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.ts +18 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.d.ts +12 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.ts +13 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.d.ts +11 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.ts +12 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.d.ts +11 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.ts +12 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.d.ts +11 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.js +3 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.ts +12 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.d.ts +30 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.js +13 -0
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.ts +32 -0
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.d.ts +33 -0
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.js +11 -0
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.ts +35 -0
- package/api/resources/subscriptions/client/requests/index.d.ts +17 -0
- package/api/resources/subscriptions/client/requests/index.js +9 -0
- package/api/resources/subscriptions/client/requests/index.ts +16 -0
- package/api/resources/subscriptions/index.d.ts +3 -0
- package/api/resources/subscriptions/index.js +3 -0
- package/api/resources/subscriptions/index.ts +2 -0
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.d.ts +12 -0
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.js +12 -0
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.ts +14 -0
- package/api/resources/subscriptions/types/index.d.ts +2 -0
- package/api/resources/subscriptions/types/index.js +2 -0
- package/api/resources/subscriptions/types/index.ts +1 -0
- package/api/resources/syncState/client/Client.d.ts +52 -0
- package/api/resources/syncState/client/Client.js +129 -0
- package/api/resources/syncState/client/Client.ts +183 -0
- package/api/resources/syncState/client/index.d.ts +2 -0
- package/api/resources/syncState/client/index.js +2 -0
- package/api/resources/syncState/client/index.ts +1 -0
- package/api/resources/syncState/client/requests/SyncStateListRequest.d.ts +14 -0
- package/api/resources/syncState/client/requests/SyncStateListRequest.js +3 -0
- package/api/resources/syncState/client/requests/SyncStateListRequest.ts +15 -0
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.d.ts +31 -0
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.js +11 -0
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.ts +33 -0
- package/api/resources/syncState/client/requests/index.d.ts +3 -0
- package/api/resources/syncState/client/requests/index.js +2 -0
- package/api/resources/syncState/client/requests/index.ts +2 -0
- package/api/resources/syncState/index.d.ts +3 -0
- package/api/resources/syncState/index.js +3 -0
- package/api/resources/syncState/index.ts +2 -0
- package/api/resources/syncState/types/SyncStateListResponse.d.ts +31 -0
- package/api/resources/syncState/types/SyncStateListResponse.js +17 -0
- package/api/resources/syncState/types/SyncStateListResponse.ts +35 -0
- package/api/resources/syncState/types/SyncStateUpdateResponse.d.ts +29 -0
- package/api/resources/syncState/types/SyncStateUpdateResponse.js +14 -0
- package/api/resources/syncState/types/SyncStateUpdateResponse.ts +32 -0
- package/api/resources/syncState/types/index.d.ts +3 -0
- package/api/resources/syncState/types/index.js +3 -0
- package/api/resources/syncState/types/index.ts +2 -0
- package/api/resources/taxRates/client/Client.d.ts +93 -0
- package/api/resources/taxRates/client/Client.js +293 -0
- package/api/resources/taxRates/client/Client.ts +397 -0
- package/api/resources/taxRates/client/index.d.ts +2 -0
- package/api/resources/taxRates/client/index.js +2 -0
- package/api/resources/taxRates/client/index.ts +1 -0
- package/api/resources/taxRates/client/requests/CreateTaxRateRequest.d.ts +38 -0
- package/api/resources/taxRates/client/requests/CreateTaxRateRequest.js +12 -0
- package/api/resources/taxRates/client/requests/CreateTaxRateRequest.ts +40 -0
- package/api/resources/taxRates/client/requests/DeleteTaxRatesIdRequest.d.ts +11 -0
- package/api/resources/taxRates/client/requests/DeleteTaxRatesIdRequest.js +3 -0
- package/api/resources/taxRates/client/requests/DeleteTaxRatesIdRequest.ts +12 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesIdRequest.d.ts +11 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesIdRequest.js +3 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesIdRequest.ts +12 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesRequest.d.ts +24 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesRequest.js +3 -0
- package/api/resources/taxRates/client/requests/GetTaxRatesRequest.ts +26 -0
- package/api/resources/taxRates/client/requests/UpdateTaxRateRequest.d.ts +25 -0
- package/api/resources/taxRates/client/requests/UpdateTaxRateRequest.js +3 -0
- package/api/resources/taxRates/client/requests/UpdateTaxRateRequest.ts +26 -0
- package/api/resources/taxRates/client/requests/index.d.ts +6 -0
- package/api/resources/taxRates/client/requests/index.js +2 -0
- package/api/resources/taxRates/client/requests/index.ts +5 -0
- package/api/resources/taxRates/index.d.ts +3 -0
- package/api/resources/taxRates/index.js +3 -0
- package/api/resources/taxRates/index.ts +2 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestActive.d.ts +7 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestActive.js +7 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestActive.ts +8 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestInclusive.d.ts +7 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestInclusive.js +7 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestInclusive.ts +9 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestTaxType.d.ts +9 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestTaxType.js +9 -0
- package/api/resources/taxRates/types/GetTaxRatesRequestTaxType.ts +10 -0
- package/api/resources/taxRates/types/index.d.ts +4 -0
- package/api/resources/taxRates/types/index.js +4 -0
- package/api/resources/taxRates/types/index.ts +3 -0
- package/api/resources/terminalDevices/client/Client.d.ts +50 -0
- package/api/resources/terminalDevices/client/Client.js +124 -0
- package/api/resources/terminalDevices/client/Client.ts +168 -0
- package/api/resources/terminalDevices/client/index.d.ts +2 -0
- package/api/resources/terminalDevices/client/index.js +2 -0
- package/api/resources/terminalDevices/client/index.ts +1 -0
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.d.ts +12 -0
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.js +3 -0
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.ts +14 -0
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.d.ts +11 -0
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.js +3 -0
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.ts +12 -0
- package/api/resources/terminalDevices/client/requests/index.d.ts +3 -0
- package/api/resources/terminalDevices/client/requests/index.js +2 -0
- package/api/resources/terminalDevices/client/requests/index.ts +2 -0
- package/api/resources/terminalDevices/index.d.ts +3 -0
- package/api/resources/terminalDevices/index.js +3 -0
- package/api/resources/terminalDevices/index.ts +2 -0
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.d.ts +8 -0
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.js +8 -0
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.ts +10 -0
- package/api/resources/terminalDevices/types/index.d.ts +2 -0
- package/api/resources/terminalDevices/types/index.js +2 -0
- package/api/resources/terminalDevices/types/index.ts +1 -0
- package/api/resources/terminalPayments/client/Client.d.ts +134 -0
- package/api/resources/terminalPayments/client/Client.js +374 -0
- package/api/resources/terminalPayments/client/Client.ts +503 -0
- package/api/resources/terminalPayments/client/index.d.ts +2 -0
- package/api/resources/terminalPayments/client/index.js +2 -0
- package/api/resources/terminalPayments/client/index.ts +1 -0
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.d.ts +11 -0
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.ts +12 -0
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.d.ts +21 -0
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.ts +22 -0
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.d.ts +20 -0
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.ts +22 -0
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.d.ts +15 -0
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.ts +16 -0
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.d.ts +11 -0
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.ts +12 -0
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.d.ts +13 -0
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.js +3 -0
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.ts +14 -0
- package/api/resources/terminalPayments/client/requests/index.d.ts +7 -0
- package/api/resources/terminalPayments/client/requests/index.js +2 -0
- package/api/resources/terminalPayments/client/requests/index.ts +6 -0
- package/api/resources/terminalPayments/index.d.ts +3 -0
- package/api/resources/terminalPayments/index.js +3 -0
- package/api/resources/terminalPayments/index.ts +2 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.d.ts +12 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.js +12 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.ts +14 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.d.ts +8 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.js +8 -0
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.ts +10 -0
- package/api/resources/terminalPayments/types/index.d.ts +3 -0
- package/api/resources/terminalPayments/types/index.js +3 -0
- package/api/resources/terminalPayments/types/index.ts +2 -0
- package/api/resources/userInvitations/client/Client.d.ts +96 -0
- package/api/resources/userInvitations/client/Client.js +299 -0
- package/api/resources/userInvitations/client/Client.ts +397 -0
- package/api/resources/userInvitations/client/index.d.ts +2 -0
- package/api/resources/userInvitations/client/index.js +2 -0
- package/api/resources/userInvitations/client/index.ts +1 -0
- package/api/resources/userInvitations/client/requests/DeleteUserInvitationsIdRequest.d.ts +10 -0
- package/api/resources/userInvitations/client/requests/DeleteUserInvitationsIdRequest.js +3 -0
- package/api/resources/userInvitations/client/requests/DeleteUserInvitationsIdRequest.ts +11 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsAcceptRequest.d.ts +13 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsAcceptRequest.js +3 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsAcceptRequest.ts +14 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsIdResendRequest.d.ts +10 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsIdResendRequest.js +3 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsIdResendRequest.ts +11 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsRequest.d.ts +21 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsRequest.js +10 -0
- package/api/resources/userInvitations/client/requests/PostUserInvitationsRequest.ts +23 -0
- package/api/resources/userInvitations/client/requests/index.d.ts +5 -0
- package/api/resources/userInvitations/client/requests/index.js +2 -0
- package/api/resources/userInvitations/client/requests/index.ts +4 -0
- package/api/resources/userInvitations/index.d.ts +3 -0
- package/api/resources/userInvitations/index.js +3 -0
- package/api/resources/userInvitations/index.ts +2 -0
- package/api/resources/userInvitations/types/DeleteUserInvitationsIdResponse.d.ts +4 -0
- package/api/resources/userInvitations/types/DeleteUserInvitationsIdResponse.js +3 -0
- package/api/resources/userInvitations/types/DeleteUserInvitationsIdResponse.ts +5 -0
- package/api/resources/userInvitations/types/GetUserInvitationsResponse.d.ts +26 -0
- package/api/resources/userInvitations/types/GetUserInvitationsResponse.js +16 -0
- package/api/resources/userInvitations/types/GetUserInvitationsResponse.ts +30 -0
- package/api/resources/userInvitations/types/PostUserInvitationsAcceptResponse.d.ts +6 -0
- package/api/resources/userInvitations/types/PostUserInvitationsAcceptResponse.js +3 -0
- package/api/resources/userInvitations/types/PostUserInvitationsAcceptResponse.ts +7 -0
- package/api/resources/userInvitations/types/PostUserInvitationsIdResendResponse.d.ts +23 -0
- package/api/resources/userInvitations/types/PostUserInvitationsIdResendResponse.js +13 -0
- package/api/resources/userInvitations/types/PostUserInvitationsIdResendResponse.ts +26 -0
- package/api/resources/userInvitations/types/PostUserInvitationsResponse.d.ts +23 -0
- package/api/resources/userInvitations/types/PostUserInvitationsResponse.js +13 -0
- package/api/resources/userInvitations/types/PostUserInvitationsResponse.ts +26 -0
- package/api/resources/userInvitations/types/index.d.ts +6 -0
- package/api/resources/userInvitations/types/index.js +6 -0
- package/api/resources/userInvitations/types/index.ts +5 -0
- package/api/resources/voids/client/Client.d.ts +73 -0
- package/api/resources/voids/client/Client.js +199 -0
- package/api/resources/voids/client/Client.ts +268 -0
- package/api/resources/voids/client/index.d.ts +2 -0
- package/api/resources/voids/client/index.js +2 -0
- package/api/resources/voids/client/index.ts +1 -0
- package/api/resources/voids/client/requests/CreateVoidInput.d.ts +26 -0
- package/api/resources/voids/client/requests/CreateVoidInput.js +13 -0
- package/api/resources/voids/client/requests/CreateVoidInput.ts +28 -0
- package/api/resources/voids/client/requests/VoidsListRequest.d.ts +26 -0
- package/api/resources/voids/client/requests/VoidsListRequest.js +3 -0
- package/api/resources/voids/client/requests/VoidsListRequest.ts +28 -0
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.d.ts +11 -0
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.js +3 -0
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.ts +12 -0
- package/api/resources/voids/client/requests/index.d.ts +4 -0
- package/api/resources/voids/client/requests/index.js +2 -0
- package/api/resources/voids/client/requests/index.ts +3 -0
- package/api/resources/voids/index.d.ts +3 -0
- package/api/resources/voids/index.js +3 -0
- package/api/resources/voids/index.ts +2 -0
- package/api/resources/voids/types/VoidsListRequestStatus.d.ts +9 -0
- package/api/resources/voids/types/VoidsListRequestStatus.js +9 -0
- package/api/resources/voids/types/VoidsListRequestStatus.ts +10 -0
- package/api/resources/voids/types/index.d.ts +2 -0
- package/api/resources/voids/types/index.js +2 -0
- package/api/resources/voids/types/index.ts +1 -0
- package/api/resources/webhookEndpoints/client/Client.d.ts +136 -0
- package/api/resources/webhookEndpoints/client/Client.js +385 -0
- package/api/resources/webhookEndpoints/client/Client.ts +502 -0
- package/api/resources/webhookEndpoints/client/index.d.ts +2 -0
- package/api/resources/webhookEndpoints/client/index.js +2 -0
- package/api/resources/webhookEndpoints/client/index.ts +1 -0
- package/api/resources/webhookEndpoints/client/requests/CreateWebhookEndpointInput.d.ts +16 -0
- package/api/resources/webhookEndpoints/client/requests/CreateWebhookEndpointInput.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/CreateWebhookEndpointInput.ts +17 -0
- package/api/resources/webhookEndpoints/client/requests/UpdateWebhookEndpointInput.d.ts +19 -0
- package/api/resources/webhookEndpoints/client/requests/UpdateWebhookEndpointInput.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/UpdateWebhookEndpointInput.ts +20 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +11 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.ts +12 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +16 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.ts +18 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +11 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.ts +12 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.d.ts +11 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.js +3 -0
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.ts +12 -0
- package/api/resources/webhookEndpoints/client/requests/index.d.ts +7 -0
- package/api/resources/webhookEndpoints/client/requests/index.js +2 -0
- package/api/resources/webhookEndpoints/client/requests/index.ts +6 -0
- package/api/resources/webhookEndpoints/index.d.ts +3 -0
- package/api/resources/webhookEndpoints/index.js +3 -0
- package/api/resources/webhookEndpoints/index.ts +2 -0
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.d.ts +7 -0
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.js +7 -0
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.ts +9 -0
- package/api/resources/webhookEndpoints/types/index.d.ts +2 -0
- package/api/resources/webhookEndpoints/types/index.js +2 -0
- package/api/resources/webhookEndpoints/types/index.ts +1 -0
- package/api/types/AuthenticationError.d.ts +24 -0
- package/api/types/AuthenticationError.js +16 -0
- package/api/types/AuthenticationError.ts +27 -0
- package/api/types/AvsCodeInterpretation.d.ts +38 -0
- package/api/types/AvsCodeInterpretation.js +21 -0
- package/api/types/AvsCodeInterpretation.ts +40 -0
- package/api/types/BadRequestErrorBody.d.ts +5 -0
- package/api/types/BadRequestErrorBody.js +3 -0
- package/api/types/BadRequestErrorBody.ts +6 -0
- package/api/types/BankAccountDetails.d.ts +22 -0
- package/api/types/BankAccountDetails.js +10 -0
- package/api/types/BankAccountDetails.ts +24 -0
- package/api/types/BillingAnchorRulesResponse.d.ts +15 -0
- package/api/types/BillingAnchorRulesResponse.js +3 -0
- package/api/types/BillingAnchorRulesResponse.ts +18 -0
- package/api/types/BillingDetails.d.ts +27 -0
- package/api/types/BillingDetails.js +3 -0
- package/api/types/BillingDetails.ts +29 -0
- package/api/types/BillingIntervalsResponse.d.ts +14 -0
- package/api/types/BillingIntervalsResponse.js +3 -0
- package/api/types/BillingIntervalsResponse.ts +17 -0
- package/api/types/BillingPreviewErrorResponse.d.ts +5 -0
- package/api/types/BillingPreviewErrorResponse.js +3 -0
- package/api/types/BillingPreviewErrorResponse.ts +6 -0
- package/api/types/BillingPreviewResponse.d.ts +31 -0
- package/api/types/BillingPreviewResponse.js +3 -0
- package/api/types/BillingPreviewResponse.ts +35 -0
- package/api/types/CardDetails.d.ts +38 -0
- package/api/types/CardDetails.js +23 -0
- package/api/types/CardDetails.ts +40 -0
- package/api/types/ChargeCaptureResponse.d.ts +40 -0
- package/api/types/ChargeCaptureResponse.js +17 -0
- package/api/types/ChargeCaptureResponse.ts +43 -0
- package/api/types/ChargeCreateResponse.d.ts +40 -0
- package/api/types/ChargeCreateResponse.js +17 -0
- package/api/types/ChargeCreateResponse.ts +43 -0
- package/api/types/ChargeDuplicateErrorResponse.d.ts +5 -0
- package/api/types/ChargeDuplicateErrorResponse.js +3 -0
- package/api/types/ChargeDuplicateErrorResponse.ts +6 -0
- package/api/types/ChargeErrorResponse.d.ts +5 -0
- package/api/types/ChargeErrorResponse.js +3 -0
- package/api/types/ChargeErrorResponse.ts +6 -0
- package/api/types/ChargeListResponse.d.ts +50 -0
- package/api/types/ChargeListResponse.js +20 -0
- package/api/types/ChargeListResponse.ts +55 -0
- package/api/types/ChargeRefundResponse.d.ts +40 -0
- package/api/types/ChargeRefundResponse.js +17 -0
- package/api/types/ChargeRefundResponse.ts +43 -0
- package/api/types/ChargeRetrieveResponse.d.ts +40 -0
- package/api/types/ChargeRetrieveResponse.js +17 -0
- package/api/types/ChargeRetrieveResponse.ts +43 -0
- package/api/types/CheckoutSessionCreateResponse.d.ts +16 -0
- package/api/types/CheckoutSessionCreateResponse.js +3 -0
- package/api/types/CheckoutSessionCreateResponse.ts +18 -0
- package/api/types/CheckoutSessionErrorResponse.d.ts +4 -0
- package/api/types/CheckoutSessionErrorResponse.js +3 -0
- package/api/types/CheckoutSessionErrorResponse.ts +5 -0
- package/api/types/ConflictErrorBody.d.ts +5 -0
- package/api/types/ConflictErrorBody.js +3 -0
- package/api/types/ConflictErrorBody.ts +6 -0
- package/api/types/CreditEligibilityResponse.d.ts +14 -0
- package/api/types/CreditEligibilityResponse.js +3 -0
- package/api/types/CreditEligibilityResponse.ts +16 -0
- package/api/types/CreditNote.d.ts +18 -0
- package/api/types/CreditNote.js +3 -0
- package/api/types/CreditNote.ts +19 -0
- package/api/types/CreditNoteCreateResponse.d.ts +5 -0
- package/api/types/CreditNoteCreateResponse.js +3 -0
- package/api/types/CreditNoteCreateResponse.ts +7 -0
- package/api/types/CreditNoteListResponse.d.ts +6 -0
- package/api/types/CreditNoteListResponse.js +3 -0
- package/api/types/CreditNoteListResponse.ts +8 -0
- package/api/types/CreditNoteResponse.d.ts +6 -0
- package/api/types/CreditNoteResponse.js +3 -0
- package/api/types/CreditNoteResponse.ts +8 -0
- package/api/types/CreditNoteRetrieveResponse.d.ts +5 -0
- package/api/types/CreditNoteRetrieveResponse.js +3 -0
- package/api/types/CreditNoteRetrieveResponse.ts +7 -0
- package/api/types/CreditNoteVoidResponse.d.ts +5 -0
- package/api/types/CreditNoteVoidResponse.js +3 -0
- package/api/types/CreditNoteVoidResponse.ts +7 -0
- package/api/types/CustomerCreateResponse.d.ts +20 -0
- package/api/types/CustomerCreateResponse.js +3 -0
- package/api/types/CustomerCreateResponse.ts +22 -0
- package/api/types/CustomerInvoice.d.ts +12 -0
- package/api/types/CustomerInvoice.js +3 -0
- package/api/types/CustomerInvoice.ts +13 -0
- package/api/types/CustomerListResponse.d.ts +29 -0
- package/api/types/CustomerListResponse.js +3 -0
- package/api/types/CustomerListResponse.ts +33 -0
- package/api/types/CustomerOrder.d.ts +13 -0
- package/api/types/CustomerOrder.js +3 -0
- package/api/types/CustomerOrder.ts +14 -0
- package/api/types/CustomerPayment.d.ts +12 -0
- package/api/types/CustomerPayment.js +3 -0
- package/api/types/CustomerPayment.ts +13 -0
- package/api/types/CustomerPaymentMethodsListResponse.d.ts +5 -0
- package/api/types/CustomerPaymentMethodsListResponse.js +3 -0
- package/api/types/CustomerPaymentMethodsListResponse.ts +6 -0
- package/api/types/CustomerPortalSessionCreateResponse.d.ts +14 -0
- package/api/types/CustomerPortalSessionCreateResponse.js +3 -0
- package/api/types/CustomerPortalSessionCreateResponse.ts +16 -0
- package/api/types/CustomerRetrieveResponse.d.ts +20 -0
- package/api/types/CustomerRetrieveResponse.js +3 -0
- package/api/types/CustomerRetrieveResponse.ts +22 -0
- package/api/types/CustomerSubscription.d.ts +14 -0
- package/api/types/CustomerSubscription.js +3 -0
- package/api/types/CustomerSubscription.ts +15 -0
- package/api/types/CustomerUpdateResponse.d.ts +20 -0
- package/api/types/CustomerUpdateResponse.js +3 -0
- package/api/types/CustomerUpdateResponse.ts +22 -0
- package/api/types/CvvCodeInterpretation.d.ts +34 -0
- package/api/types/CvvCodeInterpretation.js +21 -0
- package/api/types/CvvCodeInterpretation.ts +36 -0
- package/api/types/DeclineAnalyticsResponse.d.ts +33 -0
- package/api/types/DeclineAnalyticsResponse.js +3 -0
- package/api/types/DeclineAnalyticsResponse.ts +38 -0
- package/api/types/Discount.d.ts +22 -0
- package/api/types/Discount.js +3 -0
- package/api/types/Discount.ts +23 -0
- package/api/types/DiscountCreateResponse.d.ts +5 -0
- package/api/types/DiscountCreateResponse.js +3 -0
- package/api/types/DiscountCreateResponse.ts +7 -0
- package/api/types/DiscountDeleteResponse.d.ts +5 -0
- package/api/types/DiscountDeleteResponse.js +3 -0
- package/api/types/DiscountDeleteResponse.ts +7 -0
- package/api/types/DiscountListResponse.d.ts +14 -0
- package/api/types/DiscountListResponse.js +3 -0
- package/api/types/DiscountListResponse.ts +17 -0
- package/api/types/DiscountRetrieveResponse.d.ts +5 -0
- package/api/types/DiscountRetrieveResponse.js +3 -0
- package/api/types/DiscountRetrieveResponse.ts +7 -0
- package/api/types/DiscountUpdateResponse.d.ts +5 -0
- package/api/types/DiscountUpdateResponse.js +3 -0
- package/api/types/DiscountUpdateResponse.ts +7 -0
- package/api/types/Dispute.d.ts +48 -0
- package/api/types/Dispute.js +18 -0
- package/api/types/Dispute.ts +50 -0
- package/api/types/ErrorResponse.d.ts +10 -0
- package/api/types/ErrorResponse.js +3 -0
- package/api/types/ErrorResponse.ts +12 -0
- package/api/types/Event.d.ts +37 -0
- package/api/types/Event.js +9 -0
- package/api/types/Event.ts +41 -0
- package/api/types/EventErrorResponse.d.ts +16 -0
- package/api/types/EventErrorResponse.js +3 -0
- package/api/types/EventErrorResponse.ts +18 -0
- package/api/types/EventListResponse.d.ts +15 -0
- package/api/types/EventListResponse.js +8 -0
- package/api/types/EventListResponse.ts +18 -0
- package/api/types/EventRequest.d.ts +10 -0
- package/api/types/EventRequest.js +3 -0
- package/api/types/EventRequest.ts +11 -0
- package/api/types/ExternalUpsertResponse.d.ts +8 -0
- package/api/types/ExternalUpsertResponse.js +3 -0
- package/api/types/ExternalUpsertResponse.ts +10 -0
- package/api/types/ForbiddenErrorBody.d.ts +23 -0
- package/api/types/ForbiddenErrorBody.js +15 -0
- package/api/types/ForbiddenErrorBody.ts +26 -0
- package/api/types/InternalServerErrorBody.d.ts +4 -0
- package/api/types/InternalServerErrorBody.js +3 -0
- package/api/types/InternalServerErrorBody.ts +5 -0
- package/api/types/Invoice.d.ts +72 -0
- package/api/types/Invoice.js +31 -0
- package/api/types/Invoice.ts +75 -0
- package/api/types/InvoiceCommentDetail.d.ts +10 -0
- package/api/types/InvoiceCommentDetail.js +3 -0
- package/api/types/InvoiceCommentDetail.ts +11 -0
- package/api/types/InvoiceCommentDetailResponse.d.ts +6 -0
- package/api/types/InvoiceCommentDetailResponse.js +3 -0
- package/api/types/InvoiceCommentDetailResponse.ts +8 -0
- package/api/types/InvoiceCommentListDetailResponse.d.ts +6 -0
- package/api/types/InvoiceCommentListDetailResponse.js +3 -0
- package/api/types/InvoiceCommentListDetailResponse.ts +8 -0
- package/api/types/InvoiceListResponse.d.ts +6 -0
- package/api/types/InvoiceListResponse.js +3 -0
- package/api/types/InvoiceListResponse.ts +8 -0
- package/api/types/InvoiceResponse.d.ts +6 -0
- package/api/types/InvoiceResponse.js +3 -0
- package/api/types/InvoiceResponse.ts +8 -0
- package/api/types/NotFoundErrorBody.d.ts +23 -0
- package/api/types/NotFoundErrorBody.js +14 -0
- package/api/types/NotFoundErrorBody.ts +26 -0
- package/api/types/OpenDispute.d.ts +18 -0
- package/api/types/OpenDispute.js +3 -0
- package/api/types/OpenDispute.ts +19 -0
- package/api/types/Order.d.ts +80 -0
- package/api/types/Order.js +31 -0
- package/api/types/Order.ts +83 -0
- package/api/types/OrderErrorResponse.d.ts +12 -0
- package/api/types/OrderErrorResponse.js +3 -0
- package/api/types/OrderErrorResponse.ts +14 -0
- package/api/types/OrderLineItem.d.ts +20 -0
- package/api/types/OrderLineItem.js +3 -0
- package/api/types/OrderLineItem.ts +21 -0
- package/api/types/OrderListResponse.d.ts +14 -0
- package/api/types/OrderListResponse.js +8 -0
- package/api/types/OrderListResponse.ts +17 -0
- package/api/types/Payment.d.ts +83 -0
- package/api/types/Payment.js +35 -0
- package/api/types/Payment.ts +85 -0
- package/api/types/PaymentAttempt.d.ts +171 -0
- package/api/types/PaymentAttempt.js +89 -0
- package/api/types/PaymentAttempt.ts +173 -0
- package/api/types/PaymentAttemptErrorResponse.d.ts +5 -0
- package/api/types/PaymentAttemptErrorResponse.js +3 -0
- package/api/types/PaymentAttemptErrorResponse.ts +6 -0
- package/api/types/PaymentAttemptListResponse.d.ts +14 -0
- package/api/types/PaymentAttemptListResponse.js +3 -0
- package/api/types/PaymentAttemptListResponse.ts +17 -0
- package/api/types/PaymentAttemptSingleResponse.d.ts +5 -0
- package/api/types/PaymentAttemptSingleResponse.js +3 -0
- package/api/types/PaymentAttemptSingleResponse.ts +7 -0
- package/api/types/PaymentErrorResponse.d.ts +12 -0
- package/api/types/PaymentErrorResponse.js +3 -0
- package/api/types/PaymentErrorResponse.ts +14 -0
- package/api/types/PaymentIntent.d.ts +130 -0
- package/api/types/PaymentIntent.js +40 -0
- package/api/types/PaymentIntent.ts +138 -0
- package/api/types/PaymentIntentErrorResponse.d.ts +16 -0
- package/api/types/PaymentIntentErrorResponse.js +3 -0
- package/api/types/PaymentIntentErrorResponse.ts +18 -0
- package/api/types/PaymentIntentListResponse.d.ts +15 -0
- package/api/types/PaymentIntentListResponse.js +8 -0
- package/api/types/PaymentIntentListResponse.ts +18 -0
- package/api/types/PaymentListResponse.d.ts +14 -0
- package/api/types/PaymentListResponse.js +8 -0
- package/api/types/PaymentListResponse.ts +17 -0
- package/api/types/PaymentMethod.d.ts +48 -0
- package/api/types/PaymentMethod.js +21 -0
- package/api/types/PaymentMethod.ts +51 -0
- package/api/types/PaymentMethodList.d.ts +19 -0
- package/api/types/PaymentMethodList.js +9 -0
- package/api/types/PaymentMethodList.ts +22 -0
- package/api/types/PaymentSecurityResponse.d.ts +5 -0
- package/api/types/PaymentSecurityResponse.js +3 -0
- package/api/types/PaymentSecurityResponse.ts +7 -0
- package/api/types/PaymentSecurityResult.d.ts +27 -0
- package/api/types/PaymentSecurityResult.js +18 -0
- package/api/types/PaymentSecurityResult.ts +30 -0
- package/api/types/Payout.d.ts +31 -0
- package/api/types/Payout.js +12 -0
- package/api/types/Payout.ts +33 -0
- package/api/types/PayoutPayment.d.ts +11 -0
- package/api/types/PayoutPayment.js +3 -0
- package/api/types/PayoutPayment.ts +12 -0
- package/api/types/PhaseItem.d.ts +7 -0
- package/api/types/PhaseItem.js +3 -0
- package/api/types/PhaseItem.ts +8 -0
- package/api/types/Price.d.ts +71 -0
- package/api/types/Price.js +27 -0
- package/api/types/Price.ts +73 -0
- package/api/types/PriceErrorResponse.d.ts +12 -0
- package/api/types/PriceErrorResponse.js +3 -0
- package/api/types/PriceErrorResponse.ts +14 -0
- package/api/types/PriceListResponse.d.ts +14 -0
- package/api/types/PriceListResponse.js +8 -0
- package/api/types/PriceListResponse.ts +17 -0
- package/api/types/ProductCreateResponse.d.ts +5 -0
- package/api/types/ProductCreateResponse.js +3 -0
- package/api/types/ProductCreateResponse.ts +6 -0
- package/api/types/ProductErrorResponse.d.ts +4 -0
- package/api/types/ProductErrorResponse.js +3 -0
- package/api/types/ProductErrorResponse.ts +5 -0
- package/api/types/ProductListResponse.d.ts +15 -0
- package/api/types/ProductListResponse.js +3 -0
- package/api/types/ProductListResponse.ts +17 -0
- package/api/types/ProductRetrieveResponse.d.ts +5 -0
- package/api/types/ProductRetrieveResponse.js +3 -0
- package/api/types/ProductRetrieveResponse.ts +6 -0
- package/api/types/ProductUpdateResponse.d.ts +5 -0
- package/api/types/ProductUpdateResponse.js +3 -0
- package/api/types/ProductUpdateResponse.ts +6 -0
- package/api/types/Refund.d.ts +42 -0
- package/api/types/Refund.js +21 -0
- package/api/types/Refund.ts +44 -0
- package/api/types/RefundCreateResponse.d.ts +5 -0
- package/api/types/RefundCreateResponse.js +3 -0
- package/api/types/RefundCreateResponse.ts +7 -0
- package/api/types/RefundListResponse.d.ts +14 -0
- package/api/types/RefundListResponse.js +3 -0
- package/api/types/RefundListResponse.ts +17 -0
- package/api/types/RefundRetrieveResponse.d.ts +5 -0
- package/api/types/RefundRetrieveResponse.js +3 -0
- package/api/types/RefundRetrieveResponse.ts +7 -0
- package/api/types/ResendWebhookResponse.d.ts +9 -0
- package/api/types/ResendWebhookResponse.js +3 -0
- package/api/types/ResendWebhookResponse.ts +10 -0
- package/api/types/RetryEligibilityResponse.d.ts +14 -0
- package/api/types/RetryEligibilityResponse.js +3 -0
- package/api/types/RetryEligibilityResponse.ts +17 -0
- package/api/types/SchedulePhase.d.ts +39 -0
- package/api/types/SchedulePhase.js +16 -0
- package/api/types/SchedulePhase.ts +42 -0
- package/api/types/SetupIntent.d.ts +70 -0
- package/api/types/SetupIntent.js +29 -0
- package/api/types/SetupIntent.ts +73 -0
- package/api/types/SetupIntentError.d.ts +23 -0
- package/api/types/SetupIntentError.js +3 -0
- package/api/types/SetupIntentError.ts +25 -0
- package/api/types/SetupIntentList.d.ts +21 -0
- package/api/types/SetupIntentList.js +9 -0
- package/api/types/SetupIntentList.ts +24 -0
- package/api/types/SetupIntentNextAction.d.ts +29 -0
- package/api/types/SetupIntentNextAction.js +10 -0
- package/api/types/SetupIntentNextAction.ts +32 -0
- package/api/types/StaleUpdateResponse.d.ts +14 -0
- package/api/types/StaleUpdateResponse.js +8 -0
- package/api/types/StaleUpdateResponse.ts +16 -0
- package/api/types/SubscriptionCancelResponse.d.ts +4 -0
- package/api/types/SubscriptionCancelResponse.js +3 -0
- package/api/types/SubscriptionCancelResponse.ts +5 -0
- package/api/types/SubscriptionCancelSubscriptionResponse.d.ts +63 -0
- package/api/types/SubscriptionCancelSubscriptionResponse.js +30 -0
- package/api/types/SubscriptionCancelSubscriptionResponse.ts +68 -0
- package/api/types/SubscriptionChangePlanResponse.d.ts +67 -0
- package/api/types/SubscriptionChangePlanResponse.js +30 -0
- package/api/types/SubscriptionChangePlanResponse.ts +72 -0
- package/api/types/SubscriptionChangeQuantityResponse.d.ts +67 -0
- package/api/types/SubscriptionChangeQuantityResponse.js +30 -0
- package/api/types/SubscriptionChangeQuantityResponse.ts +72 -0
- package/api/types/SubscriptionCreateResponse.d.ts +63 -0
- package/api/types/SubscriptionCreateResponse.js +30 -0
- package/api/types/SubscriptionCreateResponse.ts +68 -0
- package/api/types/SubscriptionItem.d.ts +28 -0
- package/api/types/SubscriptionItem.js +11 -0
- package/api/types/SubscriptionItem.ts +30 -0
- package/api/types/SubscriptionItemCreateResponse.d.ts +5 -0
- package/api/types/SubscriptionItemCreateResponse.js +3 -0
- package/api/types/SubscriptionItemCreateResponse.ts +7 -0
- package/api/types/SubscriptionItemDeleteResponse.d.ts +5 -0
- package/api/types/SubscriptionItemDeleteResponse.js +3 -0
- package/api/types/SubscriptionItemDeleteResponse.ts +6 -0
- package/api/types/SubscriptionItemListResponse.d.ts +14 -0
- package/api/types/SubscriptionItemListResponse.js +3 -0
- package/api/types/SubscriptionItemListResponse.ts +17 -0
- package/api/types/SubscriptionItemUpdateResponse.d.ts +5 -0
- package/api/types/SubscriptionItemUpdateResponse.js +3 -0
- package/api/types/SubscriptionItemUpdateResponse.ts +7 -0
- package/api/types/SubscriptionListResponse.d.ts +73 -0
- package/api/types/SubscriptionListResponse.js +33 -0
- package/api/types/SubscriptionListResponse.ts +80 -0
- package/api/types/SubscriptionPauseResponse.d.ts +63 -0
- package/api/types/SubscriptionPauseResponse.js +30 -0
- package/api/types/SubscriptionPauseResponse.ts +68 -0
- package/api/types/SubscriptionPreviewRenewalResponse.d.ts +29 -0
- package/api/types/SubscriptionPreviewRenewalResponse.js +3 -0
- package/api/types/SubscriptionPreviewRenewalResponse.ts +33 -0
- package/api/types/SubscriptionReactivateResponse.d.ts +63 -0
- package/api/types/SubscriptionReactivateResponse.js +30 -0
- package/api/types/SubscriptionReactivateResponse.ts +68 -0
- package/api/types/SubscriptionResumeResponse.d.ts +63 -0
- package/api/types/SubscriptionResumeResponse.js +30 -0
- package/api/types/SubscriptionResumeResponse.ts +68 -0
- package/api/types/SubscriptionRetrieveResponse.d.ts +63 -0
- package/api/types/SubscriptionRetrieveResponse.js +30 -0
- package/api/types/SubscriptionRetrieveResponse.ts +68 -0
- package/api/types/SubscriptionSchedule.d.ts +61 -0
- package/api/types/SubscriptionSchedule.js +22 -0
- package/api/types/SubscriptionSchedule.ts +66 -0
- package/api/types/SubscriptionScheduleErrorResponse.d.ts +16 -0
- package/api/types/SubscriptionScheduleErrorResponse.js +3 -0
- package/api/types/SubscriptionScheduleErrorResponse.ts +18 -0
- package/api/types/SubscriptionScheduleListResponse.d.ts +15 -0
- package/api/types/SubscriptionScheduleListResponse.js +8 -0
- package/api/types/SubscriptionScheduleListResponse.ts +18 -0
- package/api/types/SubscriptionTerms.d.ts +49 -0
- package/api/types/SubscriptionTerms.js +28 -0
- package/api/types/SubscriptionTerms.ts +51 -0
- package/api/types/SubscriptionUpdateResponse.d.ts +63 -0
- package/api/types/SubscriptionUpdateResponse.js +30 -0
- package/api/types/SubscriptionUpdateResponse.ts +68 -0
- package/api/types/SuccessResponse.d.ts +4 -0
- package/api/types/SuccessResponse.js +3 -0
- package/api/types/SuccessResponse.ts +5 -0
- package/api/types/TaxRate.d.ts +46 -0
- package/api/types/TaxRate.js +16 -0
- package/api/types/TaxRate.ts +48 -0
- package/api/types/TaxRateErrorResponse.d.ts +12 -0
- package/api/types/TaxRateErrorResponse.js +3 -0
- package/api/types/TaxRateErrorResponse.ts +14 -0
- package/api/types/TaxRateListResponse.d.ts +14 -0
- package/api/types/TaxRateListResponse.js +8 -0
- package/api/types/TaxRateListResponse.ts +17 -0
- package/api/types/TerminalDevice.d.ts +39 -0
- package/api/types/TerminalDevice.js +17 -0
- package/api/types/TerminalDevice.ts +41 -0
- package/api/types/TerminalDeviceErrorResponse.d.ts +5 -0
- package/api/types/TerminalDeviceErrorResponse.js +3 -0
- package/api/types/TerminalDeviceErrorResponse.ts +6 -0
- package/api/types/TerminalDeviceListResponse.d.ts +11 -0
- package/api/types/TerminalDeviceListResponse.js +3 -0
- package/api/types/TerminalDeviceListResponse.ts +14 -0
- package/api/types/TerminalDeviceResponse.d.ts +5 -0
- package/api/types/TerminalDeviceResponse.js +3 -0
- package/api/types/TerminalDeviceResponse.ts +7 -0
- package/api/types/TerminalPayment.d.ts +63 -0
- package/api/types/TerminalPayment.js +23 -0
- package/api/types/TerminalPayment.ts +65 -0
- package/api/types/TerminalPaymentErrorResponse.d.ts +6 -0
- package/api/types/TerminalPaymentErrorResponse.js +3 -0
- package/api/types/TerminalPaymentErrorResponse.ts +7 -0
- package/api/types/TerminalPaymentListResponse.d.ts +12 -0
- package/api/types/TerminalPaymentListResponse.js +3 -0
- package/api/types/TerminalPaymentListResponse.ts +15 -0
- package/api/types/TerminalPaymentResponse.d.ts +5 -0
- package/api/types/TerminalPaymentResponse.js +3 -0
- package/api/types/TerminalPaymentResponse.ts +7 -0
- package/api/types/TestEventResponse.d.ts +9 -0
- package/api/types/TestEventResponse.js +3 -0
- package/api/types/TestEventResponse.ts +11 -0
- package/api/types/UnauthorizedErrorBody.d.ts +5 -0
- package/api/types/UnauthorizedErrorBody.js +3 -0
- package/api/types/UnauthorizedErrorBody.ts +6 -0
- package/api/types/ValidationError.d.ts +28 -0
- package/api/types/ValidationError.js +14 -0
- package/api/types/ValidationError.ts +32 -0
- package/api/types/Void.d.ts +39 -0
- package/api/types/Void.js +18 -0
- package/api/types/Void.ts +41 -0
- package/api/types/VoidCreateResponse.d.ts +5 -0
- package/api/types/VoidCreateResponse.js +3 -0
- package/api/types/VoidCreateResponse.ts +7 -0
- package/api/types/VoidListResponse.d.ts +14 -0
- package/api/types/VoidListResponse.js +3 -0
- package/api/types/VoidListResponse.ts +17 -0
- package/api/types/VoidRetrieveResponse.d.ts +5 -0
- package/api/types/VoidRetrieveResponse.js +3 -0
- package/api/types/VoidRetrieveResponse.ts +7 -0
- package/api/types/WebhookEndpoint.d.ts +33 -0
- package/api/types/WebhookEndpoint.js +15 -0
- package/api/types/WebhookEndpoint.ts +35 -0
- package/api/types/WebhookEndpointCreateResponse.d.ts +5 -0
- package/api/types/WebhookEndpointCreateResponse.js +3 -0
- package/api/types/WebhookEndpointCreateResponse.ts +7 -0
- package/api/types/WebhookEndpointDeleteResponse.d.ts +10 -0
- package/api/types/WebhookEndpointDeleteResponse.js +3 -0
- package/api/types/WebhookEndpointDeleteResponse.ts +12 -0
- package/api/types/WebhookEndpointListResponse.d.ts +46 -0
- package/api/types/WebhookEndpointListResponse.js +21 -0
- package/api/types/WebhookEndpointListResponse.ts +51 -0
- package/api/types/WebhookEndpointRetrieveResponse.d.ts +36 -0
- package/api/types/WebhookEndpointRetrieveResponse.js +18 -0
- package/api/types/WebhookEndpointRetrieveResponse.ts +39 -0
- package/api/types/WebhookEndpointRotateSecretResponse.d.ts +5 -0
- package/api/types/WebhookEndpointRotateSecretResponse.js +3 -0
- package/api/types/WebhookEndpointRotateSecretResponse.ts +7 -0
- package/api/types/WebhookEndpointUpdateResponse.d.ts +36 -0
- package/api/types/WebhookEndpointUpdateResponse.js +18 -0
- package/api/types/WebhookEndpointUpdateResponse.ts +39 -0
- package/api/types/WebhookEvent.d.ts +24 -0
- package/api/types/WebhookEvent.js +3 -0
- package/api/types/WebhookEvent.ts +26 -0
- package/api/types/index.d.ts +152 -0
- package/api/types/index.js +152 -0
- package/api/types/index.ts +151 -0
- package/auth/HeaderAuthProvider.d.ts +21 -0
- package/auth/HeaderAuthProvider.js +33 -0
- package/auth/HeaderAuthProvider.ts +48 -0
- package/auth/index.d.ts +2 -0
- package/auth/index.js +2 -0
- package/auth/index.ts +1 -0
- package/core/auth/AuthProvider.d.ts +8 -0
- package/core/auth/AuthProvider.js +2 -0
- package/core/auth/AuthProvider.ts +6 -0
- package/core/auth/AuthRequest.d.ts +10 -0
- package/core/auth/AuthRequest.js +2 -0
- package/core/auth/AuthRequest.ts +9 -0
- package/core/auth/BasicAuth.d.ts +9 -0
- package/core/auth/BasicAuth.js +25 -0
- package/core/auth/BasicAuth.ts +32 -0
- package/core/auth/BearerToken.d.ts +8 -0
- package/core/auth/BearerToken.js +14 -0
- package/core/auth/BearerToken.ts +20 -0
- package/core/auth/NoOpAuthProvider.d.ts +6 -0
- package/core/auth/NoOpAuthProvider.js +6 -0
- package/core/auth/NoOpAuthProvider.ts +8 -0
- package/core/auth/index.d.ts +6 -0
- package/core/auth/index.js +4 -0
- package/core/auth/index.ts +5 -0
- package/core/base64.d.ts +3 -0
- package/core/base64.js +23 -0
- package/core/base64.ts +27 -0
- package/core/exports.d.ts +2 -0
- package/core/exports.js +2 -0
- package/core/exports.ts +1 -0
- package/core/fetcher/APIResponse.d.ts +21 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/APIResponse.ts +23 -0
- package/core/fetcher/BinaryResponse.d.ts +20 -0
- package/core/fetcher/BinaryResponse.js +15 -0
- package/core/fetcher/BinaryResponse.ts +34 -0
- package/core/fetcher/EndpointMetadata.d.ts +14 -0
- package/core/fetcher/EndpointMetadata.js +2 -0
- package/core/fetcher/EndpointMetadata.ts +13 -0
- package/core/fetcher/EndpointSupplier.d.ts +13 -0
- package/core/fetcher/EndpointSupplier.js +11 -0
- package/core/fetcher/EndpointSupplier.ts +14 -0
- package/core/fetcher/Fetcher.d.ts +49 -0
- package/core/fetcher/Fetcher.js +296 -0
- package/core/fetcher/Fetcher.ts +391 -0
- package/core/fetcher/Headers.d.ts +3 -0
- package/core/fetcher/Headers.js +83 -0
- package/core/fetcher/Headers.ts +93 -0
- package/core/fetcher/HttpResponsePromise.d.ts +59 -0
- package/core/fetcher/HttpResponsePromise.js +89 -0
- package/core/fetcher/HttpResponsePromise.ts +116 -0
- package/core/fetcher/RawResponse.d.ts +30 -0
- package/core/fetcher/RawResponse.js +41 -0
- package/core/fetcher/RawResponse.ts +61 -0
- package/core/fetcher/Supplier.d.ts +5 -0
- package/core/fetcher/Supplier.js +11 -0
- package/core/fetcher/Supplier.ts +11 -0
- package/core/fetcher/createRequestUrl.d.ts +2 -0
- package/core/fetcher/createRequestUrl.js +6 -0
- package/core/fetcher/createRequestUrl.ts +6 -0
- package/core/fetcher/getErrorResponseBody.d.ts +2 -0
- package/core/fetcher/getErrorResponseBody.js +31 -0
- package/core/fetcher/getErrorResponseBody.ts +33 -0
- package/core/fetcher/getFetchFn.d.ts +2 -0
- package/core/fetcher/getFetchFn.js +4 -0
- package/core/fetcher/getFetchFn.ts +3 -0
- package/core/fetcher/getHeader.d.ts +2 -0
- package/core/fetcher/getHeader.js +9 -0
- package/core/fetcher/getHeader.ts +8 -0
- package/core/fetcher/getRequestBody.d.ts +8 -0
- package/core/fetcher/getRequestBody.js +14 -0
- package/core/fetcher/getRequestBody.ts +20 -0
- package/core/fetcher/getResponseBody.d.ts +2 -0
- package/core/fetcher/getResponseBody.js +56 -0
- package/core/fetcher/getResponseBody.ts +58 -0
- package/core/fetcher/index.d.ts +12 -0
- package/core/fetcher/index.js +7 -0
- package/core/fetcher/index.ts +11 -0
- package/core/fetcher/makeRequest.d.ts +2 -0
- package/core/fetcher/makeRequest.js +28 -0
- package/core/fetcher/makeRequest.ts +42 -0
- package/core/fetcher/requestWithRetries.d.ts +2 -0
- package/core/fetcher/requestWithRetries.js +54 -0
- package/core/fetcher/requestWithRetries.ts +64 -0
- package/core/fetcher/signals.d.ts +6 -0
- package/core/fetcher/signals.js +21 -0
- package/core/fetcher/signals.ts +26 -0
- package/core/headers.d.ts +3 -0
- package/core/headers.js +28 -0
- package/core/headers.ts +33 -0
- package/core/index.d.ts +7 -0
- package/core/index.js +7 -0
- package/core/index.ts +6 -0
- package/core/json.d.ts +16 -0
- package/core/json.js +20 -0
- package/core/json.ts +27 -0
- package/core/logging/exports.d.ts +19 -0
- package/core/logging/exports.js +10 -0
- package/core/logging/exports.ts +19 -0
- package/core/logging/index.d.ts +2 -0
- package/core/logging/index.js +2 -0
- package/core/logging/index.ts +1 -0
- package/core/logging/logger.d.ts +127 -0
- package/core/logging/logger.js +138 -0
- package/core/logging/logger.ts +203 -0
- package/core/runtime/index.d.ts +2 -0
- package/core/runtime/index.js +2 -0
- package/core/runtime/index.ts +1 -0
- package/core/runtime/runtime.d.ts +10 -0
- package/core/runtime/runtime.js +100 -0
- package/core/runtime/runtime.ts +134 -0
- package/core/url/encodePathParam.d.ts +2 -0
- package/core/url/encodePathParam.js +19 -0
- package/core/url/encodePathParam.ts +18 -0
- package/core/url/index.d.ts +4 -0
- package/core/url/index.js +4 -0
- package/core/url/index.ts +3 -0
- package/core/url/join.d.ts +2 -0
- package/core/url/join.js +66 -0
- package/core/url/join.ts +79 -0
- package/core/url/qs.d.ts +7 -0
- package/core/url/qs.js +65 -0
- package/core/url/qs.ts +74 -0
- package/environments.d.ts +5 -0
- package/environments.js +5 -0
- package/environments.ts +7 -0
- package/errors/RevKeenError.d.ts +13 -0
- package/errors/RevKeenError.js +29 -0
- package/errors/RevKeenError.ts +58 -0
- package/errors/RevKeenTimeoutError.d.ts +4 -0
- package/errors/RevKeenTimeoutError.js +12 -0
- package/errors/RevKeenTimeoutError.ts +13 -0
- package/errors/handleNonStatusCodeError.d.ts +3 -0
- package/errors/handleNonStatusCodeError.js +30 -0
- package/errors/handleNonStatusCodeError.ts +37 -0
- package/errors/index.d.ts +3 -0
- package/errors/index.js +3 -0
- package/errors/index.ts +2 -0
- package/exports.d.ts +2 -0
- package/exports.js +2 -0
- package/exports.ts +1 -0
- package/index.d.ts +9 -0
- package/index.js +8 -0
- package/index.ts +10 -0
- package/package.json +53 -0
- package/webhooks.d.ts +292 -0
- package/webhooks.js +360 -0
- package/webhooks.ts +558 -0
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import { mergeHeaders } from "../../../../core/headers.js";
|
|
4
|
+
import * as core from "../../../../core/index.js";
|
|
5
|
+
import * as environments from "../../../../environments.js";
|
|
6
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
7
|
+
import * as errors from "../../../../errors/index.js";
|
|
8
|
+
import * as RevKeen from "../../../index.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create, send, and manage invoices. Track payment status and send reminders.
|
|
11
|
+
*
|
|
12
|
+
* **Required Scopes:**
|
|
13
|
+
* - `invoices:read` - List and retrieve invoices
|
|
14
|
+
* - `invoices:write` - Create, update, send, finalize invoices
|
|
15
|
+
*
|
|
16
|
+
* **MCP Tools:** `invoices_list`, `invoices_get`, `invoices_create`, `invoices_send`, `invoices_finalize`
|
|
17
|
+
*/
|
|
18
|
+
export class InvoicesClient {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create or update multiple invoices by external system ID. Supports up to 100 invoices per request with stale update protection and immutable field guardrails.
|
|
24
|
+
*
|
|
25
|
+
* @param {RevKeen.InvoicesExternalBatchRequest} request
|
|
26
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
29
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
30
|
+
* @throws {@link RevKeen.ForbiddenError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.invoices.externalbatch({
|
|
34
|
+
* source: "practicehub",
|
|
35
|
+
* invoices: [{
|
|
36
|
+
* external_id: "INV-12345"
|
|
37
|
+
* }]
|
|
38
|
+
* })
|
|
39
|
+
*/
|
|
40
|
+
externalbatch(request, requestOptions) {
|
|
41
|
+
return core.HttpResponsePromise.fromPromise(this.__externalbatch(request, requestOptions));
|
|
42
|
+
}
|
|
43
|
+
async __externalbatch(request, requestOptions) {
|
|
44
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
45
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
46
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
47
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
48
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
49
|
+
environments.RevKeenEnvironment.Default, "invoices/external/batch"),
|
|
50
|
+
method: "PUT",
|
|
51
|
+
headers: _headers,
|
|
52
|
+
contentType: "application/json",
|
|
53
|
+
queryParameters: requestOptions?.queryParams,
|
|
54
|
+
requestType: "json",
|
|
55
|
+
body: request,
|
|
56
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
57
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
58
|
+
abortSignal: requestOptions?.abortSignal,
|
|
59
|
+
fetchFn: this._options?.fetch,
|
|
60
|
+
logging: this._options.logging,
|
|
61
|
+
});
|
|
62
|
+
if (_response.ok) {
|
|
63
|
+
return {
|
|
64
|
+
data: _response.body,
|
|
65
|
+
rawResponse: _response.rawResponse,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (_response.error.reason === "status-code") {
|
|
69
|
+
switch (_response.error.statusCode) {
|
|
70
|
+
case 400:
|
|
71
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
72
|
+
case 401:
|
|
73
|
+
throw new RevKeen.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
74
|
+
case 403:
|
|
75
|
+
throw new RevKeen.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
76
|
+
default:
|
|
77
|
+
throw new errors.RevKeenError({
|
|
78
|
+
statusCode: _response.error.statusCode,
|
|
79
|
+
body: _response.error.body,
|
|
80
|
+
rawResponse: _response.rawResponse,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/invoices/external/batch");
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* List invoices with pagination and filtering.
|
|
88
|
+
*
|
|
89
|
+
* @param {RevKeen.InvoicesListRequest} request
|
|
90
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.invoices.list()
|
|
94
|
+
*/
|
|
95
|
+
list(request = {}, requestOptions) {
|
|
96
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
97
|
+
}
|
|
98
|
+
async __list(request = {}, requestOptions) {
|
|
99
|
+
const { status, customerId, limit, offset } = request;
|
|
100
|
+
const _queryParams = {
|
|
101
|
+
status,
|
|
102
|
+
customerId,
|
|
103
|
+
limit,
|
|
104
|
+
offset,
|
|
105
|
+
};
|
|
106
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
107
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
108
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
109
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
110
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
111
|
+
environments.RevKeenEnvironment.Default, "invoices"),
|
|
112
|
+
method: "GET",
|
|
113
|
+
headers: _headers,
|
|
114
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
115
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
116
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
117
|
+
abortSignal: requestOptions?.abortSignal,
|
|
118
|
+
fetchFn: this._options?.fetch,
|
|
119
|
+
logging: this._options.logging,
|
|
120
|
+
});
|
|
121
|
+
if (_response.ok) {
|
|
122
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
123
|
+
}
|
|
124
|
+
if (_response.error.reason === "status-code") {
|
|
125
|
+
throw new errors.RevKeenError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.body,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/invoices");
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Create a new invoice.
|
|
135
|
+
*
|
|
136
|
+
* @param {RevKeen.InvoicesCreateRequest} request
|
|
137
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* await client.invoices.create({
|
|
141
|
+
* customer_uuid: "customer_uuid",
|
|
142
|
+
* total_minor: 1
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
create(request, requestOptions) {
|
|
146
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
147
|
+
}
|
|
148
|
+
async __create(request, requestOptions) {
|
|
149
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
150
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
151
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
152
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
153
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
154
|
+
environments.RevKeenEnvironment.Default, "invoices"),
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers: _headers,
|
|
157
|
+
contentType: "application/json",
|
|
158
|
+
queryParameters: requestOptions?.queryParams,
|
|
159
|
+
requestType: "json",
|
|
160
|
+
body: request,
|
|
161
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
162
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
163
|
+
abortSignal: requestOptions?.abortSignal,
|
|
164
|
+
fetchFn: this._options?.fetch,
|
|
165
|
+
logging: this._options.logging,
|
|
166
|
+
});
|
|
167
|
+
if (_response.ok) {
|
|
168
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
169
|
+
}
|
|
170
|
+
if (_response.error.reason === "status-code") {
|
|
171
|
+
throw new errors.RevKeenError({
|
|
172
|
+
statusCode: _response.error.statusCode,
|
|
173
|
+
body: _response.error.body,
|
|
174
|
+
rawResponse: _response.rawResponse,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices");
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Get a single invoice by ID.
|
|
181
|
+
*
|
|
182
|
+
* @param {RevKeen.InvoicesRetrieveRequest} request
|
|
183
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* await client.invoices.retrieve({
|
|
187
|
+
* id: "id"
|
|
188
|
+
* })
|
|
189
|
+
*/
|
|
190
|
+
retrieve(request, requestOptions) {
|
|
191
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(request, requestOptions));
|
|
192
|
+
}
|
|
193
|
+
async __retrieve(request, requestOptions) {
|
|
194
|
+
const { id } = request;
|
|
195
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
196
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
197
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
198
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
199
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
200
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}`),
|
|
201
|
+
method: "GET",
|
|
202
|
+
headers: _headers,
|
|
203
|
+
queryParameters: requestOptions?.queryParams,
|
|
204
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
205
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
206
|
+
abortSignal: requestOptions?.abortSignal,
|
|
207
|
+
fetchFn: this._options?.fetch,
|
|
208
|
+
logging: this._options.logging,
|
|
209
|
+
});
|
|
210
|
+
if (_response.ok) {
|
|
211
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
212
|
+
}
|
|
213
|
+
if (_response.error.reason === "status-code") {
|
|
214
|
+
throw new errors.RevKeenError({
|
|
215
|
+
statusCode: _response.error.statusCode,
|
|
216
|
+
body: _response.error.body,
|
|
217
|
+
rawResponse: _response.rawResponse,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/invoices/{id}");
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Delete an invoice.
|
|
224
|
+
*
|
|
225
|
+
* @param {RevKeen.InvoicesDeleteRequest} request
|
|
226
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* await client.invoices.delete({
|
|
230
|
+
* id: "id"
|
|
231
|
+
* })
|
|
232
|
+
*/
|
|
233
|
+
delete(request, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
235
|
+
}
|
|
236
|
+
async __delete(request, requestOptions) {
|
|
237
|
+
const { id } = request;
|
|
238
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
239
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
240
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
241
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
242
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
243
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}`),
|
|
244
|
+
method: "DELETE",
|
|
245
|
+
headers: _headers,
|
|
246
|
+
queryParameters: requestOptions?.queryParams,
|
|
247
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
248
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
249
|
+
abortSignal: requestOptions?.abortSignal,
|
|
250
|
+
fetchFn: this._options?.fetch,
|
|
251
|
+
logging: this._options.logging,
|
|
252
|
+
});
|
|
253
|
+
if (_response.ok) {
|
|
254
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
255
|
+
}
|
|
256
|
+
if (_response.error.reason === "status-code") {
|
|
257
|
+
throw new errors.RevKeenError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.body,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/invoices/{id}");
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Update an existing invoice.
|
|
267
|
+
*
|
|
268
|
+
* @param {RevKeen.InvoicesUpdateRequest} request
|
|
269
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* await client.invoices.update({
|
|
273
|
+
* id: "id"
|
|
274
|
+
* })
|
|
275
|
+
*/
|
|
276
|
+
update(request, requestOptions) {
|
|
277
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
278
|
+
}
|
|
279
|
+
async __update(request, requestOptions) {
|
|
280
|
+
const { id, ..._body } = request;
|
|
281
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
282
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
283
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
284
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
285
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
286
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}`),
|
|
287
|
+
method: "PATCH",
|
|
288
|
+
headers: _headers,
|
|
289
|
+
contentType: "application/json",
|
|
290
|
+
queryParameters: requestOptions?.queryParams,
|
|
291
|
+
requestType: "json",
|
|
292
|
+
body: _body,
|
|
293
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
294
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
295
|
+
abortSignal: requestOptions?.abortSignal,
|
|
296
|
+
fetchFn: this._options?.fetch,
|
|
297
|
+
logging: this._options.logging,
|
|
298
|
+
});
|
|
299
|
+
if (_response.ok) {
|
|
300
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
301
|
+
}
|
|
302
|
+
if (_response.error.reason === "status-code") {
|
|
303
|
+
throw new errors.RevKeenError({
|
|
304
|
+
statusCode: _response.error.statusCode,
|
|
305
|
+
body: _response.error.body,
|
|
306
|
+
rawResponse: _response.rawResponse,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/invoices/{id}");
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Issue a full or partial refund for a paid invoice. Emits invoice.refunded notification to customer.
|
|
313
|
+
*
|
|
314
|
+
* @param {RevKeen.InvoicesRefundRequest} request
|
|
315
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
316
|
+
*
|
|
317
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* await client.invoices.refund({
|
|
321
|
+
* id: "id"
|
|
322
|
+
* })
|
|
323
|
+
*/
|
|
324
|
+
refund(request, requestOptions) {
|
|
325
|
+
return core.HttpResponsePromise.fromPromise(this.__refund(request, requestOptions));
|
|
326
|
+
}
|
|
327
|
+
async __refund(request, requestOptions) {
|
|
328
|
+
const { id, ..._body } = request;
|
|
329
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
330
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
331
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
332
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
333
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
334
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/refund`),
|
|
335
|
+
method: "POST",
|
|
336
|
+
headers: _headers,
|
|
337
|
+
contentType: "application/json",
|
|
338
|
+
queryParameters: requestOptions?.queryParams,
|
|
339
|
+
requestType: "json",
|
|
340
|
+
body: _body,
|
|
341
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
342
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
343
|
+
abortSignal: requestOptions?.abortSignal,
|
|
344
|
+
fetchFn: this._options?.fetch,
|
|
345
|
+
logging: this._options.logging,
|
|
346
|
+
});
|
|
347
|
+
if (_response.ok) {
|
|
348
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
349
|
+
}
|
|
350
|
+
if (_response.error.reason === "status-code") {
|
|
351
|
+
switch (_response.error.statusCode) {
|
|
352
|
+
case 400:
|
|
353
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
354
|
+
default:
|
|
355
|
+
throw new errors.RevKeenError({
|
|
356
|
+
statusCode: _response.error.statusCode,
|
|
357
|
+
body: _response.error.body,
|
|
358
|
+
rawResponse: _response.rawResponse,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/refund");
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Reject an invoice during approval workflow. Returns invoice to draft status with rejection details.
|
|
366
|
+
*
|
|
367
|
+
* @param {RevKeen.InvoicesRejectRequest} request
|
|
368
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
369
|
+
*
|
|
370
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
371
|
+
*
|
|
372
|
+
* @example
|
|
373
|
+
* await client.invoices.reject({
|
|
374
|
+
* id: "id",
|
|
375
|
+
* reason: "Invoice totals do not match purchase order"
|
|
376
|
+
* })
|
|
377
|
+
*/
|
|
378
|
+
reject(request, requestOptions) {
|
|
379
|
+
return core.HttpResponsePromise.fromPromise(this.__reject(request, requestOptions));
|
|
380
|
+
}
|
|
381
|
+
async __reject(request, requestOptions) {
|
|
382
|
+
const { id, ..._body } = request;
|
|
383
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
384
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
385
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
386
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
387
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
388
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/reject`),
|
|
389
|
+
method: "POST",
|
|
390
|
+
headers: _headers,
|
|
391
|
+
contentType: "application/json",
|
|
392
|
+
queryParameters: requestOptions?.queryParams,
|
|
393
|
+
requestType: "json",
|
|
394
|
+
body: _body,
|
|
395
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
396
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
397
|
+
abortSignal: requestOptions?.abortSignal,
|
|
398
|
+
fetchFn: this._options?.fetch,
|
|
399
|
+
logging: this._options.logging,
|
|
400
|
+
});
|
|
401
|
+
if (_response.ok) {
|
|
402
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
403
|
+
}
|
|
404
|
+
if (_response.error.reason === "status-code") {
|
|
405
|
+
switch (_response.error.statusCode) {
|
|
406
|
+
case 400:
|
|
407
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
408
|
+
default:
|
|
409
|
+
throw new errors.RevKeenError({
|
|
410
|
+
statusCode: _response.error.statusCode,
|
|
411
|
+
body: _response.error.body,
|
|
412
|
+
rawResponse: _response.rawResponse,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/reject");
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* List comments for an invoice. Use includeInternal=true to include internal comments (merchant only).
|
|
420
|
+
*
|
|
421
|
+
* @param {RevKeen.InvoicesCommentsListRequest} request
|
|
422
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* await client.invoices.commentsList({
|
|
426
|
+
* id: "id",
|
|
427
|
+
* includeInternal: "false"
|
|
428
|
+
* })
|
|
429
|
+
*/
|
|
430
|
+
commentsList(request, requestOptions) {
|
|
431
|
+
return core.HttpResponsePromise.fromPromise(this.__commentsList(request, requestOptions));
|
|
432
|
+
}
|
|
433
|
+
async __commentsList(request, requestOptions) {
|
|
434
|
+
const { id, includeInternal } = request;
|
|
435
|
+
const _queryParams = {
|
|
436
|
+
includeInternal,
|
|
437
|
+
};
|
|
438
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
439
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
440
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
441
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
442
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
443
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/comments`),
|
|
444
|
+
method: "GET",
|
|
445
|
+
headers: _headers,
|
|
446
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
447
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
448
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
449
|
+
abortSignal: requestOptions?.abortSignal,
|
|
450
|
+
fetchFn: this._options?.fetch,
|
|
451
|
+
logging: this._options.logging,
|
|
452
|
+
});
|
|
453
|
+
if (_response.ok) {
|
|
454
|
+
return {
|
|
455
|
+
data: _response.body,
|
|
456
|
+
rawResponse: _response.rawResponse,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
if (_response.error.reason === "status-code") {
|
|
460
|
+
throw new errors.RevKeenError({
|
|
461
|
+
statusCode: _response.error.statusCode,
|
|
462
|
+
body: _response.error.body,
|
|
463
|
+
rawResponse: _response.rawResponse,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/invoices/{id}/comments");
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Add a comment to an invoice. Set isInternal to true for merchant-only comments.
|
|
470
|
+
*
|
|
471
|
+
* @param {RevKeen.InvoicesCommentsAddRequest} request
|
|
472
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
473
|
+
*
|
|
474
|
+
* @example
|
|
475
|
+
* await client.invoices.commentsAdd({
|
|
476
|
+
* id: "id",
|
|
477
|
+
* content: "Payment reminder sent to customer"
|
|
478
|
+
* })
|
|
479
|
+
*/
|
|
480
|
+
commentsAdd(request, requestOptions) {
|
|
481
|
+
return core.HttpResponsePromise.fromPromise(this.__commentsAdd(request, requestOptions));
|
|
482
|
+
}
|
|
483
|
+
async __commentsAdd(request, requestOptions) {
|
|
484
|
+
const { id, ..._body } = request;
|
|
485
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
486
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
487
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
488
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
489
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
490
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/comments`),
|
|
491
|
+
method: "POST",
|
|
492
|
+
headers: _headers,
|
|
493
|
+
contentType: "application/json",
|
|
494
|
+
queryParameters: requestOptions?.queryParams,
|
|
495
|
+
requestType: "json",
|
|
496
|
+
body: _body,
|
|
497
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
498
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
499
|
+
abortSignal: requestOptions?.abortSignal,
|
|
500
|
+
fetchFn: this._options?.fetch,
|
|
501
|
+
logging: this._options.logging,
|
|
502
|
+
});
|
|
503
|
+
if (_response.ok) {
|
|
504
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
505
|
+
}
|
|
506
|
+
if (_response.error.reason === "status-code") {
|
|
507
|
+
throw new errors.RevKeenError({
|
|
508
|
+
statusCode: _response.error.statusCode,
|
|
509
|
+
body: _response.error.body,
|
|
510
|
+
rawResponse: _response.rawResponse,
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/comments");
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Create or update an invoice identified by external source and ID. Used by integrations (PracticeHub, Wodify) to sync invoices.
|
|
517
|
+
*
|
|
518
|
+
* @param {RevKeen.InvoicesExternalUpsertByExternalIdRequest} request
|
|
519
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
520
|
+
*
|
|
521
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
522
|
+
* @throws {@link RevKeen.ConflictError}
|
|
523
|
+
* @throws {@link RevKeen.UnprocessableEntityError}
|
|
524
|
+
*
|
|
525
|
+
* @example
|
|
526
|
+
* await client.invoices.externalUpsertbyexternalid({
|
|
527
|
+
* source: "practicehub",
|
|
528
|
+
* externalId: "INV-12345"
|
|
529
|
+
* })
|
|
530
|
+
*/
|
|
531
|
+
externalUpsertbyexternalid(request, requestOptions) {
|
|
532
|
+
return core.HttpResponsePromise.fromPromise(this.__externalUpsertbyexternalid(request, requestOptions));
|
|
533
|
+
}
|
|
534
|
+
async __externalUpsertbyexternalid(request, requestOptions) {
|
|
535
|
+
const { source, externalId, ..._body } = request;
|
|
536
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
537
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
538
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
539
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
540
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
541
|
+
environments.RevKeenEnvironment.Default, `invoices/external/${core.url.encodePathParam(source)}/${core.url.encodePathParam(externalId)}`),
|
|
542
|
+
method: "PUT",
|
|
543
|
+
headers: _headers,
|
|
544
|
+
contentType: "application/json",
|
|
545
|
+
queryParameters: requestOptions?.queryParams,
|
|
546
|
+
requestType: "json",
|
|
547
|
+
body: _body,
|
|
548
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
549
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
550
|
+
abortSignal: requestOptions?.abortSignal,
|
|
551
|
+
fetchFn: this._options?.fetch,
|
|
552
|
+
logging: this._options.logging,
|
|
553
|
+
});
|
|
554
|
+
if (_response.ok) {
|
|
555
|
+
return {
|
|
556
|
+
data: _response.body,
|
|
557
|
+
rawResponse: _response.rawResponse,
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
if (_response.error.reason === "status-code") {
|
|
561
|
+
switch (_response.error.statusCode) {
|
|
562
|
+
case 400:
|
|
563
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
564
|
+
case 409:
|
|
565
|
+
throw new RevKeen.ConflictError(_response.error.body, _response.rawResponse);
|
|
566
|
+
case 422:
|
|
567
|
+
throw new RevKeen.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
568
|
+
default:
|
|
569
|
+
throw new errors.RevKeenError({
|
|
570
|
+
statusCode: _response.error.statusCode,
|
|
571
|
+
body: _response.error.body,
|
|
572
|
+
rawResponse: _response.rawResponse,
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/invoices/external/{source}/{externalId}");
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Finalizes a draft invoice, locking it for payment. Assigns invoice number and generates public token. After finalization, financial fields become immutable.
|
|
580
|
+
*
|
|
581
|
+
* @param {RevKeen.InvoicesFinalizeRequest} request
|
|
582
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
583
|
+
*
|
|
584
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
585
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
586
|
+
*
|
|
587
|
+
* @example
|
|
588
|
+
* await client.invoices.finalize({
|
|
589
|
+
* id: "id"
|
|
590
|
+
* })
|
|
591
|
+
*/
|
|
592
|
+
finalize(request, requestOptions) {
|
|
593
|
+
return core.HttpResponsePromise.fromPromise(this.__finalize(request, requestOptions));
|
|
594
|
+
}
|
|
595
|
+
async __finalize(request, requestOptions) {
|
|
596
|
+
const { id, ..._body } = request;
|
|
597
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
598
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
599
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
600
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
601
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
602
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/finalize`),
|
|
603
|
+
method: "POST",
|
|
604
|
+
headers: _headers,
|
|
605
|
+
contentType: "application/json",
|
|
606
|
+
queryParameters: requestOptions?.queryParams,
|
|
607
|
+
requestType: "json",
|
|
608
|
+
body: _body,
|
|
609
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
610
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
611
|
+
abortSignal: requestOptions?.abortSignal,
|
|
612
|
+
fetchFn: this._options?.fetch,
|
|
613
|
+
logging: this._options.logging,
|
|
614
|
+
});
|
|
615
|
+
if (_response.ok) {
|
|
616
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
617
|
+
}
|
|
618
|
+
if (_response.error.reason === "status-code") {
|
|
619
|
+
switch (_response.error.statusCode) {
|
|
620
|
+
case 400:
|
|
621
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
622
|
+
case 404:
|
|
623
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
624
|
+
default:
|
|
625
|
+
throw new errors.RevKeenError({
|
|
626
|
+
statusCode: _response.error.statusCode,
|
|
627
|
+
body: _response.error.body,
|
|
628
|
+
rawResponse: _response.rawResponse,
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/finalize");
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Voids an invoice. Only invoices without recorded payments can be voided. Use refund instead for paid invoices.
|
|
636
|
+
*
|
|
637
|
+
* @param {RevKeen.InvoicesVoidRequest} request
|
|
638
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
639
|
+
*
|
|
640
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
641
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* await client.invoices.void({
|
|
645
|
+
* id: "id"
|
|
646
|
+
* })
|
|
647
|
+
*/
|
|
648
|
+
void(request, requestOptions) {
|
|
649
|
+
return core.HttpResponsePromise.fromPromise(this.__void(request, requestOptions));
|
|
650
|
+
}
|
|
651
|
+
async __void(request, requestOptions) {
|
|
652
|
+
const { id, ..._body } = request;
|
|
653
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
654
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
655
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
656
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
657
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
658
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/void`),
|
|
659
|
+
method: "POST",
|
|
660
|
+
headers: _headers,
|
|
661
|
+
contentType: "application/json",
|
|
662
|
+
queryParameters: requestOptions?.queryParams,
|
|
663
|
+
requestType: "json",
|
|
664
|
+
body: _body,
|
|
665
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
666
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
667
|
+
abortSignal: requestOptions?.abortSignal,
|
|
668
|
+
fetchFn: this._options?.fetch,
|
|
669
|
+
logging: this._options.logging,
|
|
670
|
+
});
|
|
671
|
+
if (_response.ok) {
|
|
672
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
673
|
+
}
|
|
674
|
+
if (_response.error.reason === "status-code") {
|
|
675
|
+
switch (_response.error.statusCode) {
|
|
676
|
+
case 400:
|
|
677
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
678
|
+
case 404:
|
|
679
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
680
|
+
default:
|
|
681
|
+
throw new errors.RevKeenError({
|
|
682
|
+
statusCode: _response.error.statusCode,
|
|
683
|
+
body: _response.error.body,
|
|
684
|
+
rawResponse: _response.rawResponse,
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/void");
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Sends an invoice to the customer via the specified channel (email, SMS, or WhatsApp). Invoice must be approved first.
|
|
692
|
+
*
|
|
693
|
+
* @param {RevKeen.InvoicesSendRequest} request
|
|
694
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
695
|
+
*
|
|
696
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
697
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
698
|
+
*
|
|
699
|
+
* @example
|
|
700
|
+
* await client.invoices.send({
|
|
701
|
+
* id: "id"
|
|
702
|
+
* })
|
|
703
|
+
*/
|
|
704
|
+
send(request, requestOptions) {
|
|
705
|
+
return core.HttpResponsePromise.fromPromise(this.__send(request, requestOptions));
|
|
706
|
+
}
|
|
707
|
+
async __send(request, requestOptions) {
|
|
708
|
+
const { id, ..._body } = request;
|
|
709
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
710
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
711
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
712
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
713
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
714
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/send`),
|
|
715
|
+
method: "POST",
|
|
716
|
+
headers: _headers,
|
|
717
|
+
contentType: "application/json",
|
|
718
|
+
queryParameters: requestOptions?.queryParams,
|
|
719
|
+
requestType: "json",
|
|
720
|
+
body: _body,
|
|
721
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
722
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
723
|
+
abortSignal: requestOptions?.abortSignal,
|
|
724
|
+
fetchFn: this._options?.fetch,
|
|
725
|
+
logging: this._options.logging,
|
|
726
|
+
});
|
|
727
|
+
if (_response.ok) {
|
|
728
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
729
|
+
}
|
|
730
|
+
if (_response.error.reason === "status-code") {
|
|
731
|
+
switch (_response.error.statusCode) {
|
|
732
|
+
case 400:
|
|
733
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
734
|
+
case 404:
|
|
735
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
736
|
+
default:
|
|
737
|
+
throw new errors.RevKeenError({
|
|
738
|
+
statusCode: _response.error.statusCode,
|
|
739
|
+
body: _response.error.body,
|
|
740
|
+
rawResponse: _response.rawResponse,
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/send");
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Records a manual payment against an invoice. Use this for cash, check, bank transfer, or other offline payments.
|
|
748
|
+
*
|
|
749
|
+
* @param {RevKeen.InvoicesPayRequest} request
|
|
750
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
751
|
+
*
|
|
752
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
753
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
754
|
+
*
|
|
755
|
+
* @example
|
|
756
|
+
* await client.invoices.pay({
|
|
757
|
+
* id: "id"
|
|
758
|
+
* })
|
|
759
|
+
*/
|
|
760
|
+
pay(request, requestOptions) {
|
|
761
|
+
return core.HttpResponsePromise.fromPromise(this.__pay(request, requestOptions));
|
|
762
|
+
}
|
|
763
|
+
async __pay(request, requestOptions) {
|
|
764
|
+
const { id, ..._body } = request;
|
|
765
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
766
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
767
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
768
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
769
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
770
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/pay`),
|
|
771
|
+
method: "POST",
|
|
772
|
+
headers: _headers,
|
|
773
|
+
contentType: "application/json",
|
|
774
|
+
queryParameters: requestOptions?.queryParams,
|
|
775
|
+
requestType: "json",
|
|
776
|
+
body: _body,
|
|
777
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
778
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
779
|
+
abortSignal: requestOptions?.abortSignal,
|
|
780
|
+
fetchFn: this._options?.fetch,
|
|
781
|
+
logging: this._options.logging,
|
|
782
|
+
});
|
|
783
|
+
if (_response.ok) {
|
|
784
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
785
|
+
}
|
|
786
|
+
if (_response.error.reason === "status-code") {
|
|
787
|
+
switch (_response.error.statusCode) {
|
|
788
|
+
case 400:
|
|
789
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
790
|
+
case 404:
|
|
791
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
792
|
+
default:
|
|
793
|
+
throw new errors.RevKeenError({
|
|
794
|
+
statusCode: _response.error.statusCode,
|
|
795
|
+
body: _response.error.body,
|
|
796
|
+
rawResponse: _response.rawResponse,
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/pay");
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Check if an invoice is eligible for credit notes and get the maximum creditable amount.
|
|
804
|
+
*
|
|
805
|
+
* @param {RevKeen.InvoicesCreditEligibilityRequest} request
|
|
806
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
807
|
+
*
|
|
808
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
809
|
+
*
|
|
810
|
+
* @example
|
|
811
|
+
* await client.invoices.creditEligibility({
|
|
812
|
+
* id: "id"
|
|
813
|
+
* })
|
|
814
|
+
*/
|
|
815
|
+
creditEligibility(request, requestOptions) {
|
|
816
|
+
return core.HttpResponsePromise.fromPromise(this.__creditEligibility(request, requestOptions));
|
|
817
|
+
}
|
|
818
|
+
async __creditEligibility(request, requestOptions) {
|
|
819
|
+
const { id } = request;
|
|
820
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
821
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
822
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
823
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
824
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
825
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/credit-eligibility`),
|
|
826
|
+
method: "GET",
|
|
827
|
+
headers: _headers,
|
|
828
|
+
queryParameters: requestOptions?.queryParams,
|
|
829
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
830
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
831
|
+
abortSignal: requestOptions?.abortSignal,
|
|
832
|
+
fetchFn: this._options?.fetch,
|
|
833
|
+
logging: this._options.logging,
|
|
834
|
+
});
|
|
835
|
+
if (_response.ok) {
|
|
836
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
837
|
+
}
|
|
838
|
+
if (_response.error.reason === "status-code") {
|
|
839
|
+
switch (_response.error.statusCode) {
|
|
840
|
+
case 404:
|
|
841
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
842
|
+
default:
|
|
843
|
+
throw new errors.RevKeenError({
|
|
844
|
+
statusCode: _response.error.statusCode,
|
|
845
|
+
body: _response.error.body,
|
|
846
|
+
rawResponse: _response.rawResponse,
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/invoices/{id}/credit-eligibility");
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* List all credit notes issued for an invoice.
|
|
854
|
+
*
|
|
855
|
+
* @param {RevKeen.InvoicesCreditNotesListRequest} request
|
|
856
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
857
|
+
*
|
|
858
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
859
|
+
*
|
|
860
|
+
* @example
|
|
861
|
+
* await client.invoices.creditNotesList({
|
|
862
|
+
* id: "id"
|
|
863
|
+
* })
|
|
864
|
+
*/
|
|
865
|
+
creditNotesList(request, requestOptions) {
|
|
866
|
+
return core.HttpResponsePromise.fromPromise(this.__creditNotesList(request, requestOptions));
|
|
867
|
+
}
|
|
868
|
+
async __creditNotesList(request, requestOptions) {
|
|
869
|
+
const { id } = request;
|
|
870
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
871
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
872
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
873
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
874
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
875
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/credit-notes`),
|
|
876
|
+
method: "GET",
|
|
877
|
+
headers: _headers,
|
|
878
|
+
queryParameters: requestOptions?.queryParams,
|
|
879
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
880
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
881
|
+
abortSignal: requestOptions?.abortSignal,
|
|
882
|
+
fetchFn: this._options?.fetch,
|
|
883
|
+
logging: this._options.logging,
|
|
884
|
+
});
|
|
885
|
+
if (_response.ok) {
|
|
886
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
887
|
+
}
|
|
888
|
+
if (_response.error.reason === "status-code") {
|
|
889
|
+
switch (_response.error.statusCode) {
|
|
890
|
+
case 404:
|
|
891
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
892
|
+
default:
|
|
893
|
+
throw new errors.RevKeenError({
|
|
894
|
+
statusCode: _response.error.statusCode,
|
|
895
|
+
body: _response.error.body,
|
|
896
|
+
rawResponse: _response.rawResponse,
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/invoices/{id}/credit-notes");
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Issue a credit note for a paid or partially paid invoice. Use this instead of void for invoices that have received payment.
|
|
904
|
+
*
|
|
905
|
+
* @param {RevKeen.InvoicesCreditNoteIssueRequest} request
|
|
906
|
+
* @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
907
|
+
*
|
|
908
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
909
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
910
|
+
* @throws {@link RevKeen.ConflictError}
|
|
911
|
+
*
|
|
912
|
+
* @example
|
|
913
|
+
* await client.invoices.creditNoteIssue({
|
|
914
|
+
* id: "id",
|
|
915
|
+
* amount_minor: 5000,
|
|
916
|
+
* reason: "Service issue - partial refund for outage"
|
|
917
|
+
* })
|
|
918
|
+
*/
|
|
919
|
+
creditNoteIssue(request, requestOptions) {
|
|
920
|
+
return core.HttpResponsePromise.fromPromise(this.__creditNoteIssue(request, requestOptions));
|
|
921
|
+
}
|
|
922
|
+
async __creditNoteIssue(request, requestOptions) {
|
|
923
|
+
const { id, ..._body } = request;
|
|
924
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
925
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
926
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
927
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
928
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
929
|
+
environments.RevKeenEnvironment.Default, `invoices/${core.url.encodePathParam(id)}/credit-note`),
|
|
930
|
+
method: "POST",
|
|
931
|
+
headers: _headers,
|
|
932
|
+
contentType: "application/json",
|
|
933
|
+
queryParameters: requestOptions?.queryParams,
|
|
934
|
+
requestType: "json",
|
|
935
|
+
body: _body,
|
|
936
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
937
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
938
|
+
abortSignal: requestOptions?.abortSignal,
|
|
939
|
+
fetchFn: this._options?.fetch,
|
|
940
|
+
logging: this._options.logging,
|
|
941
|
+
});
|
|
942
|
+
if (_response.ok) {
|
|
943
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
944
|
+
}
|
|
945
|
+
if (_response.error.reason === "status-code") {
|
|
946
|
+
switch (_response.error.statusCode) {
|
|
947
|
+
case 400:
|
|
948
|
+
throw new RevKeen.BadRequestError(_response.error.body, _response.rawResponse);
|
|
949
|
+
case 404:
|
|
950
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
951
|
+
case 409:
|
|
952
|
+
throw new RevKeen.ConflictError(_response.error.body, _response.rawResponse);
|
|
953
|
+
default:
|
|
954
|
+
throw new errors.RevKeenError({
|
|
955
|
+
statusCode: _response.error.statusCode,
|
|
956
|
+
body: _response.error.body,
|
|
957
|
+
rawResponse: _response.rawResponse,
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/invoices/{id}/credit-note");
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
//# sourceMappingURL=Client.js.map
|