@0xsequence/api 1.9.6 → 1.9.7

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.
@@ -18,9 +18,9 @@ function _extends() {
18
18
  }
19
19
 
20
20
  /* eslint-disable */
21
- // sequence-api v0.4.0 8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d
21
+ // sequence-api v0.4.0 36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa
22
22
  // --
23
- // Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
23
+ // Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
24
24
  //
25
25
  // webrpc-gen -schema=api.ridl -target=typescript@v0.10.0 -client -out=./clients/api.gen.ts
26
26
 
@@ -31,26 +31,12 @@ const WebRPCVersion = 'v1';
31
31
  const WebRPCSchemaVersion = 'v0.4.0';
32
32
 
33
33
  // Schema hash generated from your RIDL schema
34
- const WebRPCSchemaHash = '8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d';
34
+ const WebRPCSchemaHash = '36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa';
35
35
 
36
36
  //
37
37
  // Types
38
38
  //
39
39
 
40
- let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
41
- SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
42
- SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
43
- SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
44
- SmartRampOrderStatus["FAILED"] = "FAILED";
45
- SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
46
- return SmartRampOrderStatus;
47
- }({});
48
- let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
49
- SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
50
- SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
51
- SmartRampTxnStatus["FAILED"] = "FAILED";
52
- return SmartRampTxnStatus;
53
- }({});
54
40
  let SortOrder = /*#__PURE__*/function (SortOrder) {
55
41
  SortOrder["DESC"] = "DESC";
56
42
  SortOrder["ASC"] = "ASC";
@@ -281,15 +267,6 @@ class API {
281
267
  });
282
268
  });
283
269
  };
284
- this.isUsingGoogleMail = (args, headers) => {
285
- return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
286
- return buildResponse(res).then(_data => {
287
- return {
288
- yes: _data.yes
289
- };
290
- });
291
- });
292
- };
293
270
  this.resolveENSAddress = (args, headers) => {
294
271
  return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers)).then(res => {
295
272
  return buildResponse(res).then(_data => {
@@ -381,147 +358,6 @@ class API {
381
358
  });
382
359
  });
383
360
  };
