framepayments 2.1.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1178 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2050 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2050 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1154 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +16 -4
- package/dist/api/accounts-api.d.ts +0 -22
- package/dist/api/accounts-api.d.ts.map +0 -1
- package/dist/api/accounts-api.js +0 -64
- package/dist/api/accounts-api.js.map +0 -1
- package/dist/api/billing-api.d.ts +0 -20
- package/dist/api/billing-api.d.ts.map +0 -1
- package/dist/api/billing-api.js +0 -58
- package/dist/api/billing-api.js.map +0 -1
- package/dist/api/capabilities-api.d.ts +0 -11
- package/dist/api/capabilities-api.d.ts.map +0 -1
- package/dist/api/capabilities-api.js +0 -22
- package/dist/api/capabilities-api.js.map +0 -1
- package/dist/api/charge_intents-api.d.ts +0 -17
- package/dist/api/charge_intents-api.d.ts.map +0 -1
- package/dist/api/charge_intents-api.js +0 -48
- package/dist/api/charge_intents-api.js.map +0 -1
- package/dist/api/charge_sessions-api.d.ts +0 -9
- package/dist/api/charge_sessions-api.d.ts.map +0 -1
- package/dist/api/charge_sessions-api.js +0 -14
- package/dist/api/charge_sessions-api.js.map +0 -1
- package/dist/api/charges-api.d.ts +0 -9
- package/dist/api/charges-api.d.ts.map +0 -1
- package/dist/api/charges-api.js +0 -14
- package/dist/api/charges-api.js.map +0 -1
- package/dist/api/configuration-api.d.ts +0 -10
- package/dist/api/configuration-api.d.ts.map +0 -1
- package/dist/api/configuration-api.js +0 -15
- package/dist/api/configuration-api.js.map +0 -1
- package/dist/api/coupons-api.d.ts +0 -12
- package/dist/api/coupons-api.d.ts.map +0 -1
- package/dist/api/coupons-api.js +0 -29
- package/dist/api/coupons-api.js.map +0 -1
- package/dist/api/customer_identity-api.d.ts +0 -14
- package/dist/api/customer_identity-api.d.ts.map +0 -1
- package/dist/api/customer_identity-api.js +0 -86
- package/dist/api/customer_identity-api.js.map +0 -1
- package/dist/api/customers-api.d.ts +0 -18
- package/dist/api/customers-api.d.ts.map +0 -1
- package/dist/api/customers-api.js +0 -61
- package/dist/api/customers-api.js.map +0 -1
- package/dist/api/device_attestation-api.d.ts +0 -10
- package/dist/api/device_attestation-api.d.ts.map +0 -1
- package/dist/api/device_attestation-api.js +0 -15
- package/dist/api/device_attestation-api.js.map +0 -1
- package/dist/api/discounts-api.d.ts +0 -11
- package/dist/api/discounts-api.d.ts.map +0 -1
- package/dist/api/discounts-api.js +0 -25
- package/dist/api/discounts-api.js.map +0 -1
- package/dist/api/disputes-api.d.ts +0 -11
- package/dist/api/disputes-api.d.ts.map +0 -1
- package/dist/api/disputes-api.js +0 -22
- package/dist/api/disputes-api.js.map +0 -1
- package/dist/api/geo_compliance-api.d.ts +0 -9
- package/dist/api/geo_compliance-api.d.ts.map +0 -1
- package/dist/api/geo_compliance-api.js +0 -11
- package/dist/api/geo_compliance-api.js.map +0 -1
- package/dist/api/geofences-api.d.ts +0 -12
- package/dist/api/geofences-api.d.ts.map +0 -1
- package/dist/api/geofences-api.js +0 -17
- package/dist/api/geofences-api.js.map +0 -1
- package/dist/api/invoice_line_item-api.d.ts +0 -13
- package/dist/api/invoice_line_item-api.d.ts.map +0 -1
- package/dist/api/invoice_line_item-api.js +0 -26
- package/dist/api/invoice_line_item-api.js.map +0 -1
- package/dist/api/invoices-api.d.ts +0 -13
- package/dist/api/invoices-api.d.ts.map +0 -1
- package/dist/api/invoices-api.js +0 -32
- package/dist/api/invoices-api.js.map +0 -1
- package/dist/api/onboarding-api.d.ts +0 -12
- package/dist/api/onboarding-api.d.ts.map +0 -1
- package/dist/api/onboarding-api.js +0 -26
- package/dist/api/onboarding-api.js.map +0 -1
- package/dist/api/onboarding_sessions-api.d.ts +0 -9
- package/dist/api/onboarding_sessions-api.d.ts.map +0 -1
- package/dist/api/onboarding_sessions-api.js +0 -16
- package/dist/api/onboarding_sessions-api.js.map +0 -1
- package/dist/api/payment_link_sessions-api.d.ts +0 -8
- package/dist/api/payment_link_sessions-api.d.ts.map +0 -1
- package/dist/api/payment_link_sessions-api.js +0 -10
- package/dist/api/payment_link_sessions-api.js.map +0 -1
- package/dist/api/payment_methods-api.d.ts +0 -23
- package/dist/api/payment_methods-api.d.ts.map +0 -1
- package/dist/api/payment_methods-api.js +0 -73
- package/dist/api/payment_methods-api.js.map +0 -1
- package/dist/api/payouts-api.d.ts +0 -8
- package/dist/api/payouts-api.d.ts.map +0 -1
- package/dist/api/payouts-api.js +0 -10
- package/dist/api/payouts-api.js.map +0 -1
- package/dist/api/phone_verifications-api.d.ts +0 -10
- package/dist/api/phone_verifications-api.d.ts.map +0 -1
- package/dist/api/phone_verifications-api.js +0 -15
- package/dist/api/phone_verifications-api.js.map +0 -1
- package/dist/api/product_phases-api.d.ts +0 -17
- package/dist/api/product_phases-api.d.ts.map +0 -1
- package/dist/api/product_phases-api.js +0 -37
- package/dist/api/product_phases-api.js.map +0 -1
- package/dist/api/products-api.d.ts +0 -14
- package/dist/api/products-api.d.ts.map +0 -1
- package/dist/api/products-api.js +0 -39
- package/dist/api/products-api.js.map +0 -1
- package/dist/api/promotion_codes-api.d.ts +0 -12
- package/dist/api/promotion_codes-api.d.ts.map +0 -1
- package/dist/api/promotion_codes-api.js +0 -29
- package/dist/api/promotion_codes-api.js.map +0 -1
- package/dist/api/refunds-api.d.ts +0 -11
- package/dist/api/refunds-api.d.ts.map +0 -1
- package/dist/api/refunds-api.js +0 -27
- package/dist/api/refunds-api.js.map +0 -1
- package/dist/api/sonar_sessions-api.d.ts +0 -9
- package/dist/api/sonar_sessions-api.d.ts.map +0 -1
- package/dist/api/sonar_sessions-api.js +0 -14
- package/dist/api/sonar_sessions-api.js.map +0 -1
- package/dist/api/subscription_change_logs-api.d.ts +0 -9
- package/dist/api/subscription_change_logs-api.d.ts.map +0 -1
- package/dist/api/subscription_change_logs-api.js +0 -17
- package/dist/api/subscription_change_logs-api.js.map +0 -1
- package/dist/api/subscription_phases-api.d.ts +0 -21
- package/dist/api/subscription_phases-api.d.ts.map +0 -1
- package/dist/api/subscription_phases-api.js +0 -39
- package/dist/api/subscription_phases-api.js.map +0 -1
- package/dist/api/subscriptions-api.d.ts +0 -14
- package/dist/api/subscriptions-api.d.ts.map +0 -1
- package/dist/api/subscriptions-api.js +0 -39
- package/dist/api/subscriptions-api.js.map +0 -1
- package/dist/api/terms_of_service-api.d.ts +0 -9
- package/dist/api/terms_of_service-api.d.ts.map +0 -1
- package/dist/api/terms_of_service-api.js +0 -14
- package/dist/api/terms_of_service-api.js.map +0 -1
- package/dist/api/three_ds-api.d.ts +0 -10
- package/dist/api/three_ds-api.d.ts.map +0 -1
- package/dist/api/three_ds-api.js +0 -18
- package/dist/api/three_ds-api.js.map +0 -1
- package/dist/api/transfer_billing_agreements-api.d.ts +0 -12
- package/dist/api/transfer_billing_agreements-api.d.ts.map +0 -1
- package/dist/api/transfer_billing_agreements-api.js +0 -29
- package/dist/api/transfer_billing_agreements-api.js.map +0 -1
- package/dist/api/transfer_fee_plans-api.d.ts +0 -11
- package/dist/api/transfer_fee_plans-api.d.ts.map +0 -1
- package/dist/api/transfer_fee_plans-api.js +0 -25
- package/dist/api/transfer_fee_plans-api.js.map +0 -1
- package/dist/api/transfers-api.d.ts +0 -12
- package/dist/api/transfers-api.d.ts.map +0 -1
- package/dist/api/transfers-api.js +0 -26
- package/dist/api/transfers-api.js.map +0 -1
- package/dist/api/wallet-api.d.ts +0 -9
- package/dist/api/wallet-api.d.ts.map +0 -1
- package/dist/api/wallet-api.js +0 -11
- package/dist/api/wallet-api.js.map +0 -1
- package/dist/api/webhook_endpoints-api.d.ts +0 -9
- package/dist/api/webhook_endpoints-api.d.ts.map +0 -1
- package/dist/api/webhook_endpoints-api.js +0 -17
- package/dist/api/webhook_endpoints-api.js.map +0 -1
- package/dist/client.d.ts +0 -14
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -111
- package/dist/client.js.map +0 -1
- package/dist/errors/frame_api_error.d.ts +0 -7
- package/dist/errors/frame_api_error.d.ts.map +0 -1
- package/dist/errors/frame_api_error.js +0 -10
- package/dist/errors/frame_api_error.js.map +0 -1
- package/dist/index.d.ts +0 -91
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -86
- package/dist/index.js.map +0 -1
- package/dist/types/accounts.d.ts +0 -105
- package/dist/types/accounts.d.ts.map +0 -1
- package/dist/types/accounts.js +0 -2
- package/dist/types/accounts.js.map +0 -1
- package/dist/types/billing.d.ts +0 -84
- package/dist/types/billing.d.ts.map +0 -1
- package/dist/types/billing.js +0 -2
- package/dist/types/billing.js.map +0 -1
- package/dist/types/capabilities.d.ts +0 -21
- package/dist/types/capabilities.d.ts.map +0 -1
- package/dist/types/capabilities.js +0 -2
- package/dist/types/capabilities.js.map +0 -1
- package/dist/types/charge_intents.d.ts +0 -133
- package/dist/types/charge_intents.d.ts.map +0 -1
- package/dist/types/charge_intents.js +0 -28
- package/dist/types/charge_intents.js.map +0 -1
- package/dist/types/charge_sessions.d.ts +0 -18
- package/dist/types/charge_sessions.d.ts.map +0 -1
- package/dist/types/charge_sessions.js +0 -2
- package/dist/types/charge_sessions.js.map +0 -1
- package/dist/types/charges.d.ts +0 -29
- package/dist/types/charges.d.ts.map +0 -1
- package/dist/types/charges.js +0 -2
- package/dist/types/charges.js.map +0 -1
- package/dist/types/configuration.d.ts +0 -9
- package/dist/types/configuration.d.ts.map +0 -1
- package/dist/types/configuration.js +0 -2
- package/dist/types/configuration.js.map +0 -1
- package/dist/types/coupons.d.ts +0 -33
- package/dist/types/coupons.d.ts.map +0 -1
- package/dist/types/coupons.js +0 -2
- package/dist/types/coupons.js.map +0 -1
- package/dist/types/customer_identity.d.ts +0 -49
- package/dist/types/customer_identity.d.ts.map +0 -1
- package/dist/types/customer_identity.js +0 -8
- package/dist/types/customer_identity.js.map +0 -1
- package/dist/types/customers.d.ts +0 -76
- package/dist/types/customers.d.ts.map +0 -1
- package/dist/types/customers.js +0 -6
- package/dist/types/customers.js.map +0 -1
- package/dist/types/device_attestation.d.ts +0 -13
- package/dist/types/device_attestation.d.ts.map +0 -1
- package/dist/types/device_attestation.js +0 -2
- package/dist/types/device_attestation.js.map +0 -1
- package/dist/types/discounts.d.ts +0 -22
- package/dist/types/discounts.d.ts.map +0 -1
- package/dist/types/discounts.js +0 -2
- package/dist/types/discounts.js.map +0 -1
- package/dist/types/disputes.d.ts +0 -67
- package/dist/types/disputes.d.ts.map +0 -1
- package/dist/types/disputes.js +0 -11
- package/dist/types/disputes.js.map +0 -1
- package/dist/types/events.d.ts +0 -129
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -50
- package/dist/types/events.js.map +0 -1
- package/dist/types/geo_compliance.d.ts +0 -8
- package/dist/types/geo_compliance.d.ts.map +0 -1
- package/dist/types/geo_compliance.js +0 -2
- package/dist/types/geo_compliance.js.map +0 -1
- package/dist/types/geofences.d.ts +0 -16
- package/dist/types/geofences.d.ts.map +0 -1
- package/dist/types/geofences.js +0 -2
- package/dist/types/geofences.js.map +0 -1
- package/dist/types/invoice_line_items.d.ts +0 -22
- package/dist/types/invoice_line_items.d.ts.map +0 -1
- package/dist/types/invoice_line_items.js +0 -2
- package/dist/types/invoice_line_items.js.map +0 -1
- package/dist/types/invoices.d.ts +0 -80
- package/dist/types/invoices.d.ts.map +0 -1
- package/dist/types/invoices.js +0 -16
- package/dist/types/invoices.js.map +0 -1
- package/dist/types/onboarding.d.ts +0 -43
- package/dist/types/onboarding.d.ts.map +0 -1
- package/dist/types/onboarding.js +0 -2
- package/dist/types/onboarding.js.map +0 -1
- package/dist/types/onboarding_sessions.d.ts +0 -17
- package/dist/types/onboarding_sessions.d.ts.map +0 -1
- package/dist/types/onboarding_sessions.js +0 -2
- package/dist/types/onboarding_sessions.js.map +0 -1
- package/dist/types/payment_link_sessions.d.ts +0 -17
- package/dist/types/payment_link_sessions.d.ts.map +0 -1
- package/dist/types/payment_link_sessions.js +0 -2
- package/dist/types/payment_link_sessions.js.map +0 -1
- package/dist/types/payment_links.d.ts +0 -16
- package/dist/types/payment_links.d.ts.map +0 -1
- package/dist/types/payment_links.js +0 -6
- package/dist/types/payment_links.js.map +0 -1
- package/dist/types/payment_methods.d.ts +0 -158
- package/dist/types/payment_methods.d.ts.map +0 -1
- package/dist/types/payment_methods.js +0 -17
- package/dist/types/payment_methods.js.map +0 -1
- package/dist/types/payouts.d.ts +0 -20
- package/dist/types/payouts.d.ts.map +0 -1
- package/dist/types/payouts.js +0 -2
- package/dist/types/payouts.js.map +0 -1
- package/dist/types/phone_verifications.d.ts +0 -19
- package/dist/types/phone_verifications.d.ts.map +0 -1
- package/dist/types/phone_verifications.js +0 -2
- package/dist/types/phone_verifications.js.map +0 -1
- package/dist/types/product_phases.d.ts +0 -33
- package/dist/types/product_phases.d.ts.map +0 -1
- package/dist/types/product_phases.js +0 -2
- package/dist/types/product_phases.js.map +0 -1
- package/dist/types/products.d.ts +0 -69
- package/dist/types/products.d.ts.map +0 -1
- package/dist/types/products.js +0 -15
- package/dist/types/products.js.map +0 -1
- package/dist/types/promotion_codes.d.ts +0 -32
- package/dist/types/promotion_codes.d.ts.map +0 -1
- package/dist/types/promotion_codes.js +0 -2
- package/dist/types/promotion_codes.js.map +0 -1
- package/dist/types/refunds.d.ts +0 -44
- package/dist/types/refunds.d.ts.map +0 -1
- package/dist/types/refunds.js +0 -22
- package/dist/types/refunds.js.map +0 -1
- package/dist/types/sonar_sessions.d.ts +0 -18
- package/dist/types/sonar_sessions.d.ts.map +0 -1
- package/dist/types/sonar_sessions.js +0 -2
- package/dist/types/sonar_sessions.js.map +0 -1
- package/dist/types/subscription_change_logs.d.ts +0 -14
- package/dist/types/subscription_change_logs.d.ts.map +0 -1
- package/dist/types/subscription_change_logs.js +0 -2
- package/dist/types/subscription_change_logs.js.map +0 -1
- package/dist/types/subscription_phases.d.ts +0 -55
- package/dist/types/subscription_phases.d.ts.map +0 -1
- package/dist/types/subscription_phases.js +0 -11
- package/dist/types/subscription_phases.js.map +0 -1
- package/dist/types/subscriptions.d.ts +0 -81
- package/dist/types/subscriptions.d.ts.map +0 -1
- package/dist/types/subscriptions.js +0 -10
- package/dist/types/subscriptions.js.map +0 -1
- package/dist/types/terms_of_service.d.ts +0 -10
- package/dist/types/terms_of_service.d.ts.map +0 -1
- package/dist/types/terms_of_service.js +0 -2
- package/dist/types/terms_of_service.js.map +0 -1
- package/dist/types/three_ds.d.ts +0 -17
- package/dist/types/three_ds.d.ts.map +0 -1
- package/dist/types/three_ds.js +0 -2
- package/dist/types/three_ds.js.map +0 -1
- package/dist/types/transfer_billing_agreements.d.ts +0 -26
- package/dist/types/transfer_billing_agreements.d.ts.map +0 -1
- package/dist/types/transfer_billing_agreements.js +0 -2
- package/dist/types/transfer_billing_agreements.js.map +0 -1
- package/dist/types/transfer_fee_plans.d.ts +0 -25
- package/dist/types/transfer_fee_plans.d.ts.map +0 -1
- package/dist/types/transfer_fee_plans.js +0 -2
- package/dist/types/transfer_fee_plans.js.map +0 -1
- package/dist/types/transfers.d.ts +0 -30
- package/dist/types/transfers.d.ts.map +0 -1
- package/dist/types/transfers.js +0 -2
- package/dist/types/transfers.js.map +0 -1
- package/dist/types/wallet.d.ts +0 -7
- package/dist/types/wallet.d.ts.map +0 -1
- package/dist/types/wallet.js +0 -2
- package/dist/types/wallet.js.map +0 -1
- package/dist/types/webhook_endpoints.d.ts +0 -17
- package/dist/types/webhook_endpoints.d.ts.map +0 -1
- package/dist/types/webhook_endpoints.js +0 -2
- package/dist/types/webhook_endpoints.js.map +0 -1
- package/dist/utils/paginator.d.ts +0 -7
- package/dist/utils/paginator.d.ts.map +0 -1
- package/dist/utils/paginator.js +0 -13
- package/dist/utils/paginator.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["G"],"sources":["../src/errors/frame_api_error.ts","../src/client.ts","../src/utils/paginator.ts","../src/api/accounts-api.ts","../src/api/capabilities-api.ts","../src/api/onboarding_sessions-api.ts","../src/api/customers-api.ts","../src/api/payment_methods-api.ts","../src/api/charge_intents-api.ts","../src/api/refunds-api.ts","../src/api/subscriptions-api.ts","../src/api/customer_identity-api.ts","../src/api/subscription_phases-api.ts","../src/api/invoices-api.ts","../src/api/invoice_line_item-api.ts","../src/api/disputes-api.ts","../src/api/products-api.ts","../src/api/charges-api.ts","../src/api/charge_sessions-api.ts","../src/api/sonar_sessions-api.ts","../src/api/phone_verifications-api.ts","../src/api/geofences-api.ts","../src/api/webhook_endpoints-api.ts","../src/api/payouts-api.ts","../src/api/transfers-api.ts","../src/api/transfer_fee_plans-api.ts","../src/api/transfer_billing_agreements-api.ts","../src/api/coupons-api.ts","../src/api/promotion_codes-api.ts","../src/api/discounts-api.ts","../src/api/payment_link_sessions-api.ts","../src/api/subscription_change_logs-api.ts","../src/api/billing-api.ts","../src/api/three_ds-api.ts","../src/api/product_phases-api.ts","../src/api/terms_of_service-api.ts","../src/api/onboarding-api.ts","../src/api/configuration-api.ts","../src/api/device_attestation-api.ts","../src/api/wallet-api.ts","../src/api/geo_compliance-api.ts","../src/index.ts"],"sourcesContent":["export class FrameAPIError extends Error {\n public code: string;\n public status: number;\n public raw: any;\n\n constructor(message: string, code: string, status: number, raw: any) {\n super(message);\n this.name = 'FrameAPIError';\n this.code = code;\n this.status = status;\n this.raw = raw;\n }\n}","import axios, { AxiosHeaders } from 'axios';\nimport type { AxiosInstance, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';\nimport { FrameAPIError } from './errors/frame_api_error';\n\nexport interface ClientConfig {\n apiKey?: string;\n publishableKey?: string;\n // Override the API base URL. Defaults to https://api.framepayments.com.\n // Useful for pointing local development at a self-hosted Frame OS instance\n // (e.g. http://api.framepayments.test via puma-dev).\n baseURL?: string;\n // Headers to attach to every request from this client. Used by the React\n // Native SDK to forward the device IP via `ip_address` on each call (matches\n // the native Frame iOS / Frame Android behavior). The request interceptor\n // applies these *before* setting Authorization, so callers cannot use this\n // hook to override key routing.\n defaultHeaders?: Record<string, string>;\n}\n\nexport interface RequestOptions {\n usePublishableKey?: boolean;\n}\n\nconst PUBLISHABLE_FLAG_KEY = 'X-Frame-Use-Publishable-Key';\n\n// Strips the Authorization header before stashing axios's error config on\n// FrameAPIError.raw — without this, every network-layer failure would leak\n// the live Bearer token to anyone logging the error.\nfunction safeRawFromAxiosError(err: any): unknown {\n if (!err || typeof err !== 'object') return err;\n const cleanedConfig = err.config\n ? (() => {\n const { headers, ...restConfig } = err.config as { headers?: unknown } & Record<string, unknown>;\n const cleanedHeaders =\n headers && typeof headers === 'object'\n ? Object.fromEntries(\n Object.entries(headers as Record<string, unknown>).filter(\n ([k]) => k.toLowerCase() !== 'authorization' && k !== PUBLISHABLE_FLAG_KEY,\n ),\n )\n : headers;\n return { ...restConfig, headers: cleanedHeaders };\n })()\n : undefined;\n return {\n message: err.message,\n code: err.code,\n name: err.name,\n config: cleanedConfig,\n };\n}\n\nexport const createApiClient = (config: ClientConfig): AxiosInstance => {\n const { apiKey, publishableKey, defaultHeaders } = config;\n\n if (!apiKey && !publishableKey) {\n throw new Error(\n 'FrameSDK config requires at least one of: apiKey, publishableKey. ' +\n 'Mobile clients should ship publishableKey only; server code should use apiKey.',\n );\n }\n\n const baseURL = config.baseURL ?? 'https://api.framepayments.com';\n\n const client = axios.create({\n baseURL,\n headers: { 'Content-Type': 'application/json' },\n });\n\n client.interceptors.request.use((requestConfig: InternalAxiosRequestConfig) => {\n const headers = requestConfig.headers;\n const wantsPublishable = headers instanceof AxiosHeaders\n ? headers.has(PUBLISHABLE_FLAG_KEY)\n : Boolean((headers as Record<string, unknown> | undefined)?.[PUBLISHABLE_FLAG_KEY]);\n\n if (headers instanceof AxiosHeaders) {\n headers.delete(PUBLISHABLE_FLAG_KEY);\n } else if (headers && PUBLISHABLE_FLAG_KEY in (headers as Record<string, unknown>)) {\n delete (headers as Record<string, unknown>)[PUBLISHABLE_FLAG_KEY];\n }\n\n if (defaultHeaders) {\n for (const [name, value] of Object.entries(defaultHeaders)) {\n if (value == null) continue;\n if (headers instanceof AxiosHeaders) {\n if (!headers.has(name)) headers.set(name, value);\n } else if (headers) {\n const h = headers as Record<string, string>;\n if (h[name] === undefined) h[name] = value;\n }\n }\n }\n\n const keyToUse = wantsPublishable ? publishableKey : apiKey;\n if (!keyToUse) {\n throw new FrameAPIError(\n wantsPublishable\n ? 'Frame publishable key is not configured. Pass { publishableKey } to new FrameSDK(...) before calling endpoints with { usePublishableKey: true }.'\n : 'Frame API key is not configured. Pass { apiKey } to new FrameSDK(...) before calling secret-keyed endpoints.',\n wantsPublishable ? 'missing_publishable_key' : 'missing_api_key',\n 0,\n null,\n );\n }\n if (headers instanceof AxiosHeaders) {\n headers.set('Authorization', `Bearer ${keyToUse}`);\n } else if (headers) {\n (headers as Record<string, string>)['Authorization'] = `Bearer ${keyToUse}`;\n }\n return requestConfig;\n });\n\n client.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error instanceof FrameAPIError) {\n throw error;\n }\n if (error.response) {\n const { status, data } = error.response;\n const code = data?.code || 'unknown_error';\n const message = data?.message || 'An error occurred';\n throw new FrameAPIError(message, code, status, data);\n }\n throw new FrameAPIError(error.message, 'network_error', 0, safeRawFromAxiosError(error));\n },\n );\n\n return client;\n};\n\nexport function withPublishableKey(opts?: RequestOptions & AxiosRequestConfig): AxiosRequestConfig {\n const { usePublishableKey = true, headers, ...rest } = opts ?? {};\n if (!usePublishableKey) {\n return headers ? { ...rest, headers } : { ...rest };\n }\n return {\n ...rest,\n headers: { ...(headers ?? {}), [PUBLISHABLE_FLAG_KEY]: '1' },\n };\n}\n\nexport function maybePublishableKey(opts?: RequestOptions & AxiosRequestConfig): AxiosRequestConfig {\n const { usePublishableKey = false, headers, ...rest } = opts ?? {};\n if (!usePublishableKey) {\n return headers ? { ...rest, headers } : { ...rest };\n }\n return {\n ...rest,\n headers: { ...(headers ?? {}), [PUBLISHABLE_FLAG_KEY]: '1' },\n };\n}\n","export async function* paginate<T>(\n fetchPage: (page: number) => Promise<{ data: T[]; meta?: { has_more?: boolean } }>,\n pageSize = 20\n): AsyncGenerator<T> {\n let page = 1;\n let hasMore = true;\n\n while (hasMore) {\n const { data, meta } = await fetchPage(page);\n for (const item of data) {\n yield item;\n }\n\n hasMore = meta?.has_more ?? false;\n page += 1;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n Account,\n AccountListResponse,\n ListAccountsParams,\n CreateAccountParams,\n UpdateAccountParams,\n SearchAccountsParams,\n PlaidLinkTokenResponse\n} from '../types/accounts';\nimport type { GeoComplianceStatus } from '../types/geo_compliance';\nimport type { PaymentMethodListResponse } from '../types/payment_methods';\nimport { paginate } from '../utils/paginator';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class AccountsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(params?: ListAccountsParams): Promise<AccountListResponse> {\n const resp = await this.client.get('/v1/accounts', { params: params ?? {} });\n return resp.data;\n }\n\n async create(params: CreateAccountParams, opts?: RequestOptions): Promise<Account> {\n const resp = await this.client.post('/v1/accounts', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async get(id: string, opts?: RequestOptions): Promise<Account> {\n const resp = await this.client.get(`/v1/accounts/${id}`, maybePublishableKey(opts));\n return resp.data;\n }\n\n async update(id: string, params: UpdateAccountParams, opts?: RequestOptions): Promise<Account> {\n const resp = await this.client.patch(`/v1/accounts/${id}`, params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async disable(id: string): Promise<Account> {\n const resp = await this.client.delete(`/v1/accounts/${id}`);\n return resp.data;\n }\n\n async search(params: SearchAccountsParams): Promise<AccountListResponse> {\n const resp = await this.client.get('/v1/accounts/search', { params });\n return resp.data;\n }\n\n // Returns the `{ meta?, data? }` envelope produced by\n // `GET /v1/accounts/{id}/payment_methods`. Matches Frame-iOS\n // `PaymentMethodResponses.ListPaymentMethodsResponse`. Callers that just\n // need the array should read `result.data ?? []`.\n async getPaymentMethods(id: string, opts?: RequestOptions): Promise<PaymentMethodListResponse> {\n const resp = await this.client.get(`/v1/accounts/${id}/payment_methods`, maybePublishableKey(opts));\n return resp.data;\n }\n\n async restrict(id: string): Promise<Account> {\n const resp = await this.client.post(`/v1/accounts/${id}/restrict`);\n return resp.data;\n }\n\n async unrestrict(id: string): Promise<Account> {\n const resp = await this.client.post(`/v1/accounts/${id}/unrestrict`);\n return resp.data;\n }\n\n async getPlaidLinkToken(id: string, opts?: RequestOptions): Promise<PlaidLinkTokenResponse> {\n const resp = await this.client.get(`/v1/accounts/${id}/plaid_link_token`, maybePublishableKey(opts));\n return resp.data;\n }\n\n async getGeoCompliance(accountId: string): Promise<GeoComplianceStatus> {\n const resp = await this.client.get(`/v1/accounts/${accountId}/geo_compliance`);\n return resp.data;\n }\n\n iterateAllAccounts(per_page = 20): AsyncGenerator<Account> {\n return paginate<Account>(async (page: number) => {\n const res = await this.client.get('/v1/accounts', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { Capability, RequestCapabilitiesParams } from '../types/capabilities';\n\nexport class CapabilitiesAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(accountId: string): Promise<Capability[]> {\n const resp = await this.client.get(`/v1/accounts/${accountId}/capabilities`);\n return resp.data;\n }\n\n async request(accountId: string, params: RequestCapabilitiesParams): Promise<Capability[]> {\n const resp = await this.client.post(`/v1/accounts/${accountId}/capabilities`, params);\n return resp.data;\n }\n\n async get(accountId: string, name: string): Promise<Capability> {\n const resp = await this.client.get(`/v1/accounts/${accountId}/capabilities/${name}`);\n return resp.data;\n }\n\n async disable(accountId: string, name: string): Promise<Capability> {\n const resp = await this.client.delete(`/v1/accounts/${accountId}/capabilities/${name}`);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { OnboardingSession, CreateOnboardingSessionParams } from '../types/onboarding_sessions';\n\nexport class OnboardingSessionsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateOnboardingSessionParams): Promise<OnboardingSession> {\n const resp = await this.client.post('/v1/onboarding_sessions', params);\n return resp.data;\n }\n\n async getByAccount(accountId: string): Promise<OnboardingSession> {\n const resp = await this.client.get('/v1/onboarding_sessions', {\n params: { account_id: accountId }\n });\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport { paginate } from '../utils/paginator';\nimport type {\n Customer,\n CustomerListResponse,\n CreateCustomerParams,\n UpdateCustomerParams,\n DeleteResponse,\n SearchCustomerParams\n} from '../types/customers';\nimport type { PaymentMethod } from '../types/payment_methods';\n\nexport class CustomersAPI {\n constructor(private client: AxiosInstance) {}\n\n // Create\n async create(params: CreateCustomerParams): Promise<Customer> {\n const resp = await this.client.post('/v1/customers', params);\n return resp.data;\n }\n\n // Update\n async update(id: string, params: UpdateCustomerParams): Promise<Customer> {\n const resp = await this.client.patch(`/v1/customers/${id}`, params);\n return resp.data;\n }\n\n // Retrieve\n async get(id: string): Promise<Customer> {\n const resp = await this.client.get(`/v1/customers/${id}`);\n return resp.data;\n }\n\n // List, with pagination\n async list(per_page?: number, page?: number): Promise<CustomerListResponse> {\n const resp = await this.client.get('/v1/customers', {\n params: { per_page, page }\n });\n return resp.data;\n }\n\n async iterateAllCustomers(per_page = 20) {\n return paginate<Customer>(async (page: number) => {\n const res = await this.client.get('/v1/customers', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n // Delete\n async delete(id: string): Promise<DeleteResponse> {\n const resp = await this.client.delete(`/v1/customers/${id}`);\n return resp.data;\n }\n\n // Search\n async search(params: SearchCustomerParams): Promise<CustomerListResponse> {\n const resp = await this.client.get('/v1/customers/search', { params: params });\n return resp.data;\n }\n\n // Block\n async block(id: string): Promise<Customer> {\n const resp = await this.client.post(`/v1/customers/${id}/block`);\n return resp.data;\n }\n\n // Unblock\n async unblock(id: string): Promise<Customer> {\n const resp = await this.client.post(`/v1/customers/${id}/unblock`);\n return resp.data;\n }\n\n async getPaymentMethods(id: string): Promise<PaymentMethod[]> {\n const resp = await this.client.get(`/v1/customers/${id}/payment_methods`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n PaymentMethod,\n PaymentMethodListResponse,\n CreateCardPaymentMethodParams,\n CreateACHPaymentMethodParams,\n UpdatePaymentMethodParams,\n ConnectPlaidParams,\n CreateApplePayPaymentMethodParams,\n CreateGooglePayPaymentMethodParams\n} from '../types/payment_methods';\nimport { paginate } from '../utils/paginator';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class PaymentMethodsAPI {\n constructor(private client: AxiosInstance) {}\n\n async createCard(params: CreateCardPaymentMethodParams, opts?: RequestOptions): Promise<PaymentMethod> {\n const resp = await this.client.post('/v1/payment_methods', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async createACH(params: CreateACHPaymentMethodParams, opts?: RequestOptions): Promise<PaymentMethod> {\n const resp = await this.client.post('/v1/payment_methods', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async createApplePayPaymentMethod(\n params: CreateApplePayPaymentMethodParams,\n opts?: RequestOptions,\n ): Promise<PaymentMethod> {\n const resp = await this.client.post(\n '/v1/payment_methods',\n params,\n maybePublishableKey({ usePublishableKey: true, ...opts }),\n );\n return resp.data;\n }\n\n async createGooglePayPaymentMethod(\n params: CreateGooglePayPaymentMethodParams,\n opts?: RequestOptions,\n ): Promise<PaymentMethod> {\n const resp = await this.client.post(\n '/v1/payment_methods',\n params,\n maybePublishableKey({ usePublishableKey: true, ...opts }),\n );\n return resp.data;\n }\n\n async get(id: string): Promise<PaymentMethod> {\n const resp = await this.client.get(`/v1/payment_methods/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number): Promise<PaymentMethodListResponse> {\n const resp = await this.client.get('/v1/payment_methods', { params: { per_page, page } });\n return resp.data;\n }\n\n iterateAllPaymentMethods(per_page = 20): AsyncGenerator<PaymentMethod> {\n return paginate<PaymentMethod>(async (page: number) => {\n const res = await this.client.get('/v1/payment_methods', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n async listForCustomer(customerId: string, per_page?: number, page?: number): Promise<PaymentMethodListResponse> {\n const resp = await this.client.get(`/v1/customers/${customerId}/payment_methods`, {\n params: { per_page, page }\n });\n return resp.data;\n }\n\n async update(id: string, params: UpdatePaymentMethodParams): Promise<PaymentMethod> {\n const resp = await this.client.patch(`/v1/payment_methods/${id}`, params);\n return resp.data;\n }\n\n async attach(id: string, customerId: string): Promise<PaymentMethod> {\n const resp = await this.client.post(`/v1/payment_methods/${id}/attach`, { customer: customerId });\n return resp.data;\n }\n\n async detach(id: string): Promise<PaymentMethod> {\n const resp = await this.client.post(`/v1/payment_methods/${id}/detach`);\n return resp.data;\n }\n\n async block(id: string): Promise<PaymentMethod> {\n const resp = await this.client.post(`/v1/payment_methods/${id}/block`);\n return resp.data;\n }\n\n async unblock(id: string): Promise<PaymentMethod> {\n const resp = await this.client.post(`/v1/payment_methods/${id}/unblock`);\n return resp.data;\n }\n\n async connectPlaid(params: ConnectPlaidParams, opts?: RequestOptions): Promise<PaymentMethod> {\n const resp = await this.client.post('/v1/payment_methods/connect_plaid', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async connectPlaidBankAccount(params: ConnectPlaidParams, opts?: RequestOptions): Promise<PaymentMethod> {\n return this.connectPlaid(params, opts);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n ChargeIntent,\n ChargeIntentListResponse,\n CaptureChargeIntentParams,\n CreateChargeIntentParams,\n UpdateChargeIntentParams\n} from '../types/charge_intents';\nimport { paginate } from '../utils/paginator';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class ChargeIntentsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateChargeIntentParams, opts?: RequestOptions): Promise<ChargeIntent> {\n const resp = await this.client.post('/v1/charge_intents', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async update(id: string, params: UpdateChargeIntentParams): Promise<ChargeIntent> {\n const resp = await this.client.patch(`/v1/charge_intents/${id}`, params);\n return resp.data;\n }\n\n async get(id: string): Promise<ChargeIntent> {\n const resp = await this.client.get(`/v1/charge_intents/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number): Promise<ChargeIntentListResponse> {\n const resp = await this.client.get('/v1/charge_intents', { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllChargeIntents(per_page = 20) {\n return paginate<ChargeIntent>(async (page: number) => {\n const res = await this.client.get('/v1/charge_intents', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n async cancel(id: string): Promise<ChargeIntent> {\n const resp = await this.client.post(`/v1/charge_intents/${id}/cancel`);\n return resp.data;\n }\n\n async confirm(id: string, opts?: RequestOptions): Promise<ChargeIntent> {\n const resp = await this.client.post(`/v1/charge_intents/${id}/confirm`, undefined, maybePublishableKey(opts));\n return resp.data;\n }\n\n async capture(id: string, params?: CaptureChargeIntentParams): Promise<ChargeIntent> {\n const resp = await this.client.post(`/v1/charge_intents/${id}/capture`, params);\n return resp.data;\n }\n\n async voidRemaining(id: string): Promise<ChargeIntent> {\n const resp = await this.client.post(`/v1/charge_intents/${id}/void_remaining`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type { Refund, RefundListResponse, CreateRefundParams } from '../types/refunds';\nimport { paginate } from '../utils/paginator';\n\nexport class RefundsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateRefundParams): Promise<Refund> {\n const resp = await this.client.post('/v1/refunds', params);\n return resp.data;\n }\n\n async get(id: string): Promise<Refund> {\n const resp = await this.client.get(`/v1/refunds/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number): Promise<RefundListResponse> {\n const resp = await this.client.get('/v1/refunds', { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllRefunds(per_page = 20) {\n return paginate<Refund>(async (page: number) => {\n const res = await this.client.get('/v1/refunds', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n Subscription,\n SubscriptionListResponse,\n CreateSubscriptionParams,\n UpdateSubscriptionParams,\n SearchSubscriptionParams\n} from '../types/subscriptions';\nimport { paginate } from '../utils/paginator';\n\nexport class SubscriptionsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateSubscriptionParams): Promise<Subscription> {\n const resp = await this.client.post('/v1/subscriptions', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateSubscriptionParams): Promise<Subscription> {\n const resp = await this.client.patch(`/v1/subscriptions/${id}`, params);\n return resp.data;\n }\n\n async get(id: string): Promise<Subscription> {\n const resp = await this.client.get(`/v1/subscriptions/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number): Promise<SubscriptionListResponse> {\n const resp = await this.client.get('/v1/subscriptions', { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllSubscriptions(per_page = 20) {\n return paginate<Subscription>(async (page: number) => {\n const res = await this.client.get('/v1/subscriptions', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n async search(query: SearchSubscriptionParams): Promise<SubscriptionListResponse> {\n const resp = await this.client.get('/v1/subscriptions/search', { params: query });\n return resp.data;\n }\n\n async cancel(id: string): Promise<Subscription> {\n const resp = await this.client.post(`/v1/subscriptions/${id}/cancel`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n CustomerIdentityVerification,\n CreateCustomerIdentityVerificationParams,\n UploadDocumentsParams,\n IdentityDocumentUpload,\n ReactNativeFileDescriptor,\n} from '../types/customer_identity';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class CustomerIdentityVerificationsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(\n params: CreateCustomerIdentityVerificationParams,\n opts?: RequestOptions,\n ): Promise<CustomerIdentityVerification> {\n const resp = await this.client.post('/v1/customer_identity_verifications', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async createForCustomer(\n customerId: string,\n opts?: RequestOptions,\n ): Promise<CustomerIdentityVerification> {\n const resp = await this.client.post(\n `/v1/customers/${customerId}/identity_verifications`,\n undefined,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n\n async get(id: string, opts?: RequestOptions): Promise<CustomerIdentityVerification> {\n const resp = await this.client.get(`/v1/customer_identity_verifications/${id}`, maybePublishableKey(opts));\n return resp.data;\n }\n\n async submitForVerification(id: string, opts?: RequestOptions): Promise<CustomerIdentityVerification> {\n const resp = await this.client.post(\n `/v1/customer_identity_verifications/${id}/submit`,\n undefined,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n\n async uploadDocuments(\n id: string,\n params: UploadDocumentsParams,\n opts?: RequestOptions,\n ): Promise<CustomerIdentityVerification> {\n const resp = await this.client.post(\n `/v1/customer_identity_verifications/${id}/upload_documents`,\n params,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n\n async uploadIdentityDocuments(\n id: string,\n documents: IdentityDocumentUpload[],\n opts?: RequestOptions,\n ): Promise<CustomerIdentityVerification> {\n if (documents.length === 0) {\n throw new Error('uploadIdentityDocuments: documents array must not be empty');\n }\n\n const form = makeFormData();\n for (const doc of documents) {\n appendFile(form, doc);\n }\n\n const baseOpts = opts ?? {};\n const callerHeaders = (baseOpts as { headers?: Record<string, string> }).headers ?? {};\n return this.client\n .post(\n `/v1/customer_identity_verifications/${id}/upload_documents`,\n form,\n maybePublishableKey({\n ...baseOpts,\n headers: { ...callerHeaders, 'Content-Type': 'multipart/form-data' },\n }),\n )\n .then((resp) => resp.data);\n }\n}\n\ninterface FormDataLike {\n append(name: string, value: unknown, options?: { filename?: string; contentType?: string }): void;\n}\n\nfunction isReactNative(): boolean {\n const G: unknown = globalThis;\n if (typeof G !== 'object' || G === null) return false;\n const nav = (G as { navigator?: { product?: unknown } }).navigator;\n return typeof nav?.product === 'string' && nav.product === 'ReactNative';\n}\n\n// Pick FormData by runtime, not by whether `require('form-data')` succeeds:\n// form-data is a transitive dep of axios so the require succeeds on RN too,\n// but it doesn't accept RN's { uri, type, name } file shape.\nfunction makeFormData(): FormDataLike {\n if (isReactNative()) {\n const G: unknown = globalThis;\n const Ctor = (G as { FormData?: new () => FormDataLike }).FormData;\n if (typeof Ctor !== 'function') {\n throw new Error(\n 'React Native runtime detected but globalThis.FormData is missing. Polyfill required.',\n );\n }\n return new Ctor();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const FormDataCtor = require('form-data');\n return new FormDataCtor() as FormDataLike;\n}\n\nfunction isReactNativeFileDescriptor(file: unknown): file is ReactNativeFileDescriptor {\n return (\n typeof file === 'object' &&\n file !== null &&\n typeof (file as { uri?: unknown }).uri === 'string'\n );\n}\n\nfunction appendFile(form: FormDataLike, doc: IdentityDocumentUpload): void {\n const fieldName = doc.field_name ?? doc.document_type;\n const file = doc.file;\n\n if (isReactNativeFileDescriptor(file)) {\n form.append(fieldName, file);\n return;\n }\n\n const fileOptions: { filename?: string; contentType?: string } = {};\n if (doc.file_name !== undefined) fileOptions.filename = doc.file_name;\n if (doc.content_type !== undefined) fileOptions.contentType = doc.content_type;\n form.append(fieldName, file, fileOptions);\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n SubscriptionPhase,\n SubscriptionPhaseListResponse,\n CreateSubscriptionPhaseParams,\n UpdateSubscriptionPhaseParams\n} from '../types/subscription_phases';\nimport { paginate } from '../utils/paginator';\n\nexport class SubscriptionPhasesAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(subscriptionId: string): Promise<SubscriptionPhaseListResponse> {\n const resp = await this.client.get(`/v1/subscriptions/${subscriptionId}/phases`);\n return resp.data;\n }\n\n async iterateAllSubscriptionPhases(subscriptionId: string, per_page = 20) {\n return paginate<SubscriptionPhase>(async (page: number) => {\n const res = await this.client.get(`/v1/subscriptions/${subscriptionId}/phases`, {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n async get(subscriptionId: string, phaseId: string): Promise<SubscriptionPhase> {\n const resp = await this.client.get(`/v1/subscriptions/${subscriptionId}/phases/${phaseId}`);\n return resp.data;\n }\n\n async create(subscriptionId: string, params: CreateSubscriptionPhaseParams): Promise<SubscriptionPhase> {\n const resp = await this.client.post(`/v1/subscriptions/${subscriptionId}/phases`, params);\n return resp.data;\n }\n\n async update(subscriptionId: string, phaseId: string, params: UpdateSubscriptionPhaseParams): Promise<SubscriptionPhase> {\n const resp = await this.client.patch(`/v1/subscriptions/${subscriptionId}/phases/${phaseId}`, params);\n return resp.data;\n }\n\n async delete(subscriptionId: string, phaseId: string): Promise<{ id: string; object: string; deleted: boolean }> {\n const resp = await this.client.delete(`/v1/subscriptions/${subscriptionId}/phases/${phaseId}`);\n return resp.data;\n }\n\n async bulkUpdate(subscriptionId: string, phases: Array<{ id: string; [key: string]: any }>): Promise<SubscriptionPhaseListResponse> {\n const resp = await this.client.patch(`/v1/subscriptions/${subscriptionId}/phases/bulk_update`, { phases });\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n Invoice,\n InvoiceListResponse,\n CreateInvoiceParams,\n UpdateInvoiceParams,\n DeleteInvoiceResponse\n} from '../types/invoices';\n\nexport class InvoicesAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateInvoiceParams): Promise<Invoice> {\n const resp = await this.client.post('/v1/invoices', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateInvoiceParams): Promise<Invoice> {\n const resp = await this.client.patch(`/v1/invoices/${id}`, params);\n return resp.data;\n }\n\n async get(id: string): Promise<Invoice> {\n const resp = await this.client.get(`/v1/invoices/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number, customer?: string, status?: string): Promise<InvoiceListResponse> {\n const resp = await this.client.get('/v1/invoices', {\n params: { per_page, page, customer, status }\n });\n return resp.data;\n }\n\n async delete(id: string): Promise<DeleteInvoiceResponse> {\n const resp = await this.client.delete(`/v1/invoices/${id}`);\n return resp.data;\n }\n\n async issue(id: string): Promise<Invoice> {\n const resp = await this.client.post(`/v1/invoices/${id}/issue`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n InvoiceLineItem,\n InvoiceLineItemListResponse,\n CreateInvoiceLineItemParams,\n UpdateInvoiceLineItemParams\n} from '../types/invoice_line_items';\nimport type { \n DeleteInvoiceResponse \n} from '../types/invoices';\n\nexport class InvoiceLineItemsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(invoiceId: string): Promise<InvoiceLineItemListResponse> {\n const resp = await this.client.get(`/v1/invoices/${invoiceId}/line_items`);\n return resp.data;\n }\n\n async create(invoiceId: string, params: CreateInvoiceLineItemParams): Promise<InvoiceLineItem> {\n const resp = await this.client.post(`/v1/invoices/${invoiceId}/line_items`, params);\n return resp.data;\n }\n\n async update(invoiceId: string, lineItemId: string, params: UpdateInvoiceLineItemParams): Promise<InvoiceLineItem> {\n const resp = await this.client.patch(`/v1/invoices/${invoiceId}/line_items/${lineItemId}`, params);\n return resp.data;\n }\n\n async get(invoiceId: string, lineItemId: string): Promise<InvoiceLineItem> {\n const resp = await this.client.get(`/v1/invoices/${invoiceId}/line_items/${lineItemId}`);\n return resp.data;\n }\n\n async delete(invoiceId: string, lineItemId: string): Promise<DeleteInvoiceResponse> {\n const resp = await this.client.delete(`/v1/invoices/${invoiceId}/line_items/${lineItemId}`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type {\n Dispute,\n DisputeListResponse,\n UpdateDisputeParams,\n CreateDisputeDocumentParams,\n DisputeDocument\n} from '../types/disputes';\n\nexport class DisputesAPI {\n constructor(private client: AxiosInstance) {}\n\n async update(id: string, params: UpdateDisputeParams): Promise<Dispute> {\n const resp = await this.client.patch(`/v1/disputes/${id}`, params);\n return resp.data;\n }\n\n async get(id: string): Promise<Dispute> {\n const resp = await this.client.get(`/v1/disputes/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number, charge?: string, charge_intent?: string): Promise<DisputeListResponse> {\n const resp = await this.client.get('/v1/disputes', { params: { per_page, page, charge, charge_intent } });\n return resp.data;\n }\n\n async createDocument(id: string, params: CreateDisputeDocumentParams): Promise<DisputeDocument> {\n const resp = await this.client.post(`/v1/disputes/${id}/documents`, params);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type { Product, ProductListResponse, CreateProductParams, UpdateProductParams, SearchProductParams, DeletedProduct } from '../types/products';\nimport { paginate } from '../utils/paginator';\n\nexport class ProductsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateProductParams): Promise<Product> {\n const resp = await this.client.post('/v1/products', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateProductParams): Promise<Product> {\n const resp = await this.client.patch(`/v1/products/${id}`, params);\n return resp.data;\n }\n\n async get(id: string): Promise<Product> {\n const resp = await this.client.get(`/v1/products/${id}`);\n return resp.data;\n }\n\n async list(per_page?: number, page?: number): Promise<ProductListResponse> {\n const resp = await this.client.get('/v1/products', { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllProducts(per_page = 20) {\n return paginate<Product>(async (page: number) => {\n const res = await this.client.get('/v1/products', {\n params: { per_page, page }\n });\n return res.data;\n }, per_page);\n }\n\n async search(params: SearchProductParams): Promise<ProductListResponse> {\n const resp = await this.client.get('/v1/products/search', { params });\n return resp.data;\n }\n\n async delete(id: string): Promise<DeletedProduct> {\n const resp = await this.client.delete(`/v1/products/${id}`);\n return resp.data;\n }\n}","import type { AxiosInstance } from 'axios';\nimport type { Charge, ChargeTrace } from '../types/charges';\n\nexport class ChargesAPI {\n constructor(private client: AxiosInstance) {}\n\n async get(id: string): Promise<Charge> {\n const resp = await this.client.get(`/v1/charges/${id}`);\n return resp.data;\n }\n\n async trace(id: string): Promise<ChargeTrace> {\n const resp = await this.client.get(`/v1/charges/${id}/trace`);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n ChargeSession,\n CreateChargeSessionParams,\n UpdateChargeSessionParams\n} from '../types/charge_sessions';\n\nexport class ChargeSessionsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateChargeSessionParams): Promise<ChargeSession> {\n const resp = await this.client.post('/v1/charge_sessions', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateChargeSessionParams): Promise<ChargeSession> {\n const resp = await this.client.patch(`/v1/charge_sessions/${id}`, params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n SonarSession,\n CreateSonarSessionParams,\n UpdateSonarSessionParams\n} from '../types/sonar_sessions';\n\nexport class SonarSessionsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateSonarSessionParams): Promise<SonarSession> {\n const resp = await this.client.post('/v1/sonar_sessions', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateSonarSessionParams): Promise<SonarSession> {\n const resp = await this.client.patch(`/v1/sonar_sessions/${id}`, params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n PhoneVerification,\n CreatePhoneVerificationParams,\n ConfirmPhoneVerificationParams\n} from '../types/phone_verifications';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class PhoneVerificationsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(\n accountId: string,\n params: CreatePhoneVerificationParams,\n opts?: RequestOptions,\n ): Promise<PhoneVerification> {\n const resp = await this.client.post(\n `/v1/accounts/${accountId}/phone_verifications`,\n params,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n\n async confirm(\n accountId: string,\n id: string,\n params: ConfirmPhoneVerificationParams,\n opts?: RequestOptions,\n ): Promise<PhoneVerification> {\n const resp = await this.client.post(\n `/v1/accounts/${accountId}/phone_verifications/${id}/confirm`,\n params,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { Geofence, GeofenceListResponse } from '../types/geofences';\nimport { paginate } from '../utils/paginator';\n\nexport class GeofencesAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(params?: { per_page?: number; page?: number }): Promise<GeofenceListResponse> {\n const resp = await this.client.get('/v1/geofences', { params });\n return resp.data;\n }\n\n async iterateAllGeofences(per_page = 20) {\n return paginate<Geofence>(async (page: number) => {\n const res = await this.client.get('/v1/geofences', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { WebhookEndpoint, WebhookEndpointListResponse } from '../types/webhook_endpoints';\nimport { paginate } from '../utils/paginator';\n\nexport class WebhookEndpointsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<WebhookEndpointListResponse> {\n const resp = await this.client.get('/v1/webhook_endpoints', { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllWebhookEndpoints(per_page = 20) {\n return paginate<WebhookEndpoint>(async (page: number) => {\n const res = await this.client.get('/v1/webhook_endpoints', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { Payout, CreatePayoutParams } from '../types/payouts';\n\nexport class PayoutsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreatePayoutParams): Promise<Payout> {\n const resp = await this.client.post('/v1/payouts', params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { Transfer, TransferListResponse, CreateTransferParams } from '../types/transfers';\nimport { paginate } from '../utils/paginator';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class TransfersAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<TransferListResponse> {\n const resp = await this.client.get('/v1/transfers', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<Transfer> {\n const resp = await this.client.get(`/v1/transfers/${id}`);\n return resp.data;\n }\n\n async create(params: CreateTransferParams, opts?: RequestOptions): Promise<Transfer> {\n const resp = await this.client.post('/v1/transfers', params, maybePublishableKey(opts));\n return resp.data;\n }\n\n async iterateAllTransfers(per_page = 20) {\n return paginate<Transfer>(async (page: number) => {\n const res = await this.client.get('/v1/transfers', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n TransferFeePlan,\n TransferFeePlanListResponse,\n CreateTransferFeePlanParams\n} from '../types/transfer_fee_plans';\nimport { paginate } from '../utils/paginator';\n\nexport class TransferFeePlansAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<TransferFeePlanListResponse> {\n const resp = await this.client.get('/v1/transfer_fee_plans', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<TransferFeePlan> {\n const resp = await this.client.get(`/v1/transfer_fee_plans/${id}`);\n return resp.data;\n }\n\n async create(params: CreateTransferFeePlanParams): Promise<TransferFeePlan> {\n const resp = await this.client.post('/v1/transfer_fee_plans', params);\n return resp.data;\n }\n\n async iterateAllTransferFeePlans(per_page = 20) {\n return paginate<TransferFeePlan>(async (page: number) => {\n const res = await this.client.get('/v1/transfer_fee_plans', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n TransferBillingAgreement,\n TransferBillingAgreementListResponse,\n CreateTransferBillingAgreementParams,\n UpdateTransferBillingAgreementParams\n} from '../types/transfer_billing_agreements';\nimport { paginate } from '../utils/paginator';\n\nexport class TransferBillingAgreementsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<TransferBillingAgreementListResponse> {\n const resp = await this.client.get('/v1/transfer_billing_agreements', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<TransferBillingAgreement> {\n const resp = await this.client.get(`/v1/transfer_billing_agreements/${id}`);\n return resp.data;\n }\n\n async create(params: CreateTransferBillingAgreementParams): Promise<TransferBillingAgreement> {\n const resp = await this.client.post('/v1/transfer_billing_agreements', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateTransferBillingAgreementParams): Promise<TransferBillingAgreement> {\n const resp = await this.client.patch(`/v1/transfer_billing_agreements/${id}`, params);\n return resp.data;\n }\n\n async iterateAllTransferBillingAgreements(per_page = 20) {\n return paginate<TransferBillingAgreement>(async (page: number) => {\n const res = await this.client.get('/v1/transfer_billing_agreements', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n Coupon,\n CouponListResponse,\n CreateCouponParams,\n UpdateCouponParams\n} from '../types/coupons';\nimport { paginate } from '../utils/paginator';\n\nexport class CouponsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<CouponListResponse> {\n const resp = await this.client.get('/v1/coupons', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<Coupon> {\n const resp = await this.client.get(`/v1/coupons/${id}`);\n return resp.data;\n }\n\n async create(params: CreateCouponParams): Promise<Coupon> {\n const resp = await this.client.post('/v1/coupons', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdateCouponParams): Promise<Coupon> {\n const resp = await this.client.patch(`/v1/coupons/${id}`, params);\n return resp.data;\n }\n\n async iterateAllCoupons(per_page = 20) {\n return paginate<Coupon>(async (page: number) => {\n const res = await this.client.get('/v1/coupons', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n PromotionCode,\n PromotionCodeListResponse,\n CreatePromotionCodeParams,\n UpdatePromotionCodeParams\n} from '../types/promotion_codes';\nimport { paginate } from '../utils/paginator';\n\nexport class PromotionCodesAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<PromotionCodeListResponse> {\n const resp = await this.client.get('/v1/promotion_codes', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<PromotionCode> {\n const resp = await this.client.get(`/v1/promotion_codes/${id}`);\n return resp.data;\n }\n\n async create(params: CreatePromotionCodeParams): Promise<PromotionCode> {\n const resp = await this.client.post('/v1/promotion_codes', params);\n return resp.data;\n }\n\n async update(id: string, params: UpdatePromotionCodeParams): Promise<PromotionCode> {\n const resp = await this.client.patch(`/v1/promotion_codes/${id}`, params);\n return resp.data;\n }\n\n async iterateAllPromotionCodes(per_page = 20) {\n return paginate<PromotionCode>(async (page: number) => {\n const res = await this.client.get('/v1/promotion_codes', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n Discount,\n DiscountListResponse,\n ValidateDiscountsParams\n} from '../types/discounts';\nimport { paginate } from '../utils/paginator';\n\nexport class DiscountsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(per_page?: number, page?: number): Promise<DiscountListResponse> {\n const resp = await this.client.get('/v1/discounts', { params: { per_page, page } });\n return resp.data;\n }\n\n async get(id: string): Promise<Discount> {\n const resp = await this.client.get(`/v1/discounts/${id}`);\n return resp.data;\n }\n\n async validate(params: ValidateDiscountsParams): Promise<Discount[]> {\n const resp = await this.client.post('/v1/discounts/validate', params);\n return resp.data;\n }\n\n async iterateAllDiscounts(per_page = 20) {\n return paginate<Discount>(async (page: number) => {\n const res = await this.client.get('/v1/discounts', { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n PaymentLinkSession,\n CreatePaymentLinkSessionParams\n} from '../types/payment_link_sessions';\n\nexport class PaymentLinkSessionsAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreatePaymentLinkSessionParams): Promise<PaymentLinkSession> {\n const resp = await this.client.post('/v1/payment_link_sessions', params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n SubscriptionChangeLog,\n SubscriptionChangeLogListResponse\n} from '../types/subscription_change_logs';\nimport { paginate } from '../utils/paginator';\n\nexport class SubscriptionChangeLogsAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(subscriptionId: string, per_page?: number, page?: number): Promise<SubscriptionChangeLogListResponse> {\n const resp = await this.client.get(`/v1/subscriptions/${subscriptionId}/change_logs`, { params: { per_page, page } });\n return resp.data;\n }\n\n async iterateAllSubscriptionChangeLogs(subscriptionId: string, per_page = 20) {\n return paginate<SubscriptionChangeLog>(async (page: number) => {\n const res = await this.client.get(`/v1/subscriptions/${subscriptionId}/change_logs`, { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n Metering,\n CreateMeteringParams,\n UpdateMeteringParams,\n MeteringEvent,\n CreateMeteringEventParams,\n UpdateMeteringEventParams,\n BillingInvoice,\n CreateBillingInvoiceParams,\n BillingCredit,\n CreateBillingCreditParams,\n BillingReport\n} from '../types/billing';\n\nexport class BillingAPI {\n constructor(private client: AxiosInstance) {}\n\n async createMetering(params: CreateMeteringParams): Promise<Metering> {\n const resp = await this.client.post('/v1/billing/metering', params);\n return resp.data;\n }\n\n async getMetering(id: string): Promise<Metering> {\n const resp = await this.client.get(`/v1/billing/metering/${id}`);\n return resp.data;\n }\n\n async updateMetering(id: string, params: UpdateMeteringParams): Promise<Metering> {\n const resp = await this.client.patch(`/v1/billing/metering/${id}`, params);\n return resp.data;\n }\n\n async createMeteringEvent(params: CreateMeteringEventParams): Promise<MeteringEvent> {\n const resp = await this.client.post('/v1/billing/metering_events', params);\n return resp.data;\n }\n\n async getMeteringEvent(id: string): Promise<MeteringEvent> {\n const resp = await this.client.get(`/v1/billing/metering_events/${id}`);\n return resp.data;\n }\n\n async updateMeteringEvent(id: string, params: UpdateMeteringEventParams): Promise<MeteringEvent> {\n const resp = await this.client.patch(`/v1/billing/metering_events/${id}`, params);\n return resp.data;\n }\n\n async createBillingInvoice(params: CreateBillingInvoiceParams): Promise<BillingInvoice> {\n const resp = await this.client.post('/v1/billing/billing_invoice', params);\n return resp.data;\n }\n\n async createBillingCredit(params: CreateBillingCreditParams): Promise<BillingCredit> {\n const resp = await this.client.post('/v1/billing/billing_credit', params);\n return resp.data;\n }\n\n async getBillingCredit(id: string): Promise<BillingCredit> {\n const resp = await this.client.get(`/v1/billing/billing_credit/${id}`);\n return resp.data;\n }\n\n async getCustomerReport(params?: Record<string, unknown>): Promise<BillingReport> {\n const resp = await this.client.get('/v1/billing/report/customer', { params });\n return resp.data;\n }\n\n async getEventReport(eventName: string, params?: Record<string, unknown>): Promise<BillingReport> {\n const resp = await this.client.get(`/v1/billing/report/event/${eventName}`, { params });\n return resp.data;\n }\n\n async getEventsReport(params?: Record<string, unknown>): Promise<BillingReport> {\n const resp = await this.client.get('/v1/billing/report/events', { params });\n return resp.data;\n }\n\n async getSubscriptionReport(params?: Record<string, unknown>): Promise<BillingReport> {\n const resp = await this.client.get('/v1/billing/report/subscription', { params });\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { ThreeDSIntent, CreateThreeDSIntentParams } from '../types/three_ds';\n\nexport class ThreeDSAPI {\n constructor(private client: AxiosInstance) {}\n\n async create(params: CreateThreeDSIntentParams): Promise<ThreeDSIntent> {\n const resp = await this.client.post('/v1/3ds/intents', params);\n return resp.data;\n }\n\n async get(id: string): Promise<ThreeDSIntent> {\n const resp = await this.client.get(`/v1/3ds/intents/${id}`);\n return resp.data;\n }\n\n async resend(id: string): Promise<ThreeDSIntent> {\n const resp = await this.client.post(`/v1/3ds/intents/${id}/resend`);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n ProductPhase,\n ProductPhaseListResponse,\n CreateProductPhaseParams,\n UpdateProductPhaseParams\n} from '../types/product_phases';\nimport { paginate } from '../utils/paginator';\n\nexport class ProductPhasesAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(productId: string, per_page?: number, page?: number): Promise<ProductPhaseListResponse> {\n const resp = await this.client.get(`/v1/products/${productId}/phases`, { params: { per_page, page } });\n return resp.data;\n }\n\n async get(productId: string, phaseId: string): Promise<ProductPhase> {\n const resp = await this.client.get(`/v1/products/${productId}/phases/${phaseId}`);\n return resp.data;\n }\n\n async create(productId: string, params: CreateProductPhaseParams): Promise<ProductPhase> {\n const resp = await this.client.post(`/v1/products/${productId}/phases`, params);\n return resp.data;\n }\n\n async update(productId: string, phaseId: string, params: UpdateProductPhaseParams): Promise<ProductPhase> {\n const resp = await this.client.patch(`/v1/products/${productId}/phases/${phaseId}`, params);\n return resp.data;\n }\n\n async delete(productId: string, phaseId: string): Promise<ProductPhase> {\n const resp = await this.client.delete(`/v1/products/${productId}/phases/${phaseId}`);\n return resp.data;\n }\n\n async bulkUpdate(productId: string, phases: Array<{ id: string; [key: string]: unknown }>): Promise<ProductPhaseListResponse> {\n const resp = await this.client.patch(`/v1/products/${productId}/phases/bulk_update`, { phases });\n return resp.data;\n }\n\n async iterateAllProductPhases(productId: string, per_page = 20) {\n return paginate<ProductPhase>(async (page: number) => {\n const res = await this.client.get(`/v1/products/${productId}/phases`, { params: { per_page, page } });\n return res.data;\n }, per_page);\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { TermsOfServiceTokenResponse, UpdateTermsOfServiceParams } from '../types/terms_of_service';\n\nexport class TermsOfServiceAPI {\n constructor(private client: AxiosInstance) {}\n\n async createToken(): Promise<TermsOfServiceTokenResponse> {\n const resp = await this.client.post('/v1/terms_of_service', {});\n return resp.data;\n }\n\n async update(params: UpdateTermsOfServiceParams): Promise<TermsOfServiceTokenResponse> {\n const resp = await this.client.patch('/v1/terms_of_service', params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n OnboardingSession,\n OnboardingSessionListResponse,\n ListOnboardingSessionsParams,\n CreateOnboardingSessionParams,\n UpdateOnboardingSessionParams,\n OnboardingPayoutParams\n} from '../types/onboarding';\n\nexport class OnboardingAPI {\n constructor(private client: AxiosInstance) {}\n\n async list(params?: ListOnboardingSessionsParams): Promise<OnboardingSessionListResponse> {\n const resp = await this.client.get('/v1/onboarding/sessions', { params });\n return resp.data;\n }\n\n async create(params: CreateOnboardingSessionParams): Promise<OnboardingSession> {\n const resp = await this.client.post('/v1/onboarding/sessions', params);\n return resp.data;\n }\n\n async get(sessionId: string): Promise<OnboardingSession> {\n const resp = await this.client.get(`/v1/onboarding/sessions/${sessionId}`);\n return resp.data;\n }\n\n async update(sessionId: string, params: UpdateOnboardingSessionParams): Promise<OnboardingSession> {\n const resp = await this.client.patch(`/v1/onboarding/sessions/${sessionId}`, params);\n return resp.data;\n }\n\n async payout(sessionId: string, params: OnboardingPayoutParams): Promise<OnboardingSession> {\n const resp = await this.client.post(`/v1/onboarding/sessions/${sessionId}/payout`, params);\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { EvervaultConfiguration, SiftConfiguration } from '../types/configuration';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class ConfigurationAPI {\n constructor(private client: AxiosInstance) {}\n\n async getEvervaultConfiguration(opts?: RequestOptions): Promise<EvervaultConfiguration> {\n const resp = await this.client.get('/v1/config/evervault', maybePublishableKey(opts));\n return resp.data;\n }\n\n async getSiftConfiguration(opts?: RequestOptions): Promise<SiftConfiguration> {\n const resp = await this.client.get('/v1/config/sift', maybePublishableKey(opts));\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type {\n AttestRequest,\n AttestResponse,\n ChallengeResponse,\n} from '../types/device_attestation';\nimport { withPublishableKey, type RequestOptions } from '../client';\n\nexport class DeviceAttestationAPI {\n constructor(private client: AxiosInstance) {}\n\n async getChallenge(opts?: RequestOptions): Promise<ChallengeResponse> {\n const resp = await this.client.post('/v1/client/device_attestation/challenge', undefined, withPublishableKey(opts));\n return resp.data;\n }\n\n async attest(params: AttestRequest, opts?: RequestOptions): Promise<AttestResponse> {\n const resp = await this.client.post('/v1/client/device_attestation/attest', params, withPublishableKey(opts));\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { GooglePayConfiguration } from '../types/wallet';\nimport { withPublishableKey, type RequestOptions } from '../client';\n\nexport class WalletAPI {\n constructor(private client: AxiosInstance) {}\n\n async getGooglePayConfiguration(opts?: RequestOptions): Promise<GooglePayConfiguration> {\n const resp = await this.client.get('/v1/client/wallet/google_pay', withPublishableKey(opts));\n return resp.data;\n }\n}\n","import type { AxiosInstance } from 'axios';\nimport type { GeoComplianceStatus } from '../types/geo_compliance';\nimport { maybePublishableKey, type RequestOptions } from '../client';\n\nexport class GeoComplianceAPI {\n constructor(private client: AxiosInstance) {}\n\n async getAccountStatus(accountId: string, opts?: RequestOptions): Promise<GeoComplianceStatus> {\n const resp = await this.client.get(\n `/v1/accounts/${accountId}/geo_compliance`,\n maybePublishableKey(opts),\n );\n return resp.data;\n }\n}\n","import { createApiClient, type ClientConfig } from './client';\nimport { AccountsAPI } from './api/accounts-api';\nimport { CapabilitiesAPI } from './api/capabilities-api';\nimport { OnboardingSessionsAPI } from './api/onboarding_sessions-api';\nimport { CustomersAPI } from './api/customers-api';\nimport { PaymentMethodsAPI } from './api/payment_methods-api';\nimport { ChargeIntentsAPI } from './api/charge_intents-api';\nimport { RefundsAPI } from './api/refunds-api';\nimport { SubscriptionsAPI } from './api/subscriptions-api';\nimport { CustomerIdentityVerificationsAPI } from './api/customer_identity-api';\nimport { SubscriptionPhasesAPI } from './api/subscription_phases-api';\nimport { InvoicesAPI } from './api/invoices-api';\nimport { InvoiceLineItemsAPI } from './api/invoice_line_item-api';\nimport { DisputesAPI } from './api/disputes-api';\nimport { ProductsAPI } from './api/products-api';\nimport { ChargesAPI } from './api/charges-api';\nimport { ChargeSessionsAPI } from './api/charge_sessions-api';\nimport { SonarSessionsAPI } from './api/sonar_sessions-api';\nimport { PhoneVerificationsAPI } from './api/phone_verifications-api';\nimport { GeofencesAPI } from './api/geofences-api';\nimport { WebhookEndpointsAPI } from './api/webhook_endpoints-api';\nimport { PayoutsAPI } from './api/payouts-api';\nimport { TransfersAPI } from './api/transfers-api';\nimport { TransferFeePlansAPI } from './api/transfer_fee_plans-api';\nimport { TransferBillingAgreementsAPI } from './api/transfer_billing_agreements-api';\nimport { CouponsAPI } from './api/coupons-api';\nimport { PromotionCodesAPI } from './api/promotion_codes-api';\nimport { DiscountsAPI } from './api/discounts-api';\nimport { PaymentLinkSessionsAPI } from './api/payment_link_sessions-api';\nimport { SubscriptionChangeLogsAPI } from './api/subscription_change_logs-api';\nimport { BillingAPI } from './api/billing-api';\nimport { ThreeDSAPI } from './api/three_ds-api';\nimport { ProductPhasesAPI } from './api/product_phases-api';\nimport { TermsOfServiceAPI } from './api/terms_of_service-api';\nimport { OnboardingAPI } from './api/onboarding-api';\nimport { ConfigurationAPI } from './api/configuration-api';\nimport { DeviceAttestationAPI } from './api/device_attestation-api';\nimport { WalletAPI } from './api/wallet-api';\nimport { GeoComplianceAPI } from './api/geo_compliance-api';\n\nexport { paginate } from './utils/paginator';\nexport { FrameAPIError } from './errors/frame_api_error';\nexport { withPublishableKey, maybePublishableKey } from './client';\nexport type { ClientConfig, RequestOptions } from './client';\n\nexport type {\n EvervaultConfiguration,\n SiftConfiguration,\n} from './types/configuration';\nexport type {\n ChallengeResponse,\n AttestRequest,\n AttestResponse,\n} from './types/device_attestation';\nexport type { GooglePayConfiguration } from './types/wallet';\nexport type {\n ApplePayPaymentDataHeader,\n ApplePayPaymentData,\n ApplePayPaymentMethodInfo,\n ApplePayToken,\n ApplePayBillingContact,\n ApplePayTokenDetails,\n ApplePayDetails,\n ApplePayWalletEnvelope,\n CreateApplePayPaymentMethodParams,\n GooglePayPaymentMethodData,\n GooglePayWalletData,\n GooglePayWalletEnvelope,\n CreateGooglePayPaymentMethodParams,\n} from './types/payment_methods';\nexport type {\n IdentityDocumentUpload,\n ReactNativeFileDescriptor,\n NodeFilePayload,\n} from './types/customer_identity';\nexport type { GeoComplianceStatus } from './types/geo_compliance';\n\nexport class FrameSDK {\n public accounts: AccountsAPI;\n public capabilities: CapabilitiesAPI;\n public onboardingSessions: OnboardingSessionsAPI;\n public customers: CustomersAPI;\n public paymentMethods: PaymentMethodsAPI;\n public chargeIntents: ChargeIntentsAPI;\n public refunds: RefundsAPI;\n public subscriptions: SubscriptionsAPI;\n public customerIdentityVerifications: CustomerIdentityVerificationsAPI;\n public subscriptionPhases: SubscriptionPhasesAPI;\n public invoices: InvoicesAPI;\n public invoiceLineItems: InvoiceLineItemsAPI;\n public disputes: DisputesAPI;\n public products: ProductsAPI;\n public charges: ChargesAPI;\n public chargeSessions: ChargeSessionsAPI;\n public sonarSessions: SonarSessionsAPI;\n public phoneVerifications: PhoneVerificationsAPI;\n public geofences: GeofencesAPI;\n public webhookEndpoints: WebhookEndpointsAPI;\n public payouts: PayoutsAPI;\n public transfers: TransfersAPI;\n public transferFeePlans: TransferFeePlansAPI;\n public transferBillingAgreements: TransferBillingAgreementsAPI;\n public coupons: CouponsAPI;\n public promotionCodes: PromotionCodesAPI;\n public discounts: DiscountsAPI;\n public paymentLinkSessions: PaymentLinkSessionsAPI;\n public subscriptionChangeLogs: SubscriptionChangeLogsAPI;\n public billing: BillingAPI;\n public threeDS: ThreeDSAPI;\n public productPhases: ProductPhasesAPI;\n public termsOfService: TermsOfServiceAPI;\n public onboarding: OnboardingAPI;\n public configuration: ConfigurationAPI;\n public deviceAttestation: DeviceAttestationAPI;\n public wallet: WalletAPI;\n public geoCompliance: GeoComplianceAPI;\n\n constructor(config: ClientConfig) {\n const client = createApiClient(config);\n this.accounts = new AccountsAPI(client);\n this.capabilities = new CapabilitiesAPI(client);\n this.onboardingSessions = new OnboardingSessionsAPI(client);\n this.customers = new CustomersAPI(client);\n this.paymentMethods = new PaymentMethodsAPI(client);\n this.chargeIntents = new ChargeIntentsAPI(client);\n this.refunds = new RefundsAPI(client);\n this.subscriptions = new SubscriptionsAPI(client);\n this.customerIdentityVerifications = new CustomerIdentityVerificationsAPI(client);\n this.subscriptionPhases = new SubscriptionPhasesAPI(client);\n this.invoices = new InvoicesAPI(client);\n this.invoiceLineItems = new InvoiceLineItemsAPI(client);\n this.disputes = new DisputesAPI(client);\n this.products = new ProductsAPI(client);\n this.charges = new ChargesAPI(client);\n this.chargeSessions = new ChargeSessionsAPI(client);\n this.sonarSessions = new SonarSessionsAPI(client);\n this.phoneVerifications = new PhoneVerificationsAPI(client);\n this.geofences = new GeofencesAPI(client);\n this.webhookEndpoints = new WebhookEndpointsAPI(client);\n this.payouts = new PayoutsAPI(client);\n this.transfers = new TransfersAPI(client);\n this.transferFeePlans = new TransferFeePlansAPI(client);\n this.transferBillingAgreements = new TransferBillingAgreementsAPI(client);\n this.coupons = new CouponsAPI(client);\n this.promotionCodes = new PromotionCodesAPI(client);\n this.discounts = new DiscountsAPI(client);\n this.paymentLinkSessions = new PaymentLinkSessionsAPI(client);\n this.subscriptionChangeLogs = new SubscriptionChangeLogsAPI(client);\n this.billing = new BillingAPI(client);\n this.threeDS = new ThreeDSAPI(client);\n this.productPhases = new ProductPhasesAPI(client);\n this.termsOfService = new TermsOfServiceAPI(client);\n this.onboarding = new OnboardingAPI(client);\n this.configuration = new ConfigurationAPI(client);\n this.deviceAttestation = new DeviceAttestationAPI(client);\n this.wallet = new WalletAPI(client);\n this.geoCompliance = new GeoComplianceAPI(client);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAa,gBAAb,cAAmC,MAAM;CAKvC,YAAY,SAAiB,MAAc,QAAgB,KAAU;EACnE,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,MAAM;CACb;AACF;;;ACWA,MAAM,uBAAuB;AAK7B,SAAS,sBAAsB,KAAmB;CAChD,IAAI,CAAC,OAAO,OAAO,QAAQ,UAAU,OAAO;CAC5C,MAAM,gBAAgB,IAAI,gBACf;EACL,MAAM,EAAE,SAAS,GAAG,eAAe,IAAI;EACvC,MAAM,iBACJ,WAAW,OAAO,YAAY,WAC1B,OAAO,YACL,OAAO,QAAQ,OAAkC,CAAC,CAAC,QAChD,CAAC,OAAO,EAAE,YAAY,MAAM,mBAAmB,MAAM,oBACxD,CACF,IACA;EACN,OAAO;GAAE,GAAG;GAAY,SAAS;EAAe;CAClD,EAAA,CAAG,IACH,KAAA;CACJ,OAAO;EACL,SAAS,IAAI;EACb,MAAM,IAAI;EACV,MAAM,IAAI;EACV,QAAQ;CACV;AACF;AAEA,MAAa,mBAAmB,WAAwC;CACtE,MAAM,EAAE,QA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oBAAoB,MAAM;EACtD,KAAK,4BAA4B,IAAI,6BAA6B,MAAM;EACxE,KAAK,UAAU,IAAI,WAAW,MAAM;EACpC,KAAK,iBAAiB,IAAI,kBAAkB,MAAM;EAClD,KAAK,YAAY,IAAI,aAAa,MAAM;EACxC,KAAK,sBAAsB,IAAI,uBAAuB,MAAM;EAC5D,KAAK,yBAAyB,IAAI,0BAA0B,MAAM;EAClE,KAAK,UAAU,IAAI,WAAW,MAAM;EACpC,KAAK,UAAU,IAAI,WAAW,MAAM;EACpC,KAAK,gBAAgB,IAAI,iBAAiB,MAAM;EAChD,KAAK,iBAAiB,IAAI,kBAAkB,MAAM;EAClD,KAAK,aAAa,IAAI,cAAc,MAAM;EAC1C,KAAK,gBAAgB,IAAI,iBAAiB,MAAM;EAChD,KAAK,oBAAoB,IAAI,qBAAqB,MAAM;EACxD,KAAK,SAAS,IAAI,UAAU,MAAM;EAClC,KAAK,gBAAgB,IAAI,iBAAiB,MAAM;CAClD;AACF"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framepayments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "The Frame Node.js Library simplifies the process of creating a seamless payment experience within your web app. it provides access to the underlying APIs that drive these components, allowing you to design fully customized payment workflows tailored to your app's needs.",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"types": "dist/index.d.
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"types": "./dist/index.d.cts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "tsdown",
|
|
9
9
|
"test": "jest",
|
|
10
10
|
"typecheck": "tsc --noEmit"
|
|
11
11
|
},
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"README.md"
|
|
22
22
|
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20"
|
|
25
|
+
},
|
|
23
26
|
"bugs": {
|
|
24
27
|
"url": "https://github.com/Frame-Payments/frame-node/issues"
|
|
25
28
|
},
|
|
@@ -36,6 +39,15 @@
|
|
|
36
39
|
"nock": "^14.0.10",
|
|
37
40
|
"ts-jest": "^29.4.1",
|
|
38
41
|
"ts-node": "^10.9.2",
|
|
42
|
+
"tsdown": "^0.22.2",
|
|
39
43
|
"typescript": "^5.9.2"
|
|
44
|
+
},
|
|
45
|
+
"module": "./dist/index.mjs",
|
|
46
|
+
"exports": {
|
|
47
|
+
".": {
|
|
48
|
+
"import": "./dist/index.mjs",
|
|
49
|
+
"require": "./dist/index.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./package.json": "./package.json"
|
|
40
52
|
}
|
|
41
53
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Account, AccountListResponse, ListAccountsParams, CreateAccountParams, UpdateAccountParams, SearchAccountsParams, PlaidLinkTokenResponse } from '../types/accounts';
|
|
3
|
-
import type { GeoComplianceStatus } from '../types/geo_compliance';
|
|
4
|
-
import type { PaymentMethodListResponse } from '../types/payment_methods';
|
|
5
|
-
import { type RequestOptions } from '../client';
|
|
6
|
-
export declare class AccountsAPI {
|
|
7
|
-
private client;
|
|
8
|
-
constructor(client: AxiosInstance);
|
|
9
|
-
list(params?: ListAccountsParams): Promise<AccountListResponse>;
|
|
10
|
-
create(params: CreateAccountParams, opts?: RequestOptions): Promise<Account>;
|
|
11
|
-
get(id: string, opts?: RequestOptions): Promise<Account>;
|
|
12
|
-
update(id: string, params: UpdateAccountParams, opts?: RequestOptions): Promise<Account>;
|
|
13
|
-
disable(id: string): Promise<Account>;
|
|
14
|
-
search(params: SearchAccountsParams): Promise<AccountListResponse>;
|
|
15
|
-
getPaymentMethods(id: string, opts?: RequestOptions): Promise<PaymentMethodListResponse>;
|
|
16
|
-
restrict(id: string): Promise<Account>;
|
|
17
|
-
unrestrict(id: string): Promise<Account>;
|
|
18
|
-
getPlaidLinkToken(id: string, opts?: RequestOptions): Promise<PlaidLinkTokenResponse>;
|
|
19
|
-
getGeoCompliance(accountId: string): Promise<GeoComplianceStatus>;
|
|
20
|
-
iterateAllAccounts(per_page?: number): AsyncGenerator<Account>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=accounts-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accounts-api.d.ts","sourceRoot":"","sources":["../../src/api/accounts-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAErE,qBAAa,WAAW;IACV,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAK/D,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAK5E,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxF,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKrC,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IASlE,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKxF,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxC,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKrF,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAKvE,kBAAkB,CAAC,QAAQ,SAAK,GAAG,cAAc,CAAC,OAAO,CAAC;CAQ3D"}
|
package/dist/api/accounts-api.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { paginate } from '../utils/paginator';
|
|
2
|
-
import { maybePublishableKey } from '../client';
|
|
3
|
-
export class AccountsAPI {
|
|
4
|
-
constructor(client) {
|
|
5
|
-
this.client = client;
|
|
6
|
-
}
|
|
7
|
-
async list(params) {
|
|
8
|
-
const resp = await this.client.get('/v1/accounts', { params: params ?? {} });
|
|
9
|
-
return resp.data;
|
|
10
|
-
}
|
|
11
|
-
async create(params, opts) {
|
|
12
|
-
const resp = await this.client.post('/v1/accounts', params, maybePublishableKey(opts));
|
|
13
|
-
return resp.data;
|
|
14
|
-
}
|
|
15
|
-
async get(id, opts) {
|
|
16
|
-
const resp = await this.client.get(`/v1/accounts/${id}`, maybePublishableKey(opts));
|
|
17
|
-
return resp.data;
|
|
18
|
-
}
|
|
19
|
-
async update(id, params, opts) {
|
|
20
|
-
const resp = await this.client.patch(`/v1/accounts/${id}`, params, maybePublishableKey(opts));
|
|
21
|
-
return resp.data;
|
|
22
|
-
}
|
|
23
|
-
async disable(id) {
|
|
24
|
-
const resp = await this.client.delete(`/v1/accounts/${id}`);
|
|
25
|
-
return resp.data;
|
|
26
|
-
}
|
|
27
|
-
async search(params) {
|
|
28
|
-
const resp = await this.client.get('/v1/accounts/search', { params });
|
|
29
|
-
return resp.data;
|
|
30
|
-
}
|
|
31
|
-
// Returns the `{ meta?, data? }` envelope produced by
|
|
32
|
-
// `GET /v1/accounts/{id}/payment_methods`. Matches Frame-iOS
|
|
33
|
-
// `PaymentMethodResponses.ListPaymentMethodsResponse`. Callers that just
|
|
34
|
-
// need the array should read `result.data ?? []`.
|
|
35
|
-
async getPaymentMethods(id, opts) {
|
|
36
|
-
const resp = await this.client.get(`/v1/accounts/${id}/payment_methods`, maybePublishableKey(opts));
|
|
37
|
-
return resp.data;
|
|
38
|
-
}
|
|
39
|
-
async restrict(id) {
|
|
40
|
-
const resp = await this.client.post(`/v1/accounts/${id}/restrict`);
|
|
41
|
-
return resp.data;
|
|
42
|
-
}
|
|
43
|
-
async unrestrict(id) {
|
|
44
|
-
const resp = await this.client.post(`/v1/accounts/${id}/unrestrict`);
|
|
45
|
-
return resp.data;
|
|
46
|
-
}
|
|
47
|
-
async getPlaidLinkToken(id, opts) {
|
|
48
|
-
const resp = await this.client.get(`/v1/accounts/${id}/plaid_link_token`, maybePublishableKey(opts));
|
|
49
|
-
return resp.data;
|
|
50
|
-
}
|
|
51
|
-
async getGeoCompliance(accountId) {
|
|
52
|
-
const resp = await this.client.get(`/v1/accounts/${accountId}/geo_compliance`);
|
|
53
|
-
return resp.data;
|
|
54
|
-
}
|
|
55
|
-
iterateAllAccounts(per_page = 20) {
|
|
56
|
-
return paginate(async (page) => {
|
|
57
|
-
const res = await this.client.get('/v1/accounts', {
|
|
58
|
-
params: { per_page, page }
|
|
59
|
-
});
|
|
60
|
-
return res.data;
|
|
61
|
-
}, per_page);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=accounts-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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AED,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACtC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,iBAAiB,CAAC,CAAC;QAC/E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,kBAAkB,CAAC,QAAQ,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAU,KAAK,EAAE,IAAY,EAAE,EAAE;YAC9C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE;gBAChD,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC3B,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Metering, CreateMeteringParams, UpdateMeteringParams, MeteringEvent, CreateMeteringEventParams, UpdateMeteringEventParams, BillingInvoice, CreateBillingInvoiceParams, BillingCredit, CreateBillingCreditParams, BillingReport } from '../types/billing';
|
|
3
|
-
export declare class BillingAPI {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: AxiosInstance);
|
|
6
|
-
createMetering(params: CreateMeteringParams): Promise<Metering>;
|
|
7
|
-
getMetering(id: string): Promise<Metering>;
|
|
8
|
-
updateMetering(id: string, params: UpdateMeteringParams): Promise<Metering>;
|
|
9
|
-
createMeteringEvent(params: CreateMeteringEventParams): Promise<MeteringEvent>;
|
|
10
|
-
getMeteringEvent(id: string): Promise<MeteringEvent>;
|
|
11
|
-
updateMeteringEvent(id: string, params: UpdateMeteringEventParams): Promise<MeteringEvent>;
|
|
12
|
-
createBillingInvoice(params: CreateBillingInvoiceParams): Promise<BillingInvoice>;
|
|
13
|
-
createBillingCredit(params: CreateBillingCreditParams): Promise<BillingCredit>;
|
|
14
|
-
getBillingCredit(id: string): Promise<BillingCredit>;
|
|
15
|
-
getCustomerReport(params?: Record<string, unknown>): Promise<BillingReport>;
|
|
16
|
-
getEventReport(eventName: string, params?: Record<string, unknown>): Promise<BillingReport>;
|
|
17
|
-
getEventsReport(params?: Record<string, unknown>): Promise<BillingReport>;
|
|
18
|
-
getSubscriptionReport(params?: Record<string, unknown>): Promise<BillingReport>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=billing-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-api.d.ts","sourceRoot":"","sources":["../../src/api/billing-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EACzB,cAAc,EACd,0BAA0B,EAC1B,aAAa,EACb,yBAAyB,EACzB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,qBAAa,UAAU;IACT,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAK/D,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAK1C,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAK3E,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK9E,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKpD,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK1F,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,cAAc,CAAC;IAKjF,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK9E,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKpD,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAK3E,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAK3F,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAKzE,qBAAqB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;CAItF"}
|
package/dist/api/billing-api.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export class BillingAPI {
|
|
2
|
-
constructor(client) {
|
|
3
|
-
this.client = client;
|
|
4
|
-
}
|
|
5
|
-
async createMetering(params) {
|
|
6
|
-
const resp = await this.client.post('/v1/billing/metering', params);
|
|
7
|
-
return resp.data;
|
|
8
|
-
}
|
|
9
|
-
async getMetering(id) {
|
|
10
|
-
const resp = await this.client.get(`/v1/billing/metering/${id}`);
|
|
11
|
-
return resp.data;
|
|
12
|
-
}
|
|
13
|
-
async updateMetering(id, params) {
|
|
14
|
-
const resp = await this.client.patch(`/v1/billing/metering/${id}`, params);
|
|
15
|
-
return resp.data;
|
|
16
|
-
}
|
|
17
|
-
async createMeteringEvent(params) {
|
|
18
|
-
const resp = await this.client.post('/v1/billing/metering_events', params);
|
|
19
|
-
return resp.data;
|
|
20
|
-
}
|
|
21
|
-
async getMeteringEvent(id) {
|
|
22
|
-
const resp = await this.client.get(`/v1/billing/metering_events/${id}`);
|
|
23
|
-
return resp.data;
|
|
24
|
-
}
|
|
25
|
-
async updateMeteringEvent(id, params) {
|
|
26
|
-
const resp = await this.client.patch(`/v1/billing/metering_events/${id}`, params);
|
|
27
|
-
return resp.data;
|
|
28
|
-
}
|
|
29
|
-
async createBillingInvoice(params) {
|
|
30
|
-
const resp = await this.client.post('/v1/billing/billing_invoice', params);
|
|
31
|
-
return resp.data;
|
|
32
|
-
}
|
|
33
|
-
async createBillingCredit(params) {
|
|
34
|
-
const resp = await this.client.post('/v1/billing/billing_credit', params);
|
|
35
|
-
return resp.data;
|
|
36
|
-
}
|
|
37
|
-
async getBillingCredit(id) {
|
|
38
|
-
const resp = await this.client.get(`/v1/billing/billing_credit/${id}`);
|
|
39
|
-
return resp.data;
|
|
40
|
-
}
|
|
41
|
-
async getCustomerReport(params) {
|
|
42
|
-
const resp = await this.client.get('/v1/billing/report/customer', { params });
|
|
43
|
-
return resp.data;
|
|
44
|
-
}
|
|
45
|
-
async getEventReport(eventName, params) {
|
|
46
|
-
const resp = await this.client.get(`/v1/billing/report/event/${eventName}`, { params });
|
|
47
|
-
return resp.data;
|
|
48
|
-
}
|
|
49
|
-
async getEventsReport(params) {
|
|
50
|
-
const resp = await this.client.get('/v1/billing/report/events', { params });
|
|
51
|
-
return resp.data;
|
|
52
|
-
}
|
|
53
|
-
async getSubscriptionReport(params) {
|
|
54
|
-
const resp = await this.client.get('/v1/billing/report/subscription', { params });
|
|
55
|
-
return resp.data;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=billing-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billing-api.js","sourceRoot":"","sources":["../../src/api/billing-api.ts"],"names":[],"mappings":"AAeA,MAAM,OAAO,UAAU;IACrB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,cAAc,CAAC,MAA4B;QAC/C,MAAM,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AAC;IACnB,CAAC;CACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Capability, RequestCapabilitiesParams } from '../types/capabilities';
|
|
3
|
-
export declare class CapabilitiesAPI {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: AxiosInstance);
|
|
6
|
-
list(accountId: string): Promise<Capability[]>;
|
|
7
|
-
request(accountId: string, params: RequestCapabilitiesParams): Promise<Capability[]>;
|
|
8
|
-
get(accountId: string, name: string): Promise<Capability>;
|
|
9
|
-
disable(accountId: string, name: string): Promise<Capability>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=capabilities-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities-api.d.ts","sourceRoot":"","sources":["../../src/api/capabilities-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEnF,qBAAa,eAAe;IACd,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAK9C,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAKpF,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAKzD,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAIpE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export class CapabilitiesAPI {
|
|
2
|
-
constructor(client) {
|
|
3
|
-
this.client = client;
|
|
4
|
-
}
|
|
5
|
-
async list(accountId) {
|
|
6
|
-
const resp = await this.client.get(`/v1/accounts/${accountId}/capabilities`);
|
|
7
|
-
return resp.data;
|
|
8
|
-
}
|
|
9
|
-
async request(accountId, params) {
|
|
10
|
-
const resp = await this.client.post(`/v1/accounts/${accountId}/capabilities`, params);
|
|
11
|
-
return resp.data;
|
|
12
|
-
}
|
|
13
|
-
async get(accountId, name) {
|
|
14
|
-
const resp = await this.client.get(`/v1/accounts/${accountId}/capabilities/${name}`);
|
|
15
|
-
return resp.data;
|
|
16
|
-
}
|
|
17
|
-
async disable(accountId, name) {
|
|
18
|
-
const resp = await this.client.delete(`/v1/accounts/${accountId}/capabilities/${name}`);
|
|
19
|
-
return resp.data;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=capabilities-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities-api.js","sourceRoot":"","sources":["../../src/api/capabilities-api.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,eAAe;IAC1B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,SAAiB;QAC1B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,eAAe,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiB,EAAE,MAAiC;QAChE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,SAAS,eAAe,EAAE,MAAM,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,SAAiB,EAAE,IAAY;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,iBAAiB,IAAI,EAAE,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiB,EAAE,IAAY;QAC3C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,SAAS,iBAAiB,IAAI,EAAE,CAAC,CAAC;QACxF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { ChargeIntent, ChargeIntentListResponse, CaptureChargeIntentParams, CreateChargeIntentParams, UpdateChargeIntentParams } from '../types/charge_intents';
|
|
3
|
-
import { type RequestOptions } from '../client';
|
|
4
|
-
export declare class ChargeIntentsAPI {
|
|
5
|
-
private client;
|
|
6
|
-
constructor(client: AxiosInstance);
|
|
7
|
-
create(params: CreateChargeIntentParams, opts?: RequestOptions): Promise<ChargeIntent>;
|
|
8
|
-
update(id: string, params: UpdateChargeIntentParams): Promise<ChargeIntent>;
|
|
9
|
-
get(id: string): Promise<ChargeIntent>;
|
|
10
|
-
list(per_page?: number, page?: number): Promise<ChargeIntentListResponse>;
|
|
11
|
-
iterateAllChargeIntents(per_page?: number): Promise<AsyncGenerator<ChargeIntent, any, any>>;
|
|
12
|
-
cancel(id: string): Promise<ChargeIntent>;
|
|
13
|
-
confirm(id: string, opts?: RequestOptions): Promise<ChargeIntent>;
|
|
14
|
-
capture(id: string, params?: CaptureChargeIntentParams): Promise<ChargeIntent>;
|
|
15
|
-
voidRemaining(id: string): Promise<ChargeIntent>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=charge_intents-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charge_intents-api.d.ts","sourceRoot":"","sources":["../../src/api/charge_intents-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACR,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EAC3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAErE,qBAAa,gBAAgB;IACf,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAKtF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAK3E,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKtC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKzE,uBAAuB,CAAC,QAAQ,SAAK;IASrC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKzC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAKjE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAK9E,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAIvD"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { paginate } from '../utils/paginator';
|
|
2
|
-
import { maybePublishableKey } from '../client';
|
|
3
|
-
export class ChargeIntentsAPI {
|
|
4
|
-
constructor(client) {
|
|
5
|
-
this.client = client;
|
|
6
|
-
}
|
|
7
|
-
async create(params, opts) {
|
|
8
|
-
const resp = await this.client.post('/v1/charge_intents', params, maybePublishableKey(opts));
|
|
9
|
-
return resp.data;
|
|
10
|
-
}
|
|
11
|
-
async update(id, params) {
|
|
12
|
-
const resp = await this.client.patch(`/v1/charge_intents/${id}`, params);
|
|
13
|
-
return resp.data;
|
|
14
|
-
}
|
|
15
|
-
async get(id) {
|
|
16
|
-
const resp = await this.client.get(`/v1/charge_intents/${id}`);
|
|
17
|
-
return resp.data;
|
|
18
|
-
}
|
|
19
|
-
async list(per_page, page) {
|
|
20
|
-
const resp = await this.client.get('/v1/charge_intents', { params: { per_page, page } });
|
|
21
|
-
return resp.data;
|
|
22
|
-
}
|
|
23
|
-
async iterateAllChargeIntents(per_page = 20) {
|
|
24
|
-
return paginate(async (page) => {
|
|
25
|
-
const res = await this.client.get('/v1/charge_intents', {
|
|
26
|
-
params: { per_page, page }
|
|
27
|
-
});
|
|
28
|
-
return res.data;
|
|
29
|
-
}, per_page);
|
|
30
|
-
}
|
|
31
|
-
async cancel(id) {
|
|
32
|
-
const resp = await this.client.post(`/v1/charge_intents/${id}/cancel`);
|
|
33
|
-
return resp.data;
|
|
34
|
-
}
|
|
35
|
-
async confirm(id, opts) {
|
|
36
|
-
const resp = await this.client.post(`/v1/charge_intents/${id}/confirm`, undefined, maybePublishableKey(opts));
|
|
37
|
-
return resp.data;
|
|
38
|
-
}
|
|
39
|
-
async capture(id, params) {
|
|
40
|
-
const resp = await this.client.post(`/v1/charge_intents/${id}/capture`, params);
|
|
41
|
-
return resp.data;
|
|
42
|
-
}
|
|
43
|
-
async voidRemaining(id) {
|
|
44
|
-
const resp = await this.client.post(`/v1/charge_intents/${id}/void_remaining`);
|
|
45
|
-
return resp.data;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=charge_intents-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charge_intents-api.js","sourceRoot":"","sources":["../../src/api/charge_intents-api.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EA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,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC3B,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;IAEP,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAU,EAAE,IAAqB;QAC7C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9G,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAU,EAAE,MAAkC;QAC1D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QAChF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAAC;QAC/E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import type { ChargeSession, CreateChargeSessionParams, UpdateChargeSessionParams } from '../types/charge_sessions';
|
|
3
|
-
export declare class ChargeSessionsAPI {
|
|
4
|
-
private client;
|
|
5
|
-
constructor(client: AxiosInstance);
|
|
6
|
-
create(params: CreateChargeSessionParams): Promise<ChargeSession>;
|
|
7
|
-
update(id: string, params: UpdateChargeSessionParams): Promise<ChargeSession>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=charge_sessions-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charge_sessions-api.d.ts","sourceRoot":"","sources":["../../src/api/charge_sessions-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAElC,qBAAa,iBAAiB;IAChB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKjE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;CAIpF"}
|