@0to1pay/server-sdk 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -3
- package/dist/contracts/openapi.yaml +227 -625
- package/dist/packages/server-sdk/index.d.ts +33 -19
- package/dist/packages/server-sdk/index.js +36 -3
- package/dist/packages/server-sdk/schema.d.ts +206 -490
- package/package.json +3 -3
|
@@ -68,7 +68,7 @@ export interface paths {
|
|
|
68
68
|
put?: never;
|
|
69
69
|
/**
|
|
70
70
|
* Create immutable order payment obligation
|
|
71
|
-
* @description Same scoped order_ref/order_revision and identical specification returns the existing resource. Changed snapshot requires explicit revision but retains the same business grant identity.
|
|
71
|
+
* @description Same scoped order_ref/order_revision and identical specification returns the existing resource. Changed snapshot requires explicit revision but retains the same business grant identity.
|
|
72
72
|
*/
|
|
73
73
|
post: operations["createPayment"];
|
|
74
74
|
delete?: never;
|
|
@@ -108,8 +108,8 @@ export interface paths {
|
|
|
108
108
|
get?: never;
|
|
109
109
|
put?: never;
|
|
110
110
|
/**
|
|
111
|
-
* Freeze
|
|
112
|
-
* @description
|
|
111
|
+
* Freeze stablecoin payable terms
|
|
112
|
+
* @description Reserve a unique recipient for the selected network and freeze the amount and token. Quote expiry cannot exceed the payment expiry.
|
|
113
113
|
*/
|
|
114
114
|
post: operations["createQuote"];
|
|
115
115
|
delete?: never;
|
|
@@ -137,86 +137,110 @@ export interface paths {
|
|
|
137
137
|
patch?: never;
|
|
138
138
|
trace?: never;
|
|
139
139
|
};
|
|
140
|
-
"/
|
|
140
|
+
"/quotes/{quote_id}/chain-intents": {
|
|
141
141
|
parameters: {
|
|
142
142
|
query?: never;
|
|
143
143
|
header?: never;
|
|
144
144
|
path: {
|
|
145
|
-
|
|
145
|
+
quote_id: components["parameters"]["quote_id"];
|
|
146
146
|
};
|
|
147
147
|
cookie?: never;
|
|
148
148
|
};
|
|
149
|
-
|
|
150
|
-
get: operations["listAttempts"];
|
|
149
|
+
get?: never;
|
|
151
150
|
put?: never;
|
|
152
151
|
/**
|
|
153
|
-
* Create a
|
|
154
|
-
* @description
|
|
152
|
+
* Create a wallet approval challenge for a buyer checkout
|
|
153
|
+
* @description The merchant server must first authenticate the buyer and authorize access to the quote. Supply a stable opaque reference for that authenticated checkout. Never send the session credential itself.
|
|
155
154
|
*/
|
|
156
|
-
post: operations["
|
|
155
|
+
post: operations["createChainIntent"];
|
|
157
156
|
delete?: never;
|
|
158
157
|
options?: never;
|
|
159
158
|
head?: never;
|
|
160
159
|
patch?: never;
|
|
161
160
|
trace?: never;
|
|
162
161
|
};
|
|
163
|
-
"/
|
|
162
|
+
"/quotes/{quote_id}/chain-intents/{intent_id}/authorize": {
|
|
164
163
|
parameters: {
|
|
165
164
|
query?: never;
|
|
166
165
|
header?: never;
|
|
167
166
|
path: {
|
|
168
|
-
|
|
167
|
+
quote_id: components["parameters"]["quote_id"];
|
|
168
|
+
intent_id: components["parameters"]["intent_id"];
|
|
169
169
|
};
|
|
170
170
|
cookie?: never;
|
|
171
171
|
};
|
|
172
172
|
get?: never;
|
|
173
173
|
put?: never;
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
176
|
-
* @description
|
|
175
|
+
* Authorize the frozen quote with the chosen payer wallet
|
|
176
|
+
* @description Verify the signature over the exact signing_message returned by createChainIntent.
|
|
177
177
|
*/
|
|
178
|
-
post: operations["
|
|
178
|
+
post: operations["authorizeChainIntent"];
|
|
179
179
|
delete?: never;
|
|
180
180
|
options?: never;
|
|
181
181
|
head?: never;
|
|
182
182
|
patch?: never;
|
|
183
183
|
trace?: never;
|
|
184
184
|
};
|
|
185
|
-
"/
|
|
185
|
+
"/quotes/{quote_id}/chain-intents/{intent_id}/submit": {
|
|
186
186
|
parameters: {
|
|
187
187
|
query?: never;
|
|
188
188
|
header?: never;
|
|
189
189
|
path: {
|
|
190
|
-
|
|
190
|
+
quote_id: components["parameters"]["quote_id"];
|
|
191
|
+
intent_id: components["parameters"]["intent_id"];
|
|
191
192
|
};
|
|
192
193
|
cookie?: never;
|
|
193
194
|
};
|
|
194
|
-
|
|
195
|
-
get: operations["getAttempt"];
|
|
195
|
+
get?: never;
|
|
196
196
|
put?: never;
|
|
197
|
-
|
|
197
|
+
/**
|
|
198
|
+
* Bind a broadcast transaction to its authorized checkout
|
|
199
|
+
* @description Submit a second wallet signature over signing_message followed by a newline and Transaction, a colon, a space and the canonical transaction ID. The Worker verifies the actual token source and finalized transfer.
|
|
200
|
+
*/
|
|
201
|
+
post: operations["submitChainIntent"];
|
|
198
202
|
delete?: never;
|
|
199
203
|
options?: never;
|
|
200
204
|
head?: never;
|
|
201
205
|
patch?: never;
|
|
202
206
|
trace?: never;
|
|
203
207
|
};
|
|
204
|
-
"/
|
|
208
|
+
"/payments/{payment_id}/attempts": {
|
|
205
209
|
parameters: {
|
|
206
210
|
query?: never;
|
|
207
211
|
header?: never;
|
|
208
212
|
path: {
|
|
209
|
-
|
|
213
|
+
payment_id: components["parameters"]["payment_id"];
|
|
210
214
|
};
|
|
211
215
|
cookie?: never;
|
|
212
216
|
};
|
|
213
|
-
|
|
217
|
+
/** List every payment attempt */
|
|
218
|
+
get: operations["listAttempts"];
|
|
214
219
|
put?: never;
|
|
215
220
|
/**
|
|
216
|
-
*
|
|
217
|
-
* @description
|
|
221
|
+
* Get or open the transfer attempt for an assigned chain quote
|
|
222
|
+
* @description Chain quotes open a transfer attempt when assigned. Repeating this call returns that attempt.
|
|
218
223
|
*/
|
|
219
|
-
post: operations["
|
|
224
|
+
post: operations["createAttempt"];
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
231
|
+
"/attempts/{attempt_id}": {
|
|
232
|
+
parameters: {
|
|
233
|
+
query?: never;
|
|
234
|
+
header?: never;
|
|
235
|
+
path: {
|
|
236
|
+
attempt_id: components["parameters"]["attempt_id"];
|
|
237
|
+
};
|
|
238
|
+
cookie?: never;
|
|
239
|
+
};
|
|
240
|
+
/** Get current execution state */
|
|
241
|
+
get: operations["getAttempt"];
|
|
242
|
+
put?: never;
|
|
243
|
+
post?: never;
|
|
220
244
|
delete?: never;
|
|
221
245
|
options?: never;
|
|
222
246
|
head?: never;
|
|
@@ -280,7 +304,7 @@ export interface paths {
|
|
|
280
304
|
put?: never;
|
|
281
305
|
/**
|
|
282
306
|
* Record a narrow audited fulfillment decision
|
|
283
|
-
* @description Compare expected_resource_version under lock. accept_late_payment requires independent valid evidence, bound order, correct full amount/asset/payee/account and timing-only hold; all other blockers fail with 409. It does not reopen collection, manufacture money, clear refunds/disputes, change provenance, or reissue an existing grant. keep_on_hold and reject_fulfillment record persistent business restrictions; reconciliation must not silently discard them. If an effect is already claimed/applied/unknown, preserve that fact and return conflict or review without pretending to undo it. Actor comes from auth; reason and prior/new decision are immutable audit data. New command/outbox, if justified, uses the existing order/action grant identity.
|
|
307
|
+
* @description Compare expected_resource_version under lock. accept_unattributed_chain_payment requires the ID of one verified exact chain movement and reviewed evidence. accept_late_payment requires independent valid evidence, bound order, correct full amount/asset/payee/account and timing-only hold; all other blockers fail with 409. It does not reopen collection, manufacture money, clear refunds/disputes, change provenance, or reissue an existing grant. keep_on_hold and reject_fulfillment record persistent business restrictions; reconciliation must not silently discard them. If an effect is already claimed/applied/unknown, preserve that fact and return conflict or review without pretending to undo it. Actor comes from auth; reason and prior/new decision are immutable audit data. New command/outbox, if justified, uses the existing order/action grant identity.
|
|
284
308
|
*/
|
|
285
309
|
post: operations["reviewPayment"];
|
|
286
310
|
delete?: never;
|
|
@@ -308,28 +332,6 @@ export interface paths {
|
|
|
308
332
|
patch?: never;
|
|
309
333
|
trace?: never;
|
|
310
334
|
};
|
|
311
|
-
"/operations/{operation_id}/recover": {
|
|
312
|
-
parameters: {
|
|
313
|
-
query?: never;
|
|
314
|
-
header?: never;
|
|
315
|
-
path: {
|
|
316
|
-
operation_id: components["parameters"]["operation_id"];
|
|
317
|
-
};
|
|
318
|
-
cookie?: never;
|
|
319
|
-
};
|
|
320
|
-
get?: never;
|
|
321
|
-
put?: never;
|
|
322
|
-
/**
|
|
323
|
-
* Recover the same unknown operation
|
|
324
|
-
* @description Never change provider identity/key just to make unknown work look failed. Recovery consults provider idempotency retention/capabilities and requires review when safety cannot be established.
|
|
325
|
-
*/
|
|
326
|
-
post: operations["recoverOperation"];
|
|
327
|
-
delete?: never;
|
|
328
|
-
options?: never;
|
|
329
|
-
head?: never;
|
|
330
|
-
patch?: never;
|
|
331
|
-
trace?: never;
|
|
332
|
-
};
|
|
333
335
|
"/connections": {
|
|
334
336
|
parameters: {
|
|
335
337
|
query?: never;
|
|
@@ -337,14 +339,10 @@ export interface paths {
|
|
|
337
339
|
path?: never;
|
|
338
340
|
cookie?: never;
|
|
339
341
|
};
|
|
340
|
-
/** List
|
|
342
|
+
/** List chain connections and historical connection records */
|
|
341
343
|
get: operations["listConnections"];
|
|
342
344
|
put?: never;
|
|
343
|
-
|
|
344
|
-
* Register provisional merchant provider configuration
|
|
345
|
-
* @description Do not return/log credentials. Creation may persist encrypted provisional configuration WITHOUT reserving canonical provider_accounts identity. Caller expected_provider_account_id alone never reserves another merchant account. No ready/create/attach is allowed before actual identity and remaining readiness checks succeed. Operator-only secret references must already be tenant bound. Canonical account reservation occurs only after credentials and authoritative evidence establish actual account/environment/authority; then identity is shared across the same merchant projects.
|
|
346
|
-
*/
|
|
347
|
-
post: operations["createConnection"];
|
|
345
|
+
post?: never;
|
|
348
346
|
delete?: never;
|
|
349
347
|
options?: never;
|
|
350
348
|
head?: never;
|
|
@@ -370,50 +368,6 @@ export interface paths {
|
|
|
370
368
|
patch?: never;
|
|
371
369
|
trace?: never;
|
|
372
370
|
};
|
|
373
|
-
"/connections/{connection_id}/validate": {
|
|
374
|
-
parameters: {
|
|
375
|
-
query?: never;
|
|
376
|
-
header?: never;
|
|
377
|
-
path: {
|
|
378
|
-
connection_id: components["parameters"]["connection_id"];
|
|
379
|
-
};
|
|
380
|
-
cookie?: never;
|
|
381
|
-
};
|
|
382
|
-
get?: never;
|
|
383
|
-
put?: never;
|
|
384
|
-
/**
|
|
385
|
-
* Validate actual account/environment and permissions
|
|
386
|
-
* @description Use official allowlisted endpoints. Optional identity_evidence references a controlled merchant-created PayPal Order/Capture retrieved with these credentials. Verify authoritative payee against expected identity and these credentials seller context/default payee or independently established provider authority; a caller string or arbitrary readable order is insufficient. Reserve canonical provider account only after verified identity, under uniqueness/ownership transaction. No automatic real payment/capture is made for validation. Unavailable/insufficient evidence leaves identity_verified=false and no canonical reservation.
|
|
387
|
-
*/
|
|
388
|
-
post: operations["validateConnection"];
|
|
389
|
-
delete?: never;
|
|
390
|
-
options?: never;
|
|
391
|
-
head?: never;
|
|
392
|
-
patch?: never;
|
|
393
|
-
trace?: never;
|
|
394
|
-
};
|
|
395
|
-
"/connections/{connection_id}/credentials": {
|
|
396
|
-
parameters: {
|
|
397
|
-
query?: never;
|
|
398
|
-
header?: never;
|
|
399
|
-
path: {
|
|
400
|
-
connection_id: components["parameters"]["connection_id"];
|
|
401
|
-
};
|
|
402
|
-
cookie?: never;
|
|
403
|
-
};
|
|
404
|
-
get?: never;
|
|
405
|
-
put?: never;
|
|
406
|
-
/**
|
|
407
|
-
* Rotate encrypted provider credentials
|
|
408
|
-
* @description Old in-flight webhook secret support follows an explicit rotation window. Secrets are never read back.
|
|
409
|
-
*/
|
|
410
|
-
post: operations["rotateConnectionCredentials"];
|
|
411
|
-
delete?: never;
|
|
412
|
-
options?: never;
|
|
413
|
-
head?: never;
|
|
414
|
-
patch?: never;
|
|
415
|
-
trace?: never;
|
|
416
|
-
};
|
|
417
371
|
"/connections/{connection_id}/disable": {
|
|
418
372
|
parameters: {
|
|
419
373
|
query?: never;
|
|
@@ -497,28 +451,6 @@ export interface paths {
|
|
|
497
451
|
patch?: never;
|
|
498
452
|
trace?: never;
|
|
499
453
|
};
|
|
500
|
-
"/webhooks/providers/{connection_id}": {
|
|
501
|
-
parameters: {
|
|
502
|
-
query?: never;
|
|
503
|
-
header?: never;
|
|
504
|
-
path: {
|
|
505
|
-
connection_id: components["parameters"]["connection_id"];
|
|
506
|
-
};
|
|
507
|
-
cookie?: never;
|
|
508
|
-
};
|
|
509
|
-
get?: never;
|
|
510
|
-
put?: never;
|
|
511
|
-
/**
|
|
512
|
-
* Receive original provider webhook bytes
|
|
513
|
-
* @description Provider-specific cryptographic authentication is mandatory despite no bearer scheme. Preserve exact raw body; validate signature, canonical account and environment. Stripe-Signature or the PayPal transmission headers are interpreted by the selected adapter. No 0to1Pay Idempotency-Key is required. Return 2xx only after authenticated inbox persistence (including dedup). Do not synchronously fulfill. Never proxy arbitrary certificate URLs.
|
|
514
|
-
*/
|
|
515
|
-
post: operations["ingestProviderWebhook"];
|
|
516
|
-
delete?: never;
|
|
517
|
-
options?: never;
|
|
518
|
-
head?: never;
|
|
519
|
-
patch?: never;
|
|
520
|
-
trace?: never;
|
|
521
|
-
};
|
|
522
454
|
"/events": {
|
|
523
455
|
parameters: {
|
|
524
456
|
query?: never;
|
|
@@ -571,7 +503,7 @@ export interface paths {
|
|
|
571
503
|
put?: never;
|
|
572
504
|
/**
|
|
573
505
|
* Request fresh execution permission
|
|
574
|
-
* @description Idempotency binds request/claim identity but bypasses generic cached-success replay. Always recheck claim expiry/revocation, current decision and same grant desired_version. claim validity is time-of-check;
|
|
506
|
+
* @description Idempotency binds request/claim identity but bypasses generic cached-success replay. Always recheck claim expiry/revocation, current decision and same grant desired_version. claim validity is time-of-check; a chain reorganization can require compensation. Same key cannot create a new lease after expiry.
|
|
575
507
|
*/
|
|
576
508
|
post: operations["claimFulfillment"];
|
|
577
509
|
delete?: never;
|
|
@@ -657,7 +589,7 @@ export interface components {
|
|
|
657
589
|
* @description EVM or TRON chain ID, or a local or Solana selector. Use network_id for the network reference.
|
|
658
590
|
* @enum {integer}
|
|
659
591
|
*/
|
|
660
|
-
ChainSelectorId: 1 | 999 | 8453 | 42161 |
|
|
592
|
+
ChainSelectorId: 1 | 999 | 8453 | 42161 | 31337 | 31338 | 31339 | 31340 | 900001 | 900002 | 728126428 | 900003;
|
|
661
593
|
/** @description Decimal TRON identifiers are emitted. The hexadecimal TRON mainnet alias is accepted on connection creation. */
|
|
662
594
|
ChainNetworkId: string;
|
|
663
595
|
/** @enum {string} */
|
|
@@ -690,7 +622,7 @@ export interface components {
|
|
|
690
622
|
/** @description First block or slot eligible for observation. */
|
|
691
623
|
start_block: string;
|
|
692
624
|
anchor_hash: components["schemas"]["EvmHash"];
|
|
693
|
-
/** @description Earliest eligible
|
|
625
|
+
/** @description Earliest eligible transfer time, as a UTC Unix timestamp in seconds. */
|
|
694
626
|
starts_at_epoch: number;
|
|
695
627
|
};
|
|
696
628
|
ChainAssets: {
|
|
@@ -736,9 +668,9 @@ export interface components {
|
|
|
736
668
|
/** @description Address pool entries. On Solana these are associated token accounts for the selected mint. */
|
|
737
669
|
addresses: components["schemas"]["ChainAddress"][];
|
|
738
670
|
};
|
|
739
|
-
/** @description The asset registry
|
|
671
|
+
/** @description The asset registry confirms scale. USDC 10.00 is amount_atomic="10000000", scale=6. */
|
|
740
672
|
Money: {
|
|
741
|
-
/** @description
|
|
673
|
+
/** @description A stablecoin denomination or exact registered chain asset. Historical responses may contain fiat prices. */
|
|
742
674
|
asset: string;
|
|
743
675
|
/** @description Positive integer in the asset minor unit; never a float. */
|
|
744
676
|
amount_atomic: string;
|
|
@@ -779,7 +711,12 @@ export interface components {
|
|
|
779
711
|
order_ref: string;
|
|
780
712
|
order_revision: number;
|
|
781
713
|
customer_ref: string;
|
|
782
|
-
price: components["schemas"]["Money"]
|
|
714
|
+
price: components["schemas"]["Money"] & {
|
|
715
|
+
/** @enum {unknown} */
|
|
716
|
+
asset?: "stable:USDC" | "stable:USDT";
|
|
717
|
+
/** @constant */
|
|
718
|
+
scale?: 6;
|
|
719
|
+
};
|
|
783
720
|
allowed_connections: string[];
|
|
784
721
|
policy_ref: string;
|
|
785
722
|
/** @default 1800 */
|
|
@@ -872,7 +809,7 @@ export interface components {
|
|
|
872
809
|
CreateQuote: {
|
|
873
810
|
/** Format: uuid */
|
|
874
811
|
connection_id: string;
|
|
875
|
-
/** @description
|
|
812
|
+
/** @description Use the payment’s stablecoin denomination or the exact registered asset for the selected network. */
|
|
876
813
|
presentment_asset: string;
|
|
877
814
|
/** @default 900 */
|
|
878
815
|
expires_in_seconds: number;
|
|
@@ -910,61 +847,6 @@ export interface components {
|
|
|
910
847
|
connection_id: string;
|
|
911
848
|
/** Format: uuid */
|
|
912
849
|
quote_id: string;
|
|
913
|
-
/**
|
|
914
|
-
* Format: uri
|
|
915
|
-
* @description Required for Stripe and PayPal. Omit for an EVM transfer instruction.
|
|
916
|
-
*/
|
|
917
|
-
return_url?: string;
|
|
918
|
-
/** Format: uri */
|
|
919
|
-
cancel_url?: string;
|
|
920
|
-
};
|
|
921
|
-
AttachExternalAttempt: {
|
|
922
|
-
/** Format: uuid */
|
|
923
|
-
connection_id: string;
|
|
924
|
-
/** Format: uuid */
|
|
925
|
-
quote_id: string;
|
|
926
|
-
resource: components["schemas"]["ExternalResource"];
|
|
927
|
-
/** @description Merchant backend creation-operation reference; never a standalone proof. */
|
|
928
|
-
binding_ref: string;
|
|
929
|
-
/**
|
|
930
|
-
* @description Historical imports never emit a grant in R1.
|
|
931
|
-
* @enum {string}
|
|
932
|
-
*/
|
|
933
|
-
import_mode: "current" | "historical_observe_only";
|
|
934
|
-
};
|
|
935
|
-
RedirectAction: {
|
|
936
|
-
/**
|
|
937
|
-
* @description discriminator enum property added by openapi-typescript
|
|
938
|
-
* @enum {string}
|
|
939
|
-
*/
|
|
940
|
-
type: "redirect";
|
|
941
|
-
/** Format: uri */
|
|
942
|
-
url: string;
|
|
943
|
-
expires_at: string | null;
|
|
944
|
-
};
|
|
945
|
-
ProviderClientAction: {
|
|
946
|
-
/**
|
|
947
|
-
* @description discriminator enum property added by openapi-typescript
|
|
948
|
-
* @enum {string}
|
|
949
|
-
*/
|
|
950
|
-
type: "provider_client";
|
|
951
|
-
/** @enum {string} */
|
|
952
|
-
provider: "stripe" | "paypal";
|
|
953
|
-
/** @description Scoped provider client secret. Never a server API credential. */
|
|
954
|
-
client_capability: string;
|
|
955
|
-
expires_at: string | null;
|
|
956
|
-
};
|
|
957
|
-
/** @description Reserved for Release 2; R1 adapters must not emit. */
|
|
958
|
-
WalletRequestAction: {
|
|
959
|
-
/**
|
|
960
|
-
* @description discriminator enum property added by openapi-typescript
|
|
961
|
-
* @enum {string}
|
|
962
|
-
*/
|
|
963
|
-
type: "wallet_request";
|
|
964
|
-
chain_id: string;
|
|
965
|
-
request: {
|
|
966
|
-
[key: string]: unknown;
|
|
967
|
-
};
|
|
968
850
|
};
|
|
969
851
|
/** @description Watch-only stablecoin payment with the exact registered deployment and permanently assigned recipient in the quote. */
|
|
970
852
|
TransferInstructionAction: {
|
|
@@ -983,7 +865,7 @@ export interface components {
|
|
|
983
865
|
symbol?: components["schemas"]["ChainTokenSymbol"];
|
|
984
866
|
representation?: components["schemas"]["ChainAssetRepresentation"];
|
|
985
867
|
recipient_owner?: components["schemas"]["ChainAddress"];
|
|
986
|
-
/** @description Earliest eligible
|
|
868
|
+
/** @description Earliest eligible transfer time, as a UTC Unix timestamp in seconds. */
|
|
987
869
|
starts_at_epoch: number;
|
|
988
870
|
/** Format: date-time */
|
|
989
871
|
expires_at: string;
|
|
@@ -998,7 +880,7 @@ export interface components {
|
|
|
998
880
|
*/
|
|
999
881
|
type: "none";
|
|
1000
882
|
};
|
|
1001
|
-
NextAction: components["schemas"]["
|
|
883
|
+
NextAction: components["schemas"]["TransferInstructionAction"] | components["schemas"]["NoAction"];
|
|
1002
884
|
Binding: {
|
|
1003
885
|
/** @enum {string} */
|
|
1004
886
|
status: "bound" | "unbound" | "ambiguous";
|
|
@@ -1009,7 +891,7 @@ export interface components {
|
|
|
1009
891
|
registered_at: string;
|
|
1010
892
|
verified_at: string | null;
|
|
1011
893
|
};
|
|
1012
|
-
/** @description
|
|
894
|
+
/** @description A transfer instruction identifies the registered asset and assigned recipient for an unfinished quote. The Worker verifies funds from finalized chain evidence. Historical fiat attempts return no action. */
|
|
1013
895
|
Attempt: {
|
|
1014
896
|
/** Format: uuid */
|
|
1015
897
|
merchant_id: string;
|
|
@@ -1066,9 +948,39 @@ export interface components {
|
|
|
1066
948
|
attempt: components["schemas"]["Attempt"];
|
|
1067
949
|
operation: components["schemas"]["Operation"] | null;
|
|
1068
950
|
};
|
|
1069
|
-
/** @description
|
|
1070
|
-
|
|
1071
|
-
|
|
951
|
+
/** @description Stable opaque reference assigned by the merchant server to the authenticated buyer checkout. */
|
|
952
|
+
ChainCheckoutSessionRef: string;
|
|
953
|
+
/** @description Use a 0x-prefixed wallet signature. Encode raw Solana Ed25519 signature bytes as hex. */
|
|
954
|
+
ChainIntentSignature: string;
|
|
955
|
+
/** @description EVM and TRON IDs are canonicalized to lowercase 0x-prefixed hex. TRON accepts bare hex. Solana signatures remain case-sensitive base58. */
|
|
956
|
+
ChainIntentTransactionId: string;
|
|
957
|
+
CreateChainIntent: {
|
|
958
|
+
checkout_session_ref: components["schemas"]["ChainCheckoutSessionRef"];
|
|
959
|
+
payer_address: components["schemas"]["ChainAddress"];
|
|
960
|
+
};
|
|
961
|
+
AuthorizeChainIntent: {
|
|
962
|
+
checkout_session_ref: components["schemas"]["ChainCheckoutSessionRef"];
|
|
963
|
+
signature: components["schemas"]["ChainIntentSignature"];
|
|
964
|
+
};
|
|
965
|
+
SubmitChainIntent: {
|
|
966
|
+
checkout_session_ref: components["schemas"]["ChainCheckoutSessionRef"];
|
|
967
|
+
transaction_id: components["schemas"]["ChainIntentTransactionId"];
|
|
968
|
+
signature: components["schemas"]["ChainIntentSignature"];
|
|
969
|
+
};
|
|
970
|
+
ChainIntent: {
|
|
971
|
+
/** Format: uuid */
|
|
972
|
+
intent_id: string;
|
|
973
|
+
/** Format: uuid */
|
|
974
|
+
quote_id: string;
|
|
975
|
+
family: components["schemas"]["ChainFamily"];
|
|
976
|
+
payer_address: components["schemas"]["ChainAddress"];
|
|
977
|
+
/** Format: date-time */
|
|
978
|
+
expires_at: string;
|
|
979
|
+
/** @description Exact UTF-8 message to sign for this checkout and payer. Preserve line endings and spacing. */
|
|
980
|
+
signing_message: string;
|
|
981
|
+
/** @enum {string} */
|
|
982
|
+
status: "pending" | "authorized" | "submitted";
|
|
983
|
+
transaction_id: components["schemas"]["ChainIntentTransactionId"] | null;
|
|
1072
984
|
};
|
|
1073
985
|
VerifyRequest: {
|
|
1074
986
|
/** Format: uuid */
|
|
@@ -1076,23 +988,26 @@ export interface components {
|
|
|
1076
988
|
/** @enum {string} */
|
|
1077
989
|
reason: "buyer_return" | "merchant_request" | "reconciliation" | "support_retry";
|
|
1078
990
|
};
|
|
1079
|
-
/** @description Stops new attempts immediately.
|
|
991
|
+
/** @description Stops new transfer attempts immediately. Previously sent or in-flight transfers can still settle on-chain. */
|
|
1080
992
|
CancelPayment: {
|
|
1081
993
|
expected_resource_version: number;
|
|
1082
994
|
reason: string;
|
|
1083
995
|
};
|
|
1084
|
-
/** @description
|
|
1085
|
-
RecoverOperation: {
|
|
1086
|
-
reason: string;
|
|
1087
|
-
};
|
|
1088
|
-
/** @description Narrow audited business exception. accept_late_payment only accepts independently valid, bound, correctly funded evidence held for timing; it cannot override amount, payee, account, asset, evidence integrity or duplicate allocation. No paid=true or evidence mutation. */
|
|
996
|
+
/** @description Narrow audited business exception. accept_late_payment only accepts independently valid, bound, correctly funded evidence held for timing. accept_unattributed_chain_payment can override missing wallet approval only for the named verified movement. Neither action overrides amount, payee, account, asset, evidence integrity or duplicate allocation. */
|
|
1089
997
|
ReviewRequest: {
|
|
1090
998
|
expected_resource_version: number;
|
|
1091
999
|
/** @enum {string} */
|
|
1092
|
-
action: "accept_late_payment" | "keep_on_hold" | "reject_fulfillment";
|
|
1000
|
+
action: "accept_late_payment" | "accept_unattributed_chain_payment" | "keep_on_hold" | "reject_fulfillment";
|
|
1001
|
+
/**
|
|
1002
|
+
* Format: uuid
|
|
1003
|
+
* @description Verified on-chain receipt to apply when accepting an unattributed payment.
|
|
1004
|
+
*/
|
|
1005
|
+
movement_id?: string;
|
|
1006
|
+
/** @description Explicit operator approval for the specified movement after expiry. */
|
|
1007
|
+
allow_late_payment?: boolean;
|
|
1093
1008
|
/** @description Required human/business justification; not a replacement payment proof. */
|
|
1094
1009
|
reason: string;
|
|
1095
|
-
};
|
|
1010
|
+
} & unknown;
|
|
1096
1011
|
/** @description Immutable review/audit record plus resulting decision committed together. review_id may be the audit_events primary key. Existing grant identity is reused; no duplicate grant or automatic compensation is manufactured. */
|
|
1097
1012
|
ReviewResult: {
|
|
1098
1013
|
/** Format: uuid */
|
|
@@ -1100,7 +1015,7 @@ export interface components {
|
|
|
1100
1015
|
/** Format: uuid */
|
|
1101
1016
|
payment_id: string;
|
|
1102
1017
|
/** @enum {string} */
|
|
1103
|
-
action: "accept_late_payment" | "keep_on_hold" | "reject_fulfillment";
|
|
1018
|
+
action: "accept_late_payment" | "accept_unattributed_chain_payment" | "keep_on_hold" | "reject_fulfillment";
|
|
1104
1019
|
/** Format: uuid */
|
|
1105
1020
|
previous_decision_id: string;
|
|
1106
1021
|
decision: components["schemas"]["Decision"];
|
|
@@ -1121,42 +1036,7 @@ export interface components {
|
|
|
1121
1036
|
enforce_expiry: boolean;
|
|
1122
1037
|
binding_methods: string[];
|
|
1123
1038
|
};
|
|
1124
|
-
|
|
1125
|
-
/** @constant */
|
|
1126
|
-
kind: "stripe_secret";
|
|
1127
|
-
/** @description Validated and encrypted before persistence; never logged. */
|
|
1128
|
-
restricted_api_key: string;
|
|
1129
|
-
/** @description For the exact registered 0to1Pay ingress endpoint. May be omitted only at unvalidated bootstrap; ready validation requires it. */
|
|
1130
|
-
webhook_signing_secret?: string;
|
|
1131
|
-
};
|
|
1132
|
-
PayPalCredentials: {
|
|
1133
|
-
/** @constant */
|
|
1134
|
-
kind: "paypal_secret";
|
|
1135
|
-
/** @description PayPal application client ID; returned Connection omits it. */
|
|
1136
|
-
client_id: string;
|
|
1137
|
-
/** @description Encrypted before persistence. */
|
|
1138
|
-
client_secret: string;
|
|
1139
|
-
/** @description Registered PayPal webhook ID. Not a signing key; may be omitted only at unvalidated bootstrap. Ready validation requires it. */
|
|
1140
|
-
webhook_id?: string;
|
|
1141
|
-
};
|
|
1142
|
-
SecretReference: {
|
|
1143
|
-
/** @constant */
|
|
1144
|
-
kind: "preprovisioned_secret_ref";
|
|
1145
|
-
/** @description Operator-only preallocated reference bound to this tenant/project/environment. No arbitrary filesystem or URL lookup. */
|
|
1146
|
-
credential_ref: string;
|
|
1147
|
-
};
|
|
1148
|
-
/** @description Provider/credential kind must agree. Auth key determines tenant/environment. Validation compares actual resource/account/env against expected identity. Preprovisioned reference requires operator permission; regular tenants supply writeOnly credentials. */
|
|
1149
|
-
CreateConnection: {
|
|
1150
|
-
/** @enum {string} */
|
|
1151
|
-
provider: "stripe" | "paypal";
|
|
1152
|
-
display_name: string;
|
|
1153
|
-
/** @enum {string} */
|
|
1154
|
-
mode: "observe" | "initiate";
|
|
1155
|
-
expected_provider_account_id: string;
|
|
1156
|
-
credentials: components["schemas"]["StripeCredentials"] | components["schemas"]["PayPalCredentials"] | components["schemas"]["SecretReference"];
|
|
1157
|
-
return_origins: string[];
|
|
1158
|
-
};
|
|
1159
|
-
/** @description Provisional connections have identity_verified=false and provider_account_id=null and reserve no canonical account. No credentials, webhook secrets or credential references are returned. Only identity-verified and otherwise-ready connections may create/attach attempts. */
|
|
1039
|
+
/** @description Ready chain connections can be used for new payments. Historical connection records remain available for reads. */
|
|
1160
1040
|
Connection: {
|
|
1161
1041
|
/** Format: uuid */
|
|
1162
1042
|
merchant_id: string;
|
|
@@ -1180,7 +1060,8 @@ export interface components {
|
|
|
1180
1060
|
status: "unvalidated" | "ready" | "disabled" | "error";
|
|
1181
1061
|
capabilities: components["schemas"]["Capabilities"];
|
|
1182
1062
|
return_origins: string[];
|
|
1183
|
-
|
|
1063
|
+
/** @description Retained for historical reads. */
|
|
1064
|
+
webhook_url: null;
|
|
1184
1065
|
validated_at: string | null;
|
|
1185
1066
|
/** Format: date-time */
|
|
1186
1067
|
created_at: string;
|
|
@@ -1188,21 +1069,6 @@ export interface components {
|
|
|
1188
1069
|
updated_at: string;
|
|
1189
1070
|
resource_version: number;
|
|
1190
1071
|
} & (unknown & unknown);
|
|
1191
|
-
/** @description Optional controlled merchant-created resource, retrieved with supplied credentials. Must establish these credentials seller context/default payee or independently verified provider authorization; a matching caller string/arbitrary readable order alone is insufficient. No automatic real charge/capture is performed for identity validation. */
|
|
1192
|
-
IdentityEvidence: {
|
|
1193
|
-
/** @enum {string} */
|
|
1194
|
-
type: "paypal_order" | "paypal_capture";
|
|
1195
|
-
id: string;
|
|
1196
|
-
};
|
|
1197
|
-
/** @description Optional PayPal order/capture evidence enables provisional bootstrap. Retrieve authoritative resource and payee with these credentials, compare expected identity and verified seller context before canonical account reservation. Unsupported evidence/provider combinations are rejected. */
|
|
1198
|
-
ConnectionValidation: {
|
|
1199
|
-
reason?: string;
|
|
1200
|
-
identity_evidence?: components["schemas"]["IdentityEvidence"];
|
|
1201
|
-
};
|
|
1202
|
-
RotateConnectionCredentials: {
|
|
1203
|
-
credentials: components["schemas"]["StripeCredentials"] | components["schemas"]["PayPalCredentials"] | components["schemas"]["SecretReference"];
|
|
1204
|
-
expected_resource_version: number;
|
|
1205
|
-
};
|
|
1206
1072
|
ConnectionDisable: {
|
|
1207
1073
|
reason: string;
|
|
1208
1074
|
expected_resource_version: number;
|
|
@@ -1432,7 +1298,7 @@ export interface components {
|
|
|
1432
1298
|
"application/json": components["schemas"]["Error"];
|
|
1433
1299
|
};
|
|
1434
1300
|
};
|
|
1435
|
-
/** @description Missing
|
|
1301
|
+
/** @description Missing or invalid server credential. */
|
|
1436
1302
|
Unauthorized: {
|
|
1437
1303
|
headers: {
|
|
1438
1304
|
[name: string]: unknown;
|
|
@@ -1489,13 +1355,14 @@ export interface components {
|
|
|
1489
1355
|
};
|
|
1490
1356
|
};
|
|
1491
1357
|
parameters: {
|
|
1492
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1358
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1493
1359
|
IdempotencyKey: string;
|
|
1494
1360
|
Cursor: string;
|
|
1495
1361
|
Limit: number;
|
|
1496
1362
|
payment_id: string;
|
|
1497
1363
|
attempt_id: string;
|
|
1498
1364
|
quote_id: string;
|
|
1365
|
+
intent_id: string;
|
|
1499
1366
|
connection_id: string;
|
|
1500
1367
|
operation_id: string;
|
|
1501
1368
|
command_id: string;
|
|
@@ -1533,7 +1400,7 @@ export interface operations {
|
|
|
1533
1400
|
parameters: {
|
|
1534
1401
|
query?: never;
|
|
1535
1402
|
header: {
|
|
1536
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1403
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1537
1404
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1538
1405
|
};
|
|
1539
1406
|
path?: never;
|
|
@@ -1565,7 +1432,7 @@ export interface operations {
|
|
|
1565
1432
|
parameters: {
|
|
1566
1433
|
query?: never;
|
|
1567
1434
|
header: {
|
|
1568
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1435
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1569
1436
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1570
1437
|
};
|
|
1571
1438
|
path: {
|
|
@@ -1630,7 +1497,7 @@ export interface operations {
|
|
|
1630
1497
|
parameters: {
|
|
1631
1498
|
query?: never;
|
|
1632
1499
|
header: {
|
|
1633
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1500
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1634
1501
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1635
1502
|
};
|
|
1636
1503
|
path?: never;
|
|
@@ -1695,7 +1562,7 @@ export interface operations {
|
|
|
1695
1562
|
parameters: {
|
|
1696
1563
|
query?: never;
|
|
1697
1564
|
header: {
|
|
1698
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1565
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1699
1566
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1700
1567
|
};
|
|
1701
1568
|
path: {
|
|
@@ -1758,28 +1625,31 @@ export interface operations {
|
|
|
1758
1625
|
503: components["responses"]["Unavailable"];
|
|
1759
1626
|
};
|
|
1760
1627
|
};
|
|
1761
|
-
|
|
1628
|
+
createChainIntent: {
|
|
1762
1629
|
parameters: {
|
|
1763
|
-
query?:
|
|
1764
|
-
|
|
1765
|
-
|
|
1630
|
+
query?: never;
|
|
1631
|
+
header: {
|
|
1632
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1633
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1766
1634
|
};
|
|
1767
|
-
header?: never;
|
|
1768
1635
|
path: {
|
|
1769
|
-
|
|
1636
|
+
quote_id: components["parameters"]["quote_id"];
|
|
1770
1637
|
};
|
|
1771
1638
|
cookie?: never;
|
|
1772
1639
|
};
|
|
1773
|
-
requestBody
|
|
1640
|
+
requestBody: {
|
|
1641
|
+
content: {
|
|
1642
|
+
"application/json": components["schemas"]["CreateChainIntent"];
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1774
1645
|
responses: {
|
|
1775
|
-
/** @description
|
|
1646
|
+
/** @description The checkout's payer and wallet approval message. */
|
|
1776
1647
|
200: {
|
|
1777
1648
|
headers: {
|
|
1778
|
-
"X-Request-Id"?: string;
|
|
1779
1649
|
[name: string]: unknown;
|
|
1780
1650
|
};
|
|
1781
1651
|
content: {
|
|
1782
|
-
"application/json": components["schemas"]["
|
|
1652
|
+
"application/json": components["schemas"]["ChainIntent"];
|
|
1783
1653
|
};
|
|
1784
1654
|
};
|
|
1785
1655
|
400: components["responses"]["BadRequest"];
|
|
@@ -1791,42 +1661,32 @@ export interface operations {
|
|
|
1791
1661
|
503: components["responses"]["Unavailable"];
|
|
1792
1662
|
};
|
|
1793
1663
|
};
|
|
1794
|
-
|
|
1664
|
+
authorizeChainIntent: {
|
|
1795
1665
|
parameters: {
|
|
1796
1666
|
query?: never;
|
|
1797
1667
|
header: {
|
|
1798
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1668
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1799
1669
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1800
1670
|
};
|
|
1801
1671
|
path: {
|
|
1802
|
-
|
|
1672
|
+
quote_id: components["parameters"]["quote_id"];
|
|
1673
|
+
intent_id: components["parameters"]["intent_id"];
|
|
1803
1674
|
};
|
|
1804
1675
|
cookie?: never;
|
|
1805
1676
|
};
|
|
1806
1677
|
requestBody: {
|
|
1807
1678
|
content: {
|
|
1808
|
-
"application/json": components["schemas"]["
|
|
1679
|
+
"application/json": components["schemas"]["AuthorizeChainIntent"];
|
|
1809
1680
|
};
|
|
1810
1681
|
};
|
|
1811
1682
|
responses: {
|
|
1812
|
-
/** @description
|
|
1813
|
-
|
|
1814
|
-
headers: {
|
|
1815
|
-
"X-Request-Id"?: string;
|
|
1816
|
-
[name: string]: unknown;
|
|
1817
|
-
};
|
|
1818
|
-
content: {
|
|
1819
|
-
"application/json": components["schemas"]["AttemptMutationResult"];
|
|
1820
|
-
};
|
|
1821
|
-
};
|
|
1822
|
-
/** @description Attempt operation persisted; processing or unknown outcome. Poll same operation. */
|
|
1823
|
-
202: {
|
|
1683
|
+
/** @description Wallet approval is recorded. */
|
|
1684
|
+
200: {
|
|
1824
1685
|
headers: {
|
|
1825
|
-
"X-Request-Id"?: string;
|
|
1826
1686
|
[name: string]: unknown;
|
|
1827
1687
|
};
|
|
1828
1688
|
content: {
|
|
1829
|
-
"application/json": components["schemas"]["
|
|
1689
|
+
"application/json": components["schemas"]["ChainIntent"];
|
|
1830
1690
|
};
|
|
1831
1691
|
};
|
|
1832
1692
|
400: components["responses"]["BadRequest"];
|
|
@@ -1838,32 +1698,32 @@ export interface operations {
|
|
|
1838
1698
|
503: components["responses"]["Unavailable"];
|
|
1839
1699
|
};
|
|
1840
1700
|
};
|
|
1841
|
-
|
|
1701
|
+
submitChainIntent: {
|
|
1842
1702
|
parameters: {
|
|
1843
1703
|
query?: never;
|
|
1844
1704
|
header: {
|
|
1845
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1705
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1846
1706
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1847
1707
|
};
|
|
1848
1708
|
path: {
|
|
1849
|
-
|
|
1709
|
+
quote_id: components["parameters"]["quote_id"];
|
|
1710
|
+
intent_id: components["parameters"]["intent_id"];
|
|
1850
1711
|
};
|
|
1851
1712
|
cookie?: never;
|
|
1852
1713
|
};
|
|
1853
1714
|
requestBody: {
|
|
1854
1715
|
content: {
|
|
1855
|
-
"application/json": components["schemas"]["
|
|
1716
|
+
"application/json": components["schemas"]["SubmitChainIntent"];
|
|
1856
1717
|
};
|
|
1857
1718
|
};
|
|
1858
1719
|
responses: {
|
|
1859
|
-
/** @description
|
|
1860
|
-
|
|
1720
|
+
/** @description The transaction claim is recorded for verification. Check the payment for the resulting decision. */
|
|
1721
|
+
200: {
|
|
1861
1722
|
headers: {
|
|
1862
|
-
"X-Request-Id"?: string;
|
|
1863
1723
|
[name: string]: unknown;
|
|
1864
1724
|
};
|
|
1865
1725
|
content: {
|
|
1866
|
-
"application/json": components["schemas"]["
|
|
1726
|
+
"application/json": components["schemas"]["ChainIntent"];
|
|
1867
1727
|
};
|
|
1868
1728
|
};
|
|
1869
1729
|
400: components["responses"]["BadRequest"];
|
|
@@ -1875,12 +1735,15 @@ export interface operations {
|
|
|
1875
1735
|
503: components["responses"]["Unavailable"];
|
|
1876
1736
|
};
|
|
1877
1737
|
};
|
|
1878
|
-
|
|
1738
|
+
listAttempts: {
|
|
1879
1739
|
parameters: {
|
|
1880
|
-
query?:
|
|
1740
|
+
query?: {
|
|
1741
|
+
cursor?: components["parameters"]["Cursor"];
|
|
1742
|
+
limit?: components["parameters"]["Limit"];
|
|
1743
|
+
};
|
|
1881
1744
|
header?: never;
|
|
1882
1745
|
path: {
|
|
1883
|
-
|
|
1746
|
+
payment_id: components["parameters"]["payment_id"];
|
|
1884
1747
|
};
|
|
1885
1748
|
cookie?: never;
|
|
1886
1749
|
};
|
|
@@ -1893,7 +1756,7 @@ export interface operations {
|
|
|
1893
1756
|
[name: string]: unknown;
|
|
1894
1757
|
};
|
|
1895
1758
|
content: {
|
|
1896
|
-
"application/json": components["schemas"]["
|
|
1759
|
+
"application/json": components["schemas"]["AttemptList"];
|
|
1897
1760
|
};
|
|
1898
1761
|
};
|
|
1899
1762
|
400: components["responses"]["BadRequest"];
|
|
@@ -1905,32 +1768,62 @@ export interface operations {
|
|
|
1905
1768
|
503: components["responses"]["Unavailable"];
|
|
1906
1769
|
};
|
|
1907
1770
|
};
|
|
1908
|
-
|
|
1771
|
+
createAttempt: {
|
|
1909
1772
|
parameters: {
|
|
1910
1773
|
query?: never;
|
|
1911
1774
|
header: {
|
|
1912
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1775
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1913
1776
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1914
1777
|
};
|
|
1915
1778
|
path: {
|
|
1916
|
-
|
|
1779
|
+
payment_id: components["parameters"]["payment_id"];
|
|
1917
1780
|
};
|
|
1918
1781
|
cookie?: never;
|
|
1919
1782
|
};
|
|
1920
1783
|
requestBody: {
|
|
1921
1784
|
content: {
|
|
1922
|
-
"application/json": components["schemas"]["
|
|
1785
|
+
"application/json": components["schemas"]["CreateAttempt"];
|
|
1923
1786
|
};
|
|
1924
1787
|
};
|
|
1925
1788
|
responses: {
|
|
1926
|
-
/** @description
|
|
1927
|
-
|
|
1789
|
+
/** @description Chain transfer attempt for the assigned quote. */
|
|
1790
|
+
201: {
|
|
1928
1791
|
headers: {
|
|
1929
1792
|
"X-Request-Id"?: string;
|
|
1930
1793
|
[name: string]: unknown;
|
|
1931
1794
|
};
|
|
1932
1795
|
content: {
|
|
1933
|
-
"application/json": components["schemas"]["
|
|
1796
|
+
"application/json": components["schemas"]["AttemptMutationResult"];
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
400: components["responses"]["BadRequest"];
|
|
1800
|
+
401: components["responses"]["Unauthorized"];
|
|
1801
|
+
403: components["responses"]["Forbidden"];
|
|
1802
|
+
404: components["responses"]["NotFound"];
|
|
1803
|
+
409: components["responses"]["Conflict"];
|
|
1804
|
+
429: components["responses"]["RateLimited"];
|
|
1805
|
+
503: components["responses"]["Unavailable"];
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1808
|
+
getAttempt: {
|
|
1809
|
+
parameters: {
|
|
1810
|
+
query?: never;
|
|
1811
|
+
header?: never;
|
|
1812
|
+
path: {
|
|
1813
|
+
attempt_id: components["parameters"]["attempt_id"];
|
|
1814
|
+
};
|
|
1815
|
+
cookie?: never;
|
|
1816
|
+
};
|
|
1817
|
+
requestBody?: never;
|
|
1818
|
+
responses: {
|
|
1819
|
+
/** @description Success */
|
|
1820
|
+
200: {
|
|
1821
|
+
headers: {
|
|
1822
|
+
"X-Request-Id"?: string;
|
|
1823
|
+
[name: string]: unknown;
|
|
1824
|
+
};
|
|
1825
|
+
content: {
|
|
1826
|
+
"application/json": components["schemas"]["Attempt"];
|
|
1934
1827
|
};
|
|
1935
1828
|
};
|
|
1936
1829
|
400: components["responses"]["BadRequest"];
|
|
@@ -1946,7 +1839,7 @@ export interface operations {
|
|
|
1946
1839
|
parameters: {
|
|
1947
1840
|
query?: never;
|
|
1948
1841
|
header: {
|
|
1949
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1842
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1950
1843
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1951
1844
|
};
|
|
1952
1845
|
path: {
|
|
@@ -1983,7 +1876,7 @@ export interface operations {
|
|
|
1983
1876
|
parameters: {
|
|
1984
1877
|
query?: never;
|
|
1985
1878
|
header: {
|
|
1986
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1879
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
1987
1880
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
1988
1881
|
};
|
|
1989
1882
|
path: {
|
|
@@ -1997,7 +1890,7 @@ export interface operations {
|
|
|
1997
1890
|
};
|
|
1998
1891
|
};
|
|
1999
1892
|
responses: {
|
|
2000
|
-
/** @description Collection closed locally
|
|
1893
|
+
/** @description Collection closed locally. Late transfers remain visible. */
|
|
2001
1894
|
202: {
|
|
2002
1895
|
headers: {
|
|
2003
1896
|
"X-Request-Id"?: string;
|
|
@@ -2020,7 +1913,7 @@ export interface operations {
|
|
|
2020
1913
|
parameters: {
|
|
2021
1914
|
query?: never;
|
|
2022
1915
|
header: {
|
|
2023
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1916
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2024
1917
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2025
1918
|
};
|
|
2026
1919
|
path: {
|
|
@@ -2093,43 +1986,6 @@ export interface operations {
|
|
|
2093
1986
|
503: components["responses"]["Unavailable"];
|
|
2094
1987
|
};
|
|
2095
1988
|
};
|
|
2096
|
-
recoverOperation: {
|
|
2097
|
-
parameters: {
|
|
2098
|
-
query?: never;
|
|
2099
|
-
header: {
|
|
2100
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
|
|
2101
|
-
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2102
|
-
};
|
|
2103
|
-
path: {
|
|
2104
|
-
operation_id: components["parameters"]["operation_id"];
|
|
2105
|
-
};
|
|
2106
|
-
cookie?: never;
|
|
2107
|
-
};
|
|
2108
|
-
requestBody: {
|
|
2109
|
-
content: {
|
|
2110
|
-
"application/json": components["schemas"]["RecoverOperation"];
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
responses: {
|
|
2114
|
-
/** @description Recovery scheduled; original operation identity retained. */
|
|
2115
|
-
202: {
|
|
2116
|
-
headers: {
|
|
2117
|
-
"X-Request-Id"?: string;
|
|
2118
|
-
[name: string]: unknown;
|
|
2119
|
-
};
|
|
2120
|
-
content: {
|
|
2121
|
-
"application/json": components["schemas"]["Operation"];
|
|
2122
|
-
};
|
|
2123
|
-
};
|
|
2124
|
-
400: components["responses"]["BadRequest"];
|
|
2125
|
-
401: components["responses"]["Unauthorized"];
|
|
2126
|
-
403: components["responses"]["Forbidden"];
|
|
2127
|
-
404: components["responses"]["NotFound"];
|
|
2128
|
-
409: components["responses"]["Conflict"];
|
|
2129
|
-
429: components["responses"]["RateLimited"];
|
|
2130
|
-
503: components["responses"]["Unavailable"];
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
1989
|
listConnections: {
|
|
2134
1990
|
parameters: {
|
|
2135
1991
|
query?: {
|
|
@@ -2161,41 +2017,6 @@ export interface operations {
|
|
|
2161
2017
|
503: components["responses"]["Unavailable"];
|
|
2162
2018
|
};
|
|
2163
2019
|
};
|
|
2164
|
-
createConnection: {
|
|
2165
|
-
parameters: {
|
|
2166
|
-
query?: never;
|
|
2167
|
-
header: {
|
|
2168
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
|
|
2169
|
-
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2170
|
-
};
|
|
2171
|
-
path?: never;
|
|
2172
|
-
cookie?: never;
|
|
2173
|
-
};
|
|
2174
|
-
requestBody: {
|
|
2175
|
-
content: {
|
|
2176
|
-
"application/json": components["schemas"]["CreateConnection"];
|
|
2177
|
-
};
|
|
2178
|
-
};
|
|
2179
|
-
responses: {
|
|
2180
|
-
/** @description Encrypted provisional configuration persisted; identity_verified=false, provider_account_id=null until authoritative validation. */
|
|
2181
|
-
201: {
|
|
2182
|
-
headers: {
|
|
2183
|
-
"X-Request-Id"?: string;
|
|
2184
|
-
[name: string]: unknown;
|
|
2185
|
-
};
|
|
2186
|
-
content: {
|
|
2187
|
-
"application/json": components["schemas"]["Connection"];
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
400: components["responses"]["BadRequest"];
|
|
2191
|
-
401: components["responses"]["Unauthorized"];
|
|
2192
|
-
403: components["responses"]["Forbidden"];
|
|
2193
|
-
404: components["responses"]["NotFound"];
|
|
2194
|
-
409: components["responses"]["Conflict"];
|
|
2195
|
-
429: components["responses"]["RateLimited"];
|
|
2196
|
-
503: components["responses"]["Unavailable"];
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2199
2020
|
getConnection: {
|
|
2200
2021
|
parameters: {
|
|
2201
2022
|
query?: never;
|
|
@@ -2226,85 +2047,11 @@ export interface operations {
|
|
|
2226
2047
|
503: components["responses"]["Unavailable"];
|
|
2227
2048
|
};
|
|
2228
2049
|
};
|
|
2229
|
-
validateConnection: {
|
|
2230
|
-
parameters: {
|
|
2231
|
-
query?: never;
|
|
2232
|
-
header: {
|
|
2233
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
|
|
2234
|
-
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2235
|
-
};
|
|
2236
|
-
path: {
|
|
2237
|
-
connection_id: components["parameters"]["connection_id"];
|
|
2238
|
-
};
|
|
2239
|
-
cookie?: never;
|
|
2240
|
-
};
|
|
2241
|
-
requestBody: {
|
|
2242
|
-
content: {
|
|
2243
|
-
"application/json": components["schemas"]["ConnectionValidation"];
|
|
2244
|
-
};
|
|
2245
|
-
};
|
|
2246
|
-
responses: {
|
|
2247
|
-
/** @description Validation scheduled; provisional connection remains unusable until completed. */
|
|
2248
|
-
202: {
|
|
2249
|
-
headers: {
|
|
2250
|
-
"X-Request-Id"?: string;
|
|
2251
|
-
[name: string]: unknown;
|
|
2252
|
-
};
|
|
2253
|
-
content: {
|
|
2254
|
-
"application/json": components["schemas"]["Operation"];
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
400: components["responses"]["BadRequest"];
|
|
2258
|
-
401: components["responses"]["Unauthorized"];
|
|
2259
|
-
403: components["responses"]["Forbidden"];
|
|
2260
|
-
404: components["responses"]["NotFound"];
|
|
2261
|
-
409: components["responses"]["Conflict"];
|
|
2262
|
-
429: components["responses"]["RateLimited"];
|
|
2263
|
-
503: components["responses"]["Unavailable"];
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
rotateConnectionCredentials: {
|
|
2267
|
-
parameters: {
|
|
2268
|
-
query?: never;
|
|
2269
|
-
header: {
|
|
2270
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. Never required on provider webhook ingress. */
|
|
2271
|
-
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2272
|
-
};
|
|
2273
|
-
path: {
|
|
2274
|
-
connection_id: components["parameters"]["connection_id"];
|
|
2275
|
-
};
|
|
2276
|
-
cookie?: never;
|
|
2277
|
-
};
|
|
2278
|
-
requestBody: {
|
|
2279
|
-
content: {
|
|
2280
|
-
"application/json": components["schemas"]["RotateConnectionCredentials"];
|
|
2281
|
-
};
|
|
2282
|
-
};
|
|
2283
|
-
responses: {
|
|
2284
|
-
/** @description New secret version stored; connection requires validation. */
|
|
2285
|
-
200: {
|
|
2286
|
-
headers: {
|
|
2287
|
-
"X-Request-Id"?: string;
|
|
2288
|
-
[name: string]: unknown;
|
|
2289
|
-
};
|
|
2290
|
-
content: {
|
|
2291
|
-
"application/json": components["schemas"]["Connection"];
|
|
2292
|
-
};
|
|
2293
|
-
};
|
|
2294
|
-
400: components["responses"]["BadRequest"];
|
|
2295
|
-
401: components["responses"]["Unauthorized"];
|
|
2296
|
-
403: components["responses"]["Forbidden"];
|
|
2297
|
-
404: components["responses"]["NotFound"];
|
|
2298
|
-
409: components["responses"]["Conflict"];
|
|
2299
|
-
429: components["responses"]["RateLimited"];
|
|
2300
|
-
503: components["responses"]["Unavailable"];
|
|
2301
|
-
};
|
|
2302
|
-
};
|
|
2303
2050
|
disableConnection: {
|
|
2304
2051
|
parameters: {
|
|
2305
2052
|
query?: never;
|
|
2306
2053
|
header: {
|
|
2307
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2054
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2308
2055
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2309
2056
|
};
|
|
2310
2057
|
path: {
|
|
@@ -2341,7 +2088,7 @@ export interface operations {
|
|
|
2341
2088
|
parameters: {
|
|
2342
2089
|
query?: never;
|
|
2343
2090
|
header: {
|
|
2344
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2091
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2345
2092
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2346
2093
|
};
|
|
2347
2094
|
path?: never;
|
|
@@ -2406,7 +2153,7 @@ export interface operations {
|
|
|
2406
2153
|
parameters: {
|
|
2407
2154
|
query?: never;
|
|
2408
2155
|
header: {
|
|
2409
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2156
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2410
2157
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2411
2158
|
};
|
|
2412
2159
|
path: {
|
|
@@ -2439,37 +2186,6 @@ export interface operations {
|
|
|
2439
2186
|
503: components["responses"]["Unavailable"];
|
|
2440
2187
|
};
|
|
2441
2188
|
};
|
|
2442
|
-
ingestProviderWebhook: {
|
|
2443
|
-
parameters: {
|
|
2444
|
-
query?: never;
|
|
2445
|
-
header?: never;
|
|
2446
|
-
path: {
|
|
2447
|
-
connection_id: components["parameters"]["connection_id"];
|
|
2448
|
-
};
|
|
2449
|
-
cookie?: never;
|
|
2450
|
-
};
|
|
2451
|
-
/** @description Schema differs by pinned provider event version. Raw bytes, not parsed/re-serialized JSON, feed signature verification. */
|
|
2452
|
-
requestBody: {
|
|
2453
|
-
content: {
|
|
2454
|
-
"application/json": {
|
|
2455
|
-
[key: string]: unknown;
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
};
|
|
2459
|
-
responses: {
|
|
2460
|
-
/** @description Authenticated event persisted or already present; not payment/fulfillment approval. */
|
|
2461
|
-
202: {
|
|
2462
|
-
headers: {
|
|
2463
|
-
[name: string]: unknown;
|
|
2464
|
-
};
|
|
2465
|
-
content?: never;
|
|
2466
|
-
};
|
|
2467
|
-
400: components["responses"]["BadRequest"];
|
|
2468
|
-
401: components["responses"]["Unauthorized"];
|
|
2469
|
-
403: components["responses"]["Forbidden"];
|
|
2470
|
-
503: components["responses"]["Unavailable"];
|
|
2471
|
-
};
|
|
2472
|
-
};
|
|
2473
2189
|
listEvents: {
|
|
2474
2190
|
parameters: {
|
|
2475
2191
|
query?: {
|
|
@@ -2535,7 +2251,7 @@ export interface operations {
|
|
|
2535
2251
|
parameters: {
|
|
2536
2252
|
query?: never;
|
|
2537
2253
|
header: {
|
|
2538
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2254
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2539
2255
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2540
2256
|
};
|
|
2541
2257
|
path: {
|
|
@@ -2572,7 +2288,7 @@ export interface operations {
|
|
|
2572
2288
|
parameters: {
|
|
2573
2289
|
query?: never;
|
|
2574
2290
|
header: {
|
|
2575
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2291
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2576
2292
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2577
2293
|
};
|
|
2578
2294
|
path: {
|
|
@@ -2619,7 +2335,7 @@ export interface operations {
|
|
|
2619
2335
|
parameters: {
|
|
2620
2336
|
query?: never;
|
|
2621
2337
|
header: {
|
|
2622
|
-
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
2338
|
+
/** @description Stable per logical caller mutation, scoped to bound merchant/project/environment + operation. Same key with different canonical request -> 409. Claim responses dynamically revalidate validity. */
|
|
2623
2339
|
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
2624
2340
|
};
|
|
2625
2341
|
path: {
|