@peable.to/contracts 3.0.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.
Files changed (58) hide show
  1. package/dist/cjs/resources/billingEngine/public.js +22 -3
  2. package/dist/cjs/resources/checkout/checkoutSessions.js +34 -9
  3. package/dist/cjs/resources/checkout/merchants.js +10 -23
  4. package/dist/cjs/resources/checkout/paymentMethodConfigurations.js +56 -10
  5. package/dist/cjs/resources/connect/balance.js +5 -0
  6. package/dist/cjs/resources/connect/connectedAccounts.js +11 -12
  7. package/dist/cjs/resources/connect/onboarding.js +13 -24
  8. package/dist/cjs/resources/events/webhookDeliveries.js +1 -1
  9. package/dist/cjs/resources/events/webhookEndpoints.js +1 -1
  10. package/dist/cjs/resources/payments/disputes.js +16 -0
  11. package/dist/cjs/resources/payments/paymentIntents.js +39 -2
  12. package/dist/cjs/resources/payments/refunds.js +46 -11
  13. package/dist/cjs/vocabulary/checkout.js +18 -1
  14. package/dist/cjs/vocabulary/errors.js +5 -3
  15. package/dist/cjs/vocabulary/events.js +5 -0
  16. package/dist/cjs/vocabulary/paymentMethodConfigurations.js +24 -4
  17. package/dist/esm/resources/billingEngine/public.js +22 -3
  18. package/dist/esm/resources/checkout/checkoutSessions.js +35 -10
  19. package/dist/esm/resources/checkout/merchants.js +10 -23
  20. package/dist/esm/resources/checkout/paymentMethodConfigurations.js +57 -11
  21. package/dist/esm/resources/connect/balance.js +5 -0
  22. package/dist/esm/resources/connect/connectedAccounts.js +11 -12
  23. package/dist/esm/resources/connect/onboarding.js +12 -23
  24. package/dist/esm/resources/events/webhookDeliveries.js +1 -1
  25. package/dist/esm/resources/events/webhookEndpoints.js +1 -1
  26. package/dist/esm/resources/payments/disputes.js +16 -0
  27. package/dist/esm/resources/payments/paymentIntents.js +39 -2
  28. package/dist/esm/resources/payments/refunds.js +46 -11
  29. package/dist/esm/vocabulary/checkout.js +17 -0
  30. package/dist/esm/vocabulary/errors.js +5 -3
  31. package/dist/esm/vocabulary/events.js +5 -0
  32. package/dist/esm/vocabulary/paymentMethodConfigurations.js +25 -5
  33. package/dist/types/resources/billingEngine/index.d.ts +16 -2
  34. package/dist/types/resources/billingEngine/public.d.ts +32 -3
  35. package/dist/types/resources/checkout/checkoutSessions.d.ts +96 -31
  36. package/dist/types/resources/checkout/index.d.ts +406 -41
  37. package/dist/types/resources/checkout/merchants.d.ts +17 -28
  38. package/dist/types/resources/checkout/paymentMethodConfigurations.d.ts +440 -8
  39. package/dist/types/resources/connect/balance.d.ts +103 -10
  40. package/dist/types/resources/connect/connectedAccounts.d.ts +4 -4
  41. package/dist/types/resources/connect/index.d.ts +105 -14
  42. package/dist/types/resources/connect/onboarding.d.ts +15 -15
  43. package/dist/types/resources/connect/payouts.d.ts +66 -4
  44. package/dist/types/resources/events/index.d.ts +5 -0
  45. package/dist/types/resources/events/webhookEndpoints.d.ts +7 -0
  46. package/dist/types/resources/payments/disputes.d.ts +35 -0
  47. package/dist/types/resources/payments/index.d.ts +382 -0
  48. package/dist/types/resources/payments/paymentIntents.d.ts +380 -0
  49. package/dist/types/resources/payments/refunds.d.ts +56 -5
  50. package/dist/types/resources/payments/testHelpers.d.ts +31 -0
  51. package/dist/types/resources/tax/deadlines.d.ts +3 -3
  52. package/dist/types/resources/tax/index.d.ts +2 -2
  53. package/dist/types/resources/tax/registrations.d.ts +2 -2
  54. package/dist/types/vocabulary/checkout.d.ts +13 -0
  55. package/dist/types/vocabulary/errors.d.ts +5 -3
  56. package/dist/types/vocabulary/events.d.ts +5 -1
  57. package/dist/types/vocabulary/paymentMethodConfigurations.d.ts +21 -7
  58. package/package.json +1 -1