384
- this.listPayCardsOnFile = headers => {
385
- return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
386
- return buildResponse(res).then(_data => {
387
- return {
388
- payCards: _data.payCards
389
- };
390
- });
391
- });
392
- };
393
- this.savePayCard = (args, headers) => {
394
- return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
395
- return buildResponse(res).then(_data => {
396
- return {
397
- ok: _data.ok,
398
- payCard: _data.payCard
399
- };
400
- });
401
- });
402
- };
403
- this.updatePayCardCVC = (args, headers) => {
404
- return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
405
- return buildResponse(res).then(_data => {
406
- return {
407
- ok: _data.ok
408
- };
409
- });
410
- });
411
- };
412
- this.deletePayCard = (args, headers) => {
413
- return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
414
- return buildResponse(res).then(_data => {
415
- return {
416
- ok: _data.ok
417
- };
418
- });
419
- });
420
- };
421
- this.smartRampQuote = (args, headers) => {
422
- return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
423
- return buildResponse(res).then(_data => {
424
- return {
425
- status: _data.status,
426
- quoteDetails: _data.quoteDetails
427
- };
428
- });
429
- });
430
- };
431
- this.smartRampPurchase = (args, headers) => {
432
- return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
433
- return buildResponse(res).then(_data => {
434
- return {
435
- processing: _data.processing,
436
- receipt: _data.receipt
437
- };
438
- });
439
- });
440
- };
441
- this.smartRampWaitOrderConfirmation = (args, headers) => {
442
- return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
443
- return buildResponse(res).then(_data => {
444
- return {
445
- done: _data.done,
446
- receipt: _data.receipt
447
- };
448
- });
449
- });
450
- };
451
- this.smartRampGetOrder = (args, headers) => {
452
- return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
453
- return buildResponse(res).then(_data => {
454
- return {
455
- order: _data.order
456
- };
457
- });
458
- });
459
- };
460
- this.smartRampCheckCardAuthorization = (args, headers) => {
461
- return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
462
- return buildResponse(res).then(_data => {
463
- return {
464
- cardAuth: _data.cardAuth
465
- };
466
- });
467
- });
468
- };
469
- this.smartRampOrdersList = (args, headers) => {
470
- return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
471
- return buildResponse(res).then(_data => {
472
- return {
473
- page: _data.page,
474
- orders: _data.orders
475
- };
476
- });
477
- });
478
- };
479
- this.smartRampGetOrderTxnHash = (args, headers) => {
480
- return this.fetch(this.url('SmartRampGetOrderTxnHash'), createHTTPRequest(args, headers)).then(res => {
481
- return buildResponse(res).then(_data => {
482
- return {
483
- txnHash: _data.txnHash,
484
- txnSuccessful: _data.txnSuccessful
485
- };
486
- });
487
- });
488
- };
489
- this.smartRampSubmitCardAuthorization = (args, headers) => {
490
- return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
491
- return buildResponse(res).then(_data => {
492
- return {
493
- status: _data.status
494
- };
495
- });
496
- });
497
- };
498
- this.adminSmartRampGetOrder = (args, headers) => {
499
- return this.fetch(this.url('AdminSmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
500
- return buildResponse(res).then(_data => {
501
- return {
502
- order: _data.order
503
- };
504
- });
505
- });
506
- };
507
- this.adminSmartRampListCompletedOrders = (args, headers) => {
508
- return this.fetch(this.url('AdminSmartRampListCompletedOrders'), createHTTPRequest(args, headers)).then(res => {
509
- return buildResponse(res).then(_data => {
510
- return {
511
- orders: _data.orders
512
- };
513
- });
514
- });
515
- };
516
- this.adminSmartRampListPendingOrders = (args, headers) => {
517
- return this.fetch(this.url('AdminSmartRampListPendingOrders'), createHTTPRequest(args, headers)).then(res => {
518
- return buildResponse(res).then(_data => {
519
- return {
520
- pendingOrders: _data.pendingOrders
521
- };
522
- });
523
- });
524
- };
525
361
  this.getInviteInfo = headers => {
526
362
  return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
527
363
  return buildResponse(res).then(_data => {
@@ -659,8 +495,6 @@ class SequenceAPIClient extends API {
659
495
 
660
496
  exports.API = API;
661
497
  exports.SequenceAPIClient = SequenceAPIClient;
662
- exports.SmartRampOrderStatus = SmartRampOrderStatus;
663
- exports.SmartRampTxnStatus = SmartRampTxnStatus;
664
498
  exports.SortOrder = SortOrder;
665
499
  exports.WebRPCSchemaHash = WebRPCSchemaHash;
666
500
  exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
@@ -18,9 +18,9 @@ function _extends() {
18
18
  }
19
19
 
20
20
  /* eslint-disable */
21
- // sequence-api v0.4.0 8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d
21
+ // sequence-api v0.4.0 36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa
22
22
  // --
23
- // Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
23
+ // Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
24
24
  //
25
25
  // webrpc-gen -schema=api.ridl -target=typescript@v0.10.0 -client -out=./clients/api.gen.ts
26
26
 
@@ -31,26 +31,12 @@ const WebRPCVersion = 'v1';
31
31
  const WebRPCSchemaVersion = 'v0.4.0';
32
32
 
33
33
  // Schema hash generated from your RIDL schema
34
- const WebRPCSchemaHash = '8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d';
34
+ const WebRPCSchemaHash = '36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa';
35
35
 
36
36
  //
37
37
  // Types
38
38
  //
39
39
 
40
- let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
41
- SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
42
- SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
43
- SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
44
- SmartRampOrderStatus["FAILED"] = "FAILED";
45
- SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
46
- return SmartRampOrderStatus;
47
- }({});
48
- let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
49
- SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
50
- SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
51
- SmartRampTxnStatus["FAILED"] = "FAILED";
52
- return SmartRampTxnStatus;
53
- }({});
54
40
  let SortOrder = /*#__PURE__*/function (SortOrder) {
55
41
  SortOrder["DESC"] = "DESC";
56
42
  SortOrder["ASC"] = "ASC";
@@ -281,15 +267,6 @@ class API {
281
267
  });
282
268
  });
283
269
  };
284
- this.isUsingGoogleMail = (args, headers) => {
285
- return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
286
- return buildResponse(res).then(_data => {
287
- return {
288
- yes: _data.yes
289
- };
290
- });
291
- });
292
- };
293
270
  this.resolveENSAddress = (args, headers) => {
294
271
  return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers)).then(res => {
295
272
  return buildResponse(res).then(_data => {
@@ -381,147 +358,6 @@ class API {
381
358
  });
382
359
  });
383
360
  };
