@peable.to/contracts 1.1.0 → 2.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/resources/catalog/billing.js +21 -23
- package/dist/cjs/resources/tax/calculations.js +33 -30
- package/dist/cjs/resources/tax/reports.js +4 -4
- package/dist/cjs/resources/tax/shared.js +7 -11
- package/dist/cjs/resources/tax/transactions.js +7 -10
- package/dist/cjs/vocabulary/money.js +1 -1
- package/dist/cjs/vocabulary/paymentMethodConfigurations.js +17 -1
- package/dist/esm/resources/catalog/billing.js +21 -23
- package/dist/esm/resources/tax/calculations.js +29 -26
- package/dist/esm/resources/tax/reports.js +6 -6
- package/dist/esm/resources/tax/shared.js +6 -10
- package/dist/esm/resources/tax/transactions.js +8 -11
- package/dist/esm/vocabulary/money.js +1 -1
- package/dist/esm/vocabulary/paymentMethodConfigurations.js +16 -0
- package/dist/types/resources/catalog/billing.d.ts +64 -64
- package/dist/types/resources/catalog/index.d.ts +29 -29
- package/dist/types/resources/checkout/checkoutSessions.d.ts +4 -4
- package/dist/types/resources/checkout/index.d.ts +3 -3
- package/dist/types/resources/tax/calculations.d.ts +37 -37
- package/dist/types/resources/tax/index.d.ts +56 -56
- package/dist/types/resources/tax/reports.d.ts +6 -6
- package/dist/types/resources/tax/shared.d.ts +6 -7
- package/dist/types/resources/tax/transactions.d.ts +61 -61
- package/dist/types/vocabulary/money.d.ts +1 -1
- package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +7 -0
- package/package.json +16 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineComponent, defineObject } from '../../common/objects.js';
|
|
3
3
|
import { queryUnixSeconds } from '../../common/params.js';
|
|
4
|
-
import { nullableString, unixSeconds } from '../../common/primitives.js';
|
|
4
|
+
import { nullableString, signedAmount, unixSeconds } from '../../common/primitives.js';
|
|
5
5
|
import { defineRoute } from '../../route.js';
|
|
6
6
|
import { TAX_COLLECTIONS, TAX_REGISTRATION_SCHEMES } from '../../vocabulary/tax.js';
|
|
7
|
-
import { taxCountry,
|
|
7
|
+
import { taxCountry, taxState } from './shared.js';
|
|
8
8
|
/**
|
|
9
9
|
* The Peable Tax summary report: totals per jurisdiction, registration, tax
|
|
10
10
|
* type and rate — the lines a return (an OSS return, a state filing) is
|
|
@@ -23,8 +23,8 @@ export const taxReportRowSchema = defineComponent('TaxReportRow', z
|
|
|
23
23
|
currency: z.string().describe('Uppercase ISO 4217.'),
|
|
24
24
|
transactions: z.number().int().nonnegative(),
|
|
25
25
|
reversals: z.number().int().nonnegative().describe('Reversals netted into this row.'),
|
|
26
|
-
taxable_amount:
|
|
27
|
-
tax_amount:
|
|
26
|
+
taxable_amount: signedAmount,
|
|
27
|
+
tax_amount: signedAmount,
|
|
28
28
|
})
|
|
29
29
|
.strict());
|
|
30
30
|
export const taxReportSchema = defineObject('tax.report', 'TaxReport', z
|
|
@@ -52,8 +52,8 @@ export const taxReportSchema = defineObject('tax.report', 'TaxReport', z
|
|
|
52
52
|
currency: 'EUR',
|
|
53
53
|
transactions: 42,
|
|
54
54
|
reversals: 1,
|
|
55
|
-
taxable_amount: 41000,
|
|
56
|
-
tax_amount: 7790,
|
|
55
|
+
taxable_amount: '41000',
|
|
56
|
+
tax_amount: '7790',
|
|
57
57
|
},
|
|
58
58
|
],
|
|
59
59
|
},
|
|
@@ -4,11 +4,12 @@ import { unixSecondsParam } from '../../common/params.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* Building blocks every Peable Tax resource shares.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* Every tax amount — a calculation's, a transaction's, a reversal's, a report
|
|
8
|
+
* row's, a compliance measure's — is a base-unit integer STRING of its
|
|
9
|
+
* `currency`, as ADR 0014 D1 has it for every amount on the wire: `amount`
|
|
10
|
+
* where it cannot be negative, `signedAmount` where a reversal makes it so
|
|
11
|
+
* (a line item and its breakdown carry a reversal's negative share, and a
|
|
12
|
+
* report row nets them in).
|
|
12
13
|
*/
|
|
13
14
|
/** ISO 3166-1 alpha-2, as returned. */
|
|
14
15
|
export const taxCountry = z.string().describe('ISO 3166-1 alpha-2.');
|
|
@@ -17,11 +18,6 @@ export const taxState = z
|
|
|
17
18
|
.string()
|
|
18
19
|
.nullable()
|
|
19
20
|
.describe('ISO 3166-2 subdivision without the country prefix (`CA`, `QC`).');
|
|
20
|
-
/** A minor-unit integer amount (cents), signed: a reversal's amounts are negative. */
|
|
21
|
-
export const taxMinorAmount = z
|
|
22
|
-
.number()
|
|
23
|
-
.int()
|
|
24
|
-
.describe('Minor units of `currency` (cents), as an integer.');
|
|
25
21
|
/** A Peable-side reference: a product, a customer, a refund. */
|
|
26
22
|
export const taxReferenceParam = z
|
|
27
23
|
.string()
|
|
@@ -2,11 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
import { listOf } from '../../common/envelopes.js';
|
|
3
3
|
import { defineComponent, defineObject } from '../../common/objects.js';
|
|
4
4
|
import { listQuery } from '../../common/params.js';
|
|
5
|
-
import { nullableString, unixSeconds } from '../../common/primitives.js';
|
|
5
|
+
import { nullableString, signedAmount, unixSeconds } from '../../common/primitives.js';
|
|
6
6
|
import { defineRoute } from '../../route.js';
|
|
7
7
|
import { TAX_TRANSACTION_TYPES } from '../../vocabulary/tax.js';
|
|
8
|
+
import { baseUnitAmountParam } from '../catalog/shared.js';
|
|
8
9
|
import { taxCalculationLineItemSchema, taxCalculationSchema } from './calculations.js';
|
|
9
|
-
import { taxMinorAmount } from './shared.js';
|
|
10
10
|
/**
|
|
11
11
|
* A tax transaction (`taxtxn_…`, ADR 0011/0013): a calculation that was paid,
|
|
12
12
|
* created by Peable when the payment it priced is accepted on its rail. The
|
|
@@ -21,9 +21,9 @@ import { taxMinorAmount } from './shared.js';
|
|
|
21
21
|
*/
|
|
22
22
|
export const taxTransactionReversalSchema = defineComponent('TaxTransactionReversal', z
|
|
23
23
|
.object({
|
|
24
|
-
amount_total:
|
|
25
|
-
amount_net:
|
|
26
|
-
tax_amount:
|
|
24
|
+
amount_total: signedAmount,
|
|
25
|
+
amount_net: signedAmount,
|
|
26
|
+
tax_amount: signedAmount,
|
|
27
27
|
line_items: z.array(taxCalculationLineItemSchema),
|
|
28
28
|
})
|
|
29
29
|
.strict());
|
|
@@ -56,13 +56,10 @@ export const createTaxReversalParams = z
|
|
|
56
56
|
.max(200)
|
|
57
57
|
.regex(/^[A-Za-z0-9_.:-]+$/)
|
|
58
58
|
.describe("The refund's own reference; a repeated reference returns the same reversal."),
|
|
59
|
-
amount:
|
|
60
|
-
.
|
|
61
|
-
.int()
|
|
62
|
-
.positive()
|
|
63
|
-
.safe()
|
|
59
|
+
amount: baseUnitAmountParam
|
|
60
|
+
.refine((value) => value !== '0', 'must be positive')
|
|
64
61
|
.optional()
|
|
65
|
-
.describe('Gross
|
|
62
|
+
.describe('Gross base units refunded (what the payer got back). Omitted: everything not yet reversed.'),
|
|
66
63
|
})
|
|
67
64
|
.strict();
|
|
68
65
|
export const taxTransactionRoutes = [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* chain rail, and on the card rail the fiat set the provider settles for the
|
|
11
11
|
* payment methods Orbit offers (cards, wallets, SEPA Debit, iDEAL, Bancontact,
|
|
12
12
|
* EPS). A local method narrows it further per payment
|
|
13
|
-
* (`PAYMENT_METHOD_CURRENCIES` in `
|
|
13
|
+
* (`PAYMENT_METHOD_CURRENCIES` in `paymentMethodConfigurations.ts`).
|
|
14
14
|
*
|
|
15
15
|
* A closed set, and the database mirrors it as a CHECK
|
|
16
16
|
* (`db/schema/valueSets.ts`). ADR 0001 D4: the scale of an amount is a property
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Payment method breadth on the card rail (`pmc_…`, `pmd_…`). Zod-free.
|
|
2
|
+
import { FIAT_CURRENCY_CODES } from './money.js';
|
|
2
3
|
/**
|
|
3
4
|
* The methods a configuration can turn on.
|
|
4
5
|
*
|
|
@@ -31,3 +32,18 @@ export const PAYMENT_METHOD_UNAVAILABLE_REASONS = [
|
|
|
31
32
|
'provider_unsupported',
|
|
32
33
|
'requires_card',
|
|
33
34
|
];
|
|
35
|
+
/**
|
|
36
|
+
* The currencies each method can take a payment in. A method is offered on a
|
|
37
|
+
* payment only when its currency is listed — so iDEAL never appears on a USD
|
|
38
|
+
* payment, and a payer is never shown a method that would fail.
|
|
39
|
+
*/
|
|
40
|
+
export const PAYMENT_METHOD_CURRENCIES = Object.freeze({
|
|
41
|
+
card: FIAT_CURRENCY_CODES,
|
|
42
|
+
apple_pay: FIAT_CURRENCY_CODES,
|
|
43
|
+
google_pay: FIAT_CURRENCY_CODES,
|
|
44
|
+
sepa_debit: ['EUR'],
|
|
45
|
+
ideal: ['EUR'],
|
|
46
|
+
bancontact: ['EUR'],
|
|
47
|
+
eps: ['EUR'],
|
|
48
|
+
bizum: ['EUR'],
|
|
49
|
+
});
|
|
@@ -41,7 +41,7 @@ export declare const billingRailOfferSchema: z.ZodObject<{
|
|
|
41
41
|
year: "year";
|
|
42
42
|
}>;
|
|
43
43
|
currency: z.ZodString;
|
|
44
|
-
gross_minor_units: z.
|
|
44
|
+
gross_minor_units: z.ZodString;
|
|
45
45
|
tax_treatment: z.ZodEnum<{
|
|
46
46
|
inclusive: "inclusive";
|
|
47
47
|
exclusive: "exclusive";
|
|
@@ -74,7 +74,7 @@ export declare const billingRailOptionSchema: z.ZodObject<{
|
|
|
74
74
|
year: "year";
|
|
75
75
|
}>;
|
|
76
76
|
currency: z.ZodString;
|
|
77
|
-
gross_minor_units: z.
|
|
77
|
+
gross_minor_units: z.ZodString;
|
|
78
78
|
tax_treatment: z.ZodEnum<{
|
|
79
79
|
inclusive: "inclusive";
|
|
80
80
|
exclusive: "exclusive";
|
|
@@ -105,7 +105,7 @@ export declare const billingRailListSchema: z.ZodObject<{
|
|
|
105
105
|
year: "year";
|
|
106
106
|
}>;
|
|
107
107
|
currency: z.ZodString;
|
|
108
|
-
gross_minor_units: z.
|
|
108
|
+
gross_minor_units: z.ZodString;
|
|
109
109
|
tax_treatment: z.ZodEnum<{
|
|
110
110
|
inclusive: "inclusive";
|
|
111
111
|
exclusive: "exclusive";
|
|
@@ -136,9 +136,9 @@ export declare const createBillingTaxQuoteParams: z.ZodObject<{
|
|
|
136
136
|
customer_location_evidence_id: z.ZodString;
|
|
137
137
|
}, z.core.$strict>;
|
|
138
138
|
export type CreateBillingTaxQuoteParams = z.input<typeof createBillingTaxQuoteParams>;
|
|
139
|
-
/** A signed, immutable, single-use Peable Tax quote (schema version
|
|
139
|
+
/** A signed, immutable, single-use Peable Tax quote (schema version 3). */
|
|
140
140
|
export declare const billingTaxQuoteSchema: z.ZodObject<{
|
|
141
|
-
schema_version: z.ZodLiteral<
|
|
141
|
+
schema_version: z.ZodLiteral<3>;
|
|
142
142
|
source: z.ZodObject<{
|
|
143
143
|
merchant_id: z.ZodString;
|
|
144
144
|
app_id: z.ZodString;
|
|
@@ -157,9 +157,9 @@ export declare const billingTaxQuoteSchema: z.ZodObject<{
|
|
|
157
157
|
quote: z.ZodObject<{
|
|
158
158
|
id: z.ZodString;
|
|
159
159
|
currency: z.ZodString;
|
|
160
|
-
gross_minor_units: z.
|
|
161
|
-
net_minor_units: z.
|
|
162
|
-
tax_minor_units: z.
|
|
160
|
+
gross_minor_units: z.ZodString;
|
|
161
|
+
net_minor_units: z.ZodString;
|
|
162
|
+
tax_minor_units: z.ZodString;
|
|
163
163
|
tax_treatment: z.ZodEnum<{
|
|
164
164
|
inclusive: "inclusive";
|
|
165
165
|
exclusive: "exclusive";
|
|
@@ -188,7 +188,7 @@ export declare const createBillingCheckoutParams: z.ZodObject<{
|
|
|
188
188
|
provider_price_id: z.ZodString;
|
|
189
189
|
trial_days: z.ZodNumber;
|
|
190
190
|
tax_quote: z.ZodOptional<z.ZodObject<{
|
|
191
|
-
schema_version: z.ZodLiteral<
|
|
191
|
+
schema_version: z.ZodLiteral<3>;
|
|
192
192
|
source: z.ZodObject<{
|
|
193
193
|
merchant_id: z.ZodString;
|
|
194
194
|
app_id: z.ZodString;
|
|
@@ -207,9 +207,9 @@ export declare const createBillingCheckoutParams: z.ZodObject<{
|
|
|
207
207
|
quote: z.ZodObject<{
|
|
208
208
|
id: z.ZodString;
|
|
209
209
|
currency: z.ZodString;
|
|
210
|
-
gross_minor_units: z.
|
|
211
|
-
net_minor_units: z.
|
|
212
|
-
tax_minor_units: z.
|
|
210
|
+
gross_minor_units: z.ZodString;
|
|
211
|
+
net_minor_units: z.ZodString;
|
|
212
|
+
tax_minor_units: z.ZodString;
|
|
213
213
|
tax_treatment: z.ZodEnum<{
|
|
214
214
|
inclusive: "inclusive";
|
|
215
215
|
exclusive: "exclusive";
|
|
@@ -298,7 +298,7 @@ export declare const billingEmbeddedCheckoutActionSchema: z.ZodObject<{
|
|
|
298
298
|
session_id: z.ZodString;
|
|
299
299
|
client_secret: z.ZodString;
|
|
300
300
|
publishable_key: z.ZodString;
|
|
301
|
-
amount_minor_units: z.
|
|
301
|
+
amount_minor_units: z.ZodString;
|
|
302
302
|
currency: z.ZodString;
|
|
303
303
|
}, z.core.$strict>;
|
|
304
304
|
export type BillingEmbeddedCheckoutAction = z.output<typeof billingEmbeddedCheckoutActionSchema>;
|
|
@@ -314,7 +314,7 @@ export declare const billingEmbeddedCheckoutBindingSchema: z.ZodObject<{
|
|
|
314
314
|
session_id: z.ZodString;
|
|
315
315
|
client_secret: z.ZodString;
|
|
316
316
|
publishable_key: z.ZodString;
|
|
317
|
-
amount_minor_units: z.
|
|
317
|
+
amount_minor_units: z.ZodString;
|
|
318
318
|
currency: z.ZodString;
|
|
319
319
|
}, z.core.$strict>>;
|
|
320
320
|
scope: z.ZodObject<{
|
|
@@ -335,7 +335,7 @@ export declare const billingEmbeddedCheckoutBindingSchema: z.ZodObject<{
|
|
|
335
335
|
provider_price_id: z.ZodString;
|
|
336
336
|
}, z.core.$strict>;
|
|
337
337
|
tax_quote: z.ZodObject<{
|
|
338
|
-
schema_version: z.ZodLiteral<
|
|
338
|
+
schema_version: z.ZodLiteral<3>;
|
|
339
339
|
source: z.ZodObject<{
|
|
340
340
|
merchant_id: z.ZodString;
|
|
341
341
|
app_id: z.ZodString;
|
|
@@ -354,9 +354,9 @@ export declare const billingEmbeddedCheckoutBindingSchema: z.ZodObject<{
|
|
|
354
354
|
quote: z.ZodObject<{
|
|
355
355
|
id: z.ZodString;
|
|
356
356
|
currency: z.ZodString;
|
|
357
|
-
gross_minor_units: z.
|
|
358
|
-
net_minor_units: z.
|
|
359
|
-
tax_minor_units: z.
|
|
357
|
+
gross_minor_units: z.ZodString;
|
|
358
|
+
net_minor_units: z.ZodString;
|
|
359
|
+
tax_minor_units: z.ZodString;
|
|
360
360
|
tax_treatment: z.ZodEnum<{
|
|
361
361
|
inclusive: "inclusive";
|
|
362
362
|
exclusive: "exclusive";
|
|
@@ -608,8 +608,8 @@ export declare const billingInvoiceTaxLineSchema: z.ZodObject<{
|
|
|
608
608
|
state: z.ZodNullable<z.ZodString>;
|
|
609
609
|
tax_type: z.ZodNullable<z.ZodString>;
|
|
610
610
|
rate_percentage: z.ZodNullable<z.ZodString>;
|
|
611
|
-
taxable_minor_units: z.
|
|
612
|
-
tax_minor_units: z.
|
|
611
|
+
taxable_minor_units: z.ZodString;
|
|
612
|
+
tax_minor_units: z.ZodString;
|
|
613
613
|
inclusive: z.ZodBoolean;
|
|
614
614
|
taxability_reason: z.ZodString;
|
|
615
615
|
}, z.core.$strict>;
|
|
@@ -642,10 +642,10 @@ export type BillingInvoiceAuthoritySource = z.output<typeof billingInvoiceAuthor
|
|
|
642
642
|
export declare const billingFinalInvoiceSchema: z.ZodObject<{
|
|
643
643
|
platform: z.ZodLiteral<"peable">;
|
|
644
644
|
currency: z.ZodString;
|
|
645
|
-
gross_minor_units: z.
|
|
646
|
-
net_minor_units: z.
|
|
647
|
-
tax_minor_units: z.
|
|
648
|
-
merchant_fee_minor_units: z.
|
|
645
|
+
gross_minor_units: z.ZodString;
|
|
646
|
+
net_minor_units: z.ZodString;
|
|
647
|
+
tax_minor_units: z.ZodString;
|
|
648
|
+
merchant_fee_minor_units: z.ZodString;
|
|
649
649
|
tax_treatment: z.ZodEnum<{
|
|
650
650
|
inclusive: "inclusive";
|
|
651
651
|
exclusive: "exclusive";
|
|
@@ -688,16 +688,16 @@ export declare const billingFinalInvoiceSchema: z.ZodObject<{
|
|
|
688
688
|
state: z.ZodNullable<z.ZodString>;
|
|
689
689
|
tax_type: z.ZodNullable<z.ZodString>;
|
|
690
690
|
rate_percentage: z.ZodNullable<z.ZodString>;
|
|
691
|
-
taxable_minor_units: z.
|
|
692
|
-
tax_minor_units: z.
|
|
691
|
+
taxable_minor_units: z.ZodString;
|
|
692
|
+
tax_minor_units: z.ZodString;
|
|
693
693
|
inclusive: z.ZodBoolean;
|
|
694
694
|
taxability_reason: z.ZodString;
|
|
695
695
|
}, z.core.$strict>>>;
|
|
696
696
|
}, z.core.$strict>;
|
|
697
697
|
export type BillingFinalInvoice = z.output<typeof billingFinalInvoiceSchema>;
|
|
698
|
-
/** A signed final invoice authority (schema version
|
|
698
|
+
/** A signed final invoice authority (schema version 3). Verify it against the pinned keys. */
|
|
699
699
|
export declare const billingFinalInvoiceAuthoritySchema: z.ZodObject<{
|
|
700
|
-
schema_version: z.ZodLiteral<
|
|
700
|
+
schema_version: z.ZodLiteral<3>;
|
|
701
701
|
source: z.ZodObject<{
|
|
702
702
|
invoice_id: z.ZodString;
|
|
703
703
|
payment_intent_id: z.ZodString;
|
|
@@ -720,10 +720,10 @@ export declare const billingFinalInvoiceAuthoritySchema: z.ZodObject<{
|
|
|
720
720
|
invoice: z.ZodObject<{
|
|
721
721
|
platform: z.ZodLiteral<"peable">;
|
|
722
722
|
currency: z.ZodString;
|
|
723
|
-
gross_minor_units: z.
|
|
724
|
-
net_minor_units: z.
|
|
725
|
-
tax_minor_units: z.
|
|
726
|
-
merchant_fee_minor_units: z.
|
|
723
|
+
gross_minor_units: z.ZodString;
|
|
724
|
+
net_minor_units: z.ZodString;
|
|
725
|
+
tax_minor_units: z.ZodString;
|
|
726
|
+
merchant_fee_minor_units: z.ZodString;
|
|
727
727
|
tax_treatment: z.ZodEnum<{
|
|
728
728
|
inclusive: "inclusive";
|
|
729
729
|
exclusive: "exclusive";
|
|
@@ -766,8 +766,8 @@ export declare const billingFinalInvoiceAuthoritySchema: z.ZodObject<{
|
|
|
766
766
|
state: z.ZodNullable<z.ZodString>;
|
|
767
767
|
tax_type: z.ZodNullable<z.ZodString>;
|
|
768
768
|
rate_percentage: z.ZodNullable<z.ZodString>;
|
|
769
|
-
taxable_minor_units: z.
|
|
770
|
-
tax_minor_units: z.
|
|
769
|
+
taxable_minor_units: z.ZodString;
|
|
770
|
+
tax_minor_units: z.ZodString;
|
|
771
771
|
inclusive: z.ZodBoolean;
|
|
772
772
|
taxability_reason: z.ZodString;
|
|
773
773
|
}, z.core.$strict>>>;
|
|
@@ -860,7 +860,7 @@ export type BillingFaircoinRenewalChoice = z.output<typeof billingFaircoinRenewa
|
|
|
860
860
|
export declare const billingFaircoinFxQuoteSchema: z.ZodObject<{
|
|
861
861
|
id: z.ZodString;
|
|
862
862
|
currency: z.ZodLiteral<"USD">;
|
|
863
|
-
gross_minor_units: z.
|
|
863
|
+
gross_minor_units: z.ZodString;
|
|
864
864
|
amount_base_units: z.ZodString;
|
|
865
865
|
usd_per_fair: z.ZodString;
|
|
866
866
|
source: z.ZodString;
|
|
@@ -903,7 +903,7 @@ export declare const billingRoutes: readonly [{
|
|
|
903
903
|
year: "year";
|
|
904
904
|
}>;
|
|
905
905
|
currency: z.ZodString;
|
|
906
|
-
gross_minor_units: z.
|
|
906
|
+
gross_minor_units: z.ZodString;
|
|
907
907
|
tax_treatment: z.ZodEnum<{
|
|
908
908
|
inclusive: "inclusive";
|
|
909
909
|
exclusive: "exclusive";
|
|
@@ -929,7 +929,7 @@ export declare const billingRoutes: readonly [{
|
|
|
929
929
|
customer_location_evidence_id: z.ZodString;
|
|
930
930
|
}, z.core.$strict>;
|
|
931
931
|
readonly response: z.ZodObject<{
|
|
932
|
-
schema_version: z.ZodLiteral<
|
|
932
|
+
schema_version: z.ZodLiteral<3>;
|
|
933
933
|
source: z.ZodObject<{
|
|
934
934
|
merchant_id: z.ZodString;
|
|
935
935
|
app_id: z.ZodString;
|
|
@@ -948,9 +948,9 @@ export declare const billingRoutes: readonly [{
|
|
|
948
948
|
quote: z.ZodObject<{
|
|
949
949
|
id: z.ZodString;
|
|
950
950
|
currency: z.ZodString;
|
|
951
|
-
gross_minor_units: z.
|
|
952
|
-
net_minor_units: z.
|
|
953
|
-
tax_minor_units: z.
|
|
951
|
+
gross_minor_units: z.ZodString;
|
|
952
|
+
net_minor_units: z.ZodString;
|
|
953
|
+
tax_minor_units: z.ZodString;
|
|
954
954
|
tax_treatment: z.ZodEnum<{
|
|
955
955
|
inclusive: "inclusive";
|
|
956
956
|
exclusive: "exclusive";
|
|
@@ -1006,7 +1006,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1006
1006
|
provider_price_id: z.ZodString;
|
|
1007
1007
|
trial_days: z.ZodNumber;
|
|
1008
1008
|
tax_quote: z.ZodOptional<z.ZodObject<{
|
|
1009
|
-
schema_version: z.ZodLiteral<
|
|
1009
|
+
schema_version: z.ZodLiteral<3>;
|
|
1010
1010
|
source: z.ZodObject<{
|
|
1011
1011
|
merchant_id: z.ZodString;
|
|
1012
1012
|
app_id: z.ZodString;
|
|
@@ -1025,9 +1025,9 @@ export declare const billingRoutes: readonly [{
|
|
|
1025
1025
|
quote: z.ZodObject<{
|
|
1026
1026
|
id: z.ZodString;
|
|
1027
1027
|
currency: z.ZodString;
|
|
1028
|
-
gross_minor_units: z.
|
|
1029
|
-
net_minor_units: z.
|
|
1030
|
-
tax_minor_units: z.
|
|
1028
|
+
gross_minor_units: z.ZodString;
|
|
1029
|
+
net_minor_units: z.ZodString;
|
|
1030
|
+
tax_minor_units: z.ZodString;
|
|
1031
1031
|
tax_treatment: z.ZodEnum<{
|
|
1032
1032
|
inclusive: "inclusive";
|
|
1033
1033
|
exclusive: "exclusive";
|
|
@@ -1103,7 +1103,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1103
1103
|
provider_price_id: z.ZodString;
|
|
1104
1104
|
trial_days: z.ZodNumber;
|
|
1105
1105
|
tax_quote: z.ZodOptional<z.ZodObject<{
|
|
1106
|
-
schema_version: z.ZodLiteral<
|
|
1106
|
+
schema_version: z.ZodLiteral<3>;
|
|
1107
1107
|
source: z.ZodObject<{
|
|
1108
1108
|
merchant_id: z.ZodString;
|
|
1109
1109
|
app_id: z.ZodString;
|
|
@@ -1122,9 +1122,9 @@ export declare const billingRoutes: readonly [{
|
|
|
1122
1122
|
quote: z.ZodObject<{
|
|
1123
1123
|
id: z.ZodString;
|
|
1124
1124
|
currency: z.ZodString;
|
|
1125
|
-
gross_minor_units: z.
|
|
1126
|
-
net_minor_units: z.
|
|
1127
|
-
tax_minor_units: z.
|
|
1125
|
+
gross_minor_units: z.ZodString;
|
|
1126
|
+
net_minor_units: z.ZodString;
|
|
1127
|
+
tax_minor_units: z.ZodString;
|
|
1128
1128
|
tax_treatment: z.ZodEnum<{
|
|
1129
1129
|
inclusive: "inclusive";
|
|
1130
1130
|
exclusive: "exclusive";
|
|
@@ -1180,7 +1180,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1180
1180
|
session_id: z.ZodString;
|
|
1181
1181
|
client_secret: z.ZodString;
|
|
1182
1182
|
publishable_key: z.ZodString;
|
|
1183
|
-
amount_minor_units: z.
|
|
1183
|
+
amount_minor_units: z.ZodString;
|
|
1184
1184
|
currency: z.ZodString;
|
|
1185
1185
|
}, z.core.$strict>>;
|
|
1186
1186
|
scope: z.ZodObject<{
|
|
@@ -1201,7 +1201,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1201
1201
|
provider_price_id: z.ZodString;
|
|
1202
1202
|
}, z.core.$strict>;
|
|
1203
1203
|
tax_quote: z.ZodObject<{
|
|
1204
|
-
schema_version: z.ZodLiteral<
|
|
1204
|
+
schema_version: z.ZodLiteral<3>;
|
|
1205
1205
|
source: z.ZodObject<{
|
|
1206
1206
|
merchant_id: z.ZodString;
|
|
1207
1207
|
app_id: z.ZodString;
|
|
@@ -1220,9 +1220,9 @@ export declare const billingRoutes: readonly [{
|
|
|
1220
1220
|
quote: z.ZodObject<{
|
|
1221
1221
|
id: z.ZodString;
|
|
1222
1222
|
currency: z.ZodString;
|
|
1223
|
-
gross_minor_units: z.
|
|
1224
|
-
net_minor_units: z.
|
|
1225
|
-
tax_minor_units: z.
|
|
1223
|
+
gross_minor_units: z.ZodString;
|
|
1224
|
+
net_minor_units: z.ZodString;
|
|
1225
|
+
tax_minor_units: z.ZodString;
|
|
1226
1226
|
tax_treatment: z.ZodEnum<{
|
|
1227
1227
|
inclusive: "inclusive";
|
|
1228
1228
|
exclusive: "exclusive";
|
|
@@ -1407,7 +1407,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1407
1407
|
include: z.ZodOptional<z.ZodLiteral<"tax_lines">>;
|
|
1408
1408
|
}, z.core.$strip>;
|
|
1409
1409
|
readonly response: z.ZodObject<{
|
|
1410
|
-
schema_version: z.ZodLiteral<
|
|
1410
|
+
schema_version: z.ZodLiteral<3>;
|
|
1411
1411
|
source: z.ZodObject<{
|
|
1412
1412
|
invoice_id: z.ZodString;
|
|
1413
1413
|
payment_intent_id: z.ZodString;
|
|
@@ -1430,10 +1430,10 @@ export declare const billingRoutes: readonly [{
|
|
|
1430
1430
|
invoice: z.ZodObject<{
|
|
1431
1431
|
platform: z.ZodLiteral<"peable">;
|
|
1432
1432
|
currency: z.ZodString;
|
|
1433
|
-
gross_minor_units: z.
|
|
1434
|
-
net_minor_units: z.
|
|
1435
|
-
tax_minor_units: z.
|
|
1436
|
-
merchant_fee_minor_units: z.
|
|
1433
|
+
gross_minor_units: z.ZodString;
|
|
1434
|
+
net_minor_units: z.ZodString;
|
|
1435
|
+
tax_minor_units: z.ZodString;
|
|
1436
|
+
merchant_fee_minor_units: z.ZodString;
|
|
1437
1437
|
tax_treatment: z.ZodEnum<{
|
|
1438
1438
|
inclusive: "inclusive";
|
|
1439
1439
|
exclusive: "exclusive";
|
|
@@ -1476,8 +1476,8 @@ export declare const billingRoutes: readonly [{
|
|
|
1476
1476
|
state: z.ZodNullable<z.ZodString>;
|
|
1477
1477
|
tax_type: z.ZodNullable<z.ZodString>;
|
|
1478
1478
|
rate_percentage: z.ZodNullable<z.ZodString>;
|
|
1479
|
-
taxable_minor_units: z.
|
|
1480
|
-
tax_minor_units: z.
|
|
1479
|
+
taxable_minor_units: z.ZodString;
|
|
1480
|
+
tax_minor_units: z.ZodString;
|
|
1481
1481
|
inclusive: z.ZodBoolean;
|
|
1482
1482
|
taxability_reason: z.ZodString;
|
|
1483
1483
|
}, z.core.$strict>>>;
|
|
@@ -1624,7 +1624,7 @@ export declare const billingRoutes: readonly [{
|
|
|
1624
1624
|
provider_price_id: z.ZodString;
|
|
1625
1625
|
trial_days: z.ZodNumber;
|
|
1626
1626
|
tax_quote: z.ZodOptional<z.ZodObject<{
|
|
1627
|
-
schema_version: z.ZodLiteral<
|
|
1627
|
+
schema_version: z.ZodLiteral<3>;
|
|
1628
1628
|
source: z.ZodObject<{
|
|
1629
1629
|
merchant_id: z.ZodString;
|
|
1630
1630
|
app_id: z.ZodString;
|
|
@@ -1643,9 +1643,9 @@ export declare const billingRoutes: readonly [{
|
|
|
1643
1643
|
quote: z.ZodObject<{
|
|
1644
1644
|
id: z.ZodString;
|
|
1645
1645
|
currency: z.ZodString;
|
|
1646
|
-
gross_minor_units: z.
|
|
1647
|
-
net_minor_units: z.
|
|
1648
|
-
tax_minor_units: z.
|
|
1646
|
+
gross_minor_units: z.ZodString;
|
|
1647
|
+
net_minor_units: z.ZodString;
|
|
1648
|
+
tax_minor_units: z.ZodString;
|
|
1649
1649
|
tax_treatment: z.ZodEnum<{
|
|
1650
1650
|
inclusive: "inclusive";
|
|
1651
1651
|
exclusive: "exclusive";
|
|
@@ -2335,7 +2335,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2335
2335
|
year: "year";
|
|
2336
2336
|
}>;
|
|
2337
2337
|
currency: import("zod").ZodString;
|
|
2338
|
-
gross_minor_units: import("zod").
|
|
2338
|
+
gross_minor_units: import("zod").ZodString;
|
|
2339
2339
|
tax_treatment: import("zod").ZodEnum<{
|
|
2340
2340
|
inclusive: "inclusive";
|
|
2341
2341
|
exclusive: "exclusive";
|
|
@@ -2361,7 +2361,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2361
2361
|
customer_location_evidence_id: import("zod").ZodString;
|
|
2362
2362
|
}, import("zod/v4/core").$strict>;
|
|
2363
2363
|
readonly response: import("zod").ZodObject<{
|
|
2364
|
-
schema_version: import("zod").ZodLiteral<
|
|
2364
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
2365
2365
|
source: import("zod").ZodObject<{
|
|
2366
2366
|
merchant_id: import("zod").ZodString;
|
|
2367
2367
|
app_id: import("zod").ZodString;
|
|
@@ -2380,9 +2380,9 @@ export declare const catalogRoutes: readonly [{
|
|
|
2380
2380
|
quote: import("zod").ZodObject<{
|
|
2381
2381
|
id: import("zod").ZodString;
|
|
2382
2382
|
currency: import("zod").ZodString;
|
|
2383
|
-
gross_minor_units: import("zod").
|
|
2384
|
-
net_minor_units: import("zod").
|
|
2385
|
-
tax_minor_units: import("zod").
|
|
2383
|
+
gross_minor_units: import("zod").ZodString;
|
|
2384
|
+
net_minor_units: import("zod").ZodString;
|
|
2385
|
+
tax_minor_units: import("zod").ZodString;
|
|
2386
2386
|
tax_treatment: import("zod").ZodEnum<{
|
|
2387
2387
|
inclusive: "inclusive";
|
|
2388
2388
|
exclusive: "exclusive";
|
|
@@ -2438,7 +2438,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2438
2438
|
provider_price_id: import("zod").ZodString;
|
|
2439
2439
|
trial_days: import("zod").ZodNumber;
|
|
2440
2440
|
tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2441
|
-
schema_version: import("zod").ZodLiteral<
|
|
2441
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
2442
2442
|
source: import("zod").ZodObject<{
|
|
2443
2443
|
merchant_id: import("zod").ZodString;
|
|
2444
2444
|
app_id: import("zod").ZodString;
|
|
@@ -2457,9 +2457,9 @@ export declare const catalogRoutes: readonly [{
|
|
|
2457
2457
|
quote: import("zod").ZodObject<{
|
|
2458
2458
|
id: import("zod").ZodString;
|
|
2459
2459
|
currency: import("zod").ZodString;
|
|
2460
|
-
gross_minor_units: import("zod").
|
|
2461
|
-
net_minor_units: import("zod").
|
|
2462
|
-
tax_minor_units: import("zod").
|
|
2460
|
+
gross_minor_units: import("zod").ZodString;
|
|
2461
|
+
net_minor_units: import("zod").ZodString;
|
|
2462
|
+
tax_minor_units: import("zod").ZodString;
|
|
2463
2463
|
tax_treatment: import("zod").ZodEnum<{
|
|
2464
2464
|
inclusive: "inclusive";
|
|
2465
2465
|
exclusive: "exclusive";
|
|
@@ -2535,7 +2535,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2535
2535
|
provider_price_id: import("zod").ZodString;
|
|
2536
2536
|
trial_days: import("zod").ZodNumber;
|
|
2537
2537
|
tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2538
|
-
schema_version: import("zod").ZodLiteral<
|
|
2538
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
2539
2539
|
source: import("zod").ZodObject<{
|
|
2540
2540
|
merchant_id: import("zod").ZodString;
|
|
2541
2541
|
app_id: import("zod").ZodString;
|
|
@@ -2554,9 +2554,9 @@ export declare const catalogRoutes: readonly [{
|
|
|
2554
2554
|
quote: import("zod").ZodObject<{
|
|
2555
2555
|
id: import("zod").ZodString;
|
|
2556
2556
|
currency: import("zod").ZodString;
|
|
2557
|
-
gross_minor_units: import("zod").
|
|
2558
|
-
net_minor_units: import("zod").
|
|
2559
|
-
tax_minor_units: import("zod").
|
|
2557
|
+
gross_minor_units: import("zod").ZodString;
|
|
2558
|
+
net_minor_units: import("zod").ZodString;
|
|
2559
|
+
tax_minor_units: import("zod").ZodString;
|
|
2560
2560
|
tax_treatment: import("zod").ZodEnum<{
|
|
2561
2561
|
inclusive: "inclusive";
|
|
2562
2562
|
exclusive: "exclusive";
|
|
@@ -2612,7 +2612,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2612
2612
|
session_id: import("zod").ZodString;
|
|
2613
2613
|
client_secret: import("zod").ZodString;
|
|
2614
2614
|
publishable_key: import("zod").ZodString;
|
|
2615
|
-
amount_minor_units: import("zod").
|
|
2615
|
+
amount_minor_units: import("zod").ZodString;
|
|
2616
2616
|
currency: import("zod").ZodString;
|
|
2617
2617
|
}, import("zod/v4/core").$strict>>;
|
|
2618
2618
|
scope: import("zod").ZodObject<{
|
|
@@ -2633,7 +2633,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2633
2633
|
provider_price_id: import("zod").ZodString;
|
|
2634
2634
|
}, import("zod/v4/core").$strict>;
|
|
2635
2635
|
tax_quote: import("zod").ZodObject<{
|
|
2636
|
-
schema_version: import("zod").ZodLiteral<
|
|
2636
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
2637
2637
|
source: import("zod").ZodObject<{
|
|
2638
2638
|
merchant_id: import("zod").ZodString;
|
|
2639
2639
|
app_id: import("zod").ZodString;
|
|
@@ -2652,9 +2652,9 @@ export declare const catalogRoutes: readonly [{
|
|
|
2652
2652
|
quote: import("zod").ZodObject<{
|
|
2653
2653
|
id: import("zod").ZodString;
|
|
2654
2654
|
currency: import("zod").ZodString;
|
|
2655
|
-
gross_minor_units: import("zod").
|
|
2656
|
-
net_minor_units: import("zod").
|
|
2657
|
-
tax_minor_units: import("zod").
|
|
2655
|
+
gross_minor_units: import("zod").ZodString;
|
|
2656
|
+
net_minor_units: import("zod").ZodString;
|
|
2657
|
+
tax_minor_units: import("zod").ZodString;
|
|
2658
2658
|
tax_treatment: import("zod").ZodEnum<{
|
|
2659
2659
|
inclusive: "inclusive";
|
|
2660
2660
|
exclusive: "exclusive";
|
|
@@ -2839,7 +2839,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
2839
2839
|
include: import("zod").ZodOptional<import("zod").ZodLiteral<"tax_lines">>;
|
|
2840
2840
|
}, import("zod/v4/core").$strip>;
|
|
2841
2841
|
readonly response: import("zod").ZodObject<{
|
|
2842
|
-
schema_version: import("zod").ZodLiteral<
|
|
2842
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
2843
2843
|
source: import("zod").ZodObject<{
|
|
2844
2844
|
invoice_id: import("zod").ZodString;
|
|
2845
2845
|
payment_intent_id: import("zod").ZodString;
|
|
@@ -2862,10 +2862,10 @@ export declare const catalogRoutes: readonly [{
|
|
|
2862
2862
|
invoice: import("zod").ZodObject<{
|
|
2863
2863
|
platform: import("zod").ZodLiteral<"peable">;
|
|
2864
2864
|
currency: import("zod").ZodString;
|
|
2865
|
-
gross_minor_units: import("zod").
|
|
2866
|
-
net_minor_units: import("zod").
|
|
2867
|
-
tax_minor_units: import("zod").
|
|
2868
|
-
merchant_fee_minor_units: import("zod").
|
|
2865
|
+
gross_minor_units: import("zod").ZodString;
|
|
2866
|
+
net_minor_units: import("zod").ZodString;
|
|
2867
|
+
tax_minor_units: import("zod").ZodString;
|
|
2868
|
+
merchant_fee_minor_units: import("zod").ZodString;
|
|
2869
2869
|
tax_treatment: import("zod").ZodEnum<{
|
|
2870
2870
|
inclusive: "inclusive";
|
|
2871
2871
|
exclusive: "exclusive";
|
|
@@ -2908,8 +2908,8 @@ export declare const catalogRoutes: readonly [{
|
|
|
2908
2908
|
state: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2909
2909
|
tax_type: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2910
2910
|
rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2911
|
-
taxable_minor_units: import("zod").
|
|
2912
|
-
tax_minor_units: import("zod").
|
|
2911
|
+
taxable_minor_units: import("zod").ZodString;
|
|
2912
|
+
tax_minor_units: import("zod").ZodString;
|
|
2913
2913
|
inclusive: import("zod").ZodBoolean;
|
|
2914
2914
|
taxability_reason: import("zod").ZodString;
|
|
2915
2915
|
}, import("zod/v4/core").$strict>>>;
|
|
@@ -3056,7 +3056,7 @@ export declare const catalogRoutes: readonly [{
|
|
|
3056
3056
|
provider_price_id: import("zod").ZodString;
|
|
3057
3057
|
trial_days: import("zod").ZodNumber;
|
|
3058
3058
|
tax_quote: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3059
|
-
schema_version: import("zod").ZodLiteral<
|
|
3059
|
+
schema_version: import("zod").ZodLiteral<3>;
|
|
3060
3060
|
source: import("zod").ZodObject<{
|
|
3061
3061
|
merchant_id: import("zod").ZodString;
|
|
3062
3062
|
app_id: import("zod").ZodString;
|
|
@@ -3075,9 +3075,9 @@ export declare const catalogRoutes: readonly [{
|
|
|
3075
3075
|
quote: import("zod").ZodObject<{
|
|
3076
3076
|
id: import("zod").ZodString;
|
|
3077
3077
|
currency: import("zod").ZodString;
|
|
3078
|
-
gross_minor_units: import("zod").
|
|
3079
|
-
net_minor_units: import("zod").
|
|
3080
|
-
tax_minor_units: import("zod").
|
|
3078
|
+
gross_minor_units: import("zod").ZodString;
|
|
3079
|
+
net_minor_units: import("zod").ZodString;
|
|
3080
|
+
tax_minor_units: import("zod").ZodString;
|
|
3081
3081
|
tax_treatment: import("zod").ZodEnum<{
|
|
3082
3082
|
inclusive: "inclusive";
|
|
3083
3083
|
exclusive: "exclusive";
|