@peable.to/contracts 1.2.0 → 3.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.
Files changed (43) hide show
  1. package/dist/cjs/resources/catalog/index.js +1 -5
  2. package/dist/cjs/resources/checkout/checkoutSessions.js +0 -4
  3. package/dist/cjs/resources/events/events.js +1 -32
  4. package/dist/cjs/resources/tax/calculations.js +33 -30
  5. package/dist/cjs/resources/tax/reports.js +4 -4
  6. package/dist/cjs/resources/tax/shared.js +7 -11
  7. package/dist/cjs/resources/tax/transactions.js +7 -10
  8. package/dist/cjs/vocabulary/catalog.js +1 -17
  9. package/dist/cjs/vocabulary/errors.js +0 -13
  10. package/dist/cjs/vocabulary/events.js +0 -1
  11. package/dist/esm/resources/catalog/index.js +1 -5
  12. package/dist/esm/resources/checkout/checkoutSessions.js +0 -4
  13. package/dist/esm/resources/events/events.js +0 -31
  14. package/dist/esm/resources/tax/calculations.js +29 -26
  15. package/dist/esm/resources/tax/reports.js +6 -6
  16. package/dist/esm/resources/tax/shared.js +6 -10
  17. package/dist/esm/resources/tax/transactions.js +8 -11
  18. package/dist/esm/vocabulary/catalog.js +0 -16
  19. package/dist/esm/vocabulary/errors.js +0 -13
  20. package/dist/esm/vocabulary/events.js +0 -1
  21. package/dist/types/resources/catalog/index.d.ts +1 -851
  22. package/dist/types/resources/checkout/checkoutSessions.d.ts +13 -61
  23. package/dist/types/resources/checkout/index.d.ts +10 -46
  24. package/dist/types/resources/events/events.d.ts +0 -22
  25. package/dist/types/resources/events/index.d.ts +2 -15
  26. package/dist/types/resources/events/webhookDeliveries.d.ts +0 -3
  27. package/dist/types/resources/events/webhookEndpoints.d.ts +4 -16
  28. package/dist/types/resources/payments/index.d.ts +10 -10
  29. package/dist/types/resources/payments/paymentIntents.d.ts +10 -10
  30. package/dist/types/resources/payments/testHelpers.d.ts +1 -1
  31. package/dist/types/resources/tax/calculations.d.ts +37 -37
  32. package/dist/types/resources/tax/index.d.ts +57 -57
  33. package/dist/types/resources/tax/registrations.d.ts +2 -2
  34. package/dist/types/resources/tax/reports.d.ts +6 -6
  35. package/dist/types/resources/tax/shared.d.ts +6 -7
  36. package/dist/types/resources/tax/transactions.d.ts +61 -61
  37. package/dist/types/vocabulary/catalog.d.ts +0 -9
  38. package/dist/types/vocabulary/errors.d.ts +0 -13
  39. package/dist/types/vocabulary/events.d.ts +0 -1
  40. package/package.json +1 -1
  41. package/dist/cjs/resources/catalog/billing.js +0 -755
  42. package/dist/esm/resources/catalog/billing.js +0 -752
  43. package/dist/types/resources/catalog/billing.d.ts +0 -1723
