@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,419 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Expand } from '../../common/objects';
|
|
3
|
+
/**
|
|
4
|
+
* What Checkout Sessions and Payment Links share: the `item` a line renders
|
|
5
|
+
* as, the collection options (address, phone, tax id, terms, custom fields),
|
|
6
|
+
* the payer-facing merchant and branding, and the request halves of those.
|
|
7
|
+
* One shape rule is written once, so a link and a session refuse the same
|
|
8
|
+
* mistake with the same `param`.
|
|
9
|
+
*/
|
|
10
|
+
/** The payment rail: FairCoin on chain, or a card (and the methods riding on it). */
|
|
11
|
+
export declare const railSchema: z.ZodEnum<{
|
|
12
|
+
card: "card";
|
|
13
|
+
faircoin: "faircoin";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const checkoutAdjustableQuantitySchema: z.ZodObject<{
|
|
16
|
+
enabled: z.ZodBoolean;
|
|
17
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export type CheckoutAdjustableQuantity = z.output<typeof checkoutAdjustableQuantitySchema>;
|
|
21
|
+
/** One line of a session or link — Stripe's `item`. */
|
|
22
|
+
export declare const checkoutLineItemSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
object: z.ZodLiteral<"item">;
|
|
25
|
+
description: z.ZodString;
|
|
26
|
+
price: z.ZodNullable<z.ZodType<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">, z.core.$ZodTypeInternals<string | import("../..").Ref<"price">, string | import("../..").Ref<"price">>>>;
|
|
27
|
+
product: z.ZodNullable<z.ZodType<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">, z.core.$ZodTypeInternals<string | import("../..").Ref<"product">, string | import("../..").Ref<"product">>>>;
|
|
28
|
+
images: z.ZodArray<z.ZodString>;
|
|
29
|
+
quantity: z.ZodNumber;
|
|
30
|
+
adjustable_quantity: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
enabled: z.ZodBoolean;
|
|
32
|
+
minimum: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
maximum: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strict>>;
|
|
35
|
+
currency: z.ZodEnum<{
|
|
36
|
+
FAIR: "FAIR";
|
|
37
|
+
EUR: "EUR";
|
|
38
|
+
USD: "USD";
|
|
39
|
+
GBP: "GBP";
|
|
40
|
+
CHF: "CHF";
|
|
41
|
+
SEK: "SEK";
|
|
42
|
+
NOK: "NOK";
|
|
43
|
+
DKK: "DKK";
|
|
44
|
+
PLN: "PLN";
|
|
45
|
+
CZK: "CZK";
|
|
46
|
+
CAD: "CAD";
|
|
47
|
+
AUD: "AUD";
|
|
48
|
+
JPY: "JPY";
|
|
49
|
+
}>;
|
|
50
|
+
unit_amount: z.ZodNullable<z.ZodString>;
|
|
51
|
+
amount_subtotal: z.ZodString;
|
|
52
|
+
amount_discount: z.ZodString;
|
|
53
|
+
amount_tax: z.ZodString;
|
|
54
|
+
amount_total: z.ZodString;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type CheckoutLineItem = Expand<z.output<typeof checkoutLineItemSchema>>;
|
|
57
|
+
declare module '../../common/objects' {
|
|
58
|
+
interface ObjectMap {
|
|
59
|
+
item: CheckoutLineItem;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export declare const checkoutTaxIdSchema: z.ZodObject<{
|
|
63
|
+
type: z.ZodEnum<{
|
|
64
|
+
eu_vat: "eu_vat";
|
|
65
|
+
gb_vat: "gb_vat";
|
|
66
|
+
ch_vat: "ch_vat";
|
|
67
|
+
no_vat: "no_vat";
|
|
68
|
+
us_ein: "us_ein";
|
|
69
|
+
ca_bn: "ca_bn";
|
|
70
|
+
}>;
|
|
71
|
+
value: z.ZodString;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
export type CheckoutTaxId = z.output<typeof checkoutTaxIdSchema>;
|
|
74
|
+
/** What the payer told checkout about themselves — Stripe's `customer_details`. */
|
|
75
|
+
export declare const checkoutCustomerDetailsSchema: z.ZodObject<{
|
|
76
|
+
email: z.ZodNullable<z.ZodString>;
|
|
77
|
+
name: z.ZodNullable<z.ZodString>;
|
|
78
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
79
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
80
|
+
line1: z.ZodNullable<z.ZodString>;
|
|
81
|
+
line2: z.ZodNullable<z.ZodString>;
|
|
82
|
+
city: z.ZodNullable<z.ZodString>;
|
|
83
|
+
state: z.ZodNullable<z.ZodString>;
|
|
84
|
+
postal_code: z.ZodNullable<z.ZodString>;
|
|
85
|
+
country: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
tax_ids: z.ZodArray<z.ZodObject<{
|
|
88
|
+
type: z.ZodEnum<{
|
|
89
|
+
eu_vat: "eu_vat";
|
|
90
|
+
gb_vat: "gb_vat";
|
|
91
|
+
ch_vat: "ch_vat";
|
|
92
|
+
no_vat: "no_vat";
|
|
93
|
+
us_ein: "us_ein";
|
|
94
|
+
ca_bn: "ca_bn";
|
|
95
|
+
}>;
|
|
96
|
+
value: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export type CheckoutCustomerDetails = z.output<typeof checkoutCustomerDetailsSchema>;
|
|
100
|
+
export declare const checkoutShippingDetailsSchema: z.ZodObject<{
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
address: z.ZodObject<{
|
|
103
|
+
line1: z.ZodNullable<z.ZodString>;
|
|
104
|
+
line2: z.ZodNullable<z.ZodString>;
|
|
105
|
+
city: z.ZodNullable<z.ZodString>;
|
|
106
|
+
state: z.ZodNullable<z.ZodString>;
|
|
107
|
+
postal_code: z.ZodNullable<z.ZodString>;
|
|
108
|
+
country: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
export type CheckoutShippingDetails = z.output<typeof checkoutShippingDetailsSchema>;
|
|
112
|
+
export declare const checkoutCustomFieldLabelSchema: z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"custom">;
|
|
114
|
+
custom: z.ZodString;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
export type CheckoutCustomFieldLabel = z.output<typeof checkoutCustomFieldLabelSchema>;
|
|
117
|
+
export declare const checkoutCustomFieldDropdownOptionSchema: z.ZodObject<{
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
value: z.ZodString;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export type CheckoutCustomFieldDropdownOption = z.output<typeof checkoutCustomFieldDropdownOptionSchema>;
|
|
122
|
+
/** A merchant-defined field the payer fills in; `value`s are what they entered. */
|
|
123
|
+
export declare const checkoutCustomFieldSchema: z.ZodObject<{
|
|
124
|
+
key: z.ZodString;
|
|
125
|
+
label: z.ZodObject<{
|
|
126
|
+
type: z.ZodLiteral<"custom">;
|
|
127
|
+
custom: z.ZodString;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
type: z.ZodEnum<{
|
|
130
|
+
text: "text";
|
|
131
|
+
numeric: "numeric";
|
|
132
|
+
dropdown: "dropdown";
|
|
133
|
+
}>;
|
|
134
|
+
optional: z.ZodBoolean;
|
|
135
|
+
dropdown: z.ZodNullable<z.ZodObject<{
|
|
136
|
+
options: z.ZodArray<z.ZodObject<{
|
|
137
|
+
label: z.ZodString;
|
|
138
|
+
value: z.ZodString;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
value: z.ZodNullable<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
text: z.ZodNullable<z.ZodObject<{
|
|
143
|
+
minimum_length: z.ZodNullable<z.ZodNumber>;
|
|
144
|
+
maximum_length: z.ZodNullable<z.ZodNumber>;
|
|
145
|
+
value: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
numeric: z.ZodNullable<z.ZodObject<{
|
|
148
|
+
minimum_length: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
maximum_length: z.ZodNullable<z.ZodNumber>;
|
|
150
|
+
value: z.ZodNullable<z.ZodString>;
|
|
151
|
+
}, z.core.$strict>>;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
export type CheckoutCustomField = z.output<typeof checkoutCustomFieldSchema>;
|
|
154
|
+
export declare const checkoutDiscountSchema: z.ZodObject<{
|
|
155
|
+
coupon: z.ZodString;
|
|
156
|
+
promotion_code: z.ZodNullable<z.ZodString>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
export type CheckoutDiscount = z.output<typeof checkoutDiscountSchema>;
|
|
159
|
+
export declare const checkoutTotalDetailsSchema: z.ZodObject<{
|
|
160
|
+
amount_discount: z.ZodString;
|
|
161
|
+
amount_tax: z.ZodString;
|
|
162
|
+
amount_shipping: z.ZodString;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
export type CheckoutTotalDetails = z.output<typeof checkoutTotalDetailsSchema>;
|
|
165
|
+
/**
|
|
166
|
+
* `automatic_tax` — Peable Tax (ADR 0011). `requires_location_inputs` until
|
|
167
|
+
* the payer gave an address Peable Tax can locate them with; `failed` when the
|
|
168
|
+
* sale is covered and could not be priced (checkout refuses to proceed: tax
|
|
169
|
+
* fails CLOSED, never zero).
|
|
170
|
+
*/
|
|
171
|
+
export declare const checkoutAutomaticTaxSchema: z.ZodObject<{
|
|
172
|
+
enabled: z.ZodBoolean;
|
|
173
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
174
|
+
requires_location_inputs: "requires_location_inputs";
|
|
175
|
+
failed: "failed";
|
|
176
|
+
complete: "complete";
|
|
177
|
+
}>>;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
export type CheckoutAutomaticTax = z.output<typeof checkoutAutomaticTaxSchema>;
|
|
180
|
+
export declare const checkoutConsentCollectionSchema: z.ZodObject<{
|
|
181
|
+
terms_of_service: z.ZodEnum<{
|
|
182
|
+
none: "none";
|
|
183
|
+
required: "required";
|
|
184
|
+
}>;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
export type CheckoutConsentCollection = z.output<typeof checkoutConsentCollectionSchema>;
|
|
187
|
+
export declare const checkoutConsentSchema: z.ZodObject<{
|
|
188
|
+
terms_of_service: z.ZodNullable<z.ZodLiteral<"accepted">>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export type CheckoutConsent = z.output<typeof checkoutConsentSchema>;
|
|
191
|
+
/** The collection options, as a session or link reports them. */
|
|
192
|
+
export declare const collectionResponseFields: {
|
|
193
|
+
billing_address_collection: z.ZodEnum<{
|
|
194
|
+
auto: "auto";
|
|
195
|
+
required: "required";
|
|
196
|
+
}>;
|
|
197
|
+
shipping_address_collection: z.ZodNullable<z.ZodObject<{
|
|
198
|
+
allowed_countries: z.ZodArray<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
phone_number_collection: z.ZodObject<{
|
|
201
|
+
enabled: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
tax_id_collection: z.ZodObject<{
|
|
204
|
+
enabled: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
custom_fields: z.ZodArray<z.ZodObject<{
|
|
207
|
+
key: z.ZodString;
|
|
208
|
+
label: z.ZodObject<{
|
|
209
|
+
type: z.ZodLiteral<"custom">;
|
|
210
|
+
custom: z.ZodString;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
type: z.ZodEnum<{
|
|
213
|
+
text: "text";
|
|
214
|
+
numeric: "numeric";
|
|
215
|
+
dropdown: "dropdown";
|
|
216
|
+
}>;
|
|
217
|
+
optional: z.ZodBoolean;
|
|
218
|
+
dropdown: z.ZodNullable<z.ZodObject<{
|
|
219
|
+
options: z.ZodArray<z.ZodObject<{
|
|
220
|
+
label: z.ZodString;
|
|
221
|
+
value: z.ZodString;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
value: z.ZodNullable<z.ZodString>;
|
|
224
|
+
}, z.core.$strict>>;
|
|
225
|
+
text: z.ZodNullable<z.ZodObject<{
|
|
226
|
+
minimum_length: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
maximum_length: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
value: z.ZodNullable<z.ZodString>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
numeric: z.ZodNullable<z.ZodObject<{
|
|
231
|
+
minimum_length: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
maximum_length: z.ZodNullable<z.ZodNumber>;
|
|
233
|
+
value: z.ZodNullable<z.ZodString>;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
consent_collection: z.ZodNullable<z.ZodObject<{
|
|
237
|
+
terms_of_service: z.ZodEnum<{
|
|
238
|
+
none: "none";
|
|
239
|
+
required: "required";
|
|
240
|
+
}>;
|
|
241
|
+
}, z.core.$strict>>;
|
|
242
|
+
};
|
|
243
|
+
/** The public, secret-free merchant identity a payer surface renders. */
|
|
244
|
+
export declare const merchantDisplaySchema: z.ZodObject<{
|
|
245
|
+
name: z.ZodString;
|
|
246
|
+
avatar_url: z.ZodNullable<z.ZodString>;
|
|
247
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
248
|
+
description: z.ZodNullable<z.ZodString>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
export type MerchantDisplay = z.output<typeof merchantDisplaySchema>;
|
|
251
|
+
/**
|
|
252
|
+
* Branding as a payer surface renders it: every field resolved (defaults
|
|
253
|
+
* filled in), the logo and icon as URLs the gateway built through Oxy's media
|
|
254
|
+
* chokepoint — a withheld file is `null`, never a broken image.
|
|
255
|
+
*/
|
|
256
|
+
export declare const checkoutBrandingSchema: z.ZodObject<{
|
|
257
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
258
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
259
|
+
primary_color: z.ZodString;
|
|
260
|
+
accent_color: z.ZodString;
|
|
261
|
+
font: z.ZodEnum<{
|
|
262
|
+
system: "system";
|
|
263
|
+
inter: "inter";
|
|
264
|
+
roboto: "roboto";
|
|
265
|
+
open_sans: "open_sans";
|
|
266
|
+
lato: "lato";
|
|
267
|
+
source_sans: "source_sans";
|
|
268
|
+
noto_sans: "noto_sans";
|
|
269
|
+
serif: "serif";
|
|
270
|
+
monospace: "monospace";
|
|
271
|
+
}>;
|
|
272
|
+
border_style: z.ZodEnum<{
|
|
273
|
+
rounded: "rounded";
|
|
274
|
+
rectangular: "rectangular";
|
|
275
|
+
pill: "pill";
|
|
276
|
+
}>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
export type CheckoutBranding = z.output<typeof checkoutBrandingSchema>;
|
|
279
|
+
export declare const checkoutIdParam: z.ZodString;
|
|
280
|
+
export declare const countryCodeParam: z.ZodString;
|
|
281
|
+
/** A base-unit amount in a request. */
|
|
282
|
+
export declare const amountParam: z.ZodString;
|
|
283
|
+
/**
|
|
284
|
+
* A redirect target. `https` only, except `http://localhost` for development —
|
|
285
|
+
* a payer is sent there after paying, so an `http` URL elsewhere would leak the
|
|
286
|
+
* session id in the clear. `{CHECKOUT_SESSION_ID}` may appear anywhere.
|
|
287
|
+
*/
|
|
288
|
+
export declare const redirectUrlParam: z.ZodString;
|
|
289
|
+
/** `auto` follows the payer's browser: parsed as `null`. */
|
|
290
|
+
export declare const localeParam: z.ZodPipe<z.ZodEnum<{
|
|
291
|
+
en: "en";
|
|
292
|
+
es: "es";
|
|
293
|
+
fr: "fr";
|
|
294
|
+
de: "de";
|
|
295
|
+
it: "it";
|
|
296
|
+
pt: "pt";
|
|
297
|
+
auto: "auto";
|
|
298
|
+
}>, z.ZodTransform<"en" | "es" | "fr" | "de" | "it" | "pt" | null, "en" | "es" | "fr" | "de" | "it" | "pt" | "auto">>;
|
|
299
|
+
export declare const checkoutEmailParam: z.ZodString;
|
|
300
|
+
declare const customFieldParam: z.ZodObject<{
|
|
301
|
+
key: z.ZodString;
|
|
302
|
+
label: z.ZodObject<{
|
|
303
|
+
type: z.ZodLiteral<"custom">;
|
|
304
|
+
custom: z.ZodString;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
type: z.ZodEnum<{
|
|
307
|
+
text: "text";
|
|
308
|
+
numeric: "numeric";
|
|
309
|
+
dropdown: "dropdown";
|
|
310
|
+
}>;
|
|
311
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
dropdown: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
options: z.ZodArray<z.ZodObject<{
|
|
314
|
+
label: z.ZodString;
|
|
315
|
+
value: z.ZodString;
|
|
316
|
+
}, z.core.$strict>>;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
text: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
numeric: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
}, z.core.$strict>;
|
|
327
|
+
export type CheckoutCustomFieldParams = z.input<typeof customFieldParam>;
|
|
328
|
+
/** At most three, keys unique. */
|
|
329
|
+
export declare const customFieldsParam: z.ZodArray<z.ZodObject<{
|
|
330
|
+
key: z.ZodString;
|
|
331
|
+
label: z.ZodObject<{
|
|
332
|
+
type: z.ZodLiteral<"custom">;
|
|
333
|
+
custom: z.ZodString;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
type: z.ZodEnum<{
|
|
336
|
+
text: "text";
|
|
337
|
+
numeric: "numeric";
|
|
338
|
+
dropdown: "dropdown";
|
|
339
|
+
}>;
|
|
340
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
dropdown: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
options: z.ZodArray<z.ZodObject<{
|
|
343
|
+
label: z.ZodString;
|
|
344
|
+
value: z.ZodString;
|
|
345
|
+
}, z.core.$strict>>;
|
|
346
|
+
}, z.core.$strict>>;
|
|
347
|
+
text: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
}, z.core.$strict>>;
|
|
351
|
+
numeric: z.ZodOptional<z.ZodObject<{
|
|
352
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
}, z.core.$strict>>;
|
|
355
|
+
}, z.core.$strict>>;
|
|
356
|
+
/** The collection options, as a request names them — shared by sessions and links. */
|
|
357
|
+
export declare const collectionParams: {
|
|
358
|
+
billing_address_collection: z.ZodOptional<z.ZodEnum<{
|
|
359
|
+
auto: "auto";
|
|
360
|
+
required: "required";
|
|
361
|
+
}>>;
|
|
362
|
+
shipping_address_collection: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
allowed_countries: z.ZodArray<z.ZodString>;
|
|
364
|
+
}, z.core.$strict>>;
|
|
365
|
+
phone_number_collection: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
enabled: z.ZodBoolean;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
tax_id_collection: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
enabled: z.ZodBoolean;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
consent_collection: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
terms_of_service: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
none: "none";
|
|
374
|
+
required: "required";
|
|
375
|
+
}>>;
|
|
376
|
+
}, z.core.$strict>>;
|
|
377
|
+
custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
378
|
+
key: z.ZodString;
|
|
379
|
+
label: z.ZodObject<{
|
|
380
|
+
type: z.ZodLiteral<"custom">;
|
|
381
|
+
custom: z.ZodString;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
type: z.ZodEnum<{
|
|
384
|
+
text: "text";
|
|
385
|
+
numeric: "numeric";
|
|
386
|
+
dropdown: "dropdown";
|
|
387
|
+
}>;
|
|
388
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
+
dropdown: z.ZodOptional<z.ZodObject<{
|
|
390
|
+
options: z.ZodArray<z.ZodObject<{
|
|
391
|
+
label: z.ZodString;
|
|
392
|
+
value: z.ZodString;
|
|
393
|
+
}, z.core.$strict>>;
|
|
394
|
+
}, z.core.$strict>>;
|
|
395
|
+
text: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
397
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
}, z.core.$strict>>;
|
|
399
|
+
numeric: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
minimum_length: z.ZodOptional<z.ZodNumber>;
|
|
401
|
+
maximum_length: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
}, z.core.$strict>>>;
|
|
404
|
+
};
|
|
405
|
+
export declare const adjustableQuantityParam: z.ZodObject<{
|
|
406
|
+
enabled: z.ZodBoolean;
|
|
407
|
+
minimum: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
maximum: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
}, z.core.$strict>;
|
|
410
|
+
export type AdjustableQuantityParams = z.output<typeof adjustableQuantityParam>;
|
|
411
|
+
export declare const quantityParam: z.ZodNumber;
|
|
412
|
+
/** Stripe's defaults: 0–99 when enabled. */
|
|
413
|
+
export declare function adjustableBoundsOf(adjustable: AdjustableQuantityParams | undefined): {
|
|
414
|
+
minimum: number;
|
|
415
|
+
maximum: number;
|
|
416
|
+
} | null;
|
|
417
|
+
/** The refusals of a line's `quantity` against its `adjustable_quantity`. */
|
|
418
|
+
export declare function adjustableIssues(quantity: number, adjustable: AdjustableQuantityParams | undefined, ctx: z.RefinementCtx): void;
|
|
419
|
+
export {};
|