@0xsequence/api 0.39.3 → 0.39.6
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/0xsequence-api.cjs.dev.js +114 -2
- package/dist/0xsequence-api.cjs.prod.js +114 -2
- package/dist/0xsequence-api.esm.js +115 -3
- package/dist/declarations/src/api.gen.d.ts +193 -14
- package/package.json +1 -1
- package/src/api.gen.ts +325 -17
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 0c98657bfb21e8e57f1bb78d93f2aaba08865d82
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,10 +36,20 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "0c98657bfb21e8e57f1bb78d93f2aaba08865d82"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
43
|
+
exports.SmartRampOrderStatus = void 0;
|
|
44
|
+
|
|
45
|
+
(function (SmartRampOrderStatus) {
|
|
46
|
+
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
47
|
+
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
48
|
+
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
49
|
+
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
50
|
+
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
51
|
+
})(exports.SmartRampOrderStatus || (exports.SmartRampOrderStatus = {}));
|
|
52
|
+
|
|
43
53
|
exports.SortOrder = void 0;
|
|
44
54
|
|
|
45
55
|
(function (SortOrder) {
|
|
@@ -303,6 +313,108 @@ class API {
|
|
|
303
313
|
});
|
|
304
314
|
};
|
|
305
315
|
|
|
316
|
+
this.invalidateOriginToken = (args, headers) => {
|
|
317
|
+
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
+
return buildResponse(res).then(_data => {
|
|
319
|
+
return {};
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
this.listPayCardsOnFile = headers => {
|
|
325
|
+
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
326
|
+
return buildResponse(res).then(_data => {
|
|
327
|
+
return {
|
|
328
|
+
payCards: _data.payCards
|
|
329
|
+
};
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
this.savePayCard = (args, headers) => {
|
|
335
|
+
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
336
|
+
return buildResponse(res).then(_data => {
|
|
337
|
+
return {
|
|
338
|
+
ok: _data.ok,
|
|
339
|
+
payCard: _data.payCard
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
this.updatePayCardCVC = (args, headers) => {
|
|
346
|
+
return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
|
|
347
|
+
return buildResponse(res).then(_data => {
|
|
348
|
+
return {
|
|
349
|
+
ok: _data.ok
|
|
350
|
+
};
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
this.deletePayCard = (args, headers) => {
|
|
356
|
+
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
357
|
+
return buildResponse(res).then(_data => {
|
|
358
|
+
return {
|
|
359
|
+
ok: _data.ok
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
this.smartRampQuote = (args, headers) => {
|
|
366
|
+
return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
|
|
367
|
+
return buildResponse(res).then(_data => {
|
|
368
|
+
return {
|
|
369
|
+
status: _data.status,
|
|
370
|
+
quoteDetails: _data.quoteDetails
|
|
371
|
+
};
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
this.smartRampPurchase = (args, headers) => {
|
|
377
|
+
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
378
|
+
return buildResponse(res).then(_data => {
|
|
379
|
+
return {
|
|
380
|
+
processing: _data.processing,
|
|
381
|
+
receipt: _data.receipt
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
this.smartRampWaitOrderConfirmation = (args, headers) => {
|
|
388
|
+
return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
|
|
389
|
+
return buildResponse(res).then(_data => {
|
|
390
|
+
return {
|
|
391
|
+
done: _data.done,
|
|
392
|
+
receipt: _data.receipt
|
|
393
|
+
};
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
399
|
+
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
400
|
+
return buildResponse(res).then(_data => {
|
|
401
|
+
return {
|
|
402
|
+
cardAuth: _data.cardAuth
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
this.smartRampSubmitCardAuthorization = (args, headers) => {
|
|
409
|
+
return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
410
|
+
return buildResponse(res).then(_data => {
|
|
411
|
+
return {
|
|
412
|
+
status: _data.status
|
|
413
|
+
};
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
|
|
306
418
|
this.getInviteInfo = headers => {
|
|
307
419
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
308
420
|
return buildResponse(res).then(_data => {
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 0c98657bfb21e8e57f1bb78d93f2aaba08865d82
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,10 +36,20 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "0c98657bfb21e8e57f1bb78d93f2aaba08865d82"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
43
|
+
exports.SmartRampOrderStatus = void 0;
|
|
44
|
+
|
|
45
|
+
(function (SmartRampOrderStatus) {
|
|
46
|
+
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
47
|
+
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
48
|
+
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
49
|
+
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
50
|
+
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
51
|
+
})(exports.SmartRampOrderStatus || (exports.SmartRampOrderStatus = {}));
|
|
52
|
+
|
|
43
53
|
exports.SortOrder = void 0;
|
|
44
54
|
|
|
45
55
|
(function (SortOrder) {
|
|
@@ -303,6 +313,108 @@ class API {
|
|
|
303
313
|
});
|
|
304
314
|
};
|
|
305
315
|
|
|
316
|
+
this.invalidateOriginToken = (args, headers) => {
|
|
317
|
+
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
+
return buildResponse(res).then(_data => {
|
|
319
|
+
return {};
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
this.listPayCardsOnFile = headers => {
|
|
325
|
+
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
326
|
+
return buildResponse(res).then(_data => {
|
|
327
|
+
return {
|
|
328
|
+
payCards: _data.payCards
|
|
329
|
+
};
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
this.savePayCard = (args, headers) => {
|
|
335
|
+
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
336
|
+
return buildResponse(res).then(_data => {
|
|
337
|
+
return {
|
|
338
|
+
ok: _data.ok,
|
|
339
|
+
payCard: _data.payCard
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
this.updatePayCardCVC = (args, headers) => {
|
|
346
|
+
return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
|
|
347
|
+
return buildResponse(res).then(_data => {
|
|
348
|
+
return {
|
|
349
|
+
ok: _data.ok
|
|
350
|
+
};
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
this.deletePayCard = (args, headers) => {
|
|
356
|
+
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
357
|
+
return buildResponse(res).then(_data => {
|
|
358
|
+
return {
|
|
359
|
+
ok: _data.ok
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
this.smartRampQuote = (args, headers) => {
|
|
366
|
+
return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
|
|
367
|
+
return buildResponse(res).then(_data => {
|
|
368
|
+
return {
|
|
369
|
+
status: _data.status,
|
|
370
|
+
quoteDetails: _data.quoteDetails
|
|
371
|
+
};
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
this.smartRampPurchase = (args, headers) => {
|
|
377
|
+
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
378
|
+
return buildResponse(res).then(_data => {
|
|
379
|
+
return {
|
|
380
|
+
processing: _data.processing,
|
|
381
|
+
receipt: _data.receipt
|
|
382
|
+
};
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
this.smartRampWaitOrderConfirmation = (args, headers) => {
|
|
388
|
+
return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
|
|
389
|
+
return buildResponse(res).then(_data => {
|
|
390
|
+
return {
|
|
391
|
+
done: _data.done,
|
|
392
|
+
receipt: _data.receipt
|
|
393
|
+
};
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
399
|
+
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
400
|
+
return buildResponse(res).then(_data => {
|
|
401
|
+
return {
|
|
402
|
+
cardAuth: _data.cardAuth
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
this.smartRampSubmitCardAuthorization = (args, headers) => {
|
|
409
|
+
return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
410
|
+
return buildResponse(res).then(_data => {
|
|
411
|
+
return {
|
|
412
|
+
status: _data.status
|
|
413
|
+
};
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
|
|
306
418
|
this.getInviteInfo = headers => {
|
|
307
419
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
308
420
|
return buildResponse(res).then(_data => {
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-api v0.4.0
|
|
22
|
+
// sequence-api v0.4.0 0c98657bfb21e8e57f1bb78d93f2aaba08865d82
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,10 +28,20 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "0c98657bfb21e8e57f1bb78d93f2aaba08865d82"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
35
|
+
let SmartRampOrderStatus;
|
|
36
|
+
|
|
37
|
+
(function (SmartRampOrderStatus) {
|
|
38
|
+
SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
|
|
39
|
+
SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
|
|
40
|
+
SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
|
|
41
|
+
SmartRampOrderStatus["FAILED"] = "FAILED";
|
|
42
|
+
SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
|
|
43
|
+
})(SmartRampOrderStatus || (SmartRampOrderStatus = {}));
|
|
44
|
+
|
|
35
45
|
let SortOrder;
|
|
36
46
|
|
|
37
47
|
(function (SortOrder) {
|
|
@@ -295,6 +305,108 @@ class API {
|
|
|
295
305
|
});
|
|
296
306
|
};
|
|
297
307
|
|
|
308
|
+
this.invalidateOriginToken = (args, headers) => {
|
|
309
|
+
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
310
|
+
return buildResponse(res).then(_data => {
|
|
311
|
+
return {};
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
this.listPayCardsOnFile = headers => {
|
|
317
|
+
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
318
|
+
return buildResponse(res).then(_data => {
|
|
319
|
+
return {
|
|
320
|
+
payCards: _data.payCards
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
this.savePayCard = (args, headers) => {
|
|
327
|
+
return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
328
|
+
return buildResponse(res).then(_data => {
|
|
329
|
+
return {
|
|
330
|
+
ok: _data.ok,
|
|
331
|
+
payCard: _data.payCard
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
this.updatePayCardCVC = (args, headers) => {
|
|
338
|
+
return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
|
|
339
|
+
return buildResponse(res).then(_data => {
|
|
340
|
+
return {
|
|
341
|
+
ok: _data.ok
|
|
342
|
+
};
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
this.deletePayCard = (args, headers) => {
|
|
348
|
+
return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
|
|
349
|
+
return buildResponse(res).then(_data => {
|
|
350
|
+
return {
|
|
351
|
+
ok: _data.ok
|
|
352
|
+
};
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
this.smartRampQuote = (args, headers) => {
|
|
358
|
+
return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
|
|
359
|
+
return buildResponse(res).then(_data => {
|
|
360
|
+
return {
|
|
361
|
+
status: _data.status,
|
|
362
|
+
quoteDetails: _data.quoteDetails
|
|
363
|
+
};
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
this.smartRampPurchase = (args, headers) => {
|
|
369
|
+
return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
|
|
370
|
+
return buildResponse(res).then(_data => {
|
|
371
|
+
return {
|
|
372
|
+
processing: _data.processing,
|
|
373
|
+
receipt: _data.receipt
|
|
374
|
+
};
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
this.smartRampWaitOrderConfirmation = (args, headers) => {
|
|
380
|
+
return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
|
|
381
|
+
return buildResponse(res).then(_data => {
|
|
382
|
+
return {
|
|
383
|
+
done: _data.done,
|
|
384
|
+
receipt: _data.receipt
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
391
|
+
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
392
|
+
return buildResponse(res).then(_data => {
|
|
393
|
+
return {
|
|
394
|
+
cardAuth: _data.cardAuth
|
|
395
|
+
};
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
this.smartRampSubmitCardAuthorization = (args, headers) => {
|
|
401
|
+
return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
402
|
+
return buildResponse(res).then(_data => {
|
|
403
|
+
return {
|
|
404
|
+
status: _data.status
|
|
405
|
+
};
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
|
|
298
410
|
this.getInviteInfo = headers => {
|
|
299
411
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
300
412
|
return buildResponse(res).then(_data => {
|
|
@@ -401,4 +513,4 @@ class SequenceAPIClient extends API {
|
|
|
401
513
|
|
|
402
514
|
}
|
|
403
515
|
|
|
404
|
-
export { API, SequenceAPIClient, SortOrder, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
|
|
516
|
+
export { API, SequenceAPIClient, SmartRampOrderStatus, SortOrder, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "0c98657bfb21e8e57f1bb78d93f2aaba08865d82";
|
|
4
|
+
export declare enum SmartRampOrderStatus {
|
|
5
|
+
UNKNOWN = "UNKNOWN",
|
|
6
|
+
RUNNING_CHECKS = "RUNNING_CHECKS",
|
|
7
|
+
PROCESSING = "PROCESSING",
|
|
8
|
+
FAILED = "FAILED",
|
|
9
|
+
COMPLETE = "COMPLETE"
|
|
10
|
+
}
|
|
4
11
|
export declare enum SortOrder {
|
|
5
12
|
DESC = "DESC",
|
|
6
13
|
ASC = "ASC"
|
|
@@ -99,19 +106,6 @@ export interface UserStorage {
|
|
|
99
106
|
key: string;
|
|
100
107
|
value: any;
|
|
101
108
|
}
|
|
102
|
-
export interface Page {
|
|
103
|
-
pageSize?: number;
|
|
104
|
-
page?: number;
|
|
105
|
-
totalRecords?: number;
|
|
106
|
-
column?: string;
|
|
107
|
-
before?: any;
|
|
108
|
-
after?: any;
|
|
109
|
-
sort?: Array<SortBy>;
|
|
110
|
-
}
|
|
111
|
-
export interface SortBy {
|
|
112
|
-
column: string;
|
|
113
|
-
order: SortOrder;
|
|
114
|
-
}
|
|
115
109
|
export interface Token {
|
|
116
110
|
chainId: number;
|
|
117
111
|
contractAddress: string;
|
|
@@ -137,6 +131,104 @@ export interface ExchangeRate {
|
|
|
137
131
|
vsCurrency: string;
|
|
138
132
|
currencyType: string;
|
|
139
133
|
}
|
|
134
|
+
export interface PayCard {
|
|
135
|
+
id: number;
|
|
136
|
+
userAddress: string;
|
|
137
|
+
cardType: string;
|
|
138
|
+
cardFirstName: string;
|
|
139
|
+
cardLastName: string;
|
|
140
|
+
cardNumberLastFourDigits: string;
|
|
141
|
+
cardNumberToken: string;
|
|
142
|
+
cardCVCToken: string;
|
|
143
|
+
cardExpMonth: number;
|
|
144
|
+
cardExpYear: number;
|
|
145
|
+
contactAddressToken: string;
|
|
146
|
+
contactCityToken: string;
|
|
147
|
+
contactProvinceToken: string;
|
|
148
|
+
contactPostalCodeToken: string;
|
|
149
|
+
contactCountryCode: string;
|
|
150
|
+
contactEmail: string;
|
|
151
|
+
contactPhoneToken: string;
|
|
152
|
+
updatedAt?: string;
|
|
153
|
+
createdAt?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface SmartRampQuoteRequest {
|
|
156
|
+
countryCode: string;
|
|
157
|
+
niftyswapContractAddress: string;
|
|
158
|
+
tokenIds: Array<string>;
|
|
159
|
+
tokensBoughtAmounts: Array<string>;
|
|
160
|
+
maxCurrency: number;
|
|
161
|
+
extraFeeRecipients?: Array<string>;
|
|
162
|
+
extraFeeAmounts?: Array<string>;
|
|
163
|
+
}
|
|
164
|
+
export interface SmartRampQuoteDetails {
|
|
165
|
+
quoteId: string;
|
|
166
|
+
smartScriptId: string;
|
|
167
|
+
quoteRequest: SmartRampQuoteRequest;
|
|
168
|
+
recipientAddress: string;
|
|
169
|
+
purchaseAmount: number;
|
|
170
|
+
purchaseFees: number;
|
|
171
|
+
purchaseTotal: number;
|
|
172
|
+
sourceCurrency: string;
|
|
173
|
+
destCurrency: string;
|
|
174
|
+
createdAt: string;
|
|
175
|
+
expiresAt: string;
|
|
176
|
+
}
|
|
177
|
+
export interface SmartRampPurchaseReceipt {
|
|
178
|
+
orderId: string;
|
|
179
|
+
quoteId: string;
|
|
180
|
+
smartScriptId: string;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
status: SmartRampOrderStatus;
|
|
183
|
+
authCodesRequested: boolean;
|
|
184
|
+
authCodesSubmitted: boolean;
|
|
185
|
+
sourceCurrency: string;
|
|
186
|
+
purchaseAmount: number;
|
|
187
|
+
purchaseFees: number;
|
|
188
|
+
purchaseTotal: number;
|
|
189
|
+
}
|
|
190
|
+
export interface SmartRampOrder {
|
|
191
|
+
id: number;
|
|
192
|
+
userAddress: string;
|
|
193
|
+
contractAddress: string;
|
|
194
|
+
payCardId: number;
|
|
195
|
+
orderId: string;
|
|
196
|
+
quoteId: string;
|
|
197
|
+
status: SmartRampOrderStatus;
|
|
198
|
+
authCodesRequested: boolean;
|
|
199
|
+
authCodesSubmitted: boolean;
|
|
200
|
+
countryCode: string;
|
|
201
|
+
email: string;
|
|
202
|
+
sourceCurrency: string;
|
|
203
|
+
destCurrency: string;
|
|
204
|
+
purchaseAmount: number;
|
|
205
|
+
purchaseFees: number;
|
|
206
|
+
purchaseTotal: number;
|
|
207
|
+
smartScriptParams: {
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
};
|
|
210
|
+
updatedAt?: string;
|
|
211
|
+
createdAt?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface PayCardAuth {
|
|
214
|
+
orderId: string;
|
|
215
|
+
smsNeeded: boolean;
|
|
216
|
+
card2faNeeded: boolean;
|
|
217
|
+
authorization3dsUrl: string;
|
|
218
|
+
}
|
|
219
|
+
export interface Page {
|
|
220
|
+
pageSize?: number;
|
|
221
|
+
page?: number;
|
|
222
|
+
totalRecords?: number;
|
|
223
|
+
column?: string;
|
|
224
|
+
before?: any;
|
|
225
|
+
after?: any;
|
|
226
|
+
sort?: Array<SortBy>;
|
|
227
|
+
}
|
|
228
|
+
export interface SortBy {
|
|
229
|
+
column: string;
|
|
230
|
+
order: SortOrder;
|
|
231
|
+
}
|
|
140
232
|
export interface API {
|
|
141
233
|
ping(headers?: object): Promise<PingReturn>;
|
|
142
234
|
version(headers?: object): Promise<VersionReturn>;
|
|
@@ -162,6 +254,16 @@ export interface API {
|
|
|
162
254
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>;
|
|
163
255
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
164
256
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
257
|
+
invalidateOriginToken(args: InvalidateOriginTokenArgs, headers?: object): Promise<InvalidateOriginTokenReturn>;
|
|
258
|
+
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>;
|
|
259
|
+
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>;
|
|
260
|
+
updatePayCardCVC(args: UpdatePayCardCVCArgs, headers?: object): Promise<UpdatePayCardCVCReturn>;
|
|
261
|
+
deletePayCard(args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn>;
|
|
262
|
+
smartRampQuote(args: SmartRampQuoteArgs, headers?: object): Promise<SmartRampQuoteReturn>;
|
|
263
|
+
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>;
|
|
264
|
+
smartRampWaitOrderConfirmation(args: SmartRampWaitOrderConfirmationArgs, headers?: object): Promise<SmartRampWaitOrderConfirmationReturn>;
|
|
265
|
+
smartRampCheckCardAuthorization(args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn>;
|
|
266
|
+
smartRampSubmitCardAuthorization(args: SmartRampSubmitCardAuthorizationArgs, headers?: object): Promise<SmartRampSubmitCardAuthorizationReturn>;
|
|
165
267
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
166
268
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
167
269
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -326,6 +428,73 @@ export interface GetExchangeRateArgs {
|
|
|
326
428
|
export interface GetExchangeRateReturn {
|
|
327
429
|
exchangeRate: ExchangeRate;
|
|
328
430
|
}
|
|
431
|
+
export interface InvalidateOriginTokenArgs {
|
|
432
|
+
token: Token;
|
|
433
|
+
}
|
|
434
|
+
export interface InvalidateOriginTokenReturn {
|
|
435
|
+
}
|
|
436
|
+
export interface ListPayCardsOnFileArgs {
|
|
437
|
+
}
|
|
438
|
+
export interface ListPayCardsOnFileReturn {
|
|
439
|
+
payCards: Array<PayCard>;
|
|
440
|
+
}
|
|
441
|
+
export interface SavePayCardArgs {
|
|
442
|
+
payCard: PayCard;
|
|
443
|
+
}
|
|
444
|
+
export interface SavePayCardReturn {
|
|
445
|
+
ok: boolean;
|
|
446
|
+
payCard: PayCard;
|
|
447
|
+
}
|
|
448
|
+
export interface UpdatePayCardCVCArgs {
|
|
449
|
+
payCardId: number;
|
|
450
|
+
payCardCVC: string;
|
|
451
|
+
}
|
|
452
|
+
export interface UpdatePayCardCVCReturn {
|
|
453
|
+
ok: boolean;
|
|
454
|
+
}
|
|
455
|
+
export interface DeletePayCardArgs {
|
|
456
|
+
payCardId: number;
|
|
457
|
+
}
|
|
458
|
+
export interface DeletePayCardReturn {
|
|
459
|
+
ok: boolean;
|
|
460
|
+
}
|
|
461
|
+
export interface SmartRampQuoteArgs {
|
|
462
|
+
quoteRequest: SmartRampQuoteRequest;
|
|
463
|
+
}
|
|
464
|
+
export interface SmartRampQuoteReturn {
|
|
465
|
+
status: boolean;
|
|
466
|
+
quoteDetails: SmartRampQuoteDetails;
|
|
467
|
+
}
|
|
468
|
+
export interface SmartRampPurchaseArgs {
|
|
469
|
+
quoteDetails: SmartRampQuoteDetails;
|
|
470
|
+
payCardId: number;
|
|
471
|
+
payCardCVC?: string;
|
|
472
|
+
}
|
|
473
|
+
export interface SmartRampPurchaseReturn {
|
|
474
|
+
processing: boolean;
|
|
475
|
+
receipt: SmartRampPurchaseReceipt;
|
|
476
|
+
}
|
|
477
|
+
export interface SmartRampWaitOrderConfirmationArgs {
|
|
478
|
+
orderId: string;
|
|
479
|
+
}
|
|
480
|
+
export interface SmartRampWaitOrderConfirmationReturn {
|
|
481
|
+
done: boolean;
|
|
482
|
+
receipt: SmartRampPurchaseReceipt;
|
|
483
|
+
}
|
|
484
|
+
export interface SmartRampCheckCardAuthorizationArgs {
|
|
485
|
+
orderId: string;
|
|
486
|
+
}
|
|
487
|
+
export interface SmartRampCheckCardAuthorizationReturn {
|
|
488
|
+
cardAuth: PayCardAuth;
|
|
489
|
+
}
|
|
490
|
+
export interface SmartRampSubmitCardAuthorizationArgs {
|
|
491
|
+
orderId: string;
|
|
492
|
+
sms?: string;
|
|
493
|
+
card2fa?: string;
|
|
494
|
+
}
|
|
495
|
+
export interface SmartRampSubmitCardAuthorizationReturn {
|
|
496
|
+
status: boolean;
|
|
497
|
+
}
|
|
329
498
|
export interface GetInviteInfoArgs {
|
|
330
499
|
}
|
|
331
500
|
export interface GetInviteInfoReturn {
|
|
@@ -381,6 +550,16 @@ export declare class API implements API {
|
|
|
381
550
|
getCoinPrices: (args: GetCoinPricesArgs, headers?: object | undefined) => Promise<GetCoinPricesReturn>;
|
|
382
551
|
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
383
552
|
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
553
|
+
invalidateOriginToken: (args: InvalidateOriginTokenArgs, headers?: object | undefined) => Promise<InvalidateOriginTokenReturn>;
|
|
554
|
+
listPayCardsOnFile: (headers?: object | undefined) => Promise<ListPayCardsOnFileReturn>;
|
|
555
|
+
savePayCard: (args: SavePayCardArgs, headers?: object | undefined) => Promise<SavePayCardReturn>;
|
|
556
|
+
updatePayCardCVC: (args: UpdatePayCardCVCArgs, headers?: object | undefined) => Promise<UpdatePayCardCVCReturn>;
|
|
557
|
+
deletePayCard: (args: DeletePayCardArgs, headers?: object | undefined) => Promise<DeletePayCardReturn>;
|
|
558
|
+
smartRampQuote: (args: SmartRampQuoteArgs, headers?: object | undefined) => Promise<SmartRampQuoteReturn>;
|
|
559
|
+
smartRampPurchase: (args: SmartRampPurchaseArgs, headers?: object | undefined) => Promise<SmartRampPurchaseReturn>;
|
|
560
|
+
smartRampWaitOrderConfirmation: (args: SmartRampWaitOrderConfirmationArgs, headers?: object | undefined) => Promise<SmartRampWaitOrderConfirmationReturn>;
|
|
561
|
+
smartRampCheckCardAuthorization: (args: SmartRampCheckCardAuthorizationArgs, headers?: object | undefined) => Promise<SmartRampCheckCardAuthorizationReturn>;
|
|
562
|
+
smartRampSubmitCardAuthorization: (args: SmartRampSubmitCardAuthorizationArgs, headers?: object | undefined) => Promise<SmartRampSubmitCardAuthorizationReturn>;
|
|
384
563
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
385
564
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
386
565
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 0c98657bfb21e8e57f1bb78d93f2aaba08865d82
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,12 +11,20 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "0c98657bfb21e8e57f1bb78d93f2aaba08865d82"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
19
19
|
//
|
|
20
|
+
export enum SmartRampOrderStatus {
|
|
21
|
+
UNKNOWN = 'UNKNOWN',
|
|
22
|
+
RUNNING_CHECKS = 'RUNNING_CHECKS',
|
|
23
|
+
PROCESSING = 'PROCESSING',
|
|
24
|
+
FAILED = 'FAILED',
|
|
25
|
+
COMPLETE = 'COMPLETE'
|
|
26
|
+
}
|
|
27
|
+
|
|
20
28
|
export enum SortOrder {
|
|
21
29
|
DESC = 'DESC',
|
|
22
30
|
ASC = 'ASC'
|
|
@@ -135,21 +143,6 @@ export interface UserStorage {
|
|
|
135
143
|
value: any
|
|
136
144
|
}
|
|
137
145
|
|
|
138
|
-
export interface Page {
|
|
139
|
-
pageSize?: number
|
|
140
|
-
page?: number
|
|
141
|
-
totalRecords?: number
|
|
142
|
-
column?: string
|
|
143
|
-
before?: any
|
|
144
|
-
after?: any
|
|
145
|
-
sort?: Array<SortBy>
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface SortBy {
|
|
149
|
-
column: string
|
|
150
|
-
order: SortOrder
|
|
151
|
-
}
|
|
152
|
-
|
|
153
146
|
export interface Token {
|
|
154
147
|
chainId: number
|
|
155
148
|
contractAddress: string
|
|
@@ -179,6 +172,110 @@ export interface ExchangeRate {
|
|
|
179
172
|
currencyType: string
|
|
180
173
|
}
|
|
181
174
|
|
|
175
|
+
export interface PayCard {
|
|
176
|
+
id: number
|
|
177
|
+
userAddress: string
|
|
178
|
+
cardType: string
|
|
179
|
+
cardFirstName: string
|
|
180
|
+
cardLastName: string
|
|
181
|
+
cardNumberLastFourDigits: string
|
|
182
|
+
cardNumberToken: string
|
|
183
|
+
cardCVCToken: string
|
|
184
|
+
cardExpMonth: number
|
|
185
|
+
cardExpYear: number
|
|
186
|
+
contactAddressToken: string
|
|
187
|
+
contactCityToken: string
|
|
188
|
+
contactProvinceToken: string
|
|
189
|
+
contactPostalCodeToken: string
|
|
190
|
+
contactCountryCode: string
|
|
191
|
+
contactEmail: string
|
|
192
|
+
contactPhoneToken: string
|
|
193
|
+
updatedAt?: string
|
|
194
|
+
createdAt?: string
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface SmartRampQuoteRequest {
|
|
198
|
+
countryCode: string
|
|
199
|
+
niftyswapContractAddress: string
|
|
200
|
+
tokenIds: Array<string>
|
|
201
|
+
tokensBoughtAmounts: Array<string>
|
|
202
|
+
maxCurrency: number
|
|
203
|
+
extraFeeRecipients?: Array<string>
|
|
204
|
+
extraFeeAmounts?: Array<string>
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface SmartRampQuoteDetails {
|
|
208
|
+
quoteId: string
|
|
209
|
+
smartScriptId: string
|
|
210
|
+
quoteRequest: SmartRampQuoteRequest
|
|
211
|
+
recipientAddress: string
|
|
212
|
+
purchaseAmount: number
|
|
213
|
+
purchaseFees: number
|
|
214
|
+
purchaseTotal: number
|
|
215
|
+
sourceCurrency: string
|
|
216
|
+
destCurrency: string
|
|
217
|
+
createdAt: string
|
|
218
|
+
expiresAt: string
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface SmartRampPurchaseReceipt {
|
|
222
|
+
orderId: string
|
|
223
|
+
quoteId: string
|
|
224
|
+
smartScriptId: string
|
|
225
|
+
createdAt: string
|
|
226
|
+
status: SmartRampOrderStatus
|
|
227
|
+
authCodesRequested: boolean
|
|
228
|
+
authCodesSubmitted: boolean
|
|
229
|
+
sourceCurrency: string
|
|
230
|
+
purchaseAmount: number
|
|
231
|
+
purchaseFees: number
|
|
232
|
+
purchaseTotal: number
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface SmartRampOrder {
|
|
236
|
+
id: number
|
|
237
|
+
userAddress: string
|
|
238
|
+
contractAddress: string
|
|
239
|
+
payCardId: number
|
|
240
|
+
orderId: string
|
|
241
|
+
quoteId: string
|
|
242
|
+
status: SmartRampOrderStatus
|
|
243
|
+
authCodesRequested: boolean
|
|
244
|
+
authCodesSubmitted: boolean
|
|
245
|
+
countryCode: string
|
|
246
|
+
email: string
|
|
247
|
+
sourceCurrency: string
|
|
248
|
+
destCurrency: string
|
|
249
|
+
purchaseAmount: number
|
|
250
|
+
purchaseFees: number
|
|
251
|
+
purchaseTotal: number
|
|
252
|
+
smartScriptParams: {[key: string]: any}
|
|
253
|
+
updatedAt?: string
|
|
254
|
+
createdAt?: string
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface PayCardAuth {
|
|
258
|
+
orderId: string
|
|
259
|
+
smsNeeded: boolean
|
|
260
|
+
card2faNeeded: boolean
|
|
261
|
+
authorization3dsUrl: string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface Page {
|
|
265
|
+
pageSize?: number
|
|
266
|
+
page?: number
|
|
267
|
+
totalRecords?: number
|
|
268
|
+
column?: string
|
|
269
|
+
before?: any
|
|
270
|
+
after?: any
|
|
271
|
+
sort?: Array<SortBy>
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface SortBy {
|
|
275
|
+
column: string
|
|
276
|
+
order: SortOrder
|
|
277
|
+
}
|
|
278
|
+
|
|
182
279
|
export interface API {
|
|
183
280
|
ping(headers?: object): Promise<PingReturn>
|
|
184
281
|
version(headers?: object): Promise<VersionReturn>
|
|
@@ -204,6 +301,16 @@ export interface API {
|
|
|
204
301
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>
|
|
205
302
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
206
303
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
304
|
+
invalidateOriginToken(args: InvalidateOriginTokenArgs, headers?: object): Promise<InvalidateOriginTokenReturn>
|
|
305
|
+
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>
|
|
306
|
+
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>
|
|
307
|
+
updatePayCardCVC(args: UpdatePayCardCVCArgs, headers?: object): Promise<UpdatePayCardCVCReturn>
|
|
308
|
+
deletePayCard(args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn>
|
|
309
|
+
smartRampQuote(args: SmartRampQuoteArgs, headers?: object): Promise<SmartRampQuoteReturn>
|
|
310
|
+
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>
|
|
311
|
+
smartRampWaitOrderConfirmation(args: SmartRampWaitOrderConfirmationArgs, headers?: object): Promise<SmartRampWaitOrderConfirmationReturn>
|
|
312
|
+
smartRampCheckCardAuthorization(args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn>
|
|
313
|
+
smartRampSubmitCardAuthorization(args: SmartRampSubmitCardAuthorizationArgs, headers?: object): Promise<SmartRampSubmitCardAuthorizationReturn>
|
|
207
314
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
208
315
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
209
316
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -391,6 +498,83 @@ export interface GetExchangeRateArgs {
|
|
|
391
498
|
export interface GetExchangeRateReturn {
|
|
392
499
|
exchangeRate: ExchangeRate
|
|
393
500
|
}
|
|
501
|
+
export interface InvalidateOriginTokenArgs {
|
|
502
|
+
token: Token
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export interface InvalidateOriginTokenReturn {
|
|
506
|
+
}
|
|
507
|
+
export interface ListPayCardsOnFileArgs {
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface ListPayCardsOnFileReturn {
|
|
511
|
+
payCards: Array<PayCard>
|
|
512
|
+
}
|
|
513
|
+
export interface SavePayCardArgs {
|
|
514
|
+
payCard: PayCard
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export interface SavePayCardReturn {
|
|
518
|
+
ok: boolean
|
|
519
|
+
payCard: PayCard
|
|
520
|
+
}
|
|
521
|
+
export interface UpdatePayCardCVCArgs {
|
|
522
|
+
payCardId: number
|
|
523
|
+
payCardCVC: string
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface UpdatePayCardCVCReturn {
|
|
527
|
+
ok: boolean
|
|
528
|
+
}
|
|
529
|
+
export interface DeletePayCardArgs {
|
|
530
|
+
payCardId: number
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export interface DeletePayCardReturn {
|
|
534
|
+
ok: boolean
|
|
535
|
+
}
|
|
536
|
+
export interface SmartRampQuoteArgs {
|
|
537
|
+
quoteRequest: SmartRampQuoteRequest
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export interface SmartRampQuoteReturn {
|
|
541
|
+
status: boolean
|
|
542
|
+
quoteDetails: SmartRampQuoteDetails
|
|
543
|
+
}
|
|
544
|
+
export interface SmartRampPurchaseArgs {
|
|
545
|
+
quoteDetails: SmartRampQuoteDetails
|
|
546
|
+
payCardId: number
|
|
547
|
+
payCardCVC?: string
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export interface SmartRampPurchaseReturn {
|
|
551
|
+
processing: boolean
|
|
552
|
+
receipt: SmartRampPurchaseReceipt
|
|
553
|
+
}
|
|
554
|
+
export interface SmartRampWaitOrderConfirmationArgs {
|
|
555
|
+
orderId: string
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface SmartRampWaitOrderConfirmationReturn {
|
|
559
|
+
done: boolean
|
|
560
|
+
receipt: SmartRampPurchaseReceipt
|
|
561
|
+
}
|
|
562
|
+
export interface SmartRampCheckCardAuthorizationArgs {
|
|
563
|
+
orderId: string
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export interface SmartRampCheckCardAuthorizationReturn {
|
|
567
|
+
cardAuth: PayCardAuth
|
|
568
|
+
}
|
|
569
|
+
export interface SmartRampSubmitCardAuthorizationArgs {
|
|
570
|
+
orderId: string
|
|
571
|
+
sms?: string
|
|
572
|
+
card2fa?: string
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export interface SmartRampSubmitCardAuthorizationReturn {
|
|
576
|
+
status: boolean
|
|
577
|
+
}
|
|
394
578
|
export interface GetInviteInfoArgs {
|
|
395
579
|
}
|
|
396
580
|
|
|
@@ -739,6 +923,130 @@ export class API implements API {
|
|
|
739
923
|
})
|
|
740
924
|
}
|
|
741
925
|
|
|
926
|
+
invalidateOriginToken = (args: InvalidateOriginTokenArgs, headers?: object): Promise<InvalidateOriginTokenReturn> => {
|
|
927
|
+
return this.fetch(
|
|
928
|
+
this.url('InvalidateOriginToken'),
|
|
929
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
930
|
+
return buildResponse(res).then(_data => {
|
|
931
|
+
return {
|
|
932
|
+
}
|
|
933
|
+
})
|
|
934
|
+
})
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
listPayCardsOnFile = (headers?: object): Promise<ListPayCardsOnFileReturn> => {
|
|
938
|
+
return this.fetch(
|
|
939
|
+
this.url('ListPayCardsOnFile'),
|
|
940
|
+
createHTTPRequest({}, headers)
|
|
941
|
+
).then((res) => {
|
|
942
|
+
return buildResponse(res).then(_data => {
|
|
943
|
+
return {
|
|
944
|
+
payCards: <Array<PayCard>>(_data.payCards)
|
|
945
|
+
}
|
|
946
|
+
})
|
|
947
|
+
})
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
savePayCard = (args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn> => {
|
|
951
|
+
return this.fetch(
|
|
952
|
+
this.url('SavePayCard'),
|
|
953
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
954
|
+
return buildResponse(res).then(_data => {
|
|
955
|
+
return {
|
|
956
|
+
ok: <boolean>(_data.ok),
|
|
957
|
+
payCard: <PayCard>(_data.payCard)
|
|
958
|
+
}
|
|
959
|
+
})
|
|
960
|
+
})
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
updatePayCardCVC = (args: UpdatePayCardCVCArgs, headers?: object): Promise<UpdatePayCardCVCReturn> => {
|
|
964
|
+
return this.fetch(
|
|
965
|
+
this.url('UpdatePayCardCVC'),
|
|
966
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
967
|
+
return buildResponse(res).then(_data => {
|
|
968
|
+
return {
|
|
969
|
+
ok: <boolean>(_data.ok)
|
|
970
|
+
}
|
|
971
|
+
})
|
|
972
|
+
})
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
deletePayCard = (args: DeletePayCardArgs, headers?: object): Promise<DeletePayCardReturn> => {
|
|
976
|
+
return this.fetch(
|
|
977
|
+
this.url('DeletePayCard'),
|
|
978
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
979
|
+
return buildResponse(res).then(_data => {
|
|
980
|
+
return {
|
|
981
|
+
ok: <boolean>(_data.ok)
|
|
982
|
+
}
|
|
983
|
+
})
|
|
984
|
+
})
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
smartRampQuote = (args: SmartRampQuoteArgs, headers?: object): Promise<SmartRampQuoteReturn> => {
|
|
988
|
+
return this.fetch(
|
|
989
|
+
this.url('SmartRampQuote'),
|
|
990
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
991
|
+
return buildResponse(res).then(_data => {
|
|
992
|
+
return {
|
|
993
|
+
status: <boolean>(_data.status),
|
|
994
|
+
quoteDetails: <SmartRampQuoteDetails>(_data.quoteDetails)
|
|
995
|
+
}
|
|
996
|
+
})
|
|
997
|
+
})
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
smartRampPurchase = (args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn> => {
|
|
1001
|
+
return this.fetch(
|
|
1002
|
+
this.url('SmartRampPurchase'),
|
|
1003
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1004
|
+
return buildResponse(res).then(_data => {
|
|
1005
|
+
return {
|
|
1006
|
+
processing: <boolean>(_data.processing),
|
|
1007
|
+
receipt: <SmartRampPurchaseReceipt>(_data.receipt)
|
|
1008
|
+
}
|
|
1009
|
+
})
|
|
1010
|
+
})
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
smartRampWaitOrderConfirmation = (args: SmartRampWaitOrderConfirmationArgs, headers?: object): Promise<SmartRampWaitOrderConfirmationReturn> => {
|
|
1014
|
+
return this.fetch(
|
|
1015
|
+
this.url('SmartRampWaitOrderConfirmation'),
|
|
1016
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1017
|
+
return buildResponse(res).then(_data => {
|
|
1018
|
+
return {
|
|
1019
|
+
done: <boolean>(_data.done),
|
|
1020
|
+
receipt: <SmartRampPurchaseReceipt>(_data.receipt)
|
|
1021
|
+
}
|
|
1022
|
+
})
|
|
1023
|
+
})
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
smartRampCheckCardAuthorization = (args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn> => {
|
|
1027
|
+
return this.fetch(
|
|
1028
|
+
this.url('SmartRampCheckCardAuthorization'),
|
|
1029
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1030
|
+
return buildResponse(res).then(_data => {
|
|
1031
|
+
return {
|
|
1032
|
+
cardAuth: <PayCardAuth>(_data.cardAuth)
|
|
1033
|
+
}
|
|
1034
|
+
})
|
|
1035
|
+
})
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
smartRampSubmitCardAuthorization = (args: SmartRampSubmitCardAuthorizationArgs, headers?: object): Promise<SmartRampSubmitCardAuthorizationReturn> => {
|
|
1039
|
+
return this.fetch(
|
|
1040
|
+
this.url('SmartRampSubmitCardAuthorization'),
|
|
1041
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1042
|
+
return buildResponse(res).then(_data => {
|
|
1043
|
+
return {
|
|
1044
|
+
status: <boolean>(_data.status)
|
|
1045
|
+
}
|
|
1046
|
+
})
|
|
1047
|
+
})
|
|
1048
|
+
}
|
|
1049
|
+
|
|
742
1050
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
743
1051
|
return this.fetch(
|
|
744
1052
|
this.url('GetInviteInfo'),
|