384
- this.listPayCardsOnFile = headers => {
385
- return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
386
- return buildResponse(res).then(_data => {
387
- return {
388
- payCards: _data.payCards
389
- };
390
- });
391
- });
392
- };
393
- this.savePayCard = (args, headers) => {
394
- return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
395
- return buildResponse(res).then(_data => {
396
- return {
397
- ok: _data.ok,
398
- payCard: _data.payCard
399
- };
400
- });
401
- });
402
- };
403
- this.updatePayCardCVC = (args, headers) => {
404
- return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
405
- return buildResponse(res).then(_data => {
406
- return {
407
- ok: _data.ok
408
- };
409
- });
410
- });
411
- };
412
- this.deletePayCard = (args, headers) => {
413
- return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
414
- return buildResponse(res).then(_data => {
415
- return {
416
- ok: _data.ok
417
- };
418
- });
419
- });
420
- };
421
- this.smartRampQuote = (args, headers) => {
422
- return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
423
- return buildResponse(res).then(_data => {
424
- return {
425
- status: _data.status,
426
- quoteDetails: _data.quoteDetails
427
- };
428
- });
429
- });
430
- };
431
- this.smartRampPurchase = (args, headers) => {
432
- return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
433
- return buildResponse(res).then(_data => {
434
- return {
435
- processing: _data.processing,
436
- receipt: _data.receipt
437
- };
438
- });
439
- });
440
- };
441
- this.smartRampWaitOrderConfirmation = (args, headers) => {
442
- return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
443
- return buildResponse(res).then(_data => {
444
- return {
445
- done: _data.done,
446
- receipt: _data.receipt
447
- };
448
- });
449
- });
450
- };
451
- this.smartRampGetOrder = (args, headers) => {
452
- return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
453
- return buildResponse(res).then(_data => {
454
- return {
455
- order: _data.order
456
- };
457
- });
458
- });
459
- };
460
- this.smartRampCheckCardAuthorization = (args, headers) => {
461
- return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
462
- return buildResponse(res).then(_data => {
463
- return {
464
- cardAuth: _data.cardAuth
465
- };
466
- });
467
- });
468
- };
469
- this.smartRampOrdersList = (args, headers) => {
470
- return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
471
- return buildResponse(res).then(_data => {
472
- return {
473
- page: _data.page,
474
- orders: _data.orders
475
- };
476
- });
477
- });
478
- };
479
- this.smartRampGetOrderTxnHash = (args, headers) => {
480
- return this.fetch(this.url('SmartRampGetOrderTxnHash'), createHTTPRequest(args, headers)).then(res => {
481
- return buildResponse(res).then(_data => {
482
- return {
483
- txnHash: _data.txnHash,
484
- txnSuccessful: _data.txnSuccessful
485
- };
486
- });
487
- });
488
- };
489
- this.smartRampSubmitCardAuthorization = (args, headers) => {
490
- return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
491
- return buildResponse(res).then(_data => {
492
- return {
493
- status: _data.status
494
- };
495
- });
496
- });
497
- };
498
- this.adminSmartRampGetOrder = (args, headers) => {
499
- return this.fetch(this.url('AdminSmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
500
- return buildResponse(res).then(_data => {
501
- return {
502
- order: _data.order
503
- };
504
- });
505
- });
506
- };
507
- this.adminSmartRampListCompletedOrders = (args, headers) => {
508
- return this.fetch(this.url('AdminSmartRampListCompletedOrders'), createHTTPRequest(args, headers)).then(res => {
509
- return buildResponse(res).then(_data => {
510
- return {
511
- orders: _data.orders
512
- };
513
- });
514
- });
515
- };
516
- this.adminSmartRampListPendingOrders = (args, headers) => {
517
- return this.fetch(this.url('AdminSmartRampListPendingOrders'), createHTTPRequest(args, headers)).then(res => {
518
- return buildResponse(res).then(_data => {
519
- return {
520
- pendingOrders: _data.pendingOrders
521
- };
522
- });
523
- });
524
- };
525
361
  this.getInviteInfo = headers => {
526
362
  return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
527
363
  return buildResponse(res).then(_data => {
@@ -659,8 +495,6 @@ class SequenceAPIClient extends API {
659
495
 
660
496
  exports.API = API;
661
497
  exports.SequenceAPIClient = SequenceAPIClient;
662
- exports.SmartRampOrderStatus = SmartRampOrderStatus;
663
- exports.SmartRampTxnStatus = SmartRampTxnStatus;
664
498
  exports.SortOrder = SortOrder;
665
499
  exports.WebRPCSchemaHash = WebRPCSchemaHash;
666
500
  exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
@@ -14,9 +14,9 @@ function _extends() {
14
14
  }
15
15
 
16
16
  /* eslint-disable */
17
- // sequence-api v0.4.0 8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d
17
+ // sequence-api v0.4.0 36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa
18
18
  // --
19
- // Code generated by webrpc-gen@v0.12.x-dev with typescript@v0.10.0 generator. DO NOT EDIT.
19
+ // Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
20
20
  //
21
21
  // webrpc-gen -schema=api.ridl -target=typescript@v0.10.0 -client -out=./clients/api.gen.ts
22
22
 
@@ -27,26 +27,12 @@ const WebRPCVersion = 'v1';
27
27
  const WebRPCSchemaVersion = 'v0.4.0';
28
28
 
29
29
  // Schema hash generated from your RIDL schema
30
- const WebRPCSchemaHash = '8c9ba9b9d3c5836bfb8eadcc78cdc2a929fcfb0d';
30
+ const WebRPCSchemaHash = '36319973bb13b5ade2a7e4515f6bfcf0fe8da6fa';
31
31
 
32
32
  //
33
33
  // Types
34
34
  //
35
35
 
36
- let SmartRampOrderStatus = /*#__PURE__*/function (SmartRampOrderStatus) {
37
- SmartRampOrderStatus["UNKNOWN"] = "UNKNOWN";
38
- SmartRampOrderStatus["RUNNING_CHECKS"] = "RUNNING_CHECKS";
39
- SmartRampOrderStatus["PROCESSING"] = "PROCESSING";
40
- SmartRampOrderStatus["FAILED"] = "FAILED";
41
- SmartRampOrderStatus["COMPLETE"] = "COMPLETE";
42
- return SmartRampOrderStatus;
43
- }({});
44
- let SmartRampTxnStatus = /*#__PURE__*/function (SmartRampTxnStatus) {
45
- SmartRampTxnStatus["UNKNOWN"] = "UNKNOWN";
46
- SmartRampTxnStatus["SUCCESSFUL"] = "SUCCESSFUL";
47
- SmartRampTxnStatus["FAILED"] = "FAILED";
48
- return SmartRampTxnStatus;
49
- }({});
50
36
  let SortOrder = /*#__PURE__*/function (SortOrder) {
51
37
  SortOrder["DESC"] = "DESC";
52
38
  SortOrder["ASC"] = "ASC";
@@ -277,15 +263,6 @@ class API {
277
263
  });
278
264
  });
279
265
  };
280
- this.isUsingGoogleMail = (args, headers) => {
281
- return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
282
- return buildResponse(res).then(_data => {
283
- return {
284
- yes: _data.yes
285
- };
286
- });
287
- });
288
- };
289
266
  this.resolveENSAddress = (args, headers) => {
290
267
  return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers)).then(res => {
291
268
  return buildResponse(res).then(_data => {
@@ -377,147 +354,6 @@ class API {
377
354
  });
378
355
  });
379
356
  };
