@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,391 @@
|
|
|
1
|
+
import { toJson } from "../json.js";
|
|
2
|
+
import { createLogger, type LogConfig, type Logger } from "../logging/logger.js";
|
|
3
|
+
import type { APIResponse } from "./APIResponse.js";
|
|
4
|
+
import { createRequestUrl } from "./createRequestUrl.js";
|
|
5
|
+
import type { EndpointMetadata } from "./EndpointMetadata.js";
|
|
6
|
+
import { EndpointSupplier } from "./EndpointSupplier.js";
|
|
7
|
+
import { getErrorResponseBody } from "./getErrorResponseBody.js";
|
|
8
|
+
import { getFetchFn } from "./getFetchFn.js";
|
|
9
|
+
import { getRequestBody } from "./getRequestBody.js";
|
|
10
|
+
import { getResponseBody } from "./getResponseBody.js";
|
|
11
|
+
import { Headers } from "./Headers.js";
|
|
12
|
+
import { makeRequest } from "./makeRequest.js";
|
|
13
|
+
import { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.js";
|
|
14
|
+
import { requestWithRetries } from "./requestWithRetries.js";
|
|
15
|
+
|
|
16
|
+
export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
|
|
17
|
+
|
|
18
|
+
export declare namespace Fetcher {
|
|
19
|
+
export interface Args {
|
|
20
|
+
url: string;
|
|
21
|
+
method: string;
|
|
22
|
+
contentType?: string;
|
|
23
|
+
headers?: Record<string, unknown>;
|
|
24
|
+
queryParameters?: Record<string, unknown>;
|
|
25
|
+
body?: unknown;
|
|
26
|
+
timeoutMs?: number;
|
|
27
|
+
maxRetries?: number;
|
|
28
|
+
withCredentials?: boolean;
|
|
29
|
+
abortSignal?: AbortSignal;
|
|
30
|
+
requestType?: "json" | "file" | "bytes" | "form" | "other";
|
|
31
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer" | "binary-response";
|
|
32
|
+
duplex?: "half";
|
|
33
|
+
endpointMetadata?: EndpointMetadata;
|
|
34
|
+
fetchFn?: typeof fetch;
|
|
35
|
+
logging?: LogConfig | Logger;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Error = FailedStatusCodeError | NonJsonError | BodyIsNullError | TimeoutError | UnknownError;
|
|
39
|
+
|
|
40
|
+
export interface FailedStatusCodeError {
|
|
41
|
+
reason: "status-code";
|
|
42
|
+
statusCode: number;
|
|
43
|
+
body: unknown;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface NonJsonError {
|
|
47
|
+
reason: "non-json";
|
|
48
|
+
statusCode: number;
|
|
49
|
+
rawBody: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface BodyIsNullError {
|
|
53
|
+
reason: "body-is-null";
|
|
54
|
+
statusCode: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface TimeoutError {
|
|
58
|
+
reason: "timeout";
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface UnknownError {
|
|
62
|
+
reason: "unknown";
|
|
63
|
+
errorMessage: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const SENSITIVE_HEADERS = new Set([
|
|
68
|
+
"authorization",
|
|
69
|
+
"www-authenticate",
|
|
70
|
+
"x-api-key",
|
|
71
|
+
"api-key",
|
|
72
|
+
"apikey",
|
|
73
|
+
"x-api-token",
|
|
74
|
+
"x-auth-token",
|
|
75
|
+
"auth-token",
|
|
76
|
+
"cookie",
|
|
77
|
+
"set-cookie",
|
|
78
|
+
"proxy-authorization",
|
|
79
|
+
"proxy-authenticate",
|
|
80
|
+
"x-csrf-token",
|
|
81
|
+
"x-xsrf-token",
|
|
82
|
+
"x-session-token",
|
|
83
|
+
"x-access-token",
|
|
84
|
+
]);
|
|
85
|
+
|
|
86
|
+
function redactHeaders(headers: Headers | Record<string, string>): Record<string, string> {
|
|
87
|
+
const filtered: Record<string, string> = {};
|
|
88
|
+
for (const [key, value] of headers instanceof Headers ? headers.entries() : Object.entries(headers)) {
|
|
89
|
+
if (SENSITIVE_HEADERS.has(key.toLowerCase())) {
|
|
90
|
+
filtered[key] = "[REDACTED]";
|
|
91
|
+
} else {
|
|
92
|
+
filtered[key] = value;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return filtered;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const SENSITIVE_QUERY_PARAMS = new Set([
|
|
99
|
+
"api_key",
|
|
100
|
+
"api-key",
|
|
101
|
+
"apikey",
|
|
102
|
+
"token",
|
|
103
|
+
"access_token",
|
|
104
|
+
"access-token",
|
|
105
|
+
"auth_token",
|
|
106
|
+
"auth-token",
|
|
107
|
+
"password",
|
|
108
|
+
"passwd",
|
|
109
|
+
"secret",
|
|
110
|
+
"api_secret",
|
|
111
|
+
"api-secret",
|
|
112
|
+
"apisecret",
|
|
113
|
+
"key",
|
|
114
|
+
"session",
|
|
115
|
+
"session_id",
|
|
116
|
+
"session-id",
|
|
117
|
+
]);
|
|
118
|
+
|
|
119
|
+
function redactQueryParameters(queryParameters?: Record<string, unknown>): Record<string, unknown> | undefined {
|
|
120
|
+
if (queryParameters == null) {
|
|
121
|
+
return queryParameters;
|
|
122
|
+
}
|
|
123
|
+
const redacted: Record<string, unknown> = {};
|
|
124
|
+
for (const [key, value] of Object.entries(queryParameters)) {
|
|
125
|
+
if (SENSITIVE_QUERY_PARAMS.has(key.toLowerCase())) {
|
|
126
|
+
redacted[key] = "[REDACTED]";
|
|
127
|
+
} else {
|
|
128
|
+
redacted[key] = value;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return redacted;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function redactUrl(url: string): string {
|
|
135
|
+
const protocolIndex = url.indexOf("://");
|
|
136
|
+
if (protocolIndex === -1) return url;
|
|
137
|
+
|
|
138
|
+
const afterProtocol = protocolIndex + 3;
|
|
139
|
+
|
|
140
|
+
// Find the first delimiter that marks the end of the authority section
|
|
141
|
+
const pathStart = url.indexOf("/", afterProtocol);
|
|
142
|
+
let queryStart = url.indexOf("?", afterProtocol);
|
|
143
|
+
let fragmentStart = url.indexOf("#", afterProtocol);
|
|
144
|
+
|
|
145
|
+
const firstDelimiter = Math.min(
|
|
146
|
+
pathStart === -1 ? url.length : pathStart,
|
|
147
|
+
queryStart === -1 ? url.length : queryStart,
|
|
148
|
+
fragmentStart === -1 ? url.length : fragmentStart,
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
// Find the LAST @ before the delimiter (handles multiple @ in credentials)
|
|
152
|
+
let atIndex = -1;
|
|
153
|
+
for (let i = afterProtocol; i < firstDelimiter; i++) {
|
|
154
|
+
if (url[i] === "@") {
|
|
155
|
+
atIndex = i;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (atIndex !== -1) {
|
|
160
|
+
url = `${url.slice(0, afterProtocol)}[REDACTED]@${url.slice(atIndex + 1)}`;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Recalculate queryStart since url might have changed
|
|
164
|
+
queryStart = url.indexOf("?");
|
|
165
|
+
if (queryStart === -1) return url;
|
|
166
|
+
|
|
167
|
+
fragmentStart = url.indexOf("#", queryStart);
|
|
168
|
+
const queryEnd = fragmentStart !== -1 ? fragmentStart : url.length;
|
|
169
|
+
const queryString = url.slice(queryStart + 1, queryEnd);
|
|
170
|
+
|
|
171
|
+
if (queryString.length === 0) return url;
|
|
172
|
+
|
|
173
|
+
// FAST PATH: Quick check if any sensitive keywords present
|
|
174
|
+
// Using indexOf is faster than regex for simple substring matching
|
|
175
|
+
const lower = queryString.toLowerCase();
|
|
176
|
+
const hasSensitive =
|
|
177
|
+
lower.includes("token") ||
|
|
178
|
+
lower.includes("key") ||
|
|
179
|
+
lower.includes("password") ||
|
|
180
|
+
lower.includes("passwd") ||
|
|
181
|
+
lower.includes("secret") ||
|
|
182
|
+
lower.includes("session") ||
|
|
183
|
+
lower.includes("auth");
|
|
184
|
+
|
|
185
|
+
if (!hasSensitive) {
|
|
186
|
+
return url;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// SLOW PATH: Parse and redact
|
|
190
|
+
const redactedParams: string[] = [];
|
|
191
|
+
const params = queryString.split("&");
|
|
192
|
+
|
|
193
|
+
for (const param of params) {
|
|
194
|
+
const equalIndex = param.indexOf("=");
|
|
195
|
+
if (equalIndex === -1) {
|
|
196
|
+
redactedParams.push(param);
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const key = param.slice(0, equalIndex);
|
|
201
|
+
let shouldRedact = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase());
|
|
202
|
+
|
|
203
|
+
if (!shouldRedact && key.includes("%")) {
|
|
204
|
+
try {
|
|
205
|
+
const decodedKey = decodeURIComponent(key);
|
|
206
|
+
shouldRedact = SENSITIVE_QUERY_PARAMS.has(decodedKey.toLowerCase());
|
|
207
|
+
} catch {}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
redactedParams.push(shouldRedact ? `${key}=[REDACTED]` : param);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return url.slice(0, queryStart + 1) + redactedParams.join("&") + url.slice(queryEnd);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
async function getHeaders(args: Fetcher.Args): Promise<Headers> {
|
|
217
|
+
const newHeaders: Headers = new Headers();
|
|
218
|
+
|
|
219
|
+
newHeaders.set(
|
|
220
|
+
"Accept",
|
|
221
|
+
args.responseType === "json" ? "application/json" : args.responseType === "text" ? "text/plain" : "*/*",
|
|
222
|
+
);
|
|
223
|
+
if (args.body !== undefined && args.contentType != null) {
|
|
224
|
+
newHeaders.set("Content-Type", args.contentType);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (args.headers == null) {
|
|
228
|
+
return newHeaders;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
for (const [key, value] of Object.entries(args.headers)) {
|
|
232
|
+
const result = await EndpointSupplier.get(value, { endpointMetadata: args.endpointMetadata ?? {} });
|
|
233
|
+
if (typeof result === "string") {
|
|
234
|
+
newHeaders.set(key, result);
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
if (result == null) {
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
newHeaders.set(key, `${result}`);
|
|
241
|
+
}
|
|
242
|
+
return newHeaders;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>> {
|
|
246
|
+
const url = createRequestUrl(args.url, args.queryParameters);
|
|
247
|
+
const requestBody: BodyInit | undefined = await getRequestBody({
|
|
248
|
+
body: args.body,
|
|
249
|
+
type: args.requestType ?? "other",
|
|
250
|
+
});
|
|
251
|
+
const fetchFn = args.fetchFn ?? (await getFetchFn());
|
|
252
|
+
const headers = await getHeaders(args);
|
|
253
|
+
const logger = createLogger(args.logging);
|
|
254
|
+
|
|
255
|
+
if (logger.isDebug()) {
|
|
256
|
+
const metadata = {
|
|
257
|
+
method: args.method,
|
|
258
|
+
url: redactUrl(url),
|
|
259
|
+
headers: redactHeaders(headers),
|
|
260
|
+
queryParameters: redactQueryParameters(args.queryParameters),
|
|
261
|
+
hasBody: requestBody != null,
|
|
262
|
+
};
|
|
263
|
+
logger.debug("Making HTTP request", metadata);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
try {
|
|
267
|
+
const response = await requestWithRetries(
|
|
268
|
+
async () =>
|
|
269
|
+
makeRequest(
|
|
270
|
+
fetchFn,
|
|
271
|
+
url,
|
|
272
|
+
args.method,
|
|
273
|
+
headers,
|
|
274
|
+
requestBody,
|
|
275
|
+
args.timeoutMs,
|
|
276
|
+
args.abortSignal,
|
|
277
|
+
args.withCredentials,
|
|
278
|
+
args.duplex,
|
|
279
|
+
),
|
|
280
|
+
args.maxRetries,
|
|
281
|
+
);
|
|
282
|
+
|
|
283
|
+
if (response.status >= 200 && response.status < 400) {
|
|
284
|
+
if (logger.isDebug()) {
|
|
285
|
+
const metadata = {
|
|
286
|
+
method: args.method,
|
|
287
|
+
url: redactUrl(url),
|
|
288
|
+
statusCode: response.status,
|
|
289
|
+
responseHeaders: redactHeaders(response.headers),
|
|
290
|
+
};
|
|
291
|
+
logger.debug("HTTP request succeeded", metadata);
|
|
292
|
+
}
|
|
293
|
+
const body = await getResponseBody(response, args.responseType);
|
|
294
|
+
return {
|
|
295
|
+
ok: true,
|
|
296
|
+
body: body as R,
|
|
297
|
+
headers: response.headers,
|
|
298
|
+
rawResponse: toRawResponse(response),
|
|
299
|
+
};
|
|
300
|
+
} else {
|
|
301
|
+
if (logger.isError()) {
|
|
302
|
+
const metadata = {
|
|
303
|
+
method: args.method,
|
|
304
|
+
url: redactUrl(url),
|
|
305
|
+
statusCode: response.status,
|
|
306
|
+
responseHeaders: redactHeaders(Object.fromEntries(response.headers.entries())),
|
|
307
|
+
};
|
|
308
|
+
logger.error("HTTP request failed with error status", metadata);
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
ok: false,
|
|
312
|
+
error: {
|
|
313
|
+
reason: "status-code",
|
|
314
|
+
statusCode: response.status,
|
|
315
|
+
body: await getErrorResponseBody(response),
|
|
316
|
+
},
|
|
317
|
+
rawResponse: toRawResponse(response),
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
} catch (error) {
|
|
321
|
+
if (args.abortSignal?.aborted) {
|
|
322
|
+
if (logger.isError()) {
|
|
323
|
+
const metadata = {
|
|
324
|
+
method: args.method,
|
|
325
|
+
url: redactUrl(url),
|
|
326
|
+
};
|
|
327
|
+
logger.error("HTTP request was aborted", metadata);
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
ok: false,
|
|
331
|
+
error: {
|
|
332
|
+
reason: "unknown",
|
|
333
|
+
errorMessage: "The user aborted a request",
|
|
334
|
+
},
|
|
335
|
+
rawResponse: abortRawResponse,
|
|
336
|
+
};
|
|
337
|
+
} else if (error instanceof Error && error.name === "AbortError") {
|
|
338
|
+
if (logger.isError()) {
|
|
339
|
+
const metadata = {
|
|
340
|
+
method: args.method,
|
|
341
|
+
url: redactUrl(url),
|
|
342
|
+
timeoutMs: args.timeoutMs,
|
|
343
|
+
};
|
|
344
|
+
logger.error("HTTP request timed out", metadata);
|
|
345
|
+
}
|
|
346
|
+
return {
|
|
347
|
+
ok: false,
|
|
348
|
+
error: {
|
|
349
|
+
reason: "timeout",
|
|
350
|
+
},
|
|
351
|
+
rawResponse: abortRawResponse,
|
|
352
|
+
};
|
|
353
|
+
} else if (error instanceof Error) {
|
|
354
|
+
if (logger.isError()) {
|
|
355
|
+
const metadata = {
|
|
356
|
+
method: args.method,
|
|
357
|
+
url: redactUrl(url),
|
|
358
|
+
errorMessage: error.message,
|
|
359
|
+
};
|
|
360
|
+
logger.error("HTTP request failed with error", metadata);
|
|
361
|
+
}
|
|
362
|
+
return {
|
|
363
|
+
ok: false,
|
|
364
|
+
error: {
|
|
365
|
+
reason: "unknown",
|
|
366
|
+
errorMessage: error.message,
|
|
367
|
+
},
|
|
368
|
+
rawResponse: unknownRawResponse,
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (logger.isError()) {
|
|
373
|
+
const metadata = {
|
|
374
|
+
method: args.method,
|
|
375
|
+
url: redactUrl(url),
|
|
376
|
+
error: toJson(error),
|
|
377
|
+
};
|
|
378
|
+
logger.error("HTTP request failed with unknown error", metadata);
|
|
379
|
+
}
|
|
380
|
+
return {
|
|
381
|
+
ok: false,
|
|
382
|
+
error: {
|
|
383
|
+
reason: "unknown",
|
|
384
|
+
errorMessage: toJson(error),
|
|
385
|
+
},
|
|
386
|
+
rawResponse: unknownRawResponse,
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export const fetcher: FetchFunction = fetcherImpl;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
let Headers;
|
|
2
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
3
|
+
Headers = globalThis.Headers;
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
Headers = class Headers {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
this.headers = new Map();
|
|
9
|
+
if (init) {
|
|
10
|
+
if (init instanceof Headers) {
|
|
11
|
+
init.forEach((value, key) => this.append(key, value));
|
|
12
|
+
}
|
|
13
|
+
else if (Array.isArray(init)) {
|
|
14
|
+
for (const [key, value] of init) {
|
|
15
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
16
|
+
this.append(key, value);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
for (const [key, value] of Object.entries(init)) {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
this.append(key, value);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new TypeError("Header values must be strings");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
append(name, value) {
|
|
36
|
+
const key = name.toLowerCase();
|
|
37
|
+
const existing = this.headers.get(key) || [];
|
|
38
|
+
this.headers.set(key, [...existing, value]);
|
|
39
|
+
}
|
|
40
|
+
delete(name) {
|
|
41
|
+
const key = name.toLowerCase();
|
|
42
|
+
this.headers.delete(key);
|
|
43
|
+
}
|
|
44
|
+
get(name) {
|
|
45
|
+
const key = name.toLowerCase();
|
|
46
|
+
const values = this.headers.get(key);
|
|
47
|
+
return values ? values.join(", ") : null;
|
|
48
|
+
}
|
|
49
|
+
has(name) {
|
|
50
|
+
const key = name.toLowerCase();
|
|
51
|
+
return this.headers.has(key);
|
|
52
|
+
}
|
|
53
|
+
set(name, value) {
|
|
54
|
+
const key = name.toLowerCase();
|
|
55
|
+
this.headers.set(key, [value]);
|
|
56
|
+
}
|
|
57
|
+
forEach(callbackfn, thisArg) {
|
|
58
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
59
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
60
|
+
}
|
|
61
|
+
getSetCookie() {
|
|
62
|
+
return this.headers.get("set-cookie") || [];
|
|
63
|
+
}
|
|
64
|
+
*entries() {
|
|
65
|
+
for (const [key, values] of this.headers.entries()) {
|
|
66
|
+
yield [key, values.join(", ")];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
*keys() {
|
|
70
|
+
yield* this.headers.keys();
|
|
71
|
+
}
|
|
72
|
+
*values() {
|
|
73
|
+
for (const values of this.headers.values()) {
|
|
74
|
+
yield values.join(", ");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
[Symbol.iterator]() {
|
|
78
|
+
return this.entries();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export { Headers };
|
|
83
|
+
//# sourceMappingURL=Headers.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
let Headers: typeof globalThis.Headers;
|
|
2
|
+
|
|
3
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
4
|
+
Headers = globalThis.Headers;
|
|
5
|
+
} else {
|
|
6
|
+
Headers = class Headers implements Headers {
|
|
7
|
+
private headers: Map<string, string[]>;
|
|
8
|
+
|
|
9
|
+
constructor(init?: HeadersInit) {
|
|
10
|
+
this.headers = new Map();
|
|
11
|
+
|
|
12
|
+
if (init) {
|
|
13
|
+
if (init instanceof Headers) {
|
|
14
|
+
init.forEach((value, key) => this.append(key, value));
|
|
15
|
+
} else if (Array.isArray(init)) {
|
|
16
|
+
for (const [key, value] of init) {
|
|
17
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
18
|
+
this.append(key, value);
|
|
19
|
+
} else {
|
|
20
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
for (const [key, value] of Object.entries(init)) {
|
|
25
|
+
if (typeof value === "string") {
|
|
26
|
+
this.append(key, value);
|
|
27
|
+
} else {
|
|
28
|
+
throw new TypeError("Header values must be strings");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
append(name: string, value: string): void {
|
|
36
|
+
const key = name.toLowerCase();
|
|
37
|
+
const existing = this.headers.get(key) || [];
|
|
38
|
+
this.headers.set(key, [...existing, value]);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
delete(name: string): void {
|
|
42
|
+
const key = name.toLowerCase();
|
|
43
|
+
this.headers.delete(key);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get(name: string): string | null {
|
|
47
|
+
const key = name.toLowerCase();
|
|
48
|
+
const values = this.headers.get(key);
|
|
49
|
+
return values ? values.join(", ") : null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
has(name: string): boolean {
|
|
53
|
+
const key = name.toLowerCase();
|
|
54
|
+
return this.headers.has(key);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
set(name: string, value: string): void {
|
|
58
|
+
const key = name.toLowerCase();
|
|
59
|
+
this.headers.set(key, [value]);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: unknown): void {
|
|
63
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
64
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
getSetCookie(): string[] {
|
|
68
|
+
return this.headers.get("set-cookie") || [];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
*entries(): HeadersIterator<[string, string]> {
|
|
72
|
+
for (const [key, values] of this.headers.entries()) {
|
|
73
|
+
yield [key, values.join(", ")];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
*keys(): HeadersIterator<string> {
|
|
78
|
+
yield* this.headers.keys();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
*values(): HeadersIterator<string> {
|
|
82
|
+
for (const values of this.headers.values()) {
|
|
83
|
+
yield values.join(", ");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[Symbol.iterator](): HeadersIterator<[string, string]> {
|
|
88
|
+
return this.entries();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { Headers };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { WithRawResponse } from "./RawResponse.js";
|
|
2
|
+
/**
|
|
3
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
4
|
+
*/
|
|
5
|
+
export declare class HttpResponsePromise<T> extends Promise<T> {
|
|
6
|
+
private innerPromise;
|
|
7
|
+
private unwrappedPromise;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
11
|
+
*
|
|
12
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
13
|
+
* @param args - Arguments to pass to the function.
|
|
14
|
+
* @returns An `HttpResponsePromise` instance.
|
|
15
|
+
*/
|
|
16
|
+
static fromFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T>(fn: F, ...args: Parameters<F>): HttpResponsePromise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
19
|
+
*
|
|
20
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
21
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
22
|
+
*/
|
|
23
|
+
static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
26
|
+
*
|
|
27
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
28
|
+
* @returns An `HttpResponsePromise` instance.
|
|
29
|
+
*/
|
|
30
|
+
static fromPromise<T>(promise: Promise<WithRawResponse<T>>): HttpResponsePromise<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
33
|
+
*
|
|
34
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
35
|
+
* @returns An `HttpResponsePromise` instance.
|
|
36
|
+
*/
|
|
37
|
+
static fromExecutor<T>(executor: (resolve: (value: WithRawResponse<T>) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise<T>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
40
|
+
*
|
|
41
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
42
|
+
* @returns An `HttpResponsePromise` instance.
|
|
43
|
+
*/
|
|
44
|
+
static fromResult<T>(result: WithRawResponse<T>): HttpResponsePromise<T>;
|
|
45
|
+
private unwrap;
|
|
46
|
+
/** @inheritdoc */
|
|
47
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
48
|
+
/** @inheritdoc */
|
|
49
|
+
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
50
|
+
/** @inheritdoc */
|
|
51
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the data and raw response.
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
56
|
+
*/
|
|
57
|
+
withRawResponse(): Promise<WithRawResponse<T>>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=HttpResponsePromise.d.ts.map
|