@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,1293 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
4
|
+
import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
5
|
+
import { mergeHeaders } from "../../../../core/headers.js";
|
|
6
|
+
import * as core from "../../../../core/index.js";
|
|
7
|
+
import * as environments from "../../../../environments.js";
|
|
8
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
9
|
+
import * as errors from "../../../../errors/index.js";
|
|
10
|
+
import * as RevKeen from "../../../index.js";
|
|
11
|
+
|
|
12
|
+
export declare namespace SubscriptionsClient {
|
|
13
|
+
export type Options = BaseClientOptions;
|
|
14
|
+
|
|
15
|
+
export interface RequestOptions extends BaseRequestOptions {}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Manage recurring billing. Create, update, pause, or cancel subscriptions.
|
|
20
|
+
*
|
|
21
|
+
* **Required Scopes:**
|
|
22
|
+
* - `subscriptions:read` - List and retrieve subscriptions
|
|
23
|
+
* - `subscriptions:write` - Create, update, cancel subscriptions
|
|
24
|
+
*
|
|
25
|
+
* **MCP Tools:** `subscriptions_get`
|
|
26
|
+
*/
|
|
27
|
+
export class SubscriptionsClient {
|
|
28
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SubscriptionsClient.Options>;
|
|
29
|
+
|
|
30
|
+
constructor(options: SubscriptionsClient.Options) {
|
|
31
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve a paginated list of subscriptions with optional filters
|
|
36
|
+
*
|
|
37
|
+
* @param {RevKeen.SubscriptionsListRequest} request
|
|
38
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.subscriptions.list()
|
|
44
|
+
*/
|
|
45
|
+
public list(
|
|
46
|
+
request: RevKeen.SubscriptionsListRequest = {},
|
|
47
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
48
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionListResponse> {
|
|
49
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private async __list(
|
|
53
|
+
request: RevKeen.SubscriptionsListRequest = {},
|
|
54
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
55
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionListResponse>> {
|
|
56
|
+
const { page, limit, status, customerId } = request;
|
|
57
|
+
const _queryParams: Record<string, unknown> = {
|
|
58
|
+
page,
|
|
59
|
+
limit,
|
|
60
|
+
status: status != null ? status : undefined,
|
|
61
|
+
customerId,
|
|
62
|
+
};
|
|
63
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
64
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
65
|
+
_authRequest.headers,
|
|
66
|
+
this._options?.headers,
|
|
67
|
+
requestOptions?.headers,
|
|
68
|
+
);
|
|
69
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
70
|
+
url: core.url.join(
|
|
71
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
72
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
73
|
+
environments.RevKeenEnvironment.Default,
|
|
74
|
+
"subscriptions",
|
|
75
|
+
),
|
|
76
|
+
method: "GET",
|
|
77
|
+
headers: _headers,
|
|
78
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
79
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
80
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
81
|
+
abortSignal: requestOptions?.abortSignal,
|
|
82
|
+
fetchFn: this._options?.fetch,
|
|
83
|
+
logging: this._options.logging,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return { data: _response.body as RevKeen.SubscriptionListResponse, rawResponse: _response.rawResponse };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 401:
|
|
92
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
93
|
+
default:
|
|
94
|
+
throw new errors.RevKeenError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.body,
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/subscriptions");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Create a new subscription for a customer
|
|
107
|
+
*
|
|
108
|
+
* @param {RevKeen.SubscriptionsCreateRequest} request
|
|
109
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
112
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.subscriptions.create({
|
|
116
|
+
* customerId: "customerId"
|
|
117
|
+
* })
|
|
118
|
+
*/
|
|
119
|
+
public create(
|
|
120
|
+
request: RevKeen.SubscriptionsCreateRequest,
|
|
121
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
122
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionCreateResponse> {
|
|
123
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
private async __create(
|
|
127
|
+
request: RevKeen.SubscriptionsCreateRequest,
|
|
128
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
129
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionCreateResponse>> {
|
|
130
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
131
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
132
|
+
_authRequest.headers,
|
|
133
|
+
this._options?.headers,
|
|
134
|
+
requestOptions?.headers,
|
|
135
|
+
);
|
|
136
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
137
|
+
url: core.url.join(
|
|
138
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
139
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
140
|
+
environments.RevKeenEnvironment.Default,
|
|
141
|
+
"subscriptions",
|
|
142
|
+
),
|
|
143
|
+
method: "POST",
|
|
144
|
+
headers: _headers,
|
|
145
|
+
contentType: "application/json",
|
|
146
|
+
queryParameters: requestOptions?.queryParams,
|
|
147
|
+
requestType: "json",
|
|
148
|
+
body: request,
|
|
149
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
150
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
151
|
+
abortSignal: requestOptions?.abortSignal,
|
|
152
|
+
fetchFn: this._options?.fetch,
|
|
153
|
+
logging: this._options.logging,
|
|
154
|
+
});
|
|
155
|
+
if (_response.ok) {
|
|
156
|
+
return { data: _response.body as RevKeen.SubscriptionCreateResponse, rawResponse: _response.rawResponse };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (_response.error.reason === "status-code") {
|
|
160
|
+
switch (_response.error.statusCode) {
|
|
161
|
+
case 400:
|
|
162
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
163
|
+
case 401:
|
|
164
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
165
|
+
default:
|
|
166
|
+
throw new errors.RevKeenError({
|
|
167
|
+
statusCode: _response.error.statusCode,
|
|
168
|
+
body: _response.error.body,
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscriptions");
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Retrieve detailed information about a specific subscription
|
|
179
|
+
*
|
|
180
|
+
* @param {RevKeen.SubscriptionsRetrieveRequest} request
|
|
181
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
184
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* await client.subscriptions.retrieve({
|
|
188
|
+
* id: "id"
|
|
189
|
+
* })
|
|
190
|
+
*/
|
|
191
|
+
public retrieve(
|
|
192
|
+
request: RevKeen.SubscriptionsRetrieveRequest,
|
|
193
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
194
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionRetrieveResponse> {
|
|
195
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieve(request, requestOptions));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
private async __retrieve(
|
|
199
|
+
request: RevKeen.SubscriptionsRetrieveRequest,
|
|
200
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
201
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionRetrieveResponse>> {
|
|
202
|
+
const { id } = request;
|
|
203
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
204
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
205
|
+
_authRequest.headers,
|
|
206
|
+
this._options?.headers,
|
|
207
|
+
requestOptions?.headers,
|
|
208
|
+
);
|
|
209
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
210
|
+
url: core.url.join(
|
|
211
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
212
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
213
|
+
environments.RevKeenEnvironment.Default,
|
|
214
|
+
`subscriptions/${core.url.encodePathParam(id)}`,
|
|
215
|
+
),
|
|
216
|
+
method: "GET",
|
|
217
|
+
headers: _headers,
|
|
218
|
+
queryParameters: requestOptions?.queryParams,
|
|
219
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
220
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
221
|
+
abortSignal: requestOptions?.abortSignal,
|
|
222
|
+
fetchFn: this._options?.fetch,
|
|
223
|
+
logging: this._options.logging,
|
|
224
|
+
});
|
|
225
|
+
if (_response.ok) {
|
|
226
|
+
return { data: _response.body as RevKeen.SubscriptionRetrieveResponse, rawResponse: _response.rawResponse };
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (_response.error.reason === "status-code") {
|
|
230
|
+
switch (_response.error.statusCode) {
|
|
231
|
+
case 401:
|
|
232
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
233
|
+
case 404:
|
|
234
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
235
|
+
default:
|
|
236
|
+
throw new errors.RevKeenError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.body,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/subscriptions/{id}");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Cancel an active subscription immediately or at period end
|
|
249
|
+
*
|
|
250
|
+
* @param {RevKeen.SubscriptionsCancelRequest} request
|
|
251
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
252
|
+
*
|
|
253
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
254
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* await client.subscriptions.cancel({
|
|
258
|
+
* id: "id"
|
|
259
|
+
* })
|
|
260
|
+
*/
|
|
261
|
+
public cancel(
|
|
262
|
+
request: RevKeen.SubscriptionsCancelRequest,
|
|
263
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
264
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionCancelResponse> {
|
|
265
|
+
return core.HttpResponsePromise.fromPromise(this.__cancel(request, requestOptions));
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
private async __cancel(
|
|
269
|
+
request: RevKeen.SubscriptionsCancelRequest,
|
|
270
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
271
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionCancelResponse>> {
|
|
272
|
+
const { id } = request;
|
|
273
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
274
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
275
|
+
_authRequest.headers,
|
|
276
|
+
this._options?.headers,
|
|
277
|
+
requestOptions?.headers,
|
|
278
|
+
);
|
|
279
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
280
|
+
url: core.url.join(
|
|
281
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
282
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
283
|
+
environments.RevKeenEnvironment.Default,
|
|
284
|
+
`subscriptions/${core.url.encodePathParam(id)}`,
|
|
285
|
+
),
|
|
286
|
+
method: "DELETE",
|
|
287
|
+
headers: _headers,
|
|
288
|
+
queryParameters: requestOptions?.queryParams,
|
|
289
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
290
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
291
|
+
abortSignal: requestOptions?.abortSignal,
|
|
292
|
+
fetchFn: this._options?.fetch,
|
|
293
|
+
logging: this._options.logging,
|
|
294
|
+
});
|
|
295
|
+
if (_response.ok) {
|
|
296
|
+
return { data: _response.body as RevKeen.SubscriptionCancelResponse, rawResponse: _response.rawResponse };
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (_response.error.reason === "status-code") {
|
|
300
|
+
switch (_response.error.statusCode) {
|
|
301
|
+
case 401:
|
|
302
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
303
|
+
case 404:
|
|
304
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
305
|
+
default:
|
|
306
|
+
throw new errors.RevKeenError({
|
|
307
|
+
statusCode: _response.error.statusCode,
|
|
308
|
+
body: _response.error.body,
|
|
309
|
+
rawResponse: _response.rawResponse,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/subscriptions/{id}");
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Update an existing subscription's properties
|
|
319
|
+
*
|
|
320
|
+
* @param {RevKeen.SubscriptionsUpdateRequest} request
|
|
321
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
322
|
+
*
|
|
323
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
324
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* await client.subscriptions.update({
|
|
328
|
+
* id: "id"
|
|
329
|
+
* })
|
|
330
|
+
*/
|
|
331
|
+
public update(
|
|
332
|
+
request: RevKeen.SubscriptionsUpdateRequest,
|
|
333
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
334
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionUpdateResponse> {
|
|
335
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
private async __update(
|
|
339
|
+
request: RevKeen.SubscriptionsUpdateRequest,
|
|
340
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
341
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionUpdateResponse>> {
|
|
342
|
+
const { id, ..._body } = request;
|
|
343
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
344
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
345
|
+
_authRequest.headers,
|
|
346
|
+
this._options?.headers,
|
|
347
|
+
requestOptions?.headers,
|
|
348
|
+
);
|
|
349
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
350
|
+
url: core.url.join(
|
|
351
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
352
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
353
|
+
environments.RevKeenEnvironment.Default,
|
|
354
|
+
`subscriptions/${core.url.encodePathParam(id)}`,
|
|
355
|
+
),
|
|
356
|
+
method: "PATCH",
|
|
357
|
+
headers: _headers,
|
|
358
|
+
contentType: "application/json",
|
|
359
|
+
queryParameters: requestOptions?.queryParams,
|
|
360
|
+
requestType: "json",
|
|
361
|
+
body: _body,
|
|
362
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
363
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
364
|
+
abortSignal: requestOptions?.abortSignal,
|
|
365
|
+
fetchFn: this._options?.fetch,
|
|
366
|
+
logging: this._options.logging,
|
|
367
|
+
});
|
|
368
|
+
if (_response.ok) {
|
|
369
|
+
return { data: _response.body as RevKeen.SubscriptionUpdateResponse, rawResponse: _response.rawResponse };
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (_response.error.reason === "status-code") {
|
|
373
|
+
switch (_response.error.statusCode) {
|
|
374
|
+
case 401:
|
|
375
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
376
|
+
case 404:
|
|
377
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
378
|
+
default:
|
|
379
|
+
throw new errors.RevKeenError({
|
|
380
|
+
statusCode: _response.error.statusCode,
|
|
381
|
+
body: _response.error.body,
|
|
382
|
+
rawResponse: _response.rawResponse,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/subscriptions/{id}");
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Change the plan for an existing subscription with optional proration
|
|
392
|
+
*
|
|
393
|
+
* @param {RevKeen.SubscriptionsChangePlanRequest} request
|
|
394
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
|
+
*
|
|
396
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
397
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
398
|
+
*
|
|
399
|
+
* @example
|
|
400
|
+
* await client.subscriptions.changeplan({
|
|
401
|
+
* id: "id",
|
|
402
|
+
* newPlanId: "newPlanId"
|
|
403
|
+
* })
|
|
404
|
+
*/
|
|
405
|
+
public changeplan(
|
|
406
|
+
request: RevKeen.SubscriptionsChangePlanRequest,
|
|
407
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
408
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionChangePlanResponse> {
|
|
409
|
+
return core.HttpResponsePromise.fromPromise(this.__changeplan(request, requestOptions));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
private async __changeplan(
|
|
413
|
+
request: RevKeen.SubscriptionsChangePlanRequest,
|
|
414
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
415
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionChangePlanResponse>> {
|
|
416
|
+
const { id, ..._body } = request;
|
|
417
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
418
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
419
|
+
_authRequest.headers,
|
|
420
|
+
this._options?.headers,
|
|
421
|
+
requestOptions?.headers,
|
|
422
|
+
);
|
|
423
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
424
|
+
url: core.url.join(
|
|
425
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
426
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
427
|
+
environments.RevKeenEnvironment.Default,
|
|
428
|
+
`subscriptions/${core.url.encodePathParam(id)}/change-plan`,
|
|
429
|
+
),
|
|
430
|
+
method: "POST",
|
|
431
|
+
headers: _headers,
|
|
432
|
+
contentType: "application/json",
|
|
433
|
+
queryParameters: requestOptions?.queryParams,
|
|
434
|
+
requestType: "json",
|
|
435
|
+
body: _body,
|
|
436
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
437
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
438
|
+
abortSignal: requestOptions?.abortSignal,
|
|
439
|
+
fetchFn: this._options?.fetch,
|
|
440
|
+
logging: this._options.logging,
|
|
441
|
+
});
|
|
442
|
+
if (_response.ok) {
|
|
443
|
+
return {
|
|
444
|
+
data: _response.body as RevKeen.SubscriptionChangePlanResponse,
|
|
445
|
+
rawResponse: _response.rawResponse,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (_response.error.reason === "status-code") {
|
|
450
|
+
switch (_response.error.statusCode) {
|
|
451
|
+
case 401:
|
|
452
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
453
|
+
case 404:
|
|
454
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
455
|
+
default:
|
|
456
|
+
throw new errors.RevKeenError({
|
|
457
|
+
statusCode: _response.error.statusCode,
|
|
458
|
+
body: _response.error.body,
|
|
459
|
+
rawResponse: _response.rawResponse,
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return handleNonStatusCodeError(
|
|
465
|
+
_response.error,
|
|
466
|
+
_response.rawResponse,
|
|
467
|
+
"POST",
|
|
468
|
+
"/subscriptions/{id}/change-plan",
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Update the quantity for a subscription with optional proration
|
|
474
|
+
*
|
|
475
|
+
* @param {RevKeen.SubscriptionsChangeQuantityRequest} request
|
|
476
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
477
|
+
*
|
|
478
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
479
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
480
|
+
*
|
|
481
|
+
* @example
|
|
482
|
+
* await client.subscriptions.changequantity({
|
|
483
|
+
* id: "id",
|
|
484
|
+
* newQuantity: 1
|
|
485
|
+
* })
|
|
486
|
+
*/
|
|
487
|
+
public changequantity(
|
|
488
|
+
request: RevKeen.SubscriptionsChangeQuantityRequest,
|
|
489
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
490
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionChangeQuantityResponse> {
|
|
491
|
+
return core.HttpResponsePromise.fromPromise(this.__changequantity(request, requestOptions));
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
private async __changequantity(
|
|
495
|
+
request: RevKeen.SubscriptionsChangeQuantityRequest,
|
|
496
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
497
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionChangeQuantityResponse>> {
|
|
498
|
+
const { id, ..._body } = request;
|
|
499
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
500
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
501
|
+
_authRequest.headers,
|
|
502
|
+
this._options?.headers,
|
|
503
|
+
requestOptions?.headers,
|
|
504
|
+
);
|
|
505
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
506
|
+
url: core.url.join(
|
|
507
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
508
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
509
|
+
environments.RevKeenEnvironment.Default,
|
|
510
|
+
`subscriptions/${core.url.encodePathParam(id)}/change-quantity`,
|
|
511
|
+
),
|
|
512
|
+
method: "POST",
|
|
513
|
+
headers: _headers,
|
|
514
|
+
contentType: "application/json",
|
|
515
|
+
queryParameters: requestOptions?.queryParams,
|
|
516
|
+
requestType: "json",
|
|
517
|
+
body: _body,
|
|
518
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
519
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
520
|
+
abortSignal: requestOptions?.abortSignal,
|
|
521
|
+
fetchFn: this._options?.fetch,
|
|
522
|
+
logging: this._options.logging,
|
|
523
|
+
});
|
|
524
|
+
if (_response.ok) {
|
|
525
|
+
return {
|
|
526
|
+
data: _response.body as RevKeen.SubscriptionChangeQuantityResponse,
|
|
527
|
+
rawResponse: _response.rawResponse,
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
if (_response.error.reason === "status-code") {
|
|
532
|
+
switch (_response.error.statusCode) {
|
|
533
|
+
case 401:
|
|
534
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
535
|
+
case 404:
|
|
536
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
537
|
+
default:
|
|
538
|
+
throw new errors.RevKeenError({
|
|
539
|
+
statusCode: _response.error.statusCode,
|
|
540
|
+
body: _response.error.body,
|
|
541
|
+
rawResponse: _response.rawResponse,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
return handleNonStatusCodeError(
|
|
547
|
+
_response.error,
|
|
548
|
+
_response.rawResponse,
|
|
549
|
+
"POST",
|
|
550
|
+
"/subscriptions/{id}/change-quantity",
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Preview the upcoming renewal dates and amounts for an existing subscription.
|
|
556
|
+
*
|
|
557
|
+
* This uses the same billing calculation logic as the actual scheduler to show exactly when
|
|
558
|
+
* and how much the subscription will be billed (Key Invariant #4: Preview === Scheduler).
|
|
559
|
+
*
|
|
560
|
+
* @param {RevKeen.SubscriptionsPreviewRenewalRequest} request
|
|
561
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
562
|
+
*
|
|
563
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
564
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* await client.subscriptions.previewrenewal({
|
|
568
|
+
* id: "id"
|
|
569
|
+
* })
|
|
570
|
+
*/
|
|
571
|
+
public previewrenewal(
|
|
572
|
+
request: RevKeen.SubscriptionsPreviewRenewalRequest,
|
|
573
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
574
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionPreviewRenewalResponse> {
|
|
575
|
+
return core.HttpResponsePromise.fromPromise(this.__previewrenewal(request, requestOptions));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
private async __previewrenewal(
|
|
579
|
+
request: RevKeen.SubscriptionsPreviewRenewalRequest,
|
|
580
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
581
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionPreviewRenewalResponse>> {
|
|
582
|
+
const { id, ..._body } = request;
|
|
583
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
584
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
585
|
+
_authRequest.headers,
|
|
586
|
+
this._options?.headers,
|
|
587
|
+
requestOptions?.headers,
|
|
588
|
+
);
|
|
589
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
590
|
+
url: core.url.join(
|
|
591
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
592
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
593
|
+
environments.RevKeenEnvironment.Default,
|
|
594
|
+
`subscriptions/${core.url.encodePathParam(id)}/preview-renewal`,
|
|
595
|
+
),
|
|
596
|
+
method: "POST",
|
|
597
|
+
headers: _headers,
|
|
598
|
+
contentType: "application/json",
|
|
599
|
+
queryParameters: requestOptions?.queryParams,
|
|
600
|
+
requestType: "json",
|
|
601
|
+
body: _body,
|
|
602
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
603
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
604
|
+
abortSignal: requestOptions?.abortSignal,
|
|
605
|
+
fetchFn: this._options?.fetch,
|
|
606
|
+
logging: this._options.logging,
|
|
607
|
+
});
|
|
608
|
+
if (_response.ok) {
|
|
609
|
+
return {
|
|
610
|
+
data: _response.body as RevKeen.SubscriptionPreviewRenewalResponse,
|
|
611
|
+
rawResponse: _response.rawResponse,
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (_response.error.reason === "status-code") {
|
|
616
|
+
switch (_response.error.statusCode) {
|
|
617
|
+
case 401:
|
|
618
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
619
|
+
case 404:
|
|
620
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
621
|
+
default:
|
|
622
|
+
throw new errors.RevKeenError({
|
|
623
|
+
statusCode: _response.error.statusCode,
|
|
624
|
+
body: _response.error.body,
|
|
625
|
+
rawResponse: _response.rawResponse,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
return handleNonStatusCodeError(
|
|
631
|
+
_response.error,
|
|
632
|
+
_response.rawResponse,
|
|
633
|
+
"POST",
|
|
634
|
+
"/subscriptions/{id}/preview-renewal",
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Pause an active subscription. While paused:
|
|
640
|
+
* - No new invoices are generated
|
|
641
|
+
* - The subscription status changes to "paused"
|
|
642
|
+
* - The customer retains access until the current period ends (depending on your business logic)
|
|
643
|
+
*
|
|
644
|
+
* **Behavior Options:**
|
|
645
|
+
* - `keep_as_draft`: Invoices are created as drafts (default)
|
|
646
|
+
* - `mark_uncollectible`: Invoices are marked uncollectible
|
|
647
|
+
* - `void`: Invoices are voided
|
|
648
|
+
*
|
|
649
|
+
* Optionally set `resumes_at` to automatically resume at a future date.
|
|
650
|
+
*
|
|
651
|
+
* @param {RevKeen.PauseSubscriptionInput} request
|
|
652
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
653
|
+
*
|
|
654
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
655
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
656
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
657
|
+
*
|
|
658
|
+
* @example
|
|
659
|
+
* await client.subscriptions.pause({
|
|
660
|
+
* id: "id"
|
|
661
|
+
* })
|
|
662
|
+
*/
|
|
663
|
+
public pause(
|
|
664
|
+
request: RevKeen.PauseSubscriptionInput,
|
|
665
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
666
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionPauseResponse> {
|
|
667
|
+
return core.HttpResponsePromise.fromPromise(this.__pause(request, requestOptions));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
private async __pause(
|
|
671
|
+
request: RevKeen.PauseSubscriptionInput,
|
|
672
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
673
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionPauseResponse>> {
|
|
674
|
+
const { id, ..._body } = request;
|
|
675
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
676
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
677
|
+
_authRequest.headers,
|
|
678
|
+
this._options?.headers,
|
|
679
|
+
requestOptions?.headers,
|
|
680
|
+
);
|
|
681
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
682
|
+
url: core.url.join(
|
|
683
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
684
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
685
|
+
environments.RevKeenEnvironment.Default,
|
|
686
|
+
`subscriptions/${core.url.encodePathParam(id)}/pause`,
|
|
687
|
+
),
|
|
688
|
+
method: "POST",
|
|
689
|
+
headers: _headers,
|
|
690
|
+
contentType: "application/json",
|
|
691
|
+
queryParameters: requestOptions?.queryParams,
|
|
692
|
+
requestType: "json",
|
|
693
|
+
body: _body,
|
|
694
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
695
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
696
|
+
abortSignal: requestOptions?.abortSignal,
|
|
697
|
+
fetchFn: this._options?.fetch,
|
|
698
|
+
logging: this._options.logging,
|
|
699
|
+
});
|
|
700
|
+
if (_response.ok) {
|
|
701
|
+
return { data: _response.body as RevKeen.SubscriptionPauseResponse, rawResponse: _response.rawResponse };
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (_response.error.reason === "status-code") {
|
|
705
|
+
switch (_response.error.statusCode) {
|
|
706
|
+
case 400:
|
|
707
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
708
|
+
case 401:
|
|
709
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
710
|
+
case 404:
|
|
711
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
712
|
+
default:
|
|
713
|
+
throw new errors.RevKeenError({
|
|
714
|
+
statusCode: _response.error.statusCode,
|
|
715
|
+
body: _response.error.body,
|
|
716
|
+
rawResponse: _response.rawResponse,
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscriptions/{id}/pause");
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Resume a paused subscription. The subscription status changes back to "active" and normal billing resumes.
|
|
726
|
+
*
|
|
727
|
+
* If the subscription was paused with draft invoices, you may need to manually finalize and send them.
|
|
728
|
+
*
|
|
729
|
+
* @param {RevKeen.SubscriptionsResumeRequest} request
|
|
730
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
731
|
+
*
|
|
732
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
733
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
734
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* await client.subscriptions.resume({
|
|
738
|
+
* id: "id"
|
|
739
|
+
* })
|
|
740
|
+
*/
|
|
741
|
+
public resume(
|
|
742
|
+
request: RevKeen.SubscriptionsResumeRequest,
|
|
743
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
744
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionResumeResponse> {
|
|
745
|
+
return core.HttpResponsePromise.fromPromise(this.__resume(request, requestOptions));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
private async __resume(
|
|
749
|
+
request: RevKeen.SubscriptionsResumeRequest,
|
|
750
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
751
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionResumeResponse>> {
|
|
752
|
+
const { id } = request;
|
|
753
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
754
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
755
|
+
_authRequest.headers,
|
|
756
|
+
this._options?.headers,
|
|
757
|
+
requestOptions?.headers,
|
|
758
|
+
);
|
|
759
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
760
|
+
url: core.url.join(
|
|
761
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
762
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
763
|
+
environments.RevKeenEnvironment.Default,
|
|
764
|
+
`subscriptions/${core.url.encodePathParam(id)}/resume`,
|
|
765
|
+
),
|
|
766
|
+
method: "POST",
|
|
767
|
+
headers: _headers,
|
|
768
|
+
queryParameters: requestOptions?.queryParams,
|
|
769
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
770
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
771
|
+
abortSignal: requestOptions?.abortSignal,
|
|
772
|
+
fetchFn: this._options?.fetch,
|
|
773
|
+
logging: this._options.logging,
|
|
774
|
+
});
|
|
775
|
+
if (_response.ok) {
|
|
776
|
+
return { data: _response.body as RevKeen.SubscriptionResumeResponse, rawResponse: _response.rawResponse };
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
if (_response.error.reason === "status-code") {
|
|
780
|
+
switch (_response.error.statusCode) {
|
|
781
|
+
case 400:
|
|
782
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
783
|
+
case 401:
|
|
784
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
785
|
+
case 404:
|
|
786
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
787
|
+
default:
|
|
788
|
+
throw new errors.RevKeenError({
|
|
789
|
+
statusCode: _response.error.statusCode,
|
|
790
|
+
body: _response.error.body,
|
|
791
|
+
rawResponse: _response.rawResponse,
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscriptions/{id}/resume");
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Cancel a subscription either immediately or at the end of the current billing period.
|
|
801
|
+
*
|
|
802
|
+
* **Modes:**
|
|
803
|
+
* - `immediately`: Status set to "canceled", access revoked now
|
|
804
|
+
* - `period_end`: cancelAtPeriodEnd flag set, access continues until period end
|
|
805
|
+
*
|
|
806
|
+
* @param {RevKeen.CancelSubscriptionInput} request
|
|
807
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
808
|
+
*
|
|
809
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
810
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
811
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
812
|
+
*
|
|
813
|
+
* @example
|
|
814
|
+
* await client.subscriptions.cancelsubscription({
|
|
815
|
+
* id: "id",
|
|
816
|
+
* mode: "immediately"
|
|
817
|
+
* })
|
|
818
|
+
*/
|
|
819
|
+
public cancelsubscription(
|
|
820
|
+
request: RevKeen.CancelSubscriptionInput,
|
|
821
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
822
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionCancelSubscriptionResponse> {
|
|
823
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelsubscription(request, requestOptions));
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
private async __cancelsubscription(
|
|
827
|
+
request: RevKeen.CancelSubscriptionInput,
|
|
828
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
829
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionCancelSubscriptionResponse>> {
|
|
830
|
+
const { id, ..._body } = request;
|
|
831
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
832
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
833
|
+
_authRequest.headers,
|
|
834
|
+
this._options?.headers,
|
|
835
|
+
requestOptions?.headers,
|
|
836
|
+
);
|
|
837
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
838
|
+
url: core.url.join(
|
|
839
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
840
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
841
|
+
environments.RevKeenEnvironment.Default,
|
|
842
|
+
`subscriptions/${core.url.encodePathParam(id)}/cancel`,
|
|
843
|
+
),
|
|
844
|
+
method: "POST",
|
|
845
|
+
headers: _headers,
|
|
846
|
+
contentType: "application/json",
|
|
847
|
+
queryParameters: requestOptions?.queryParams,
|
|
848
|
+
requestType: "json",
|
|
849
|
+
body: _body,
|
|
850
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
851
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
852
|
+
abortSignal: requestOptions?.abortSignal,
|
|
853
|
+
fetchFn: this._options?.fetch,
|
|
854
|
+
logging: this._options.logging,
|
|
855
|
+
});
|
|
856
|
+
if (_response.ok) {
|
|
857
|
+
return {
|
|
858
|
+
data: _response.body as RevKeen.SubscriptionCancelSubscriptionResponse,
|
|
859
|
+
rawResponse: _response.rawResponse,
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
if (_response.error.reason === "status-code") {
|
|
864
|
+
switch (_response.error.statusCode) {
|
|
865
|
+
case 400:
|
|
866
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
867
|
+
case 401:
|
|
868
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
869
|
+
case 404:
|
|
870
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
871
|
+
default:
|
|
872
|
+
throw new errors.RevKeenError({
|
|
873
|
+
statusCode: _response.error.statusCode,
|
|
874
|
+
body: _response.error.body,
|
|
875
|
+
rawResponse: _response.rawResponse,
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscriptions/{id}/cancel");
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Reverse a scheduled cancellation. The subscription must be active with cancelAtPeriodEnd=true.
|
|
885
|
+
* Clears the cancellation flag and the subscription continues as normal.
|
|
886
|
+
*
|
|
887
|
+
* @param {RevKeen.SubscriptionsReactivateRequest} request
|
|
888
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
889
|
+
*
|
|
890
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
891
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
892
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
893
|
+
*
|
|
894
|
+
* @example
|
|
895
|
+
* await client.subscriptions.reactivate({
|
|
896
|
+
* id: "id"
|
|
897
|
+
* })
|
|
898
|
+
*/
|
|
899
|
+
public reactivate(
|
|
900
|
+
request: RevKeen.SubscriptionsReactivateRequest,
|
|
901
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
902
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionReactivateResponse> {
|
|
903
|
+
return core.HttpResponsePromise.fromPromise(this.__reactivate(request, requestOptions));
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
private async __reactivate(
|
|
907
|
+
request: RevKeen.SubscriptionsReactivateRequest,
|
|
908
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
909
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionReactivateResponse>> {
|
|
910
|
+
const { id } = request;
|
|
911
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
912
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
913
|
+
_authRequest.headers,
|
|
914
|
+
this._options?.headers,
|
|
915
|
+
requestOptions?.headers,
|
|
916
|
+
);
|
|
917
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
918
|
+
url: core.url.join(
|
|
919
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
920
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
921
|
+
environments.RevKeenEnvironment.Default,
|
|
922
|
+
`subscriptions/${core.url.encodePathParam(id)}/reactivate`,
|
|
923
|
+
),
|
|
924
|
+
method: "POST",
|
|
925
|
+
headers: _headers,
|
|
926
|
+
queryParameters: requestOptions?.queryParams,
|
|
927
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
928
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
929
|
+
abortSignal: requestOptions?.abortSignal,
|
|
930
|
+
fetchFn: this._options?.fetch,
|
|
931
|
+
logging: this._options.logging,
|
|
932
|
+
});
|
|
933
|
+
if (_response.ok) {
|
|
934
|
+
return {
|
|
935
|
+
data: _response.body as RevKeen.SubscriptionReactivateResponse,
|
|
936
|
+
rawResponse: _response.rawResponse,
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
if (_response.error.reason === "status-code") {
|
|
941
|
+
switch (_response.error.statusCode) {
|
|
942
|
+
case 400:
|
|
943
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
944
|
+
case 401:
|
|
945
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
946
|
+
case 404:
|
|
947
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
948
|
+
default:
|
|
949
|
+
throw new errors.RevKeenError({
|
|
950
|
+
statusCode: _response.error.statusCode,
|
|
951
|
+
body: _response.error.body,
|
|
952
|
+
rawResponse: _response.rawResponse,
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
return handleNonStatusCodeError(
|
|
958
|
+
_response.error,
|
|
959
|
+
_response.rawResponse,
|
|
960
|
+
"POST",
|
|
961
|
+
"/subscriptions/{id}/reactivate",
|
|
962
|
+
);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Retrieve all line items for a specific subscription. Items represent individual products/prices within a multi-product subscription.
|
|
967
|
+
*
|
|
968
|
+
* @param {RevKeen.SubscriptionItemsListRequest} request
|
|
969
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
970
|
+
*
|
|
971
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
972
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
973
|
+
*
|
|
974
|
+
* @example
|
|
975
|
+
* await client.subscriptions.subscriptionItemsList({
|
|
976
|
+
* subscriptionId: "subscriptionId"
|
|
977
|
+
* })
|
|
978
|
+
*/
|
|
979
|
+
public subscriptionItemsList(
|
|
980
|
+
request: RevKeen.SubscriptionItemsListRequest,
|
|
981
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
982
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionItemListResponse> {
|
|
983
|
+
return core.HttpResponsePromise.fromPromise(this.__subscriptionItemsList(request, requestOptions));
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
private async __subscriptionItemsList(
|
|
987
|
+
request: RevKeen.SubscriptionItemsListRequest,
|
|
988
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
989
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionItemListResponse>> {
|
|
990
|
+
const { subscriptionId, limit, offset } = request;
|
|
991
|
+
const _queryParams: Record<string, unknown> = {
|
|
992
|
+
limit,
|
|
993
|
+
offset,
|
|
994
|
+
};
|
|
995
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
996
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
997
|
+
_authRequest.headers,
|
|
998
|
+
this._options?.headers,
|
|
999
|
+
requestOptions?.headers,
|
|
1000
|
+
);
|
|
1001
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
1002
|
+
url: core.url.join(
|
|
1003
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
1004
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1005
|
+
environments.RevKeenEnvironment.Default,
|
|
1006
|
+
`subscriptions/${core.url.encodePathParam(subscriptionId)}/items`,
|
|
1007
|
+
),
|
|
1008
|
+
method: "GET",
|
|
1009
|
+
headers: _headers,
|
|
1010
|
+
queryParameters: { ..._queryParams, ...requestOptions?.queryParams },
|
|
1011
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1012
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1013
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1014
|
+
fetchFn: this._options?.fetch,
|
|
1015
|
+
logging: this._options.logging,
|
|
1016
|
+
});
|
|
1017
|
+
if (_response.ok) {
|
|
1018
|
+
return { data: _response.body as RevKeen.SubscriptionItemListResponse, rawResponse: _response.rawResponse };
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
if (_response.error.reason === "status-code") {
|
|
1022
|
+
switch (_response.error.statusCode) {
|
|
1023
|
+
case 401:
|
|
1024
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
1025
|
+
case 404:
|
|
1026
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
1027
|
+
default:
|
|
1028
|
+
throw new errors.RevKeenError({
|
|
1029
|
+
statusCode: _response.error.statusCode,
|
|
1030
|
+
body: _response.error.body,
|
|
1031
|
+
rawResponse: _response.rawResponse,
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
return handleNonStatusCodeError(
|
|
1037
|
+
_response.error,
|
|
1038
|
+
_response.rawResponse,
|
|
1039
|
+
"GET",
|
|
1040
|
+
"/subscriptions/{subscriptionId}/items",
|
|
1041
|
+
);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Add a new line item to an existing subscription. This is used for multi-product subscriptions where items share the same billing interval.
|
|
1046
|
+
*
|
|
1047
|
+
* @param {RevKeen.CreateSubscriptionItemInput} request
|
|
1048
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1049
|
+
*
|
|
1050
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
1051
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
1052
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* await client.subscriptions.subscriptionItemsCreate({
|
|
1056
|
+
* subscriptionId: "subscriptionId",
|
|
1057
|
+
* currency: "USD",
|
|
1058
|
+
* unit_amount_minor: 2999
|
|
1059
|
+
* })
|
|
1060
|
+
*/
|
|
1061
|
+
public subscriptionItemsCreate(
|
|
1062
|
+
request: RevKeen.CreateSubscriptionItemInput,
|
|
1063
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1064
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionItemCreateResponse> {
|
|
1065
|
+
return core.HttpResponsePromise.fromPromise(this.__subscriptionItemsCreate(request, requestOptions));
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
private async __subscriptionItemsCreate(
|
|
1069
|
+
request: RevKeen.CreateSubscriptionItemInput,
|
|
1070
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1071
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionItemCreateResponse>> {
|
|
1072
|
+
const { subscriptionId, ..._body } = request;
|
|
1073
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
1074
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
1075
|
+
_authRequest.headers,
|
|
1076
|
+
this._options?.headers,
|
|
1077
|
+
requestOptions?.headers,
|
|
1078
|
+
);
|
|
1079
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
1080
|
+
url: core.url.join(
|
|
1081
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
1082
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1083
|
+
environments.RevKeenEnvironment.Default,
|
|
1084
|
+
`subscriptions/${core.url.encodePathParam(subscriptionId)}/items`,
|
|
1085
|
+
),
|
|
1086
|
+
method: "POST",
|
|
1087
|
+
headers: _headers,
|
|
1088
|
+
contentType: "application/json",
|
|
1089
|
+
queryParameters: requestOptions?.queryParams,
|
|
1090
|
+
requestType: "json",
|
|
1091
|
+
body: _body,
|
|
1092
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1093
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1094
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1095
|
+
fetchFn: this._options?.fetch,
|
|
1096
|
+
logging: this._options.logging,
|
|
1097
|
+
});
|
|
1098
|
+
if (_response.ok) {
|
|
1099
|
+
return {
|
|
1100
|
+
data: _response.body as RevKeen.SubscriptionItemCreateResponse,
|
|
1101
|
+
rawResponse: _response.rawResponse,
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
if (_response.error.reason === "status-code") {
|
|
1106
|
+
switch (_response.error.statusCode) {
|
|
1107
|
+
case 400:
|
|
1108
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
1109
|
+
case 401:
|
|
1110
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
1111
|
+
case 404:
|
|
1112
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
1113
|
+
default:
|
|
1114
|
+
throw new errors.RevKeenError({
|
|
1115
|
+
statusCode: _response.error.statusCode,
|
|
1116
|
+
body: _response.error.body,
|
|
1117
|
+
rawResponse: _response.rawResponse,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
return handleNonStatusCodeError(
|
|
1123
|
+
_response.error,
|
|
1124
|
+
_response.rawResponse,
|
|
1125
|
+
"POST",
|
|
1126
|
+
"/subscriptions/{subscriptionId}/items",
|
|
1127
|
+
);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Remove a line item from a subscription. Cannot remove the last item - cancel the subscription instead.
|
|
1132
|
+
*
|
|
1133
|
+
* @param {RevKeen.SubscriptionItemsDeleteRequest} request
|
|
1134
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1135
|
+
*
|
|
1136
|
+
* @throws {@link RevKeen.BadRequestError}
|
|
1137
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
1138
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
1139
|
+
*
|
|
1140
|
+
* @example
|
|
1141
|
+
* await client.subscriptions.subscriptionItemsDelete({
|
|
1142
|
+
* subscriptionId: "subscriptionId",
|
|
1143
|
+
* itemId: "itemId"
|
|
1144
|
+
* })
|
|
1145
|
+
*/
|
|
1146
|
+
public subscriptionItemsDelete(
|
|
1147
|
+
request: RevKeen.SubscriptionItemsDeleteRequest,
|
|
1148
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1149
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionItemDeleteResponse> {
|
|
1150
|
+
return core.HttpResponsePromise.fromPromise(this.__subscriptionItemsDelete(request, requestOptions));
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
private async __subscriptionItemsDelete(
|
|
1154
|
+
request: RevKeen.SubscriptionItemsDeleteRequest,
|
|
1155
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1156
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionItemDeleteResponse>> {
|
|
1157
|
+
const { subscriptionId, itemId } = request;
|
|
1158
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
1159
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
1160
|
+
_authRequest.headers,
|
|
1161
|
+
this._options?.headers,
|
|
1162
|
+
requestOptions?.headers,
|
|
1163
|
+
);
|
|
1164
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
1165
|
+
url: core.url.join(
|
|
1166
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
1167
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1168
|
+
environments.RevKeenEnvironment.Default,
|
|
1169
|
+
`subscriptions/${core.url.encodePathParam(subscriptionId)}/items/${core.url.encodePathParam(itemId)}`,
|
|
1170
|
+
),
|
|
1171
|
+
method: "DELETE",
|
|
1172
|
+
headers: _headers,
|
|
1173
|
+
queryParameters: requestOptions?.queryParams,
|
|
1174
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1175
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1176
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1177
|
+
fetchFn: this._options?.fetch,
|
|
1178
|
+
logging: this._options.logging,
|
|
1179
|
+
});
|
|
1180
|
+
if (_response.ok) {
|
|
1181
|
+
return {
|
|
1182
|
+
data: _response.body as RevKeen.SubscriptionItemDeleteResponse,
|
|
1183
|
+
rawResponse: _response.rawResponse,
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (_response.error.reason === "status-code") {
|
|
1188
|
+
switch (_response.error.statusCode) {
|
|
1189
|
+
case 400:
|
|
1190
|
+
throw new RevKeen.BadRequestError(_response.error.body as unknown, _response.rawResponse);
|
|
1191
|
+
case 401:
|
|
1192
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
1193
|
+
case 404:
|
|
1194
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
1195
|
+
default:
|
|
1196
|
+
throw new errors.RevKeenError({
|
|
1197
|
+
statusCode: _response.error.statusCode,
|
|
1198
|
+
body: _response.error.body,
|
|
1199
|
+
rawResponse: _response.rawResponse,
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
return handleNonStatusCodeError(
|
|
1205
|
+
_response.error,
|
|
1206
|
+
_response.rawResponse,
|
|
1207
|
+
"DELETE",
|
|
1208
|
+
"/subscriptions/{subscriptionId}/items/{itemId}",
|
|
1209
|
+
);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Update a subscription item's quantity, description, price, or fulfillment type.
|
|
1214
|
+
*
|
|
1215
|
+
* @param {RevKeen.UpdateSubscriptionItemInput} request
|
|
1216
|
+
* @param {SubscriptionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1217
|
+
*
|
|
1218
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
1219
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
1220
|
+
*
|
|
1221
|
+
* @example
|
|
1222
|
+
* await client.subscriptions.subscriptionItemsUpdate({
|
|
1223
|
+
* subscriptionId: "subscriptionId",
|
|
1224
|
+
* itemId: "itemId"
|
|
1225
|
+
* })
|
|
1226
|
+
*/
|
|
1227
|
+
public subscriptionItemsUpdate(
|
|
1228
|
+
request: RevKeen.UpdateSubscriptionItemInput,
|
|
1229
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1230
|
+
): core.HttpResponsePromise<RevKeen.SubscriptionItemUpdateResponse> {
|
|
1231
|
+
return core.HttpResponsePromise.fromPromise(this.__subscriptionItemsUpdate(request, requestOptions));
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
private async __subscriptionItemsUpdate(
|
|
1235
|
+
request: RevKeen.UpdateSubscriptionItemInput,
|
|
1236
|
+
requestOptions?: SubscriptionsClient.RequestOptions,
|
|
1237
|
+
): Promise<core.WithRawResponse<RevKeen.SubscriptionItemUpdateResponse>> {
|
|
1238
|
+
const { subscriptionId, itemId, ..._body } = request;
|
|
1239
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
1240
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
1241
|
+
_authRequest.headers,
|
|
1242
|
+
this._options?.headers,
|
|
1243
|
+
requestOptions?.headers,
|
|
1244
|
+
);
|
|
1245
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
1246
|
+
url: core.url.join(
|
|
1247
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
1248
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1249
|
+
environments.RevKeenEnvironment.Default,
|
|
1250
|
+
`subscriptions/${core.url.encodePathParam(subscriptionId)}/items/${core.url.encodePathParam(itemId)}`,
|
|
1251
|
+
),
|
|
1252
|
+
method: "PATCH",
|
|
1253
|
+
headers: _headers,
|
|
1254
|
+
contentType: "application/json",
|
|
1255
|
+
queryParameters: requestOptions?.queryParams,
|
|
1256
|
+
requestType: "json",
|
|
1257
|
+
body: _body,
|
|
1258
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1259
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1260
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1261
|
+
fetchFn: this._options?.fetch,
|
|
1262
|
+
logging: this._options.logging,
|
|
1263
|
+
});
|
|
1264
|
+
if (_response.ok) {
|
|
1265
|
+
return {
|
|
1266
|
+
data: _response.body as RevKeen.SubscriptionItemUpdateResponse,
|
|
1267
|
+
rawResponse: _response.rawResponse,
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
if (_response.error.reason === "status-code") {
|
|
1272
|
+
switch (_response.error.statusCode) {
|
|
1273
|
+
case 401:
|
|
1274
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
1275
|
+
case 404:
|
|
1276
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
1277
|
+
default:
|
|
1278
|
+
throw new errors.RevKeenError({
|
|
1279
|
+
statusCode: _response.error.statusCode,
|
|
1280
|
+
body: _response.error.body,
|
|
1281
|
+
rawResponse: _response.rawResponse,
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
return handleNonStatusCodeError(
|
|
1287
|
+
_response.error,
|
|
1288
|
+
_response.rawResponse,
|
|
1289
|
+
"PATCH",
|
|
1290
|
+
"/subscriptions/{subscriptionId}/items/{itemId}",
|
|
1291
|
+
);
|
|
1292
|
+
}
|
|
1293
|
+
}
|