@@ -108,9 +108,9 @@ export declare const taxRoutes: readonly [{
108
108
  expires_at: import("zod").ZodNullable<import("zod").ZodNumber>;
109
109
  status: import("zod").ZodEnum<{
110
110
  active: "active";
111
- expired: "expired";
112
111
  pending_approval: "pending_approval";
113
112
  scheduled: "scheduled";
113
+ expired: "expired";
114
114
  }>;
115
115
  approved_at: import("zod").ZodNullable<import("zod").ZodNumber>;
116
116
  provider_registration_ref: import("zod").ZodNullable<import("zod").ZodString>;
@@ -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";
@@ -23,9 +23,9 @@ export declare const taxRegistrationSchema: z.ZodObject<{
23
23
  expires_at: z.ZodNullable<z.ZodNumber>;
24
24
  status: z.ZodEnum<{
25
25
  active: "active";
26
- expired: "expired";
27
26
  pending_approval: "pending_approval";
28
27
  scheduled: "scheduled";
28
+ expired: "expired";
29
29
  }>;
30
30
  approved_at: z.ZodNullable<z.ZodNumber>;
31
31
  provider_registration_ref: z.ZodNullable<z.ZodString>;
@@ -88,9 +88,9 @@ export declare const taxRegistrationRoutes: readonly [{
88
88
  expires_at: z.ZodNullable<z.ZodNumber>;
89
89
  status: z.ZodEnum<{
90
90
  active: "active";
91
- expired: "expired";
92
91
  pending_approval: "pending_approval";
93
92
  scheduled: "scheduled";
93
+ expired: "expired";
94
94
  }>;
95
95
  approved_at: z.ZodNullable<z.ZodNumber>;
96
96
  provider_registration_ref: z.ZodNullable<z.ZodString>;
@@ -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. */
@@ -14,9 +14,9 @@ import { type Expand } from '../../common/objects';
14
14
  * reversal, e.g. a refund the bank later failed).
15
15
  */
16
16
  export declare const taxTransactionReversalSchema: z.ZodObject<{
17
- amount_total: z.ZodNumber;
18
- amount_net: z.ZodNumber;
19
- tax_amount: z.ZodNumber;
17
+ amount_total: z.ZodString;
18
+ amount_net: z.ZodString;
19
+ tax_amount: z.ZodString;
20
20
  line_items: z.ZodArray<z.ZodObject<{
21
21
  reference: z.ZodString;
22
22
  quantity: z.ZodNumber;
@@ -25,9 +25,9 @@ export declare const taxTransactionReversalSchema: z.ZodObject<{
25
25
  inclusive: "inclusive";
26
26
  exclusive: "exclusive";
27
27
  }>;
28
- amount: z.ZodNumber;
29
- amount_tax: z.ZodNumber;
30
- amount_net: z.ZodNumber;
28
+ amount: z.ZodString;
29
+ amount_tax: z.ZodString;
30
+ amount_net: z.ZodString;
31
31
  breakdown: z.ZodArray<z.ZodObject<{
32
32
  country: z.ZodString;
33
33
  state: z.ZodNullable<z.ZodString>;
@@ -35,8 +35,8 @@ export declare const taxTransactionReversalSchema: z.ZodObject<{
35
35
  display_name: z.ZodNullable<z.ZodString>;
36
36
  tax_type: z.ZodNullable<z.ZodString>;
37
37
  rate_percentage: z.ZodNullable<z.ZodString>;
38
- taxable_amount: z.ZodNumber;
39
- amount: z.ZodNumber;
38
+ taxable_amount: z.ZodString;
39
+ amount: z.ZodString;
40
40
  inclusive: z.ZodBoolean;
41
41
  taxability_reason: z.ZodString;
42
42
  }, z.core.$strict>>;
@@ -56,9 +56,9 @@ export declare const taxTransactionSchema: z.ZodObject<{
56
56
  committed_at: z.ZodNumber;
57
57
  reversal_of: z.ZodNullable<z.ZodString>;
58
58
  reversal: z.ZodNullable<z.ZodObject<{
59
- amount_total: z.ZodNumber;
60
- amount_net: z.ZodNumber;
61
- tax_amount: z.ZodNumber;
59
+ amount_total: z.ZodString;
60
+ amount_net: z.ZodString;
61
+ tax_amount: z.ZodString;
62
62
  line_items: z.ZodArray<z.ZodObject<{
63
63
  reference: z.ZodString;
64
64
  quantity: z.ZodNumber;
@@ -67,9 +67,9 @@ export declare const taxTransactionSchema: z.ZodObject<{
67
67
  inclusive: "inclusive";
68
68
  exclusive: "exclusive";
69
69
  }>;
70
- amount: z.ZodNumber;
71
- amount_tax: z.ZodNumber;
72
- amount_net: z.ZodNumber;
70
+ amount: z.ZodString;
71
+ amount_tax: z.ZodString;
72
+ amount_net: z.ZodString;
73
73
  breakdown: z.ZodArray<z.ZodObject<{
74
74
  country: z.ZodString;
75
75
  state: z.ZodNullable<z.ZodString>;
@@ -77,8 +77,8 @@ export declare const taxTransactionSchema: z.ZodObject<{
77
77
  display_name: z.ZodNullable<z.ZodString>;
78
78
  tax_type: z.ZodNullable<z.ZodString>;
79
79
  rate_percentage: z.ZodNullable<z.ZodString>;
80
- taxable_amount: z.ZodNumber;
81
- amount: z.ZodNumber;
80
+ taxable_amount: z.ZodString;
81
+ amount: z.ZodString;
82
82
  inclusive: z.ZodBoolean;
83
83
  taxability_reason: z.ZodString;
84
84
  }, z.core.$strict>>;
@@ -99,10 +99,10 @@ export declare const taxTransactionSchema: z.ZodObject<{
99
99
  customer_location_evidence_id: z.ZodString;
100
100
  country: z.ZodString;
101
101
  state: z.ZodNullable<z.ZodString>;
102
- amount_total: z.ZodNumber;
103
- amount_net: z.ZodNumber;
104
- tax_amount_exclusive: z.ZodNumber;
105
- tax_amount_inclusive: z.ZodNumber;
102
+ amount_total: z.ZodString;
103
+ amount_net: z.ZodString;
104
+ tax_amount_exclusive: z.ZodString;
105
+ tax_amount_inclusive: z.ZodString;
106
106
  line_items: z.ZodArray<z.ZodObject<{
107
107
  reference: z.ZodString;
108
108
  quantity: z.ZodNumber;
@@ -111,9 +111,9 @@ export declare const taxTransactionSchema: z.ZodObject<{
111
111
  inclusive: "inclusive";
112
112
  exclusive: "exclusive";
113
113
  }>;
114
- amount: z.ZodNumber;
115
- amount_tax: z.ZodNumber;
116
- amount_net: z.ZodNumber;
114
+ amount: z.ZodString;
115
+ amount_tax: z.ZodString;
116
+ amount_net: z.ZodString;
117
117
  breakdown: z.ZodArray<z.ZodObject<{
118
118
  country: z.ZodString;
119
119
  state: z.ZodNullable<z.ZodString>;
@@ -121,8 +121,8 @@ export declare const taxTransactionSchema: z.ZodObject<{
121
121
  display_name: z.ZodNullable<z.ZodString>;
122
122
  tax_type: z.ZodNullable<z.ZodString>;
123
123
  rate_percentage: z.ZodNullable<z.ZodString>;
124
- taxable_amount: z.ZodNumber;
125
- amount: z.ZodNumber;
124
+ taxable_amount: z.ZodString;
125
+ amount: z.ZodString;
126
126
  inclusive: z.ZodBoolean;
127
127
  taxability_reason: z.ZodString;
128
128
  }, z.core.$strict>>;
@@ -166,7 +166,7 @@ export type ListTaxTransactionsParams = z.input<typeof listTaxTransactionsQuery>
166
166
  */
167
167
  export declare const createTaxReversalParams: z.ZodObject<{
168
168
  reference: z.ZodString;
169
- amount: z.ZodOptional<z.ZodNumber>;
169
+ amount: z.ZodOptional<z.ZodString>;
170
170
  }, z.core.$strict>;
171
171
  export type CreateTaxReversalParams = z.input<typeof createTaxReversalParams>;
172
172
  export declare const taxTransactionRoutes: readonly [{
@@ -210,9 +210,9 @@ export declare const taxTransactionRoutes: readonly [{
210
210
  committed_at: z.ZodNumber;
211
211
  reversal_of: z.ZodNullable<z.ZodString>;
212
212
  reversal: z.ZodNullable<z.ZodObject<{
213
- amount_total: z.ZodNumber;
214
- amount_net: z.ZodNumber;
215
- tax_amount: z.ZodNumber;
213
+ amount_total: z.ZodString;
214
+ amount_net: z.ZodString;
215
+ tax_amount: z.ZodString;
216
216
  line_items: z.ZodArray<z.ZodObject<{
217
217
  reference: z.ZodString;
218
218
  quantity: z.ZodNumber;
@@ -221,9 +221,9 @@ export declare const taxTransactionRoutes: readonly [{
221
221
  inclusive: "inclusive";
222
222
  exclusive: "exclusive";
223
223
  }>;
224
- amount: z.ZodNumber;
225
- amount_tax: z.ZodNumber;
226
- amount_net: z.ZodNumber;
224
+ amount: z.ZodString;
225
+ amount_tax: z.ZodString;
226
+ amount_net: z.ZodString;
227
227
  breakdown: z.ZodArray<z.ZodObject<{
228
228
  country: z.ZodString;
229
229
  state: z.ZodNullable<z.ZodString>;
@@ -231,8 +231,8 @@ export declare const taxTransactionRoutes: readonly [{
231
231
  display_name: z.ZodNullable<z.ZodString>;
232
232
  tax_type: z.ZodNullable<z.ZodString>;
233
233
  rate_percentage: z.ZodNullable<z.ZodString>;
234
- taxable_amount: z.ZodNumber;
235
- amount: z.ZodNumber;
234
+ taxable_amount: z.ZodString;
235
+ amount: z.ZodString;
236
236
  inclusive: z.ZodBoolean;
237
237
  taxability_reason: z.ZodString;
238
238
  }, z.core.$strict>>;
@@ -253,10 +253,10 @@ export declare const taxTransactionRoutes: readonly [{
253
253
  customer_location_evidence_id: z.ZodString;
254
254
  country: z.ZodString;
255
255
  state: z.ZodNullable<z.ZodString>;
256
- amount_total: z.ZodNumber;
257
- amount_net: z.ZodNumber;
258
- tax_amount_exclusive: z.ZodNumber;
259
- tax_amount_inclusive: z.ZodNumber;
256
+ amount_total: z.ZodString;
257
+ amount_net: z.ZodString;
258
+ tax_amount_exclusive: z.ZodString;
259
+ tax_amount_inclusive: z.ZodString;
260
260
  line_items: z.ZodArray<z.ZodObject<{
261
261
  reference: z.ZodString;
262
262
  quantity: z.ZodNumber;
@@ -265,9 +265,9 @@ export declare const taxTransactionRoutes: readonly [{
265
265
  inclusive: "inclusive";
266
266
  exclusive: "exclusive";
267
267
  }>;
268
- amount: z.ZodNumber;
269
- amount_tax: z.ZodNumber;
270
- amount_net: z.ZodNumber;
268
+ amount: z.ZodString;
269
+ amount_tax: z.ZodString;
270
+ amount_net: z.ZodString;
271
271
  breakdown: z.ZodArray<z.ZodObject<{
272
272
  country: z.ZodString;
273
273
  state: z.ZodNullable<z.ZodString>;
@@ -275,8 +275,8 @@ export declare const taxTransactionRoutes: readonly [{
275
275
  display_name: z.ZodNullable<z.ZodString>;
276
276
  tax_type: z.ZodNullable<z.ZodString>;
277
277
  rate_percentage: z.ZodNullable<z.ZodString>;
278
- taxable_amount: z.ZodNumber;
279
- amount: z.ZodNumber;
278
+ taxable_amount: z.ZodString;
279
+ amount: z.ZodString;
280
280
  inclusive: z.ZodBoolean;
281
281
  taxability_reason: z.ZodString;
282
282
  }, z.core.$strict>>;
@@ -307,7 +307,7 @@ export declare const taxTransactionRoutes: readonly [{
307
307
  };
308
308
  readonly body: z.ZodObject<{
309
309
  reference: z.ZodString;
310
- amount: z.ZodOptional<z.ZodNumber>;
310
+ amount: z.ZodOptional<z.ZodString>;
311
311
  }, z.core.$strict>;
312
312
  readonly response: z.ZodObject<{
313
313
  object: z.ZodLiteral<"tax.transaction">;
@@ -322,9 +322,9 @@ export declare const taxTransactionRoutes: readonly [{
322
322
  committed_at: z.ZodNumber;
323
323
  reversal_of: z.ZodNullable<z.ZodString>;
324
324
  reversal: z.ZodNullable<z.ZodObject<{
325
- amount_total: z.ZodNumber;
326
- amount_net: z.ZodNumber;
327
- tax_amount: z.ZodNumber;
325
+ amount_total: z.ZodString;
326
+ amount_net: z.ZodString;
327
+ tax_amount: z.ZodString;
328
328
  line_items: z.ZodArray<z.ZodObject<{
329
329
  reference: z.ZodString;
330
330
  quantity: z.ZodNumber;
@@ -333,9 +333,9 @@ export declare const taxTransactionRoutes: readonly [{
333
333
  inclusive: "inclusive";
334
334
  exclusive: "exclusive";
335
335
  }>;
336
- amount: z.ZodNumber;
337
- amount_tax: z.ZodNumber;
338
- amount_net: z.ZodNumber;
336
+ amount: z.ZodString;
337
+ amount_tax: z.ZodString;
338
+ amount_net: z.ZodString;
339
339
  breakdown: z.ZodArray<z.ZodObject<{
340
340
  country: z.ZodString;
341
341
  state: z.ZodNullable<z.ZodString>;
@@ -343,8 +343,8 @@ export declare const taxTransactionRoutes: readonly [{
343
343
  display_name: z.ZodNullable<z.ZodString>;
344
344
  tax_type: z.ZodNullable<z.ZodString>;
345
345
  rate_percentage: z.ZodNullable<z.ZodString>;
346
- taxable_amount: z.ZodNumber;
347
- amount: z.ZodNumber;
346
+ taxable_amount: z.ZodString;
347
+ amount: z.ZodString;
348
348
  inclusive: z.ZodBoolean;
349
349
  taxability_reason: z.ZodString;
350
350
  }, z.core.$strict>>;
@@ -365,10 +365,10 @@ export declare const taxTransactionRoutes: readonly [{
365
365
  customer_location_evidence_id: z.ZodString;
366
366
  country: z.ZodString;
367
367
  state: z.ZodNullable<z.ZodString>;
368
- amount_total: z.ZodNumber;
369
- amount_net: z.ZodNumber;
370
- tax_amount_exclusive: z.ZodNumber;
371
- tax_amount_inclusive: z.ZodNumber;
368
+ amount_total: z.ZodString;
369
+ amount_net: z.ZodString;
370
+ tax_amount_exclusive: z.ZodString;
371
+ tax_amount_inclusive: z.ZodString;
372
372
  line_items: z.ZodArray<z.ZodObject<{
373
373
  reference: z.ZodString;
374
374
  quantity: z.ZodNumber;
@@ -377,9 +377,9 @@ export declare const taxTransactionRoutes: readonly [{
377
377
  inclusive: "inclusive";
378
378
  exclusive: "exclusive";
379
379
  }>;
380
- amount: z.ZodNumber;
381
- amount_tax: z.ZodNumber;
382
- amount_net: z.ZodNumber;
380
+ amount: z.ZodString;
381
+ amount_tax: z.ZodString;
382
+ amount_net: z.ZodString;
383
383
  breakdown: z.ZodArray<z.ZodObject<{
384
384
  country: z.ZodString;
385
385
  state: z.ZodNullable<z.ZodString>;
@@ -387,8 +387,8 @@ export declare const taxTransactionRoutes: readonly [{
387
387
  display_name: z.ZodNullable<z.ZodString>;
388
388
  tax_type: z.ZodNullable<z.ZodString>;
389
389
  rate_percentage: z.ZodNullable<z.ZodString>;
390
- taxable_amount: z.ZodNumber;
391
- amount: z.ZodNumber;
390
+ taxable_amount: z.ZodString;
391
+ amount: z.ZodString;
392
392
  inclusive: z.ZodBoolean;
393
393
  taxability_reason: z.ZodString;
394
394
  }, z.core.$strict>>;
@@ -86,12 +86,3 @@ export declare const METER_AGGREGATIONS: readonly ["sum", "count", "last"];
86
86
  export type MeterAggregation = (typeof METER_AGGREGATIONS)[number];
87
87
  export declare const METER_STATUSES: readonly ["active", "inactive"];
88
88
  export type MeterStatus = (typeof METER_STATUSES)[number];
89
- /** A provider subscription's status, as the recurring transport observes it. */
90
- export declare const BILLING_SUBSCRIPTION_STATUSES: readonly ["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"];
91
- export type BillingSubscriptionStatus = (typeof BILLING_SUBSCRIPTION_STATUSES)[number];
92
- /** `fiat` (Stripe and any further provider) or `faircoin` (native, to the merchant's watch-only wallet). */
93
- export declare const BILLING_RAIL_SETTLEMENTS: readonly ["fiat", "faircoin"];
94
- export type BillingRailSettlement = (typeof BILLING_RAIL_SETTLEMENTS)[number];
95
- /** `automatic`: the provider charges each period. `payer_initiated`: each period is an explicit payment. */
96
- export declare const BILLING_RAIL_RENEWALS: readonly ["automatic", "payer_initiated"];
97
- export type BillingRailRenewal = (typeof BILLING_RAIL_RENEWALS)[number];