@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.
@@ -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;
@@ -13,8 +13,8 @@ export declare const taxBreakdownEntrySchema: z.ZodObject<{
13
13
  display_name: z.ZodNullable<z.ZodString>;
14
14
  tax_type: z.ZodNullable<z.ZodString>;
15
15
  rate_percentage: z.ZodNullable<z.ZodString>;
16
- taxable_amount: z.ZodNumber;
17
- amount: z.ZodNumber;
16
+ taxable_amount: z.ZodString;
17
+ amount: z.ZodString;
18
18
  inclusive: z.ZodBoolean;
19
19
  taxability_reason: z.ZodString;
20
20
  }, z.core.$strict>;
@@ -27,9 +27,9 @@ export declare const taxCalculationLineItemSchema: z.ZodObject<{
27
27
  inclusive: "inclusive";
28
28
  exclusive: "exclusive";
29
29
  }>;
30
- amount: z.ZodNumber;
31
- amount_tax: z.ZodNumber;
32
- amount_net: z.ZodNumber;
30
+ amount: z.ZodString;
31
+ amount_tax: z.ZodString;
32
+ amount_net: z.ZodString;
33
33
  breakdown: z.ZodArray<z.ZodObject<{
34
34
  country: z.ZodString;
35
35
  state: z.ZodNullable<z.ZodString>;
@@ -37,8 +37,8 @@ export declare const taxCalculationLineItemSchema: z.ZodObject<{
37
37
  display_name: z.ZodNullable<z.ZodString>;
38
38
  tax_type: z.ZodNullable<z.ZodString>;
39
39
  rate_percentage: z.ZodNullable<z.ZodString>;
40
- taxable_amount: z.ZodNumber;
41
- amount: z.ZodNumber;
40
+ taxable_amount: z.ZodString;
41
+ amount: z.ZodString;
42
42
  inclusive: z.ZodBoolean;
43
43
  taxability_reason: z.ZodString;
44
44
  }, z.core.$strict>>;
@@ -59,10 +59,10 @@ export declare const taxCalculationSchema: z.ZodObject<{
59
59
  customer_location_evidence_id: z.ZodString;
60
60
  country: z.ZodString;
61
61
  state: z.ZodNullable<z.ZodString>;
62
- amount_total: z.ZodNumber;
63
- amount_net: z.ZodNumber;
64
- tax_amount_exclusive: z.ZodNumber;
65
- tax_amount_inclusive: z.ZodNumber;
62
+ amount_total: z.ZodString;
63
+ amount_net: z.ZodString;
64
+ tax_amount_exclusive: z.ZodString;
65
+ tax_amount_inclusive: z.ZodString;
66
66
  line_items: z.ZodArray<z.ZodObject<{
67
67
  reference: z.ZodString;
68
68
  quantity: z.ZodNumber;
@@ -71,9 +71,9 @@ export declare const taxCalculationSchema: z.ZodObject<{
71
71
  inclusive: "inclusive";
72
72
  exclusive: "exclusive";
73
73
  }>;
74
- amount: z.ZodNumber;
75
- amount_tax: z.ZodNumber;
76
- amount_net: z.ZodNumber;
74
+ amount: z.ZodString;
75
+ amount_tax: z.ZodString;
76
+ amount_net: z.ZodString;
77
77
  breakdown: z.ZodArray<z.ZodObject<{
78
78
  country: z.ZodString;
79
79
  state: z.ZodNullable<z.ZodString>;
@@ -81,8 +81,8 @@ export declare const taxCalculationSchema: z.ZodObject<{
81
81
  display_name: z.ZodNullable<z.ZodString>;
82
82
  tax_type: z.ZodNullable<z.ZodString>;
83
83
  rate_percentage: z.ZodNullable<z.ZodString>;
84
- taxable_amount: z.ZodNumber;
85
- amount: z.ZodNumber;
84
+ taxable_amount: z.ZodString;
85
+ amount: z.ZodString;
86
86
  inclusive: z.ZodBoolean;
87
87
  taxability_reason: z.ZodString;
88
88
  }, z.core.$strict>>;
@@ -100,7 +100,7 @@ declare module '../../common/objects' {
100
100
  }
101
101
  export declare const taxLineItemParams: z.ZodObject<{
102
102
  reference: z.ZodString;
103
- amount: z.ZodNumber;
103
+ amount: z.ZodString;
104
104
  quantity: z.ZodOptional<z.ZodNumber>;
105
105
  tax_code: z.ZodOptional<z.ZodString>;
106
106
  tax_behavior: z.ZodOptional<z.ZodEnum<{
@@ -114,7 +114,7 @@ export declare const createTaxCalculationParams: z.ZodObject<{
114
114
  customer_location_evidence_id: z.ZodString;
115
115
  line_items: z.ZodArray<z.ZodObject<{
116
116
  reference: z.ZodString;
117
- amount: z.ZodNumber;
117
+ amount: z.ZodString;
118
118
  quantity: z.ZodOptional<z.ZodNumber>;
119
119
  tax_code: z.ZodOptional<z.ZodString>;
120
120
  tax_behavior: z.ZodOptional<z.ZodEnum<{
@@ -139,7 +139,7 @@ export declare const taxCalculationRoutes: readonly [{
139
139
  customer_location_evidence_id: z.ZodString;
140
140
  line_items: z.ZodArray<z.ZodObject<{
141
141
  reference: z.ZodString;
142
- amount: z.ZodNumber;
142
+ amount: z.ZodString;
143
143
  quantity: z.ZodOptional<z.ZodNumber>;
144
144
  tax_code: z.ZodOptional<z.ZodString>;
145
145
  tax_behavior: z.ZodOptional<z.ZodEnum<{
@@ -163,10 +163,10 @@ export declare const taxCalculationRoutes: readonly [{
163
163
  customer_location_evidence_id: z.ZodString;
164
164
  country: z.ZodString;
165
165
  state: z.ZodNullable<z.ZodString>;
166
- amount_total: z.ZodNumber;
167
- amount_net: z.ZodNumber;
168
- tax_amount_exclusive: z.ZodNumber;
169
- tax_amount_inclusive: z.ZodNumber;
166
+ amount_total: z.ZodString;
167
+ amount_net: z.ZodString;
168
+ tax_amount_exclusive: z.ZodString;
169
+ tax_amount_inclusive: z.ZodString;
170
170
  line_items: z.ZodArray<z.ZodObject<{
171
171
  reference: z.ZodString;
172
172
  quantity: z.ZodNumber;
@@ -175,9 +175,9 @@ export declare const taxCalculationRoutes: readonly [{
175
175
  inclusive: "inclusive";
176
176
  exclusive: "exclusive";
177
177
  }>;
178
- amount: z.ZodNumber;
179
- amount_tax: z.ZodNumber;
180
- amount_net: z.ZodNumber;
178
+ amount: z.ZodString;
179
+ amount_tax: z.ZodString;
180
+ amount_net: z.ZodString;
181
181
  breakdown: z.ZodArray<z.ZodObject<{
182
182
  country: z.ZodString;
183
183
  state: z.ZodNullable<z.ZodString>;
@@ -185,8 +185,8 @@ export declare const taxCalculationRoutes: readonly [{
185
185
  display_name: z.ZodNullable<z.ZodString>;
186
186
  tax_type: z.ZodNullable<z.ZodString>;
187
187
  rate_percentage: z.ZodNullable<z.ZodString>;
188
- taxable_amount: z.ZodNumber;
189
- amount: z.ZodNumber;
188
+ taxable_amount: z.ZodString;
189
+ amount: z.ZodString;
190
190
  inclusive: z.ZodBoolean;
191
191
  taxability_reason: z.ZodString;
192
192
  }, z.core.$strict>>;
@@ -224,10 +224,10 @@ export declare const taxCalculationRoutes: readonly [{
224
224
  customer_location_evidence_id: z.ZodString;
225
225
  country: z.ZodString;
226
226
  state: z.ZodNullable<z.ZodString>;
227
- amount_total: z.ZodNumber;
228
- amount_net: z.ZodNumber;
229
- tax_amount_exclusive: z.ZodNumber;
230
- tax_amount_inclusive: z.ZodNumber;
227
+ amount_total: z.ZodString;
228
+ amount_net: z.ZodString;
229
+ tax_amount_exclusive: z.ZodString;
230
+ tax_amount_inclusive: z.ZodString;
231
231
  line_items: z.ZodArray<z.ZodObject<{
232
232
  reference: z.ZodString;
233
233
  quantity: z.ZodNumber;
@@ -236,9 +236,9 @@ export declare const taxCalculationRoutes: readonly [{
236
236
  inclusive: "inclusive";
237
237
  exclusive: "exclusive";
238
238
  }>;
239
- amount: z.ZodNumber;
240
- amount_tax: z.ZodNumber;
241
- amount_net: z.ZodNumber;
239
+ amount: z.ZodString;
240
+ amount_tax: z.ZodString;
241
+ amount_net: z.ZodString;
242
242
  breakdown: z.ZodArray<z.ZodObject<{
243
243
  country: z.ZodString;
244
244
  state: z.ZodNullable<z.ZodString>;
@@ -246,8 +246,8 @@ export declare const taxCalculationRoutes: readonly [{
246
246
  display_name: z.ZodNullable<z.ZodString>;
247
247
  tax_type: z.ZodNullable<z.ZodString>;
248
248
  rate_percentage: z.ZodNullable<z.ZodString>;
249
- taxable_amount: z.ZodNumber;
250
- amount: z.ZodNumber;
249
+ taxable_amount: z.ZodString;
250
+ amount: z.ZodString;
251
251
  inclusive: z.ZodBoolean;
252
252
  taxability_reason: z.ZodString;
253
253
  }, z.core.$strict>>;
@@ -285,7 +285,7 @@ export declare const taxRoutes: readonly [{
285
285
  customer_location_evidence_id: import("zod").ZodString;
286
286
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
287
287
  reference: import("zod").ZodString;
288
- amount: import("zod").ZodNumber;
288
+ amount: import("zod").ZodString;
289
289
  quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
290
290
  tax_code: import("zod").ZodOptional<import("zod").ZodString>;
291
291
  tax_behavior: import("zod").ZodOptional<import("zod").ZodEnum<{
@@ -309,10 +309,10 @@ export declare const taxRoutes: readonly [{
309
309
  customer_location_evidence_id: import("zod").ZodString;
310
310
  country: import("zod").ZodString;
311
311
  state: import("zod").ZodNullable<import("zod").ZodString>;
312
- amount_total: import("zod").ZodNumber;
313
- amount_net: import("zod").ZodNumber;
314
- tax_amount_exclusive: import("zod").ZodNumber;
315
- tax_amount_inclusive: import("zod").ZodNumber;
312
+ amount_total: import("zod").ZodString;
313
+ amount_net: import("zod").ZodString;
314
+ tax_amount_exclusive: import("zod").ZodString;
315
+ tax_amount_inclusive: import("zod").ZodString;
316
316
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
317
317
  reference: import("zod").ZodString;
318
318
  quantity: import("zod").ZodNumber;
@@ -321,9 +321,9 @@ export declare const taxRoutes: readonly [{
321
321
  inclusive: "inclusive";
322
322
  exclusive: "exclusive";
323
323
  }>;
324
- amount: import("zod").ZodNumber;
325
- amount_tax: import("zod").ZodNumber;
326
- amount_net: import("zod").ZodNumber;
324
+ amount: import("zod").ZodString;
325
+ amount_tax: import("zod").ZodString;
326
+ amount_net: import("zod").ZodString;
327
327
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
328
328
  country: import("zod").ZodString;
329
329
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -331,8 +331,8 @@ export declare const taxRoutes: readonly [{
331
331
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
332
332
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
333
333
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
334
- taxable_amount: import("zod").ZodNumber;
335
- amount: import("zod").ZodNumber;
334
+ taxable_amount: import("zod").ZodString;
335
+ amount: import("zod").ZodString;
336
336
  inclusive: import("zod").ZodBoolean;
337
337
  taxability_reason: import("zod").ZodString;
338
338
  }, import("zod/v4/core").$strict>>;
@@ -370,10 +370,10 @@ export declare const taxRoutes: readonly [{
370
370
  customer_location_evidence_id: import("zod").ZodString;
371
371
  country: import("zod").ZodString;
372
372
  state: import("zod").ZodNullable<import("zod").ZodString>;
373
- amount_total: import("zod").ZodNumber;
374
- amount_net: import("zod").ZodNumber;
375
- tax_amount_exclusive: import("zod").ZodNumber;
376
- tax_amount_inclusive: import("zod").ZodNumber;
373
+ amount_total: import("zod").ZodString;
374
+ amount_net: import("zod").ZodString;
375
+ tax_amount_exclusive: import("zod").ZodString;
376
+ tax_amount_inclusive: import("zod").ZodString;
377
377
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
378
378
  reference: import("zod").ZodString;
379
379
  quantity: import("zod").ZodNumber;
@@ -382,9 +382,9 @@ export declare const taxRoutes: readonly [{
382
382
  inclusive: "inclusive";
383
383
  exclusive: "exclusive";
384
384
  }>;
385
- amount: import("zod").ZodNumber;
386
- amount_tax: import("zod").ZodNumber;
387
- amount_net: import("zod").ZodNumber;
385
+ amount: import("zod").ZodString;
386
+ amount_tax: import("zod").ZodString;
387
+ amount_net: import("zod").ZodString;
388
388
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
389
389
  country: import("zod").ZodString;
390
390
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -392,8 +392,8 @@ export declare const taxRoutes: readonly [{
392
392
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
393
393
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
394
394
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
395
- taxable_amount: import("zod").ZodNumber;
396
- amount: import("zod").ZodNumber;
395
+ taxable_amount: import("zod").ZodString;
396
+ amount: import("zod").ZodString;
397
397
  inclusive: import("zod").ZodBoolean;
398
398
  taxability_reason: import("zod").ZodString;
399
399
  }, import("zod/v4/core").$strict>>;
@@ -445,9 +445,9 @@ export declare const taxRoutes: readonly [{
445
445
  committed_at: import("zod").ZodNumber;
446
446
  reversal_of: import("zod").ZodNullable<import("zod").ZodString>;
447
447
  reversal: import("zod").ZodNullable<import("zod").ZodObject<{
448
- amount_total: import("zod").ZodNumber;
449
- amount_net: import("zod").ZodNumber;
450
- tax_amount: import("zod").ZodNumber;
448
+ amount_total: import("zod").ZodString;
449
+ amount_net: import("zod").ZodString;
450
+ tax_amount: import("zod").ZodString;
451
451
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
452
452
  reference: import("zod").ZodString;
453
453
  quantity: import("zod").ZodNumber;
@@ -456,9 +456,9 @@ export declare const taxRoutes: readonly [{
456
456
  inclusive: "inclusive";
457
457
  exclusive: "exclusive";
458
458
  }>;
459
- amount: import("zod").ZodNumber;
460
- amount_tax: import("zod").ZodNumber;
461
- amount_net: import("zod").ZodNumber;
459
+ amount: import("zod").ZodString;
460
+ amount_tax: import("zod").ZodString;
461
+ amount_net: import("zod").ZodString;
462
462
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
463
463
  country: import("zod").ZodString;
464
464
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -466,8 +466,8 @@ export declare const taxRoutes: readonly [{
466
466
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
467
467
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
468
468
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
469
- taxable_amount: import("zod").ZodNumber;
470
- amount: import("zod").ZodNumber;
469
+ taxable_amount: import("zod").ZodString;
470
+ amount: import("zod").ZodString;
471
471
  inclusive: import("zod").ZodBoolean;
472
472
  taxability_reason: import("zod").ZodString;
473
473
  }, import("zod/v4/core").$strict>>;
@@ -488,10 +488,10 @@ export declare const taxRoutes: readonly [{
488
488
  customer_location_evidence_id: import("zod").ZodString;
489
489
  country: import("zod").ZodString;
490
490
  state: import("zod").ZodNullable<import("zod").ZodString>;
491
- amount_total: import("zod").ZodNumber;
492
- amount_net: import("zod").ZodNumber;
493
- tax_amount_exclusive: import("zod").ZodNumber;
494
- tax_amount_inclusive: import("zod").ZodNumber;
491
+ amount_total: import("zod").ZodString;
492
+ amount_net: import("zod").ZodString;
493
+ tax_amount_exclusive: import("zod").ZodString;
494
+ tax_amount_inclusive: import("zod").ZodString;
495
495
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
496
496
  reference: import("zod").ZodString;
497
497
  quantity: import("zod").ZodNumber;
@@ -500,9 +500,9 @@ export declare const taxRoutes: readonly [{
500
500
  inclusive: "inclusive";
501
501
  exclusive: "exclusive";
502
502
  }>;
503
- amount: import("zod").ZodNumber;
504
- amount_tax: import("zod").ZodNumber;
505
- amount_net: import("zod").ZodNumber;
503
+ amount: import("zod").ZodString;
504
+ amount_tax: import("zod").ZodString;
505
+ amount_net: import("zod").ZodString;
506
506
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
507
507
  country: import("zod").ZodString;
508
508
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -510,8 +510,8 @@ export declare const taxRoutes: readonly [{
510
510
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
511
511
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
512
512
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
513
- taxable_amount: import("zod").ZodNumber;
514
- amount: import("zod").ZodNumber;
513
+ taxable_amount: import("zod").ZodString;
514
+ amount: import("zod").ZodString;
515
515
  inclusive: import("zod").ZodBoolean;
516
516
  taxability_reason: import("zod").ZodString;
517
517
  }, import("zod/v4/core").$strict>>;
@@ -542,7 +542,7 @@ export declare const taxRoutes: readonly [{
542
542
  };
543
543
  readonly body: import("zod").ZodObject<{
544
544
  reference: import("zod").ZodString;
545
- amount: import("zod").ZodOptional<import("zod").ZodNumber>;
545
+ amount: import("zod").ZodOptional<import("zod").ZodString>;
546
546
  }, import("zod/v4/core").$strict>;
547
547
  readonly response: import("zod").ZodObject<{
548
548
  object: import("zod").ZodLiteral<"tax.transaction">;
@@ -557,9 +557,9 @@ export declare const taxRoutes: readonly [{
557
557
  committed_at: import("zod").ZodNumber;
558
558
  reversal_of: import("zod").ZodNullable<import("zod").ZodString>;
559
559
  reversal: import("zod").ZodNullable<import("zod").ZodObject<{
560
- amount_total: import("zod").ZodNumber;
561
- amount_net: import("zod").ZodNumber;
562
- tax_amount: import("zod").ZodNumber;
560
+ amount_total: import("zod").ZodString;
561
+ amount_net: import("zod").ZodString;
562
+ tax_amount: import("zod").ZodString;
563
563
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
564
564
  reference: import("zod").ZodString;
565
565
  quantity: import("zod").ZodNumber;
@@ -568,9 +568,9 @@ export declare const taxRoutes: readonly [{
568
568
  inclusive: "inclusive";
569
569
  exclusive: "exclusive";
570
570
  }>;
571
- amount: import("zod").ZodNumber;
572
- amount_tax: import("zod").ZodNumber;
573
- amount_net: import("zod").ZodNumber;
571
+ amount: import("zod").ZodString;
572
+ amount_tax: import("zod").ZodString;
573
+ amount_net: import("zod").ZodString;
574
574
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
575
575
  country: import("zod").ZodString;
576
576
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -578,8 +578,8 @@ export declare const taxRoutes: readonly [{
578
578
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
579
579
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
580
580
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
581
- taxable_amount: import("zod").ZodNumber;
582
- amount: import("zod").ZodNumber;
581
+ taxable_amount: import("zod").ZodString;
582
+ amount: import("zod").ZodString;
583
583
  inclusive: import("zod").ZodBoolean;
584
584
  taxability_reason: import("zod").ZodString;
585
585
  }, import("zod/v4/core").$strict>>;
@@ -600,10 +600,10 @@ export declare const taxRoutes: readonly [{
600
600
  customer_location_evidence_id: import("zod").ZodString;
601
601
  country: import("zod").ZodString;
602
602
  state: import("zod").ZodNullable<import("zod").ZodString>;
603
- amount_total: import("zod").ZodNumber;
604
- amount_net: import("zod").ZodNumber;
605
- tax_amount_exclusive: import("zod").ZodNumber;
606
- tax_amount_inclusive: import("zod").ZodNumber;
603
+ amount_total: import("zod").ZodString;
604
+ amount_net: import("zod").ZodString;
605
+ tax_amount_exclusive: import("zod").ZodString;
606
+ tax_amount_inclusive: import("zod").ZodString;
607
607
  line_items: import("zod").ZodArray<import("zod").ZodObject<{
608
608
  reference: import("zod").ZodString;
609
609
  quantity: import("zod").ZodNumber;
@@ -612,9 +612,9 @@ export declare const taxRoutes: readonly [{
612
612
  inclusive: "inclusive";
613
613
  exclusive: "exclusive";
614
614
  }>;
615
- amount: import("zod").ZodNumber;
616
- amount_tax: import("zod").ZodNumber;
617
- amount_net: import("zod").ZodNumber;
615
+ amount: import("zod").ZodString;
616
+ amount_tax: import("zod").ZodString;
617
+ amount_net: import("zod").ZodString;
618
618
  breakdown: import("zod").ZodArray<import("zod").ZodObject<{
619
619
  country: import("zod").ZodString;
620
620
  state: import("zod").ZodNullable<import("zod").ZodString>;
@@ -622,8 +622,8 @@ export declare const taxRoutes: readonly [{
622
622
  display_name: import("zod").ZodNullable<import("zod").ZodString>;
623
623
  tax_type: import("zod").ZodNullable<import("zod").ZodString>;
624
624
  rate_percentage: import("zod").ZodNullable<import("zod").ZodString>;
625
- taxable_amount: import("zod").ZodNumber;
626
- amount: import("zod").ZodNumber;
625
+ taxable_amount: import("zod").ZodString;
626
+ amount: import("zod").ZodString;
627
627
  inclusive: import("zod").ZodBoolean;
628
628
  taxability_reason: import("zod").ZodString;
629
629
  }, import("zod/v4/core").$strict>>;
@@ -679,8 +679,8 @@ export declare const taxRoutes: readonly [{
679
679
  currency: import("zod").ZodString;
680
680
  transactions: import("zod").ZodNumber;
681
681
  reversals: import("zod").ZodNumber;
682
- taxable_amount: import("zod").ZodNumber;
683
- tax_amount: import("zod").ZodNumber;
682
+ taxable_amount: import("zod").ZodString;
683
+ tax_amount: import("zod").ZodString;
684
684
  }, import("zod/v4/core").$strict>>;
685
685
  }, import("zod/v4/core").$strict>;
686
686
  readonly sdk: "tax.reports.summary";
@@ -28,8 +28,8 @@ export declare const taxReportRowSchema: z.ZodObject<{
28
28
  currency: z.ZodString;
29
29
  transactions: z.ZodNumber;
30
30
  reversals: z.ZodNumber;
31
- taxable_amount: z.ZodNumber;
32
- tax_amount: z.ZodNumber;
31
+ taxable_amount: z.ZodString;
32
+ tax_amount: z.ZodString;
33
33
  }, z.core.$strict>;
34
34
  export type TaxReportRow = z.output<typeof taxReportRowSchema>;
35
35
  export declare const taxReportSchema: z.ZodObject<{
@@ -58,8 +58,8 @@ export declare const taxReportSchema: z.ZodObject<{
58
58
  currency: z.ZodString;
59
59
  transactions: z.ZodNumber;
60
60
  reversals: z.ZodNumber;
61
- taxable_amount: z.ZodNumber;
62
- tax_amount: z.ZodNumber;
61
+ taxable_amount: z.ZodString;
62
+ tax_amount: z.ZodString;
63
63
  }, z.core.$strict>>;
64
64
  }, z.core.$strict>;
65
65
  export type TaxReport = Expand<z.output<typeof taxReportSchema>>;
@@ -121,8 +121,8 @@ export declare const taxReportRoutes: readonly [{
121
121
  currency: z.ZodString;
122
122
  transactions: z.ZodNumber;
123
123
  reversals: z.ZodNumber;
124
- taxable_amount: z.ZodNumber;
125
- tax_amount: z.ZodNumber;
124
+ taxable_amount: z.ZodString;
125
+ tax_amount: z.ZodString;
126
126
  }, z.core.$strict>>;
127
127
  }, z.core.$strict>;
128
128
  readonly sdk: "tax.reports.summary";
@@ -2,18 +2,17 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Building blocks every Peable Tax resource shares.
4
4
  *
5
- * Tax AMOUNTS (calculations, transactions, the report) are integer JSON
6
- * numbers in the currency's minor unit, as Peable Tax has always answered
7
- * them: unlike a FAIR amount, a tax amount is denominated in a fiat currency
8
- * and is bounded by the safe-integer checks the calculator applies. Business
9
- * compliance (ADR 0020) amounts are base-unit strings, as ADR 0014 D1 has it.
5
+ * Every tax amount — a calculation's, a transaction's, a reversal's, a report
6
+ * row's, a compliance measure's — is a base-unit integer STRING of its
7
+ * `currency`, as ADR 0014 D1 has it for every amount on the wire: `amount`
8
+ * where it cannot be negative, `signedAmount` where a reversal makes it so
9
+ * (a line item and its breakdown carry a reversal's negative share, and a
10
+ * report row nets them in).
10
11
  */
11
12
  /** ISO 3166-1 alpha-2, as returned. */
12
13
  export declare const taxCountry: z.ZodString;
13
14
  /** An ISO 3166-2 subdivision without its country prefix (`CA`, `QC`), as returned. */
14
15
  export declare const taxState: z.ZodNullable<z.ZodString>;
15
- /** A minor-unit integer amount (cents), signed: a reversal's amounts are negative. */
16
- export declare const taxMinorAmount: z.ZodNumber;
17
16
  /** A Peable-side reference: a product, a customer, a refund. */
18
17
  export declare const taxReferenceParam: z.ZodString;
19
18
  /** An instant in a tax request body. */