@revkeen/sdk 1.20260414.869 → 1.20260414.883
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/README.md +137 -0
- package/dist/auth.d.mts +17 -0
- package/dist/auth.d.ts +17 -0
- package/dist/auth.js +111 -0
- package/dist/auth.js.map +1 -0
- package/dist/auth.mjs +7 -0
- package/dist/auth.mjs.map +1 -0
- package/dist/chunk-R2LGIZGP.mjs +179 -0
- package/dist/chunk-R2LGIZGP.mjs.map +1 -0
- package/dist/chunk-VKMDZSYJ.mjs +102 -0
- package/dist/chunk-VKMDZSYJ.mjs.map +1 -0
- package/dist/index.d.mts +9593 -0
- package/dist/index.d.ts +9593 -0
- package/dist/index.js +1946 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1588 -0
- package/dist/index.mjs.map +1 -0
- package/{webhooks.js → dist/webhooks.d.mts} +86 -154
- package/{webhooks.d.ts → dist/webhooks.d.ts} +14 -14
- package/dist/webhooks.js +209 -0
- package/dist/webhooks.js.map +1 -0
- package/dist/webhooks.mjs +21 -0
- package/dist/webhooks.mjs.map +1 -0
- package/package.json +36 -33
- package/BaseClient.d.ts +0 -41
- package/BaseClient.js +0 -29
- package/BaseClient.ts +0 -83
- package/Client.d.ts +0 -114
- package/Client.js +0 -144
- package/Client.ts +0 -222
- package/api/errors/BadRequestError.d.ts +0 -6
- package/api/errors/BadRequestError.js +0 -18
- package/api/errors/BadRequestError.ts +0 -21
- package/api/errors/ConflictError.d.ts +0 -6
- package/api/errors/ConflictError.js +0 -18
- package/api/errors/ConflictError.ts +0 -21
- package/api/errors/ForbiddenError.d.ts +0 -6
- package/api/errors/ForbiddenError.js +0 -18
- package/api/errors/ForbiddenError.ts +0 -21
- package/api/errors/InternalServerError.d.ts +0 -6
- package/api/errors/InternalServerError.js +0 -18
- package/api/errors/InternalServerError.ts +0 -21
- package/api/errors/NotFoundError.d.ts +0 -6
- package/api/errors/NotFoundError.js +0 -18
- package/api/errors/NotFoundError.ts +0 -21
- package/api/errors/UnauthorizedError.d.ts +0 -6
- package/api/errors/UnauthorizedError.js +0 -18
- package/api/errors/UnauthorizedError.ts +0 -21
- package/api/errors/UnprocessableEntityError.d.ts +0 -6
- package/api/errors/UnprocessableEntityError.js +0 -18
- package/api/errors/UnprocessableEntityError.ts +0 -21
- package/api/errors/index.d.ts +0 -8
- package/api/errors/index.js +0 -8
- package/api/errors/index.ts +0 -7
- package/api/index.d.ts +0 -4
- package/api/index.js +0 -4
- package/api/index.ts +0 -3
- package/api/resources/analytics/client/Client.d.ts +0 -176
- package/api/resources/analytics/client/Client.js +0 -619
- package/api/resources/analytics/client/Client.ts +0 -866
- package/api/resources/analytics/client/index.d.ts +0 -2
- package/api/resources/analytics/client/index.js +0 -2
- package/api/resources/analytics/client/index.ts +0 -1
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.d.ts +0 -14
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentGetSummaryRequest.ts +0 -15
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.d.ts +0 -16
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCheckoutAbandonmentListRequest.ts +0 -18
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.d.ts +0 -14
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCheckoutGetFunnelRequest.ts +0 -15
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.d.ts +0 -18
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCheckoutWinbackListRequest.ts +0 -20
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.d.ts +0 -14
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCollectionsGetDsoRequest.ts +0 -15
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.d.ts +0 -11
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCustomersGetLtvRequest.ts +0 -12
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.d.ts +0 -11
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsCustomersRetrieveRequest.ts +0 -12
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.d.ts +0 -11
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsInvoicesGetArAgingRequest.ts +0 -12
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.d.ts +0 -14
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsPaymentLinksGetConversionRequest.ts +0 -15
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.d.ts +0 -11
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetMrrSummaryRequest.ts +0 -12
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.d.ts +0 -17
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.js +0 -3
- package/api/resources/analytics/client/requests/AnalyticsRevenueGetTimeSeriesRequest.ts +0 -19
- package/api/resources/analytics/client/requests/index.d.ts +0 -12
- package/api/resources/analytics/client/requests/index.js +0 -2
- package/api/resources/analytics/client/requests/index.ts +0 -11
- package/api/resources/analytics/index.d.ts +0 -3
- package/api/resources/analytics/index.js +0 -3
- package/api/resources/analytics/index.ts +0 -2
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.d.ts +0 -22
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentGetSummaryResponse.ts +0 -25
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.d.ts +0 -9
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.js +0 -9
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestSeverity.ts +0 -11
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.d.ts +0 -9
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.js +0 -9
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListRequestStatus.ts +0 -11
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.d.ts +0 -31
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCheckoutAbandonmentListResponse.ts +0 -34
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.d.ts +0 -25
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCheckoutGetFunnelResponse.ts +0 -28
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.d.ts +0 -23
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackGetSummaryResponse.ts +0 -26
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.d.ts +0 -10
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.js +0 -10
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestStatus.ts +0 -12
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.d.ts +0 -8
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.js +0 -8
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListRequestType.ts +0 -10
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.d.ts +0 -45
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.js +0 -23
- package/api/resources/analytics/types/AnalyticsCheckoutWinbackListResponse.ts +0 -49
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.d.ts +0 -16
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.js +0 -10
- package/api/resources/analytics/types/AnalyticsCollectionsGetDsoResponse.ts +0 -18
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.d.ts +0 -19
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCustomersGetLtvResponse.ts +0 -22
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.d.ts +0 -10
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsCustomersRetrieveResponse.ts +0 -11
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.d.ts +0 -17
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsInvoicesGetArAgingResponse.ts +0 -20
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.d.ts +0 -9
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsPaymentLinksGetConversionResponse.ts +0 -10
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.d.ts +0 -11
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsRevenueGetMrrSummaryResponse.ts +0 -12
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.d.ts +0 -10
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.js +0 -10
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesRequestGranularity.ts +0 -12
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.d.ts +0 -19
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.js +0 -3
- package/api/resources/analytics/types/AnalyticsRevenueGetTimeSeriesResponse.ts +0 -22
- package/api/resources/analytics/types/index.d.ts +0 -18
- package/api/resources/analytics/types/index.js +0 -18
- package/api/resources/analytics/types/index.ts +0 -17
- package/api/resources/billing/client/Client.d.ts +0 -61
- package/api/resources/billing/client/Client.js +0 -156
- package/api/resources/billing/client/Client.ts +0 -213
- package/api/resources/billing/client/index.d.ts +0 -2
- package/api/resources/billing/client/index.js +0 -2
- package/api/resources/billing/client/index.ts +0 -1
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.d.ts +0 -50
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.js +0 -27
- package/api/resources/billing/client/requests/BillingGeneratePreviewRequest.ts +0 -52
- package/api/resources/billing/client/requests/index.d.ts +0 -2
- package/api/resources/billing/client/requests/index.js +0 -2
- package/api/resources/billing/client/requests/index.ts +0 -1
- package/api/resources/billing/index.d.ts +0 -2
- package/api/resources/billing/index.js +0 -2
- package/api/resources/billing/index.ts +0 -1
- package/api/resources/charges/client/Client.d.ts +0 -110
- package/api/resources/charges/client/Client.js +0 -317
- package/api/resources/charges/client/Client.ts +0 -412
- package/api/resources/charges/client/index.d.ts +0 -2
- package/api/resources/charges/client/index.js +0 -2
- package/api/resources/charges/client/index.ts +0 -1
- package/api/resources/charges/client/requests/ChargesCaptureRequest.d.ts +0 -11
- package/api/resources/charges/client/requests/ChargesCaptureRequest.js +0 -3
- package/api/resources/charges/client/requests/ChargesCaptureRequest.ts +0 -12
- package/api/resources/charges/client/requests/ChargesCreateRequest.d.ts +0 -21
- package/api/resources/charges/client/requests/ChargesCreateRequest.js +0 -3
- package/api/resources/charges/client/requests/ChargesCreateRequest.ts +0 -22
- package/api/resources/charges/client/requests/ChargesListRequest.d.ts +0 -20
- package/api/resources/charges/client/requests/ChargesListRequest.js +0 -3
- package/api/resources/charges/client/requests/ChargesListRequest.ts +0 -22
- package/api/resources/charges/client/requests/ChargesRefundRequest.d.ts +0 -22
- package/api/resources/charges/client/requests/ChargesRefundRequest.js +0 -11
- package/api/resources/charges/client/requests/ChargesRefundRequest.ts +0 -24
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.d.ts +0 -10
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.js +0 -3
- package/api/resources/charges/client/requests/ChargesRetrieveRequest.ts +0 -11
- package/api/resources/charges/client/requests/index.d.ts +0 -6
- package/api/resources/charges/client/requests/index.js +0 -2
- package/api/resources/charges/client/requests/index.ts +0 -5
- package/api/resources/charges/index.d.ts +0 -3
- package/api/resources/charges/index.js +0 -3
- package/api/resources/charges/index.ts +0 -2
- package/api/resources/charges/types/ChargesListRequestStatus.d.ts +0 -10
- package/api/resources/charges/types/ChargesListRequestStatus.js +0 -10
- package/api/resources/charges/types/ChargesListRequestStatus.ts +0 -11
- package/api/resources/charges/types/index.d.ts +0 -2
- package/api/resources/charges/types/index.js +0 -2
- package/api/resources/charges/types/index.ts +0 -1
- package/api/resources/checkoutSessions/client/Client.d.ts +0 -70
- package/api/resources/checkoutSessions/client/Client.js +0 -198
- package/api/resources/checkoutSessions/client/Client.ts +0 -264
- package/api/resources/checkoutSessions/client/index.d.ts +0 -2
- package/api/resources/checkoutSessions/client/index.js +0 -2
- package/api/resources/checkoutSessions/client/index.ts +0 -1
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.d.ts +0 -10
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.js +0 -3
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.ts +0 -11
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.d.ts +0 -10
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.js +0 -3
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsRetrieveRequest.ts +0 -11
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.d.ts +0 -27
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.js +0 -12
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.ts +0 -30
- package/api/resources/checkoutSessions/client/requests/index.d.ts +0 -4
- package/api/resources/checkoutSessions/client/requests/index.js +0 -2
- package/api/resources/checkoutSessions/client/requests/index.ts +0 -3
- package/api/resources/checkoutSessions/index.d.ts +0 -2
- package/api/resources/checkoutSessions/index.js +0 -2
- package/api/resources/checkoutSessions/index.ts +0 -1
- package/api/resources/comms/client/Client.d.ts +0 -56
- package/api/resources/comms/client/Client.js +0 -170
- package/api/resources/comms/client/Client.ts +0 -236
- package/api/resources/comms/client/index.d.ts +0 -2
- package/api/resources/comms/client/index.js +0 -2
- package/api/resources/comms/client/index.ts +0 -1
- package/api/resources/comms/client/requests/CommsMessagesListRequest.d.ts +0 -15
- package/api/resources/comms/client/requests/CommsMessagesListRequest.js +0 -3
- package/api/resources/comms/client/requests/CommsMessagesListRequest.ts +0 -16
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.d.ts +0 -45
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.js +0 -22
- package/api/resources/comms/client/requests/CommsMessagesSendRequest.ts +0 -47
- package/api/resources/comms/client/requests/CommsThreadsListRequest.d.ts +0 -20
- package/api/resources/comms/client/requests/CommsThreadsListRequest.js +0 -3
- package/api/resources/comms/client/requests/CommsThreadsListRequest.ts +0 -22
- package/api/resources/comms/client/requests/index.d.ts +0 -4
- package/api/resources/comms/client/requests/index.js +0 -2
- package/api/resources/comms/client/requests/index.ts +0 -3
- package/api/resources/comms/index.d.ts +0 -3
- package/api/resources/comms/index.js +0 -3
- package/api/resources/comms/index.ts +0 -2
- package/api/resources/comms/types/CommsMessagesListResponse.d.ts +0 -8
- package/api/resources/comms/types/CommsMessagesListResponse.js +0 -3
- package/api/resources/comms/types/CommsMessagesListResponse.ts +0 -9
- package/api/resources/comms/types/CommsMessagesSendResponse.d.ts +0 -8
- package/api/resources/comms/types/CommsMessagesSendResponse.js +0 -3
- package/api/resources/comms/types/CommsMessagesSendResponse.ts +0 -9
- package/api/resources/comms/types/CommsThreadsListRequestStatus.d.ts +0 -8
- package/api/resources/comms/types/CommsThreadsListRequestStatus.js +0 -8
- package/api/resources/comms/types/CommsThreadsListRequestStatus.ts +0 -10
- package/api/resources/comms/types/CommsThreadsListResponse.d.ts +0 -8
- package/api/resources/comms/types/CommsThreadsListResponse.js +0 -3
- package/api/resources/comms/types/CommsThreadsListResponse.ts +0 -9
- package/api/resources/comms/types/index.d.ts +0 -5
- package/api/resources/comms/types/index.js +0 -5
- package/api/resources/comms/types/index.ts +0 -4
- package/api/resources/creditNotes/client/Client.d.ts +0 -125
- package/api/resources/creditNotes/client/Client.js +0 -378
- package/api/resources/creditNotes/client/Client.ts +0 -509
- package/api/resources/creditNotes/client/index.d.ts +0 -2
- package/api/resources/creditNotes/client/index.js +0 -2
- package/api/resources/creditNotes/client/index.ts +0 -1
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.d.ts +0 -58
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.js +0 -21
- package/api/resources/creditNotes/client/requests/CreateCreditNoteInput.ts +0 -60
- package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.d.ts +0 -11
- package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.js +0 -3
- package/api/resources/creditNotes/client/requests/CreditNotesInvoiceEligibilityRequest.ts +0 -12
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.d.ts +0 -28
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.js +0 -3
- package/api/resources/creditNotes/client/requests/CreditNotesListRequest.ts +0 -30
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.d.ts +0 -11
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.js +0 -3
- package/api/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts +0 -12
- package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.d.ts +0 -13
- package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.js +0 -3
- package/api/resources/creditNotes/client/requests/CreditNotesTransactionReversalEligibilityRequest.ts +0 -14
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.d.ts +0 -11
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.js +0 -3
- package/api/resources/creditNotes/client/requests/CreditNotesVoidRequest.ts +0 -12
- package/api/resources/creditNotes/client/requests/index.d.ts +0 -7
- package/api/resources/creditNotes/client/requests/index.js +0 -2
- package/api/resources/creditNotes/client/requests/index.ts +0 -6
- package/api/resources/creditNotes/index.d.ts +0 -3
- package/api/resources/creditNotes/index.js +0 -3
- package/api/resources/creditNotes/index.ts +0 -2
- package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.d.ts +0 -5
- package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.js +0 -3
- package/api/resources/creditNotes/types/CreditNotesInvoiceEligibilityResponse.ts +0 -7
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.d.ts +0 -8
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.js +0 -8
- package/api/resources/creditNotes/types/CreditNotesListRequestCreditMethod.ts +0 -10
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.d.ts +0 -10
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.js +0 -10
- package/api/resources/creditNotes/types/CreditNotesListRequestStatus.ts +0 -12
- package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.d.ts +0 -5
- package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.js +0 -3
- package/api/resources/creditNotes/types/CreditNotesTransactionReversalEligibilityResponse.ts +0 -7
- package/api/resources/creditNotes/types/index.d.ts +0 -5
- package/api/resources/creditNotes/types/index.js +0 -5
- package/api/resources/creditNotes/types/index.ts +0 -4
- package/api/resources/customers/client/Client.d.ts +0 -223
- package/api/resources/customers/client/Client.js +0 -729
- package/api/resources/customers/client/Client.ts +0 -978
- package/api/resources/customers/client/index.d.ts +0 -2
- package/api/resources/customers/client/index.js +0 -2
- package/api/resources/customers/client/index.ts +0 -1
- package/api/resources/customers/client/requests/CustomersCreateRequest.d.ts +0 -19
- package/api/resources/customers/client/requests/CustomersCreateRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersCreateRequest.ts +0 -20
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.d.ts +0 -53
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersExternalBatchRequest.ts +0 -56
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.d.ts +0 -31
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersExternalUpsertByExternalIdRequest.ts +0 -32
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.d.ts +0 -18
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersInvoicesListRequest.ts +0 -19
- package/api/resources/customers/client/requests/CustomersListRequest.d.ts +0 -13
- package/api/resources/customers/client/requests/CustomersListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersListRequest.ts +0 -14
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.d.ts +0 -21
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersOrdersListRequest.ts +0 -23
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.d.ts +0 -11
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersPaymentMethodsListRequest.ts +0 -12
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.d.ts +0 -21
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersPaymentsListRequest.ts +0 -23
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.d.ts +0 -13
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersPortalSessionsCreateRequest.ts +0 -14
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.d.ts +0 -11
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersRetrieveRequest.ts +0 -12
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.d.ts +0 -21
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersSubscriptionsListRequest.ts +0 -23
- package/api/resources/customers/client/requests/CustomersUpdateRequest.d.ts +0 -21
- package/api/resources/customers/client/requests/CustomersUpdateRequest.js +0 -3
- package/api/resources/customers/client/requests/CustomersUpdateRequest.ts +0 -22
- package/api/resources/customers/client/requests/index.d.ts +0 -13
- package/api/resources/customers/client/requests/index.js +0 -2
- package/api/resources/customers/client/requests/index.ts +0 -12
- package/api/resources/customers/index.d.ts +0 -3
- package/api/resources/customers/index.js +0 -3
- package/api/resources/customers/index.ts +0 -2
- package/api/resources/customers/types/CustomersExternalBatchResponse.d.ts +0 -20
- package/api/resources/customers/types/CustomersExternalBatchResponse.js +0 -3
- package/api/resources/customers/types/CustomersExternalBatchResponse.ts +0 -23
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.d.ts +0 -23
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.js +0 -3
- package/api/resources/customers/types/CustomersExternalUpsertByExternalIdResponse.ts +0 -26
- package/api/resources/customers/types/CustomersInvoicesListResponse.d.ts +0 -14
- package/api/resources/customers/types/CustomersInvoicesListResponse.js +0 -8
- package/api/resources/customers/types/CustomersInvoicesListResponse.ts +0 -17
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.d.ts +0 -9
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.js +0 -9
- package/api/resources/customers/types/CustomersOrdersListRequestStatus.ts +0 -11
- package/api/resources/customers/types/CustomersOrdersListResponse.d.ts +0 -14
- package/api/resources/customers/types/CustomersOrdersListResponse.js +0 -8
- package/api/resources/customers/types/CustomersOrdersListResponse.ts +0 -17
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.d.ts +0 -11
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.js +0 -11
- package/api/resources/customers/types/CustomersPaymentsListRequestStatus.ts +0 -13
- package/api/resources/customers/types/CustomersPaymentsListResponse.d.ts +0 -14
- package/api/resources/customers/types/CustomersPaymentsListResponse.js +0 -8
- package/api/resources/customers/types/CustomersPaymentsListResponse.ts +0 -17
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.d.ts +0 -10
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.js +0 -10
- package/api/resources/customers/types/CustomersSubscriptionsListRequestStatus.ts +0 -12
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.d.ts +0 -14
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.js +0 -8
- package/api/resources/customers/types/CustomersSubscriptionsListResponse.ts +0 -17
- package/api/resources/customers/types/index.d.ts +0 -10
- package/api/resources/customers/types/index.js +0 -10
- package/api/resources/customers/types/index.ts +0 -9
- package/api/resources/discounts/client/Client.d.ts +0 -104
- package/api/resources/discounts/client/Client.js +0 -300
- package/api/resources/discounts/client/Client.ts +0 -395
- package/api/resources/discounts/client/index.d.ts +0 -2
- package/api/resources/discounts/client/index.js +0 -2
- package/api/resources/discounts/client/index.ts +0 -1
- package/api/resources/discounts/client/requests/CreateDiscountInput.d.ts +0 -71
- package/api/resources/discounts/client/requests/CreateDiscountInput.js +0 -28
- package/api/resources/discounts/client/requests/CreateDiscountInput.ts +0 -73
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.d.ts +0 -11
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.js +0 -3
- package/api/resources/discounts/client/requests/DiscountsDeleteRequest.ts +0 -12
- package/api/resources/discounts/client/requests/DiscountsListRequest.d.ts +0 -18
- package/api/resources/discounts/client/requests/DiscountsListRequest.js +0 -3
- package/api/resources/discounts/client/requests/DiscountsListRequest.ts +0 -20
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.d.ts +0 -11
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.js +0 -3
- package/api/resources/discounts/client/requests/DiscountsRetrieveRequest.ts +0 -12
- package/api/resources/discounts/client/requests/UpdateDiscountInput.d.ts +0 -46
- package/api/resources/discounts/client/requests/UpdateDiscountInput.js +0 -20
- package/api/resources/discounts/client/requests/UpdateDiscountInput.ts +0 -48
- package/api/resources/discounts/client/requests/index.d.ts +0 -6
- package/api/resources/discounts/client/requests/index.js +0 -3
- package/api/resources/discounts/client/requests/index.ts +0 -5
- package/api/resources/discounts/index.d.ts +0 -3
- package/api/resources/discounts/index.js +0 -3
- package/api/resources/discounts/index.ts +0 -2
- package/api/resources/discounts/types/DiscountsListRequestIsActive.d.ts +0 -7
- package/api/resources/discounts/types/DiscountsListRequestIsActive.js +0 -7
- package/api/resources/discounts/types/DiscountsListRequestIsActive.ts +0 -9
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.d.ts +0 -7
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.js +0 -7
- package/api/resources/discounts/types/DiscountsListRequestIsArchived.ts +0 -9
- package/api/resources/discounts/types/index.d.ts +0 -3
- package/api/resources/discounts/types/index.js +0 -3
- package/api/resources/discounts/types/index.ts +0 -2
- package/api/resources/disputes/client/Client.d.ts +0 -72
- package/api/resources/disputes/client/Client.js +0 -199
- package/api/resources/disputes/client/Client.ts +0 -270
- package/api/resources/disputes/client/index.d.ts +0 -2
- package/api/resources/disputes/client/index.js +0 -2
- package/api/resources/disputes/client/index.ts +0 -1
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.d.ts +0 -11
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.js +0 -3
- package/api/resources/disputes/client/requests/DisputesGetOpenRequest.ts +0 -12
- package/api/resources/disputes/client/requests/DisputesListRequest.d.ts +0 -30
- package/api/resources/disputes/client/requests/DisputesListRequest.js +0 -3
- package/api/resources/disputes/client/requests/DisputesListRequest.ts +0 -32
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.d.ts +0 -11
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.js +0 -3
- package/api/resources/disputes/client/requests/DisputesRetrieveRequest.ts +0 -12
- package/api/resources/disputes/client/requests/index.d.ts +0 -4
- package/api/resources/disputes/client/requests/index.js +0 -2
- package/api/resources/disputes/client/requests/index.ts +0 -3
- package/api/resources/disputes/index.d.ts +0 -3
- package/api/resources/disputes/index.js +0 -3
- package/api/resources/disputes/index.ts +0 -2
- package/api/resources/disputes/types/DisputesGetOpenResponse.d.ts +0 -14
- package/api/resources/disputes/types/DisputesGetOpenResponse.js +0 -3
- package/api/resources/disputes/types/DisputesGetOpenResponse.ts +0 -17
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.d.ts +0 -7
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.js +0 -7
- package/api/resources/disputes/types/DisputesListRequestNeedsEvidence.ts +0 -9
- package/api/resources/disputes/types/DisputesListRequestResolution.d.ts +0 -8
- package/api/resources/disputes/types/DisputesListRequestResolution.js +0 -8
- package/api/resources/disputes/types/DisputesListRequestResolution.ts +0 -10
- package/api/resources/disputes/types/DisputesListRequestStatus.d.ts +0 -11
- package/api/resources/disputes/types/DisputesListRequestStatus.js +0 -11
- package/api/resources/disputes/types/DisputesListRequestStatus.ts +0 -12
- package/api/resources/disputes/types/DisputesListResponse.d.ts +0 -18
- package/api/resources/disputes/types/DisputesListResponse.js +0 -3
- package/api/resources/disputes/types/DisputesListResponse.ts +0 -21
- package/api/resources/disputes/types/DisputesRetrieveResponse.d.ts +0 -15
- package/api/resources/disputes/types/DisputesRetrieveResponse.js +0 -3
- package/api/resources/disputes/types/DisputesRetrieveResponse.ts +0 -18
- package/api/resources/disputes/types/index.d.ts +0 -7
- package/api/resources/disputes/types/index.js +0 -7
- package/api/resources/disputes/types/index.ts +0 -6
- package/api/resources/entitlements/client/Client.d.ts +0 -138
- package/api/resources/entitlements/client/Client.js +0 -446
- package/api/resources/entitlements/client/Client.ts +0 -607
- package/api/resources/entitlements/client/index.d.ts +0 -2
- package/api/resources/entitlements/client/index.js +0 -2
- package/api/resources/entitlements/client/index.ts +0 -1
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.d.ts +0 -14
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.js +0 -3
- package/api/resources/entitlements/client/requests/CustomersEntitlementsCheckRequest.ts +0 -15
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.d.ts +0 -15
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.js +0 -3
- package/api/resources/entitlements/client/requests/CustomersEntitlementsGrantRequest.ts +0 -16
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.d.ts +0 -21
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.js +0 -3
- package/api/resources/entitlements/client/requests/CustomersEntitlementsListRequest.ts +0 -22
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.d.ts +0 -14
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.js +0 -3
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByIdRequest.ts +0 -15
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.d.ts +0 -13
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.js +0 -3
- package/api/resources/entitlements/client/requests/CustomersEntitlementsRevokeByKeyRequest.ts +0 -14
- package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.d.ts +0 -14
- package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.js +0 -3
- package/api/resources/entitlements/client/requests/EntitlementsCheckRequest.ts +0 -15
- package/api/resources/entitlements/client/requests/EntitlementsListRequest.d.ts +0 -21
- package/api/resources/entitlements/client/requests/EntitlementsListRequest.js +0 -3
- package/api/resources/entitlements/client/requests/EntitlementsListRequest.ts +0 -22
- package/api/resources/entitlements/client/requests/index.d.ts +0 -8
- package/api/resources/entitlements/client/requests/index.js +0 -2
- package/api/resources/entitlements/client/requests/index.ts +0 -7
- package/api/resources/entitlements/index.d.ts +0 -3
- package/api/resources/entitlements/index.js +0 -3
- package/api/resources/entitlements/index.ts +0 -2
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.d.ts +0 -45
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.js +0 -22
- package/api/resources/entitlements/types/CustomersEntitlementsCheckResponse.ts +0 -49
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.d.ts +0 -52
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.js +0 -22
- package/api/resources/entitlements/types/CustomersEntitlementsGrantResponse.ts +0 -56
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.d.ts +0 -66
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.js +0 -25
- package/api/resources/entitlements/types/CustomersEntitlementsListResponse.ts +0 -73
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.d.ts +0 -52
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.js +0 -22
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByIdResponse.ts +0 -56
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.d.ts +0 -52
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.js +0 -22
- package/api/resources/entitlements/types/CustomersEntitlementsRevokeByKeyResponse.ts +0 -56
- package/api/resources/entitlements/types/index.d.ts +0 -6
- package/api/resources/entitlements/types/index.js +0 -6
- package/api/resources/entitlements/types/index.ts +0 -5
- package/api/resources/events/client/Client.d.ts +0 -84
- package/api/resources/events/client/Client.js +0 -243
- package/api/resources/events/client/Client.ts +0 -333
- package/api/resources/events/client/index.d.ts +0 -2
- package/api/resources/events/client/index.js +0 -2
- package/api/resources/events/client/index.ts +0 -1
- package/api/resources/events/client/requests/CreateTestEventRequest.d.ts +0 -60
- package/api/resources/events/client/requests/CreateTestEventRequest.js +0 -51
- package/api/resources/events/client/requests/CreateTestEventRequest.ts +0 -62
- package/api/resources/events/client/requests/EventsListRequest.d.ts +0 -32
- package/api/resources/events/client/requests/EventsListRequest.js +0 -3
- package/api/resources/events/client/requests/EventsListRequest.ts +0 -33
- package/api/resources/events/client/requests/EventsResendRequest.d.ts +0 -11
- package/api/resources/events/client/requests/EventsResendRequest.js +0 -3
- package/api/resources/events/client/requests/EventsResendRequest.ts +0 -12
- package/api/resources/events/client/requests/EventsRetrieveRequest.d.ts +0 -11
- package/api/resources/events/client/requests/EventsRetrieveRequest.js +0 -3
- package/api/resources/events/client/requests/EventsRetrieveRequest.ts +0 -12
- package/api/resources/events/client/requests/index.d.ts +0 -5
- package/api/resources/events/client/requests/index.js +0 -2
- package/api/resources/events/client/requests/index.ts +0 -4
- package/api/resources/events/index.d.ts +0 -2
- package/api/resources/events/index.js +0 -2
- package/api/resources/events/index.ts +0 -1
- package/api/resources/exports/client/Client.d.ts +0 -53
- package/api/resources/exports/client/Client.js +0 -129
- package/api/resources/exports/client/Client.ts +0 -173
- package/api/resources/exports/client/index.d.ts +0 -2
- package/api/resources/exports/client/index.js +0 -2
- package/api/resources/exports/client/index.ts +0 -1
- package/api/resources/exports/client/requests/CreateExportRequest.d.ts +0 -42
- package/api/resources/exports/client/requests/CreateExportRequest.js +0 -25
- package/api/resources/exports/client/requests/CreateExportRequest.ts +0 -44
- package/api/resources/exports/client/requests/ExportsRetrieveRequest.d.ts +0 -11
- package/api/resources/exports/client/requests/ExportsRetrieveRequest.js +0 -3
- package/api/resources/exports/client/requests/ExportsRetrieveRequest.ts +0 -12
- package/api/resources/exports/client/requests/index.d.ts +0 -3
- package/api/resources/exports/client/requests/index.js +0 -2
- package/api/resources/exports/client/requests/index.ts +0 -2
- package/api/resources/exports/index.d.ts +0 -2
- package/api/resources/exports/index.js +0 -2
- package/api/resources/exports/index.ts +0 -1
- package/api/resources/finance/client/Client.d.ts +0 -52
- package/api/resources/finance/client/Client.js +0 -136
- package/api/resources/finance/client/Client.ts +0 -184
- package/api/resources/finance/client/index.d.ts +0 -2
- package/api/resources/finance/client/index.js +0 -2
- package/api/resources/finance/client/index.ts +0 -1
- package/api/resources/finance/client/requests/FinanceGetIncomeRequest.d.ts +0 -21
- package/api/resources/finance/client/requests/FinanceGetIncomeRequest.js +0 -3
- package/api/resources/finance/client/requests/FinanceGetIncomeRequest.ts +0 -23
- package/api/resources/finance/client/requests/index.d.ts +0 -2
- package/api/resources/finance/client/requests/index.js +0 -2
- package/api/resources/finance/client/requests/index.ts +0 -1
- package/api/resources/finance/index.d.ts +0 -3
- package/api/resources/finance/index.js +0 -3
- package/api/resources/finance/index.ts +0 -2
- package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.d.ts +0 -8
- package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.js +0 -8
- package/api/resources/finance/types/FinanceGetIncomeRequestGroupBy.ts +0 -10
- package/api/resources/finance/types/FinanceGetIncomeResponse.d.ts +0 -15
- package/api/resources/finance/types/FinanceGetIncomeResponse.js +0 -3
- package/api/resources/finance/types/FinanceGetIncomeResponse.ts +0 -17
- package/api/resources/finance/types/FinanceGetSummaryResponse.d.ts +0 -7
- package/api/resources/finance/types/FinanceGetSummaryResponse.js +0 -3
- package/api/resources/finance/types/FinanceGetSummaryResponse.ts +0 -8
- package/api/resources/finance/types/index.d.ts +0 -4
- package/api/resources/finance/types/index.js +0 -4
- package/api/resources/finance/types/index.ts +0 -3
- package/api/resources/imports/client/Client.d.ts +0 -53
- package/api/resources/imports/client/Client.js +0 -129
- package/api/resources/imports/client/Client.ts +0 -173
- package/api/resources/imports/client/index.d.ts +0 -2
- package/api/resources/imports/client/index.js +0 -2
- package/api/resources/imports/client/index.ts +0 -1
- package/api/resources/imports/client/requests/CreateImportRequest.d.ts +0 -33
- package/api/resources/imports/client/requests/CreateImportRequest.js +0 -17
- package/api/resources/imports/client/requests/CreateImportRequest.ts +0 -35
- package/api/resources/imports/client/requests/ImportsRetrieveRequest.d.ts +0 -11
- package/api/resources/imports/client/requests/ImportsRetrieveRequest.js +0 -3
- package/api/resources/imports/client/requests/ImportsRetrieveRequest.ts +0 -12
- package/api/resources/imports/client/requests/index.d.ts +0 -3
- package/api/resources/imports/client/requests/index.js +0 -2
- package/api/resources/imports/client/requests/index.ts +0 -2
- package/api/resources/imports/index.d.ts +0 -2
- package/api/resources/imports/index.js +0 -2
- package/api/resources/imports/index.ts +0 -1
- package/api/resources/index.d.ts +0 -96
- package/api/resources/index.js +0 -96
- package/api/resources/index.ts +0 -95
- package/api/resources/integrations/client/Client.d.ts +0 -500
- package/api/resources/integrations/client/Client.js +0 -1671
- package/api/resources/integrations/client/Client.ts +0 -2318
- package/api/resources/integrations/client/index.d.ts +0 -2
- package/api/resources/integrations/client/index.js +0 -2
- package/api/resources/integrations/client/index.ts +0 -1
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.d.ts +0 -42
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsActivateRequest.ts +0 -47
- package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsAutoSendInvoicesRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.d.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsBatchRetryRequest.ts +0 -17
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.d.ts +0 -12
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsDeactivateRequest.ts +0 -14
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsDeleteProductMappingRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetBillableItemsRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetPackagesRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetPaymentMethodsRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetProductMappingsRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetStatusRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsGetUnmappedAttemptsRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsInvoiceLookbackRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.d.ts +0 -27
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsPaymentMappingsRequest.ts +0 -31
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.d.ts +0 -17
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsPostPaymentMethodsRequest.ts +0 -19
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.d.ts +0 -33
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsPutProductMappingsRequest.ts +0 -38
- package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsResumeSyncRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsRetryLogRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.d.ts +0 -38
- package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.js +0 -16
- package/api/resources/integrations/client/requests/IntegrationsSuggestMappingsRequest.ts +0 -43
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncIntervalRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncLogByIdRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.d.ts +0 -20
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncLogsRequest.ts +0 -22
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.d.ts +0 -11
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncStatesRequest.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsByTypeRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncStatsRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.d.ts +0 -13
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsSyncToggleRequest.ts +0 -15
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.d.ts +0 -24
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsTestRequest.ts +0 -27
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.d.ts +0 -12
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.js +0 -3
- package/api/resources/integrations/client/requests/IntegrationsTriggerSyncRequest.ts +0 -14
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.d.ts +0 -23
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.js +0 -11
- package/api/resources/integrations/client/requests/IntegrationsUpdateStatusRequest.ts +0 -26
- package/api/resources/integrations/client/requests/index.d.ts +0 -29
- package/api/resources/integrations/client/requests/index.js +0 -3
- package/api/resources/integrations/client/requests/index.ts +0 -28
- package/api/resources/integrations/index.d.ts +0 -3
- package/api/resources/integrations/index.js +0 -3
- package/api/resources/integrations/index.ts +0 -2
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsActivateRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsActivateResponse.d.ts +0 -54
- package/api/resources/integrations/types/IntegrationsActivateResponse.js +0 -24
- package/api/resources/integrations/types/IntegrationsActivateResponse.ts +0 -59
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsAutoSendInvoicesResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsBatchRetryRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsBatchRetryResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsDeactivateRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsDeactivateResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsDeleteProductMappingResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetBillableItemsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.d.ts +0 -25
- package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.js +0 -14
- package/api/resources/integrations/types/IntegrationsGetBillableItemsResponse.ts +0 -29
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetPackagesRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.d.ts +0 -25
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsGetPackagesResponse.ts +0 -29
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.d.ts +0 -16
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsGetPaymentMethodsResponse.ts +0 -19
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetProductMappingsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.d.ts +0 -20
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsGetProductMappingsResponse.ts +0 -23
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetStatusRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.d.ts +0 -53
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.js +0 -24
- package/api/resources/integrations/types/IntegrationsGetStatusResponse.ts +0 -58
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.d.ts +0 -17
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsGetUnmappedAttemptsResponse.ts +0 -20
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsInvoiceLookbackResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsListResponse.d.ts +0 -56
- package/api/resources/integrations/types/IntegrationsListResponse.js +0 -27
- package/api/resources/integrations/types/IntegrationsListResponse.ts +0 -62
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsPaymentMappingsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsPaymentMappingsResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.d.ts +0 -16
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsPostPaymentMethodsResponse.ts +0 -19
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsPutProductMappingsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsPutProductMappingsResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsResumeSyncRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsResumeSyncResponse.d.ts +0 -6
- package/api/resources/integrations/types/IntegrationsResumeSyncResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsResumeSyncResponse.ts +0 -7
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsRetryLogRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsRetryLogResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSuggestMappingsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.d.ts +0 -16
- package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSuggestMappingsResponse.ts +0 -19
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncIntervalRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncIntervalResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncLogByIdRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncLogByIdResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.d.ts +0 -8
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.js +0 -8
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestJobType.ts +0 -10
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.d.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.js +0 -6
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestLatestOnly.ts +0 -8
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.d.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.js +0 -9
- package/api/resources/integrations/types/IntegrationsSyncLogsRequestStatus.ts +0 -11
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncLogsResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatesRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.d.ts +0 -18
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncStatesResponse.ts +0 -21
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncStatsByTypeResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncStatsRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncStatsResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsSyncToggleRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsSyncToggleResponse.ts +0 -5
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsTestRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsTestResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsTestResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsTestResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsTriggerSyncRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.d.ts +0 -5
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsTriggerSyncResponse.ts +0 -6
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.d.ts +0 -7
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.js +0 -7
- package/api/resources/integrations/types/IntegrationsUpdateStatusRequestProvider.ts +0 -9
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.d.ts +0 -4
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.js +0 -3
- package/api/resources/integrations/types/IntegrationsUpdateStatusResponse.ts +0 -5
- package/api/resources/integrations/types/index.d.ts +0 -61
- package/api/resources/integrations/types/index.js +0 -61
- package/api/resources/integrations/types/index.ts +0 -60
- package/api/resources/invoices/client/Client.d.ts +0 -297
- package/api/resources/invoices/client/Client.js +0 -964
- package/api/resources/invoices/client/Client.ts +0 -1290
- package/api/resources/invoices/client/index.d.ts +0 -2
- package/api/resources/invoices/client/index.js +0 -2
- package/api/resources/invoices/client/index.ts +0 -1
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.d.ts +0 -15
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesCommentsAddRequest.ts +0 -16
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.d.ts +0 -13
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesCommentsListRequest.ts +0 -14
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.d.ts +0 -32
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.js +0 -12
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.ts +0 -36
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.d.ts +0 -10
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesCreditEligibilityRequest.ts +0 -11
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.d.ts +0 -56
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.js +0 -23
- package/api/resources/invoices/client/requests/InvoicesCreditNoteIssueRequest.ts +0 -58
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.d.ts +0 -10
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesCreditNotesListRequest.ts +0 -11
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.d.ts +0 -10
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesDeleteRequest.ts +0 -11
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.d.ts +0 -74
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesExternalBatchRequest.ts +0 -81
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.d.ts +0 -50
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesExternalUpsertByExternalIdRequest.ts +0 -55
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.d.ts +0 -12
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesFinalizeRequest.ts +0 -13
- package/api/resources/invoices/client/requests/InvoicesListRequest.d.ts +0 -15
- package/api/resources/invoices/client/requests/InvoicesListRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesListRequest.ts +0 -16
- package/api/resources/invoices/client/requests/InvoicesPayRequest.d.ts +0 -30
- package/api/resources/invoices/client/requests/InvoicesPayRequest.js +0 -12
- package/api/resources/invoices/client/requests/InvoicesPayRequest.ts +0 -32
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.d.ts +0 -14
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesRefundRequest.ts +0 -15
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.d.ts +0 -13
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesRejectRequest.ts +0 -14
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.d.ts +0 -10
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesRetrieveRequest.ts +0 -11
- package/api/resources/invoices/client/requests/InvoicesSendRequest.d.ts +0 -23
- package/api/resources/invoices/client/requests/InvoicesSendRequest.js +0 -11
- package/api/resources/invoices/client/requests/InvoicesSendRequest.ts +0 -25
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.d.ts +0 -65
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.js +0 -31
- package/api/resources/invoices/client/requests/InvoicesUpdateRequest.ts +0 -68
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.d.ts +0 -12
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.js +0 -3
- package/api/resources/invoices/client/requests/InvoicesVoidRequest.ts +0 -13
- package/api/resources/invoices/client/requests/index.d.ts +0 -19
- package/api/resources/invoices/client/requests/index.js +0 -6
- package/api/resources/invoices/client/requests/index.ts +0 -18
- package/api/resources/invoices/index.d.ts +0 -3
- package/api/resources/invoices/index.js +0 -3
- package/api/resources/invoices/index.ts +0 -2
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.d.ts +0 -23
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.js +0 -3
- package/api/resources/invoices/types/InvoicesExternalBatchResponse.ts +0 -26
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.d.ts +0 -3
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.js +0 -3
- package/api/resources/invoices/types/InvoicesExternalUpsertByExternalIdResponse.ts +0 -5
- package/api/resources/invoices/types/index.d.ts +0 -3
- package/api/resources/invoices/types/index.js +0 -3
- package/api/resources/invoices/types/index.ts +0 -2
- package/api/resources/meters/client/Client.d.ts +0 -159
- package/api/resources/meters/client/Client.js +0 -473
- package/api/resources/meters/client/Client.ts +0 -629
- package/api/resources/meters/client/index.d.ts +0 -2
- package/api/resources/meters/client/index.js +0 -2
- package/api/resources/meters/client/index.ts +0 -1
- package/api/resources/meters/client/requests/CreateMeterPriceRequest.d.ts +0 -50
- package/api/resources/meters/client/requests/CreateMeterPriceRequest.js +0 -12
- package/api/resources/meters/client/requests/CreateMeterPriceRequest.ts +0 -53
- package/api/resources/meters/client/requests/CreateMeterRequest.d.ts +0 -45
- package/api/resources/meters/client/requests/CreateMeterRequest.js +0 -13
- package/api/resources/meters/client/requests/CreateMeterRequest.ts +0 -47
- package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.d.ts +0 -14
- package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.js +0 -3
- package/api/resources/meters/client/requests/DeactivatePriceMetersRequest.ts +0 -15
- package/api/resources/meters/client/requests/GetMetersRequest.d.ts +0 -11
- package/api/resources/meters/client/requests/GetMetersRequest.js +0 -3
- package/api/resources/meters/client/requests/GetMetersRequest.ts +0 -12
- package/api/resources/meters/client/requests/ListMetersRequest.d.ts +0 -17
- package/api/resources/meters/client/requests/ListMetersRequest.js +0 -3
- package/api/resources/meters/client/requests/ListMetersRequest.ts +0 -18
- package/api/resources/meters/client/requests/ListPricesMetersRequest.d.ts +0 -11
- package/api/resources/meters/client/requests/ListPricesMetersRequest.js +0 -3
- package/api/resources/meters/client/requests/ListPricesMetersRequest.ts +0 -12
- package/api/resources/meters/client/requests/UpdateMeterPriceRequest.d.ts +0 -34
- package/api/resources/meters/client/requests/UpdateMeterPriceRequest.js +0 -3
- package/api/resources/meters/client/requests/UpdateMeterPriceRequest.ts +0 -37
- package/api/resources/meters/client/requests/UpdateMeterRequest.d.ts +0 -42
- package/api/resources/meters/client/requests/UpdateMeterRequest.js +0 -11
- package/api/resources/meters/client/requests/UpdateMeterRequest.ts +0 -44
- package/api/resources/meters/client/requests/index.d.ts +0 -9
- package/api/resources/meters/client/requests/index.js +0 -4
- package/api/resources/meters/client/requests/index.ts +0 -8
- package/api/resources/meters/index.d.ts +0 -2
- package/api/resources/meters/index.js +0 -2
- package/api/resources/meters/index.ts +0 -1
- package/api/resources/orders/client/Client.d.ts +0 -123
- package/api/resources/orders/client/Client.js +0 -372
- package/api/resources/orders/client/Client.ts +0 -493
- package/api/resources/orders/client/index.d.ts +0 -2
- package/api/resources/orders/client/index.js +0 -2
- package/api/resources/orders/client/index.ts +0 -1
- package/api/resources/orders/client/requests/CancelOrderRequest.d.ts +0 -13
- package/api/resources/orders/client/requests/CancelOrderRequest.js +0 -3
- package/api/resources/orders/client/requests/CancelOrderRequest.ts +0 -14
- package/api/resources/orders/client/requests/CreateOrderRequest.d.ts +0 -50
- package/api/resources/orders/client/requests/CreateOrderRequest.js +0 -10
- package/api/resources/orders/client/requests/CreateOrderRequest.ts +0 -53
- package/api/resources/orders/client/requests/FulfillOrderRequest.d.ts +0 -19
- package/api/resources/orders/client/requests/FulfillOrderRequest.js +0 -3
- package/api/resources/orders/client/requests/FulfillOrderRequest.ts +0 -20
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +0 -24
- package/api/resources/orders/client/requests/OrdersListRequest.js +0 -3
- package/api/resources/orders/client/requests/OrdersListRequest.ts +0 -26
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.d.ts +0 -11
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.js +0 -3
- package/api/resources/orders/client/requests/OrdersRetrieveRequest.ts +0 -12
- package/api/resources/orders/client/requests/PayOrderRequest.d.ts +0 -17
- package/api/resources/orders/client/requests/PayOrderRequest.js +0 -3
- package/api/resources/orders/client/requests/PayOrderRequest.ts +0 -18
- package/api/resources/orders/client/requests/index.d.ts +0 -7
- package/api/resources/orders/client/requests/index.js +0 -2
- package/api/resources/orders/client/requests/index.ts +0 -6
- package/api/resources/orders/index.d.ts +0 -3
- package/api/resources/orders/index.js +0 -3
- package/api/resources/orders/index.ts +0 -2
- package/api/resources/orders/types/OrdersListRequestBillingType.d.ts +0 -7
- package/api/resources/orders/types/OrdersListRequestBillingType.js +0 -7
- package/api/resources/orders/types/OrdersListRequestBillingType.ts +0 -9
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
- package/api/resources/orders/types/OrdersListRequestStatus.js +0 -12
- package/api/resources/orders/types/OrdersListRequestStatus.ts +0 -13
- package/api/resources/orders/types/index.d.ts +0 -3
- package/api/resources/orders/types/index.js +0 -3
- package/api/resources/orders/types/index.ts +0 -2
- package/api/resources/paymentIntents/client/Client.d.ts +0 -132
- package/api/resources/paymentIntents/client/Client.js +0 -410
- package/api/resources/paymentIntents/client/Client.ts +0 -557
- package/api/resources/paymentIntents/client/index.d.ts +0 -2
- package/api/resources/paymentIntents/client/index.js +0 -2
- package/api/resources/paymentIntents/client/index.ts +0 -1
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.d.ts +0 -24
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.js +0 -13
- package/api/resources/paymentIntents/client/requests/CancelPaymentIntentRequest.ts +0 -26
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.d.ts +0 -13
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.js +0 -3
- package/api/resources/paymentIntents/client/requests/CapturePaymentIntentRequest.ts +0 -14
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.d.ts +0 -15
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.js +0 -3
- package/api/resources/paymentIntents/client/requests/ConfirmPaymentIntentRequest.ts +0 -16
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.d.ts +0 -40
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.js +0 -10
- package/api/resources/paymentIntents/client/requests/CreatePaymentIntentRequest.ts +0 -42
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.d.ts +0 -22
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.js +0 -3
- package/api/resources/paymentIntents/client/requests/PaymentIntentsListRequest.ts +0 -24
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.d.ts +0 -11
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.js +0 -3
- package/api/resources/paymentIntents/client/requests/PaymentIntentsRetrieveRequest.ts +0 -12
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.d.ts +0 -27
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.js +0 -3
- package/api/resources/paymentIntents/client/requests/UpdatePaymentIntentRequest.ts +0 -28
- package/api/resources/paymentIntents/client/requests/index.d.ts +0 -8
- package/api/resources/paymentIntents/client/requests/index.js +0 -3
- package/api/resources/paymentIntents/client/requests/index.ts +0 -7
- package/api/resources/paymentIntents/index.d.ts +0 -3
- package/api/resources/paymentIntents/index.js +0 -3
- package/api/resources/paymentIntents/index.ts +0 -2
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.d.ts +0 -11
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.js +0 -11
- package/api/resources/paymentIntents/types/PaymentIntentsListRequestStatus.ts +0 -13
- package/api/resources/paymentIntents/types/index.d.ts +0 -2
- package/api/resources/paymentIntents/types/index.js +0 -2
- package/api/resources/paymentIntents/types/index.ts +0 -1
- package/api/resources/paymentLinks/client/Client.d.ts +0 -151
- package/api/resources/paymentLinks/client/Client.js +0 -478
- package/api/resources/paymentLinks/client/Client.ts +0 -629
- package/api/resources/paymentLinks/client/index.d.ts +0 -2
- package/api/resources/paymentLinks/client/index.js +0 -2
- package/api/resources/paymentLinks/client/index.ts +0 -1
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.d.ts +0 -11
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/ActivatePaymentLinkRequest.ts +0 -12
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.d.ts +0 -11
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/ArchivePaymentLinkRequest.ts +0 -12
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.d.ts +0 -86
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.js +0 -37
- package/api/resources/paymentLinks/client/requests/CreatePaymentLinkRequest.ts +0 -95
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.d.ts +0 -11
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/DeactivatePaymentLinkRequest.ts +0 -12
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.d.ts +0 -12
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/ExpirePaymentLinkRequest.ts +0 -13
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.d.ts +0 -11
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/GetPaymentLinkRequest.ts +0 -12
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.d.ts +0 -13
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.js +0 -3
- package/api/resources/paymentLinks/client/requests/ListPaymentLinksRequest.ts +0 -15
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.d.ts +0 -23
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.js +0 -11
- package/api/resources/paymentLinks/client/requests/UpdatePaymentLinkStatusRequest.ts +0 -25
- package/api/resources/paymentLinks/client/requests/index.d.ts +0 -9
- package/api/resources/paymentLinks/client/requests/index.js +0 -3
- package/api/resources/paymentLinks/client/requests/index.ts +0 -8
- package/api/resources/paymentLinks/index.d.ts +0 -3
- package/api/resources/paymentLinks/index.js +0 -3
- package/api/resources/paymentLinks/index.ts +0 -2
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.d.ts +0 -16
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.js +0 -10
- package/api/resources/paymentLinks/types/ActivatePaymentLinkResponse.ts +0 -18
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.d.ts +0 -16
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.js +0 -10
- package/api/resources/paymentLinks/types/ArchivePaymentLinkResponse.ts +0 -18
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.d.ts +0 -84
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.js +0 -39
- package/api/resources/paymentLinks/types/CreatePaymentLinkResponse.ts +0 -91
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.d.ts +0 -16
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.js +0 -10
- package/api/resources/paymentLinks/types/DeactivatePaymentLinkResponse.ts +0 -18
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.d.ts +0 -84
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.js +0 -39
- package/api/resources/paymentLinks/types/ExpirePaymentLinkResponse.ts +0 -91
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.d.ts +0 -84
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.js +0 -39
- package/api/resources/paymentLinks/types/GetPaymentLinkResponse.ts +0 -91
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.d.ts +0 -7
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.js +0 -7
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestMode.ts +0 -9
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.d.ts +0 -8
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.js +0 -8
- package/api/resources/paymentLinks/types/ListPaymentLinksRequestStatus.ts +0 -10
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.d.ts +0 -98
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.js +0 -45
- package/api/resources/paymentLinks/types/ListPaymentLinksResponse.ts +0 -108
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.d.ts +0 -16
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.js +0 -10
- package/api/resources/paymentLinks/types/UpdatePaymentLinkStatusResponse.ts +0 -18
- package/api/resources/paymentLinks/types/index.d.ts +0 -11
- package/api/resources/paymentLinks/types/index.js +0 -11
- package/api/resources/paymentLinks/types/index.ts +0 -10
- package/api/resources/payments/client/Client.d.ts +0 -52
- package/api/resources/payments/client/Client.js +0 -135
- package/api/resources/payments/client/Client.ts +0 -189
- package/api/resources/payments/client/index.d.ts +0 -2
- package/api/resources/payments/client/index.js +0 -2
- package/api/resources/payments/client/index.ts +0 -1
- package/api/resources/payments/client/requests/PaymentsListRequest.d.ts +0 -26
- package/api/resources/payments/client/requests/PaymentsListRequest.js +0 -3
- package/api/resources/payments/client/requests/PaymentsListRequest.ts +0 -28
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.d.ts +0 -11
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.js +0 -3
- package/api/resources/payments/client/requests/PaymentsRetrieveRequest.ts +0 -12
- package/api/resources/payments/client/requests/index.d.ts +0 -3
- package/api/resources/payments/client/requests/index.js +0 -2
- package/api/resources/payments/client/requests/index.ts +0 -2
- package/api/resources/payments/index.d.ts +0 -3
- package/api/resources/payments/index.js +0 -3
- package/api/resources/payments/index.ts +0 -2
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.d.ts +0 -9
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.js +0 -9
- package/api/resources/payments/types/PaymentsListRequestPaymentChannel.ts +0 -11
- package/api/resources/payments/types/PaymentsListRequestStatus.d.ts +0 -13
- package/api/resources/payments/types/PaymentsListRequestStatus.js +0 -13
- package/api/resources/payments/types/PaymentsListRequestStatus.ts +0 -14
- package/api/resources/payments/types/index.d.ts +0 -3
- package/api/resources/payments/types/index.js +0 -3
- package/api/resources/payments/types/index.ts +0 -2
- package/api/resources/payouts/client/Client.d.ts +0 -72
- package/api/resources/payouts/client/Client.js +0 -199
- package/api/resources/payouts/client/Client.ts +0 -260
- package/api/resources/payouts/client/index.d.ts +0 -2
- package/api/resources/payouts/client/index.js +0 -2
- package/api/resources/payouts/client/index.ts +0 -1
- package/api/resources/payouts/client/requests/PayoutsListRequest.d.ts +0 -24
- package/api/resources/payouts/client/requests/PayoutsListRequest.js +0 -3
- package/api/resources/payouts/client/requests/PayoutsListRequest.ts +0 -26
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.d.ts +0 -15
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.js +0 -3
- package/api/resources/payouts/client/requests/PayoutsPaymentsListRequest.ts +0 -16
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.d.ts +0 -11
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.js +0 -3
- package/api/resources/payouts/client/requests/PayoutsRetrieveRequest.ts +0 -12
- package/api/resources/payouts/client/requests/index.d.ts +0 -4
- package/api/resources/payouts/client/requests/index.js +0 -2
- package/api/resources/payouts/client/requests/index.ts +0 -3
- package/api/resources/payouts/index.d.ts +0 -3
- package/api/resources/payouts/index.js +0 -3
- package/api/resources/payouts/index.ts +0 -2
- package/api/resources/payouts/types/PayoutsListRequestStatus.d.ts +0 -10
- package/api/resources/payouts/types/PayoutsListRequestStatus.js +0 -10
- package/api/resources/payouts/types/PayoutsListRequestStatus.ts +0 -11
- package/api/resources/payouts/types/PayoutsListResponse.d.ts +0 -14
- package/api/resources/payouts/types/PayoutsListResponse.js +0 -3
- package/api/resources/payouts/types/PayoutsListResponse.ts +0 -17
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.d.ts +0 -14
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.js +0 -3
- package/api/resources/payouts/types/PayoutsPaymentsListResponse.ts +0 -17
- package/api/resources/payouts/types/PayoutsRetrieveResponse.d.ts +0 -5
- package/api/resources/payouts/types/PayoutsRetrieveResponse.js +0 -3
- package/api/resources/payouts/types/PayoutsRetrieveResponse.ts +0 -7
- package/api/resources/payouts/types/index.d.ts +0 -5
- package/api/resources/payouts/types/index.js +0 -5
- package/api/resources/payouts/types/index.ts +0 -4
- package/api/resources/prices/client/Client.d.ts +0 -100
- package/api/resources/prices/client/Client.js +0 -303
- package/api/resources/prices/client/Client.ts +0 -408
- package/api/resources/prices/client/index.d.ts +0 -2
- package/api/resources/prices/client/index.js +0 -2
- package/api/resources/prices/client/index.ts +0 -1
- package/api/resources/prices/client/requests/CreatePriceRequest.d.ts +0 -82
- package/api/resources/prices/client/requests/CreatePriceRequest.js +0 -33
- package/api/resources/prices/client/requests/CreatePriceRequest.ts +0 -85
- package/api/resources/prices/client/requests/PricesArchiveRequest.d.ts +0 -11
- package/api/resources/prices/client/requests/PricesArchiveRequest.js +0 -3
- package/api/resources/prices/client/requests/PricesArchiveRequest.ts +0 -12
- package/api/resources/prices/client/requests/PricesListRequest.d.ts +0 -26
- package/api/resources/prices/client/requests/PricesListRequest.js +0 -3
- package/api/resources/prices/client/requests/PricesListRequest.ts +0 -28
- package/api/resources/prices/client/requests/PricesRetrieveRequest.d.ts +0 -11
- package/api/resources/prices/client/requests/PricesRetrieveRequest.js +0 -3
- package/api/resources/prices/client/requests/PricesRetrieveRequest.ts +0 -12
- package/api/resources/prices/client/requests/UpdatePriceRequest.d.ts +0 -19
- package/api/resources/prices/client/requests/UpdatePriceRequest.js +0 -3
- package/api/resources/prices/client/requests/UpdatePriceRequest.ts +0 -20
- package/api/resources/prices/client/requests/index.d.ts +0 -6
- package/api/resources/prices/client/requests/index.js +0 -2
- package/api/resources/prices/client/requests/index.ts +0 -5
- package/api/resources/prices/index.d.ts +0 -3
- package/api/resources/prices/index.js +0 -3
- package/api/resources/prices/index.ts +0 -2
- package/api/resources/prices/types/PricesListRequestActive.d.ts +0 -7
- package/api/resources/prices/types/PricesListRequestActive.js +0 -7
- package/api/resources/prices/types/PricesListRequestActive.ts +0 -8
- package/api/resources/prices/types/PricesListRequestPricingModel.d.ts +0 -8
- package/api/resources/prices/types/PricesListRequestPricingModel.js +0 -8
- package/api/resources/prices/types/PricesListRequestPricingModel.ts +0 -10
- package/api/resources/prices/types/PricesListRequestType.d.ts +0 -7
- package/api/resources/prices/types/PricesListRequestType.js +0 -7
- package/api/resources/prices/types/PricesListRequestType.ts +0 -8
- package/api/resources/prices/types/index.d.ts +0 -4
- package/api/resources/prices/types/index.js +0 -4
- package/api/resources/prices/types/index.ts +0 -3
- package/api/resources/products/client/Client.d.ts +0 -130
- package/api/resources/products/client/Client.js +0 -379
- package/api/resources/products/client/Client.ts +0 -496
- package/api/resources/products/client/index.d.ts +0 -2
- package/api/resources/products/client/index.js +0 -2
- package/api/resources/products/client/index.ts +0 -1
- package/api/resources/products/client/requests/CreateProductRequest.d.ts +0 -80
- package/api/resources/products/client/requests/CreateProductRequest.js +0 -38
- package/api/resources/products/client/requests/CreateProductRequest.ts +0 -82
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.d.ts +0 -65
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.js +0 -23
- package/api/resources/products/client/requests/ProductsExternalBatchRequest.ts +0 -69
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.d.ts +0 -56
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.js +0 -17
- package/api/resources/products/client/requests/ProductsExternalUpsertRequest.ts +0 -58
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +0 -13
- package/api/resources/products/client/requests/ProductsListRequest.js +0 -3
- package/api/resources/products/client/requests/ProductsListRequest.ts +0 -14
- package/api/resources/products/client/requests/ProductsRetrieveRequest.d.ts +0 -10
- package/api/resources/products/client/requests/ProductsRetrieveRequest.js +0 -3
- package/api/resources/products/client/requests/ProductsRetrieveRequest.ts +0 -11
- package/api/resources/products/client/requests/UpdateProductRequest.d.ts +0 -60
- package/api/resources/products/client/requests/UpdateProductRequest.js +0 -28
- package/api/resources/products/client/requests/UpdateProductRequest.ts +0 -62
- package/api/resources/products/client/requests/index.d.ts +0 -7
- package/api/resources/products/client/requests/index.js +0 -5
- package/api/resources/products/client/requests/index.ts +0 -6
- package/api/resources/products/index.d.ts +0 -3
- package/api/resources/products/index.js +0 -3
- package/api/resources/products/index.ts +0 -2
- package/api/resources/products/types/ProductsExternalBatchResponse.d.ts +0 -20
- package/api/resources/products/types/ProductsExternalBatchResponse.js +0 -3
- package/api/resources/products/types/ProductsExternalBatchResponse.ts +0 -23
- package/api/resources/products/types/ProductsExternalUpsertResponse.d.ts +0 -32
- package/api/resources/products/types/ProductsExternalUpsertResponse.js +0 -12
- package/api/resources/products/types/ProductsExternalUpsertResponse.ts +0 -35
- package/api/resources/products/types/index.d.ts +0 -3
- package/api/resources/products/types/index.js +0 -3
- package/api/resources/products/types/index.ts +0 -2
- package/api/resources/refunds/client/Client.d.ts +0 -75
- package/api/resources/refunds/client/Client.js +0 -202
- package/api/resources/refunds/client/Client.ts +0 -272
- package/api/resources/refunds/client/index.d.ts +0 -2
- package/api/resources/refunds/client/index.js +0 -2
- package/api/resources/refunds/client/index.ts +0 -1
- package/api/resources/refunds/client/requests/CreateRefundInput.d.ts +0 -30
- package/api/resources/refunds/client/requests/CreateRefundInput.js +0 -15
- package/api/resources/refunds/client/requests/CreateRefundInput.ts +0 -32
- package/api/resources/refunds/client/requests/RefundsListRequest.d.ts +0 -28
- package/api/resources/refunds/client/requests/RefundsListRequest.js +0 -3
- package/api/resources/refunds/client/requests/RefundsListRequest.ts +0 -30
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.d.ts +0 -11
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.js +0 -3
- package/api/resources/refunds/client/requests/RefundsRetrieveRequest.ts +0 -12
- package/api/resources/refunds/client/requests/index.d.ts +0 -4
- package/api/resources/refunds/client/requests/index.js +0 -2
- package/api/resources/refunds/client/requests/index.ts +0 -3
- package/api/resources/refunds/index.d.ts +0 -3
- package/api/resources/refunds/index.js +0 -3
- package/api/resources/refunds/index.ts +0 -2
- package/api/resources/refunds/types/RefundsListRequestReason.d.ts +0 -12
- package/api/resources/refunds/types/RefundsListRequestReason.js +0 -12
- package/api/resources/refunds/types/RefundsListRequestReason.ts +0 -13
- package/api/resources/refunds/types/RefundsListRequestStatus.d.ts +0 -10
- package/api/resources/refunds/types/RefundsListRequestStatus.js +0 -10
- package/api/resources/refunds/types/RefundsListRequestStatus.ts +0 -11
- package/api/resources/refunds/types/index.d.ts +0 -3
- package/api/resources/refunds/types/index.js +0 -3
- package/api/resources/refunds/types/index.ts +0 -2
- package/api/resources/subscriptionSchedules/client/Client.d.ts +0 -122
- package/api/resources/subscriptionSchedules/client/Client.js +0 -372
- package/api/resources/subscriptionSchedules/client/Client.ts +0 -503
- package/api/resources/subscriptionSchedules/client/index.d.ts +0 -2
- package/api/resources/subscriptionSchedules/client/index.js +0 -2
- package/api/resources/subscriptionSchedules/client/index.ts +0 -1
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.d.ts +0 -15
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.js +0 -3
- package/api/resources/subscriptionSchedules/client/requests/CancelSubscriptionScheduleRequest.ts +0 -16
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.d.ts +0 -39
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.js +0 -10
- package/api/resources/subscriptionSchedules/client/requests/CreateSubscriptionScheduleRequest.ts +0 -42
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.d.ts +0 -13
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.js +0 -3
- package/api/resources/subscriptionSchedules/client/requests/ReleaseSubscriptionScheduleRequest.ts +0 -14
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.d.ts +0 -24
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.js +0 -3
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesListRequest.ts +0 -26
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.d.ts +0 -11
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.js +0 -3
- package/api/resources/subscriptionSchedules/client/requests/SubscriptionSchedulesRetrieveRequest.ts +0 -12
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.d.ts +0 -35
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.js +0 -16
- package/api/resources/subscriptionSchedules/client/requests/UpdateSubscriptionScheduleRequest.ts +0 -38
- package/api/resources/subscriptionSchedules/client/requests/index.d.ts +0 -7
- package/api/resources/subscriptionSchedules/client/requests/index.js +0 -3
- package/api/resources/subscriptionSchedules/client/requests/index.ts +0 -6
- package/api/resources/subscriptionSchedules/index.d.ts +0 -3
- package/api/resources/subscriptionSchedules/index.js +0 -3
- package/api/resources/subscriptionSchedules/index.ts +0 -2
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.d.ts +0 -10
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.js +0 -10
- package/api/resources/subscriptionSchedules/types/SubscriptionSchedulesListRequestStatus.ts +0 -12
- package/api/resources/subscriptionSchedules/types/index.d.ts +0 -2
- package/api/resources/subscriptionSchedules/types/index.js +0 -2
- package/api/resources/subscriptionSchedules/types/index.ts +0 -1
- package/api/resources/subscriptions/client/Client.d.ts +0 -309
- package/api/resources/subscriptions/client/Client.js +0 -971
- package/api/resources/subscriptions/client/Client.ts +0 -1293
- package/api/resources/subscriptions/client/index.d.ts +0 -2
- package/api/resources/subscriptions/client/index.js +0 -2
- package/api/resources/subscriptions/client/index.ts +0 -1
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.d.ts +0 -24
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.js +0 -10
- package/api/resources/subscriptions/client/requests/CancelSubscriptionInput.ts +0 -26
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.d.ts +0 -38
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.js +0 -11
- package/api/resources/subscriptions/client/requests/CreateSubscriptionItemInput.ts +0 -40
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.d.ts +0 -24
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.js +0 -11
- package/api/resources/subscriptions/client/requests/PauseSubscriptionInput.ts +0 -26
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.d.ts +0 -14
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionItemsDeleteRequest.ts +0 -15
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.d.ts +0 -15
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionItemsListRequest.ts +0 -16
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.d.ts +0 -11
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsCancelRequest.ts +0 -12
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.d.ts +0 -24
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.js +0 -10
- package/api/resources/subscriptions/client/requests/SubscriptionsChangePlanRequest.ts +0 -26
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.d.ts +0 -24
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.js +0 -10
- package/api/resources/subscriptions/client/requests/SubscriptionsChangeQuantityRequest.ts +0 -26
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.d.ts +0 -42
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.js +0 -15
- package/api/resources/subscriptions/client/requests/SubscriptionsCreateRequest.ts +0 -44
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.d.ts +0 -16
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsListRequest.ts +0 -18
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.d.ts +0 -12
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsPreviewRenewalRequest.ts +0 -13
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.d.ts +0 -11
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsReactivateRequest.ts +0 -12
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.d.ts +0 -11
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsResumeRequest.ts +0 -12
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.d.ts +0 -11
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.js +0 -3
- package/api/resources/subscriptions/client/requests/SubscriptionsRetrieveRequest.ts +0 -12
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.d.ts +0 -30
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.js +0 -13
- package/api/resources/subscriptions/client/requests/SubscriptionsUpdateRequest.ts +0 -32
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.d.ts +0 -33
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.js +0 -11
- package/api/resources/subscriptions/client/requests/UpdateSubscriptionItemInput.ts +0 -35
- package/api/resources/subscriptions/client/requests/index.d.ts +0 -17
- package/api/resources/subscriptions/client/requests/index.js +0 -9
- package/api/resources/subscriptions/client/requests/index.ts +0 -16
- package/api/resources/subscriptions/index.d.ts +0 -3
- package/api/resources/subscriptions/index.js +0 -3
- package/api/resources/subscriptions/index.ts +0 -2
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.d.ts +0 -12
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.js +0 -12
- package/api/resources/subscriptions/types/SubscriptionsListRequestStatus.ts +0 -14
- package/api/resources/subscriptions/types/index.d.ts +0 -2
- package/api/resources/subscriptions/types/index.js +0 -2
- package/api/resources/subscriptions/types/index.ts +0 -1
- package/api/resources/syncState/client/Client.d.ts +0 -52
- package/api/resources/syncState/client/Client.js +0 -129
- package/api/resources/syncState/client/Client.ts +0 -183
- package/api/resources/syncState/client/index.d.ts +0 -2
- package/api/resources/syncState/client/index.js +0 -2
- package/api/resources/syncState/client/index.ts +0 -1
- package/api/resources/syncState/client/requests/SyncStateListRequest.d.ts +0 -14
- package/api/resources/syncState/client/requests/SyncStateListRequest.js +0 -3
- package/api/resources/syncState/client/requests/SyncStateListRequest.ts +0 -15
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.d.ts +0 -31
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.js +0 -11
- package/api/resources/syncState/client/requests/SyncStateUpdateRequest.ts +0 -33
- package/api/resources/syncState/client/requests/index.d.ts +0 -3
- package/api/resources/syncState/client/requests/index.js +0 -2
- package/api/resources/syncState/client/requests/index.ts +0 -2
- package/api/resources/syncState/index.d.ts +0 -3
- package/api/resources/syncState/index.js +0 -3
- package/api/resources/syncState/index.ts +0 -2
- package/api/resources/syncState/types/SyncStateListResponse.d.ts +0 -31
- package/api/resources/syncState/types/SyncStateListResponse.js +0 -17
- package/api/resources/syncState/types/SyncStateListResponse.ts +0 -35
- package/api/resources/syncState/types/SyncStateUpdateResponse.d.ts +0 -29
- package/api/resources/syncState/types/SyncStateUpdateResponse.js +0 -14
- package/api/resources/syncState/types/SyncStateUpdateResponse.ts +0 -32
- package/api/resources/syncState/types/index.d.ts +0 -3
- package/api/resources/syncState/types/index.js +0 -3
- package/api/resources/syncState/types/index.ts +0 -2
- package/api/resources/terminalDevices/client/Client.d.ts +0 -50
- package/api/resources/terminalDevices/client/Client.js +0 -124
- package/api/resources/terminalDevices/client/Client.ts +0 -168
- package/api/resources/terminalDevices/client/index.d.ts +0 -2
- package/api/resources/terminalDevices/client/index.js +0 -2
- package/api/resources/terminalDevices/client/index.ts +0 -1
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.d.ts +0 -12
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.js +0 -3
- package/api/resources/terminalDevices/client/requests/ListTerminalDevicesRequest.ts +0 -14
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.d.ts +0 -11
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.js +0 -3
- package/api/resources/terminalDevices/client/requests/RetrieveTerminalDevicesRequest.ts +0 -12
- package/api/resources/terminalDevices/client/requests/index.d.ts +0 -3
- package/api/resources/terminalDevices/client/requests/index.js +0 -2
- package/api/resources/terminalDevices/client/requests/index.ts +0 -2
- package/api/resources/terminalDevices/index.d.ts +0 -3
- package/api/resources/terminalDevices/index.js +0 -3
- package/api/resources/terminalDevices/index.ts +0 -2
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.d.ts +0 -8
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.js +0 -8
- package/api/resources/terminalDevices/types/ListTerminalDevicesRequestStatus.ts +0 -10
- package/api/resources/terminalDevices/types/index.d.ts +0 -2
- package/api/resources/terminalDevices/types/index.js +0 -2
- package/api/resources/terminalDevices/types/index.ts +0 -1
- package/api/resources/terminalPayments/client/Client.d.ts +0 -134
- package/api/resources/terminalPayments/client/Client.js +0 -374
- package/api/resources/terminalPayments/client/Client.ts +0 -503
- package/api/resources/terminalPayments/client/index.d.ts +0 -2
- package/api/resources/terminalPayments/client/index.js +0 -2
- package/api/resources/terminalPayments/client/index.ts +0 -1
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.d.ts +0 -11
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/CancelTerminalPaymentsRequest.ts +0 -12
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.d.ts +0 -21
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/CreateTerminalPaymentRequest.ts +0 -22
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.d.ts +0 -20
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/ListTerminalPaymentsRequest.ts +0 -22
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.d.ts +0 -15
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/RefundTerminalPaymentRequest.ts +0 -16
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.d.ts +0 -11
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/RetrieveTerminalPaymentsRequest.ts +0 -12
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.d.ts +0 -13
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.js +0 -3
- package/api/resources/terminalPayments/client/requests/VoidTerminalPaymentRequest.ts +0 -14
- package/api/resources/terminalPayments/client/requests/index.d.ts +0 -7
- package/api/resources/terminalPayments/client/requests/index.js +0 -2
- package/api/resources/terminalPayments/client/requests/index.ts +0 -6
- package/api/resources/terminalPayments/index.d.ts +0 -3
- package/api/resources/terminalPayments/index.js +0 -3
- package/api/resources/terminalPayments/index.ts +0 -2
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.d.ts +0 -12
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.js +0 -12
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestStatus.ts +0 -14
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.d.ts +0 -8
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.js +0 -8
- package/api/resources/terminalPayments/types/ListTerminalPaymentsRequestType.ts +0 -10
- package/api/resources/terminalPayments/types/index.d.ts +0 -3
- package/api/resources/terminalPayments/types/index.js +0 -3
- package/api/resources/terminalPayments/types/index.ts +0 -2
- package/api/resources/transactions/client/Client.d.ts +0 -49
- package/api/resources/transactions/client/Client.js +0 -132
- package/api/resources/transactions/client/Client.ts +0 -186
- package/api/resources/transactions/client/index.d.ts +0 -2
- package/api/resources/transactions/client/index.js +0 -2
- package/api/resources/transactions/client/index.ts +0 -1
- package/api/resources/transactions/client/requests/TransactionsListRequest.d.ts +0 -26
- package/api/resources/transactions/client/requests/TransactionsListRequest.js +0 -3
- package/api/resources/transactions/client/requests/TransactionsListRequest.ts +0 -28
- package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.d.ts +0 -11
- package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.js +0 -3
- package/api/resources/transactions/client/requests/TransactionsRetrieveRequest.ts +0 -12
- package/api/resources/transactions/client/requests/index.d.ts +0 -3
- package/api/resources/transactions/client/requests/index.js +0 -2
- package/api/resources/transactions/client/requests/index.ts +0 -2
- package/api/resources/transactions/index.d.ts +0 -3
- package/api/resources/transactions/index.js +0 -3
- package/api/resources/transactions/index.ts +0 -2
- package/api/resources/transactions/types/TransactionsListRequestStatus.d.ts +0 -9
- package/api/resources/transactions/types/TransactionsListRequestStatus.js +0 -9
- package/api/resources/transactions/types/TransactionsListRequestStatus.ts +0 -11
- package/api/resources/transactions/types/TransactionsListRequestType.d.ts +0 -11
- package/api/resources/transactions/types/TransactionsListRequestType.js +0 -11
- package/api/resources/transactions/types/TransactionsListRequestType.ts +0 -13
- package/api/resources/transactions/types/index.d.ts +0 -3
- package/api/resources/transactions/types/index.js +0 -3
- package/api/resources/transactions/types/index.ts +0 -2
- package/api/resources/usage/client/Client.d.ts +0 -115
- package/api/resources/usage/client/Client.js +0 -324
- package/api/resources/usage/client/Client.ts +0 -444
- package/api/resources/usage/client/index.d.ts +0 -2
- package/api/resources/usage/client/index.js +0 -2
- package/api/resources/usage/client/index.ts +0 -1
- package/api/resources/usage/client/requests/AggregateUsageRequest.d.ts +0 -23
- package/api/resources/usage/client/requests/AggregateUsageRequest.js +0 -3
- package/api/resources/usage/client/requests/AggregateUsageRequest.ts +0 -24
- package/api/resources/usage/client/requests/GetBalanceUsageRequest.d.ts +0 -18
- package/api/resources/usage/client/requests/GetBalanceUsageRequest.js +0 -3
- package/api/resources/usage/client/requests/GetBalanceUsageRequest.ts +0 -19
- package/api/resources/usage/client/requests/ListEventsUsageRequest.d.ts +0 -25
- package/api/resources/usage/client/requests/ListEventsUsageRequest.js +0 -3
- package/api/resources/usage/client/requests/ListEventsUsageRequest.ts +0 -26
- package/api/resources/usage/client/requests/index.d.ts +0 -4
- package/api/resources/usage/client/requests/index.js +0 -2
- package/api/resources/usage/client/requests/index.ts +0 -3
- package/api/resources/usage/index.d.ts +0 -2
- package/api/resources/usage/index.js +0 -2
- package/api/resources/usage/index.ts +0 -1
- package/api/resources/voids/client/Client.d.ts +0 -73
- package/api/resources/voids/client/Client.js +0 -199
- package/api/resources/voids/client/Client.ts +0 -268
- package/api/resources/voids/client/index.d.ts +0 -2
- package/api/resources/voids/client/index.js +0 -2
- package/api/resources/voids/client/index.ts +0 -1
- package/api/resources/voids/client/requests/CreateVoidInput.d.ts +0 -26
- package/api/resources/voids/client/requests/CreateVoidInput.js +0 -13
- package/api/resources/voids/client/requests/CreateVoidInput.ts +0 -28
- package/api/resources/voids/client/requests/VoidsListRequest.d.ts +0 -26
- package/api/resources/voids/client/requests/VoidsListRequest.js +0 -3
- package/api/resources/voids/client/requests/VoidsListRequest.ts +0 -28
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.d.ts +0 -11
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.js +0 -3
- package/api/resources/voids/client/requests/VoidsRetrieveRequest.ts +0 -12
- package/api/resources/voids/client/requests/index.d.ts +0 -4
- package/api/resources/voids/client/requests/index.js +0 -2
- package/api/resources/voids/client/requests/index.ts +0 -3
- package/api/resources/voids/index.d.ts +0 -3
- package/api/resources/voids/index.js +0 -3
- package/api/resources/voids/index.ts +0 -2
- package/api/resources/voids/types/VoidsListRequestStatus.d.ts +0 -9
- package/api/resources/voids/types/VoidsListRequestStatus.js +0 -9
- package/api/resources/voids/types/VoidsListRequestStatus.ts +0 -10
- package/api/resources/voids/types/index.d.ts +0 -2
- package/api/resources/voids/types/index.js +0 -2
- package/api/resources/voids/types/index.ts +0 -1
- package/api/resources/webhookEndpoints/client/Client.d.ts +0 -82
- package/api/resources/webhookEndpoints/client/Client.js +0 -286
- package/api/resources/webhookEndpoints/client/Client.ts +0 -404
- package/api/resources/webhookEndpoints/client/index.d.ts +0 -2
- package/api/resources/webhookEndpoints/client/index.js +0 -2
- package/api/resources/webhookEndpoints/client/index.ts +0 -1
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.d.ts +0 -13
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.ts +0 -14
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.d.ts +0 -10
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsDeleteRequest.ts +0 -11
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +0 -11
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.ts +0 -13
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.d.ts +0 -10
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRetrieveRequest.ts +0 -11
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.d.ts +0 -10
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsRotateSecretRequest.ts +0 -11
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +0 -14
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.js +0 -3
- package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.ts +0 -15
- package/api/resources/webhookEndpoints/client/requests/index.d.ts +0 -7
- package/api/resources/webhookEndpoints/client/requests/index.js +0 -2
- package/api/resources/webhookEndpoints/client/requests/index.ts +0 -6
- package/api/resources/webhookEndpoints/index.d.ts +0 -3
- package/api/resources/webhookEndpoints/index.js +0 -3
- package/api/resources/webhookEndpoints/index.ts +0 -2
- package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.d.ts +0 -5
- package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.js +0 -3
- package/api/resources/webhookEndpoints/types/WebhookEndpointsCreateResponse.ts +0 -7
- package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.d.ts +0 -10
- package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.js +0 -3
- package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.ts +0 -12
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.d.ts +0 -6
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.js +0 -6
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListRequestStatus.ts +0 -8
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.d.ts +0 -43
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.js +0 -20
- package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.ts +0 -48
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.d.ts +0 -33
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.js +0 -17
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRetrieveResponse.ts +0 -36
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.d.ts +0 -5
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.js +0 -3
- package/api/resources/webhookEndpoints/types/WebhookEndpointsRotateSecretResponse.ts +0 -7
- package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.d.ts +0 -33
- package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.js +0 -17
- package/api/resources/webhookEndpoints/types/WebhookEndpointsUpdateResponse.ts +0 -36
- package/api/resources/webhookEndpoints/types/index.d.ts +0 -8
- package/api/resources/webhookEndpoints/types/index.js +0 -8
- package/api/resources/webhookEndpoints/types/index.ts +0 -7
- package/api/types/BadRequestErrorBody.d.ts +0 -4
- package/api/types/BadRequestErrorBody.js +0 -3
- package/api/types/BadRequestErrorBody.ts +0 -5
- package/api/types/BankAccountDetails.d.ts +0 -22
- package/api/types/BankAccountDetails.js +0 -10
- package/api/types/BankAccountDetails.ts +0 -24
- package/api/types/BatchIngestRequest.d.ts +0 -9
- package/api/types/BatchIngestRequest.js +0 -3
- package/api/types/BatchIngestRequest.ts +0 -11
- package/api/types/BatchIngestResult.d.ts +0 -39
- package/api/types/BatchIngestResult.js +0 -20
- package/api/types/BatchIngestResult.ts +0 -45
- package/api/types/Benefit.d.ts +0 -14
- package/api/types/Benefit.js +0 -3
- package/api/types/Benefit.ts +0 -15
- package/api/types/BillingAnchorRulesResponse.d.ts +0 -18
- package/api/types/BillingAnchorRulesResponse.js +0 -3
- package/api/types/BillingAnchorRulesResponse.ts +0 -21
- package/api/types/BillingDetails.d.ts +0 -27
- package/api/types/BillingDetails.js +0 -3
- package/api/types/BillingDetails.ts +0 -29
- package/api/types/BillingIntervalsResponse.d.ts +0 -17
- package/api/types/BillingIntervalsResponse.js +0 -3
- package/api/types/BillingIntervalsResponse.ts +0 -20
- package/api/types/BillingPreviewErrorResponse.d.ts +0 -8
- package/api/types/BillingPreviewErrorResponse.js +0 -3
- package/api/types/BillingPreviewErrorResponse.ts +0 -9
- package/api/types/BillingPreviewResponse.d.ts +0 -34
- package/api/types/BillingPreviewResponse.js +0 -3
- package/api/types/BillingPreviewResponse.ts +0 -38
- package/api/types/CardDetails.d.ts +0 -38
- package/api/types/CardDetails.js +0 -23
- package/api/types/CardDetails.ts +0 -40
- package/api/types/ChargeCaptureResponse.d.ts +0 -43
- package/api/types/ChargeCaptureResponse.js +0 -17
- package/api/types/ChargeCaptureResponse.ts +0 -46
- package/api/types/ChargeCreateResponse.d.ts +0 -43
- package/api/types/ChargeCreateResponse.js +0 -17
- package/api/types/ChargeCreateResponse.ts +0 -46
- package/api/types/ChargeDuplicateErrorResponse.d.ts +0 -8
- package/api/types/ChargeDuplicateErrorResponse.js +0 -3
- package/api/types/ChargeDuplicateErrorResponse.ts +0 -9
- package/api/types/ChargeErrorResponse.d.ts +0 -8
- package/api/types/ChargeErrorResponse.js +0 -3
- package/api/types/ChargeErrorResponse.ts +0 -9
- package/api/types/ChargeListResponse.d.ts +0 -57
- package/api/types/ChargeListResponse.js +0 -20
- package/api/types/ChargeListResponse.ts +0 -62
- package/api/types/ChargeRefundResponse.d.ts +0 -43
- package/api/types/ChargeRefundResponse.js +0 -17
- package/api/types/ChargeRefundResponse.ts +0 -46
- package/api/types/ChargeRetrieveResponse.d.ts +0 -43
- package/api/types/ChargeRetrieveResponse.js +0 -17
- package/api/types/ChargeRetrieveResponse.ts +0 -46
- package/api/types/CheckoutSession.d.ts +0 -29
- package/api/types/CheckoutSession.js +0 -8
- package/api/types/CheckoutSession.ts +0 -31
- package/api/types/CheckoutSessionCreateResponse.d.ts +0 -21
- package/api/types/CheckoutSessionCreateResponse.js +0 -3
- package/api/types/CheckoutSessionCreateResponse.ts +0 -23
- package/api/types/CheckoutSessionErrorResponse.d.ts +0 -7
- package/api/types/CheckoutSessionErrorResponse.js +0 -3
- package/api/types/CheckoutSessionErrorResponse.ts +0 -8
- package/api/types/CheckoutSessionExpireResponse.d.ts +0 -18
- package/api/types/CheckoutSessionExpireResponse.js +0 -11
- package/api/types/CheckoutSessionExpireResponse.ts +0 -21
- package/api/types/CheckoutSessionRetrieveResponse.d.ts +0 -6
- package/api/types/CheckoutSessionRetrieveResponse.js +0 -3
- package/api/types/CheckoutSessionRetrieveResponse.ts +0 -8
- package/api/types/ConflictErrorBody.d.ts +0 -5
- package/api/types/ConflictErrorBody.js +0 -3
- package/api/types/ConflictErrorBody.ts +0 -6
- package/api/types/CreateMeterResponse.d.ts +0 -8
- package/api/types/CreateMeterResponse.js +0 -3
- package/api/types/CreateMeterResponse.ts +0 -9
- package/api/types/CreditEligibilityResponse.d.ts +0 -22
- package/api/types/CreditEligibilityResponse.js +0 -3
- package/api/types/CreditEligibilityResponse.ts +0 -24
- package/api/types/CreditNote.d.ts +0 -36
- package/api/types/CreditNote.js +0 -3
- package/api/types/CreditNote.ts +0 -37
- package/api/types/CreditNoteCreateResponse.d.ts +0 -8
- package/api/types/CreditNoteCreateResponse.js +0 -3
- package/api/types/CreditNoteCreateResponse.ts +0 -10
- package/api/types/CreditNoteEligibilityResponse.d.ts +0 -38
- package/api/types/CreditNoteEligibilityResponse.js +0 -3
- package/api/types/CreditNoteEligibilityResponse.ts +0 -42
- package/api/types/CreditNoteListResponse.d.ts +0 -9
- package/api/types/CreditNoteListResponse.js +0 -3
- package/api/types/CreditNoteListResponse.ts +0 -11
- package/api/types/CreditNoteResponse.d.ts +0 -9
- package/api/types/CreditNoteResponse.js +0 -3
- package/api/types/CreditNoteResponse.ts +0 -11
- package/api/types/CreditNoteRetrieveResponse.d.ts +0 -8
- package/api/types/CreditNoteRetrieveResponse.js +0 -3
- package/api/types/CreditNoteRetrieveResponse.ts +0 -10
- package/api/types/CreditNoteVoidResponse.d.ts +0 -8
- package/api/types/CreditNoteVoidResponse.js +0 -3
- package/api/types/CreditNoteVoidResponse.ts +0 -10
- package/api/types/CustomerCreateResponse.d.ts +0 -33
- package/api/types/CustomerCreateResponse.js +0 -3
- package/api/types/CustomerCreateResponse.ts +0 -35
- package/api/types/CustomerInvoice.d.ts +0 -15
- package/api/types/CustomerInvoice.js +0 -3
- package/api/types/CustomerInvoice.ts +0 -16
- package/api/types/CustomerListResponse.d.ts +0 -42
- package/api/types/CustomerListResponse.js +0 -3
- package/api/types/CustomerListResponse.ts +0 -46
- package/api/types/CustomerOrder.d.ts +0 -16
- package/api/types/CustomerOrder.js +0 -3
- package/api/types/CustomerOrder.ts +0 -17
- package/api/types/CustomerPayment.d.ts +0 -15
- package/api/types/CustomerPayment.js +0 -3
- package/api/types/CustomerPayment.ts +0 -16
- package/api/types/CustomerPaymentMethodsListResponse.d.ts +0 -8
- package/api/types/CustomerPaymentMethodsListResponse.js +0 -3
- package/api/types/CustomerPaymentMethodsListResponse.ts +0 -10
- package/api/types/CustomerPortalSessionCreateResponse.d.ts +0 -17
- package/api/types/CustomerPortalSessionCreateResponse.js +0 -3
- package/api/types/CustomerPortalSessionCreateResponse.ts +0 -19
- package/api/types/CustomerRetrieveResponse.d.ts +0 -33
- package/api/types/CustomerRetrieveResponse.js +0 -3
- package/api/types/CustomerRetrieveResponse.ts +0 -35
- package/api/types/CustomerSubscription.d.ts +0 -17
- package/api/types/CustomerSubscription.js +0 -3
- package/api/types/CustomerSubscription.ts +0 -18
- package/api/types/CustomerUpdateResponse.d.ts +0 -33
- package/api/types/CustomerUpdateResponse.js +0 -3
- package/api/types/CustomerUpdateResponse.ts +0 -35
- package/api/types/Discount.d.ts +0 -25
- package/api/types/Discount.js +0 -3
- package/api/types/Discount.ts +0 -26
- package/api/types/DiscountCreateResponse.d.ts +0 -8
- package/api/types/DiscountCreateResponse.js +0 -3
- package/api/types/DiscountCreateResponse.ts +0 -10
- package/api/types/DiscountDeleteResponse.d.ts +0 -8
- package/api/types/DiscountDeleteResponse.js +0 -3
- package/api/types/DiscountDeleteResponse.ts +0 -10
- package/api/types/DiscountListResponse.d.ts +0 -17
- package/api/types/DiscountListResponse.js +0 -3
- package/api/types/DiscountListResponse.ts +0 -20
- package/api/types/DiscountRetrieveResponse.d.ts +0 -8
- package/api/types/DiscountRetrieveResponse.js +0 -3
- package/api/types/DiscountRetrieveResponse.ts +0 -10
- package/api/types/DiscountUpdateResponse.d.ts +0 -8
- package/api/types/DiscountUpdateResponse.js +0 -3
- package/api/types/DiscountUpdateResponse.ts +0 -10
- package/api/types/Dispute.d.ts +0 -73
- package/api/types/Dispute.js +0 -20
- package/api/types/Dispute.ts +0 -75
- package/api/types/DryRunResult.d.ts +0 -43
- package/api/types/DryRunResult.js +0 -19
- package/api/types/DryRunResult.ts +0 -50
- package/api/types/Entitlement.d.ts +0 -34
- package/api/types/Entitlement.js +0 -19
- package/api/types/Entitlement.ts +0 -37
- package/api/types/EntitlementCheck.d.ts +0 -28
- package/api/types/EntitlementCheck.js +0 -19
- package/api/types/EntitlementCheck.ts +0 -31
- package/api/types/EntitlementCheckResponse.d.ts +0 -5
- package/api/types/EntitlementCheckResponse.js +0 -3
- package/api/types/EntitlementCheckResponse.ts +0 -7
- package/api/types/EntitlementListResponse.d.ts +0 -19
- package/api/types/EntitlementListResponse.js +0 -3
- package/api/types/EntitlementListResponse.ts +0 -23
- package/api/types/ErrorResponse.d.ts +0 -13
- package/api/types/ErrorResponse.js +0 -3
- package/api/types/ErrorResponse.ts +0 -15
- package/api/types/Event.d.ts +0 -40
- package/api/types/Event.js +0 -9
- package/api/types/Event.ts +0 -44
- package/api/types/EventErrorResponse.d.ts +0 -19
- package/api/types/EventErrorResponse.js +0 -3
- package/api/types/EventErrorResponse.ts +0 -21
- package/api/types/EventListResponse.d.ts +0 -18
- package/api/types/EventListResponse.js +0 -8
- package/api/types/EventListResponse.ts +0 -21
- package/api/types/EventRequest.d.ts +0 -10
- package/api/types/EventRequest.js +0 -3
- package/api/types/EventRequest.ts +0 -11
- package/api/types/Export.d.ts +0 -59
- package/api/types/Export.js +0 -30
- package/api/types/Export.ts +0 -61
- package/api/types/ExportCreateResponse.d.ts +0 -8
- package/api/types/ExportCreateResponse.js +0 -3
- package/api/types/ExportCreateResponse.ts +0 -10
- package/api/types/ExportRetrieveResponse.d.ts +0 -8
- package/api/types/ExportRetrieveResponse.js +0 -3
- package/api/types/ExportRetrieveResponse.ts +0 -10
- package/api/types/ExternalUpsertResponse.d.ts +0 -11
- package/api/types/ExternalUpsertResponse.js +0 -3
- package/api/types/ExternalUpsertResponse.ts +0 -13
- package/api/types/Import.d.ts +0 -63
- package/api/types/Import.js +0 -24
- package/api/types/Import.ts +0 -66
- package/api/types/ImportCreateResponse.d.ts +0 -8
- package/api/types/ImportCreateResponse.js +0 -3
- package/api/types/ImportCreateResponse.ts +0 -10
- package/api/types/ImportRetrieveResponse.d.ts +0 -8
- package/api/types/ImportRetrieveResponse.js +0 -3
- package/api/types/ImportRetrieveResponse.ts +0 -10
- package/api/types/InternalServerErrorBody.d.ts +0 -5
- package/api/types/InternalServerErrorBody.js +0 -3
- package/api/types/InternalServerErrorBody.ts +0 -6
- package/api/types/Invoice.d.ts +0 -86
- package/api/types/Invoice.js +0 -31
- package/api/types/Invoice.ts +0 -89
- package/api/types/InvoiceCommentDetail.d.ts +0 -13
- package/api/types/InvoiceCommentDetail.js +0 -3
- package/api/types/InvoiceCommentDetail.ts +0 -14
- package/api/types/InvoiceCommentDetailResponse.d.ts +0 -9
- package/api/types/InvoiceCommentDetailResponse.js +0 -3
- package/api/types/InvoiceCommentDetailResponse.ts +0 -11
- package/api/types/InvoiceCommentListDetailResponse.d.ts +0 -9
- package/api/types/InvoiceCommentListDetailResponse.js +0 -3
- package/api/types/InvoiceCommentListDetailResponse.ts +0 -11
- package/api/types/InvoiceListResponse.d.ts +0 -9
- package/api/types/InvoiceListResponse.js +0 -3
- package/api/types/InvoiceListResponse.ts +0 -11
- package/api/types/InvoiceResponse.d.ts +0 -9
- package/api/types/InvoiceResponse.js +0 -3
- package/api/types/InvoiceResponse.ts +0 -11
- package/api/types/MeterError.d.ts +0 -13
- package/api/types/MeterError.js +0 -3
- package/api/types/MeterError.ts +0 -17
- package/api/types/MeterGetResponse.d.ts +0 -8
- package/api/types/MeterGetResponse.js +0 -3
- package/api/types/MeterGetResponse.ts +0 -9
- package/api/types/MeterListResponse.d.ts +0 -16
- package/api/types/MeterListResponse.js +0 -3
- package/api/types/MeterListResponse.ts +0 -18
- package/api/types/MeterPriceError.d.ts +0 -13
- package/api/types/MeterPriceError.js +0 -3
- package/api/types/MeterPriceError.ts +0 -17
- package/api/types/MeterPriceListResponse.d.ts +0 -8
- package/api/types/MeterPriceListResponse.js +0 -3
- package/api/types/MeterPriceListResponse.ts +0 -9
- package/api/types/MeterPriceResponse.d.ts +0 -8
- package/api/types/MeterPriceResponse.js +0 -3
- package/api/types/MeterPriceResponse.ts +0 -9
- package/api/types/NotFoundErrorBody.d.ts +0 -4
- package/api/types/NotFoundErrorBody.js +0 -3
- package/api/types/NotFoundErrorBody.ts +0 -5
- package/api/types/OauthScope.d.ts +0 -205
- package/api/types/OauthScope.js +0 -205
- package/api/types/OauthScope.ts +0 -206
- package/api/types/OpenDispute.d.ts +0 -36
- package/api/types/OpenDispute.js +0 -3
- package/api/types/OpenDispute.ts +0 -37
- package/api/types/Order.d.ts +0 -83
- package/api/types/Order.js +0 -31
- package/api/types/Order.ts +0 -86
- package/api/types/OrderErrorResponse.d.ts +0 -15
- package/api/types/OrderErrorResponse.js +0 -3
- package/api/types/OrderErrorResponse.ts +0 -17
- package/api/types/OrderLineItem.d.ts +0 -23
- package/api/types/OrderLineItem.js +0 -3
- package/api/types/OrderLineItem.ts +0 -24
- package/api/types/OrderListResponse.d.ts +0 -17
- package/api/types/OrderListResponse.js +0 -8
- package/api/types/OrderListResponse.ts +0 -20
- package/api/types/Pagination.d.ts +0 -13
- package/api/types/Pagination.js +0 -3
- package/api/types/Pagination.ts +0 -14
- package/api/types/Payment.d.ts +0 -86
- package/api/types/Payment.js +0 -35
- package/api/types/Payment.ts +0 -88
- package/api/types/PaymentErrorResponse.d.ts +0 -15
- package/api/types/PaymentErrorResponse.js +0 -3
- package/api/types/PaymentErrorResponse.ts +0 -17
- package/api/types/PaymentIntent.d.ts +0 -133
- package/api/types/PaymentIntent.js +0 -40
- package/api/types/PaymentIntent.ts +0 -141
- package/api/types/PaymentIntentErrorResponse.d.ts +0 -19
- package/api/types/PaymentIntentErrorResponse.js +0 -3
- package/api/types/PaymentIntentErrorResponse.ts +0 -21
- package/api/types/PaymentIntentListResponse.d.ts +0 -18
- package/api/types/PaymentIntentListResponse.js +0 -8
- package/api/types/PaymentIntentListResponse.ts +0 -21
- package/api/types/PaymentListResponse.d.ts +0 -17
- package/api/types/PaymentListResponse.js +0 -8
- package/api/types/PaymentListResponse.ts +0 -20
- package/api/types/PaymentMethod.d.ts +0 -51
- package/api/types/PaymentMethod.js +0 -21
- package/api/types/PaymentMethod.ts +0 -54
- package/api/types/Payout.d.ts +0 -34
- package/api/types/Payout.js +0 -12
- package/api/types/Payout.ts +0 -36
- package/api/types/PayoutPayment.d.ts +0 -14
- package/api/types/PayoutPayment.js +0 -3
- package/api/types/PayoutPayment.ts +0 -15
- package/api/types/PhaseItem.d.ts +0 -10
- package/api/types/PhaseItem.js +0 -3
- package/api/types/PhaseItem.ts +0 -11
- package/api/types/Price.d.ts +0 -112
- package/api/types/Price.js +0 -45
- package/api/types/Price.ts +0 -117
- package/api/types/PriceErrorResponse.d.ts +0 -15
- package/api/types/PriceErrorResponse.js +0 -3
- package/api/types/PriceErrorResponse.ts +0 -17
- package/api/types/PriceListResponse.d.ts +0 -17
- package/api/types/PriceListResponse.js +0 -8
- package/api/types/PriceListResponse.ts +0 -20
- package/api/types/PriceTier.d.ts +0 -9
- package/api/types/PriceTier.js +0 -3
- package/api/types/PriceTier.ts +0 -10
- package/api/types/Product.d.ts +0 -110
- package/api/types/Product.js +0 -44
- package/api/types/Product.ts +0 -112
- package/api/types/ProductCreateResponse.d.ts +0 -8
- package/api/types/ProductCreateResponse.js +0 -3
- package/api/types/ProductCreateResponse.ts +0 -10
- package/api/types/ProductErrorResponse.d.ts +0 -7
- package/api/types/ProductErrorResponse.js +0 -3
- package/api/types/ProductErrorResponse.ts +0 -8
- package/api/types/ProductListResponse.d.ts +0 -9
- package/api/types/ProductListResponse.js +0 -3
- package/api/types/ProductListResponse.ts +0 -11
- package/api/types/ProductRetrieveResponse.d.ts +0 -8
- package/api/types/ProductRetrieveResponse.js +0 -3
- package/api/types/ProductRetrieveResponse.ts +0 -10
- package/api/types/ProductUpdateResponse.d.ts +0 -8
- package/api/types/ProductUpdateResponse.js +0 -3
- package/api/types/ProductUpdateResponse.ts +0 -10
- package/api/types/Refund.d.ts +0 -45
- package/api/types/Refund.js +0 -21
- package/api/types/Refund.ts +0 -47
- package/api/types/RefundCreateResponse.d.ts +0 -8
- package/api/types/RefundCreateResponse.js +0 -3
- package/api/types/RefundCreateResponse.ts +0 -10
- package/api/types/RefundListResponse.d.ts +0 -21
- package/api/types/RefundListResponse.js +0 -3
- package/api/types/RefundListResponse.ts +0 -24
- package/api/types/RefundRetrieveResponse.d.ts +0 -8
- package/api/types/RefundRetrieveResponse.js +0 -3
- package/api/types/RefundRetrieveResponse.ts +0 -10
- package/api/types/ResendWebhookResponse.d.ts +0 -12
- package/api/types/ResendWebhookResponse.js +0 -3
- package/api/types/ResendWebhookResponse.ts +0 -13
- package/api/types/SchedulePhase.d.ts +0 -42
- package/api/types/SchedulePhase.js +0 -16
- package/api/types/SchedulePhase.ts +0 -45
- package/api/types/StaleUpdateResponse.d.ts +0 -17
- package/api/types/StaleUpdateResponse.js +0 -8
- package/api/types/StaleUpdateResponse.ts +0 -19
- package/api/types/SubscriptionCancelResponse.d.ts +0 -7
- package/api/types/SubscriptionCancelResponse.js +0 -3
- package/api/types/SubscriptionCancelResponse.ts +0 -8
- package/api/types/SubscriptionCancelSubscriptionResponse.d.ts +0 -66
- package/api/types/SubscriptionCancelSubscriptionResponse.js +0 -30
- package/api/types/SubscriptionCancelSubscriptionResponse.ts +0 -71
- package/api/types/SubscriptionChangePlanResponse.d.ts +0 -70
- package/api/types/SubscriptionChangePlanResponse.js +0 -30
- package/api/types/SubscriptionChangePlanResponse.ts +0 -75
- package/api/types/SubscriptionChangeQuantityResponse.d.ts +0 -70
- package/api/types/SubscriptionChangeQuantityResponse.js +0 -30
- package/api/types/SubscriptionChangeQuantityResponse.ts +0 -75
- package/api/types/SubscriptionCreateResponse.d.ts +0 -66
- package/api/types/SubscriptionCreateResponse.js +0 -30
- package/api/types/SubscriptionCreateResponse.ts +0 -71
- package/api/types/SubscriptionItem.d.ts +0 -31
- package/api/types/SubscriptionItem.js +0 -11
- package/api/types/SubscriptionItem.ts +0 -33
- package/api/types/SubscriptionItemCreateResponse.d.ts +0 -8
- package/api/types/SubscriptionItemCreateResponse.js +0 -3
- package/api/types/SubscriptionItemCreateResponse.ts +0 -10
- package/api/types/SubscriptionItemDeleteResponse.d.ts +0 -8
- package/api/types/SubscriptionItemDeleteResponse.js +0 -3
- package/api/types/SubscriptionItemDeleteResponse.ts +0 -9
- package/api/types/SubscriptionItemListResponse.d.ts +0 -17
- package/api/types/SubscriptionItemListResponse.js +0 -3
- package/api/types/SubscriptionItemListResponse.ts +0 -20
- package/api/types/SubscriptionItemUpdateResponse.d.ts +0 -8
- package/api/types/SubscriptionItemUpdateResponse.js +0 -3
- package/api/types/SubscriptionItemUpdateResponse.ts +0 -10
- package/api/types/SubscriptionListResponse.d.ts +0 -76
- package/api/types/SubscriptionListResponse.js +0 -33
- package/api/types/SubscriptionListResponse.ts +0 -83
- package/api/types/SubscriptionPauseResponse.d.ts +0 -66
- package/api/types/SubscriptionPauseResponse.js +0 -30
- package/api/types/SubscriptionPauseResponse.ts +0 -71
- package/api/types/SubscriptionPreviewRenewalResponse.d.ts +0 -32
- package/api/types/SubscriptionPreviewRenewalResponse.js +0 -3
- package/api/types/SubscriptionPreviewRenewalResponse.ts +0 -36
- package/api/types/SubscriptionReactivateResponse.d.ts +0 -66
- package/api/types/SubscriptionReactivateResponse.js +0 -30
- package/api/types/SubscriptionReactivateResponse.ts +0 -71
- package/api/types/SubscriptionResumeResponse.d.ts +0 -66
- package/api/types/SubscriptionResumeResponse.js +0 -30
- package/api/types/SubscriptionResumeResponse.ts +0 -71
- package/api/types/SubscriptionRetrieveResponse.d.ts +0 -66
- package/api/types/SubscriptionRetrieveResponse.js +0 -30
- package/api/types/SubscriptionRetrieveResponse.ts +0 -71
- package/api/types/SubscriptionSchedule.d.ts +0 -64
- package/api/types/SubscriptionSchedule.js +0 -22
- package/api/types/SubscriptionSchedule.ts +0 -69
- package/api/types/SubscriptionScheduleErrorResponse.d.ts +0 -19
- package/api/types/SubscriptionScheduleErrorResponse.js +0 -3
- package/api/types/SubscriptionScheduleErrorResponse.ts +0 -21
- package/api/types/SubscriptionScheduleListResponse.d.ts +0 -18
- package/api/types/SubscriptionScheduleListResponse.js +0 -8
- package/api/types/SubscriptionScheduleListResponse.ts +0 -21
- package/api/types/SubscriptionTerms.d.ts +0 -49
- package/api/types/SubscriptionTerms.js +0 -28
- package/api/types/SubscriptionTerms.ts +0 -51
- package/api/types/SubscriptionUpdateResponse.d.ts +0 -66
- package/api/types/SubscriptionUpdateResponse.js +0 -30
- package/api/types/SubscriptionUpdateResponse.ts +0 -71
- package/api/types/SuccessResponse.d.ts +0 -7
- package/api/types/SuccessResponse.js +0 -3
- package/api/types/SuccessResponse.ts +0 -8
- package/api/types/TerminalDevice.d.ts +0 -42
- package/api/types/TerminalDevice.js +0 -17
- package/api/types/TerminalDevice.ts +0 -44
- package/api/types/TerminalDeviceErrorResponse.d.ts +0 -8
- package/api/types/TerminalDeviceErrorResponse.js +0 -3
- package/api/types/TerminalDeviceErrorResponse.ts +0 -9
- package/api/types/TerminalDeviceListResponse.d.ts +0 -14
- package/api/types/TerminalDeviceListResponse.js +0 -3
- package/api/types/TerminalDeviceListResponse.ts +0 -17
- package/api/types/TerminalDeviceResponse.d.ts +0 -8
- package/api/types/TerminalDeviceResponse.js +0 -3
- package/api/types/TerminalDeviceResponse.ts +0 -10
- package/api/types/TerminalPayment.d.ts +0 -66
- package/api/types/TerminalPayment.js +0 -23
- package/api/types/TerminalPayment.ts +0 -68
- package/api/types/TerminalPaymentErrorResponse.d.ts +0 -9
- package/api/types/TerminalPaymentErrorResponse.js +0 -3
- package/api/types/TerminalPaymentErrorResponse.ts +0 -10
- package/api/types/TerminalPaymentListResponse.d.ts +0 -15
- package/api/types/TerminalPaymentListResponse.js +0 -3
- package/api/types/TerminalPaymentListResponse.ts +0 -18
- package/api/types/TerminalPaymentResponse.d.ts +0 -8
- package/api/types/TerminalPaymentResponse.js +0 -3
- package/api/types/TerminalPaymentResponse.ts +0 -10
- package/api/types/TestEventResponse.d.ts +0 -12
- package/api/types/TestEventResponse.js +0 -3
- package/api/types/TestEventResponse.ts +0 -14
- package/api/types/Transaction.d.ts +0 -71
- package/api/types/Transaction.js +0 -25
- package/api/types/Transaction.ts +0 -73
- package/api/types/TransactionListResponse.d.ts +0 -17
- package/api/types/TransactionListResponse.js +0 -8
- package/api/types/TransactionListResponse.ts +0 -20
- package/api/types/TransactionRetrieveResponse.d.ts +0 -8
- package/api/types/TransactionRetrieveResponse.js +0 -3
- package/api/types/TransactionRetrieveResponse.ts +0 -10
- package/api/types/TransactionReversalEligibilityResponse.d.ts +0 -26
- package/api/types/TransactionReversalEligibilityResponse.js +0 -3
- package/api/types/TransactionReversalEligibilityResponse.ts +0 -28
- package/api/types/TransformQuantity.d.ts +0 -18
- package/api/types/TransformQuantity.js +0 -10
- package/api/types/TransformQuantity.ts +0 -20
- package/api/types/UnauthorizedErrorBody.d.ts +0 -4
- package/api/types/UnauthorizedErrorBody.js +0 -3
- package/api/types/UnauthorizedErrorBody.ts +0 -5
- package/api/types/UpdateMeterResponse.d.ts +0 -8
- package/api/types/UpdateMeterResponse.js +0 -3
- package/api/types/UpdateMeterResponse.ts +0 -9
- package/api/types/UsageAggregateResponse.d.ts +0 -20
- package/api/types/UsageAggregateResponse.js +0 -8
- package/api/types/UsageAggregateResponse.ts +0 -22
- package/api/types/UsageBalanceMeter.d.ts +0 -34
- package/api/types/UsageBalanceMeter.js +0 -3
- package/api/types/UsageBalanceMeter.ts +0 -35
- package/api/types/UsageBalanceResponse.d.ts +0 -21
- package/api/types/UsageBalanceResponse.js +0 -8
- package/api/types/UsageBalanceResponse.ts +0 -24
- package/api/types/UsageEvent.d.ts +0 -24
- package/api/types/UsageEvent.js +0 -3
- package/api/types/UsageEvent.ts +0 -25
- package/api/types/UsageEventError.d.ts +0 -13
- package/api/types/UsageEventError.js +0 -3
- package/api/types/UsageEventError.ts +0 -17
- package/api/types/UsageEventListResponse.d.ts +0 -16
- package/api/types/UsageEventListResponse.js +0 -8
- package/api/types/UsageEventListResponse.ts +0 -18
- package/api/types/Void.d.ts +0 -42
- package/api/types/Void.js +0 -18
- package/api/types/Void.ts +0 -44
- package/api/types/VoidCreateResponse.d.ts +0 -8
- package/api/types/VoidCreateResponse.js +0 -3
- package/api/types/VoidCreateResponse.ts +0 -10
- package/api/types/VoidListResponse.d.ts +0 -21
- package/api/types/VoidListResponse.js +0 -3
- package/api/types/VoidListResponse.ts +0 -24
- package/api/types/VoidRetrieveResponse.d.ts +0 -8
- package/api/types/VoidRetrieveResponse.js +0 -3
- package/api/types/VoidRetrieveResponse.ts +0 -10
- package/api/types/WebhookEndpoint.d.ts +0 -30
- package/api/types/WebhookEndpoint.js +0 -14
- package/api/types/WebhookEndpoint.ts +0 -32
- package/api/types/index.d.ts +0 -165
- package/api/types/index.js +0 -165
- package/api/types/index.ts +0 -164
- package/auth/HeaderAuthProvider.d.ts +0 -21
- package/auth/HeaderAuthProvider.js +0 -33
- package/auth/HeaderAuthProvider.ts +0 -48
- package/auth/index.d.ts +0 -2
- package/auth/index.js +0 -2
- package/auth/index.ts +0 -1
- package/core/auth/AuthProvider.d.ts +0 -8
- package/core/auth/AuthProvider.js +0 -2
- package/core/auth/AuthProvider.ts +0 -6
- package/core/auth/AuthRequest.d.ts +0 -10
- package/core/auth/AuthRequest.js +0 -2
- package/core/auth/AuthRequest.ts +0 -9
- package/core/auth/BasicAuth.d.ts +0 -9
- package/core/auth/BasicAuth.js +0 -25
- package/core/auth/BasicAuth.ts +0 -32
- package/core/auth/BearerToken.d.ts +0 -8
- package/core/auth/BearerToken.js +0 -14
- package/core/auth/BearerToken.ts +0 -20
- package/core/auth/NoOpAuthProvider.d.ts +0 -6
- package/core/auth/NoOpAuthProvider.js +0 -6
- package/core/auth/NoOpAuthProvider.ts +0 -8
- package/core/auth/index.d.ts +0 -6
- package/core/auth/index.js +0 -4
- package/core/auth/index.ts +0 -5
- package/core/base64.d.ts +0 -3
- package/core/base64.js +0 -23
- package/core/base64.ts +0 -27
- package/core/exports.d.ts +0 -2
- package/core/exports.js +0 -2
- package/core/exports.ts +0 -1
- package/core/fetcher/APIResponse.d.ts +0 -21
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/APIResponse.ts +0 -23
- package/core/fetcher/BinaryResponse.d.ts +0 -20
- package/core/fetcher/BinaryResponse.js +0 -15
- package/core/fetcher/BinaryResponse.ts +0 -34
- package/core/fetcher/EndpointMetadata.d.ts +0 -14
- package/core/fetcher/EndpointMetadata.js +0 -2
- package/core/fetcher/EndpointMetadata.ts +0 -13
- package/core/fetcher/EndpointSupplier.d.ts +0 -13
- package/core/fetcher/EndpointSupplier.js +0 -11
- package/core/fetcher/EndpointSupplier.ts +0 -14
- package/core/fetcher/Fetcher.d.ts +0 -49
- package/core/fetcher/Fetcher.js +0 -296
- package/core/fetcher/Fetcher.ts +0 -391
- package/core/fetcher/Headers.d.ts +0 -3
- package/core/fetcher/Headers.js +0 -83
- package/core/fetcher/Headers.ts +0 -93
- package/core/fetcher/HttpResponsePromise.d.ts +0 -59
- package/core/fetcher/HttpResponsePromise.js +0 -89
- package/core/fetcher/HttpResponsePromise.ts +0 -116
- package/core/fetcher/RawResponse.d.ts +0 -30
- package/core/fetcher/RawResponse.js +0 -41
- package/core/fetcher/RawResponse.ts +0 -61
- package/core/fetcher/Supplier.d.ts +0 -5
- package/core/fetcher/Supplier.js +0 -11
- package/core/fetcher/Supplier.ts +0 -11
- package/core/fetcher/createRequestUrl.d.ts +0 -2
- package/core/fetcher/createRequestUrl.js +0 -6
- package/core/fetcher/createRequestUrl.ts +0 -6
- package/core/fetcher/getErrorResponseBody.d.ts +0 -2
- package/core/fetcher/getErrorResponseBody.js +0 -31
- package/core/fetcher/getErrorResponseBody.ts +0 -33
- package/core/fetcher/getFetchFn.d.ts +0 -2
- package/core/fetcher/getFetchFn.js +0 -4
- package/core/fetcher/getFetchFn.ts +0 -3
- package/core/fetcher/getHeader.d.ts +0 -2
- package/core/fetcher/getHeader.js +0 -9
- package/core/fetcher/getHeader.ts +0 -8
- package/core/fetcher/getRequestBody.d.ts +0 -8
- package/core/fetcher/getRequestBody.js +0 -14
- package/core/fetcher/getRequestBody.ts +0 -20
- package/core/fetcher/getResponseBody.d.ts +0 -2
- package/core/fetcher/getResponseBody.js +0 -56
- package/core/fetcher/getResponseBody.ts +0 -58
- package/core/fetcher/index.d.ts +0 -12
- package/core/fetcher/index.js +0 -7
- package/core/fetcher/index.ts +0 -11
- package/core/fetcher/makeRequest.d.ts +0 -2
- package/core/fetcher/makeRequest.js +0 -28
- package/core/fetcher/makeRequest.ts +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -2
- package/core/fetcher/requestWithRetries.js +0 -54
- package/core/fetcher/requestWithRetries.ts +0 -64
- package/core/fetcher/signals.d.ts +0 -6
- package/core/fetcher/signals.js +0 -21
- package/core/fetcher/signals.ts +0 -26
- package/core/headers.d.ts +0 -3
- package/core/headers.js +0 -28
- package/core/headers.ts +0 -33
- package/core/index.d.ts +0 -7
- package/core/index.js +0 -7
- package/core/index.ts +0 -6
- package/core/json.d.ts +0 -16
- package/core/json.js +0 -20
- package/core/json.ts +0 -27
- package/core/logging/exports.d.ts +0 -19
- package/core/logging/exports.js +0 -10
- package/core/logging/exports.ts +0 -19
- package/core/logging/index.d.ts +0 -2
- package/core/logging/index.js +0 -2
- package/core/logging/index.ts +0 -1
- package/core/logging/logger.d.ts +0 -127
- package/core/logging/logger.js +0 -138
- package/core/logging/logger.ts +0 -203
- package/core/runtime/index.d.ts +0 -2
- package/core/runtime/index.js +0 -2
- package/core/runtime/index.ts +0 -1
- package/core/runtime/runtime.d.ts +0 -10
- package/core/runtime/runtime.js +0 -100
- package/core/runtime/runtime.ts +0 -134
- package/core/url/encodePathParam.d.ts +0 -2
- package/core/url/encodePathParam.js +0 -19
- package/core/url/encodePathParam.ts +0 -18
- package/core/url/index.d.ts +0 -4
- package/core/url/index.js +0 -4
- package/core/url/index.ts +0 -3
- package/core/url/join.d.ts +0 -2
- package/core/url/join.js +0 -66
- package/core/url/join.ts +0 -79
- package/core/url/qs.d.ts +0 -7
- package/core/url/qs.js +0 -65
- package/core/url/qs.ts +0 -74
- package/environments.d.ts +0 -5
- package/environments.js +0 -5
- package/environments.ts +0 -7
- package/errors/RevKeenError.d.ts +0 -13
- package/errors/RevKeenError.js +0 -29
- package/errors/RevKeenError.ts +0 -58
- package/errors/RevKeenTimeoutError.d.ts +0 -4
- package/errors/RevKeenTimeoutError.js +0 -12
- package/errors/RevKeenTimeoutError.ts +0 -13
- package/errors/handleNonStatusCodeError.d.ts +0 -3
- package/errors/handleNonStatusCodeError.js +0 -30
- package/errors/handleNonStatusCodeError.ts +0 -37
- package/errors/index.d.ts +0 -3
- package/errors/index.js +0 -3
- package/errors/index.ts +0 -2
- package/exports.d.ts +0 -2
- package/exports.js +0 -2
- package/exports.ts +0 -1
- package/index.d.ts +0 -9
- package/index.js +0 -8
- package/index.ts +0 -10
- package/webhooks.ts +0 -562
package/README.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# RevKeen TypeScript SDK
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@revkeen/sdk)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
Official TypeScript/Node.js SDK for the [RevKeen API](https://docs.revkeen.com/api-reference/openapi) — auto-generated from the OpenAPI specification via [Fern](https://buildwithfern.com).
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @revkeen/sdk
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pnpm add @revkeen/sdk
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
yarn add @revkeen/sdk
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { RevKeen } from '@revkeen/sdk';
|
|
26
|
+
|
|
27
|
+
const client = new RevKeen({ apiKey: process.env.REVKEEN_API_KEY! });
|
|
28
|
+
|
|
29
|
+
const customers = await client.customers.list({ limit: 10 });
|
|
30
|
+
|
|
31
|
+
for (const customer of customers.data) {
|
|
32
|
+
console.log(customer.name, customer.email);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Authentication
|
|
37
|
+
|
|
38
|
+
### API Key (recommended for server-to-server)
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
const client = new RevKeen({ apiKey: process.env.REVKEEN_API_KEY! });
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### OAuth 2.1 (recommended for MCP and third-party integrations)
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
const client = new RevKeen({
|
|
48
|
+
oauth: {
|
|
49
|
+
clientId: process.env.REVKEEN_CLIENT_ID!,
|
|
50
|
+
clientSecret: process.env.REVKEEN_CLIENT_SECRET!,
|
|
51
|
+
scopes: ['customers:read', 'invoices:read'],
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The SDK handles token acquisition, caching, and automatic refresh. See the [OAuth guide](https://docs.revkeen.com/docs/developers/oauth) for details.
|
|
57
|
+
|
|
58
|
+
## Resources
|
|
59
|
+
|
|
60
|
+
Every API resource is available as a typed property on the client:
|
|
61
|
+
|
|
62
|
+
| Resource | Method examples |
|
|
63
|
+
|----------|----------------|
|
|
64
|
+
| `client.customers` | `list()`, `create()`, `get()`, `update()`, `delete()` |
|
|
65
|
+
| `client.invoices` | `list()`, `create()`, `get()`, `update()`, `finalize()`, `send()`, `void()` |
|
|
66
|
+
| `client.subscriptions` | `list()`, `create()`, `get()`, `update()`, `cancel()`, `pause()`, `resume()` |
|
|
67
|
+
| `client.products` | `list()`, `create()`, `get()`, `update()`, `delete()` |
|
|
68
|
+
| `client.payments` | `list()`, `create()`, `get()` |
|
|
69
|
+
| `client.checkoutSessions` | `create()`, `get()` |
|
|
70
|
+
| `client.discounts` | `list()`, `create()`, `get()`, `update()`, `delete()` |
|
|
71
|
+
| `client.creditNotes` | `list()`, `create()`, `get()` |
|
|
72
|
+
| `client.paymentLinks` | `list()`, `create()`, `get()`, `update()` |
|
|
73
|
+
| `client.paymentMethods` | `list()`, `get()`, `detach()` |
|
|
74
|
+
| `client.webhookEndpoints` | `list()`, `create()`, `delete()` |
|
|
75
|
+
| `client.events` | `list()`, `get()` |
|
|
76
|
+
| `client.entitlements` | `list()`, `check()` |
|
|
77
|
+
|
|
78
|
+
## Webhook Verification
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import { constructEvent, WebhookSignatureVerificationError } from '@revkeen/sdk';
|
|
82
|
+
|
|
83
|
+
try {
|
|
84
|
+
const event = constructEvent(
|
|
85
|
+
requestBody,
|
|
86
|
+
headers['revkeen-signature'],
|
|
87
|
+
process.env.REVKEEN_WEBHOOK_SECRET!
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
switch (event.type) {
|
|
91
|
+
case 'invoice.paid':
|
|
92
|
+
console.log('Invoice paid:', event.data.id);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
} catch (error) {
|
|
96
|
+
if (error instanceof WebhookSignatureVerificationError) {
|
|
97
|
+
console.error('Invalid signature');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Error Handling
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
try {
|
|
106
|
+
const customer = await client.customers.get('cus_nonexistent');
|
|
107
|
+
} catch (error) {
|
|
108
|
+
if (error instanceof RevKeen.ApiError) {
|
|
109
|
+
console.error(`API error ${error.statusCode}: ${error.message}`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Configuration
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
const client = new RevKeen({
|
|
118
|
+
apiKey: process.env.REVKEEN_API_KEY!,
|
|
119
|
+
// Staging environment
|
|
120
|
+
baseUrl: 'https://staging-api.revkeen.com',
|
|
121
|
+
// Custom timeout (ms)
|
|
122
|
+
timeoutInSeconds: 30,
|
|
123
|
+
});
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Compatibility
|
|
127
|
+
|
|
128
|
+
- **Runtime:** Node.js 18+
|
|
129
|
+
- **Package format:** ESM and CommonJS
|
|
130
|
+
- **TypeScript:** Full type definitions included
|
|
131
|
+
|
|
132
|
+
## Links
|
|
133
|
+
|
|
134
|
+
- [API Reference](https://docs.revkeen.com/api-reference/openapi)
|
|
135
|
+
- [SDK Documentation](https://docs.revkeen.com/docs/developers/sdks/typescript)
|
|
136
|
+
- [Go SDK](https://github.com/revkeen/sdk-go)
|
|
137
|
+
- [PHP SDK](https://github.com/revkeen/sdk-php)
|
package/dist/auth.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface OAuthConfig {
|
|
2
|
+
clientId: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
tokenEndpoint?: string;
|
|
5
|
+
scopes?: string[];
|
|
6
|
+
}
|
|
7
|
+
declare class OAuthTokenManager {
|
|
8
|
+
private config;
|
|
9
|
+
private cachedToken;
|
|
10
|
+
private inflightRequest;
|
|
11
|
+
constructor(config: OAuthConfig);
|
|
12
|
+
getToken(): Promise<string>;
|
|
13
|
+
private fetchToken;
|
|
14
|
+
private requestToken;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { type OAuthConfig, OAuthTokenManager };
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface OAuthConfig {
|
|
2
|
+
clientId: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
tokenEndpoint?: string;
|
|
5
|
+
scopes?: string[];
|
|
6
|
+
}
|
|
7
|
+
declare class OAuthTokenManager {
|
|
8
|
+
private config;
|
|
9
|
+
private cachedToken;
|
|
10
|
+
private inflightRequest;
|
|
11
|
+
constructor(config: OAuthConfig);
|
|
12
|
+
getToken(): Promise<string>;
|
|
13
|
+
private fetchToken;
|
|
14
|
+
private requestToken;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { type OAuthConfig, OAuthTokenManager };
|
package/dist/auth.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/auth.ts
|
|
21
|
+
var auth_exports = {};
|
|
22
|
+
__export(auth_exports, {
|
|
23
|
+
OAuthTokenManager: () => OAuthTokenManager
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(auth_exports);
|
|
26
|
+
|
|
27
|
+
// src/core/errors.ts
|
|
28
|
+
var RevKeenError = class extends Error {
|
|
29
|
+
constructor(message) {
|
|
30
|
+
super(message);
|
|
31
|
+
this.name = "RevKeenError";
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// src/core/oauth.ts
|
|
36
|
+
var DEFAULT_TOKEN_ENDPOINT = "https://api.revkeen.com/api/auth/oauth2/token";
|
|
37
|
+
var PRE_EXPIRY_BUFFER_MS = 6e4;
|
|
38
|
+
var OAuthTokenManager = class {
|
|
39
|
+
config;
|
|
40
|
+
cachedToken = null;
|
|
41
|
+
inflightRequest = null;
|
|
42
|
+
constructor(config) {
|
|
43
|
+
this.config = {
|
|
44
|
+
clientId: config.clientId,
|
|
45
|
+
clientSecret: config.clientSecret,
|
|
46
|
+
tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,
|
|
47
|
+
scopes: config.scopes
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
async getToken() {
|
|
51
|
+
if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {
|
|
52
|
+
return this.cachedToken.accessToken;
|
|
53
|
+
}
|
|
54
|
+
if (this.inflightRequest) {
|
|
55
|
+
return this.inflightRequest;
|
|
56
|
+
}
|
|
57
|
+
this.inflightRequest = this.fetchToken();
|
|
58
|
+
try {
|
|
59
|
+
return await this.inflightRequest;
|
|
60
|
+
} finally {
|
|
61
|
+
this.inflightRequest = null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async fetchToken() {
|
|
65
|
+
if (this.cachedToken?.refreshToken) {
|
|
66
|
+
try {
|
|
67
|
+
return await this.requestToken("refresh_token");
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return await this.requestToken("client_credentials");
|
|
72
|
+
}
|
|
73
|
+
async requestToken(grantType) {
|
|
74
|
+
const body = new URLSearchParams();
|
|
75
|
+
body.set("grant_type", grantType);
|
|
76
|
+
if (grantType === "client_credentials") {
|
|
77
|
+
body.set("client_id", this.config.clientId);
|
|
78
|
+
body.set("client_secret", this.config.clientSecret);
|
|
79
|
+
if (this.config.scopes?.length) {
|
|
80
|
+
body.set("scope", this.config.scopes.join(" "));
|
|
81
|
+
}
|
|
82
|
+
} else if (grantType === "refresh_token" && this.cachedToken?.refreshToken) {
|
|
83
|
+
body.set("refresh_token", this.cachedToken.refreshToken);
|
|
84
|
+
body.set("client_id", this.config.clientId);
|
|
85
|
+
body.set("client_secret", this.config.clientSecret);
|
|
86
|
+
}
|
|
87
|
+
const res = await fetch(this.config.tokenEndpoint, {
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
90
|
+
body: body.toString()
|
|
91
|
+
});
|
|
92
|
+
if (!res.ok) {
|
|
93
|
+
const errorBody = await res.text().catch(() => "");
|
|
94
|
+
throw new RevKeenError(
|
|
95
|
+
`OAuth token request failed (${res.status}): ${errorBody || res.statusText}`
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
const data = await res.json();
|
|
99
|
+
this.cachedToken = {
|
|
100
|
+
accessToken: data.access_token,
|
|
101
|
+
refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,
|
|
102
|
+
expiresAt: Date.now() + data.expires_in * 1e3
|
|
103
|
+
};
|
|
104
|
+
return data.access_token;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
+
0 && (module.exports = {
|
|
109
|
+
OAuthTokenManager
|
|
110
|
+
});
|
|
111
|
+
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/auth.ts","../src/core/errors.ts","../src/core/oauth.ts"],"sourcesContent":["export { OAuthTokenManager } from \"./core/oauth.js\";\nexport type { OAuthConfig } from \"./core/oauth.js\";\n","export class RevKeenError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenError\";\n }\n}\n\nexport class RevKeenAPIError extends RevKeenError {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body: unknown,\n ) {\n super(message);\n this.name = \"RevKeenAPIError\";\n }\n}\n\nexport class RevKeenTimeoutError extends RevKeenError {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenTimeoutError\";\n }\n}\n","import { RevKeenError } from \"./errors.js\";\n\nexport interface OAuthConfig {\n clientId: string;\n clientSecret: string;\n tokenEndpoint?: string;\n scopes?: string[];\n}\n\ninterface TokenResponse {\n access_token: string;\n token_type: string;\n expires_in: number;\n refresh_token?: string;\n scope?: string;\n}\n\ninterface CachedToken {\n accessToken: string;\n refreshToken?: string;\n expiresAt: number;\n}\n\nconst DEFAULT_TOKEN_ENDPOINT = \"https://api.revkeen.com/api/auth/oauth2/token\";\nconst PRE_EXPIRY_BUFFER_MS = 60_000; // Refresh 60s before expiry\n\nexport class OAuthTokenManager {\n private config: Required<Pick<OAuthConfig, \"clientId\" | \"clientSecret\" | \"tokenEndpoint\">> &\n Pick<OAuthConfig, \"scopes\">;\n private cachedToken: CachedToken | null = null;\n private inflightRequest: Promise<string> | null = null;\n\n constructor(config: OAuthConfig) {\n this.config = {\n clientId: config.clientId,\n clientSecret: config.clientSecret,\n tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,\n scopes: config.scopes,\n };\n }\n\n async getToken(): Promise<string> {\n // Return cached token if still valid\n if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {\n return this.cachedToken.accessToken;\n }\n\n // Deduplicate concurrent requests\n if (this.inflightRequest) {\n return this.inflightRequest;\n }\n\n this.inflightRequest = this.fetchToken();\n try {\n return await this.inflightRequest;\n } finally {\n this.inflightRequest = null;\n }\n }\n\n private async fetchToken(): Promise<string> {\n // Try refresh token first if available\n if (this.cachedToken?.refreshToken) {\n try {\n return await this.requestToken(\"refresh_token\");\n } catch {\n // Fall back to client_credentials\n }\n }\n\n return await this.requestToken(\"client_credentials\");\n }\n\n private async requestToken(grantType: \"client_credentials\" | \"refresh_token\"): Promise<string> {\n const body = new URLSearchParams();\n body.set(\"grant_type\", grantType);\n\n if (grantType === \"client_credentials\") {\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n if (this.config.scopes?.length) {\n body.set(\"scope\", this.config.scopes.join(\" \"));\n }\n } else if (grantType === \"refresh_token\" && this.cachedToken?.refreshToken) {\n body.set(\"refresh_token\", this.cachedToken.refreshToken);\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n }\n\n const res = await fetch(this.config.tokenEndpoint, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n body: body.toString(),\n });\n\n if (!res.ok) {\n const errorBody = await res.text().catch(() => \"\");\n throw new RevKeenError(\n `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`\n );\n }\n\n const data = (await res.json()) as TokenResponse;\n\n this.cachedToken = {\n accessToken: data.access_token,\n refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,\n expiresAt: Date.now() + data.expires_in * 1000,\n };\n\n return data.access_token;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,eAAN,cAA2B,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;;;ACkBA,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAEtB,IAAM,oBAAN,MAAwB;AAAA,EACrB;AAAA,EAEA,cAAkC;AAAA,EAClC,kBAA0C;AAAA,EAElD,YAAY,QAAqB;AAC/B,SAAK,SAAS;AAAA,MACZ,UAAU,OAAO;AAAA,MACjB,cAAc,OAAO;AAAA,MACrB,eAAe,OAAO,iBAAiB;AAAA,MACvC,QAAQ,OAAO;AAAA,IACjB;AAAA,EACF;AAAA,EAEA,MAAM,WAA4B;AAEhC,QAAI,KAAK,eAAe,KAAK,IAAI,IAAI,KAAK,YAAY,YAAY,sBAAsB;AACtF,aAAO,KAAK,YAAY;AAAA,IAC1B;AAGA,QAAI,KAAK,iBAAiB;AACxB,aAAO,KAAK;AAAA,IACd;AAEA,SAAK,kBAAkB,KAAK,WAAW;AACvC,QAAI;AACF,aAAO,MAAM,KAAK;AAAA,IACpB,UAAE;AACA,WAAK,kBAAkB;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAc,aAA8B;AAE1C,QAAI,KAAK,aAAa,cAAc;AAClC,UAAI;AACF,eAAO,MAAM,KAAK,aAAa,eAAe;AAAA,MAChD,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,WAAO,MAAM,KAAK,aAAa,oBAAoB;AAAA,EACrD;AAAA,EAEA,MAAc,aAAa,WAAoE;AAC7F,UAAM,OAAO,IAAI,gBAAgB;AACjC,SAAK,IAAI,cAAc,SAAS;AAEhC,QAAI,cAAc,sBAAsB;AACtC,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAClD,UAAI,KAAK,OAAO,QAAQ,QAAQ;AAC9B,aAAK,IAAI,SAAS,KAAK,OAAO,OAAO,KAAK,GAAG,CAAC;AAAA,MAChD;AAAA,IACF,WAAW,cAAc,mBAAmB,KAAK,aAAa,cAAc;AAC1E,WAAK,IAAI,iBAAiB,KAAK,YAAY,YAAY;AACvD,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAAA,IACpD;AAEA,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,eAAe;AAAA,MACjD,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,oCAAoC;AAAA,MAC/D,MAAM,KAAK,SAAS;AAAA,IACtB,CAAC;AAED,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,YAAY,MAAM,IAAI,KAAK,EAAE,MAAM,MAAM,EAAE;AACjD,YAAM,IAAI;AAAA,QACR,+BAA+B,IAAI,MAAM,MAAM,aAAa,IAAI,UAAU;AAAA,MAC5E;AAAA,IACF;AAEA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAE7B,SAAK,cAAc;AAAA,MACjB,aAAa,KAAK;AAAA,MAClB,cAAc,KAAK,iBAAiB,KAAK,aAAa;AAAA,MACtD,WAAW,KAAK,IAAI,IAAI,KAAK,aAAa;AAAA,IAC5C;AAEA,WAAO,KAAK;AAAA,EACd;AACF;","names":[]}
|
package/dist/auth.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// src/webhooks.ts
|
|
2
|
+
import { createHmac, timingSafeEqual } from "crypto";
|
|
3
|
+
var WEBHOOK_TOLERANCE_IN_SECONDS = 300;
|
|
4
|
+
function extractWebhookHeaders(headers) {
|
|
5
|
+
const getHeader = (name) => {
|
|
6
|
+
const value = headers[name] || headers[name.toLowerCase()];
|
|
7
|
+
if (Array.isArray(value)) return value[0];
|
|
8
|
+
return value || void 0;
|
|
9
|
+
};
|
|
10
|
+
const signature = getHeader("X-Revkeen-Signature") || getHeader("x-rk-signature");
|
|
11
|
+
if (!signature) {
|
|
12
|
+
throw new WebhookSignatureVerificationError(
|
|
13
|
+
"Missing webhook signature header (X-Revkeen-Signature or x-rk-signature)"
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
signature,
|
|
18
|
+
version: getHeader("X-Revkeen-Version"),
|
|
19
|
+
account: getHeader("X-Revkeen-Account"),
|
|
20
|
+
eventId: getHeader("X-Revkeen-Event-Id"),
|
|
21
|
+
timestamp: getHeader("X-Revkeen-Timestamp")
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
var WebhookSignatureVerificationError = class _WebhookSignatureVerificationError extends Error {
|
|
25
|
+
constructor(message) {
|
|
26
|
+
super(message);
|
|
27
|
+
this.name = "WebhookSignatureVerificationError";
|
|
28
|
+
if (Error.captureStackTrace) {
|
|
29
|
+
Error.captureStackTrace(this, _WebhookSignatureVerificationError);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function parseSignatureHeader(header) {
|
|
34
|
+
const parts = header.split(",");
|
|
35
|
+
let timestamp;
|
|
36
|
+
const signatures = [];
|
|
37
|
+
for (const part of parts) {
|
|
38
|
+
const [key, value] = part.split("=");
|
|
39
|
+
if (key === "t") {
|
|
40
|
+
timestamp = parseInt(value, 10);
|
|
41
|
+
} else if (key === "v1") {
|
|
42
|
+
signatures.push(value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!timestamp || signatures.length === 0) {
|
|
46
|
+
throw new WebhookSignatureVerificationError(
|
|
47
|
+
"Invalid signature header: missing timestamp or signature"
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
return { timestamp, signatures };
|
|
51
|
+
}
|
|
52
|
+
function verifySignature(options) {
|
|
53
|
+
const {
|
|
54
|
+
payload,
|
|
55
|
+
signature,
|
|
56
|
+
secret,
|
|
57
|
+
tolerance = WEBHOOK_TOLERANCE_IN_SECONDS
|
|
58
|
+
} = options;
|
|
59
|
+
if (!signature) {
|
|
60
|
+
throw new WebhookSignatureVerificationError(
|
|
61
|
+
"Missing webhook signature header"
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
const parsed = parseSignatureHeader(signature);
|
|
65
|
+
const currentTime = Math.floor(Date.now() / 1e3);
|
|
66
|
+
const timeDiff = Math.abs(currentTime - parsed.timestamp);
|
|
67
|
+
if (timeDiff > tolerance) {
|
|
68
|
+
throw new WebhookSignatureVerificationError(
|
|
69
|
+
`Timestamp outside tolerance window (${timeDiff}s > ${tolerance}s). The webhook might be a replay attack, or your server's clock might be out of sync.`
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
const signedPayload = `${parsed.timestamp}.${payload}`;
|
|
73
|
+
const expectedSignature = createHmac("sha256", secret).update(signedPayload, "utf8").digest("hex");
|
|
74
|
+
const signatureValid = parsed.signatures.some((sig) => {
|
|
75
|
+
try {
|
|
76
|
+
const sigBuffer = Buffer.from(sig, "hex");
|
|
77
|
+
const expectedBuffer = Buffer.from(expectedSignature, "hex");
|
|
78
|
+
if (sigBuffer.length !== expectedBuffer.length) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return timingSafeEqual(sigBuffer, expectedBuffer);
|
|
82
|
+
} catch {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
if (!signatureValid) {
|
|
87
|
+
throw new WebhookSignatureVerificationError(
|
|
88
|
+
"Signature verification failed. Ensure you're using the correct webhook secret and the raw request body."
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
function constructEvent(payload, signature, secret, options) {
|
|
94
|
+
verifySignature({
|
|
95
|
+
payload,
|
|
96
|
+
signature,
|
|
97
|
+
secret,
|
|
98
|
+
tolerance: options?.tolerance
|
|
99
|
+
});
|
|
100
|
+
try {
|
|
101
|
+
const event = JSON.parse(payload);
|
|
102
|
+
if (!event.id || !event.type || !event.data) {
|
|
103
|
+
throw new Error("Invalid event structure");
|
|
104
|
+
}
|
|
105
|
+
return event;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
if (error instanceof SyntaxError) {
|
|
108
|
+
throw new WebhookSignatureVerificationError(
|
|
109
|
+
"Invalid JSON payload: " + error.message
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function constructEventWithHeaders(payload, headers, secret, options) {
|
|
116
|
+
verifySignature({
|
|
117
|
+
payload,
|
|
118
|
+
signature: headers.signature,
|
|
119
|
+
secret,
|
|
120
|
+
tolerance: options?.tolerance
|
|
121
|
+
});
|
|
122
|
+
try {
|
|
123
|
+
const event = JSON.parse(payload);
|
|
124
|
+
if (!event.id || !event.type || !event.data) {
|
|
125
|
+
throw new Error("Invalid event structure");
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
...event,
|
|
129
|
+
api_version: event.api_version || headers.version || "unknown",
|
|
130
|
+
account: event.account || headers.account
|
|
131
|
+
};
|
|
132
|
+
} catch (error) {
|
|
133
|
+
if (error instanceof SyntaxError) {
|
|
134
|
+
throw new WebhookSignatureVerificationError(
|
|
135
|
+
"Invalid JSON payload: " + error.message
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
throw error;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var webhooks = {
|
|
142
|
+
/**
|
|
143
|
+
* Constructs and verifies a webhook event
|
|
144
|
+
* @see constructEvent
|
|
145
|
+
*/
|
|
146
|
+
constructEvent,
|
|
147
|
+
/**
|
|
148
|
+
* Constructs and verifies a webhook event with header metadata
|
|
149
|
+
* @see constructEventWithHeaders
|
|
150
|
+
*/
|
|
151
|
+
constructEventWithHeaders,
|
|
152
|
+
/**
|
|
153
|
+
* Extract webhook headers from request
|
|
154
|
+
* @see extractWebhookHeaders
|
|
155
|
+
*/
|
|
156
|
+
extractWebhookHeaders,
|
|
157
|
+
/**
|
|
158
|
+
* Verifies a webhook signature without parsing the payload
|
|
159
|
+
* @see verifySignature
|
|
160
|
+
*/
|
|
161
|
+
verifySignature,
|
|
162
|
+
/**
|
|
163
|
+
* Default timestamp tolerance in seconds
|
|
164
|
+
*/
|
|
165
|
+
TOLERANCE_IN_SECONDS: WEBHOOK_TOLERANCE_IN_SECONDS
|
|
166
|
+
};
|
|
167
|
+
var webhooks_default = webhooks;
|
|
168
|
+
|
|
169
|
+
export {
|
|
170
|
+
WEBHOOK_TOLERANCE_IN_SECONDS,
|
|
171
|
+
extractWebhookHeaders,
|
|
172
|
+
WebhookSignatureVerificationError,
|
|
173
|
+
verifySignature,
|
|
174
|
+
constructEvent,
|
|
175
|
+
constructEventWithHeaders,
|
|
176
|
+
webhooks,
|
|
177
|
+
webhooks_default
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=chunk-R2LGIZGP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/webhooks.ts"],"sourcesContent":["/**\n * RevKeen Webhook Utilities for TypeScript/Node.js SDK\n *\n * This file is automatically bundled with the generated SDK.\n * It provides webhook signature verification and event construction.\n *\n * ## Webhook Headers\n *\n * RevKeen sends the following headers with each webhook delivery:\n * - `X-Revkeen-Signature`: HMAC signature (format: `t=xxx,v1=yyy`)\n * - `X-Revkeen-Version`: API version date (e.g., `2026-01-01`)\n * - `X-Revkeen-Account`: Merchant account ID\n * - `X-Revkeen-Event-Id`: Unique event identifier\n * - `X-Revkeen-Timestamp`: Unix timestamp\n *\n * @example Basic usage\n * ```typescript\n * import { RevKeen, constructEvent, WebhookSignatureVerificationError } from '@revkeen/sdk';\n *\n * // In your webhook endpoint\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const signature = req.headers['x-revkeen-signature'] as string;\n *\n * try {\n * const event = constructEvent(req.body.toString(), signature, webhookSecret);\n *\n * switch (event.type) {\n * case 'invoice.paid':\n * const invoice = event.data.object;\n * // Handle invoice paid...\n * break;\n * case 'subscription.created':\n * const subscription = event.data.object;\n * // Handle subscription created...\n * break;\n * }\n *\n * res.json({ received: true });\n * } catch (error) {\n * if (error instanceof WebhookSignatureVerificationError) {\n * console.error('Webhook signature verification failed:', error.message);\n * return res.status(400).json({ error: 'Invalid signature' });\n * }\n * throw error;\n * }\n * });\n * ```\n *\n * @example With version headers (recommended)\n * ```typescript\n * import {\n * extractWebhookHeaders,\n * constructEventWithHeaders,\n * WebhookSignatureVerificationError\n * } from '@revkeen/sdk';\n *\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * try {\n * const headers = extractWebhookHeaders(req.headers);\n * const event = constructEventWithHeaders(req.body.toString(), headers, webhookSecret);\n *\n * console.log('API Version:', event.api_version);\n * console.log('Account:', event.account);\n *\n * // Handle the event...\n * res.json({ received: true });\n * } catch (error) {\n * if (error instanceof WebhookSignatureVerificationError) {\n * return res.status(400).json({ error: 'Invalid signature' });\n * }\n * throw error;\n * }\n * });\n * ```\n */\n\nimport { createHmac, timingSafeEqual } from \"crypto\";\n\n/**\n * Default tolerance for timestamp validation (5 minutes)\n */\nexport const WEBHOOK_TOLERANCE_IN_SECONDS = 300;\n\n/**\n * All possible webhook event types\n */\nexport type WebhookEventType =\n // Invoice events\n | \"invoice.created\"\n | \"invoice.updated\"\n | \"invoice.finalized\"\n | \"invoice.sent\"\n | \"invoice.paid\"\n | \"invoice.voided\"\n | \"invoice.payment_failed\"\n | \"invoice.overdue\"\n // Subscription events\n | \"subscription.created\"\n | \"subscription.updated\"\n | \"subscription.renewed\"\n | \"subscription.canceled\"\n | \"subscription.paused\"\n | \"subscription.resumed\"\n | \"subscription.trial_ending\"\n | \"subscription.trial_ended\"\n | \"subscription.past_due\"\n // Payment events\n | \"payment.succeeded\"\n | \"payment.failed\"\n | \"payment.refunded\"\n | \"payment.disputed\"\n | \"payment.captured\"\n // Customer events\n | \"customer.created\"\n | \"customer.updated\"\n | \"customer.deleted\"\n | \"customer.payment_method.attached\"\n | \"customer.payment_method.detached\"\n // Checkout events\n | \"checkout.session.completed\"\n | \"checkout.session.expired\"\n | \"checkout.session.async_payment_succeeded\"\n | \"checkout.session.async_payment_failed\"\n // Order events\n | \"order.created\"\n | \"order.updated\"\n | \"order.paid\"\n | \"order.canceled\"\n | \"order.fulfilled\"\n // Plan/Product events\n | \"plan.created\"\n | \"plan.updated\"\n | \"plan.deleted\"\n | \"product.created\"\n | \"product.updated\"\n | \"product.deleted\"\n // Price events\n | \"price.created\"\n | \"price.updated\"\n | \"price.deleted\"\n // Integration events\n | \"integration.product_mapping.created\"\n | \"integration.product_mapping.updated\"\n | \"integration.product_mapping.deleted\";\n\n/**\n * Webhook event data structure\n */\nexport interface WebhookEventData<T = unknown> {\n /** The object that triggered the event */\n object: T;\n /** Previous attributes if this is an update event */\n previous_attributes?: Partial<T>;\n}\n\n/**\n * Webhook event structure (Stripe-compatible)\n */\nexport interface WebhookEvent<T = unknown> {\n /** Unique event identifier */\n id: string;\n /** Object type, always \"event\" */\n object: \"event\";\n /** Event type */\n type: WebhookEventType;\n /** Unix timestamp when the event was created */\n created: number;\n /** Whether this is a live mode event */\n livemode: boolean;\n /** API version used to render the event data */\n api_version: string;\n /** Merchant account ID */\n account?: string;\n /** Event data */\n data: WebhookEventData<T>;\n /** Request information */\n request?: {\n id?: string;\n idempotency_key?: string;\n };\n}\n\n/**\n * Options for webhook signature verification\n */\nexport interface WebhookVerifyOptions {\n /** The raw request body as a string */\n payload: string;\n /** The signature header value (revkeen-signature) */\n signature: string;\n /** Your webhook secret (starts with rk_wh_) */\n secret: string;\n /** Tolerance in seconds for timestamp validation (default: 300) */\n tolerance?: number;\n}\n\n/**\n * Webhook headers sent with each delivery\n */\nexport interface WebhookHeaders {\n /** X-Revkeen-Signature: HMAC signature (t=xxx,v1=yyy) */\n signature: string;\n /** X-Revkeen-Version: API version date (e.g., \"2026-01-01\") */\n version?: string;\n /** X-Revkeen-Account: Merchant account ID */\n account?: string;\n /** X-Revkeen-Event-Id: Unique event identifier */\n eventId?: string;\n /** X-Revkeen-Timestamp: Unix timestamp */\n timestamp?: string;\n}\n\n/**\n * Extract webhook headers from request headers\n * Works with both Request objects and plain header objects\n *\n * @example\n * ```typescript\n * // Express.js\n * const headers = extractWebhookHeaders({\n * 'x-revkeen-signature': req.headers['x-revkeen-signature'],\n * 'x-revkeen-version': req.headers['x-revkeen-version'],\n * 'x-revkeen-account': req.headers['x-revkeen-account'],\n * 'x-revkeen-event-id': req.headers['x-revkeen-event-id'],\n * 'x-revkeen-timestamp': req.headers['x-revkeen-timestamp'],\n * });\n *\n * // Next.js / Web Request\n * const headers = extractWebhookHeaders({\n * 'x-revkeen-signature': request.headers.get('x-revkeen-signature'),\n * 'x-revkeen-version': request.headers.get('x-revkeen-version'),\n * 'x-revkeen-account': request.headers.get('x-revkeen-account'),\n * 'x-revkeen-event-id': request.headers.get('x-revkeen-event-id'),\n * 'x-revkeen-timestamp': request.headers.get('x-revkeen-timestamp'),\n * });\n * ```\n */\nexport function extractWebhookHeaders(\n headers: Record<string, string | string[] | null | undefined>\n): WebhookHeaders {\n const getHeader = (name: string): string | undefined => {\n const value = headers[name] || headers[name.toLowerCase()];\n if (Array.isArray(value)) return value[0];\n return value || undefined;\n };\n\n const signature = getHeader(\"X-Revkeen-Signature\") || getHeader(\"x-rk-signature\");\n if (!signature) {\n throw new WebhookSignatureVerificationError(\n \"Missing webhook signature header (X-Revkeen-Signature or x-rk-signature)\"\n );\n }\n\n return {\n signature,\n version: getHeader(\"X-Revkeen-Version\"),\n account: getHeader(\"X-Revkeen-Account\"),\n eventId: getHeader(\"X-Revkeen-Event-Id\"),\n timestamp: getHeader(\"X-Revkeen-Timestamp\"),\n };\n}\n\n/**\n * Error thrown when webhook signature verification fails\n */\nexport class WebhookSignatureVerificationError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"WebhookSignatureVerificationError\";\n // Maintains proper stack trace for where our error was thrown\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, WebhookSignatureVerificationError);\n }\n }\n}\n\n/**\n * Parsed webhook signature components\n */\ninterface ParsedSignature {\n timestamp: number;\n signatures: string[];\n}\n\n/**\n * Parses a webhook signature header\n * Format: \"t={timestamp},v1={signature}\"\n */\nfunction parseSignatureHeader(header: string): ParsedSignature {\n const parts = header.split(\",\");\n let timestamp: number | undefined;\n const signatures: string[] = [];\n\n for (const part of parts) {\n const [key, value] = part.split(\"=\");\n\n if (key === \"t\") {\n timestamp = parseInt(value, 10);\n } else if (key === \"v1\") {\n signatures.push(value);\n }\n }\n\n if (!timestamp || signatures.length === 0) {\n throw new WebhookSignatureVerificationError(\n \"Invalid signature header: missing timestamp or signature\"\n );\n }\n\n return { timestamp, signatures };\n}\n\n/**\n * Verifies a webhook signature and returns whether it's valid\n *\n * @param options - Verification options\n * @returns true if the signature is valid\n * @throws WebhookSignatureVerificationError if verification fails\n */\nexport function verifySignature(options: WebhookVerifyOptions): boolean {\n const {\n payload,\n signature,\n secret,\n tolerance = WEBHOOK_TOLERANCE_IN_SECONDS,\n } = options;\n\n // Check if signature header exists\n if (!signature) {\n throw new WebhookSignatureVerificationError(\n \"Missing webhook signature header\"\n );\n }\n\n // Parse signature header\n const parsed = parseSignatureHeader(signature);\n\n // Check timestamp tolerance (prevent replay attacks)\n const currentTime = Math.floor(Date.now() / 1000);\n const timeDiff = Math.abs(currentTime - parsed.timestamp);\n\n if (timeDiff > tolerance) {\n throw new WebhookSignatureVerificationError(\n `Timestamp outside tolerance window (${timeDiff}s > ${tolerance}s). ` +\n \"The webhook might be a replay attack, or your server's clock might be out of sync.\"\n );\n }\n\n // Generate expected signature\n const signedPayload = `${parsed.timestamp}.${payload}`;\n const expectedSignature = createHmac(\"sha256\", secret)\n .update(signedPayload, \"utf8\")\n .digest(\"hex\");\n\n // Compare signatures using constant-time comparison\n const signatureValid = parsed.signatures.some((sig) => {\n try {\n const sigBuffer = Buffer.from(sig, \"hex\");\n const expectedBuffer = Buffer.from(expectedSignature, \"hex\");\n\n // Only compare if lengths match\n if (sigBuffer.length !== expectedBuffer.length) {\n return false;\n }\n\n return timingSafeEqual(sigBuffer, expectedBuffer);\n } catch {\n return false;\n }\n });\n\n if (!signatureValid) {\n throw new WebhookSignatureVerificationError(\n \"Signature verification failed. \" +\n \"Ensure you're using the correct webhook secret and the raw request body.\"\n );\n }\n\n return true;\n}\n\n/**\n * Constructs and verifies a webhook event from a raw payload\n *\n * @param payload - The raw request body as a string\n * @param signature - The signature header value (revkeen-signature header)\n * @param secret - Your webhook secret (starts with rk_wh_)\n * @param options - Additional options\n * @returns The verified webhook event\n * @throws WebhookSignatureVerificationError if verification fails\n *\n * @example\n * ```typescript\n * // Express.js example\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const event = constructEvent(\n * req.body.toString(),\n * req.headers['revkeen-signature'] as string,\n * process.env.REVKEEN_WEBHOOK_SECRET!\n * );\n *\n * console.log('Received event:', event.type);\n * res.json({ received: true });\n * });\n * ```\n *\n * @example\n * ```typescript\n * // Next.js API route example\n * export async function POST(req: Request) {\n * const body = await req.text();\n * const signature = req.headers.get('revkeen-signature')!;\n *\n * const event = constructEvent(body, signature, process.env.REVKEEN_WEBHOOK_SECRET!);\n *\n * // Handle the event...\n * return Response.json({ received: true });\n * }\n * ```\n */\nexport function constructEvent(\n payload: string,\n signature: string,\n secret: string,\n options?: {\n tolerance?: number;\n }\n): WebhookEvent {\n // Verify the signature\n verifySignature({\n payload,\n signature,\n secret,\n tolerance: options?.tolerance,\n });\n\n // Parse and return the event\n try {\n const event = JSON.parse(payload) as WebhookEvent;\n\n // Basic validation\n if (!event.id || !event.type || !event.data) {\n throw new Error(\"Invalid event structure\");\n }\n\n return event;\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new WebhookSignatureVerificationError(\n \"Invalid JSON payload: \" + error.message\n );\n }\n throw error;\n }\n}\n\n/**\n * Constructs and verifies a webhook event with header metadata\n *\n * This function extracts version information from headers and merges it\n * with the event payload for a richer event object.\n *\n * @param payload - The raw request body as a string\n * @param headers - Webhook headers extracted from the request\n * @param secret - Your webhook secret (starts with rk_wh_)\n * @param options - Additional options\n * @returns The verified webhook event with header metadata\n * @throws WebhookSignatureVerificationError if verification fails\n *\n * @example\n * ```typescript\n * // Express.js example\n * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {\n * const headers = extractWebhookHeaders(req.headers);\n * const event = constructEventWithHeaders(\n * req.body.toString(),\n * headers,\n * process.env.REVKEEN_WEBHOOK_SECRET!\n * );\n *\n * console.log('API Version:', event.api_version);\n * console.log('Account:', event.account);\n * res.json({ received: true });\n * });\n * ```\n */\nexport function constructEventWithHeaders(\n payload: string,\n headers: WebhookHeaders,\n secret: string,\n options?: {\n tolerance?: number;\n }\n): WebhookEvent {\n // Verify the signature using the header\n verifySignature({\n payload,\n signature: headers.signature,\n secret,\n tolerance: options?.tolerance,\n });\n\n // Parse the event\n try {\n const event = JSON.parse(payload) as WebhookEvent;\n\n // Basic validation\n if (!event.id || !event.type || !event.data) {\n throw new Error(\"Invalid event structure\");\n }\n\n // Merge header metadata into event if not already present\n return {\n ...event,\n api_version: event.api_version || headers.version || \"unknown\",\n account: event.account || headers.account,\n };\n } catch (error) {\n if (error instanceof SyntaxError) {\n throw new WebhookSignatureVerificationError(\n \"Invalid JSON payload: \" + error.message\n );\n }\n throw error;\n }\n}\n\n/**\n * Webhook utilities namespace for SDK integration\n */\nexport const webhooks = {\n /**\n * Constructs and verifies a webhook event\n * @see constructEvent\n */\n constructEvent,\n\n /**\n * Constructs and verifies a webhook event with header metadata\n * @see constructEventWithHeaders\n */\n constructEventWithHeaders,\n\n /**\n * Extract webhook headers from request\n * @see extractWebhookHeaders\n */\n extractWebhookHeaders,\n\n /**\n * Verifies a webhook signature without parsing the payload\n * @see verifySignature\n */\n verifySignature,\n\n /**\n * Default timestamp tolerance in seconds\n */\n TOLERANCE_IN_SECONDS: WEBHOOK_TOLERANCE_IN_SECONDS,\n};\n\nexport default webhooks;\n"],"mappings":";AA4EA,SAAS,YAAY,uBAAuB;AAKrC,IAAM,+BAA+B;AA4JrC,SAAS,sBACd,SACgB;AAChB,QAAM,YAAY,CAAC,SAAqC;AACtD,UAAM,QAAQ,QAAQ,IAAI,KAAK,QAAQ,KAAK,YAAY,CAAC;AACzD,QAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,CAAC;AACxC,WAAO,SAAS;AAAA,EAClB;AAEA,QAAM,YAAY,UAAU,qBAAqB,KAAK,UAAU,gBAAgB;AAChF,MAAI,CAAC,WAAW;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS,UAAU,mBAAmB;AAAA,IACtC,SAAS,UAAU,mBAAmB;AAAA,IACtC,SAAS,UAAU,oBAAoB;AAAA,IACvC,WAAW,UAAU,qBAAqB;AAAA,EAC5C;AACF;AAKO,IAAM,oCAAN,MAAM,2CAA0C,MAAM;AAAA,EAC3D,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAEZ,QAAI,MAAM,mBAAmB;AAC3B,YAAM,kBAAkB,MAAM,kCAAiC;AAAA,IACjE;AAAA,EACF;AACF;AAcA,SAAS,qBAAqB,QAAiC;AAC7D,QAAM,QAAQ,OAAO,MAAM,GAAG;AAC9B,MAAI;AACJ,QAAM,aAAuB,CAAC;AAE9B,aAAW,QAAQ,OAAO;AACxB,UAAM,CAAC,KAAK,KAAK,IAAI,KAAK,MAAM,GAAG;AAEnC,QAAI,QAAQ,KAAK;AACf,kBAAY,SAAS,OAAO,EAAE;AAAA,IAChC,WAAW,QAAQ,MAAM;AACvB,iBAAW,KAAK,KAAK;AAAA,IACvB;AAAA,EACF;AAEA,MAAI,CAAC,aAAa,WAAW,WAAW,GAAG;AACzC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,WAAW,WAAW;AACjC;AASO,SAAS,gBAAgB,SAAwC;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI;AAGJ,MAAI,CAAC,WAAW;AACd,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAGA,QAAM,SAAS,qBAAqB,SAAS;AAG7C,QAAM,cAAc,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI;AAChD,QAAM,WAAW,KAAK,IAAI,cAAc,OAAO,SAAS;AAExD,MAAI,WAAW,WAAW;AACxB,UAAM,IAAI;AAAA,MACR,uCAAuC,QAAQ,OAAO,SAAS;AAAA,IAEjE;AAAA,EACF;AAGA,QAAM,gBAAgB,GAAG,OAAO,SAAS,IAAI,OAAO;AACpD,QAAM,oBAAoB,WAAW,UAAU,MAAM,EAClD,OAAO,eAAe,MAAM,EAC5B,OAAO,KAAK;AAGf,QAAM,iBAAiB,OAAO,WAAW,KAAK,CAAC,QAAQ;AACrD,QAAI;AACF,YAAM,YAAY,OAAO,KAAK,KAAK,KAAK;AACxC,YAAM,iBAAiB,OAAO,KAAK,mBAAmB,KAAK;AAG3D,UAAI,UAAU,WAAW,eAAe,QAAQ;AAC9C,eAAO;AAAA,MACT;AAEA,aAAO,gBAAgB,WAAW,cAAc;AAAA,IAClD,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AAED,MAAI,CAAC,gBAAgB;AACnB,UAAM,IAAI;AAAA,MACR;AAAA,IAEF;AAAA,EACF;AAEA,SAAO;AACT;AAyCO,SAAS,eACd,SACA,WACA,QACA,SAGc;AAEd,kBAAgB;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,SAAS;AAAA,EACtB,CAAC;AAGD,MAAI;AACF,UAAM,QAAQ,KAAK,MAAM,OAAO;AAGhC,QAAI,CAAC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,MAAM,MAAM;AAC3C,YAAM,IAAI,MAAM,yBAAyB;AAAA,IAC3C;AAEA,WAAO;AAAA,EACT,SAAS,OAAO;AACd,QAAI,iBAAiB,aAAa;AAChC,YAAM,IAAI;AAAA,QACR,2BAA2B,MAAM;AAAA,MACnC;AAAA,IACF;AACA,UAAM;AAAA,EACR;AACF;AAgCO,SAAS,0BACd,SACA,SACA,QACA,SAGc;AAEd,kBAAgB;AAAA,IACd;AAAA,IACA,WAAW,QAAQ;AAAA,IACnB;AAAA,IACA,WAAW,SAAS;AAAA,EACtB,CAAC;AAGD,MAAI;AACF,UAAM,QAAQ,KAAK,MAAM,OAAO;AAGhC,QAAI,CAAC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,MAAM,MAAM;AAC3C,YAAM,IAAI,MAAM,yBAAyB;AAAA,IAC3C;AAGA,WAAO;AAAA,MACL,GAAG;AAAA,MACH,aAAa,MAAM,eAAe,QAAQ,WAAW;AAAA,MACrD,SAAS,MAAM,WAAW,QAAQ;AAAA,IACpC;AAAA,EACF,SAAS,OAAO;AACd,QAAI,iBAAiB,aAAa;AAChC,YAAM,IAAI;AAAA,QACR,2BAA2B,MAAM;AAAA,MACnC;AAAA,IACF;AACA,UAAM;AAAA,EACR;AACF;AAKO,IAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA;AAAA;AAAA;AAAA,EAKA,sBAAsB;AACxB;AAEA,IAAO,mBAAQ;","names":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// src/core/errors.ts
|
|
2
|
+
var RevKeenError = class extends Error {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "RevKeenError";
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
var RevKeenAPIError = class extends RevKeenError {
|
|
9
|
+
constructor(status, message, body) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.body = body;
|
|
13
|
+
this.name = "RevKeenAPIError";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var RevKeenTimeoutError = class extends RevKeenError {
|
|
17
|
+
constructor(message) {
|
|
18
|
+
super(message);
|
|
19
|
+
this.name = "RevKeenTimeoutError";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// src/core/oauth.ts
|
|
24
|
+
var DEFAULT_TOKEN_ENDPOINT = "https://api.revkeen.com/api/auth/oauth2/token";
|
|
25
|
+
var PRE_EXPIRY_BUFFER_MS = 6e4;
|
|
26
|
+
var OAuthTokenManager = class {
|
|
27
|
+
config;
|
|
28
|
+
cachedToken = null;
|
|
29
|
+
inflightRequest = null;
|
|
30
|
+
constructor(config) {
|
|
31
|
+
this.config = {
|
|
32
|
+
clientId: config.clientId,
|
|
33
|
+
clientSecret: config.clientSecret,
|
|
34
|
+
tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,
|
|
35
|
+
scopes: config.scopes
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
async getToken() {
|
|
39
|
+
if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {
|
|
40
|
+
return this.cachedToken.accessToken;
|
|
41
|
+
}
|
|
42
|
+
if (this.inflightRequest) {
|
|
43
|
+
return this.inflightRequest;
|
|
44
|
+
}
|
|
45
|
+
this.inflightRequest = this.fetchToken();
|
|
46
|
+
try {
|
|
47
|
+
return await this.inflightRequest;
|
|
48
|
+
} finally {
|
|
49
|
+
this.inflightRequest = null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async fetchToken() {
|
|
53
|
+
if (this.cachedToken?.refreshToken) {
|
|
54
|
+
try {
|
|
55
|
+
return await this.requestToken("refresh_token");
|
|
56
|
+
} catch {
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return await this.requestToken("client_credentials");
|
|
60
|
+
}
|
|
61
|
+
async requestToken(grantType) {
|
|
62
|
+
const body = new URLSearchParams();
|
|
63
|
+
body.set("grant_type", grantType);
|
|
64
|
+
if (grantType === "client_credentials") {
|
|
65
|
+
body.set("client_id", this.config.clientId);
|
|
66
|
+
body.set("client_secret", this.config.clientSecret);
|
|
67
|
+
if (this.config.scopes?.length) {
|
|
68
|
+
body.set("scope", this.config.scopes.join(" "));
|
|
69
|
+
}
|
|
70
|
+
} else if (grantType === "refresh_token" && this.cachedToken?.refreshToken) {
|
|
71
|
+
body.set("refresh_token", this.cachedToken.refreshToken);
|
|
72
|
+
body.set("client_id", this.config.clientId);
|
|
73
|
+
body.set("client_secret", this.config.clientSecret);
|
|
74
|
+
}
|
|
75
|
+
const res = await fetch(this.config.tokenEndpoint, {
|
|
76
|
+
method: "POST",
|
|
77
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
78
|
+
body: body.toString()
|
|
79
|
+
});
|
|
80
|
+
if (!res.ok) {
|
|
81
|
+
const errorBody = await res.text().catch(() => "");
|
|
82
|
+
throw new RevKeenError(
|
|
83
|
+
`OAuth token request failed (${res.status}): ${errorBody || res.statusText}`
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
const data = await res.json();
|
|
87
|
+
this.cachedToken = {
|
|
88
|
+
accessToken: data.access_token,
|
|
89
|
+
refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,
|
|
90
|
+
expiresAt: Date.now() + data.expires_in * 1e3
|
|
91
|
+
};
|
|
92
|
+
return data.access_token;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
RevKeenError,
|
|
98
|
+
RevKeenAPIError,
|
|
99
|
+
RevKeenTimeoutError,
|
|
100
|
+
OAuthTokenManager
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=chunk-VKMDZSYJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/errors.ts","../src/core/oauth.ts"],"sourcesContent":["export class RevKeenError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenError\";\n }\n}\n\nexport class RevKeenAPIError extends RevKeenError {\n constructor(\n public readonly status: number,\n message: string,\n public readonly body: unknown,\n ) {\n super(message);\n this.name = \"RevKeenAPIError\";\n }\n}\n\nexport class RevKeenTimeoutError extends RevKeenError {\n constructor(message: string) {\n super(message);\n this.name = \"RevKeenTimeoutError\";\n }\n}\n","import { RevKeenError } from \"./errors.js\";\n\nexport interface OAuthConfig {\n clientId: string;\n clientSecret: string;\n tokenEndpoint?: string;\n scopes?: string[];\n}\n\ninterface TokenResponse {\n access_token: string;\n token_type: string;\n expires_in: number;\n refresh_token?: string;\n scope?: string;\n}\n\ninterface CachedToken {\n accessToken: string;\n refreshToken?: string;\n expiresAt: number;\n}\n\nconst DEFAULT_TOKEN_ENDPOINT = \"https://api.revkeen.com/api/auth/oauth2/token\";\nconst PRE_EXPIRY_BUFFER_MS = 60_000; // Refresh 60s before expiry\n\nexport class OAuthTokenManager {\n private config: Required<Pick<OAuthConfig, \"clientId\" | \"clientSecret\" | \"tokenEndpoint\">> &\n Pick<OAuthConfig, \"scopes\">;\n private cachedToken: CachedToken | null = null;\n private inflightRequest: Promise<string> | null = null;\n\n constructor(config: OAuthConfig) {\n this.config = {\n clientId: config.clientId,\n clientSecret: config.clientSecret,\n tokenEndpoint: config.tokenEndpoint || DEFAULT_TOKEN_ENDPOINT,\n scopes: config.scopes,\n };\n }\n\n async getToken(): Promise<string> {\n // Return cached token if still valid\n if (this.cachedToken && Date.now() < this.cachedToken.expiresAt - PRE_EXPIRY_BUFFER_MS) {\n return this.cachedToken.accessToken;\n }\n\n // Deduplicate concurrent requests\n if (this.inflightRequest) {\n return this.inflightRequest;\n }\n\n this.inflightRequest = this.fetchToken();\n try {\n return await this.inflightRequest;\n } finally {\n this.inflightRequest = null;\n }\n }\n\n private async fetchToken(): Promise<string> {\n // Try refresh token first if available\n if (this.cachedToken?.refreshToken) {\n try {\n return await this.requestToken(\"refresh_token\");\n } catch {\n // Fall back to client_credentials\n }\n }\n\n return await this.requestToken(\"client_credentials\");\n }\n\n private async requestToken(grantType: \"client_credentials\" | \"refresh_token\"): Promise<string> {\n const body = new URLSearchParams();\n body.set(\"grant_type\", grantType);\n\n if (grantType === \"client_credentials\") {\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n if (this.config.scopes?.length) {\n body.set(\"scope\", this.config.scopes.join(\" \"));\n }\n } else if (grantType === \"refresh_token\" && this.cachedToken?.refreshToken) {\n body.set(\"refresh_token\", this.cachedToken.refreshToken);\n body.set(\"client_id\", this.config.clientId);\n body.set(\"client_secret\", this.config.clientSecret);\n }\n\n const res = await fetch(this.config.tokenEndpoint, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n body: body.toString(),\n });\n\n if (!res.ok) {\n const errorBody = await res.text().catch(() => \"\");\n throw new RevKeenError(\n `OAuth token request failed (${res.status}): ${errorBody || res.statusText}`\n );\n }\n\n const data = (await res.json()) as TokenResponse;\n\n this.cachedToken = {\n accessToken: data.access_token,\n refreshToken: data.refresh_token ?? this.cachedToken?.refreshToken,\n expiresAt: Date.now() + data.expires_in * 1000,\n };\n\n return data.access_token;\n }\n}\n"],"mappings":";AAAO,IAAM,eAAN,cAA2B,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,kBAAN,cAA8B,aAAa;AAAA,EAChD,YACkB,QAChB,SACgB,MAChB;AACA,UAAM,OAAO;AAJG;AAEA;AAGhB,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,sBAAN,cAAkC,aAAa;AAAA,EACpD,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;;;ACAA,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAEtB,IAAM,oBAAN,MAAwB;AAAA,EACrB;AAAA,EAEA,cAAkC;AAAA,EAClC,kBAA0C;AAAA,EAElD,YAAY,QAAqB;AAC/B,SAAK,SAAS;AAAA,MACZ,UAAU,OAAO;AAAA,MACjB,cAAc,OAAO;AAAA,MACrB,eAAe,OAAO,iBAAiB;AAAA,MACvC,QAAQ,OAAO;AAAA,IACjB;AAAA,EACF;AAAA,EAEA,MAAM,WAA4B;AAEhC,QAAI,KAAK,eAAe,KAAK,IAAI,IAAI,KAAK,YAAY,YAAY,sBAAsB;AACtF,aAAO,KAAK,YAAY;AAAA,IAC1B;AAGA,QAAI,KAAK,iBAAiB;AACxB,aAAO,KAAK;AAAA,IACd;AAEA,SAAK,kBAAkB,KAAK,WAAW;AACvC,QAAI;AACF,aAAO,MAAM,KAAK;AAAA,IACpB,UAAE;AACA,WAAK,kBAAkB;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAc,aAA8B;AAE1C,QAAI,KAAK,aAAa,cAAc;AAClC,UAAI;AACF,eAAO,MAAM,KAAK,aAAa,eAAe;AAAA,MAChD,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,WAAO,MAAM,KAAK,aAAa,oBAAoB;AAAA,EACrD;AAAA,EAEA,MAAc,aAAa,WAAoE;AAC7F,UAAM,OAAO,IAAI,gBAAgB;AACjC,SAAK,IAAI,cAAc,SAAS;AAEhC,QAAI,cAAc,sBAAsB;AACtC,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAClD,UAAI,KAAK,OAAO,QAAQ,QAAQ;AAC9B,aAAK,IAAI,SAAS,KAAK,OAAO,OAAO,KAAK,GAAG,CAAC;AAAA,MAChD;AAAA,IACF,WAAW,cAAc,mBAAmB,KAAK,aAAa,cAAc;AAC1E,WAAK,IAAI,iBAAiB,KAAK,YAAY,YAAY;AACvD,WAAK,IAAI,aAAa,KAAK,OAAO,QAAQ;AAC1C,WAAK,IAAI,iBAAiB,KAAK,OAAO,YAAY;AAAA,IACpD;AAEA,UAAM,MAAM,MAAM,MAAM,KAAK,OAAO,eAAe;AAAA,MACjD,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,oCAAoC;AAAA,MAC/D,MAAM,KAAK,SAAS;AAAA,IACtB,CAAC;AAED,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,YAAY,MAAM,IAAI,KAAK,EAAE,MAAM,MAAM,EAAE;AACjD,YAAM,IAAI;AAAA,QACR,+BAA+B,IAAI,MAAM,MAAM,aAAa,IAAI,UAAU;AAAA,MAC5E;AAAA,IACF;AAEA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAE7B,SAAK,cAAc;AAAA,MACjB,aAAa,KAAK;AAAA,MAClB,cAAc,KAAK,iBAAiB,KAAK,aAAa;AAAA,MACtD,WAAW,KAAK,IAAI,IAAI,KAAK,aAAa;AAAA,IAC5C;AAEA,WAAO,KAAK;AAAA,EACd;AACF;","names":[]}
|