@@ -54,11 +54,11 @@ export declare const balanceTransactionSchema: z.ZodObject<{
54
54
  payout: "payout";
55
55
  transfer: "transfer";
56
56
  charge: "charge";
57
- dispute: "dispute";
58
57
  refund: "refund";
58
+ dispute: "dispute";
59
59
  adjustment: "adjustment";
60
- other: "other";
61
60
  payment: "payment";
61
+ other: "other";
62
62
  payment_refund: "payment_refund";
63
63
  application_fee_refund: "application_fee_refund";
64
64
  payout_cancel: "payout_cancel";
@@ -79,6 +79,37 @@ export declare const balanceTransactionSchema: z.ZodObject<{
79
79
  created: z.ZodNumber;
80
80
  description: z.ZodNullable<z.ZodString>;
81
81
  exchange_rate: z.ZodNullable<z.ZodNumber>;
82
+ faircoin_quote: z.ZodNullable<z.ZodObject<{
83
+ currency: z.ZodEnum<{
84
+ EUR: "EUR";
85
+ USD: "USD";
86
+ GBP: "GBP";
87
+ CHF: "CHF";
88
+ SEK: "SEK";
89
+ NOK: "NOK";
90
+ DKK: "DKK";
91
+ PLN: "PLN";
92
+ CZK: "CZK";
93
+ CAD: "CAD";
94
+ AUD: "AUD";
95
+ JPY: "JPY";
96
+ }>;
97
+ amount: z.ZodString;
98
+ rate: z.ZodString;
99
+ price: z.ZodObject<{
100
+ source: z.ZodLiteral<"wfair-base">;
101
+ usd_per_fair: z.ZodString;
102
+ observed_at: z.ZodNumber;
103
+ }, z.core.$strict>;
104
+ reference_rates: z.ZodNullable<z.ZodObject<{
105
+ source: z.ZodLiteral<"ecb">;
106
+ usd_per_eur: z.ZodString;
107
+ currency_per_eur: z.ZodString;
108
+ observed_at: z.ZodNumber;
109
+ }, z.core.$strict>>;
110
+ quoted_at: z.ZodNumber;
111
+ expires_at: z.ZodNumber;
112
+ }, z.core.$strict>>;
82
113
  fee_details: z.ZodArray<z.ZodObject<{
83
114
  amount: z.ZodString;
84
115
  currency: z.ZodString;
@@ -147,11 +178,11 @@ export declare const listBalanceTransactionsQuery: z.ZodObject<{
147
178
  payout: "payout";
148
179
  transfer: "transfer";
149
180
  charge: "charge";
150
- dispute: "dispute";
151
181
  refund: "refund";
182
+ dispute: "dispute";
152
183
  adjustment: "adjustment";
153
- other: "other";
154
184
  payment: "payment";
185
+ other: "other";
155
186
  payment_refund: "payment_refund";
156
187
  application_fee_refund: "application_fee_refund";
157
188
  payout_cancel: "payout_cancel";
@@ -250,11 +281,11 @@ export declare const balanceRoutes: readonly [{
250
281
  payout: "payout";
251
282
  transfer: "transfer";
252
283
  charge: "charge";
253
- dispute: "dispute";
254
284
  refund: "refund";
285
+ dispute: "dispute";
255
286
  adjustment: "adjustment";
256
- other: "other";
257
287
  payment: "payment";
288
+ other: "other";
258
289
  payment_refund: "payment_refund";
259
290
  application_fee_refund: "application_fee_refund";
260
291
  payout_cancel: "payout_cancel";
@@ -284,11 +315,11 @@ export declare const balanceRoutes: readonly [{
284
315
  payout: "payout";
285
316
  transfer: "transfer";
286
317
  charge: "charge";
287
- dispute: "dispute";
288
318
  refund: "refund";
319
+ dispute: "dispute";
289
320
  adjustment: "adjustment";
290
- other: "other";
291
321
  payment: "payment";
322
+ other: "other";
292
323
  payment_refund: "payment_refund";
293
324
  application_fee_refund: "application_fee_refund";
294
325
  payout_cancel: "payout_cancel";
@@ -309,6 +340,37 @@ export declare const balanceRoutes: readonly [{
309
340
  created: z.ZodNumber;
310
341
  description: z.ZodNullable<z.ZodString>;
311
342
  exchange_rate: z.ZodNullable<z.ZodNumber>;
343
+ faircoin_quote: z.ZodNullable<z.ZodObject<{
344
+ currency: z.ZodEnum<{
345
+ EUR: "EUR";
346
+ USD: "USD";
347
+ GBP: "GBP";
348
+ CHF: "CHF";
349
+ SEK: "SEK";
350
+ NOK: "NOK";
351
+ DKK: "DKK";
352
+ PLN: "PLN";
353
+ CZK: "CZK";
354
+ CAD: "CAD";
355
+ AUD: "AUD";
356
+ JPY: "JPY";
357
+ }>;
358
+ amount: z.ZodString;
359
+ rate: z.ZodString;
360
+ price: z.ZodObject<{
361
+ source: z.ZodLiteral<"wfair-base">;
362
+ usd_per_fair: z.ZodString;
363
+ observed_at: z.ZodNumber;
364
+ }, z.core.$strict>;
365
+ reference_rates: z.ZodNullable<z.ZodObject<{
366
+ source: z.ZodLiteral<"ecb">;
367
+ usd_per_eur: z.ZodString;
368
+ currency_per_eur: z.ZodString;
369
+ observed_at: z.ZodNumber;
370
+ }, z.core.$strict>>;
371
+ quoted_at: z.ZodNumber;
372
+ expires_at: z.ZodNumber;
373
+ }, z.core.$strict>>;
312
374
  fee_details: z.ZodArray<z.ZodObject<{
313
375
  amount: z.ZodString;
314
376
  currency: z.ZodString;
@@ -356,11 +418,11 @@ export declare const balanceRoutes: readonly [{
356
418
  payout: "payout";
357
419
  transfer: "transfer";
358
420
  charge: "charge";
359
- dispute: "dispute";
360
421
  refund: "refund";
422
+ dispute: "dispute";
361
423
  adjustment: "adjustment";
362
- other: "other";
363
424
  payment: "payment";
425
+ other: "other";
364
426
  payment_refund: "payment_refund";
365
427
  application_fee_refund: "application_fee_refund";
366
428
  payout_cancel: "payout_cancel";
@@ -381,6 +443,37 @@ export declare const balanceRoutes: readonly [{
381
443
  created: z.ZodNumber;
382
444
  description: z.ZodNullable<z.ZodString>;
383
445
  exchange_rate: z.ZodNullable<z.ZodNumber>;
446
+ faircoin_quote: z.ZodNullable<z.ZodObject<{
447
+ currency: z.ZodEnum<{
448
+ EUR: "EUR";
449
+ USD: "USD";
450
+ GBP: "GBP";
451
+ CHF: "CHF";
452
+ SEK: "SEK";
453
+ NOK: "NOK";
454
+ DKK: "DKK";
455
+ PLN: "PLN";
456
+ CZK: "CZK";
457
+ CAD: "CAD";
458
+ AUD: "AUD";
459
+ JPY: "JPY";
460
+ }>;
461
+ amount: z.ZodString;
462
+ rate: z.ZodString;
463
+ price: z.ZodObject<{
464
+ source: z.ZodLiteral<"wfair-base">;
465
+ usd_per_fair: z.ZodString;
466
+ observed_at: z.ZodNumber;
467
+ }, z.core.$strict>;
468
+ reference_rates: z.ZodNullable<z.ZodObject<{
469
+ source: z.ZodLiteral<"ecb">;
470
+ usd_per_eur: z.ZodString;
471
+ currency_per_eur: z.ZodString;
472
+ observed_at: z.ZodNumber;
473
+ }, z.core.$strict>>;
474
+ quoted_at: z.ZodNumber;
475
+ expires_at: z.ZodNumber;
476
+ }, z.core.$strict>>;
384
477
  fee_details: z.ZodArray<z.ZodObject<{
385
478
  amount: z.ZodString;
386
479
  currency: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { type Expand } from '../../common/objects';
3
- /** The FairCoin half of a seller's account. The seller's xpub is deliberately ABSENT (ADR 0012 D6). */
3
+ /** The FairCoin half of a seller's account: paid into the Peable wallet of the seller's own Oxy account (ADR 0021 D5). */
4
4
  export declare const connectedAccountFaircoinSchema: z.ZodObject<{
5
5
  network: z.ZodEnum<{
6
6
  mainnet: "mainnet";
@@ -71,9 +71,9 @@ declare module '../../common/objects' {
71
71
  * `POST /v1/connected_accounts`: open (or return) the account for one seller.
72
72
  *
73
73
  * Two halves, at least one: the CARD half (`country` + `business_type`, both or
74
- * neither) and the FAIRCOIN half (`faircoin`). There is deliberately no `xpub`
75
- * here: the key comes from the SELLER's own session, never from the platform
76
- * (ADR 0012 D3).
74
+ * neither) and the FAIRCOIN half (`faircoin`). There is no key: the seller's
75
+ * FairCoin goes to their own account's Peable wallet, confirmed only from the
76
+ * SELLER's own session (ADR 0012 D3, ADR 0021 D5).
77
77
  */
78
78
  export declare const createConnectedAccountParams: z.ZodObject<{
79
79
  external_ref: z.ZodString;
@@ -688,11 +688,11 @@ export declare const connectRoutes: readonly [{
688
688
  payout: "payout";
689
689
  transfer: "transfer";
690
690
  charge: "charge";
691
- dispute: "dispute";
692
691
  refund: "refund";
692
+ dispute: "dispute";
693
693
  adjustment: "adjustment";
694
- other: "other";
695
694
  payment: "payment";
695
+ other: "other";
696
696
  payment_refund: "payment_refund";
697
697
  application_fee_refund: "application_fee_refund";
698
698
  payout_cancel: "payout_cancel";
@@ -722,11 +722,11 @@ export declare const connectRoutes: readonly [{
722
722
  payout: "payout";
723
723
  transfer: "transfer";
724
724
  charge: "charge";
725
- dispute: "dispute";
726
725
  refund: "refund";
726
+ dispute: "dispute";
727
727
  adjustment: "adjustment";
728
- other: "other";
729
728
  payment: "payment";
729
+ other: "other";
730
730
  payment_refund: "payment_refund";
731
731
  application_fee_refund: "application_fee_refund";
732
732
  payout_cancel: "payout_cancel";
@@ -747,6 +747,37 @@ export declare const connectRoutes: readonly [{
747
747
  created: import("zod").ZodNumber;
748
748
  description: import("zod").ZodNullable<import("zod").ZodString>;
749
749
  exchange_rate: import("zod").ZodNullable<import("zod").ZodNumber>;
750
+ faircoin_quote: import("zod").ZodNullable<import("zod").ZodObject<{
751
+ currency: import("zod").ZodEnum<{
752
+ EUR: "EUR";
753
+ USD: "USD";
754
+ GBP: "GBP";
755
+ CHF: "CHF";
756
+ SEK: "SEK";
757
+ NOK: "NOK";
758
+ DKK: "DKK";
759
+ PLN: "PLN";
760
+ CZK: "CZK";
761
+ CAD: "CAD";
762
+ AUD: "AUD";
763
+ JPY: "JPY";
764
+ }>;
765
+ amount: import("zod").ZodString;
766
+ rate: import("zod").ZodString;
767
+ price: import("zod").ZodObject<{
768
+ source: import("zod").ZodLiteral<"wfair-base">;
769
+ usd_per_fair: import("zod").ZodString;
770
+ observed_at: import("zod").ZodNumber;
771
+ }, import("zod/v4/core").$strict>;
772
+ reference_rates: import("zod").ZodNullable<import("zod").ZodObject<{
773
+ source: import("zod").ZodLiteral<"ecb">;
774
+ usd_per_eur: import("zod").ZodString;
775
+ currency_per_eur: import("zod").ZodString;
776
+ observed_at: import("zod").ZodNumber;
777
+ }, import("zod/v4/core").$strict>>;
778
+ quoted_at: import("zod").ZodNumber;
779
+ expires_at: import("zod").ZodNumber;
780
+ }, import("zod/v4/core").$strict>>;
750
781
  fee_details: import("zod").ZodArray<import("zod").ZodObject<{
751
782
  amount: import("zod").ZodString;
752
783
  currency: import("zod").ZodString;
@@ -794,11 +825,11 @@ export declare const connectRoutes: readonly [{
794
825
  payout: "payout";
795
826
  transfer: "transfer";
796
827
  charge: "charge";
797
- dispute: "dispute";
798
828
  refund: "refund";
829
+ dispute: "dispute";
799
830
  adjustment: "adjustment";
800
- other: "other";
801
831
  payment: "payment";
832
+ other: "other";
802
833
  payment_refund: "payment_refund";
803
834
  application_fee_refund: "application_fee_refund";
804
835
  payout_cancel: "payout_cancel";
@@ -819,6 +850,37 @@ export declare const connectRoutes: readonly [{
819
850
  created: import("zod").ZodNumber;
820
851
  description: import("zod").ZodNullable<import("zod").ZodString>;
821
852
  exchange_rate: import("zod").ZodNullable<import("zod").ZodNumber>;
853
+ faircoin_quote: import("zod").ZodNullable<import("zod").ZodObject<{
854
+ currency: import("zod").ZodEnum<{
855
+ EUR: "EUR";
856
+ USD: "USD";
857
+ GBP: "GBP";
858
+ CHF: "CHF";
859
+ SEK: "SEK";
860
+ NOK: "NOK";
861
+ DKK: "DKK";
862
+ PLN: "PLN";
863
+ CZK: "CZK";
864
+ CAD: "CAD";
865
+ AUD: "AUD";
866
+ JPY: "JPY";
867
+ }>;
868
+ amount: import("zod").ZodString;
869
+ rate: import("zod").ZodString;
870
+ price: import("zod").ZodObject<{
871
+ source: import("zod").ZodLiteral<"wfair-base">;
872
+ usd_per_fair: import("zod").ZodString;
873
+ observed_at: import("zod").ZodNumber;
874
+ }, import("zod/v4/core").$strict>;
875
+ reference_rates: import("zod").ZodNullable<import("zod").ZodObject<{
876
+ source: import("zod").ZodLiteral<"ecb">;
877
+ usd_per_eur: import("zod").ZodString;
878
+ currency_per_eur: import("zod").ZodString;
879
+ observed_at: import("zod").ZodNumber;
880
+ }, import("zod/v4/core").$strict>>;
881
+ quoted_at: import("zod").ZodNumber;
882
+ expires_at: import("zod").ZodNumber;
883
+ }, import("zod/v4/core").$strict>>;
822
884
  fee_details: import("zod").ZodArray<import("zod").ZodObject<{
823
885
  amount: import("zod").ZodString;
824
886
  currency: import("zod").ZodString;
@@ -1111,11 +1173,11 @@ export declare const connectRoutes: readonly [{
1111
1173
  payout: "payout";
1112
1174
  transfer: "transfer";
1113
1175
  charge: "charge";
1114
- dispute: "dispute";
1115
1176
  refund: "refund";
1177
+ dispute: "dispute";
1116
1178
  adjustment: "adjustment";
1117
- other: "other";
1118
1179
  payment: "payment";
1180
+ other: "other";
1119
1181
  payment_refund: "payment_refund";
1120
1182
  application_fee_refund: "application_fee_refund";
1121
1183
  payout_cancel: "payout_cancel";
@@ -1136,6 +1198,37 @@ export declare const connectRoutes: readonly [{
1136
1198
  created: import("zod").ZodNumber;
1137
1199
  description: import("zod").ZodNullable<import("zod").ZodString>;
1138
1200
  exchange_rate: import("zod").ZodNullable<import("zod").ZodNumber>;
1201
+ faircoin_quote: import("zod").ZodNullable<import("zod").ZodObject<{
1202
+ currency: import("zod").ZodEnum<{
1203
+ EUR: "EUR";
1204
+ USD: "USD";
1205
+ GBP: "GBP";
1206
+ CHF: "CHF";
1207
+ SEK: "SEK";
1208
+ NOK: "NOK";
1209
+ DKK: "DKK";
1210
+ PLN: "PLN";
1211
+ CZK: "CZK";
1212
+ CAD: "CAD";
1213
+ AUD: "AUD";
1214
+ JPY: "JPY";
1215
+ }>;
1216
+ amount: import("zod").ZodString;
1217
+ rate: import("zod").ZodString;
1218
+ price: import("zod").ZodObject<{
1219
+ source: import("zod").ZodLiteral<"wfair-base">;
1220
+ usd_per_fair: import("zod").ZodString;
1221
+ observed_at: import("zod").ZodNumber;
1222
+ }, import("zod/v4/core").$strict>;
1223
+ reference_rates: import("zod").ZodNullable<import("zod").ZodObject<{
1224
+ source: import("zod").ZodLiteral<"ecb">;
1225
+ usd_per_eur: import("zod").ZodString;
1226
+ currency_per_eur: import("zod").ZodString;
1227
+ observed_at: import("zod").ZodNumber;
1228
+ }, import("zod/v4/core").$strict>>;
1229
+ quoted_at: import("zod").ZodNumber;
1230
+ expires_at: import("zod").ZodNumber;
1231
+ }, import("zod/v4/core").$strict>>;
1139
1232
  fee_details: import("zod").ZodArray<import("zod").ZodObject<{
1140
1233
  amount: import("zod").ZodString;
1141
1234
  currency: import("zod").ZodString;
@@ -1322,19 +1415,17 @@ export declare const connectRoutes: readonly [{
1322
1415
  return_url: import("zod").ZodString;
1323
1416
  }, import("zod/v4/core").$strict>;
1324
1417
  }, {
1325
- readonly operationId: "registerConnectOnboardingFaircoinKey";
1418
+ readonly operationId: "confirmConnectOnboardingFaircoin";
1326
1419
  readonly method: "post";
1327
1420
  readonly path: "/v1/connect/onboarding/{token}/faircoin";
1328
1421
  readonly tag: "Connect onboarding";
1329
- readonly summary: "Register the seller's FairCoin key";
1330
- readonly description: "The ONLY way a key reaches a connected account: runs the non-custody firewall, consumes the link and tells the platform (`connected_account.updated`), in one transaction. The key is immutable once registered and never appears on any response.";
1422
+ readonly summary: "Confirm FairCoin payments into the seller’s Peable wallet";
1423
+ readonly description: "The seller, signed in as the account the link names, confirms that FairCoin paid to them goes to that account’s Peable wallet (ADR 0021 D5) — the only way a FairCoin half becomes payable. No key is sent: addresses derive from the account’s public identity key. 409 `faircoin_wallet_missing` while the account has no Peable wallet yet. Consumes the link and tells the platform (`connected_account.updated`) in one transaction.";
1331
1424
  readonly auth: "user";
1332
1425
  readonly params: {
1333
1426
  readonly token: "The onboarding link token (the last segment of its `url`).";
1334
1427
  };
1335
- readonly body: import("zod").ZodObject<{
1336
- xpub: import("zod").ZodString;
1337
- }, import("zod/v4/core").$strict>;
1428
+ readonly body: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
1338
1429
  readonly response: import("zod").ZodObject<{
1339
1430
  object: import("zod").ZodLiteral<"connect_onboarding">;
1340
1431
  account_id: import("zod").ZodString;
@@ -4,10 +4,10 @@ import { type Expand } from '../../common/objects';
4
4
  * The SELLER-facing half of FairCoin connected accounts (ADR 0012 D3).
5
5
  *
6
6
  * A platform mints an onboarding link for a seller's account; the SELLER opens
7
- * it signed in with Oxy and registers the watch-only key their FairCoin will be
8
- * paid to. These routes are `auth: 'user'` — the seller's own session, never a
9
- * service token — because the key that decides who receives a seller's money is
10
- * accepted only from the seller. A platform cannot reach them at all, and the
7
+ * it signed in with Oxy and confirms that their FairCoin is paid into the
8
+ * Peable wallet of that account (ADR 0021 D5). These routes are `auth: 'user'`
9
+ * — the seller's own session, never a service token — because who receives a
10
+ * seller's money is the seller's consent. A platform cannot reach them at all, and the
11
11
  * link token alone is not enough without the session it names.
12
12
  */
13
13
  export declare const connectOnboardingSchema: z.ZodObject<{
@@ -40,11 +40,13 @@ declare module '../../common/objects' {
40
40
  connect_onboarding: ConnectOnboarding;
41
41
  }
42
42
  }
43
- /** `POST /v1/connect/onboarding/{token}/faircoin` — the seller's watch-only ACCOUNT xpub. */
44
- export declare const registerFaircoinKeyParams: z.ZodObject<{
45
- xpub: z.ZodString;
46
- }, z.core.$strict>;
47
- export type RegisterFaircoinKeyParams = z.input<typeof registerFaircoinKeyParams>;
43
+ /**
44
+ * `POST /v1/connect/onboarding/{token}/faircoin` takes nothing: the seller
45
+ * confirms, in their own Oxy session, that their FairCoin is paid into the
46
+ * Peable wallet of that account (ADR 0021 D5). No key travels.
47
+ */
48
+ export declare const confirmFaircoinOnboardingParams: z.ZodObject<{}, z.core.$strict>;
49
+ export type ConfirmFaircoinOnboardingParams = z.input<typeof confirmFaircoinOnboardingParams>;
48
50
  export declare const connectOnboardingRoutes: readonly [{
49
51
  readonly operationId: "retrieveConnectOnboarding";
50
52
  readonly method: "get";
@@ -73,19 +75,17 @@ export declare const connectOnboardingRoutes: readonly [{
73
75
  return_url: z.ZodString;
74
76
  }, z.core.$strict>;
75
77
  }, {
76
- readonly operationId: "registerConnectOnboardingFaircoinKey";
78
+ readonly operationId: "confirmConnectOnboardingFaircoin";
77
79
  readonly method: "post";
78
80
  readonly path: "/v1/connect/onboarding/{token}/faircoin";
79
81
  readonly tag: "Connect onboarding";
80
- readonly summary: "Register the seller's FairCoin key";
81
- readonly description: "The ONLY way a key reaches a connected account: runs the non-custody firewall, consumes the link and tells the platform (`connected_account.updated`), in one transaction. The key is immutable once registered and never appears on any response.";
82
+ readonly summary: "Confirm FairCoin payments into the seller’s Peable wallet";
83
+ readonly description: "The seller, signed in as the account the link names, confirms that FairCoin paid to them goes to that account’s Peable wallet (ADR 0021 D5) — the only way a FairCoin half becomes payable. No key is sent: addresses derive from the account’s public identity key. 409 `faircoin_wallet_missing` while the account has no Peable wallet yet. Consumes the link and tells the platform (`connected_account.updated`) in one transaction.";
82
84
  readonly auth: "user";
83
85
  readonly params: {
84
86
  readonly token: "The onboarding link token (the last segment of its `url`).";
85
87
  };
86
- readonly body: z.ZodObject<{
87
- xpub: z.ZodString;
88
- }, z.core.$strict>;
88
+ readonly body: z.ZodObject<{}, z.core.$strict>;
89
89
  readonly response: z.ZodObject<{
90
90
  object: z.ZodLiteral<"connect_onboarding">;
91
91
  account_id: z.ZodString;
@@ -58,11 +58,11 @@ export declare const payoutReconciliationReportSchema: z.ZodObject<{
58
58
  payout: "payout";
59
59
  transfer: "transfer";
60
60
  charge: "charge";
61
- dispute: "dispute";
62
61
  refund: "refund";
62
+ dispute: "dispute";
63
63
  adjustment: "adjustment";
64
- other: "other";
65
64
  payment: "payment";
65
+ other: "other";
66
66
  payment_refund: "payment_refund";
67
67
  application_fee_refund: "application_fee_refund";
68
68
  payout_cancel: "payout_cancel";
@@ -83,6 +83,37 @@ export declare const payoutReconciliationReportSchema: z.ZodObject<{
83
83
  created: z.ZodNumber;
84
84
  description: z.ZodNullable<z.ZodString>;
85
85
  exchange_rate: z.ZodNullable<z.ZodNumber>;
86
+ faircoin_quote: z.ZodNullable<z.ZodObject<{
87
+ currency: z.ZodEnum<{
88
+ EUR: "EUR";
89
+ USD: "USD";
90
+ GBP: "GBP";
91
+ CHF: "CHF";
92
+ SEK: "SEK";
93
+ NOK: "NOK";
94
+ DKK: "DKK";
95
+ PLN: "PLN";
96
+ CZK: "CZK";
97
+ CAD: "CAD";
98
+ AUD: "AUD";
99
+ JPY: "JPY";
100
+ }>;
101
+ amount: z.ZodString;
102
+ rate: z.ZodString;
103
+ price: z.ZodObject<{
104
+ source: z.ZodLiteral<"wfair-base">;
105
+ usd_per_fair: z.ZodString;
106
+ observed_at: z.ZodNumber;
107
+ }, z.core.$strict>;
108
+ reference_rates: z.ZodNullable<z.ZodObject<{
109
+ source: z.ZodLiteral<"ecb">;
110
+ usd_per_eur: z.ZodString;
111
+ currency_per_eur: z.ZodString;
112
+ observed_at: z.ZodNumber;
113
+ }, z.core.$strict>>;
114
+ quoted_at: z.ZodNumber;
115
+ expires_at: z.ZodNumber;
116
+ }, z.core.$strict>>;
86
117
  fee_details: z.ZodArray<z.ZodObject<{
87
118
  amount: z.ZodString;
88
119
  currency: z.ZodString;
@@ -468,11 +499,11 @@ export declare const payoutRoutes: readonly [{
468
499
  payout: "payout";
469
500
  transfer: "transfer";
470
501
  charge: "charge";
471
- dispute: "dispute";
472
502
  refund: "refund";
503
+ dispute: "dispute";
473
504
  adjustment: "adjustment";
474
- other: "other";
475
505
  payment: "payment";
506
+ other: "other";
476
507
  payment_refund: "payment_refund";
477
508
  application_fee_refund: "application_fee_refund";
478
509
  payout_cancel: "payout_cancel";
@@ -493,6 +524,37 @@ export declare const payoutRoutes: readonly [{
493
524
  created: z.ZodNumber;
494
525
  description: z.ZodNullable<z.ZodString>;
495
526
  exchange_rate: z.ZodNullable<z.ZodNumber>;
527
+ faircoin_quote: z.ZodNullable<z.ZodObject<{
528
+ currency: z.ZodEnum<{
529
+ EUR: "EUR";
530
+ USD: "USD";
531
+ GBP: "GBP";
532
+ CHF: "CHF";
533
+ SEK: "SEK";
534
+ NOK: "NOK";
535
+ DKK: "DKK";
536
+ PLN: "PLN";
537
+ CZK: "CZK";
538
+ CAD: "CAD";
539
+ AUD: "AUD";
540
+ JPY: "JPY";
541
+ }>;
542
+ amount: z.ZodString;
543
+ rate: z.ZodString;
544
+ price: z.ZodObject<{
545
+ source: z.ZodLiteral<"wfair-base">;
546
+ usd_per_fair: z.ZodString;
547
+ observed_at: z.ZodNumber;
548
+ }, z.core.$strict>;
549
+ reference_rates: z.ZodNullable<z.ZodObject<{
550
+ source: z.ZodLiteral<"ecb">;
551
+ usd_per_eur: z.ZodString;
552
+ currency_per_eur: z.ZodString;
553
+ observed_at: z.ZodNumber;
554
+ }, z.core.$strict>>;
555
+ quoted_at: z.ZodNumber;
556
+ expires_at: z.ZodNumber;
557
+ }, z.core.$strict>>;
496
558
  fee_details: z.ZodArray<z.ZodObject<{
497
559
  amount: z.ZodString;
498
560
  currency: z.ZodString;
@@ -639,6 +639,7 @@ export declare const eventsRoutes: readonly [{
639
639
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
640
640
  disabled_by_merchant: "disabled_by_merchant";
641
641
  delivery_failures: "delivery_failures";
642
+ url_refused: "url_refused";
642
643
  }>>;
643
644
  api_version: import("zod").ZodString;
644
645
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -782,6 +783,7 @@ export declare const eventsRoutes: readonly [{
782
783
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
783
784
  disabled_by_merchant: "disabled_by_merchant";
784
785
  delivery_failures: "delivery_failures";
786
+ url_refused: "url_refused";
785
787
  }>>;
786
788
  api_version: import("zod").ZodString;
787
789
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -916,6 +918,7 @@ export declare const eventsRoutes: readonly [{
916
918
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
917
919
  disabled_by_merchant: "disabled_by_merchant";
918
920
  delivery_failures: "delivery_failures";
921
+ url_refused: "url_refused";
919
922
  }>>;
920
923
  api_version: import("zod").ZodString;
921
924
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -1146,6 +1149,7 @@ export declare const eventsRoutes: readonly [{
1146
1149
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
1147
1150
  disabled_by_merchant: "disabled_by_merchant";
1148
1151
  delivery_failures: "delivery_failures";
1152
+ url_refused: "url_refused";
1149
1153
  }>>;
1150
1154
  api_version: import("zod").ZodString;
1151
1155
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -1296,6 +1300,7 @@ export declare const eventsRoutes: readonly [{
1296
1300
  disabled_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
1297
1301
  disabled_by_merchant: "disabled_by_merchant";
1298
1302
  delivery_failures: "delivery_failures";
1303
+ url_refused: "url_refused";
1299
1304
  }>>;
1300
1305
  api_version: import("zod").ZodString;
1301
1306
  metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
@@ -110,6 +110,7 @@ export declare const webhookEndpointSchema: z.ZodObject<{
110
110
  disabled_reason: z.ZodNullable<z.ZodEnum<{
111
111
  disabled_by_merchant: "disabled_by_merchant";
112
112
  delivery_failures: "delivery_failures";
113
+ url_refused: "url_refused";
113
114
  }>>;
114
115
  api_version: z.ZodString;
115
116
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -231,6 +232,7 @@ export declare const webhookEndpointWithSecretSchema: z.ZodObject<{
231
232
  disabled_reason: z.ZodNullable<z.ZodEnum<{
232
233
  disabled_by_merchant: "disabled_by_merchant";
233
234
  delivery_failures: "delivery_failures";
235
+ url_refused: "url_refused";
234
236
  }>>;
235
237
  api_version: z.ZodString;
236
238
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -694,6 +696,7 @@ export declare const webhookEndpointRoutes: readonly [{
694
696
  disabled_reason: z.ZodNullable<z.ZodEnum<{
695
697
  disabled_by_merchant: "disabled_by_merchant";
696
698
  delivery_failures: "delivery_failures";
699
+ url_refused: "url_refused";
697
700
  }>>;
698
701
  api_version: z.ZodString;
699
702
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -837,6 +840,7 @@ export declare const webhookEndpointRoutes: readonly [{
837
840
  disabled_reason: z.ZodNullable<z.ZodEnum<{
838
841
  disabled_by_merchant: "disabled_by_merchant";
839
842
  delivery_failures: "delivery_failures";
843
+ url_refused: "url_refused";
840
844
  }>>;
841
845
  api_version: z.ZodString;
842
846
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -971,6 +975,7 @@ export declare const webhookEndpointRoutes: readonly [{
971
975
  disabled_reason: z.ZodNullable<z.ZodEnum<{
972
976
  disabled_by_merchant: "disabled_by_merchant";
973
977
  delivery_failures: "delivery_failures";
978
+ url_refused: "url_refused";
974
979
  }>>;
975
980
  api_version: z.ZodString;
976
981
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1201,6 +1206,7 @@ export declare const webhookEndpointRoutes: readonly [{
1201
1206
  disabled_reason: z.ZodNullable<z.ZodEnum<{
1202
1207
  disabled_by_merchant: "disabled_by_merchant";
1203
1208
  delivery_failures: "delivery_failures";
1209
+ url_refused: "url_refused";
1204
1210
  }>>;
1205
1211
  api_version: z.ZodString;
1206
1212
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -1351,6 +1357,7 @@ export declare const webhookEndpointRoutes: readonly [{
1351
1357
  disabled_reason: z.ZodNullable<z.ZodEnum<{
1352
1358
  disabled_by_merchant: "disabled_by_merchant";
1353
1359
  delivery_failures: "delivery_failures";
1360
+ url_refused: "url_refused";
1354
1361
  }>>;
1355
1362
  api_version: z.ZodString;
1356
1363
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;