@peable.to/contracts 0.3.0 → 1.0.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/cjs/common/address.js +81 -0
- package/dist/cjs/common/envelopes.js +101 -0
- package/dist/cjs/common/objects.js +85 -0
- package/dist/cjs/common/params.js +211 -0
- package/dist/cjs/common/primitives.js +39 -0
- package/dist/cjs/contributions.js +22 -0
- package/dist/cjs/index.js +40 -97
- package/dist/cjs/openapi/document.js +297 -0
- package/dist/cjs/openapi/index.js +7 -0
- package/dist/cjs/openapi/webhooks.js +17 -0
- package/dist/cjs/resources/billingEngine/billingPortal.js +237 -0
- package/dist/cjs/resources/billingEngine/creditNotes.js +189 -0
- package/dist/cjs/resources/billingEngine/customerBalanceTransactions.js +90 -0
- package/dist/cjs/resources/billingEngine/index.js +43 -0
- package/dist/cjs/resources/billingEngine/invoiceItems.js +155 -0
- package/dist/cjs/resources/billingEngine/invoices.js +509 -0
- package/dist/cjs/resources/billingEngine/params.js +43 -0
- package/dist/cjs/resources/billingEngine/public.js +326 -0
- package/dist/cjs/resources/billingEngine/subscriptions.js +476 -0
- package/dist/cjs/resources/catalog/billing.js +755 -0
- package/dist/cjs/resources/catalog/billingSettings.js +131 -0
- package/dist/cjs/resources/catalog/coupons.js +222 -0
- package/dist/cjs/resources/catalog/entitlements.js +257 -0
- package/dist/cjs/resources/catalog/index.js +58 -0
- package/dist/cjs/resources/catalog/meters.js +279 -0
- package/dist/cjs/resources/catalog/prices.js +423 -0
- package/dist/cjs/resources/catalog/products.js +228 -0
- package/dist/cjs/resources/catalog/promotionCodes.js +174 -0
- package/dist/cjs/resources/catalog/shared.js +75 -0
- package/dist/cjs/resources/catalog/testClocks.js +127 -0
- package/dist/cjs/resources/checkout/checkoutSessions.js +582 -0
- package/dist/cjs/resources/checkout/contributions.js +172 -0
- package/dist/cjs/resources/checkout/files.js +133 -0
- package/dist/cjs/resources/checkout/index.js +57 -0
- package/dist/cjs/resources/checkout/merchants.js +290 -0
- package/dist/cjs/resources/checkout/paymentLinks.js +330 -0
- package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +262 -0
- package/dist/cjs/resources/checkout/shared.js +368 -0
- package/dist/cjs/resources/connect/account.js +332 -0
- package/dist/cjs/resources/connect/applicationFees.js +113 -0
- package/dist/cjs/resources/connect/balance.js +212 -0
- package/dist/cjs/resources/connect/connectedAccounts.js +260 -0
- package/dist/cjs/resources/connect/index.js +51 -0
- package/dist/cjs/resources/connect/onboarding.js +82 -0
- package/dist/cjs/resources/connect/payouts.js +196 -0
- package/dist/cjs/resources/connect/reporting.js +235 -0
- package/dist/cjs/resources/connect/requestLogs.js +110 -0
- package/dist/cjs/resources/connect/transfers.js +227 -0
- package/dist/cjs/resources/core/customers.js +194 -0
- package/dist/cjs/resources/core/index.js +23 -0
- package/dist/cjs/resources/core/paymentMethods.js +134 -0
- package/dist/cjs/resources/events/events.js +357 -0
- package/dist/cjs/resources/events/index.js +29 -0
- package/dist/cjs/resources/events/webhookDeliveries.js +93 -0
- package/dist/cjs/resources/events/webhookEndpoints.js +215 -0
- package/dist/cjs/resources/payments/charges.js +157 -0
- package/dist/cjs/resources/payments/disputes.js +204 -0
- package/dist/cjs/resources/payments/index.js +41 -0
- package/dist/cjs/resources/payments/paymentIntents.js +529 -0
- package/dist/cjs/resources/payments/refunds.js +245 -0
- package/dist/cjs/resources/payments/setupIntents.js +158 -0
- package/dist/cjs/resources/payments/social.js +182 -0
- package/dist/cjs/resources/payments/testHelpers.js +39 -0
- package/dist/cjs/resources/tax/assessments.js +217 -0
- package/dist/cjs/resources/tax/businessProfile.js +99 -0
- package/dist/cjs/resources/tax/calculations.js +176 -0
- package/dist/cjs/resources/tax/capabilities.js +42 -0
- package/dist/cjs/resources/tax/codes.js +37 -0
- package/dist/cjs/resources/tax/complianceActions.js +56 -0
- package/dist/cjs/resources/tax/deadlines.js +59 -0
- package/dist/cjs/resources/tax/documents.js +128 -0
- package/dist/cjs/resources/tax/index.js +80 -0
- package/dist/cjs/resources/tax/locationEvidence.js +131 -0
- package/dist/cjs/resources/tax/operatingLocations.js +98 -0
- package/dist/cjs/resources/tax/products.js +67 -0
- package/dist/cjs/resources/tax/registrationDeclarations.js +124 -0
- package/dist/cjs/resources/tax/registrations.js +82 -0
- package/dist/cjs/resources/tax/reports.js +92 -0
- package/dist/cjs/resources/tax/reviewItems.js +116 -0
- package/dist/cjs/resources/tax/ruleSet.js +68 -0
- package/dist/cjs/resources/tax/salesDestinations.js +94 -0
- package/dist/cjs/resources/tax/settings.js +104 -0
- package/dist/cjs/resources/tax/shared.js +62 -0
- package/dist/cjs/resources/tax/transactions.js +102 -0
- package/dist/cjs/route.js +22 -0
- package/dist/cjs/routes.js +31 -0
- package/dist/cjs/vocabulary/billingPortal.js +15 -0
- package/dist/cjs/vocabulary/catalog.js +110 -0
- package/dist/cjs/vocabulary/checkout.js +53 -0
- package/dist/cjs/vocabulary/connect.js +95 -0
- package/dist/cjs/vocabulary/errors.js +174 -0
- package/dist/cjs/vocabulary/events.js +176 -0
- package/dist/cjs/vocabulary/files.js +44 -0
- package/dist/cjs/vocabulary/index.js +37 -0
- package/dist/cjs/vocabulary/invoices.js +52 -0
- package/dist/cjs/vocabulary/lists.js +22 -0
- package/dist/cjs/vocabulary/merchants.js +23 -0
- package/dist/cjs/vocabulary/money.js +104 -0
- package/dist/cjs/vocabulary/paymentMethodConfigurations.js +36 -0
- package/dist/cjs/vocabulary/payments.js +195 -0
- package/dist/cjs/vocabulary/reporting.js +27 -0
- package/dist/cjs/vocabulary/subscriptions.js +60 -0
- package/dist/cjs/vocabulary/tax.js +237 -0
- package/dist/cjs/vocabulary/version.js +12 -0
- package/dist/esm/common/address.js +76 -0
- package/dist/esm/common/envelopes.js +95 -0
- package/dist/esm/common/objects.js +74 -0
- package/dist/esm/common/params.js +203 -0
- package/dist/esm/common/primitives.js +35 -0
- package/dist/esm/contributions.js +5 -0
- package/dist/esm/index.js +26 -94
- package/dist/esm/openapi/document.js +294 -0
- package/dist/esm/openapi/index.js +2 -0
- package/dist/esm/openapi/webhooks.js +14 -0
- package/dist/esm/resources/billingEngine/billingPortal.js +234 -0
- package/dist/esm/resources/billingEngine/creditNotes.js +186 -0
- package/dist/esm/resources/billingEngine/customerBalanceTransactions.js +87 -0
- package/dist/esm/resources/billingEngine/index.js +26 -0
- package/dist/esm/resources/billingEngine/invoiceItems.js +152 -0
- package/dist/esm/resources/billingEngine/invoices.js +506 -0
- package/dist/esm/resources/billingEngine/params.js +39 -0
- package/dist/esm/resources/billingEngine/public.js +323 -0
- package/dist/esm/resources/billingEngine/subscriptions.js +473 -0
- package/dist/esm/resources/catalog/billing.js +752 -0
- package/dist/esm/resources/catalog/billingSettings.js +128 -0
- package/dist/esm/resources/catalog/coupons.js +219 -0
- package/dist/esm/resources/catalog/entitlements.js +254 -0
- package/dist/esm/resources/catalog/index.js +38 -0
- package/dist/esm/resources/catalog/meters.js +276 -0
- package/dist/esm/resources/catalog/prices.js +419 -0
- package/dist/esm/resources/catalog/products.js +225 -0
- package/dist/esm/resources/catalog/promotionCodes.js +171 -0
- package/dist/esm/resources/catalog/shared.js +67 -0
- package/dist/esm/resources/catalog/testClocks.js +124 -0
- package/dist/esm/resources/checkout/checkoutSessions.js +579 -0
- package/dist/esm/resources/checkout/contributions.js +167 -0
- package/dist/esm/resources/checkout/files.js +130 -0
- package/dist/esm/resources/checkout/index.js +25 -0
- package/dist/esm/resources/checkout/merchants.js +287 -0
- package/dist/esm/resources/checkout/paymentLinks.js +327 -0
- package/dist/esm/resources/checkout/paymentMethodConfigurations.js +259 -0
- package/dist/esm/resources/checkout/shared.js +363 -0
- package/dist/esm/resources/connect/account.js +329 -0
- package/dist/esm/resources/connect/applicationFees.js +110 -0
- package/dist/esm/resources/connect/balance.js +209 -0
- package/dist/esm/resources/connect/connectedAccounts.js +257 -0
- package/dist/esm/resources/connect/index.js +34 -0
- package/dist/esm/resources/connect/onboarding.js +79 -0
- package/dist/esm/resources/connect/payouts.js +193 -0
- package/dist/esm/resources/connect/reporting.js +232 -0
- package/dist/esm/resources/connect/requestLogs.js +107 -0
- package/dist/esm/resources/connect/transfers.js +224 -0
- package/dist/esm/resources/core/customers.js +191 -0
- package/dist/esm/resources/core/index.js +6 -0
- package/dist/esm/resources/core/paymentMethods.js +131 -0
- package/dist/esm/resources/events/events.js +353 -0
- package/dist/esm/resources/events/index.js +12 -0
- package/dist/esm/resources/events/webhookDeliveries.js +90 -0
- package/dist/esm/resources/events/webhookEndpoints.js +212 -0
- package/dist/esm/resources/payments/charges.js +154 -0
- package/dist/esm/resources/payments/disputes.js +201 -0
- package/dist/esm/resources/payments/index.js +24 -0
- package/dist/esm/resources/payments/paymentIntents.js +526 -0
- package/dist/esm/resources/payments/refunds.js +242 -0
- package/dist/esm/resources/payments/setupIntents.js +155 -0
- package/dist/esm/resources/payments/social.js +179 -0
- package/dist/esm/resources/payments/testHelpers.js +36 -0
- package/dist/esm/resources/tax/assessments.js +214 -0
- package/dist/esm/resources/tax/businessProfile.js +96 -0
- package/dist/esm/resources/tax/calculations.js +173 -0
- package/dist/esm/resources/tax/capabilities.js +39 -0
- package/dist/esm/resources/tax/codes.js +34 -0
- package/dist/esm/resources/tax/complianceActions.js +53 -0
- package/dist/esm/resources/tax/deadlines.js +56 -0
- package/dist/esm/resources/tax/documents.js +125 -0
- package/dist/esm/resources/tax/index.js +63 -0
- package/dist/esm/resources/tax/locationEvidence.js +128 -0
- package/dist/esm/resources/tax/operatingLocations.js +95 -0
- package/dist/esm/resources/tax/products.js +64 -0
- package/dist/esm/resources/tax/registrationDeclarations.js +121 -0
- package/dist/esm/resources/tax/registrations.js +79 -0
- package/dist/esm/resources/tax/reports.js +89 -0
- package/dist/esm/resources/tax/reviewItems.js +113 -0
- package/dist/esm/resources/tax/ruleSet.js +65 -0
- package/dist/esm/resources/tax/salesDestinations.js +91 -0
- package/dist/esm/resources/tax/settings.js +101 -0
- package/dist/esm/resources/tax/shared.js +58 -0
- package/dist/esm/resources/tax/transactions.js +99 -0
- package/dist/esm/route.js +16 -0
- package/dist/esm/routes.js +27 -0
- package/dist/esm/vocabulary/billingPortal.js +12 -0
- package/dist/esm/vocabulary/catalog.js +106 -0
- package/dist/esm/vocabulary/checkout.js +50 -0
- package/dist/esm/vocabulary/connect.js +92 -0
- package/dist/esm/vocabulary/errors.js +169 -0
- package/dist/esm/vocabulary/events.js +173 -0
- package/dist/esm/vocabulary/files.js +41 -0
- package/dist/esm/vocabulary/index.js +21 -0
- package/dist/esm/vocabulary/invoices.js +49 -0
- package/dist/esm/vocabulary/lists.js +19 -0
- package/dist/esm/vocabulary/merchants.js +20 -0
- package/dist/esm/vocabulary/money.js +98 -0
- package/dist/esm/vocabulary/paymentMethodConfigurations.js +33 -0
- package/dist/esm/vocabulary/payments.js +192 -0
- package/dist/esm/vocabulary/reporting.js +24 -0
- package/dist/esm/vocabulary/subscriptions.js +57 -0
- package/dist/esm/vocabulary/tax.js +233 -0
- package/dist/esm/vocabulary/version.js +9 -0
- package/dist/types/common/address.d.ts +62 -0
- package/dist/types/common/envelopes.d.ts +88 -0
- package/dist/types/common/objects.d.ts +107 -0
- package/dist/types/common/params.d.ts +156 -0
- package/dist/types/common/primitives.d.ts +56 -0
- package/dist/types/contributions.d.ts +1 -0
- package/dist/types/index.d.ts +16 -134
- package/dist/types/openapi/document.d.ts +16 -0
- package/dist/types/openapi/index.d.ts +2 -0
- package/dist/types/openapi/webhooks.d.ts +15 -0
- package/dist/types/resources/billingEngine/billingPortal.d.ts +742 -0
- package/dist/types/resources/billingEngine/creditNotes.d.ts +655 -0
- package/dist/types/resources/billingEngine/customerBalanceTransactions.d.ts +282 -0
- package/dist/types/resources/billingEngine/index.d.ts +6071 -0
- package/dist/types/resources/billingEngine/invoiceItems.d.ts +502 -0
- package/dist/types/resources/billingEngine/invoices.d.ts +2547 -0
- package/dist/types/resources/billingEngine/params.d.ts +51 -0
- package/dist/types/resources/billingEngine/public.d.ts +1860 -0
- package/dist/types/resources/billingEngine/subscriptions.d.ts +1519 -0
- package/dist/types/resources/catalog/billing.d.ts +1723 -0
- package/dist/types/resources/catalog/billingSettings.d.ts +160 -0
- package/dist/types/resources/catalog/coupons.d.ts +403 -0
- package/dist/types/resources/catalog/entitlements.d.ts +422 -0
- package/dist/types/resources/catalog/index.d.ts +3155 -0
- package/dist/types/resources/catalog/meters.d.ts +474 -0
- package/dist/types/resources/catalog/prices.d.ts +1091 -0
- package/dist/types/resources/catalog/products.d.ts +430 -0
- package/dist/types/resources/catalog/promotionCodes.d.ts +369 -0
- package/dist/types/resources/catalog/shared.d.ts +34 -0
- package/dist/types/resources/catalog/testClocks.d.ts +220 -0
- package/dist/types/resources/checkout/checkoutSessions.d.ts +3207 -0
- package/dist/types/resources/checkout/contributions.d.ts +375 -0
- package/dist/types/resources/checkout/files.d.ts +280 -0
- package/dist/types/resources/checkout/index.d.ts +5678 -0
- package/dist/types/resources/checkout/merchants.d.ts +395 -0
- package/dist/types/resources/checkout/paymentLinks.d.ts +1728 -0
- package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +2104 -0
- package/dist/types/resources/checkout/shared.d.ts +419 -0
- package/dist/types/resources/connect/account.d.ts +483 -0
- package/dist/types/resources/connect/applicationFees.d.ts +198 -0
- package/dist/types/resources/connect/balance.d.ts +399 -0
- package/dist/types/resources/connect/connectedAccounts.d.ts +494 -0
- package/dist/types/resources/connect/index.d.ts +2094 -0
- package/dist/types/resources/connect/onboarding.d.ts +95 -0
- package/dist/types/resources/connect/payouts.d.ts +527 -0
- package/dist/types/resources/connect/reporting.d.ts +506 -0
- package/dist/types/resources/connect/requestLogs.d.ts +236 -0
- package/dist/types/resources/connect/transfers.d.ts +436 -0
- package/dist/types/resources/core/customers.d.ts +619 -0
- package/dist/types/resources/core/index.d.ts +679 -0
- package/dist/types/resources/core/paymentMethods.d.ts +336 -0
- package/dist/types/resources/events/events.d.ts +731 -0
- package/dist/types/resources/events/index.d.ts +1727 -0
- package/dist/types/resources/events/webhookDeliveries.d.ts +436 -0
- package/dist/types/resources/events/webhookEndpoints.d.ts +1502 -0
- package/dist/types/resources/payments/charges.d.ts +390 -0
- package/dist/types/resources/payments/disputes.d.ts +822 -0
- package/dist/types/resources/payments/index.d.ts +3517 -0
- package/dist/types/resources/payments/paymentIntents.d.ts +2080 -0
- package/dist/types/resources/payments/refunds.d.ts +684 -0
- package/dist/types/resources/payments/setupIntents.d.ts +391 -0
- package/dist/types/resources/payments/social.d.ts +266 -0
- package/dist/types/resources/payments/testHelpers.d.ts +178 -0
- package/dist/types/resources/tax/assessments.d.ts +787 -0
- package/dist/types/resources/tax/businessProfile.d.ts +134 -0
- package/dist/types/resources/tax/calculations.d.ts +261 -0
- package/dist/types/resources/tax/capabilities.d.ts +81 -0
- package/dist/types/resources/tax/codes.d.ts +29 -0
- package/dist/types/resources/tax/complianceActions.d.ts +97 -0
- package/dist/types/resources/tax/deadlines.d.ts +133 -0
- package/dist/types/resources/tax/documents.d.ts +257 -0
- package/dist/types/resources/tax/index.d.ts +1946 -0
- package/dist/types/resources/tax/locationEvidence.d.ts +246 -0
- package/dist/types/resources/tax/operatingLocations.d.ts +170 -0
- package/dist/types/resources/tax/products.d.ts +68 -0
- package/dist/types/resources/tax/registrationDeclarations.d.ts +270 -0
- package/dist/types/resources/tax/registrations.d.ts +103 -0
- package/dist/types/resources/tax/reports.d.ts +129 -0
- package/dist/types/resources/tax/reviewItems.d.ts +226 -0
- package/dist/types/resources/tax/ruleSet.d.ts +219 -0
- package/dist/types/resources/tax/salesDestinations.d.ts +158 -0
- package/dist/types/resources/tax/settings.d.ts +122 -0
- package/dist/types/resources/tax/shared.d.ts +43 -0
- package/dist/types/resources/tax/transactions.d.ts +404 -0
- package/dist/types/route.d.ts +86 -0
- package/dist/types/routes.d.ts +23 -0
- package/dist/types/vocabulary/billingPortal.d.ts +15 -0
- package/dist/types/vocabulary/catalog.d.ts +97 -0
- package/dist/types/vocabulary/checkout.d.ts +49 -0
- package/dist/types/vocabulary/connect.d.ts +62 -0
- package/dist/types/vocabulary/errors.d.ts +145 -0
- package/dist/types/vocabulary/events.d.ts +171 -0
- package/dist/types/vocabulary/files.d.ts +30 -0
- package/dist/types/vocabulary/index.d.ts +17 -0
- package/dist/types/vocabulary/invoices.d.ts +39 -0
- package/dist/types/vocabulary/lists.d.ts +9 -0
- package/dist/types/vocabulary/merchants.d.ts +9 -0
- package/dist/types/vocabulary/money.d.ts +59 -0
- package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +22 -0
- package/dist/types/vocabulary/payments.d.ts +117 -0
- package/dist/types/vocabulary/reporting.d.ts +18 -0
- package/dist/types/vocabulary/subscriptions.d.ts +45 -0
- package/dist/types/vocabulary/tax.d.ts +163 -0
- package/dist/types/vocabulary/version.d.ts +10 -0
- package/package.json +51 -11
- package/dist/cjs/openapi.js +0 -138
- package/dist/esm/openapi.js +0 -134
- package/dist/types/openapi.d.ts +0 -145
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { billingEngineRoutes } from './resources/billingEngine';
|
|
2
|
+
import { catalogRoutes } from './resources/catalog';
|
|
3
|
+
import { checkoutRoutes } from './resources/checkout';
|
|
4
|
+
import { connectRoutes } from './resources/connect';
|
|
5
|
+
import { coreRoutes } from './resources/core';
|
|
6
|
+
import { eventsRoutes } from './resources/events';
|
|
7
|
+
import { paymentsRoutes } from './resources/payments';
|
|
8
|
+
import { taxRoutes } from './resources/tax';
|
|
9
|
+
/**
|
|
10
|
+
* Every public route of the gateway (ADR 0014 D5). The backend's coverage test
|
|
11
|
+
* proves this list and the mounted Express routes are the same set (dashboard
|
|
12
|
+
* routes excepted: they are Orbit's private surface), the OpenAPI document is
|
|
13
|
+
* generated from it, and the SDK's resource methods are generated from it.
|
|
14
|
+
*/
|
|
15
|
+
export type AnyRoute = (typeof coreRoutes)[number] | (typeof paymentsRoutes)[number] | (typeof checkoutRoutes)[number] | (typeof catalogRoutes)[number] | (typeof billingEngineRoutes)[number] | (typeof connectRoutes)[number] | (typeof taxRoutes)[number] | (typeof eventsRoutes)[number];
|
|
16
|
+
export declare const routes: readonly AnyRoute[];
|
|
17
|
+
/** Every route by its `operationId`. */
|
|
18
|
+
export type RouteMap = {
|
|
19
|
+
[R in AnyRoute as R['operationId']]: R;
|
|
20
|
+
};
|
|
21
|
+
export type OperationId = keyof RouteMap;
|
|
22
|
+
/** The route of an operation. */
|
|
23
|
+
export declare function routeOf<K extends OperationId>(operationId: K): RouteMap[K];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** What a portal customer may edit about themselves. */
|
|
2
|
+
export declare const PORTAL_CUSTOMER_UPDATES: readonly ["email", "name", "address", "phone"];
|
|
3
|
+
export type PortalCustomerUpdate = (typeof PORTAL_CUSTOMER_UPDATES)[number];
|
|
4
|
+
/** When a cancellation from the portal takes effect. */
|
|
5
|
+
export declare const PORTAL_CANCEL_MODES: readonly ["at_period_end", "immediately"];
|
|
6
|
+
export type PortalCancelMode = (typeof PORTAL_CANCEL_MODES)[number];
|
|
7
|
+
/** How a cancellation from the portal prorates. */
|
|
8
|
+
export declare const PORTAL_CANCEL_PRORATION_BEHAVIORS: readonly ["create_prorations", "none"];
|
|
9
|
+
export type PortalCancelProrationBehavior = (typeof PORTAL_CANCEL_PRORATION_BEHAVIORS)[number];
|
|
10
|
+
/** What a plan change from the portal may change. */
|
|
11
|
+
export declare const PORTAL_SUBSCRIPTION_UPDATES: readonly ["price", "quantity"];
|
|
12
|
+
export type PortalSubscriptionUpdate = (typeof PORTAL_SUBSCRIPTION_UPDATES)[number];
|
|
13
|
+
/** What finishing a payment method update from the portal answered. */
|
|
14
|
+
export declare const PORTAL_PAYMENT_METHOD_UPDATE_STATUSES: readonly ["succeeded", "pending"];
|
|
15
|
+
export type PortalPaymentMethodUpdateStatus = (typeof PORTAL_PAYMENT_METHOD_UPDATE_STATUSES)[number];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type CurrencyCode } from './money';
|
|
2
|
+
/** How a price's amount is computed from a quantity. */
|
|
3
|
+
export declare const PRICE_BILLING_SCHEMES: readonly ["per_unit", "tiered"];
|
|
4
|
+
export type PriceBillingScheme = (typeof PRICE_BILLING_SCHEMES)[number];
|
|
5
|
+
/**
|
|
6
|
+
* How a tiered price reads its tiers.
|
|
7
|
+
*
|
|
8
|
+
* - `volume` — the WHOLE quantity is priced at the tier it falls into.
|
|
9
|
+
* - `graduated` — each unit is priced at the tier it falls into, so a
|
|
10
|
+
* quantity crossing two tiers pays each tier's rate for its
|
|
11
|
+
* share, plus the flat amount of every tier it reaches.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PRICE_TIERS_MODES: readonly ["graduated", "volume"];
|
|
14
|
+
export type PriceTiersMode = (typeof PRICE_TIERS_MODES)[number];
|
|
15
|
+
/** `recurring` when the price has a recurring component, `one_time` otherwise. */
|
|
16
|
+
export declare const PRICE_TYPES: readonly ["one_time", "recurring"];
|
|
17
|
+
export type PriceType = (typeof PRICE_TYPES)[number];
|
|
18
|
+
export declare const RECURRING_INTERVALS: readonly ["day", "week", "month", "year"];
|
|
19
|
+
export type RecurringInterval = (typeof RECURRING_INTERVALS)[number];
|
|
20
|
+
/**
|
|
21
|
+
* `licensed` bills the quantity on the subscription. `metered` bills the usage
|
|
22
|
+
* a meter (`recurring.meter`, `mtr_…`) aggregated over the period, in arrears.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RECURRING_USAGE_TYPES: readonly ["licensed", "metered"];
|
|
25
|
+
export type RecurringUsageType = (typeof RECURRING_USAGE_TYPES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* Whether a price includes tax (Peable Tax, ADR 0011). `unspecified` defers to
|
|
28
|
+
* the merchant's default tax behavior; once a price says `inclusive` or
|
|
29
|
+
* `exclusive` it can never change.
|
|
30
|
+
*/
|
|
31
|
+
export declare const PRICE_TAX_BEHAVIORS: readonly ["inclusive", "exclusive", "unspecified"];
|
|
32
|
+
export type PriceTaxBehavior = (typeof PRICE_TAX_BEHAVIORS)[number];
|
|
33
|
+
export declare const TRANSFORM_QUANTITY_ROUNDS: readonly ["up", "down"];
|
|
34
|
+
export type TransformQuantityRound = (typeof TRANSFORM_QUANTITY_ROUNDS)[number];
|
|
35
|
+
/** How long a coupon's discount lasts once applied to a subscription. */
|
|
36
|
+
export declare const COUPON_DURATIONS: readonly ["once", "repeating", "forever"];
|
|
37
|
+
export type CouponDuration = (typeof COUPON_DURATIONS)[number];
|
|
38
|
+
/** The bounds the gateway enforces, published so a form can say them first. */
|
|
39
|
+
export declare const CATALOG_LIMITS: Readonly<{
|
|
40
|
+
productNameMax: 250;
|
|
41
|
+
productDescriptionMax: 40000;
|
|
42
|
+
productImagesMax: 8;
|
|
43
|
+
urlMax: 2048;
|
|
44
|
+
unitLabelMax: 12;
|
|
45
|
+
statementDescriptorMax: 22;
|
|
46
|
+
marketingFeaturesMax: 15;
|
|
47
|
+
marketingFeatureNameMax: 80;
|
|
48
|
+
priceNicknameMax: 250;
|
|
49
|
+
lookupKeyMax: 200;
|
|
50
|
+
lookupKeysFilterMax: 10;
|
|
51
|
+
priceTiersMax: 250;
|
|
52
|
+
couponIdMax: 64;
|
|
53
|
+
couponNameMax: 40;
|
|
54
|
+
couponAppliesToProductsMax: 100;
|
|
55
|
+
couponDurationInMonthsMax: 1200;
|
|
56
|
+
promotionCodeMax: 64;
|
|
57
|
+
idsFilterMax: 100;
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* The largest amount the catalog stores, in whole units of any currency, so a
|
|
61
|
+
* FAIR amount (8 decimals) and a EUR amount (2) are bounded at the same real
|
|
62
|
+
* size rather than the same number of digits.
|
|
63
|
+
*/
|
|
64
|
+
export declare const CATALOG_MAX_WHOLE_UNITS = 1000000000n;
|
|
65
|
+
/** The largest base-unit amount of `currency` the catalog accepts. */
|
|
66
|
+
export declare function maxBaseUnits(currency: CurrencyCode): bigint;
|
|
67
|
+
/** The longest a recurring interval may be: three years, in each unit. */
|
|
68
|
+
export declare const RECURRING_INTERVAL_COUNT_MAX: Readonly<Record<RecurringInterval, number>>;
|
|
69
|
+
export declare const TEST_CLOCK_STATUSES: readonly ["ready", "advancing", "internal_failure"];
|
|
70
|
+
export type TestClockStatus = (typeof TEST_CLOCK_STATUSES)[number];
|
|
71
|
+
/** What dunning does to a subscription once the last retry has failed. */
|
|
72
|
+
export declare const DUNNING_FINAL_ACTIONS: readonly ["cancel", "unpaid", "past_due"];
|
|
73
|
+
export type DunningFinalAction = (typeof DUNNING_FINAL_ACTIONS)[number];
|
|
74
|
+
/** What happens to the invoice itself once the last retry has failed. */
|
|
75
|
+
export declare const DUNNING_INVOICE_ACTIONS: readonly ["leave_open", "mark_uncollectible"];
|
|
76
|
+
export type DunningInvoiceAction = (typeof DUNNING_INVOICE_ACTIONS)[number];
|
|
77
|
+
/** The bounds the gateway enforces on billing settings. */
|
|
78
|
+
export declare const BILLING_SETTINGS_LIMITS: Readonly<{
|
|
79
|
+
retriesMax: 8;
|
|
80
|
+
retryDaysMax: 60;
|
|
81
|
+
daysUntilDueMax: 365;
|
|
82
|
+
invoicePrefixPattern: "^[A-Z0-9]{3,12}$";
|
|
83
|
+
}>;
|
|
84
|
+
/** How a meter combines a period's events into the quantity billed. */
|
|
85
|
+
export declare const METER_AGGREGATIONS: readonly ["sum", "count", "last"];
|
|
86
|
+
export type MeterAggregation = (typeof METER_AGGREGATIONS)[number];
|
|
87
|
+
export declare const METER_STATUSES: readonly ["active", "inactive"];
|
|
88
|
+
export type MeterStatus = (typeof METER_STATUSES)[number];
|
|
89
|
+
/** A provider subscription's status, as the recurring transport observes it. */
|
|
90
|
+
export declare const BILLING_SUBSCRIPTION_STATUSES: readonly ["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"];
|
|
91
|
+
export type BillingSubscriptionStatus = (typeof BILLING_SUBSCRIPTION_STATUSES)[number];
|
|
92
|
+
/** `fiat` (Stripe and any further provider) or `faircoin` (native, to the merchant's watch-only wallet). */
|
|
93
|
+
export declare const BILLING_RAIL_SETTLEMENTS: readonly ["fiat", "faircoin"];
|
|
94
|
+
export type BillingRailSettlement = (typeof BILLING_RAIL_SETTLEMENTS)[number];
|
|
95
|
+
/** `automatic`: the provider charges each period. `payer_initiated`: each period is an explicit payment. */
|
|
96
|
+
export declare const BILLING_RAIL_RENEWALS: readonly ["automatic", "payer_initiated"];
|
|
97
|
+
export type BillingRailRenewal = (typeof BILLING_RAIL_RENEWALS)[number];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const CHECKOUT_SESSION_MODES: readonly ["payment", "setup", "subscription"];
|
|
2
|
+
export type CheckoutSessionMode = (typeof CHECKOUT_SESSION_MODES)[number];
|
|
3
|
+
export declare const CHECKOUT_SESSION_STATUSES: readonly ["open", "complete", "expired"];
|
|
4
|
+
export type CheckoutSessionStatus = (typeof CHECKOUT_SESSION_STATUSES)[number];
|
|
5
|
+
export declare const CHECKOUT_PAYMENT_STATUSES: readonly ["paid", "unpaid", "no_payment_required"];
|
|
6
|
+
export type CheckoutSessionPaymentStatus = (typeof CHECKOUT_PAYMENT_STATUSES)[number];
|
|
7
|
+
export declare const CHECKOUT_UI_MODES: readonly ["hosted", "embedded"];
|
|
8
|
+
export type CheckoutUiMode = (typeof CHECKOUT_UI_MODES)[number];
|
|
9
|
+
/** The languages the hosted and embedded checkout speak. */
|
|
10
|
+
export declare const CHECKOUT_LOCALES: readonly ["en", "es", "fr", "de", "it", "pt"];
|
|
11
|
+
export type CheckoutLocale = (typeof CHECKOUT_LOCALES)[number];
|
|
12
|
+
export declare const CHECKOUT_SUBMIT_TYPES: readonly ["auto", "pay", "book", "donate"];
|
|
13
|
+
export type CheckoutSubmitType = (typeof CHECKOUT_SUBMIT_TYPES)[number];
|
|
14
|
+
export declare const CHECKOUT_CUSTOMER_CREATIONS: readonly ["always", "if_required"];
|
|
15
|
+
export type CheckoutCustomerCreation = (typeof CHECKOUT_CUSTOMER_CREATIONS)[number];
|
|
16
|
+
export declare const CHECKOUT_BILLING_ADDRESS_COLLECTIONS: readonly ["auto", "required"];
|
|
17
|
+
export type CheckoutBillingAddressCollection = (typeof CHECKOUT_BILLING_ADDRESS_COLLECTIONS)[number];
|
|
18
|
+
export declare const CHECKOUT_CUSTOM_FIELD_TYPES: readonly ["text", "numeric", "dropdown"];
|
|
19
|
+
export type CheckoutCustomFieldType = (typeof CHECKOUT_CUSTOM_FIELD_TYPES)[number];
|
|
20
|
+
/** Stripe's tax id types Peable collects; `eu_vat` covers every EU member state. */
|
|
21
|
+
export declare const CHECKOUT_TAX_ID_TYPES: readonly ["eu_vat", "gb_vat", "ch_vat", "no_vat", "us_ein", "ca_bn"];
|
|
22
|
+
export type CheckoutTaxIdType = (typeof CHECKOUT_TAX_ID_TYPES)[number];
|
|
23
|
+
/**
|
|
24
|
+
* Bounds of the session contract, shared by the gateway's validators and the
|
|
25
|
+
* clients that build requests, so the two cannot drift.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CHECKOUT_LIMITS: Readonly<{
|
|
28
|
+
lineItemsMax: 20;
|
|
29
|
+
quantityMax: 999999;
|
|
30
|
+
customFieldsMax: 3;
|
|
31
|
+
customFieldKeyMax: 200;
|
|
32
|
+
customFieldLabelMax: 50;
|
|
33
|
+
customFieldTextMax: 255;
|
|
34
|
+
dropdownOptionsMax: 200;
|
|
35
|
+
dropdownOptionLabelMax: 100;
|
|
36
|
+
dropdownOptionValueMax: 100;
|
|
37
|
+
clientReferenceIdMax: 200;
|
|
38
|
+
/** `expires_at` must be between 30 minutes and 24 hours from creation. */
|
|
39
|
+
expiresMinSeconds: number;
|
|
40
|
+
expiresMaxSeconds: number;
|
|
41
|
+
shippingCountriesMax: 250;
|
|
42
|
+
termsTextMax: 1200;
|
|
43
|
+
}>;
|
|
44
|
+
/** The template a `success_url` may carry; replaced with the session's `cs_…`. */
|
|
45
|
+
export declare const CHECKOUT_SESSION_ID_TEMPLATE = "{CHECKOUT_SESSION_ID}";
|
|
46
|
+
export declare const PAYMENT_LINK_LIMITS: Readonly<{
|
|
47
|
+
lineItemsMax: 20;
|
|
48
|
+
customMessageMax: 500;
|
|
49
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** Which half of an account a business type opens: the provider's two kinds. */
|
|
2
|
+
export declare const ACCOUNT_BUSINESS_TYPES: readonly ["individual", "company"];
|
|
3
|
+
export type AccountBusinessType = (typeof ACCOUNT_BUSINESS_TYPES)[number];
|
|
4
|
+
/** A capability's state as the provider reports it; `null` on the wire means never requested. */
|
|
5
|
+
export declare const ACCOUNT_CAPABILITY_STATUSES: readonly ["active", "pending", "inactive"];
|
|
6
|
+
export type AccountCapabilityStatus = (typeof ACCOUNT_CAPABILITY_STATUSES)[number];
|
|
7
|
+
/** Whose account an `account` is: the merchant's own, or one of its marketplace sellers. */
|
|
8
|
+
export declare const ACCOUNT_TYPES: readonly ["merchant", "connected"];
|
|
9
|
+
export type AccountType = (typeof ACCOUNT_TYPES)[number];
|
|
10
|
+
/** What a hosted onboarding link for the merchant's own account is for. */
|
|
11
|
+
export declare const ACCOUNT_LINK_TYPES: readonly ["account_onboarding", "account_update"];
|
|
12
|
+
export type AccountLinkType = (typeof ACCOUNT_LINK_TYPES)[number];
|
|
13
|
+
/**
|
|
14
|
+
* Which rails a seller's account was opened for (ADR 0012 D1). One seller is
|
|
15
|
+
* ONE `ca_…`: `card` is the provider account a marketplace settles to by
|
|
16
|
+
* transfer, `faircoin` is the seller's own watch-only key.
|
|
17
|
+
*/
|
|
18
|
+
export declare const CONNECTED_ACCOUNT_RAILS: readonly ["card", "faircoin"];
|
|
19
|
+
export type ConnectedAccountRail = (typeof CONNECTED_ACCOUNT_RAILS)[number];
|
|
20
|
+
/**
|
|
21
|
+
* Where a seller's FairCoin half stands: `pending` until the seller registers
|
|
22
|
+
* a key, `active` once they did.
|
|
23
|
+
*/
|
|
24
|
+
export declare const CONNECTED_ACCOUNT_FAIRCOIN_STATUSES: readonly ["pending", "active"];
|
|
25
|
+
export type ConnectedAccountFaircoinStatus = (typeof CONNECTED_ACCOUNT_FAIRCOIN_STATUSES)[number];
|
|
26
|
+
export declare const PAYOUT_INTERVALS: readonly ["manual", "daily", "weekly", "monthly"];
|
|
27
|
+
export type PayoutInterval = (typeof PAYOUT_INTERVALS)[number];
|
|
28
|
+
export declare const PAYOUT_WEEKLY_ANCHORS: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
29
|
+
export type PayoutWeeklyAnchor = (typeof PAYOUT_WEEKLY_ANCHORS)[number];
|
|
30
|
+
/** Orbit's vocabulary for what moved — the provider's own types, provider-neutral. */
|
|
31
|
+
export declare const BALANCE_TRANSACTION_TYPES: readonly ["charge", "payment", "refund", "payment_refund", "adjustment", "application_fee", "application_fee_refund", "payout", "payout_cancel", "payout_failure", "transfer", "transfer_refund", "dispute", "dispute_reversal", "processing_fee", "faircoin_payment", "faircoin_payment_reversal", "other"];
|
|
32
|
+
export type BalanceTransactionType = (typeof BALANCE_TRANSACTION_TYPES)[number];
|
|
33
|
+
/**
|
|
34
|
+
* - `pending` / `available` — the provider's own status for the funds.
|
|
35
|
+
* - `informational` — a FairCoin payment: recorded, never part of a payable balance.
|
|
36
|
+
*/
|
|
37
|
+
export declare const BALANCE_TRANSACTION_STATUSES: readonly ["available", "pending", "informational"];
|
|
38
|
+
export type BalanceTransactionStatus = (typeof BALANCE_TRANSACTION_STATUSES)[number];
|
|
39
|
+
/** One component of a transaction's fee. `processing_fee` is the acquirer's own. */
|
|
40
|
+
export declare const BALANCE_TRANSACTION_FEE_TYPES: readonly ["application_fee", "processing_fee", "tax", "other"];
|
|
41
|
+
export type BalanceTransactionFeeType = (typeof BALANCE_TRANSACTION_FEE_TYPES)[number];
|
|
42
|
+
export declare const PAYOUT_STATUSES: readonly ["pending", "in_transit", "paid", "failed", "canceled"];
|
|
43
|
+
export type PayoutStatus = (typeof PAYOUT_STATUSES)[number];
|
|
44
|
+
export declare const PAYOUT_METHODS: readonly ["standard", "instant"];
|
|
45
|
+
export type PayoutMethod = (typeof PAYOUT_METHODS)[number];
|
|
46
|
+
export declare const PAYOUT_DESTINATION_TYPES: readonly ["bank_account", "card"];
|
|
47
|
+
export type PayoutDestinationType = (typeof PAYOUT_DESTINATION_TYPES)[number];
|
|
48
|
+
/**
|
|
49
|
+
* A payout reconciliation report's state: `complete` once the payout is `paid`
|
|
50
|
+
* and its transactions were read from the provider, `pending` before.
|
|
51
|
+
*/
|
|
52
|
+
export declare const PAYOUT_RECONCILIATION_STATUSES: readonly ["complete", "pending"];
|
|
53
|
+
export type PayoutReconciliationStatus = (typeof PAYOUT_RECONCILIATION_STATUSES)[number];
|
|
54
|
+
/** What the daily reconciliation found disagreeing with the provider. Never auto-corrected. */
|
|
55
|
+
export declare const RECONCILIATION_MISMATCH_KINDS: readonly ["missing_in_ledger", "amount_mismatch", "status_mismatch", "missing_at_provider", "payout_mismatch", "unbalanced_journal"];
|
|
56
|
+
export type ReconciliationMismatchKind = (typeof RECONCILIATION_MISMATCH_KINDS)[number];
|
|
57
|
+
/** Where one settlement stands. */
|
|
58
|
+
export declare const TRANSFER_STATUSES: readonly ["pending", "paid", "partially_reversed", "reversed", "failed"];
|
|
59
|
+
export type TransferStatus = (typeof TRANSFER_STATUSES)[number];
|
|
60
|
+
/** Where one reversal of a settlement stands. */
|
|
61
|
+
export declare const TRANSFER_REVERSAL_STATUSES: readonly ["pending", "succeeded", "failed"];
|
|
62
|
+
export type TransferReversalStatus = (typeof TRANSFER_REVERSAL_STATUSES)[number];
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/** `error.type`: the broad class a caller branches on first. */
|
|
2
|
+
export declare const ERROR_TYPES: readonly ["api_error", "authentication_error", "card_error", "idempotency_error", "invalid_request_error", "permission_error", "rate_limit_error"];
|
|
3
|
+
export type ErrorType = (typeof ERROR_TYPES)[number];
|
|
4
|
+
/** What each `error.type` means, and the HTTP status it comes with. */
|
|
5
|
+
export declare const ERROR_TYPE_DESCRIPTIONS: Readonly<Record<ErrorType, string>>;
|
|
6
|
+
/**
|
|
7
|
+
* Where every code is documented: the error-code page of Peable's docs on the
|
|
8
|
+
* Oxy developer site, generated from this file (`bun run generate:api-docs`,
|
|
9
|
+
* `packages/sdk/docs/errors.mdx`). The trailing slash is the page's canonical
|
|
10
|
+
* form; each code is its own fragment.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ERROR_DOCS_BASE_URL = "https://oxy.so/developers/docs/peable/errors/";
|
|
13
|
+
/** The `doc_url` of a code. */
|
|
14
|
+
export declare function errorDocUrl(code: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Every `error.code` the gateway answers with, and what it means. The keys ARE
|
|
17
|
+
* the list — {@link ERROR_CODES} is derived from them — so a new code cannot be
|
|
18
|
+
* added without its description.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
21
|
+
readonly account_invalid: "The `Peable-Account` header names no connected account of this platform.";
|
|
22
|
+
readonly account_missing: "The merchant has no account object yet.";
|
|
23
|
+
readonly amount_not_representable: "The amount does not fit the currency or the rail.";
|
|
24
|
+
readonly billing_not_enabled: "Billing is not enabled for this merchant.";
|
|
25
|
+
readonly billing_provider_unavailable: "The billing provider could not be reached; retry.";
|
|
26
|
+
readonly domain_taken: "The domain is already registered by another merchant.";
|
|
27
|
+
readonly file_too_large: "The uploaded file is larger than its purpose allows.";
|
|
28
|
+
readonly file_unavailable: "The file exists but its contents cannot be served right now.";
|
|
29
|
+
readonly idempotency_error: "The `Idempotency-Key` was used with a different request, or its first request is still running.";
|
|
30
|
+
readonly idempotency_key_invalid: "The `Idempotency-Key` header is not a valid key.";
|
|
31
|
+
readonly insufficient_scope: "The credential is valid but was not granted the Oxy scope this route requires (`payments:read`, `payments:write`, …); `message` names it.";
|
|
32
|
+
readonly invalid_billing_request: "The billing request is not valid for this subscription or offer.";
|
|
33
|
+
readonly keyless_recipient: "The recipient has no receive key, so no address can be derived for them.";
|
|
34
|
+
readonly link_not_found: "The link does not exist or is no longer active.";
|
|
35
|
+
readonly live_payments_gated: "Live payments are not enabled for this application yet.";
|
|
36
|
+
readonly local_test_request_required: "This test helper only answers a local test request.";
|
|
37
|
+
readonly parameter_invalid: "A parameter is invalid; `param` names it.";
|
|
38
|
+
readonly parameter_missing: "A required parameter is missing; `param` names it.";
|
|
39
|
+
readonly parameter_unknown: "The request carries a parameter this route does not accept; `param` names it.";
|
|
40
|
+
readonly payment_intent_unexpected_state: "The PaymentIntent is in a status that does not allow this operation.";
|
|
41
|
+
readonly payout_not_allowed: "Payouts cannot be created for this account.";
|
|
42
|
+
readonly rate_limited: "Too many requests; back off and retry.";
|
|
43
|
+
readonly refund_not_cancelable: "The refund has already left a cancelable state.";
|
|
44
|
+
readonly resource_conflict: "The object changed under this request; read it again and retry.";
|
|
45
|
+
readonly resource_missing: "The object does not exist, or this credential cannot read it.";
|
|
46
|
+
readonly setup_intent_unexpected_state: "The SetupIntent is in a status that does not allow this operation.";
|
|
47
|
+
readonly tax_not_enabled: "Peable Tax is not enabled for this merchant.";
|
|
48
|
+
readonly test_mode_only: "This operation exists in test mode only.";
|
|
49
|
+
readonly too_many_streams: "Too many live streams are open for this merchant.";
|
|
50
|
+
readonly url_invalid: "The URL is not an allowed https URL.";
|
|
51
|
+
readonly watch_only_violation: "The extended key carries a private key. Peable only ever accepts watch-only (public) keys.";
|
|
52
|
+
readonly webhook_endpoint_disabled: "The webhook endpoint is disabled.";
|
|
53
|
+
readonly webhook_endpoint_limit_reached: "The merchant already has the maximum number of webhook endpoints.";
|
|
54
|
+
readonly account_not_ready: "The connected account cannot take this payment yet: its onboarding or a capability is incomplete.";
|
|
55
|
+
readonly approval_incomplete: "The tax settings cannot be approved yet: a legal name and head office are required, or they changed during the approval.";
|
|
56
|
+
readonly approval_requires_provider: "Registered sales need a tax provider, and this application has none: the approval would leave covered sales unpriceable.";
|
|
57
|
+
readonly checkout_session_expired: "The Checkout Session has expired.";
|
|
58
|
+
readonly checkout_session_not_open: "The Checkout Session is no longer open (complete or expired).";
|
|
59
|
+
readonly customer_location_conflicting: "The customer's location evidence disagrees, so the sale cannot be placed in one jurisdiction.";
|
|
60
|
+
readonly customer_location_expired: "The customer's location evidence is too old to price a sale with.";
|
|
61
|
+
readonly customer_location_insufficient: "There is not enough evidence of the customer's location to decide whether the sale is taxed.";
|
|
62
|
+
readonly customer_location_invalid: "The tax provider could not use the customer's location.";
|
|
63
|
+
readonly dispute_already_submitted: "Evidence for this dispute has already been submitted; it is one shot.";
|
|
64
|
+
readonly dispute_not_answerable: "The dispute is in a status that no longer accepts evidence.";
|
|
65
|
+
readonly idempotency_conflict: "The same operation key was used for a different billing request.";
|
|
66
|
+
readonly identity_conflict: "The billing identity already belongs to another customer or subscription.";
|
|
67
|
+
readonly in_progress: "The same operation is still running; retry with the same key.";
|
|
68
|
+
readonly invalid_provider_response: "The provider answered with something Peable cannot trust; the operation was not applied.";
|
|
69
|
+
readonly invalid_registration: "The tax registration is not valid.";
|
|
70
|
+
readonly invalid_registration_declaration: "The tax registration declaration is not valid.";
|
|
71
|
+
readonly invalid_tax_code: "The tax code does not exist.";
|
|
72
|
+
readonly invalid_tax_document: "The tax document is not valid for its declared purpose.";
|
|
73
|
+
readonly invalid_tax_request: "The tax request is not valid.";
|
|
74
|
+
readonly lookup_key_taken: "Another price already uses this `lookup_key`.";
|
|
75
|
+
readonly mode_unavailable: "This Checkout mode is not available to this merchant.";
|
|
76
|
+
readonly not_found: "The object does not exist, or this credential cannot read it.";
|
|
77
|
+
readonly payment_link_inactive: "The Payment Link is deactivated.";
|
|
78
|
+
readonly price_is_default: "The price is its product's `default_price` and cannot be archived.";
|
|
79
|
+
readonly product_has_prices: "The product still has prices; archive it instead.";
|
|
80
|
+
readonly product_in_use: "The product is referenced by a subscription or a link.";
|
|
81
|
+
readonly promotion_code_invalid: "The promotion code does not exist, is inactive or does not apply.";
|
|
82
|
+
readonly promotion_code_taken: "Another active promotion code already uses this `code`.";
|
|
83
|
+
readonly provider_unavailable: "The payment provider could not be reached; retry.";
|
|
84
|
+
readonly rail_unavailable: "The payment rail this request needs is not available.";
|
|
85
|
+
readonly reconciliation_required: "The billing operation has an unknown outcome at the provider and is being reconciled.";
|
|
86
|
+
readonly registration_immutable: "An approved or ended tax registration cannot be deleted or changed this way; end it instead.";
|
|
87
|
+
readonly resource_already_exists: "An object with this identity already exists.";
|
|
88
|
+
readonly result_expired: "The stored result of this operation has expired.";
|
|
89
|
+
readonly review_item_not_open: "The review item is already resolved or dismissed.";
|
|
90
|
+
readonly rule_set_version_unavailable: "The tax rule set version is not available.";
|
|
91
|
+
readonly subscription_line_invalid: "A subscription line item is not valid for Checkout.";
|
|
92
|
+
readonly tax_behavior_locked: "The price's `tax_behavior` cannot change once set.";
|
|
93
|
+
readonly tax_calculation_unavailable: "Tax could not be calculated; a covered sale fails closed.";
|
|
94
|
+
readonly tax_provider_registration_mismatch: "The provider's registrations disagree with the ones Peable has approved.";
|
|
95
|
+
readonly tax_settings_not_active: "Tax settings are not active for this merchant.";
|
|
96
|
+
readonly local_test_unavailable: "The local test checkout is not available.";
|
|
97
|
+
readonly local_test_configuration_unavailable: "The local test checkout has no provider configuration.";
|
|
98
|
+
readonly local_test_subscription_unavailable: "The local test subscription cannot be read.";
|
|
99
|
+
readonly rail_mismatch: "The operation does not apply to the rail this payment uses.";
|
|
100
|
+
readonly checkout_session_changed: "The Checkout Session changed while this request ran (a price, a discount, its tax); read it again and retry.";
|
|
101
|
+
readonly checkout_session_locked: "The Checkout Session is being confirmed and cannot change.";
|
|
102
|
+
readonly tax_calculation_failed: "The tax for this Checkout Session could not be calculated.";
|
|
103
|
+
readonly payment_cancellation_failed: "The payment could not be cancelled at the provider; the Checkout Session stays as it was.";
|
|
104
|
+
readonly invoice_not_editable: "The invoice is finalized and can no longer be edited.";
|
|
105
|
+
readonly invoice_unexpected_state: "The invoice is in a status that does not allow this operation.";
|
|
106
|
+
readonly invoice_no_customer_line_items: "The invoice has no line items to finalize.";
|
|
107
|
+
readonly invoice_payment_intent_requires_action: "The invoice's payment needs the customer to act (a card challenge).";
|
|
108
|
+
readonly subscription_unexpected_state: "The subscription is in a status that does not allow this operation.";
|
|
109
|
+
readonly customer_currency_mismatch: "The currency differs from the customer's billing currency.";
|
|
110
|
+
readonly customer_test_clock_mismatch: "The objects live on different test clocks.";
|
|
111
|
+
readonly coupon_invalid: "The coupon does not exist or is no longer valid.";
|
|
112
|
+
readonly coupon_currency_mismatch: "The coupon's currency differs from the purchase's.";
|
|
113
|
+
readonly coupon_not_applicable: "The coupon does not apply to these products.";
|
|
114
|
+
readonly promotion_code_inactive: "The promotion code is inactive.";
|
|
115
|
+
readonly promotion_code_customer_mismatch: "The promotion code is restricted to another customer.";
|
|
116
|
+
readonly promotion_code_expired: "The promotion code has expired.";
|
|
117
|
+
readonly promotion_code_max_redemptions: "The promotion code has been redeemed its maximum number of times.";
|
|
118
|
+
readonly promotion_code_minimum_amount: "The purchase is below the promotion code minimum amount.";
|
|
119
|
+
readonly payment_method_missing: "No payment method is available to charge.";
|
|
120
|
+
readonly faircoin_cannot_debit: "A FairCoin invoice cannot be charged automatically: the payer signs every payment.";
|
|
121
|
+
readonly credit_note_exceeds_invoice: "The credit note's amount exceeds what the invoice can still credit.";
|
|
122
|
+
readonly test_clock_unexpected_state: "The test clock is advancing; wait until it is ready.";
|
|
123
|
+
readonly meter_event_customer_missing: "The meter event names no customer of this merchant.";
|
|
124
|
+
readonly feature_lookup_key_taken: "Another feature already uses this `lookup_key`.";
|
|
125
|
+
readonly portal_feature_disabled: "The customer portal configuration does not allow this action.";
|
|
126
|
+
readonly portal_session_expired: "The customer portal session has expired.";
|
|
127
|
+
readonly card_declined: "The card was declined.";
|
|
128
|
+
readonly promotion_code_first_time_only: "The promotion code is for a customer's first purchase only.";
|
|
129
|
+
readonly network_mismatch: "The FairCoin network differs from the one this object uses.";
|
|
130
|
+
readonly link_expired: "The onboarding link has expired or was already used; `refresh_url` is where the seller gets a fresh one.";
|
|
131
|
+
readonly wrong_seller: "The onboarding link names a different Oxy account; sign in as the seller it was minted for.";
|
|
132
|
+
readonly already_registered: "The seller already registered a FairCoin key, and it cannot be changed.";
|
|
133
|
+
readonly key_in_use: "The key already receives payments for another account.";
|
|
134
|
+
readonly no_faircoin_half: "The connected account has no FairCoin half to register a key for.";
|
|
135
|
+
readonly merchant_missing: "The application has no merchant in this environment yet; register one (Orbit shows \"Set up payments\").";
|
|
136
|
+
readonly application_membership_required: "The signed-in Oxy account is not a member of the account that owns this application.";
|
|
137
|
+
readonly permission_required: "The member lacks an Oxy permission this needs; `param` names it (`billing:read`, `billing:manage`). An owner grants it in Oxy Console.";
|
|
138
|
+
readonly membership_unavailable: "Oxy could not be asked whether the signed-in person is a member of this application; retry.";
|
|
139
|
+
readonly session_invalid: "Oxy no longer accepts the signed-in session; sign in again.";
|
|
140
|
+
};
|
|
141
|
+
export type ErrorCode = keyof typeof ERROR_CODE_DESCRIPTIONS;
|
|
142
|
+
/** Every error code, sorted. */
|
|
143
|
+
export declare const ERROR_CODES: [ErrorCode, ...ErrorCode[]];
|
|
144
|
+
/** Whether a string is a documented error code. */
|
|
145
|
+
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event type → the `object` value of the resource under `data.object`.
|
|
3
|
+
*
|
|
4
|
+
* TOTAL and the ONLY list: {@link WEBHOOK_EVENT_TYPES} is its keys, so a new
|
|
5
|
+
* event type cannot exist without saying what it delivers — an event added
|
|
6
|
+
* with a default would silently ship a PaymentIntent to a consumer expecting
|
|
7
|
+
* something else, which typechecks on both sides and fails only in production.
|
|
8
|
+
* The precise payload TYPE is `WebhookEventPayload` (`resources/events`), the
|
|
9
|
+
* registered object of each value.
|
|
10
|
+
*
|
|
11
|
+
* The order is the database's: the backend's CHECK constraints list the types
|
|
12
|
+
* in this order, so reordering it is a migration.
|
|
13
|
+
*
|
|
14
|
+
* - `payment_intent.*` follow the status the intent reached (ADR 0019):
|
|
15
|
+
* `created` when it is minted, then one per transition — `requires_action`,
|
|
16
|
+
* `processing`, `amount_capturable_updated` (authorized, awaiting capture),
|
|
17
|
+
* `succeeded`, `payment_failed` (an attempt failed; a card returns to
|
|
18
|
+
* `requires_payment_method`, a FairCoin underpayment is also `canceled`) and
|
|
19
|
+
* `canceled` (by the merchant, by expiry — `abandoned` — or underpaid).
|
|
20
|
+
* - Refunds are not PaymentIntent statuses: `refund.*` carry the Refund, and
|
|
21
|
+
* `charge.refunded` the Charge whose `amount_refunded` moved.
|
|
22
|
+
* - A dispute is the network's process beside a payment that stays
|
|
23
|
+
* `succeeded`; its events carry the Dispute, never the evidence (which is not
|
|
24
|
+
* stored).
|
|
25
|
+
* - The catalog has no `price.deleted` or `promotion_code.deleted`: those are
|
|
26
|
+
* archived with `active: false`, and a type that can never be sent is a
|
|
27
|
+
* promise the catalog cannot keep.
|
|
28
|
+
*/
|
|
29
|
+
export declare const WEBHOOK_EVENT_OBJECTS: {
|
|
30
|
+
readonly 'payment_intent.created': "payment_intent";
|
|
31
|
+
readonly 'payment_intent.requires_action': "payment_intent";
|
|
32
|
+
readonly 'payment_intent.processing': "payment_intent";
|
|
33
|
+
readonly 'payment_intent.amount_capturable_updated': "payment_intent";
|
|
34
|
+
readonly 'payment_intent.succeeded': "payment_intent";
|
|
35
|
+
readonly 'payment_intent.payment_failed': "payment_intent";
|
|
36
|
+
readonly 'payment_intent.canceled': "payment_intent";
|
|
37
|
+
readonly 'charge.refunded': "charge";
|
|
38
|
+
readonly 'charge.dispute.created': "dispute";
|
|
39
|
+
readonly 'charge.dispute.updated': "dispute";
|
|
40
|
+
readonly 'charge.dispute.closed': "dispute";
|
|
41
|
+
readonly 'charge.dispute.funds_withdrawn': "dispute";
|
|
42
|
+
readonly 'charge.dispute.funds_reinstated': "dispute";
|
|
43
|
+
readonly 'refund.created': "refund";
|
|
44
|
+
readonly 'refund.updated': "refund";
|
|
45
|
+
readonly 'refund.failed': "refund";
|
|
46
|
+
readonly 'customer.created': "customer";
|
|
47
|
+
readonly 'customer.updated': "customer";
|
|
48
|
+
readonly 'customer.deleted': "customer";
|
|
49
|
+
readonly 'payment_method.attached': "payment_method";
|
|
50
|
+
readonly 'payment_method.detached': "payment_method";
|
|
51
|
+
readonly 'payment_method.updated': "payment_method";
|
|
52
|
+
readonly 'setup_intent.created': "setup_intent";
|
|
53
|
+
readonly 'setup_intent.requires_action': "setup_intent";
|
|
54
|
+
readonly 'setup_intent.succeeded': "setup_intent";
|
|
55
|
+
readonly 'setup_intent.setup_failed': "setup_intent";
|
|
56
|
+
readonly 'setup_intent.canceled': "setup_intent";
|
|
57
|
+
readonly 'billing.observation.updated': "billing_observation";
|
|
58
|
+
readonly 'connected_account.updated': "connected_account";
|
|
59
|
+
readonly 'product.created': "product";
|
|
60
|
+
readonly 'product.updated': "product";
|
|
61
|
+
readonly 'product.deleted': "product";
|
|
62
|
+
readonly 'price.created': "price";
|
|
63
|
+
readonly 'price.updated': "price";
|
|
64
|
+
readonly 'coupon.created': "coupon";
|
|
65
|
+
readonly 'coupon.updated': "coupon";
|
|
66
|
+
readonly 'coupon.deleted': "coupon";
|
|
67
|
+
readonly 'promotion_code.created': "promotion_code";
|
|
68
|
+
readonly 'promotion_code.updated': "promotion_code";
|
|
69
|
+
readonly 'account.updated': "account";
|
|
70
|
+
readonly 'application_fee.created': "application_fee";
|
|
71
|
+
readonly 'application_fee.refunded': "application_fee";
|
|
72
|
+
readonly 'payout.created': "payout";
|
|
73
|
+
readonly 'payout.updated': "payout";
|
|
74
|
+
readonly 'payout.paid': "payout";
|
|
75
|
+
readonly 'payout.failed': "payout";
|
|
76
|
+
readonly 'payout.canceled': "payout";
|
|
77
|
+
readonly 'balance.available': "balance";
|
|
78
|
+
readonly 'checkout.session.completed': "checkout_session";
|
|
79
|
+
readonly 'checkout.session.expired': "checkout_session";
|
|
80
|
+
readonly 'checkout.session.async_payment_succeeded': "checkout_session";
|
|
81
|
+
readonly 'checkout.session.async_payment_failed': "checkout_session";
|
|
82
|
+
readonly 'payment_link.created': "payment_link";
|
|
83
|
+
readonly 'payment_link.updated': "payment_link";
|
|
84
|
+
readonly 'reporting.report_run.succeeded': "reporting.report_run";
|
|
85
|
+
readonly 'reporting.report_run.failed': "reporting.report_run";
|
|
86
|
+
readonly 'customer.subscription.created': "subscription";
|
|
87
|
+
readonly 'customer.subscription.updated': "subscription";
|
|
88
|
+
readonly 'customer.subscription.deleted': "subscription";
|
|
89
|
+
readonly 'customer.subscription.trial_will_end': "subscription";
|
|
90
|
+
readonly 'customer.subscription.paused': "subscription";
|
|
91
|
+
readonly 'customer.subscription.resumed': "subscription";
|
|
92
|
+
readonly 'invoice.created': "invoice";
|
|
93
|
+
readonly 'invoice.updated': "invoice";
|
|
94
|
+
readonly 'invoice.deleted': "invoice";
|
|
95
|
+
readonly 'invoice.finalized': "invoice";
|
|
96
|
+
readonly 'invoice.paid': "invoice";
|
|
97
|
+
readonly 'invoice.payment_failed': "invoice";
|
|
98
|
+
readonly 'invoice.payment_action_required': "invoice";
|
|
99
|
+
readonly 'invoice.voided': "invoice";
|
|
100
|
+
readonly 'invoice.marked_uncollectible': "invoice";
|
|
101
|
+
readonly 'invoice.upcoming': "invoice";
|
|
102
|
+
readonly 'invoice.sent': "invoice";
|
|
103
|
+
readonly 'invoiceitem.created': "invoiceitem";
|
|
104
|
+
readonly 'invoiceitem.deleted': "invoiceitem";
|
|
105
|
+
readonly 'credit_note.created': "credit_note";
|
|
106
|
+
readonly 'credit_note.updated': "credit_note";
|
|
107
|
+
readonly 'credit_note.voided': "credit_note";
|
|
108
|
+
readonly 'test_helpers.test_clock.created': "test_helpers.test_clock";
|
|
109
|
+
readonly 'test_helpers.test_clock.advancing': "test_helpers.test_clock";
|
|
110
|
+
readonly 'test_helpers.test_clock.ready': "test_helpers.test_clock";
|
|
111
|
+
readonly 'test_helpers.test_clock.deleted': "test_helpers.test_clock";
|
|
112
|
+
readonly 'billing.meter.created': "billing.meter";
|
|
113
|
+
readonly 'billing.meter.updated': "billing.meter";
|
|
114
|
+
readonly 'billing.meter.deactivated': "billing.meter";
|
|
115
|
+
readonly 'billing.meter.reactivated': "billing.meter";
|
|
116
|
+
readonly 'entitlements.active_entitlement_summary.updated': "entitlements.active_entitlement_summary";
|
|
117
|
+
readonly 'billing_portal.configuration.created': "billing_portal.configuration";
|
|
118
|
+
readonly 'billing_portal.configuration.updated': "billing_portal.configuration";
|
|
119
|
+
readonly 'billing_portal.session.created': "billing_portal.session";
|
|
120
|
+
readonly 'tax.assessment.created': "tax.assessment";
|
|
121
|
+
readonly 'tax.review_item.created': "tax.review_item";
|
|
122
|
+
readonly 'tax.review_item.updated': "tax.review_item";
|
|
123
|
+
readonly 'webhook_endpoint.test': "webhook_endpoint";
|
|
124
|
+
};
|
|
125
|
+
/** Every event type, Stripe's names (ADR 0019). */
|
|
126
|
+
export type WebhookEventType = keyof typeof WEBHOOK_EVENT_OBJECTS;
|
|
127
|
+
/** The `object` type an event of type `T` carries under `data.object`. */
|
|
128
|
+
export type WebhookEventObjectType<T extends WebhookEventType = WebhookEventType> = (typeof WEBHOOK_EVENT_OBJECTS)[T];
|
|
129
|
+
/** Every event type, in {@link WEBHOOK_EVENT_OBJECTS} order. */
|
|
130
|
+
export declare const WEBHOOK_EVENT_TYPES: [WebhookEventType, ...WebhookEventType[]];
|
|
131
|
+
/**
|
|
132
|
+
* The event types never fanned out by subscription — sent only to the one
|
|
133
|
+
* endpoint they name. `enabled_events` refuses them.
|
|
134
|
+
*/
|
|
135
|
+
export declare const TARGETED_WEBHOOK_EVENT_TYPES: readonly ["webhook_endpoint.test"];
|
|
136
|
+
export type TargetedWebhookEventType = (typeof TARGETED_WEBHOOK_EVENT_TYPES)[number];
|
|
137
|
+
/** `'*'` subscribes to every event type, including ones added later. */
|
|
138
|
+
export type WebhookEnabledEvent = Exclude<WebhookEventType, TargetedWebhookEventType> | '*';
|
|
139
|
+
/** What `enabled_events` may hold: `*`, then every subscribable type. */
|
|
140
|
+
export declare const WEBHOOK_ENABLED_EVENTS: [WebhookEnabledEvent, ...WebhookEnabledEvent[]];
|
|
141
|
+
export declare const WEBHOOK_ENDPOINT_STATUSES: readonly ["enabled", "disabled"];
|
|
142
|
+
export type WebhookEndpointStatus = (typeof WEBHOOK_ENDPOINT_STATUSES)[number];
|
|
143
|
+
/**
|
|
144
|
+
* Why an endpoint is `disabled`.
|
|
145
|
+
*
|
|
146
|
+
* - `disabled_by_merchant` — its owner set `disabled: true`.
|
|
147
|
+
* - `delivery_failures` — every delivery to it failed for three days
|
|
148
|
+
* straight, so Peable stopped sending. Re-enabling it (`disabled: false`)
|
|
149
|
+
* starts the clock again.
|
|
150
|
+
*/
|
|
151
|
+
export declare const WEBHOOK_ENDPOINT_DISABLED_REASONS: readonly ["disabled_by_merchant", "delivery_failures"];
|
|
152
|
+
export type WebhookEndpointDisabledReason = (typeof WEBHOOK_ENDPOINT_DISABLED_REASONS)[number];
|
|
153
|
+
/** At most this many endpoints per merchant (per mode). */
|
|
154
|
+
export declare const WEBHOOK_ENDPOINTS_MAX_PER_MERCHANT = 16;
|
|
155
|
+
/** The longest an endpoint's `description` may be. */
|
|
156
|
+
export declare const WEBHOOK_ENDPOINT_DESCRIPTION_MAX = 5000;
|
|
157
|
+
/** The longest a rolled secret may keep signing beside its replacement. */
|
|
158
|
+
export declare const WEBHOOK_SECRET_ROLL_MAX_EXPIRES_IN_SECONDS: number;
|
|
159
|
+
/**
|
|
160
|
+
* Where one webhook delivery stands (ADR 0001 D7).
|
|
161
|
+
*
|
|
162
|
+
* - `pending` — will be attempted. `next_attempt_at` says when.
|
|
163
|
+
* - `delivered` — terminal success.
|
|
164
|
+
* - `failed` — the endpoint REFUSED it (a 4xx, a blocked address), or the
|
|
165
|
+
* endpoint was disabled before it could be attempted. No retry
|
|
166
|
+
* can fix that, so none is made.
|
|
167
|
+
* - `dead` — every attempt failed transiently over three days and the
|
|
168
|
+
* budget ran out. It can be redelivered by hand.
|
|
169
|
+
*/
|
|
170
|
+
export declare const WEBHOOK_DELIVERY_STATUSES: readonly ["pending", "delivered", "failed", "dead"];
|
|
171
|
+
export type WebhookDeliveryStatus = (typeof WEBHOOK_DELIVERY_STATUSES)[number];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a file is FOR. Decided at upload and never changed: the purpose is what
|
|
3
|
+
* sets the type and size policy, who may see the bytes, and which objects may
|
|
4
|
+
* reference the file — a `business_logo` is public, a `dispute_evidence` file
|
|
5
|
+
* is private and can only be attached to the merchant's own disputes.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FILE_PURPOSES: readonly ["dispute_evidence", "business_logo", "identity_document", "additional_verification", "finance_report_run", "tax_document"];
|
|
8
|
+
export type FilePurpose = (typeof FILE_PURPOSES)[number];
|
|
9
|
+
/**
|
|
10
|
+
* The purposes a merchant may upload or import. `finance_report_run` is not
|
|
11
|
+
* among them: a report's CSV is written by Peable's report runs
|
|
12
|
+
* (`/v1/reporting/report_runs`) and nobody else, so a file of that purpose is
|
|
13
|
+
* always a report Peable produced.
|
|
14
|
+
*/
|
|
15
|
+
export declare const FILE_UPLOAD_PURPOSES: readonly ["dispute_evidence", "business_logo", "identity_document", "additional_verification", "tax_document"];
|
|
16
|
+
export type FileUploadPurpose = (typeof FILE_UPLOAD_PURPOSES)[number];
|
|
17
|
+
/** The stored format, by its conventional extension (Stripe's `type`). */
|
|
18
|
+
export declare const FILE_TYPES: readonly ["pdf", "png", "jpg", "csv"];
|
|
19
|
+
export type FileType = (typeof FILE_TYPES)[number];
|
|
20
|
+
/**
|
|
21
|
+
* Whether the bytes can be used right now.
|
|
22
|
+
*
|
|
23
|
+
* - `available` — Oxy serves the file; it can be shown or forwarded.
|
|
24
|
+
* - `withheld` — the file still exists and is not being served (its owner
|
|
25
|
+
* trashed it or made it private); it can come back.
|
|
26
|
+
* - `removed` — Oxy said the file is gone for good (deleted, taken down, lost).
|
|
27
|
+
* The object stays so whatever referenced it can say why it stopped working.
|
|
28
|
+
*/
|
|
29
|
+
export declare const FILE_STATUSES: readonly ["available", "withheld", "removed"];
|
|
30
|
+
export type FileStatus = (typeof FILE_STATUSES)[number];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './billingPortal';
|
|
2
|
+
export * from './connect';
|
|
3
|
+
export * from './catalog';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './invoices';
|
|
6
|
+
export * from './events';
|
|
7
|
+
export * from './lists';
|
|
8
|
+
export * from './money';
|
|
9
|
+
export * from './tax';
|
|
10
|
+
export * from './subscriptions';
|
|
11
|
+
export * from './reporting';
|
|
12
|
+
export * from './payments';
|
|
13
|
+
export * from './version';
|
|
14
|
+
export * from './checkout';
|
|
15
|
+
export * from './files';
|
|
16
|
+
export * from './merchants';
|
|
17
|
+
export * from './paymentMethodConfigurations';
|