@peable.to/contracts 3.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/resources/billingEngine/public.js +22 -3
- package/dist/cjs/resources/checkout/checkoutSessions.js +34 -9
- package/dist/cjs/resources/checkout/merchants.js +10 -23
- package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +56 -10
- package/dist/cjs/resources/connect/balance.js +5 -0
- package/dist/cjs/resources/connect/connectedAccounts.js +11 -12
- package/dist/cjs/resources/connect/onboarding.js +13 -24
- package/dist/cjs/resources/payments/paymentIntents.js +39 -2
- package/dist/cjs/vocabulary/checkout.js +18 -1
- package/dist/cjs/vocabulary/errors.js +5 -3
- package/dist/cjs/vocabulary/paymentMethodConfigurations.js +24 -4
- package/dist/esm/resources/billingEngine/public.js +22 -3
- package/dist/esm/resources/checkout/checkoutSessions.js +35 -10
- package/dist/esm/resources/checkout/merchants.js +10 -23
- package/dist/esm/resources/checkout/paymentMethodConfigurations.js +57 -11
- package/dist/esm/resources/connect/balance.js +5 -0
- package/dist/esm/resources/connect/connectedAccounts.js +11 -12
- package/dist/esm/resources/connect/onboarding.js +12 -23
- package/dist/esm/resources/payments/paymentIntents.js +39 -2
- package/dist/esm/vocabulary/checkout.js +17 -0
- package/dist/esm/vocabulary/errors.js +5 -3
- package/dist/esm/vocabulary/paymentMethodConfigurations.js +25 -5
- package/dist/types/resources/billingEngine/index.d.ts +16 -2
- package/dist/types/resources/billingEngine/public.d.ts +32 -3
- package/dist/types/resources/checkout/checkoutSessions.d.ts +96 -31
- package/dist/types/resources/checkout/index.d.ts +406 -41
- package/dist/types/resources/checkout/merchants.d.ts +17 -28
- package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +440 -8
- package/dist/types/resources/connect/balance.d.ts +98 -5
- package/dist/types/resources/connect/connectedAccounts.d.ts +4 -4
- package/dist/types/resources/connect/index.d.ts +101 -10
- package/dist/types/resources/connect/onboarding.d.ts +15 -15
- package/dist/types/resources/connect/payouts.d.ts +64 -2
- package/dist/types/resources/payments/index.d.ts +310 -0
- package/dist/types/resources/payments/paymentIntents.d.ts +380 -0
- package/dist/types/resources/payments/testHelpers.d.ts +31 -0
- package/dist/types/resources/tax/deadlines.d.ts +3 -3
- package/dist/types/resources/tax/index.d.ts +2 -2
- package/dist/types/resources/tax/registrations.d.ts +2 -2
- package/dist/types/vocabulary/checkout.d.ts +13 -0
- package/dist/types/vocabulary/errors.d.ts +5 -3
- package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +21 -7
- package/package.json +1 -1
|
@@ -42,6 +42,45 @@ export declare const paymentIntentNextActionSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
42
42
|
type: z.ZodLiteral<"use_peable_sdk">;
|
|
43
43
|
}, z.core.$strict>], "type">;
|
|
44
44
|
export type PaymentIntentNextAction = z.output<typeof paymentIntentNextActionSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* The FairCoin price of a FIAT order (ADR 0021 D4), carried by the FairCoin
|
|
47
|
+
* payment the payer chose for it. Pricing, never exchange: the payer pays
|
|
48
|
+
* `amount` FAIR (the intent's) to the payee's own address, and no fiat moves.
|
|
49
|
+
* `rate` is for display; the FAIR amount is exactly
|
|
50
|
+
* `ceil(amount ÷ rate)` computed from the sources' own figures.
|
|
51
|
+
*/
|
|
52
|
+
export declare const faircoinQuoteSchema: z.ZodObject<{
|
|
53
|
+
currency: z.ZodEnum<{
|
|
54
|
+
EUR: "EUR";
|
|
55
|
+
USD: "USD";
|
|
56
|
+
GBP: "GBP";
|
|
57
|
+
CHF: "CHF";
|
|
58
|
+
SEK: "SEK";
|
|
59
|
+
NOK: "NOK";
|
|
60
|
+
DKK: "DKK";
|
|
61
|
+
PLN: "PLN";
|
|
62
|
+
CZK: "CZK";
|
|
63
|
+
CAD: "CAD";
|
|
64
|
+
AUD: "AUD";
|
|
65
|
+
JPY: "JPY";
|
|
66
|
+
}>;
|
|
67
|
+
amount: z.ZodString;
|
|
68
|
+
rate: z.ZodString;
|
|
69
|
+
price: z.ZodObject<{
|
|
70
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
71
|
+
usd_per_fair: z.ZodString;
|
|
72
|
+
observed_at: z.ZodNumber;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
source: z.ZodLiteral<"ecb">;
|
|
76
|
+
usd_per_eur: z.ZodString;
|
|
77
|
+
currency_per_eur: z.ZodString;
|
|
78
|
+
observed_at: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
quoted_at: z.ZodNumber;
|
|
81
|
+
expires_at: z.ZodNumber;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
export type FaircoinQuote = z.output<typeof faircoinQuoteSchema>;
|
|
45
84
|
/**
|
|
46
85
|
* The chain side of a FairCoin payment. `txid` and `confirmations` describe the
|
|
47
86
|
* transaction the payer reported: `null`/`0` while `requires_action`, the
|
|
@@ -56,6 +95,37 @@ export declare const paymentIntentFaircoinSchema: z.ZodObject<{
|
|
|
56
95
|
txid: z.ZodNullable<z.ZodString>;
|
|
57
96
|
confirmations: z.ZodNumber;
|
|
58
97
|
required_confirmations: z.ZodNumber;
|
|
98
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
currency: z.ZodEnum<{
|
|
100
|
+
EUR: "EUR";
|
|
101
|
+
USD: "USD";
|
|
102
|
+
GBP: "GBP";
|
|
103
|
+
CHF: "CHF";
|
|
104
|
+
SEK: "SEK";
|
|
105
|
+
NOK: "NOK";
|
|
106
|
+
DKK: "DKK";
|
|
107
|
+
PLN: "PLN";
|
|
108
|
+
CZK: "CZK";
|
|
109
|
+
CAD: "CAD";
|
|
110
|
+
AUD: "AUD";
|
|
111
|
+
JPY: "JPY";
|
|
112
|
+
}>;
|
|
113
|
+
amount: z.ZodString;
|
|
114
|
+
rate: z.ZodString;
|
|
115
|
+
price: z.ZodObject<{
|
|
116
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
117
|
+
usd_per_fair: z.ZodString;
|
|
118
|
+
observed_at: z.ZodNumber;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
121
|
+
source: z.ZodLiteral<"ecb">;
|
|
122
|
+
usd_per_eur: z.ZodString;
|
|
123
|
+
currency_per_eur: z.ZodString;
|
|
124
|
+
observed_at: z.ZodNumber;
|
|
125
|
+
}, z.core.$strict>>;
|
|
126
|
+
quoted_at: z.ZodNumber;
|
|
127
|
+
expires_at: z.ZodNumber;
|
|
128
|
+
}, z.core.$strict>>;
|
|
59
129
|
}, z.core.$strict>;
|
|
60
130
|
export type PaymentIntentFaircoin = z.output<typeof paymentIntentFaircoinSchema>;
|
|
61
131
|
/** Where a destination charge's funds go (`transfer_data`, ADR 0015 §2). */
|
|
@@ -206,6 +276,37 @@ export declare const paymentIntentSchema: z.ZodObject<{
|
|
|
206
276
|
txid: z.ZodNullable<z.ZodString>;
|
|
207
277
|
confirmations: z.ZodNumber;
|
|
208
278
|
required_confirmations: z.ZodNumber;
|
|
279
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
280
|
+
currency: z.ZodEnum<{
|
|
281
|
+
EUR: "EUR";
|
|
282
|
+
USD: "USD";
|
|
283
|
+
GBP: "GBP";
|
|
284
|
+
CHF: "CHF";
|
|
285
|
+
SEK: "SEK";
|
|
286
|
+
NOK: "NOK";
|
|
287
|
+
DKK: "DKK";
|
|
288
|
+
PLN: "PLN";
|
|
289
|
+
CZK: "CZK";
|
|
290
|
+
CAD: "CAD";
|
|
291
|
+
AUD: "AUD";
|
|
292
|
+
JPY: "JPY";
|
|
293
|
+
}>;
|
|
294
|
+
amount: z.ZodString;
|
|
295
|
+
rate: z.ZodString;
|
|
296
|
+
price: z.ZodObject<{
|
|
297
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
298
|
+
usd_per_fair: z.ZodString;
|
|
299
|
+
observed_at: z.ZodNumber;
|
|
300
|
+
}, z.core.$strict>;
|
|
301
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
302
|
+
source: z.ZodLiteral<"ecb">;
|
|
303
|
+
usd_per_eur: z.ZodString;
|
|
304
|
+
currency_per_eur: z.ZodString;
|
|
305
|
+
observed_at: z.ZodNumber;
|
|
306
|
+
}, z.core.$strict>>;
|
|
307
|
+
quoted_at: z.ZodNumber;
|
|
308
|
+
expires_at: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>>;
|
|
209
310
|
}, z.core.$strict>>;
|
|
210
311
|
merchant_id: z.ZodString;
|
|
211
312
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -672,6 +773,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
672
773
|
txid: z.ZodNullable<z.ZodString>;
|
|
673
774
|
confirmations: z.ZodNumber;
|
|
674
775
|
required_confirmations: z.ZodNumber;
|
|
776
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
777
|
+
currency: z.ZodEnum<{
|
|
778
|
+
EUR: "EUR";
|
|
779
|
+
USD: "USD";
|
|
780
|
+
GBP: "GBP";
|
|
781
|
+
CHF: "CHF";
|
|
782
|
+
SEK: "SEK";
|
|
783
|
+
NOK: "NOK";
|
|
784
|
+
DKK: "DKK";
|
|
785
|
+
PLN: "PLN";
|
|
786
|
+
CZK: "CZK";
|
|
787
|
+
CAD: "CAD";
|
|
788
|
+
AUD: "AUD";
|
|
789
|
+
JPY: "JPY";
|
|
790
|
+
}>;
|
|
791
|
+
amount: z.ZodString;
|
|
792
|
+
rate: z.ZodString;
|
|
793
|
+
price: z.ZodObject<{
|
|
794
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
795
|
+
usd_per_fair: z.ZodString;
|
|
796
|
+
observed_at: z.ZodNumber;
|
|
797
|
+
}, z.core.$strict>;
|
|
798
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
799
|
+
source: z.ZodLiteral<"ecb">;
|
|
800
|
+
usd_per_eur: z.ZodString;
|
|
801
|
+
currency_per_eur: z.ZodString;
|
|
802
|
+
observed_at: z.ZodNumber;
|
|
803
|
+
}, z.core.$strict>>;
|
|
804
|
+
quoted_at: z.ZodNumber;
|
|
805
|
+
expires_at: z.ZodNumber;
|
|
806
|
+
}, z.core.$strict>>;
|
|
675
807
|
}, z.core.$strict>>;
|
|
676
808
|
merchant_id: z.ZodString;
|
|
677
809
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -854,6 +986,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
854
986
|
txid: z.ZodNullable<z.ZodString>;
|
|
855
987
|
confirmations: z.ZodNumber;
|
|
856
988
|
required_confirmations: z.ZodNumber;
|
|
989
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
990
|
+
currency: z.ZodEnum<{
|
|
991
|
+
EUR: "EUR";
|
|
992
|
+
USD: "USD";
|
|
993
|
+
GBP: "GBP";
|
|
994
|
+
CHF: "CHF";
|
|
995
|
+
SEK: "SEK";
|
|
996
|
+
NOK: "NOK";
|
|
997
|
+
DKK: "DKK";
|
|
998
|
+
PLN: "PLN";
|
|
999
|
+
CZK: "CZK";
|
|
1000
|
+
CAD: "CAD";
|
|
1001
|
+
AUD: "AUD";
|
|
1002
|
+
JPY: "JPY";
|
|
1003
|
+
}>;
|
|
1004
|
+
amount: z.ZodString;
|
|
1005
|
+
rate: z.ZodString;
|
|
1006
|
+
price: z.ZodObject<{
|
|
1007
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
1008
|
+
usd_per_fair: z.ZodString;
|
|
1009
|
+
observed_at: z.ZodNumber;
|
|
1010
|
+
}, z.core.$strict>;
|
|
1011
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
1012
|
+
source: z.ZodLiteral<"ecb">;
|
|
1013
|
+
usd_per_eur: z.ZodString;
|
|
1014
|
+
currency_per_eur: z.ZodString;
|
|
1015
|
+
observed_at: z.ZodNumber;
|
|
1016
|
+
}, z.core.$strict>>;
|
|
1017
|
+
quoted_at: z.ZodNumber;
|
|
1018
|
+
expires_at: z.ZodNumber;
|
|
1019
|
+
}, z.core.$strict>>;
|
|
857
1020
|
}, z.core.$strict>>;
|
|
858
1021
|
merchant_id: z.ZodString;
|
|
859
1022
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1017,6 +1180,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1017
1180
|
txid: z.ZodNullable<z.ZodString>;
|
|
1018
1181
|
confirmations: z.ZodNumber;
|
|
1019
1182
|
required_confirmations: z.ZodNumber;
|
|
1183
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
1184
|
+
currency: z.ZodEnum<{
|
|
1185
|
+
EUR: "EUR";
|
|
1186
|
+
USD: "USD";
|
|
1187
|
+
GBP: "GBP";
|
|
1188
|
+
CHF: "CHF";
|
|
1189
|
+
SEK: "SEK";
|
|
1190
|
+
NOK: "NOK";
|
|
1191
|
+
DKK: "DKK";
|
|
1192
|
+
PLN: "PLN";
|
|
1193
|
+
CZK: "CZK";
|
|
1194
|
+
CAD: "CAD";
|
|
1195
|
+
AUD: "AUD";
|
|
1196
|
+
JPY: "JPY";
|
|
1197
|
+
}>;
|
|
1198
|
+
amount: z.ZodString;
|
|
1199
|
+
rate: z.ZodString;
|
|
1200
|
+
price: z.ZodObject<{
|
|
1201
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
1202
|
+
usd_per_fair: z.ZodString;
|
|
1203
|
+
observed_at: z.ZodNumber;
|
|
1204
|
+
}, z.core.$strict>;
|
|
1205
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
1206
|
+
source: z.ZodLiteral<"ecb">;
|
|
1207
|
+
usd_per_eur: z.ZodString;
|
|
1208
|
+
currency_per_eur: z.ZodString;
|
|
1209
|
+
observed_at: z.ZodNumber;
|
|
1210
|
+
}, z.core.$strict>>;
|
|
1211
|
+
quoted_at: z.ZodNumber;
|
|
1212
|
+
expires_at: z.ZodNumber;
|
|
1213
|
+
}, z.core.$strict>>;
|
|
1020
1214
|
}, z.core.$strict>>;
|
|
1021
1215
|
merchant_id: z.ZodString;
|
|
1022
1216
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1194,6 +1388,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1194
1388
|
txid: z.ZodNullable<z.ZodString>;
|
|
1195
1389
|
confirmations: z.ZodNumber;
|
|
1196
1390
|
required_confirmations: z.ZodNumber;
|
|
1391
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
1392
|
+
currency: z.ZodEnum<{
|
|
1393
|
+
EUR: "EUR";
|
|
1394
|
+
USD: "USD";
|
|
1395
|
+
GBP: "GBP";
|
|
1396
|
+
CHF: "CHF";
|
|
1397
|
+
SEK: "SEK";
|
|
1398
|
+
NOK: "NOK";
|
|
1399
|
+
DKK: "DKK";
|
|
1400
|
+
PLN: "PLN";
|
|
1401
|
+
CZK: "CZK";
|
|
1402
|
+
CAD: "CAD";
|
|
1403
|
+
AUD: "AUD";
|
|
1404
|
+
JPY: "JPY";
|
|
1405
|
+
}>;
|
|
1406
|
+
amount: z.ZodString;
|
|
1407
|
+
rate: z.ZodString;
|
|
1408
|
+
price: z.ZodObject<{
|
|
1409
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
1410
|
+
usd_per_fair: z.ZodString;
|
|
1411
|
+
observed_at: z.ZodNumber;
|
|
1412
|
+
}, z.core.$strict>;
|
|
1413
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
1414
|
+
source: z.ZodLiteral<"ecb">;
|
|
1415
|
+
usd_per_eur: z.ZodString;
|
|
1416
|
+
currency_per_eur: z.ZodString;
|
|
1417
|
+
observed_at: z.ZodNumber;
|
|
1418
|
+
}, z.core.$strict>>;
|
|
1419
|
+
quoted_at: z.ZodNumber;
|
|
1420
|
+
expires_at: z.ZodNumber;
|
|
1421
|
+
}, z.core.$strict>>;
|
|
1197
1422
|
}, z.core.$strict>>;
|
|
1198
1423
|
merchant_id: z.ZodString;
|
|
1199
1424
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1401,6 +1626,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1401
1626
|
txid: z.ZodNullable<z.ZodString>;
|
|
1402
1627
|
confirmations: z.ZodNumber;
|
|
1403
1628
|
required_confirmations: z.ZodNumber;
|
|
1629
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
1630
|
+
currency: z.ZodEnum<{
|
|
1631
|
+
EUR: "EUR";
|
|
1632
|
+
USD: "USD";
|
|
1633
|
+
GBP: "GBP";
|
|
1634
|
+
CHF: "CHF";
|
|
1635
|
+
SEK: "SEK";
|
|
1636
|
+
NOK: "NOK";
|
|
1637
|
+
DKK: "DKK";
|
|
1638
|
+
PLN: "PLN";
|
|
1639
|
+
CZK: "CZK";
|
|
1640
|
+
CAD: "CAD";
|
|
1641
|
+
AUD: "AUD";
|
|
1642
|
+
JPY: "JPY";
|
|
1643
|
+
}>;
|
|
1644
|
+
amount: z.ZodString;
|
|
1645
|
+
rate: z.ZodString;
|
|
1646
|
+
price: z.ZodObject<{
|
|
1647
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
1648
|
+
usd_per_fair: z.ZodString;
|
|
1649
|
+
observed_at: z.ZodNumber;
|
|
1650
|
+
}, z.core.$strict>;
|
|
1651
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
1652
|
+
source: z.ZodLiteral<"ecb">;
|
|
1653
|
+
usd_per_eur: z.ZodString;
|
|
1654
|
+
currency_per_eur: z.ZodString;
|
|
1655
|
+
observed_at: z.ZodNumber;
|
|
1656
|
+
}, z.core.$strict>>;
|
|
1657
|
+
quoted_at: z.ZodNumber;
|
|
1658
|
+
expires_at: z.ZodNumber;
|
|
1659
|
+
}, z.core.$strict>>;
|
|
1404
1660
|
}, z.core.$strict>>;
|
|
1405
1661
|
merchant_id: z.ZodString;
|
|
1406
1662
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1562,6 +1818,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1562
1818
|
txid: z.ZodNullable<z.ZodString>;
|
|
1563
1819
|
confirmations: z.ZodNumber;
|
|
1564
1820
|
required_confirmations: z.ZodNumber;
|
|
1821
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
1822
|
+
currency: z.ZodEnum<{
|
|
1823
|
+
EUR: "EUR";
|
|
1824
|
+
USD: "USD";
|
|
1825
|
+
GBP: "GBP";
|
|
1826
|
+
CHF: "CHF";
|
|
1827
|
+
SEK: "SEK";
|
|
1828
|
+
NOK: "NOK";
|
|
1829
|
+
DKK: "DKK";
|
|
1830
|
+
PLN: "PLN";
|
|
1831
|
+
CZK: "CZK";
|
|
1832
|
+
CAD: "CAD";
|
|
1833
|
+
AUD: "AUD";
|
|
1834
|
+
JPY: "JPY";
|
|
1835
|
+
}>;
|
|
1836
|
+
amount: z.ZodString;
|
|
1837
|
+
rate: z.ZodString;
|
|
1838
|
+
price: z.ZodObject<{
|
|
1839
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
1840
|
+
usd_per_fair: z.ZodString;
|
|
1841
|
+
observed_at: z.ZodNumber;
|
|
1842
|
+
}, z.core.$strict>;
|
|
1843
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
1844
|
+
source: z.ZodLiteral<"ecb">;
|
|
1845
|
+
usd_per_eur: z.ZodString;
|
|
1846
|
+
currency_per_eur: z.ZodString;
|
|
1847
|
+
observed_at: z.ZodNumber;
|
|
1848
|
+
}, z.core.$strict>>;
|
|
1849
|
+
quoted_at: z.ZodNumber;
|
|
1850
|
+
expires_at: z.ZodNumber;
|
|
1851
|
+
}, z.core.$strict>>;
|
|
1565
1852
|
}, z.core.$strict>>;
|
|
1566
1853
|
merchant_id: z.ZodString;
|
|
1567
1854
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1728,6 +2015,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1728
2015
|
txid: z.ZodNullable<z.ZodString>;
|
|
1729
2016
|
confirmations: z.ZodNumber;
|
|
1730
2017
|
required_confirmations: z.ZodNumber;
|
|
2018
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
2019
|
+
currency: z.ZodEnum<{
|
|
2020
|
+
EUR: "EUR";
|
|
2021
|
+
USD: "USD";
|
|
2022
|
+
GBP: "GBP";
|
|
2023
|
+
CHF: "CHF";
|
|
2024
|
+
SEK: "SEK";
|
|
2025
|
+
NOK: "NOK";
|
|
2026
|
+
DKK: "DKK";
|
|
2027
|
+
PLN: "PLN";
|
|
2028
|
+
CZK: "CZK";
|
|
2029
|
+
CAD: "CAD";
|
|
2030
|
+
AUD: "AUD";
|
|
2031
|
+
JPY: "JPY";
|
|
2032
|
+
}>;
|
|
2033
|
+
amount: z.ZodString;
|
|
2034
|
+
rate: z.ZodString;
|
|
2035
|
+
price: z.ZodObject<{
|
|
2036
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
2037
|
+
usd_per_fair: z.ZodString;
|
|
2038
|
+
observed_at: z.ZodNumber;
|
|
2039
|
+
}, z.core.$strict>;
|
|
2040
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
2041
|
+
source: z.ZodLiteral<"ecb">;
|
|
2042
|
+
usd_per_eur: z.ZodString;
|
|
2043
|
+
currency_per_eur: z.ZodString;
|
|
2044
|
+
observed_at: z.ZodNumber;
|
|
2045
|
+
}, z.core.$strict>>;
|
|
2046
|
+
quoted_at: z.ZodNumber;
|
|
2047
|
+
expires_at: z.ZodNumber;
|
|
2048
|
+
}, z.core.$strict>>;
|
|
1731
2049
|
}, z.core.$strict>>;
|
|
1732
2050
|
merchant_id: z.ZodString;
|
|
1733
2051
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -1887,6 +2205,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
1887
2205
|
txid: z.ZodNullable<z.ZodString>;
|
|
1888
2206
|
confirmations: z.ZodNumber;
|
|
1889
2207
|
required_confirmations: z.ZodNumber;
|
|
2208
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
2209
|
+
currency: z.ZodEnum<{
|
|
2210
|
+
EUR: "EUR";
|
|
2211
|
+
USD: "USD";
|
|
2212
|
+
GBP: "GBP";
|
|
2213
|
+
CHF: "CHF";
|
|
2214
|
+
SEK: "SEK";
|
|
2215
|
+
NOK: "NOK";
|
|
2216
|
+
DKK: "DKK";
|
|
2217
|
+
PLN: "PLN";
|
|
2218
|
+
CZK: "CZK";
|
|
2219
|
+
CAD: "CAD";
|
|
2220
|
+
AUD: "AUD";
|
|
2221
|
+
JPY: "JPY";
|
|
2222
|
+
}>;
|
|
2223
|
+
amount: z.ZodString;
|
|
2224
|
+
rate: z.ZodString;
|
|
2225
|
+
price: z.ZodObject<{
|
|
2226
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
2227
|
+
usd_per_fair: z.ZodString;
|
|
2228
|
+
observed_at: z.ZodNumber;
|
|
2229
|
+
}, z.core.$strict>;
|
|
2230
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
2231
|
+
source: z.ZodLiteral<"ecb">;
|
|
2232
|
+
usd_per_eur: z.ZodString;
|
|
2233
|
+
currency_per_eur: z.ZodString;
|
|
2234
|
+
observed_at: z.ZodNumber;
|
|
2235
|
+
}, z.core.$strict>>;
|
|
2236
|
+
quoted_at: z.ZodNumber;
|
|
2237
|
+
expires_at: z.ZodNumber;
|
|
2238
|
+
}, z.core.$strict>>;
|
|
1890
2239
|
}, z.core.$strict>>;
|
|
1891
2240
|
merchant_id: z.ZodString;
|
|
1892
2241
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -2046,6 +2395,37 @@ export declare const paymentIntentRoutes: readonly [{
|
|
|
2046
2395
|
txid: z.ZodNullable<z.ZodString>;
|
|
2047
2396
|
confirmations: z.ZodNumber;
|
|
2048
2397
|
required_confirmations: z.ZodNumber;
|
|
2398
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
2399
|
+
currency: z.ZodEnum<{
|
|
2400
|
+
EUR: "EUR";
|
|
2401
|
+
USD: "USD";
|
|
2402
|
+
GBP: "GBP";
|
|
2403
|
+
CHF: "CHF";
|
|
2404
|
+
SEK: "SEK";
|
|
2405
|
+
NOK: "NOK";
|
|
2406
|
+
DKK: "DKK";
|
|
2407
|
+
PLN: "PLN";
|
|
2408
|
+
CZK: "CZK";
|
|
2409
|
+
CAD: "CAD";
|
|
2410
|
+
AUD: "AUD";
|
|
2411
|
+
JPY: "JPY";
|
|
2412
|
+
}>;
|
|
2413
|
+
amount: z.ZodString;
|
|
2414
|
+
rate: z.ZodString;
|
|
2415
|
+
price: z.ZodObject<{
|
|
2416
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
2417
|
+
usd_per_fair: z.ZodString;
|
|
2418
|
+
observed_at: z.ZodNumber;
|
|
2419
|
+
}, z.core.$strict>;
|
|
2420
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
2421
|
+
source: z.ZodLiteral<"ecb">;
|
|
2422
|
+
usd_per_eur: z.ZodString;
|
|
2423
|
+
currency_per_eur: z.ZodString;
|
|
2424
|
+
observed_at: z.ZodNumber;
|
|
2425
|
+
}, z.core.$strict>>;
|
|
2426
|
+
quoted_at: z.ZodNumber;
|
|
2427
|
+
expires_at: z.ZodNumber;
|
|
2428
|
+
}, z.core.$strict>>;
|
|
2049
2429
|
}, z.core.$strict>>;
|
|
2050
2430
|
merchant_id: z.ZodString;
|
|
2051
2431
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -150,6 +150,37 @@ export declare const paymentIntentTestHelperRoutes: readonly [{
|
|
|
150
150
|
txid: z.ZodNullable<z.ZodString>;
|
|
151
151
|
confirmations: z.ZodNumber;
|
|
152
152
|
required_confirmations: z.ZodNumber;
|
|
153
|
+
quote: z.ZodNullable<z.ZodObject<{
|
|
154
|
+
currency: z.ZodEnum<{
|
|
155
|
+
EUR: "EUR";
|
|
156
|
+
USD: "USD";
|
|
157
|
+
GBP: "GBP";
|
|
158
|
+
CHF: "CHF";
|
|
159
|
+
SEK: "SEK";
|
|
160
|
+
NOK: "NOK";
|
|
161
|
+
DKK: "DKK";
|
|
162
|
+
PLN: "PLN";
|
|
163
|
+
CZK: "CZK";
|
|
164
|
+
CAD: "CAD";
|
|
165
|
+
AUD: "AUD";
|
|
166
|
+
JPY: "JPY";
|
|
167
|
+
}>;
|
|
168
|
+
amount: z.ZodString;
|
|
169
|
+
rate: z.ZodString;
|
|
170
|
+
price: z.ZodObject<{
|
|
171
|
+
source: z.ZodLiteral<"wfair-base">;
|
|
172
|
+
usd_per_fair: z.ZodString;
|
|
173
|
+
observed_at: z.ZodNumber;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
reference_rates: z.ZodNullable<z.ZodObject<{
|
|
176
|
+
source: z.ZodLiteral<"ecb">;
|
|
177
|
+
usd_per_eur: z.ZodString;
|
|
178
|
+
currency_per_eur: z.ZodString;
|
|
179
|
+
observed_at: z.ZodNumber;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
quoted_at: z.ZodNumber;
|
|
182
|
+
expires_at: z.ZodNumber;
|
|
183
|
+
}, z.core.$strict>>;
|
|
153
184
|
}, z.core.$strict>>;
|
|
154
185
|
merchant_id: z.ZodString;
|
|
155
186
|
connected_account: z.ZodNullable<z.ZodType<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">, z.core.$ZodTypeInternals<string | import("../..").Ref<"connected_account">, string | import("../..").Ref<"connected_account">>>>;
|
|
@@ -7,8 +7,8 @@ import { type Expand } from '../../common/objects';
|
|
|
7
7
|
export declare const taxDeadlineSchema: z.ZodObject<{
|
|
8
8
|
object: z.ZodLiteral<"tax.deadline">;
|
|
9
9
|
kind: z.ZodEnum<{
|
|
10
|
-
return: "return";
|
|
11
10
|
payment: "payment";
|
|
11
|
+
return: "return";
|
|
12
12
|
registration: "registration";
|
|
13
13
|
}>;
|
|
14
14
|
rule: z.ZodString;
|
|
@@ -50,8 +50,8 @@ export declare const taxDeadlineListSchema: z.ZodObject<{
|
|
|
50
50
|
data: z.ZodArray<z.ZodObject<{
|
|
51
51
|
object: z.ZodLiteral<"tax.deadline">;
|
|
52
52
|
kind: z.ZodEnum<{
|
|
53
|
-
return: "return";
|
|
54
53
|
payment: "payment";
|
|
54
|
+
return: "return";
|
|
55
55
|
registration: "registration";
|
|
56
56
|
}>;
|
|
57
57
|
rule: z.ZodString;
|
|
@@ -97,8 +97,8 @@ export declare const taxDeadlineRoutes: readonly [{
|
|
|
97
97
|
data: z.ZodArray<z.ZodObject<{
|
|
98
98
|
object: z.ZodLiteral<"tax.deadline">;
|
|
99
99
|
kind: z.ZodEnum<{
|
|
100
|
-
return: "return";
|
|
101
100
|
payment: "payment";
|
|
101
|
+
return: "return";
|
|
102
102
|
registration: "registration";
|
|
103
103
|
}>;
|
|
104
104
|
rule: z.ZodString;
|
|
@@ -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";
|
|
111
112
|
pending_approval: "pending_approval";
|
|
112
113
|
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>;
|
|
@@ -1275,8 +1275,8 @@ export declare const taxRoutes: readonly [{
|
|
|
1275
1275
|
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1276
1276
|
object: import("zod").ZodLiteral<"tax.deadline">;
|
|
1277
1277
|
kind: import("zod").ZodEnum<{
|
|
1278
|
-
return: "return";
|
|
1279
1278
|
payment: "payment";
|
|
1279
|
+
return: "return";
|
|
1280
1280
|
registration: "registration";
|
|
1281
1281
|
}>;
|
|
1282
1282
|
rule: import("zod").ZodString;
|
|
@@ -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";
|
|
26
27
|
pending_approval: "pending_approval";
|
|
27
28
|
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";
|
|
91
92
|
pending_approval: "pending_approval";
|
|
92
93
|
scheduled: "scheduled";
|
|
93
|
-
expired: "expired";
|
|
94
94
|
}>;
|
|
95
95
|
approved_at: z.ZodNullable<z.ZodNumber>;
|
|
96
96
|
provider_registration_ref: z.ZodNullable<z.ZodString>;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why FairCoin cannot be paid with on an order right now (ADR 0021). It is
|
|
3
|
+
* still offered — never hidden — and says why:
|
|
4
|
+
*
|
|
5
|
+
* - `faircoin_wallet_missing` — the Peable wallet of the account that receives
|
|
6
|
+
* (the merchant's owner, or the seller) isn't set up yet: no identity key;
|
|
7
|
+
* - `faircoin_network_closed` — this deployment does not open payments on the
|
|
8
|
+
* order's FairCoin network yet (ADR 0002's gate);
|
|
9
|
+
* - `price_unavailable` — no fresh FairCoin price exists to quote a fiat order;
|
|
10
|
+
* - `temporarily_unavailable` — whether the wallet exists could not be checked.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FAIRCOIN_UNAVAILABLE_REASONS: readonly ["faircoin_wallet_missing", "faircoin_network_closed", "price_unavailable", "temporarily_unavailable"];
|
|
13
|
+
export type FaircoinUnavailableReason = (typeof FAIRCOIN_UNAVAILABLE_REASONS)[number];
|
|
1
14
|
export declare const CHECKOUT_SESSION_MODES: readonly ["payment", "setup", "subscription"];
|
|
2
15
|
export type CheckoutSessionMode = (typeof CHECKOUT_SESSION_MODES)[number];
|
|
3
16
|
export declare const CHECKOUT_SESSION_STATUSES: readonly ["open", "complete", "expired"];
|
|
@@ -34,6 +34,7 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
34
34
|
readonly parameter_missing: "A required parameter is missing; `param` names it.";
|
|
35
35
|
readonly parameter_unknown: "The request carries a parameter this route does not accept; `param` names it.";
|
|
36
36
|
readonly payment_intent_unexpected_state: "The PaymentIntent is in a status that does not allow this operation.";
|
|
37
|
+
readonly payment_method_locked: "The payment method cannot be turned off or removed: FairCoin is always offered to every payer; `param` names the field.";
|
|
37
38
|
readonly payout_not_allowed: "Payouts cannot be created for this account.";
|
|
38
39
|
readonly rate_limited: "Too many requests; back off and retry.";
|
|
39
40
|
readonly refund_not_cancelable: "The refund has already left a cancelable state.";
|
|
@@ -44,7 +45,6 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
44
45
|
readonly test_mode_only: "This operation exists in test mode only.";
|
|
45
46
|
readonly too_many_streams: "Too many live streams are open for this merchant.";
|
|
46
47
|
readonly url_invalid: "The URL is not an allowed https URL.";
|
|
47
|
-
readonly watch_only_violation: "The extended key carries a private key. Peable only ever accepts watch-only (public) keys.";
|
|
48
48
|
readonly webhook_endpoint_disabled: "The webhook endpoint is disabled.";
|
|
49
49
|
readonly webhook_endpoint_limit_reached: "The merchant already has the maximum number of webhook endpoints.";
|
|
50
50
|
readonly account_not_ready: "The connected account cannot take this payment yet: its onboarding or a capability is incomplete.";
|
|
@@ -105,6 +105,9 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
105
105
|
readonly promotion_code_minimum_amount: "The purchase is below the promotion code minimum amount.";
|
|
106
106
|
readonly payment_method_missing: "No payment method is available to charge.";
|
|
107
107
|
readonly faircoin_cannot_debit: "A FairCoin invoice cannot be charged automatically: the payer signs every payment.";
|
|
108
|
+
readonly faircoin_price_unavailable: "No fresh FairCoin price exists right now, so this order cannot be quoted in FAIR. The other payment methods still work; try FairCoin again shortly.";
|
|
109
|
+
readonly faircoin_wallet_missing: "The Peable wallet that receives this payment (the merchant owner's, or the seller's) isn't set up yet, so it cannot be paid in FairCoin. The other payment methods still work.";
|
|
110
|
+
readonly faircoin_network_closed: "FairCoin payments on this network are not open on this deployment yet. The other payment methods still work.";
|
|
108
111
|
readonly credit_note_exceeds_invoice: "The credit note's amount exceeds what the invoice can still credit.";
|
|
109
112
|
readonly test_clock_unexpected_state: "The test clock is advancing; wait until it is ready.";
|
|
110
113
|
readonly meter_event_customer_missing: "The meter event names no customer of this merchant.";
|
|
@@ -116,8 +119,7 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
116
119
|
readonly network_mismatch: "The FairCoin network differs from the one this object uses.";
|
|
117
120
|
readonly link_expired: "The onboarding link has expired or was already used; `refresh_url` is where the seller gets a fresh one.";
|
|
118
121
|
readonly wrong_seller: "The onboarding link names a different Oxy account; sign in as the seller it was minted for.";
|
|
119
|
-
readonly already_registered: "The seller already
|
|
120
|
-
readonly key_in_use: "The key already receives payments for another account.";
|
|
122
|
+
readonly already_registered: "The seller already confirmed FairCoin payments into their Peable wallet.";
|
|
121
123
|
readonly no_faircoin_half: "The connected account has no FairCoin half to register a key for.";
|
|
122
124
|
readonly merchant_missing: "The application has no merchant in this environment yet; register one (Orbit shows \"Set up payments\").";
|
|
123
125
|
readonly application_membership_required: "The signed-in Oxy account is not a member of the account that owns this application.";
|