@peable.to/contracts 1.2.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.
@@ -4,11 +4,12 @@ import { unixSecondsParam } from '../../common/params.js';
4
4
  /**
5
5
  * Building blocks every Peable Tax resource shares.
6
6
  *
7
- * Tax AMOUNTS (calculations, transactions, the report) are integer JSON
8
- * numbers in the currency's minor unit, as Peable Tax has always answered
9
- * them: unlike a FAIR amount, a tax amount is denominated in a fiat currency
10
- * and is bounded by the safe-integer checks the calculator applies. Business
11
- * compliance (ADR 0020) amounts are base-unit strings, as ADR 0014 D1 has it.
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: taxMinorAmount,
25
- amount_net: taxMinorAmount,
26
- tax_amount: taxMinorAmount,
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: z
60
- .number()
61
- .int()
62
- .positive()
63
- .safe()
59
+ amount: baseUnitAmountParam
60
+ .refine((value) => value !== '0', 'must be positive')
64
61
  .optional()
65
- .describe('Gross minor units refunded (what the payer got back). Omitted: everything not yet reversed.'),
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 = [
@@ -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.ZodNumber;
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.ZodNumber;
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.ZodNumber;
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 2). */
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<2>;
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.ZodNumber;
161
- net_minor_units: z.ZodNumber;
162
- tax_minor_units: z.ZodNumber;
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<2>;
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.ZodNumber;
211
- net_minor_units: z.ZodNumber;
212
- tax_minor_units: z.ZodNumber;
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.ZodNumber;
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.ZodNumber;
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<2>;
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.ZodNumber;
358
- net_minor_units: z.ZodNumber;
359
- tax_minor_units: z.ZodNumber;
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.ZodNumber;
612
- tax_minor_units: z.ZodNumber;
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.ZodNumber;
646
- net_minor_units: z.ZodNumber;
647
- tax_minor_units: z.ZodNumber;
648
- merchant_fee_minor_units: z.ZodNumber;
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.ZodNumber;
692
- tax_minor_units: z.ZodNumber;
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 2). Verify it against the pinned keys. */
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<2>;
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.ZodNumber;
724
- net_minor_units: z.ZodNumber;
725
- tax_minor_units: z.ZodNumber;
726
- merchant_fee_minor_units: z.ZodNumber;
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.ZodNumber;
770
- tax_minor_units: z.ZodNumber;
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.ZodNumber;
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.ZodNumber;
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<2>;
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.ZodNumber;
952
- net_minor_units: z.ZodNumber;
953
- tax_minor_units: z.ZodNumber;
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<2>;
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.ZodNumber;
1029
- net_minor_units: z.ZodNumber;
1030
- tax_minor_units: z.ZodNumber;
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<2>;
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.ZodNumber;
1126
- net_minor_units: z.ZodNumber;
1127
- tax_minor_units: z.ZodNumber;
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.ZodNumber;
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<2>;
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.ZodNumber;
1224
- net_minor_units: z.ZodNumber;
1225
- tax_minor_units: z.ZodNumber;
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<2>;
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.ZodNumber;
1434
- net_minor_units: z.ZodNumber;
1435
- tax_minor_units: z.ZodNumber;
1436
- merchant_fee_minor_units: z.ZodNumber;
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.ZodNumber;
1480
- tax_minor_units: z.ZodNumber;
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<2>;
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.ZodNumber;
1647
- net_minor_units: z.ZodNumber;
1648
- tax_minor_units: z.ZodNumber;
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").ZodNumber;
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<2>;
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").ZodNumber;
2384
- net_minor_units: import("zod").ZodNumber;
2385
- tax_minor_units: import("zod").ZodNumber;
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<2>;
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").ZodNumber;
2461
- net_minor_units: import("zod").ZodNumber;
2462
- tax_minor_units: import("zod").ZodNumber;
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<2>;
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").ZodNumber;
2558
- net_minor_units: import("zod").ZodNumber;
2559
- tax_minor_units: import("zod").ZodNumber;
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").ZodNumber;
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<2>;
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").ZodNumber;
2656
- net_minor_units: import("zod").ZodNumber;
2657
- tax_minor_units: import("zod").ZodNumber;
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<2>;
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").ZodNumber;
2866
- net_minor_units: import("zod").ZodNumber;
2867
- tax_minor_units: import("zod").ZodNumber;
2868
- merchant_fee_minor_units: import("zod").ZodNumber;
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").ZodNumber;
2912
- tax_minor_units: import("zod").ZodNumber;
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<2>;
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").ZodNumber;
3079
- net_minor_units: import("zod").ZodNumber;
3080
- tax_minor_units: import("zod").ZodNumber;
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";
@@ -317,7 +317,7 @@ export declare const checkoutSessionPublicSchema: z.ZodObject<{
317
317
  billing_quote: z.ZodOptional<z.ZodObject<{
318
318
  id: z.ZodString;
319
319
  currency: z.ZodLiteral<"USD">;
320
- gross_minor_units: z.ZodNumber;
320
+ gross_minor_units: z.ZodString;
321
321
  amount_base_units: z.ZodString;
322
322
  usd_per_fair: z.ZodString;
323
323
  source: z.ZodString;
@@ -2248,7 +2248,7 @@ export declare const checkoutSessionRoutes: readonly [{
2248
2248
  billing_quote: z.ZodOptional<z.ZodObject<{
2249
2249
  id: z.ZodString;
2250
2250
  currency: z.ZodLiteral<"USD">;
2251
- gross_minor_units: z.ZodNumber;
2251
+ gross_minor_units: z.ZodString;
2252
2252
  amount_base_units: z.ZodString;
2253
2253
  usd_per_fair: z.ZodString;
2254
2254
  source: z.ZodString;
@@ -2572,7 +2572,7 @@ export declare const checkoutSessionRoutes: readonly [{
2572
2572
  billing_quote: z.ZodOptional<z.ZodObject<{
2573
2573
  id: z.ZodString;
2574
2574
  currency: z.ZodLiteral<"USD">;
2575
- gross_minor_units: z.ZodNumber;
2575
+ gross_minor_units: z.ZodString;
2576
2576
  amount_base_units: z.ZodString;
2577
2577
  usd_per_fair: z.ZodString;
2578
2578
  source: z.ZodString;
@@ -2848,7 +2848,7 @@ export declare const checkoutSessionRoutes: readonly [{
2848
2848
  billing_quote: z.ZodOptional<z.ZodObject<{
2849
2849
  id: z.ZodString;
2850
2850
  currency: z.ZodLiteral<"USD">;
2851
- gross_minor_units: z.ZodNumber;
2851
+ gross_minor_units: z.ZodString;
2852
2852
  amount_base_units: z.ZodString;
2853
2853
  usd_per_fair: z.ZodString;
2854
2854
  source: z.ZodString;
@@ -1418,7 +1418,7 @@ export declare const checkoutRoutes: readonly [{
1418
1418
  billing_quote: import("zod").ZodOptional<import("zod").ZodObject<{
1419
1419
  id: import("zod").ZodString;
1420
1420
  currency: import("zod").ZodLiteral<"USD">;
1421
- gross_minor_units: import("zod").ZodNumber;
1421
+ gross_minor_units: import("zod").ZodString;
1422
1422
  amount_base_units: import("zod").ZodString;
1423
1423
  usd_per_fair: import("zod").ZodString;
1424
1424
  source: import("zod").ZodString;
@@ -1742,7 +1742,7 @@ export declare const checkoutRoutes: readonly [{
1742
1742
  billing_quote: import("zod").ZodOptional<import("zod").ZodObject<{
1743
1743
  id: import("zod").ZodString;
1744
1744
  currency: import("zod").ZodLiteral<"USD">;
1745
- gross_minor_units: import("zod").ZodNumber;
1745
+ gross_minor_units: import("zod").ZodString;
1746
1746
  amount_base_units: import("zod").ZodString;
1747
1747
  usd_per_fair: import("zod").ZodString;
1748
1748
  source: import("zod").ZodString;
@@ -2018,7 +2018,7 @@ export declare const checkoutRoutes: readonly [{
2018
2018
  billing_quote: import("zod").ZodOptional<import("zod").ZodObject<{
2019
2019
  id: import("zod").ZodString;
2020
2020
  currency: import("zod").ZodLiteral<"USD">;
2021
- gross_minor_units: import("zod").ZodNumber;
2021
+ gross_minor_units: import("zod").ZodString;
2022
2022
  amount_base_units: import("zod").ZodString;
2023
2023
  usd_per_fair: import("zod").ZodString;
2024
2024
  source: import("zod").ZodString;