@b3dotfun/sdk 0.1.64 → 0.1.65-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/anyspend/react/components/AnySpend.js +3 -14
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +4 -50
- package/dist/cjs/anyspend/react/components/QRDeposit.js +2 -12
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +1 -1
- package/dist/cjs/anyspend/react/hooks/index.d.ts +1 -0
- package/dist/cjs/anyspend/react/hooks/index.js +1 -0
- package/dist/cjs/anyspend/react/hooks/useOnOrderSuccess.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useOnOrderSuccess.js +27 -0
- package/dist/cjs/anyspend/types/api.d.ts +10 -287
- package/dist/esm/anyspend/react/components/AnySpend.js +3 -14
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +4 -17
- package/dist/esm/anyspend/react/components/QRDeposit.js +2 -12
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +1 -1
- package/dist/esm/anyspend/react/hooks/index.d.ts +1 -0
- package/dist/esm/anyspend/react/hooks/index.js +1 -0
- package/dist/esm/anyspend/react/hooks/useOnOrderSuccess.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useOnOrderSuccess.js +24 -0
- package/dist/esm/anyspend/types/api.d.ts +10 -287
- package/dist/types/anyspend/react/hooks/index.d.ts +1 -0
- package/dist/types/anyspend/react/hooks/useOnOrderSuccess.d.ts +10 -0
- package/dist/types/anyspend/types/api.d.ts +10 -287
- package/package.json +1 -1
- package/src/anyspend/react/components/AnySpend.tsx +3 -16
- package/src/anyspend/react/components/AnySpendCustom.tsx +3 -18
- package/src/anyspend/react/components/QRDeposit.tsx +2 -13
- package/src/anyspend/react/components/common/OrderDetails.tsx +1 -1
- package/src/anyspend/react/hooks/index.ts +1 -0
- package/src/anyspend/react/hooks/useOnOrderSuccess.ts +36 -0
- package/src/anyspend/types/api.ts +10 -287
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
6
|
"/chains/{chainId}/tokens": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
7
|
/**
|
|
14
8
|
* Get tokens for a chain
|
|
15
9
|
* @description Retrieves available tokens for a specific blockchain
|
|
@@ -25,7 +19,6 @@ export interface paths {
|
|
|
25
19
|
/** @description Maximum number of tokens to return */
|
|
26
20
|
limit?: number;
|
|
27
21
|
};
|
|
28
|
-
header?: never;
|
|
29
22
|
path: {
|
|
30
23
|
/**
|
|
31
24
|
* @description Blockchain chain ID
|
|
@@ -33,15 +26,10 @@ export interface paths {
|
|
|
33
26
|
*/
|
|
34
27
|
chainId: number;
|
|
35
28
|
};
|
|
36
|
-
cookie?: never;
|
|
37
29
|
};
|
|
38
|
-
requestBody?: never;
|
|
39
30
|
responses: {
|
|
40
31
|
/** @description Tokens retrieved successfully */
|
|
41
32
|
200: {
|
|
42
|
-
headers: {
|
|
43
|
-
[name: string]: unknown;
|
|
44
|
-
};
|
|
45
33
|
content: {
|
|
46
34
|
"application/json": {
|
|
47
35
|
/** @example true */
|
|
@@ -72,9 +60,6 @@ export interface paths {
|
|
|
72
60
|
};
|
|
73
61
|
/** @description Bad request */
|
|
74
62
|
400: {
|
|
75
|
-
headers: {
|
|
76
|
-
[name: string]: unknown;
|
|
77
|
-
};
|
|
78
63
|
content: {
|
|
79
64
|
"application/json": {
|
|
80
65
|
/** @example false */
|
|
@@ -88,21 +73,8 @@ export interface paths {
|
|
|
88
73
|
};
|
|
89
74
|
};
|
|
90
75
|
};
|
|
91
|
-
put?: never;
|
|
92
|
-
post?: never;
|
|
93
|
-
delete?: never;
|
|
94
|
-
options?: never;
|
|
95
|
-
head?: never;
|
|
96
|
-
patch?: never;
|
|
97
|
-
trace?: never;
|
|
98
76
|
};
|
|
99
77
|
"/onramp/coinbase/options": {
|
|
100
|
-
parameters: {
|
|
101
|
-
query?: never;
|
|
102
|
-
header?: never;
|
|
103
|
-
path?: never;
|
|
104
|
-
cookie?: never;
|
|
105
|
-
};
|
|
106
78
|
/**
|
|
107
79
|
* Get Coinbase onramp options
|
|
108
80
|
* @description Retrieves available Coinbase onramp configuration options.
|
|
@@ -139,17 +111,10 @@ export interface paths {
|
|
|
139
111
|
*/
|
|
140
112
|
chainIds?: string[];
|
|
141
113
|
};
|
|
142
|
-
header?: never;
|
|
143
|
-
path?: never;
|
|
144
|
-
cookie?: never;
|
|
145
114
|
};
|
|
146
|
-
requestBody?: never;
|
|
147
115
|
responses: {
|
|
148
116
|
/** @description Coinbase options retrieved successfully */
|
|
149
117
|
200: {
|
|
150
|
-
headers: {
|
|
151
|
-
[name: string]: unknown;
|
|
152
|
-
};
|
|
153
118
|
content: {
|
|
154
119
|
"application/json": {
|
|
155
120
|
/** @example true */
|
|
@@ -252,9 +217,6 @@ export interface paths {
|
|
|
252
217
|
};
|
|
253
218
|
/** @description Bad request */
|
|
254
219
|
400: {
|
|
255
|
-
headers: {
|
|
256
|
-
[name: string]: unknown;
|
|
257
|
-
};
|
|
258
220
|
content: {
|
|
259
221
|
"application/json": {
|
|
260
222
|
/** @example false */
|
|
@@ -268,34 +230,13 @@ export interface paths {
|
|
|
268
230
|
};
|
|
269
231
|
};
|
|
270
232
|
};
|
|
271
|
-
put?: never;
|
|
272
|
-
post?: never;
|
|
273
|
-
delete?: never;
|
|
274
|
-
options?: never;
|
|
275
|
-
head?: never;
|
|
276
|
-
patch?: never;
|
|
277
|
-
trace?: never;
|
|
278
233
|
};
|
|
279
234
|
"/onramp/coinbase/session-token": {
|
|
280
|
-
parameters: {
|
|
281
|
-
query?: never;
|
|
282
|
-
header?: never;
|
|
283
|
-
path?: never;
|
|
284
|
-
cookie?: never;
|
|
285
|
-
};
|
|
286
|
-
get?: never;
|
|
287
|
-
put?: never;
|
|
288
235
|
/**
|
|
289
236
|
* Create Coinbase session token
|
|
290
237
|
* @description Generates a Coinbase Onramp session token that can be reused when constructing buy URLs.
|
|
291
238
|
*/
|
|
292
239
|
post: {
|
|
293
|
-
parameters: {
|
|
294
|
-
query?: never;
|
|
295
|
-
header?: never;
|
|
296
|
-
path?: never;
|
|
297
|
-
cookie?: never;
|
|
298
|
-
};
|
|
299
240
|
requestBody: {
|
|
300
241
|
content: {
|
|
301
242
|
"application/json": components["schemas"]["CoinbaseSessionTokenRequest"];
|
|
@@ -304,18 +245,12 @@ export interface paths {
|
|
|
304
245
|
responses: {
|
|
305
246
|
/** @description Session token created successfully */
|
|
306
247
|
200: {
|
|
307
|
-
headers: {
|
|
308
|
-
[name: string]: unknown;
|
|
309
|
-
};
|
|
310
248
|
content: {
|
|
311
249
|
"application/json": components["schemas"]["CoinbaseSessionTokenResponse"];
|
|
312
250
|
};
|
|
313
251
|
};
|
|
314
252
|
/** @description Bad request */
|
|
315
253
|
400: {
|
|
316
|
-
headers: {
|
|
317
|
-
[name: string]: unknown;
|
|
318
|
-
};
|
|
319
254
|
content: {
|
|
320
255
|
"application/json": {
|
|
321
256
|
/** @example false */
|
|
@@ -329,32 +264,13 @@ export interface paths {
|
|
|
329
264
|
};
|
|
330
265
|
};
|
|
331
266
|
};
|
|
332
|
-
delete?: never;
|
|
333
|
-
options?: never;
|
|
334
|
-
head?: never;
|
|
335
|
-
patch?: never;
|
|
336
|
-
trace?: never;
|
|
337
267
|
};
|
|
338
268
|
"/onramp/coinbase/onramp-url": {
|
|
339
|
-
parameters: {
|
|
340
|
-
query?: never;
|
|
341
|
-
header?: never;
|
|
342
|
-
path?: never;
|
|
343
|
-
cookie?: never;
|
|
344
|
-
};
|
|
345
|
-
get?: never;
|
|
346
|
-
put?: never;
|
|
347
269
|
/**
|
|
348
270
|
* Create Coinbase onramp URL
|
|
349
271
|
* @description Creates a Coinbase Onramp buy URL and optionally returns a session token for reuse.
|
|
350
272
|
*/
|
|
351
273
|
post: {
|
|
352
|
-
parameters: {
|
|
353
|
-
query?: never;
|
|
354
|
-
header?: never;
|
|
355
|
-
path?: never;
|
|
356
|
-
cookie?: never;
|
|
357
|
-
};
|
|
358
274
|
requestBody: {
|
|
359
275
|
content: {
|
|
360
276
|
"application/json": components["schemas"]["CoinbaseOnrampUrlRequest"];
|
|
@@ -363,18 +279,12 @@ export interface paths {
|
|
|
363
279
|
responses: {
|
|
364
280
|
/** @description Onramp URL created successfully */
|
|
365
281
|
200: {
|
|
366
|
-
headers: {
|
|
367
|
-
[name: string]: unknown;
|
|
368
|
-
};
|
|
369
282
|
content: {
|
|
370
283
|
"application/json": components["schemas"]["CoinbaseOnrampUrlResponse"];
|
|
371
284
|
};
|
|
372
285
|
};
|
|
373
286
|
/** @description Bad request */
|
|
374
287
|
400: {
|
|
375
|
-
headers: {
|
|
376
|
-
[name: string]: unknown;
|
|
377
|
-
};
|
|
378
288
|
content: {
|
|
379
289
|
"application/json": {
|
|
380
290
|
/** @example false */
|
|
@@ -388,32 +298,13 @@ export interface paths {
|
|
|
388
298
|
};
|
|
389
299
|
};
|
|
390
300
|
};
|
|
391
|
-
delete?: never;
|
|
392
|
-
options?: never;
|
|
393
|
-
head?: never;
|
|
394
|
-
patch?: never;
|
|
395
|
-
trace?: never;
|
|
396
301
|
};
|
|
397
302
|
"/onramp/coinbase/direct-url": {
|
|
398
|
-
parameters: {
|
|
399
|
-
query?: never;
|
|
400
|
-
header?: never;
|
|
401
|
-
path?: never;
|
|
402
|
-
cookie?: never;
|
|
403
|
-
};
|
|
404
|
-
get?: never;
|
|
405
|
-
put?: never;
|
|
406
303
|
/**
|
|
407
304
|
* Generate direct Coinbase onramp URL
|
|
408
305
|
* @description Generates a direct Coinbase Onramp URL along with the session token backing it.
|
|
409
306
|
*/
|
|
410
307
|
post: {
|
|
411
|
-
parameters: {
|
|
412
|
-
query?: never;
|
|
413
|
-
header?: never;
|
|
414
|
-
path?: never;
|
|
415
|
-
cookie?: never;
|
|
416
|
-
};
|
|
417
308
|
requestBody: {
|
|
418
309
|
content: {
|
|
419
310
|
"application/json": components["schemas"]["CoinbaseDirectOnrampRequest"];
|
|
@@ -422,18 +313,12 @@ export interface paths {
|
|
|
422
313
|
responses: {
|
|
423
314
|
/** @description Direct onramp URL generated successfully */
|
|
424
315
|
200: {
|
|
425
|
-
headers: {
|
|
426
|
-
[name: string]: unknown;
|
|
427
|
-
};
|
|
428
316
|
content: {
|
|
429
317
|
"application/json": components["schemas"]["CoinbaseDirectOnrampResponse"];
|
|
430
318
|
};
|
|
431
319
|
};
|
|
432
320
|
/** @description Bad request */
|
|
433
321
|
400: {
|
|
434
|
-
headers: {
|
|
435
|
-
[name: string]: unknown;
|
|
436
|
-
};
|
|
437
322
|
content: {
|
|
438
323
|
"application/json": {
|
|
439
324
|
/** @example false */
|
|
@@ -447,19 +332,8 @@ export interface paths {
|
|
|
447
332
|
};
|
|
448
333
|
};
|
|
449
334
|
};
|
|
450
|
-
delete?: never;
|
|
451
|
-
options?: never;
|
|
452
|
-
head?: never;
|
|
453
|
-
patch?: never;
|
|
454
|
-
trace?: never;
|
|
455
335
|
};
|
|
456
336
|
"/onramp/stripe/supported": {
|
|
457
|
-
parameters: {
|
|
458
|
-
query?: never;
|
|
459
|
-
header?: never;
|
|
460
|
-
path?: never;
|
|
461
|
-
cookie?: never;
|
|
462
|
-
};
|
|
463
337
|
/**
|
|
464
338
|
* Check Stripe support
|
|
465
339
|
* @description Checks if Stripe onramp and Stripe Web2 are supported based on IP address location and optional transaction amount
|
|
@@ -473,17 +347,10 @@ export interface paths {
|
|
|
473
347
|
*/
|
|
474
348
|
usdAmount?: string;
|
|
475
349
|
};
|
|
476
|
-
header?: never;
|
|
477
|
-
path?: never;
|
|
478
|
-
cookie?: never;
|
|
479
350
|
};
|
|
480
|
-
requestBody?: never;
|
|
481
351
|
responses: {
|
|
482
352
|
/** @description Stripe support status retrieved successfully */
|
|
483
353
|
200: {
|
|
484
|
-
headers: {
|
|
485
|
-
[name: string]: unknown;
|
|
486
|
-
};
|
|
487
354
|
content: {
|
|
488
355
|
"application/json": {
|
|
489
356
|
/** @example true */
|
|
@@ -506,9 +373,6 @@ export interface paths {
|
|
|
506
373
|
};
|
|
507
374
|
/** @description Bad request */
|
|
508
375
|
400: {
|
|
509
|
-
headers: {
|
|
510
|
-
[name: string]: unknown;
|
|
511
|
-
};
|
|
512
376
|
content: {
|
|
513
377
|
"application/json": {
|
|
514
378
|
/** @example false */
|
|
@@ -522,21 +386,8 @@ export interface paths {
|
|
|
522
386
|
};
|
|
523
387
|
};
|
|
524
388
|
};
|
|
525
|
-
put?: never;
|
|
526
|
-
post?: never;
|
|
527
|
-
delete?: never;
|
|
528
|
-
options?: never;
|
|
529
|
-
head?: never;
|
|
530
|
-
patch?: never;
|
|
531
|
-
trace?: never;
|
|
532
389
|
};
|
|
533
390
|
"/orders": {
|
|
534
|
-
parameters: {
|
|
535
|
-
query?: never;
|
|
536
|
-
header?: never;
|
|
537
|
-
path?: never;
|
|
538
|
-
cookie?: never;
|
|
539
|
-
};
|
|
540
391
|
/**
|
|
541
392
|
* Get orders by creator
|
|
542
393
|
* @description Retrieves all orders created by a specific address
|
|
@@ -560,17 +411,10 @@ export interface paths {
|
|
|
560
411
|
*/
|
|
561
412
|
offset?: string;
|
|
562
413
|
};
|
|
563
|
-
header?: never;
|
|
564
|
-
path?: never;
|
|
565
|
-
cookie?: never;
|
|
566
414
|
};
|
|
567
|
-
requestBody?: never;
|
|
568
415
|
responses: {
|
|
569
416
|
/** @description Orders retrieved successfully */
|
|
570
417
|
200: {
|
|
571
|
-
headers: {
|
|
572
|
-
[name: string]: unknown;
|
|
573
|
-
};
|
|
574
418
|
content: {
|
|
575
419
|
"application/json": {
|
|
576
420
|
/** @example true */
|
|
@@ -586,9 +430,6 @@ export interface paths {
|
|
|
586
430
|
};
|
|
587
431
|
/** @description Bad request */
|
|
588
432
|
400: {
|
|
589
|
-
headers: {
|
|
590
|
-
[name: string]: unknown;
|
|
591
|
-
};
|
|
592
433
|
content: {
|
|
593
434
|
"application/json": {
|
|
594
435
|
/** @example false */
|
|
@@ -602,18 +443,11 @@ export interface paths {
|
|
|
602
443
|
};
|
|
603
444
|
};
|
|
604
445
|
};
|
|
605
|
-
put?: never;
|
|
606
446
|
/**
|
|
607
447
|
* Create a new order
|
|
608
448
|
* @description Creates a new order for token transactions across chains
|
|
609
449
|
*/
|
|
610
450
|
post: {
|
|
611
|
-
parameters: {
|
|
612
|
-
query?: never;
|
|
613
|
-
header?: never;
|
|
614
|
-
path?: never;
|
|
615
|
-
cookie?: never;
|
|
616
|
-
};
|
|
617
451
|
requestBody: {
|
|
618
452
|
content: {
|
|
619
453
|
"application/json": components["schemas"]["OrderRequest"];
|
|
@@ -622,9 +456,6 @@ export interface paths {
|
|
|
622
456
|
responses: {
|
|
623
457
|
/** @description Order created successfully */
|
|
624
458
|
200: {
|
|
625
|
-
headers: {
|
|
626
|
-
[name: string]: unknown;
|
|
627
|
-
};
|
|
628
459
|
content: {
|
|
629
460
|
"application/json": {
|
|
630
461
|
/** @example true */
|
|
@@ -639,9 +470,6 @@ export interface paths {
|
|
|
639
470
|
};
|
|
640
471
|
/** @description Bad request */
|
|
641
472
|
400: {
|
|
642
|
-
headers: {
|
|
643
|
-
[name: string]: unknown;
|
|
644
|
-
};
|
|
645
473
|
content: {
|
|
646
474
|
"application/json": {
|
|
647
475
|
/** @example false */
|
|
@@ -655,27 +483,14 @@ export interface paths {
|
|
|
655
483
|
};
|
|
656
484
|
};
|
|
657
485
|
};
|
|
658
|
-
delete?: never;
|
|
659
|
-
options?: never;
|
|
660
|
-
head?: never;
|
|
661
|
-
patch?: never;
|
|
662
|
-
trace?: never;
|
|
663
486
|
};
|
|
664
487
|
"/orders/{orderId}": {
|
|
665
|
-
parameters: {
|
|
666
|
-
query?: never;
|
|
667
|
-
header?: never;
|
|
668
|
-
path?: never;
|
|
669
|
-
cookie?: never;
|
|
670
|
-
};
|
|
671
488
|
/**
|
|
672
489
|
* Get order and transactions
|
|
673
490
|
* @description Retrieves order details along with associated transactions
|
|
674
491
|
*/
|
|
675
492
|
get: {
|
|
676
493
|
parameters: {
|
|
677
|
-
query?: never;
|
|
678
|
-
header?: never;
|
|
679
494
|
path: {
|
|
680
495
|
/**
|
|
681
496
|
* @description Unique order identifier
|
|
@@ -683,15 +498,10 @@ export interface paths {
|
|
|
683
498
|
*/
|
|
684
499
|
orderId: string;
|
|
685
500
|
};
|
|
686
|
-
cookie?: never;
|
|
687
501
|
};
|
|
688
|
-
requestBody?: never;
|
|
689
502
|
responses: {
|
|
690
503
|
/** @description Order and transactions retrieved successfully */
|
|
691
504
|
200: {
|
|
692
|
-
headers: {
|
|
693
|
-
[name: string]: unknown;
|
|
694
|
-
};
|
|
695
505
|
content: {
|
|
696
506
|
"application/json": {
|
|
697
507
|
/** @example true */
|
|
@@ -743,9 +553,6 @@ export interface paths {
|
|
|
743
553
|
};
|
|
744
554
|
/** @description Bad request */
|
|
745
555
|
400: {
|
|
746
|
-
headers: {
|
|
747
|
-
[name: string]: unknown;
|
|
748
|
-
};
|
|
749
556
|
content: {
|
|
750
557
|
"application/json": {
|
|
751
558
|
/** @example false */
|
|
@@ -759,9 +566,6 @@ export interface paths {
|
|
|
759
566
|
};
|
|
760
567
|
/** @description Order not found */
|
|
761
568
|
404: {
|
|
762
|
-
headers: {
|
|
763
|
-
[name: string]: unknown;
|
|
764
|
-
};
|
|
765
569
|
content: {
|
|
766
570
|
"application/json": {
|
|
767
571
|
/** @example false */
|
|
@@ -775,29 +579,14 @@ export interface paths {
|
|
|
775
579
|
};
|
|
776
580
|
};
|
|
777
581
|
};
|
|
778
|
-
put?: never;
|
|
779
|
-
post?: never;
|
|
780
|
-
delete?: never;
|
|
781
|
-
options?: never;
|
|
782
|
-
head?: never;
|
|
783
|
-
patch?: never;
|
|
784
|
-
trace?: never;
|
|
785
582
|
};
|
|
786
583
|
"/orders/{orderId}/comprehensive": {
|
|
787
|
-
parameters: {
|
|
788
|
-
query?: never;
|
|
789
|
-
header?: never;
|
|
790
|
-
path?: never;
|
|
791
|
-
cookie?: never;
|
|
792
|
-
};
|
|
793
584
|
/**
|
|
794
585
|
* Get comprehensive order detail
|
|
795
586
|
* @description Retrieves an order with associated transactions, settlement data, and awarded points without sanitization.
|
|
796
587
|
*/
|
|
797
588
|
get: {
|
|
798
589
|
parameters: {
|
|
799
|
-
query?: never;
|
|
800
|
-
header?: never;
|
|
801
590
|
path: {
|
|
802
591
|
/**
|
|
803
592
|
* @description Unique order identifier
|
|
@@ -805,24 +594,16 @@ export interface paths {
|
|
|
805
594
|
*/
|
|
806
595
|
orderId: string;
|
|
807
596
|
};
|
|
808
|
-
cookie?: never;
|
|
809
597
|
};
|
|
810
|
-
requestBody?: never;
|
|
811
598
|
responses: {
|
|
812
599
|
/** @description Comprehensive order retrieved successfully */
|
|
813
600
|
200: {
|
|
814
|
-
headers: {
|
|
815
|
-
[name: string]: unknown;
|
|
816
|
-
};
|
|
817
601
|
content: {
|
|
818
602
|
"application/json": components["schemas"]["ComprehensiveOrderResponse"];
|
|
819
603
|
};
|
|
820
604
|
};
|
|
821
605
|
/** @description Bad request */
|
|
822
606
|
400: {
|
|
823
|
-
headers: {
|
|
824
|
-
[name: string]: unknown;
|
|
825
|
-
};
|
|
826
607
|
content: {
|
|
827
608
|
"application/json": {
|
|
828
609
|
/** @example false */
|
|
@@ -836,9 +617,6 @@ export interface paths {
|
|
|
836
617
|
};
|
|
837
618
|
/** @description Order not found */
|
|
838
619
|
404: {
|
|
839
|
-
headers: {
|
|
840
|
-
[name: string]: unknown;
|
|
841
|
-
};
|
|
842
620
|
content: {
|
|
843
621
|
"application/json": {
|
|
844
622
|
/** @example false */
|
|
@@ -852,34 +630,13 @@ export interface paths {
|
|
|
852
630
|
};
|
|
853
631
|
};
|
|
854
632
|
};
|
|
855
|
-
put?: never;
|
|
856
|
-
post?: never;
|
|
857
|
-
delete?: never;
|
|
858
|
-
options?: never;
|
|
859
|
-
head?: never;
|
|
860
|
-
patch?: never;
|
|
861
|
-
trace?: never;
|
|
862
633
|
};
|
|
863
634
|
"/orders/quote": {
|
|
864
|
-
parameters: {
|
|
865
|
-
query?: never;
|
|
866
|
-
header?: never;
|
|
867
|
-
path?: never;
|
|
868
|
-
cookie?: never;
|
|
869
|
-
};
|
|
870
|
-
get?: never;
|
|
871
|
-
put?: never;
|
|
872
635
|
/**
|
|
873
636
|
* Get anyspend quote
|
|
874
637
|
* @description Retrieves a quote to swap, execute contract, or participate in HypeDuel
|
|
875
638
|
*/
|
|
876
639
|
post: {
|
|
877
|
-
parameters: {
|
|
878
|
-
query?: never;
|
|
879
|
-
header?: never;
|
|
880
|
-
path?: never;
|
|
881
|
-
cookie?: never;
|
|
882
|
-
};
|
|
883
640
|
requestBody: {
|
|
884
641
|
content: {
|
|
885
642
|
"application/json": {
|
|
@@ -927,7 +684,7 @@ export interface paths {
|
|
|
927
684
|
* @description Optional onramp vendor
|
|
928
685
|
* @enum {string}
|
|
929
686
|
*/
|
|
930
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
687
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
931
688
|
/** @description Optional partner ID */
|
|
932
689
|
partnerId?: string;
|
|
933
690
|
} | {
|
|
@@ -970,7 +727,7 @@ export interface paths {
|
|
|
970
727
|
* @description Optional onramp vendor
|
|
971
728
|
* @enum {string}
|
|
972
729
|
*/
|
|
973
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
730
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
974
731
|
/** @description Optional partner ID */
|
|
975
732
|
partnerId?: string;
|
|
976
733
|
} | {
|
|
@@ -1019,7 +776,7 @@ export interface paths {
|
|
|
1019
776
|
* @description Optional onramp vendor
|
|
1020
777
|
* @enum {string}
|
|
1021
778
|
*/
|
|
1022
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
779
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1023
780
|
/** @description Optional partner ID */
|
|
1024
781
|
partnerId?: string;
|
|
1025
782
|
} | {
|
|
@@ -1035,7 +792,7 @@ export interface paths {
|
|
|
1035
792
|
*/
|
|
1036
793
|
recipientAddress?: string;
|
|
1037
794
|
/** @enum {string} */
|
|
1038
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
795
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1039
796
|
/** @description Optional partner ID */
|
|
1040
797
|
partnerId?: string;
|
|
1041
798
|
contractAddress: string;
|
|
@@ -1056,7 +813,7 @@ export interface paths {
|
|
|
1056
813
|
*/
|
|
1057
814
|
recipientAddress?: string;
|
|
1058
815
|
/** @enum {string} */
|
|
1059
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
816
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1060
817
|
/** @description Optional partner ID */
|
|
1061
818
|
partnerId?: string;
|
|
1062
819
|
contractAddress: string;
|
|
@@ -1074,7 +831,7 @@ export interface paths {
|
|
|
1074
831
|
*/
|
|
1075
832
|
recipientAddress?: string;
|
|
1076
833
|
/** @enum {string} */
|
|
1077
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
834
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1078
835
|
/** @description Optional partner ID */
|
|
1079
836
|
partnerId?: string;
|
|
1080
837
|
contractAddress: string;
|
|
@@ -1119,7 +876,7 @@ export interface paths {
|
|
|
1119
876
|
* @description Optional onramp vendor
|
|
1120
877
|
* @enum {string}
|
|
1121
878
|
*/
|
|
1122
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
879
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1123
880
|
/** @description Optional partner ID */
|
|
1124
881
|
partnerId?: string;
|
|
1125
882
|
} | {
|
|
@@ -1162,7 +919,7 @@ export interface paths {
|
|
|
1162
919
|
* @description Optional onramp vendor
|
|
1163
920
|
* @enum {string}
|
|
1164
921
|
*/
|
|
1165
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
922
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1166
923
|
/** @description Optional partner ID */
|
|
1167
924
|
partnerId?: string;
|
|
1168
925
|
};
|
|
@@ -1171,9 +928,6 @@ export interface paths {
|
|
|
1171
928
|
responses: {
|
|
1172
929
|
/** @description Quote retrieved successfully */
|
|
1173
930
|
200: {
|
|
1174
|
-
headers: {
|
|
1175
|
-
[name: string]: unknown;
|
|
1176
|
-
};
|
|
1177
931
|
content: {
|
|
1178
932
|
"application/json": {
|
|
1179
933
|
/** @example true */
|
|
@@ -1354,9 +1108,6 @@ export interface paths {
|
|
|
1354
1108
|
};
|
|
1355
1109
|
/** @description Bad request */
|
|
1356
1110
|
400: {
|
|
1357
|
-
headers: {
|
|
1358
|
-
[name: string]: unknown;
|
|
1359
|
-
};
|
|
1360
1111
|
content: {
|
|
1361
1112
|
"application/json": {
|
|
1362
1113
|
/** @example false */
|
|
@@ -1370,19 +1121,8 @@ export interface paths {
|
|
|
1370
1121
|
};
|
|
1371
1122
|
};
|
|
1372
1123
|
};
|
|
1373
|
-
delete?: never;
|
|
1374
|
-
options?: never;
|
|
1375
|
-
head?: never;
|
|
1376
|
-
patch?: never;
|
|
1377
|
-
trace?: never;
|
|
1378
1124
|
};
|
|
1379
1125
|
"/stripe/clientSecret": {
|
|
1380
|
-
parameters: {
|
|
1381
|
-
query?: never;
|
|
1382
|
-
header?: never;
|
|
1383
|
-
path?: never;
|
|
1384
|
-
cookie?: never;
|
|
1385
|
-
};
|
|
1386
1126
|
/**
|
|
1387
1127
|
* Get Stripe client secret
|
|
1388
1128
|
* @description Retrieves a Stripe client secret for payment processing using a payment intent ID
|
|
@@ -1396,17 +1136,10 @@ export interface paths {
|
|
|
1396
1136
|
*/
|
|
1397
1137
|
paymentIntentId: string;
|
|
1398
1138
|
};
|
|
1399
|
-
header?: never;
|
|
1400
|
-
path?: never;
|
|
1401
|
-
cookie?: never;
|
|
1402
1139
|
};
|
|
1403
|
-
requestBody?: never;
|
|
1404
1140
|
responses: {
|
|
1405
1141
|
/** @description Client secret retrieved successfully */
|
|
1406
1142
|
200: {
|
|
1407
|
-
headers: {
|
|
1408
|
-
[name: string]: unknown;
|
|
1409
|
-
};
|
|
1410
1143
|
content: {
|
|
1411
1144
|
"application/json": {
|
|
1412
1145
|
/** @example true */
|
|
@@ -1425,9 +1158,6 @@ export interface paths {
|
|
|
1425
1158
|
};
|
|
1426
1159
|
/** @description Bad request - PaymentIntentId is required or invalid */
|
|
1427
1160
|
400: {
|
|
1428
|
-
headers: {
|
|
1429
|
-
[name: string]: unknown;
|
|
1430
|
-
};
|
|
1431
1161
|
content: {
|
|
1432
1162
|
"application/json": {
|
|
1433
1163
|
/** @example false */
|
|
@@ -1441,13 +1171,6 @@ export interface paths {
|
|
|
1441
1171
|
};
|
|
1442
1172
|
};
|
|
1443
1173
|
};
|
|
1444
|
-
put?: never;
|
|
1445
|
-
post?: never;
|
|
1446
|
-
delete?: never;
|
|
1447
|
-
options?: never;
|
|
1448
|
-
head?: never;
|
|
1449
|
-
patch?: never;
|
|
1450
|
-
trace?: never;
|
|
1451
1174
|
};
|
|
1452
1175
|
}
|
|
1453
1176
|
export type webhooks = Record<string, never>;
|
|
@@ -1500,7 +1223,7 @@ export interface components {
|
|
|
1500
1223
|
* @example stripe-web2
|
|
1501
1224
|
* @enum {string}
|
|
1502
1225
|
*/
|
|
1503
|
-
vendor: "coinbase" | "stripe" | "stripe-web2";
|
|
1226
|
+
vendor: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1504
1227
|
/**
|
|
1505
1228
|
* @description Payment method used
|
|
1506
1229
|
* @example
|
|
@@ -1542,7 +1265,7 @@ export interface components {
|
|
|
1542
1265
|
* @description Onramp vendor
|
|
1543
1266
|
* @enum {string}
|
|
1544
1267
|
*/
|
|
1545
|
-
vendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
1268
|
+
vendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1546
1269
|
/**
|
|
1547
1270
|
* @description Payment method for onramp
|
|
1548
1271
|
* @example
|