@timbro/payments 0.2.0-next.0 → 0.2.0-next.2

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.
@@ -1760,118 +1760,6 @@ export interface components {
1760
1760
  version: string;
1761
1761
  };
1762
1762
  saleReference?: string;
1763
- /**
1764
- * Invoicing
1765
- * @description Fiscal intent is separate from the sale snapshot. Existing mode associates an already accepted Invoice; a restricted receipt capability is required for an Invoice owned by an independent Source.
1766
- */
1767
- invoicing?: {
1768
- /** @enum {string} */
1769
- type: "E31" | "E32" | "E45";
1770
- /** PaymentInvoiceBuyerInput */
1771
- buyer?: {
1772
- /** @constant */
1773
- kind: "anonymous";
1774
- } | {
1775
- /** @constant */
1776
- kind: "domestic";
1777
- taxId: string;
1778
- } | {
1779
- foreignId: string;
1780
- legalName: string;
1781
- address?: string;
1782
- contactName?: string;
1783
- /** Format: email */
1784
- email?: string;
1785
- /** @constant */
1786
- kind: "foreign";
1787
- };
1788
- /** Format: email */
1789
- deliveryEmail?: string;
1790
- allowedTypes?: ("E31" | "E32" | "E45")[];
1791
- isTypeLocked?: boolean;
1792
- isBuyerLocked?: boolean;
1793
- /** FiscalGovernmentEligibility */
1794
- governmentEligibility?: {
1795
- /** @constant */
1796
- entityKind: "central_government";
1797
- authorityReference: string;
1798
- } | {
1799
- /** @constant */
1800
- entityKind: "decentralized_or_autonomous";
1801
- authorityReference: string;
1802
- } | {
1803
- /** @constant */
1804
- entityKind: "social_security";
1805
- authorityReference: string;
1806
- } | {
1807
- /** @constant */
1808
- entityKind: "other_noncommercial_government";
1809
- authorityReference: string;
1810
- };
1811
- /** @constant */
1812
- mode: "automatic";
1813
- invoiceReference?: string;
1814
- } | {
1815
- /** @enum {string} */
1816
- type: "E31" | "E32" | "E45";
1817
- /** PaymentInvoiceBuyerInput */
1818
- buyer?: {
1819
- /** @constant */
1820
- kind: "anonymous";
1821
- } | {
1822
- /** @constant */
1823
- kind: "domestic";
1824
- taxId: string;
1825
- } | {
1826
- foreignId: string;
1827
- legalName: string;
1828
- address?: string;
1829
- contactName?: string;
1830
- /** Format: email */
1831
- email?: string;
1832
- /** @constant */
1833
- kind: "foreign";
1834
- };
1835
- /** Format: email */
1836
- deliveryEmail?: string;
1837
- allowedTypes?: ("E31" | "E32" | "E45")[];
1838
- isTypeLocked?: boolean;
1839
- isBuyerLocked?: boolean;
1840
- /** FiscalGovernmentEligibility */
1841
- governmentEligibility?: {
1842
- /** @constant */
1843
- entityKind: "central_government";
1844
- authorityReference: string;
1845
- } | {
1846
- /** @constant */
1847
- entityKind: "decentralized_or_autonomous";
1848
- authorityReference: string;
1849
- } | {
1850
- /** @constant */
1851
- entityKind: "social_security";
1852
- authorityReference: string;
1853
- } | {
1854
- /** @constant */
1855
- entityKind: "other_noncommercial_government";
1856
- authorityReference: string;
1857
- };
1858
- /** @constant */
1859
- mode: "merchant";
1860
- } | {
1861
- /** @constant */
1862
- mode: "existing";
1863
- /** Format: uuid */
1864
- invoiceId: string;
1865
- /**
1866
- * InvoiceReceiptCredential
1867
- * @description Restricted receipt access for an Invoice owned by an independent Source. Keep the token private.
1868
- */
1869
- receipt?: {
1870
- /** Format: uuid */
1871
- id: string;
1872
- accessToken: string;
1873
- };
1874
- };
1875
1763
  /**
1876
1764
  * Money
1877
1765
  * @description An exact decimal monetary amount.
@@ -2128,118 +2016,6 @@ export interface components {
2128
2016
  version: string;
2129
2017
  };
2130
2018
  saleReference?: string;
2131
- /**
2132
- * Invoicing
2133
- * @description Fiscal intent is separate from the sale snapshot. Existing mode associates an already accepted Invoice; a restricted receipt capability is required for an Invoice owned by an independent Source.
2134
- */
2135
- invoicing?: {
2136
- /** @enum {string} */
2137
- type: "E31" | "E32" | "E45";
2138
- /** PaymentInvoiceBuyerInput */
2139
- buyer?: {
2140
- /** @constant */
2141
- kind: "anonymous";
2142
- } | {
2143
- /** @constant */
2144
- kind: "domestic";
2145
- taxId: string;
2146
- } | {
2147
- foreignId: string;
2148
- legalName: string;
2149
- address?: string;
2150
- contactName?: string;
2151
- /** Format: email */
2152
- email?: string;
2153
- /** @constant */
2154
- kind: "foreign";
2155
- };
2156
- /** Format: email */
2157
- deliveryEmail?: string;
2158
- allowedTypes?: ("E31" | "E32" | "E45")[];
2159
- isTypeLocked?: boolean;
2160
- isBuyerLocked?: boolean;
2161
- /** FiscalGovernmentEligibility */
2162
- governmentEligibility?: {
2163
- /** @constant */
2164
- entityKind: "central_government";
2165
- authorityReference: string;
2166
- } | {
2167
- /** @constant */
2168
- entityKind: "decentralized_or_autonomous";
2169
- authorityReference: string;
2170
- } | {
2171
- /** @constant */
2172
- entityKind: "social_security";
2173
- authorityReference: string;
2174
- } | {
2175
- /** @constant */
2176
- entityKind: "other_noncommercial_government";
2177
- authorityReference: string;
2178
- };
2179
- /** @constant */
2180
- mode: "automatic";
2181
- invoiceReference?: string;
2182
- } | {
2183
- /** @enum {string} */
2184
- type: "E31" | "E32" | "E45";
2185
- /** PaymentInvoiceBuyerInput */
2186
- buyer?: {
2187
- /** @constant */
2188
- kind: "anonymous";
2189
- } | {
2190
- /** @constant */
2191
- kind: "domestic";
2192
- taxId: string;
2193
- } | {
2194
- foreignId: string;
2195
- legalName: string;
2196
- address?: string;
2197
- contactName?: string;
2198
- /** Format: email */
2199
- email?: string;
2200
- /** @constant */
2201
- kind: "foreign";
2202
- };
2203
- /** Format: email */
2204
- deliveryEmail?: string;
2205
- allowedTypes?: ("E31" | "E32" | "E45")[];
2206
- isTypeLocked?: boolean;
2207
- isBuyerLocked?: boolean;
2208
- /** FiscalGovernmentEligibility */
2209
- governmentEligibility?: {
2210
- /** @constant */
2211
- entityKind: "central_government";
2212
- authorityReference: string;
2213
- } | {
2214
- /** @constant */
2215
- entityKind: "decentralized_or_autonomous";
2216
- authorityReference: string;
2217
- } | {
2218
- /** @constant */
2219
- entityKind: "social_security";
2220
- authorityReference: string;
2221
- } | {
2222
- /** @constant */
2223
- entityKind: "other_noncommercial_government";
2224
- authorityReference: string;
2225
- };
2226
- /** @constant */
2227
- mode: "merchant";
2228
- } | {
2229
- /** @constant */
2230
- mode: "existing";
2231
- /** Format: uuid */
2232
- invoiceId: string;
2233
- /**
2234
- * InvoiceReceiptCredential
2235
- * @description Restricted receipt access for an Invoice owned by an independent Source. Keep the token private.
2236
- */
2237
- receipt?: {
2238
- /** Format: uuid */
2239
- id: string;
2240
- accessToken: string;
2241
- };
2242
- };
2243
2019
  /**
2244
2020
  * Money
2245
2021
  * @description An exact decimal monetary amount.
@@ -2932,6 +2708,10 @@ export interface components {
2932
2708
  items: {
2933
2709
  description: string;
2934
2710
  id?: null | string;
2711
+ itemCodes?: null | {
2712
+ code: string;
2713
+ typeCode: string;
2714
+ }[];
2935
2715
  /**
2936
2716
  * @description Whether a Source line describes a good or a service.
2937
2717
  * @enum {string}
@@ -3025,6 +2805,10 @@ export interface components {
3025
2805
  items: {
3026
2806
  description: string;
3027
2807
  id?: null | string;
2808
+ itemCodes?: null | {
2809
+ code: string;
2810
+ typeCode: string;
2811
+ }[];
3028
2812
  /**
3029
2813
  * @description Whether a Source line describes a good or a service.
3030
2814
  * @enum {string}
@@ -3636,6 +3420,10 @@ export interface components {
3636
3420
  items: {
3637
3421
  description: string;
3638
3422
  id?: null | string;
3423
+ itemCodes?: null | {
3424
+ code: string;
3425
+ typeCode: string;
3426
+ }[];
3639
3427
  /**
3640
3428
  * @description Whether a Source line describes a good or a service.
3641
3429
  * @enum {string}
@@ -3723,6 +3511,10 @@ export interface components {
3723
3511
  items: {
3724
3512
  description: string;
3725
3513
  id?: null | string;
3514
+ itemCodes?: null | {
3515
+ code: string;
3516
+ typeCode: string;
3517
+ }[];
3726
3518
  /**
3727
3519
  * @description Whether a Source line describes a good or a service.
3728
3520
  * @enum {string}
@@ -8864,6 +8656,10 @@ export interface operations {
8864
8656
  items: {
8865
8657
  description: string;
8866
8658
  id?: null | string;
8659
+ itemCodes?: null | {
8660
+ code: string;
8661
+ typeCode: string;
8662
+ }[];
8867
8663
  /**
8868
8664
  * @description Whether a Source line describes a good or a service.
8869
8665
  * @enum {string}
@@ -8957,6 +8753,10 @@ export interface operations {
8957
8753
  items: {
8958
8754
  description: string;
8959
8755
  id?: null | string;
8756
+ itemCodes?: null | {
8757
+ code: string;
8758
+ typeCode: string;
8759
+ }[];
8960
8760
  /**
8961
8761
  * @description Whether a Source line describes a good or a service.
8962
8762
  * @enum {string}
@@ -9568,6 +9368,10 @@ export interface operations {
9568
9368
  items: {
9569
9369
  description: string;
9570
9370
  id?: null | string;
9371
+ itemCodes?: null | {
9372
+ code: string;
9373
+ typeCode: string;
9374
+ }[];
9571
9375
  /**
9572
9376
  * @description Whether a Source line describes a good or a service.
9573
9377
  * @enum {string}
@@ -9655,6 +9459,10 @@ export interface operations {
9655
9459
  items: {
9656
9460
  description: string;
9657
9461
  id?: null | string;
9462
+ itemCodes?: null | {
9463
+ code: string;
9464
+ typeCode: string;
9465
+ }[];
9658
9466
  /**
9659
9467
  * @description Whether a Source line describes a good or a service.
9660
9468
  * @enum {string}
@@ -10474,6 +10282,10 @@ export interface operations {
10474
10282
  items: {
10475
10283
  description: string;
10476
10284
  id?: null | string;
10285
+ itemCodes?: null | {
10286
+ code: string;
10287
+ typeCode: string;
10288
+ }[];
10477
10289
  /**
10478
10290
  * @description Whether a Source line describes a good or a service.
10479
10291
  * @enum {string}
@@ -10567,6 +10379,10 @@ export interface operations {
10567
10379
  items: {
10568
10380
  description: string;
10569
10381
  id?: null | string;
10382
+ itemCodes?: null | {
10383
+ code: string;
10384
+ typeCode: string;
10385
+ }[];
10570
10386
  /**
10571
10387
  * @description Whether a Source line describes a good or a service.
10572
10388
  * @enum {string}
@@ -11178,6 +10994,10 @@ export interface operations {
11178
10994
  items: {
11179
10995
  description: string;
11180
10996
  id?: null | string;
10997
+ itemCodes?: null | {
10998
+ code: string;
10999
+ typeCode: string;
11000
+ }[];
11181
11001
  /**
11182
11002
  * @description Whether a Source line describes a good or a service.
11183
11003
  * @enum {string}
@@ -11265,6 +11085,10 @@ export interface operations {
11265
11085
  items: {
11266
11086
  description: string;
11267
11087
  id?: null | string;
11088
+ itemCodes?: null | {
11089
+ code: string;
11090
+ typeCode: string;
11091
+ }[];
11268
11092
  /**
11269
11093
  * @description Whether a Source line describes a good or a service.
11270
11094
  * @enum {string}
@@ -12099,6 +11923,10 @@ export interface operations {
12099
11923
  items: {
12100
11924
  description: string;
12101
11925
  id?: null | string;
11926
+ itemCodes?: null | {
11927
+ code: string;
11928
+ typeCode: string;
11929
+ }[];
12102
11930
  /**
12103
11931
  * @description Whether a Source line describes a good or a service.
12104
11932
  * @enum {string}
@@ -12192,6 +12020,10 @@ export interface operations {
12192
12020
  items: {
12193
12021
  description: string;
12194
12022
  id?: null | string;
12023
+ itemCodes?: null | {
12024
+ code: string;
12025
+ typeCode: string;
12026
+ }[];
12195
12027
  /**
12196
12028
  * @description Whether a Source line describes a good or a service.
12197
12029
  * @enum {string}
@@ -12803,6 +12635,10 @@ export interface operations {
12803
12635
  items: {
12804
12636
  description: string;
12805
12637
  id?: null | string;
12638
+ itemCodes?: null | {
12639
+ code: string;
12640
+ typeCode: string;
12641
+ }[];
12806
12642
  /**
12807
12643
  * @description Whether a Source line describes a good or a service.
12808
12644
  * @enum {string}
@@ -12890,6 +12726,10 @@ export interface operations {
12890
12726
  items: {
12891
12727
  description: string;
12892
12728
  id?: null | string;
12729
+ itemCodes?: null | {
12730
+ code: string;
12731
+ typeCode: string;
12732
+ }[];
12893
12733
  /**
12894
12734
  * @description Whether a Source line describes a good or a service.
12895
12735
  * @enum {string}
@@ -15712,6 +15552,10 @@ export interface operations {
15712
15552
  items: {
15713
15553
  description: string;
15714
15554
  id?: null | string;
15555
+ itemCodes?: null | {
15556
+ code: string;
15557
+ typeCode: string;
15558
+ }[];
15715
15559
  /**
15716
15560
  * @description Whether a Source line describes a good or a service.
15717
15561
  * @enum {string}
@@ -15805,6 +15649,10 @@ export interface operations {
15805
15649
  items: {
15806
15650
  description: string;
15807
15651
  id?: null | string;
15652
+ itemCodes?: null | {
15653
+ code: string;
15654
+ typeCode: string;
15655
+ }[];
15808
15656
  /**
15809
15657
  * @description Whether a Source line describes a good or a service.
15810
15658
  * @enum {string}
@@ -16416,6 +16264,10 @@ export interface operations {
16416
16264
  items: {
16417
16265
  description: string;
16418
16266
  id?: null | string;
16267
+ itemCodes?: null | {
16268
+ code: string;
16269
+ typeCode: string;
16270
+ }[];
16419
16271
  /**
16420
16272
  * @description Whether a Source line describes a good or a service.
16421
16273
  * @enum {string}
@@ -16503,6 +16355,10 @@ export interface operations {
16503
16355
  items: {
16504
16356
  description: string;
16505
16357
  id?: null | string;
16358
+ itemCodes?: null | {
16359
+ code: string;
16360
+ typeCode: string;
16361
+ }[];
16506
16362
  /**
16507
16363
  * @description Whether a Source line describes a good or a service.
16508
16364
  * @enum {string}
@@ -17498,118 +17354,6 @@ export interface operations {
17498
17354
  version: string;
17499
17355
  };
17500
17356
  saleReference?: string;
17501
- /**
17502
- * Invoicing
17503
- * @description Fiscal intent is separate from the sale snapshot. Existing mode associates an already accepted Invoice; a restricted receipt capability is required for an Invoice owned by an independent Source.
17504
- */
17505
- invoicing?: {
17506
- /** @enum {string} */
17507
- type: "E31" | "E32" | "E45";
17508
- /** PaymentInvoiceBuyerInput */
17509
- buyer?: {
17510
- /** @constant */
17511
- kind: "anonymous";
17512
- } | {
17513
- /** @constant */
17514
- kind: "domestic";
17515
- taxId: string;
17516
- } | {
17517
- foreignId: string;
17518
- legalName: string;
17519
- address?: string;
17520
- contactName?: string;
17521
- /** Format: email */
17522
- email?: string;
17523
- /** @constant */
17524
- kind: "foreign";
17525
- };
17526
- /** Format: email */
17527
- deliveryEmail?: string;
17528
- allowedTypes?: ("E31" | "E32" | "E45")[];
17529
- isTypeLocked?: boolean;
17530
- isBuyerLocked?: boolean;
17531
- /** FiscalGovernmentEligibility */
17532
- governmentEligibility?: {
17533
- /** @constant */
17534
- entityKind: "central_government";
17535
- authorityReference: string;
17536
- } | {
17537
- /** @constant */
17538
- entityKind: "decentralized_or_autonomous";
17539
- authorityReference: string;
17540
- } | {
17541
- /** @constant */
17542
- entityKind: "social_security";
17543
- authorityReference: string;
17544
- } | {
17545
- /** @constant */
17546
- entityKind: "other_noncommercial_government";
17547
- authorityReference: string;
17548
- };
17549
- /** @constant */
17550
- mode: "automatic";
17551
- invoiceReference?: string;
17552
- } | {
17553
- /** @enum {string} */
17554
- type: "E31" | "E32" | "E45";
17555
- /** PaymentInvoiceBuyerInput */
17556
- buyer?: {
17557
- /** @constant */
17558
- kind: "anonymous";
17559
- } | {
17560
- /** @constant */
17561
- kind: "domestic";
17562
- taxId: string;
17563
- } | {
17564
- foreignId: string;
17565
- legalName: string;
17566
- address?: string;
17567
- contactName?: string;
17568
- /** Format: email */
17569
- email?: string;
17570
- /** @constant */
17571
- kind: "foreign";
17572
- };
17573
- /** Format: email */
17574
- deliveryEmail?: string;
17575
- allowedTypes?: ("E31" | "E32" | "E45")[];
17576
- isTypeLocked?: boolean;
17577
- isBuyerLocked?: boolean;
17578
- /** FiscalGovernmentEligibility */
17579
- governmentEligibility?: {
17580
- /** @constant */
17581
- entityKind: "central_government";
17582
- authorityReference: string;
17583
- } | {
17584
- /** @constant */
17585
- entityKind: "decentralized_or_autonomous";
17586
- authorityReference: string;
17587
- } | {
17588
- /** @constant */
17589
- entityKind: "social_security";
17590
- authorityReference: string;
17591
- } | {
17592
- /** @constant */
17593
- entityKind: "other_noncommercial_government";
17594
- authorityReference: string;
17595
- };
17596
- /** @constant */
17597
- mode: "merchant";
17598
- } | {
17599
- /** @constant */
17600
- mode: "existing";
17601
- /** Format: uuid */
17602
- invoiceId: string;
17603
- /**
17604
- * InvoiceReceiptCredential
17605
- * @description Restricted receipt access for an Invoice owned by an independent Source. Keep the token private.
17606
- */
17607
- receipt?: {
17608
- /** Format: uuid */
17609
- id: string;
17610
- accessToken: string;
17611
- };
17612
- };
17613
17357
  /**
17614
17358
  * Money
17615
17359
  * @description An exact decimal monetary amount.