@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
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
7
|
"/chains/{chainId}/tokens": {
|
|
8
|
-
parameters: {
|
|
9
|
-
query?: never;
|
|
10
|
-
header?: never;
|
|
11
|
-
path?: never;
|
|
12
|
-
cookie?: never;
|
|
13
|
-
};
|
|
14
8
|
/**
|
|
15
9
|
* Get tokens for a chain
|
|
16
10
|
* @description Retrieves available tokens for a specific blockchain
|
|
@@ -26,7 +20,6 @@ export interface paths {
|
|
|
26
20
|
/** @description Maximum number of tokens to return */
|
|
27
21
|
limit?: number;
|
|
28
22
|
};
|
|
29
|
-
header?: never;
|
|
30
23
|
path: {
|
|
31
24
|
/**
|
|
32
25
|
* @description Blockchain chain ID
|
|
@@ -34,15 +27,10 @@ export interface paths {
|
|
|
34
27
|
*/
|
|
35
28
|
chainId: number;
|
|
36
29
|
};
|
|
37
|
-
cookie?: never;
|
|
38
30
|
};
|
|
39
|
-
requestBody?: never;
|
|
40
31
|
responses: {
|
|
41
32
|
/** @description Tokens retrieved successfully */
|
|
42
33
|
200: {
|
|
43
|
-
headers: {
|
|
44
|
-
[name: string]: unknown;
|
|
45
|
-
};
|
|
46
34
|
content: {
|
|
47
35
|
"application/json": {
|
|
48
36
|
/** @example true */
|
|
@@ -73,9 +61,6 @@ export interface paths {
|
|
|
73
61
|
};
|
|
74
62
|
/** @description Bad request */
|
|
75
63
|
400: {
|
|
76
|
-
headers: {
|
|
77
|
-
[name: string]: unknown;
|
|
78
|
-
};
|
|
79
64
|
content: {
|
|
80
65
|
"application/json": {
|
|
81
66
|
/** @example false */
|
|
@@ -89,21 +74,8 @@ export interface paths {
|
|
|
89
74
|
};
|
|
90
75
|
};
|
|
91
76
|
};
|
|
92
|
-
put?: never;
|
|
93
|
-
post?: never;
|
|
94
|
-
delete?: never;
|
|
95
|
-
options?: never;
|
|
96
|
-
head?: never;
|
|
97
|
-
patch?: never;
|
|
98
|
-
trace?: never;
|
|
99
77
|
};
|
|
100
78
|
"/onramp/coinbase/options": {
|
|
101
|
-
parameters: {
|
|
102
|
-
query?: never;
|
|
103
|
-
header?: never;
|
|
104
|
-
path?: never;
|
|
105
|
-
cookie?: never;
|
|
106
|
-
};
|
|
107
79
|
/**
|
|
108
80
|
* Get Coinbase onramp options
|
|
109
81
|
* @description Retrieves available Coinbase onramp configuration options.
|
|
@@ -140,17 +112,10 @@ export interface paths {
|
|
|
140
112
|
*/
|
|
141
113
|
chainIds?: string[];
|
|
142
114
|
};
|
|
143
|
-
header?: never;
|
|
144
|
-
path?: never;
|
|
145
|
-
cookie?: never;
|
|
146
115
|
};
|
|
147
|
-
requestBody?: never;
|
|
148
116
|
responses: {
|
|
149
117
|
/** @description Coinbase options retrieved successfully */
|
|
150
118
|
200: {
|
|
151
|
-
headers: {
|
|
152
|
-
[name: string]: unknown;
|
|
153
|
-
};
|
|
154
119
|
content: {
|
|
155
120
|
"application/json": {
|
|
156
121
|
/** @example true */
|
|
@@ -253,9 +218,6 @@ export interface paths {
|
|
|
253
218
|
};
|
|
254
219
|
/** @description Bad request */
|
|
255
220
|
400: {
|
|
256
|
-
headers: {
|
|
257
|
-
[name: string]: unknown;
|
|
258
|
-
};
|
|
259
221
|
content: {
|
|
260
222
|
"application/json": {
|
|
261
223
|
/** @example false */
|
|
@@ -269,34 +231,13 @@ export interface paths {
|
|
|
269
231
|
};
|
|
270
232
|
};
|
|
271
233
|
};
|
|
272
|
-
put?: never;
|
|
273
|
-
post?: never;
|
|
274
|
-
delete?: never;
|
|
275
|
-
options?: never;
|
|
276
|
-
head?: never;
|
|
277
|
-
patch?: never;
|
|
278
|
-
trace?: never;
|
|
279
234
|
};
|
|
280
235
|
"/onramp/coinbase/session-token": {
|
|
281
|
-
parameters: {
|
|
282
|
-
query?: never;
|
|
283
|
-
header?: never;
|
|
284
|
-
path?: never;
|
|
285
|
-
cookie?: never;
|
|
286
|
-
};
|
|
287
|
-
get?: never;
|
|
288
|
-
put?: never;
|
|
289
236
|
/**
|
|
290
237
|
* Create Coinbase session token
|
|
291
238
|
* @description Generates a Coinbase Onramp session token that can be reused when constructing buy URLs.
|
|
292
239
|
*/
|
|
293
240
|
post: {
|
|
294
|
-
parameters: {
|
|
295
|
-
query?: never;
|
|
296
|
-
header?: never;
|
|
297
|
-
path?: never;
|
|
298
|
-
cookie?: never;
|
|
299
|
-
};
|
|
300
241
|
requestBody: {
|
|
301
242
|
content: {
|
|
302
243
|
"application/json": components["schemas"]["CoinbaseSessionTokenRequest"];
|
|
@@ -305,18 +246,12 @@ export interface paths {
|
|
|
305
246
|
responses: {
|
|
306
247
|
/** @description Session token created successfully */
|
|
307
248
|
200: {
|
|
308
|
-
headers: {
|
|
309
|
-
[name: string]: unknown;
|
|
310
|
-
};
|
|
311
249
|
content: {
|
|
312
250
|
"application/json": components["schemas"]["CoinbaseSessionTokenResponse"];
|
|
313
251
|
};
|
|
314
252
|
};
|
|
315
253
|
/** @description Bad request */
|
|
316
254
|
400: {
|
|
317
|
-
headers: {
|
|
318
|
-
[name: string]: unknown;
|
|
319
|
-
};
|
|
320
255
|
content: {
|
|
321
256
|
"application/json": {
|
|
322
257
|
/** @example false */
|
|
@@ -330,32 +265,13 @@ export interface paths {
|
|
|
330
265
|
};
|
|
331
266
|
};
|
|
332
267
|
};
|
|
333
|
-
delete?: never;
|
|
334
|
-
options?: never;
|
|
335
|
-
head?: never;
|
|
336
|
-
patch?: never;
|
|
337
|
-
trace?: never;
|
|
338
268
|
};
|
|
339
269
|
"/onramp/coinbase/onramp-url": {
|
|
340
|
-
parameters: {
|
|
341
|
-
query?: never;
|
|
342
|
-
header?: never;
|
|
343
|
-
path?: never;
|
|
344
|
-
cookie?: never;
|
|
345
|
-
};
|
|
346
|
-
get?: never;
|
|
347
|
-
put?: never;
|
|
348
270
|
/**
|
|
349
271
|
* Create Coinbase onramp URL
|
|
350
272
|
* @description Creates a Coinbase Onramp buy URL and optionally returns a session token for reuse.
|
|
351
273
|
*/
|
|
352
274
|
post: {
|
|
353
|
-
parameters: {
|
|
354
|
-
query?: never;
|
|
355
|
-
header?: never;
|
|
356
|
-
path?: never;
|
|
357
|
-
cookie?: never;
|
|
358
|
-
};
|
|
359
275
|
requestBody: {
|
|
360
276
|
content: {
|
|
361
277
|
"application/json": components["schemas"]["CoinbaseOnrampUrlRequest"];
|
|
@@ -364,18 +280,12 @@ export interface paths {
|
|
|
364
280
|
responses: {
|
|
365
281
|
/** @description Onramp URL created successfully */
|
|
366
282
|
200: {
|
|
367
|
-
headers: {
|
|
368
|
-
[name: string]: unknown;
|
|
369
|
-
};
|
|
370
283
|
content: {
|
|
371
284
|
"application/json": components["schemas"]["CoinbaseOnrampUrlResponse"];
|
|
372
285
|
};
|
|
373
286
|
};
|
|
374
287
|
/** @description Bad request */
|
|
375
288
|
400: {
|
|
376
|
-
headers: {
|
|
377
|
-
[name: string]: unknown;
|
|
378
|
-
};
|
|
379
289
|
content: {
|
|
380
290
|
"application/json": {
|
|
381
291
|
/** @example false */
|
|
@@ -389,32 +299,13 @@ export interface paths {
|
|
|
389
299
|
};
|
|
390
300
|
};
|
|
391
301
|
};
|
|
392
|
-
delete?: never;
|
|
393
|
-
options?: never;
|
|
394
|
-
head?: never;
|
|
395
|
-
patch?: never;
|
|
396
|
-
trace?: never;
|
|
397
302
|
};
|
|
398
303
|
"/onramp/coinbase/direct-url": {
|
|
399
|
-
parameters: {
|
|
400
|
-
query?: never;
|
|
401
|
-
header?: never;
|
|
402
|
-
path?: never;
|
|
403
|
-
cookie?: never;
|
|
404
|
-
};
|
|
405
|
-
get?: never;
|
|
406
|
-
put?: never;
|
|
407
304
|
/**
|
|
408
305
|
* Generate direct Coinbase onramp URL
|
|
409
306
|
* @description Generates a direct Coinbase Onramp URL along with the session token backing it.
|
|
410
307
|
*/
|
|
411
308
|
post: {
|
|
412
|
-
parameters: {
|
|
413
|
-
query?: never;
|
|
414
|
-
header?: never;
|
|
415
|
-
path?: never;
|
|
416
|
-
cookie?: never;
|
|
417
|
-
};
|
|
418
309
|
requestBody: {
|
|
419
310
|
content: {
|
|
420
311
|
"application/json": components["schemas"]["CoinbaseDirectOnrampRequest"];
|
|
@@ -423,18 +314,12 @@ export interface paths {
|
|
|
423
314
|
responses: {
|
|
424
315
|
/** @description Direct onramp URL generated successfully */
|
|
425
316
|
200: {
|
|
426
|
-
headers: {
|
|
427
|
-
[name: string]: unknown;
|
|
428
|
-
};
|
|
429
317
|
content: {
|
|
430
318
|
"application/json": components["schemas"]["CoinbaseDirectOnrampResponse"];
|
|
431
319
|
};
|
|
432
320
|
};
|
|
433
321
|
/** @description Bad request */
|
|
434
322
|
400: {
|
|
435
|
-
headers: {
|
|
436
|
-
[name: string]: unknown;
|
|
437
|
-
};
|
|
438
323
|
content: {
|
|
439
324
|
"application/json": {
|
|
440
325
|
/** @example false */
|
|
@@ -448,19 +333,8 @@ export interface paths {
|
|
|
448
333
|
};
|
|
449
334
|
};
|
|
450
335
|
};
|
|
451
|
-
delete?: never;
|
|
452
|
-
options?: never;
|
|
453
|
-
head?: never;
|
|
454
|
-
patch?: never;
|
|
455
|
-
trace?: never;
|
|
456
336
|
};
|
|
457
337
|
"/onramp/stripe/supported": {
|
|
458
|
-
parameters: {
|
|
459
|
-
query?: never;
|
|
460
|
-
header?: never;
|
|
461
|
-
path?: never;
|
|
462
|
-
cookie?: never;
|
|
463
|
-
};
|
|
464
338
|
/**
|
|
465
339
|
* Check Stripe support
|
|
466
340
|
* @description Checks if Stripe onramp and Stripe Web2 are supported based on IP address location and optional transaction amount
|
|
@@ -474,17 +348,10 @@ export interface paths {
|
|
|
474
348
|
*/
|
|
475
349
|
usdAmount?: string;
|
|
476
350
|
};
|
|
477
|
-
header?: never;
|
|
478
|
-
path?: never;
|
|
479
|
-
cookie?: never;
|
|
480
351
|
};
|
|
481
|
-
requestBody?: never;
|
|
482
352
|
responses: {
|
|
483
353
|
/** @description Stripe support status retrieved successfully */
|
|
484
354
|
200: {
|
|
485
|
-
headers: {
|
|
486
|
-
[name: string]: unknown;
|
|
487
|
-
};
|
|
488
355
|
content: {
|
|
489
356
|
"application/json": {
|
|
490
357
|
/** @example true */
|
|
@@ -507,9 +374,6 @@ export interface paths {
|
|
|
507
374
|
};
|
|
508
375
|
/** @description Bad request */
|
|
509
376
|
400: {
|
|
510
|
-
headers: {
|
|
511
|
-
[name: string]: unknown;
|
|
512
|
-
};
|
|
513
377
|
content: {
|
|
514
378
|
"application/json": {
|
|
515
379
|
/** @example false */
|
|
@@ -523,21 +387,8 @@ export interface paths {
|
|
|
523
387
|
};
|
|
524
388
|
};
|
|
525
389
|
};
|
|
526
|
-
put?: never;
|
|
527
|
-
post?: never;
|
|
528
|
-
delete?: never;
|
|
529
|
-
options?: never;
|
|
530
|
-
head?: never;
|
|
531
|
-
patch?: never;
|
|
532
|
-
trace?: never;
|
|
533
390
|
};
|
|
534
391
|
"/orders": {
|
|
535
|
-
parameters: {
|
|
536
|
-
query?: never;
|
|
537
|
-
header?: never;
|
|
538
|
-
path?: never;
|
|
539
|
-
cookie?: never;
|
|
540
|
-
};
|
|
541
392
|
/**
|
|
542
393
|
* Get orders by creator
|
|
543
394
|
* @description Retrieves all orders created by a specific address
|
|
@@ -561,17 +412,10 @@ export interface paths {
|
|
|
561
412
|
*/
|
|
562
413
|
offset?: string;
|
|
563
414
|
};
|
|
564
|
-
header?: never;
|
|
565
|
-
path?: never;
|
|
566
|
-
cookie?: never;
|
|
567
415
|
};
|
|
568
|
-
requestBody?: never;
|
|
569
416
|
responses: {
|
|
570
417
|
/** @description Orders retrieved successfully */
|
|
571
418
|
200: {
|
|
572
|
-
headers: {
|
|
573
|
-
[name: string]: unknown;
|
|
574
|
-
};
|
|
575
419
|
content: {
|
|
576
420
|
"application/json": {
|
|
577
421
|
/** @example true */
|
|
@@ -587,9 +431,6 @@ export interface paths {
|
|
|
587
431
|
};
|
|
588
432
|
/** @description Bad request */
|
|
589
433
|
400: {
|
|
590
|
-
headers: {
|
|
591
|
-
[name: string]: unknown;
|
|
592
|
-
};
|
|
593
434
|
content: {
|
|
594
435
|
"application/json": {
|
|
595
436
|
/** @example false */
|
|
@@ -603,18 +444,11 @@ export interface paths {
|
|
|
603
444
|
};
|
|
604
445
|
};
|
|
605
446
|
};
|
|
606
|
-
put?: never;
|
|
607
447
|
/**
|
|
608
448
|
* Create a new order
|
|
609
449
|
* @description Creates a new order for token transactions across chains
|
|
610
450
|
*/
|
|
611
451
|
post: {
|
|
612
|
-
parameters: {
|
|
613
|
-
query?: never;
|
|
614
|
-
header?: never;
|
|
615
|
-
path?: never;
|
|
616
|
-
cookie?: never;
|
|
617
|
-
};
|
|
618
452
|
requestBody: {
|
|
619
453
|
content: {
|
|
620
454
|
"application/json": components["schemas"]["OrderRequest"];
|
|
@@ -623,9 +457,6 @@ export interface paths {
|
|
|
623
457
|
responses: {
|
|
624
458
|
/** @description Order created successfully */
|
|
625
459
|
200: {
|
|
626
|
-
headers: {
|
|
627
|
-
[name: string]: unknown;
|
|
628
|
-
};
|
|
629
460
|
content: {
|
|
630
461
|
"application/json": {
|
|
631
462
|
/** @example true */
|
|
@@ -640,9 +471,6 @@ export interface paths {
|
|
|
640
471
|
};
|
|
641
472
|
/** @description Bad request */
|
|
642
473
|
400: {
|
|
643
|
-
headers: {
|
|
644
|
-
[name: string]: unknown;
|
|
645
|
-
};
|
|
646
474
|
content: {
|
|
647
475
|
"application/json": {
|
|
648
476
|
/** @example false */
|
|
@@ -656,27 +484,14 @@ export interface paths {
|
|
|
656
484
|
};
|
|
657
485
|
};
|
|
658
486
|
};
|
|
659
|
-
delete?: never;
|
|
660
|
-
options?: never;
|
|
661
|
-
head?: never;
|
|
662
|
-
patch?: never;
|
|
663
|
-
trace?: never;
|
|
664
487
|
};
|
|
665
488
|
"/orders/{orderId}": {
|
|
666
|
-
parameters: {
|
|
667
|
-
query?: never;
|
|
668
|
-
header?: never;
|
|
669
|
-
path?: never;
|
|
670
|
-
cookie?: never;
|
|
671
|
-
};
|
|
672
489
|
/**
|
|
673
490
|
* Get order and transactions
|
|
674
491
|
* @description Retrieves order details along with associated transactions
|
|
675
492
|
*/
|
|
676
493
|
get: {
|
|
677
494
|
parameters: {
|
|
678
|
-
query?: never;
|
|
679
|
-
header?: never;
|
|
680
495
|
path: {
|
|
681
496
|
/**
|
|
682
497
|
* @description Unique order identifier
|
|
@@ -684,15 +499,10 @@ export interface paths {
|
|
|
684
499
|
*/
|
|
685
500
|
orderId: string;
|
|
686
501
|
};
|
|
687
|
-
cookie?: never;
|
|
688
502
|
};
|
|
689
|
-
requestBody?: never;
|
|
690
503
|
responses: {
|
|
691
504
|
/** @description Order and transactions retrieved successfully */
|
|
692
505
|
200: {
|
|
693
|
-
headers: {
|
|
694
|
-
[name: string]: unknown;
|
|
695
|
-
};
|
|
696
506
|
content: {
|
|
697
507
|
"application/json": {
|
|
698
508
|
/** @example true */
|
|
@@ -744,9 +554,6 @@ export interface paths {
|
|
|
744
554
|
};
|
|
745
555
|
/** @description Bad request */
|
|
746
556
|
400: {
|
|
747
|
-
headers: {
|
|
748
|
-
[name: string]: unknown;
|
|
749
|
-
};
|
|
750
557
|
content: {
|
|
751
558
|
"application/json": {
|
|
752
559
|
/** @example false */
|
|
@@ -760,9 +567,6 @@ export interface paths {
|
|
|
760
567
|
};
|
|
761
568
|
/** @description Order not found */
|
|
762
569
|
404: {
|
|
763
|
-
headers: {
|
|
764
|
-
[name: string]: unknown;
|
|
765
|
-
};
|
|
766
570
|
content: {
|
|
767
571
|
"application/json": {
|
|
768
572
|
/** @example false */
|
|
@@ -776,29 +580,14 @@ export interface paths {
|
|
|
776
580
|
};
|
|
777
581
|
};
|
|
778
582
|
};
|
|
779
|
-
put?: never;
|
|
780
|
-
post?: never;
|
|
781
|
-
delete?: never;
|
|
782
|
-
options?: never;
|
|
783
|
-
head?: never;
|
|
784
|
-
patch?: never;
|
|
785
|
-
trace?: never;
|
|
786
583
|
};
|
|
787
584
|
"/orders/{orderId}/comprehensive": {
|
|
788
|
-
parameters: {
|
|
789
|
-
query?: never;
|
|
790
|
-
header?: never;
|
|
791
|
-
path?: never;
|
|
792
|
-
cookie?: never;
|
|
793
|
-
};
|
|
794
585
|
/**
|
|
795
586
|
* Get comprehensive order detail
|
|
796
587
|
* @description Retrieves an order with associated transactions, settlement data, and awarded points without sanitization.
|
|
797
588
|
*/
|
|
798
589
|
get: {
|
|
799
590
|
parameters: {
|
|
800
|
-
query?: never;
|
|
801
|
-
header?: never;
|
|
802
591
|
path: {
|
|
803
592
|
/**
|
|
804
593
|
* @description Unique order identifier
|
|
@@ -806,24 +595,16 @@ export interface paths {
|
|
|
806
595
|
*/
|
|
807
596
|
orderId: string;
|
|
808
597
|
};
|
|
809
|
-
cookie?: never;
|
|
810
598
|
};
|
|
811
|
-
requestBody?: never;
|
|
812
599
|
responses: {
|
|
813
600
|
/** @description Comprehensive order retrieved successfully */
|
|
814
601
|
200: {
|
|
815
|
-
headers: {
|
|
816
|
-
[name: string]: unknown;
|
|
817
|
-
};
|
|
818
602
|
content: {
|
|
819
603
|
"application/json": components["schemas"]["ComprehensiveOrderResponse"];
|
|
820
604
|
};
|
|
821
605
|
};
|
|
822
606
|
/** @description Bad request */
|
|
823
607
|
400: {
|
|
824
|
-
headers: {
|
|
825
|
-
[name: string]: unknown;
|
|
826
|
-
};
|
|
827
608
|
content: {
|
|
828
609
|
"application/json": {
|
|
829
610
|
/** @example false */
|
|
@@ -837,9 +618,6 @@ export interface paths {
|
|
|
837
618
|
};
|
|
838
619
|
/** @description Order not found */
|
|
839
620
|
404: {
|
|
840
|
-
headers: {
|
|
841
|
-
[name: string]: unknown;
|
|
842
|
-
};
|
|
843
621
|
content: {
|
|
844
622
|
"application/json": {
|
|
845
623
|
/** @example false */
|
|
@@ -853,34 +631,13 @@ export interface paths {
|
|
|
853
631
|
};
|
|
854
632
|
};
|
|
855
633
|
};
|
|
856
|
-
put?: never;
|
|
857
|
-
post?: never;
|
|
858
|
-
delete?: never;
|
|
859
|
-
options?: never;
|
|
860
|
-
head?: never;
|
|
861
|
-
patch?: never;
|
|
862
|
-
trace?: never;
|
|
863
634
|
};
|
|
864
635
|
"/orders/quote": {
|
|
865
|
-
parameters: {
|
|
866
|
-
query?: never;
|
|
867
|
-
header?: never;
|
|
868
|
-
path?: never;
|
|
869
|
-
cookie?: never;
|
|
870
|
-
};
|
|
871
|
-
get?: never;
|
|
872
|
-
put?: never;
|
|
873
636
|
/**
|
|
874
637
|
* Get anyspend quote
|
|
875
638
|
* @description Retrieves a quote to swap, execute contract, or participate in HypeDuel
|
|
876
639
|
*/
|
|
877
640
|
post: {
|
|
878
|
-
parameters: {
|
|
879
|
-
query?: never;
|
|
880
|
-
header?: never;
|
|
881
|
-
path?: never;
|
|
882
|
-
cookie?: never;
|
|
883
|
-
};
|
|
884
641
|
requestBody: {
|
|
885
642
|
content: {
|
|
886
643
|
"application/json":
|
|
@@ -929,7 +686,7 @@ export interface paths {
|
|
|
929
686
|
* @description Optional onramp vendor
|
|
930
687
|
* @enum {string}
|
|
931
688
|
*/
|
|
932
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
689
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
933
690
|
/** @description Optional partner ID */
|
|
934
691
|
partnerId?: string;
|
|
935
692
|
}
|
|
@@ -973,7 +730,7 @@ export interface paths {
|
|
|
973
730
|
* @description Optional onramp vendor
|
|
974
731
|
* @enum {string}
|
|
975
732
|
*/
|
|
976
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
733
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
977
734
|
/** @description Optional partner ID */
|
|
978
735
|
partnerId?: string;
|
|
979
736
|
}
|
|
@@ -1023,7 +780,7 @@ export interface paths {
|
|
|
1023
780
|
* @description Optional onramp vendor
|
|
1024
781
|
* @enum {string}
|
|
1025
782
|
*/
|
|
1026
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
783
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1027
784
|
/** @description Optional partner ID */
|
|
1028
785
|
partnerId?: string;
|
|
1029
786
|
}
|
|
@@ -1040,7 +797,7 @@ export interface paths {
|
|
|
1040
797
|
*/
|
|
1041
798
|
recipientAddress?: string;
|
|
1042
799
|
/** @enum {string} */
|
|
1043
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
800
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1044
801
|
/** @description Optional partner ID */
|
|
1045
802
|
partnerId?: string;
|
|
1046
803
|
contractAddress: string;
|
|
@@ -1062,7 +819,7 @@ export interface paths {
|
|
|
1062
819
|
*/
|
|
1063
820
|
recipientAddress?: string;
|
|
1064
821
|
/** @enum {string} */
|
|
1065
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
822
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1066
823
|
/** @description Optional partner ID */
|
|
1067
824
|
partnerId?: string;
|
|
1068
825
|
contractAddress: string;
|
|
@@ -1081,7 +838,7 @@ export interface paths {
|
|
|
1081
838
|
*/
|
|
1082
839
|
recipientAddress?: string;
|
|
1083
840
|
/** @enum {string} */
|
|
1084
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
841
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1085
842
|
/** @description Optional partner ID */
|
|
1086
843
|
partnerId?: string;
|
|
1087
844
|
contractAddress: string;
|
|
@@ -1127,7 +884,7 @@ export interface paths {
|
|
|
1127
884
|
* @description Optional onramp vendor
|
|
1128
885
|
* @enum {string}
|
|
1129
886
|
*/
|
|
1130
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
887
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1131
888
|
/** @description Optional partner ID */
|
|
1132
889
|
partnerId?: string;
|
|
1133
890
|
}
|
|
@@ -1171,7 +928,7 @@ export interface paths {
|
|
|
1171
928
|
* @description Optional onramp vendor
|
|
1172
929
|
* @enum {string}
|
|
1173
930
|
*/
|
|
1174
|
-
onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
931
|
+
onrampVendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1175
932
|
/** @description Optional partner ID */
|
|
1176
933
|
partnerId?: string;
|
|
1177
934
|
};
|
|
@@ -1180,9 +937,6 @@ export interface paths {
|
|
|
1180
937
|
responses: {
|
|
1181
938
|
/** @description Quote retrieved successfully */
|
|
1182
939
|
200: {
|
|
1183
|
-
headers: {
|
|
1184
|
-
[name: string]: unknown;
|
|
1185
|
-
};
|
|
1186
940
|
content: {
|
|
1187
941
|
"application/json": {
|
|
1188
942
|
/** @example true */
|
|
@@ -1363,9 +1117,6 @@ export interface paths {
|
|
|
1363
1117
|
};
|
|
1364
1118
|
/** @description Bad request */
|
|
1365
1119
|
400: {
|
|
1366
|
-
headers: {
|
|
1367
|
-
[name: string]: unknown;
|
|
1368
|
-
};
|
|
1369
1120
|
content: {
|
|
1370
1121
|
"application/json": {
|
|
1371
1122
|
/** @example false */
|
|
@@ -1379,19 +1130,8 @@ export interface paths {
|
|
|
1379
1130
|
};
|
|
1380
1131
|
};
|
|
1381
1132
|
};
|
|
1382
|
-
delete?: never;
|
|
1383
|
-
options?: never;
|
|
1384
|
-
head?: never;
|
|
1385
|
-
patch?: never;
|
|
1386
|
-
trace?: never;
|
|
1387
1133
|
};
|
|
1388
1134
|
"/stripe/clientSecret": {
|
|
1389
|
-
parameters: {
|
|
1390
|
-
query?: never;
|
|
1391
|
-
header?: never;
|
|
1392
|
-
path?: never;
|
|
1393
|
-
cookie?: never;
|
|
1394
|
-
};
|
|
1395
1135
|
/**
|
|
1396
1136
|
* Get Stripe client secret
|
|
1397
1137
|
* @description Retrieves a Stripe client secret for payment processing using a payment intent ID
|
|
@@ -1405,17 +1145,10 @@ export interface paths {
|
|
|
1405
1145
|
*/
|
|
1406
1146
|
paymentIntentId: string;
|
|
1407
1147
|
};
|
|
1408
|
-
header?: never;
|
|
1409
|
-
path?: never;
|
|
1410
|
-
cookie?: never;
|
|
1411
1148
|
};
|
|
1412
|
-
requestBody?: never;
|
|
1413
1149
|
responses: {
|
|
1414
1150
|
/** @description Client secret retrieved successfully */
|
|
1415
1151
|
200: {
|
|
1416
|
-
headers: {
|
|
1417
|
-
[name: string]: unknown;
|
|
1418
|
-
};
|
|
1419
1152
|
content: {
|
|
1420
1153
|
"application/json": {
|
|
1421
1154
|
/** @example true */
|
|
@@ -1434,9 +1167,6 @@ export interface paths {
|
|
|
1434
1167
|
};
|
|
1435
1168
|
/** @description Bad request - PaymentIntentId is required or invalid */
|
|
1436
1169
|
400: {
|
|
1437
|
-
headers: {
|
|
1438
|
-
[name: string]: unknown;
|
|
1439
|
-
};
|
|
1440
1170
|
content: {
|
|
1441
1171
|
"application/json": {
|
|
1442
1172
|
/** @example false */
|
|
@@ -1450,13 +1180,6 @@ export interface paths {
|
|
|
1450
1180
|
};
|
|
1451
1181
|
};
|
|
1452
1182
|
};
|
|
1453
|
-
put?: never;
|
|
1454
|
-
post?: never;
|
|
1455
|
-
delete?: never;
|
|
1456
|
-
options?: never;
|
|
1457
|
-
head?: never;
|
|
1458
|
-
patch?: never;
|
|
1459
|
-
trace?: never;
|
|
1460
1183
|
};
|
|
1461
1184
|
}
|
|
1462
1185
|
export type webhooks = Record<string, never>;
|
|
@@ -1509,7 +1232,7 @@ export interface components {
|
|
|
1509
1232
|
* @example stripe-web2
|
|
1510
1233
|
* @enum {string}
|
|
1511
1234
|
*/
|
|
1512
|
-
vendor: "coinbase" | "stripe" | "stripe-web2";
|
|
1235
|
+
vendor: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1513
1236
|
/**
|
|
1514
1237
|
* @description Payment method used
|
|
1515
1238
|
* @example
|
|
@@ -1551,7 +1274,7 @@ export interface components {
|
|
|
1551
1274
|
* @description Onramp vendor
|
|
1552
1275
|
* @enum {string}
|
|
1553
1276
|
*/
|
|
1554
|
-
vendor?: "coinbase" | "stripe" | "stripe-web2";
|
|
1277
|
+
vendor?: "coinbase" | "stripe" | "stripe-web2" | "none";
|
|
1555
1278
|
/**
|
|
1556
1279
|
* @description Payment method for onramp
|
|
1557
1280
|
* @example
|