380
- this.listPayCardsOnFile = headers => {
381
- return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
382
- return buildResponse(res).then(_data => {
383
- return {
384
- payCards: _data.payCards
385
- };
386
- });
387
- });
388
- };
389
- this.savePayCard = (args, headers) => {
390
- return this.fetch(this.url('SavePayCard'), createHTTPRequest(args, headers)).then(res => {
391
- return buildResponse(res).then(_data => {
392
- return {
393
- ok: _data.ok,
394
- payCard: _data.payCard
395
- };
396
- });
397
- });
398
- };
399
- this.updatePayCardCVC = (args, headers) => {
400
- return this.fetch(this.url('UpdatePayCardCVC'), createHTTPRequest(args, headers)).then(res => {
401
- return buildResponse(res).then(_data => {
402
- return {
403
- ok: _data.ok
404
- };
405
- });
406
- });
407
- };
408
- this.deletePayCard = (args, headers) => {
409
- return this.fetch(this.url('DeletePayCard'), createHTTPRequest(args, headers)).then(res => {
410
- return buildResponse(res).then(_data => {
411
- return {
412
- ok: _data.ok
413
- };
414
- });
415
- });
416
- };
417
- this.smartRampQuote = (args, headers) => {
418
- return this.fetch(this.url('SmartRampQuote'), createHTTPRequest(args, headers)).then(res => {
419
- return buildResponse(res).then(_data => {
420
- return {
421
- status: _data.status,
422
- quoteDetails: _data.quoteDetails
423
- };
424
- });
425
- });
426
- };
427
- this.smartRampPurchase = (args, headers) => {
428
- return this.fetch(this.url('SmartRampPurchase'), createHTTPRequest(args, headers)).then(res => {
429
- return buildResponse(res).then(_data => {
430
- return {
431
- processing: _data.processing,
432
- receipt: _data.receipt
433
- };
434
- });
435
- });
436
- };
437
- this.smartRampWaitOrderConfirmation = (args, headers) => {
438
- return this.fetch(this.url('SmartRampWaitOrderConfirmation'), createHTTPRequest(args, headers)).then(res => {
439
- return buildResponse(res).then(_data => {
440
- return {
441
- done: _data.done,
442
- receipt: _data.receipt
443
- };
444
- });
445
- });
446
- };
447
- this.smartRampGetOrder = (args, headers) => {
448
- return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
449
- return buildResponse(res).then(_data => {
450
- return {
451
- order: _data.order
452
- };
453
- });
454
- });
455
- };
456
- this.smartRampCheckCardAuthorization = (args, headers) => {
457
- return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
458
- return buildResponse(res).then(_data => {
459
- return {
460
- cardAuth: _data.cardAuth
461
- };
462
- });
463
- });
464
- };
465
- this.smartRampOrdersList = (args, headers) => {
466
- return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
467
- return buildResponse(res).then(_data => {
468
- return {
469
- page: _data.page,
470
- orders: _data.orders
471
- };
472
- });
473
- });
474
- };
475
- this.smartRampGetOrderTxnHash = (args, headers) => {
476
- return this.fetch(this.url('SmartRampGetOrderTxnHash'), createHTTPRequest(args, headers)).then(res => {
477
- return buildResponse(res).then(_data => {
478
- return {
479
- txnHash: _data.txnHash,
480
- txnSuccessful: _data.txnSuccessful
481
- };
482
- });
483
- });
484
- };
485
- this.smartRampSubmitCardAuthorization = (args, headers) => {
486
- return this.fetch(this.url('SmartRampSubmitCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
487
- return buildResponse(res).then(_data => {
488
- return {
489
- status: _data.status
490
- };
491
- });
492
- });
493
- };
494
- this.adminSmartRampGetOrder = (args, headers) => {
495
- return this.fetch(this.url('AdminSmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
496
- return buildResponse(res).then(_data => {
497
- return {
498
- order: _data.order
499
- };
500
- });
501
- });
502
- };
503
- this.adminSmartRampListCompletedOrders = (args, headers) => {
504
- return this.fetch(this.url('AdminSmartRampListCompletedOrders'), createHTTPRequest(args, headers)).then(res => {
505
- return buildResponse(res).then(_data => {
506
- return {
507
- orders: _data.orders
508
- };
509
- });
510
- });
511
- };
512
- this.adminSmartRampListPendingOrders = (args, headers) => {
513
- return this.fetch(this.url('AdminSmartRampListPendingOrders'), createHTTPRequest(args, headers)).then(res => {
514
- return buildResponse(res).then(_data => {
515
- return {
516
- pendingOrders: _data.pendingOrders
517
- };
518
- });
519
- });
520
- };
521
357
  this.getInviteInfo = headers => {
522
358
  return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
523
359
  return buildResponse(res).then(_data => {
@@ -653,4 +489,4 @@ class SequenceAPIClient extends API {
653
489
  }
654
490
  }
655
491
 
656
- export { API, SequenceAPIClient, SmartRampOrderStatus, SmartRampTxnStatus, SortOrder, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
492
+ export { API, SequenceAPIClient, SortOrder, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };