@cobo/cobo-waas2 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +13 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +1 -1
  4. package/dist/api/OAuthApi.js +4 -4
  5. package/dist/api/PaymentApi.js +144 -6
  6. package/dist/api/TransactionsApi.js +94 -2
  7. package/dist/index.js +49 -0
  8. package/dist/model/AddressesEventData.js +13 -3
  9. package/dist/model/BalanceUpdateInfoEventData.js +13 -3
  10. package/dist/model/ChainsEventData.js +13 -3
  11. package/dist/model/ContractCallDestination.js +1 -1
  12. package/dist/model/CreatePaymentOrderRequest.js +4 -4
  13. package/dist/model/CreateRefundRequest.js +3 -3
  14. package/dist/model/CreateSettlement.js +1 -1
  15. package/dist/model/CustodialWeb3TransferSource.js +2 -2
  16. package/dist/model/EstimateContractCallFeeParams.js +4 -6
  17. package/dist/model/EvmContractCallDestination.js +2 -2
  18. package/dist/model/FILBase.js +0 -1
  19. package/dist/model/ForcedSweep.js +193 -0
  20. package/dist/model/ForcedSweepRequest.js +156 -0
  21. package/dist/model/ForcedSweepStatus.js +66 -0
  22. package/dist/model/ListForcedSweepRequests200Response.js +123 -0
  23. package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
  24. package/dist/model/MPCVaultEventData.js +13 -3
  25. package/dist/model/MpcTransferSource.js +2 -2
  26. package/dist/model/Order.js +2 -2
  27. package/dist/model/PaymentAddressUpdateEventData.js +284 -0
  28. package/dist/model/PaymentOrderEventData.js +16 -6
  29. package/dist/model/PaymentRefundEventData.js +13 -3
  30. package/dist/model/PaymentSettlementEvent.js +13 -3
  31. package/dist/model/PaymentTransactionEventData.js +827 -0
  32. package/dist/model/SOLBase.js +0 -1
  33. package/dist/model/SafeWalletDelegates.js +1 -1
  34. package/dist/model/SafeWalletDelegatesContractCall.js +1 -1
  35. package/dist/model/SettlementInfo.js +26 -0
  36. package/dist/model/SuspendedTokenEventData.js +13 -3
  37. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  38. package/dist/model/TokenListingEventData.js +13 -3
  39. package/dist/model/TokenizationContractCallParamsData.js +1 -1
  40. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  41. package/dist/model/TokensEventData.js +13 -3
  42. package/dist/model/TransactionDestination.js +1 -1
  43. package/dist/model/TransactionEvmContractDestination.js +2 -2
  44. package/dist/model/TransactionRbfSource.js +1 -1
  45. package/dist/model/TransactionWebhookEventData.js +13 -3
  46. package/dist/model/UpdateTopUpAddress.js +2 -2
  47. package/dist/model/WalletInfoEventData.js +13 -3
  48. package/dist/model/WebhookEventData.js +115 -23
  49. package/dist/model/WebhookEventDataType.js +12 -2
  50. package/dist/model/WebhookEventType.js +5 -0
  51. package/docs/AddressesEventData.md +5 -1
  52. package/docs/BalanceUpdateInfoEventData.md +5 -1
  53. package/docs/ChainsEventData.md +5 -1
  54. package/docs/ContractCallDestination.md +1 -1
  55. package/docs/CreatePaymentOrderRequest.md +2 -2
  56. package/docs/CreateRefundRequest.md +2 -2
  57. package/docs/CreateSettlement.md +1 -1
  58. package/docs/CustodialWeb3TransferSource.md +1 -1
  59. package/docs/EstimateContractCallFeeParams.md +1 -1
  60. package/docs/EstimateFeeParams.md +1 -1
  61. package/docs/EvmContractCallDestination.md +1 -1
  62. package/docs/ForcedSweep.md +16 -0
  63. package/docs/ForcedSweepRequest.md +12 -0
  64. package/docs/ForcedSweepStatus.md +14 -0
  65. package/docs/ListForcedSweepRequests200Response.md +10 -0
  66. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  67. package/docs/MPCVaultEventData.md +5 -1
  68. package/docs/MpcTransferSource.md +1 -1
  69. package/docs/OAuthApi.md +2 -2
  70. package/docs/Order.md +1 -1
  71. package/docs/PaymentAddressUpdateEventData.md +53 -0
  72. package/docs/PaymentApi.md +168 -3
  73. package/docs/PaymentOrderEventData.md +6 -2
  74. package/docs/PaymentRefundEventData.md +5 -1
  75. package/docs/PaymentSettlementEvent.md +5 -1
  76. package/docs/PaymentTransactionEventData.md +84 -0
  77. package/docs/SafeWalletDelegates.md +1 -1
  78. package/docs/SafeWalletDelegatesContractCall.md +1 -1
  79. package/docs/SettlementInfo.md +2 -0
  80. package/docs/SuspendedTokenEventData.md +5 -1
  81. package/docs/TSSRequestWebhookEventData.md +5 -1
  82. package/docs/TokenListingEventData.md +5 -1
  83. package/docs/TokenizationContractCallParamsData.md +1 -1
  84. package/docs/TokenizationEvmContractCallParams.md +1 -1
  85. package/docs/TokensEventData.md +5 -1
  86. package/docs/TransactionDestination.md +1 -1
  87. package/docs/TransactionEvmContractDestination.md +1 -1
  88. package/docs/TransactionRbfSource.md +1 -1
  89. package/docs/TransactionWebhookEventData.md +5 -1
  90. package/docs/TransactionsApi.md +107 -1
  91. package/docs/UpdateTopUpAddress.md +1 -1
  92. package/docs/WalletInfoEventData.md +5 -1
  93. package/docs/WebhookEventData.md +22 -12
  94. package/docs/WebhookEventDataType.md +5 -1
  95. package/docs/WebhookEventType.md +2 -0
  96. package/package.json +1 -1
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
8
9
  var _AddressesEventData = _interopRequireDefault(require("./AddressesEventData"));
9
10
  var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./AddressesEventDataAllOfAddresses"));
10
11
  var _Balance = _interopRequireDefault(require("./Balance"));
@@ -12,14 +13,14 @@ var _BalanceUpdateInfoEventData = _interopRequireDefault(require("./BalanceUpdat
12
13
  var _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
13
14
  var _ChainsEventData = _interopRequireDefault(require("./ChainsEventData"));
14
15
  var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
15
- var _MPCVaultType = _interopRequireDefault(require("./MPCVaultType"));
16
+ var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./PaymentAddressUpdateEventData"));
16
17
  var _PaymentOrderEventData = _interopRequireDefault(require("./PaymentOrderEventData"));
17
18
  var _PaymentRefundEventData = _interopRequireDefault(require("./PaymentRefundEventData"));
18
19
  var _PaymentSettlementEvent = _interopRequireDefault(require("./PaymentSettlementEvent"));
19
20
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
21
+ var _PaymentTransactionEventData = _interopRequireDefault(require("./PaymentTransactionEventData"));
20
22
  var _RefundType = _interopRequireDefault(require("./RefundType"));
21
23
  var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
22
- var _SettleRequestStatus = _interopRequireDefault(require("./SettleRequestStatus"));
23
24
  var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
24
25
  var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
25
26
  var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
@@ -28,7 +29,6 @@ var _SuspendedTokenOperationType = _interopRequireDefault(require("./SuspendedTo
28
29
  var _TSSRequestWebhookEventData = _interopRequireDefault(require("./TSSRequestWebhookEventData"));
29
30
  var _TokenInfo = _interopRequireDefault(require("./TokenInfo"));
30
31
  var _TokenListingEventData = _interopRequireDefault(require("./TokenListingEventData"));
31
- var _TokenListingRequestSource = _interopRequireDefault(require("./TokenListingRequestSource"));
32
32
  var _TokensEventData = _interopRequireDefault(require("./TokensEventData"));
33
33
  var _TransactionBlockInfo = _interopRequireDefault(require("./TransactionBlockInfo"));
34
34
  var _TransactionDestination = _interopRequireDefault(require("./TransactionDestination"));
@@ -38,7 +38,10 @@ var _TransactionInitiatorType = _interopRequireDefault(require("./TransactionIni
38
38
  var _TransactionRawTxInfo = _interopRequireDefault(require("./TransactionRawTxInfo"));
39
39
  var _TransactionReplacement = _interopRequireDefault(require("./TransactionReplacement"));
40
40
  var _TransactionResult = _interopRequireDefault(require("./TransactionResult"));
41
+ var _TransactionSource = _interopRequireDefault(require("./TransactionSource"));
42
+ var _TransactionStatus = _interopRequireDefault(require("./TransactionStatus"));
41
43
  var _TransactionSubStatus = _interopRequireDefault(require("./TransactionSubStatus"));
44
+ var _TransactionType = _interopRequireDefault(require("./TransactionType"));
42
45
  var _TransactionWebhookEventData = _interopRequireDefault(require("./TransactionWebhookEventData"));
43
46
  var _WalletInfo = _interopRequireDefault(require("./WalletInfo"));
44
47
  var _WalletInfoEventData = _interopRequireDefault(require("./WalletInfoEventData"));
@@ -70,7 +73,7 @@ var WebhookEventData = /*#__PURE__*/function () {
70
73
  /**
71
74
  * Constructs a new <code>WebhookEventData</code>.
72
75
  * @alias module:model/WebhookEventData
73
- * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
76
+ * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
74
77
  */
75
78
  function WebhookEventData() {
76
79
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -107,6 +110,10 @@ var WebhookEventData = /*#__PURE__*/function () {
107
110
  this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
108
111
  match++;
109
112
  break;
113
+ case "PaymentAddressUpdate":
114
+ this.actualInstance = _PaymentAddressUpdateEventData["default"].constructFromObject(instance);
115
+ match++;
116
+ break;
110
117
  case "PaymentOrder":
111
118
  this.actualInstance = _PaymentOrderEventData["default"].constructFromObject(instance);
112
119
  match++;
@@ -119,6 +126,10 @@ var WebhookEventData = /*#__PURE__*/function () {
119
126
  this.actualInstance = _PaymentSettlementEvent["default"].constructFromObject(instance);
120
127
  match++;
121
128
  break;
129
+ case "PaymentTransaction":
130
+ this.actualInstance = _PaymentTransactionEventData["default"].constructFromObject(instance);
131
+ match++;
132
+ break;
122
133
  case "SuspendedToken":
123
134
  this.actualInstance = _SuspendedTokenEventData["default"].constructFromObject(instance);
124
135
  match++;
@@ -448,13 +459,59 @@ var WebhookEventData = /*#__PURE__*/function () {
448
459
  // json data failed to deserialize into PaymentSettlementEvent
449
460
  errorMessages.push("Failed to construct PaymentSettlementEvent: " + err);
450
461
  }
462
+ try {
463
+ if (instance instanceof _PaymentTransactionEventData["default"]) {
464
+ this.actualInstance = instance;
465
+ } else if (!!_PaymentTransactionEventData["default"].validateJSON && _PaymentTransactionEventData["default"].validateJSON(instance)) {
466
+ // plain JS object
467
+ // create PaymentTransactionEventData from JS object
468
+ this.actualInstance = _PaymentTransactionEventData["default"].constructFromObject(instance);
469
+ } else {
470
+ if (_PaymentTransactionEventData["default"].constructFromObject(instance)) {
471
+ if (!!_PaymentTransactionEventData["default"].constructFromObject(instance).toJSON) {
472
+ if (_PaymentTransactionEventData["default"].constructFromObject(instance).toJSON()) {
473
+ this.actualInstance = _PaymentTransactionEventData["default"].constructFromObject(instance);
474
+ }
475
+ } else {
476
+ this.actualInstance = _PaymentTransactionEventData["default"].constructFromObject(instance);
477
+ }
478
+ }
479
+ }
480
+ match++;
481
+ } catch (err) {
482
+ // json data failed to deserialize into PaymentTransactionEventData
483
+ errorMessages.push("Failed to construct PaymentTransactionEventData: " + err);
484
+ }
485
+ try {
486
+ if (instance instanceof _PaymentAddressUpdateEventData["default"]) {
487
+ this.actualInstance = instance;
488
+ } else if (!!_PaymentAddressUpdateEventData["default"].validateJSON && _PaymentAddressUpdateEventData["default"].validateJSON(instance)) {
489
+ // plain JS object
490
+ // create PaymentAddressUpdateEventData from JS object
491
+ this.actualInstance = _PaymentAddressUpdateEventData["default"].constructFromObject(instance);
492
+ } else {
493
+ if (_PaymentAddressUpdateEventData["default"].constructFromObject(instance)) {
494
+ if (!!_PaymentAddressUpdateEventData["default"].constructFromObject(instance).toJSON) {
495
+ if (_PaymentAddressUpdateEventData["default"].constructFromObject(instance).toJSON()) {
496
+ this.actualInstance = _PaymentAddressUpdateEventData["default"].constructFromObject(instance);
497
+ }
498
+ } else {
499
+ this.actualInstance = _PaymentAddressUpdateEventData["default"].constructFromObject(instance);
500
+ }
501
+ }
502
+ }
503
+ match++;
504
+ } catch (err) {
505
+ // json data failed to deserialize into PaymentAddressUpdateEventData
506
+ errorMessages.push("Failed to construct PaymentAddressUpdateEventData: " + err);
507
+ }
451
508
 
452
509
  // if (match > 1) {
453
- // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
510
+ // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
454
511
  // } else
455
512
  if (match === 0) {
456
513
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
457
- // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
514
+ // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
458
515
  // errorMessages.join(", "));
459
516
  return;
460
517
  } else {// only 1 match
@@ -473,16 +530,16 @@ var WebhookEventData = /*#__PURE__*/function () {
473
530
  key: "getActualInstance",
474
531
  value:
475
532
  /**
476
- * Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
477
- * @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
533
+ * Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
534
+ * @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
478
535
  */
479
536
  function getActualInstance() {
480
537
  return this.actualInstance;
481
538
  }
482
539
 
483
540
  /**
484
- * Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
485
- * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
541
+ * Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
542
+ * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
486
543
  */
487
544
  }, {
488
545
  key: "setActualInstance",
@@ -497,7 +554,7 @@ var WebhookEventData = /*#__PURE__*/function () {
497
554
  }]);
498
555
  }();
499
556
  /**
500
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
557
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
501
558
  * @member {module:model/WebhookEventData.DataTypeEnum} data_type
502
559
  */
503
560
  _WebhookEventData = WebhookEventData;
@@ -524,7 +581,7 @@ WebhookEventData.prototype['transaction_id'] = undefined;
524
581
  WebhookEventData.prototype['cobo_id'] = undefined;
525
582
 
526
583
  /**
527
- * The request ID provided by you when creating the settlement request.
584
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
528
585
  * @member {String} request_id
529
586
  */
530
587
  WebhookEventData.prototype['request_id'] = undefined;
@@ -536,12 +593,12 @@ WebhookEventData.prototype['request_id'] = undefined;
536
593
  WebhookEventData.prototype['wallet_id'] = undefined;
537
594
 
538
595
  /**
539
- * @member {module:model/MPCVaultType} type
596
+ * @member {module:model/TransactionType} type
540
597
  */
541
598
  WebhookEventData.prototype['type'] = undefined;
542
599
 
543
600
  /**
544
- * @member {module:model/SettleRequestStatus} status
601
+ * @member {module:model/TransactionStatus} status
545
602
  */
546
603
  WebhookEventData.prototype['status'] = undefined;
547
604
 
@@ -557,13 +614,13 @@ WebhookEventData.prototype['sub_status'] = undefined;
557
614
  WebhookEventData.prototype['failed_reason'] = undefined;
558
615
 
559
616
  /**
560
- * The ID of the blockchain network on which the refund transaction occurs.
617
+ * The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
561
618
  * @member {String} chain_id
562
619
  */
563
620
  WebhookEventData.prototype['chain_id'] = undefined;
564
621
 
565
622
  /**
566
- * The ID of the cryptocurrency used for refund.
623
+ * The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
567
624
  * @member {String} token_id
568
625
  */
569
626
  WebhookEventData.prototype['token_id'] = undefined;
@@ -575,7 +632,7 @@ WebhookEventData.prototype['token_id'] = undefined;
575
632
  WebhookEventData.prototype['asset_id'] = undefined;
576
633
 
577
634
  /**
578
- * @member {module:model/TokenListingRequestSource} source
635
+ * @member {module:model/TransactionSource} source
579
636
  */
580
637
  WebhookEventData.prototype['source'] = undefined;
581
638
 
@@ -595,7 +652,7 @@ WebhookEventData.prototype['result'] = undefined;
595
652
  WebhookEventData.prototype['fee'] = undefined;
596
653
 
597
654
  /**
598
- * The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
655
+ * The transaction initiator.
599
656
  * @member {String} initiator
600
657
  */
601
658
  WebhookEventData.prototype['initiator'] = undefined;
@@ -645,7 +702,7 @@ WebhookEventData.prototype['replacement'] = undefined;
645
702
  WebhookEventData.prototype['category'] = undefined;
646
703
 
647
704
  /**
648
- * The description of the TSS request.
705
+ * The description for your transaction.
649
706
  * @member {String} description
650
707
  */
651
708
  WebhookEventData.prototype['description'] = undefined;
@@ -674,13 +731,13 @@ WebhookEventData.prototype['extra'] = undefined;
674
731
  WebhookEventData.prototype['fueling_info'] = undefined;
675
732
 
676
733
  /**
677
- * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
734
+ * The time when the transaction was created, in Unix timestamp format, measured in milliseconds.
678
735
  * @member {Number} created_timestamp
679
736
  */
680
737
  WebhookEventData.prototype['created_timestamp'] = undefined;
681
738
 
682
739
  /**
683
- * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
740
+ * The time when the transaction was updated, in Unix timestamp format, measured in milliseconds.
684
741
  * @member {Number} updated_timestamp
685
742
  */
686
743
  WebhookEventData.prototype['updated_timestamp'] = undefined;
@@ -809,7 +866,7 @@ WebhookEventData.prototype['token_ids'] = undefined;
809
866
  WebhookEventData.prototype['operation_type'] = undefined;
810
867
 
811
868
  /**
812
- * The ID of the pay-in order corresponding to this refund.
869
+ * Unique identifier of a single order
813
870
  * @member {String} order_id
814
871
  */
815
872
  WebhookEventData.prototype['order_id'] = undefined;
@@ -942,5 +999,40 @@ WebhookEventData.prototype['settlement_request_id'] = undefined;
942
999
  * @member {Array.<module:model/SettlementDetail>} settlements
943
1000
  */
944
1001
  WebhookEventData.prototype['settlements'] = undefined;
945
- WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "MPCVaultEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
1002
+
1003
+ /**
1004
+ * @member {module:model/AcquiringType} acquiring_type
1005
+ */
1006
+ WebhookEventData.prototype['acquiring_type'] = undefined;
1007
+
1008
+ /**
1009
+ * Unique payer identifier on the Cobo side, auto-generated by the system.
1010
+ * @member {String} payer_id
1011
+ */
1012
+ WebhookEventData.prototype['payer_id'] = undefined;
1013
+
1014
+ /**
1015
+ * Unique user identifier on the merchant side, used to assign a dedicated deposit address.
1016
+ * @member {String} custom_payer_id
1017
+ */
1018
+ WebhookEventData.prototype['custom_payer_id'] = undefined;
1019
+
1020
+ /**
1021
+ * Blockchain network identifier, e.g., 'ETH' for Ethereum, 'TRON' for Tron.
1022
+ * @member {String} chain
1023
+ */
1024
+ WebhookEventData.prototype['chain'] = undefined;
1025
+
1026
+ /**
1027
+ * The previous deposit address that was assigned before update.
1028
+ * @member {String} previous_address
1029
+ */
1030
+ WebhookEventData.prototype['previous_address'] = undefined;
1031
+
1032
+ /**
1033
+ * The new updated deposit address assigned to the user.
1034
+ * @member {String} updated_address
1035
+ */
1036
+ WebhookEventData.prototype['updated_address'] = undefined;
1037
+ WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "MPCVaultEventData", "PaymentAddressUpdateEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "PaymentTransactionEventData", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
946
1038
  var _default = exports["default"] = WebhookEventData;
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>WebhookEventDataType</code>.
34
34
  * The data type of the event.
35
35
  * @alias module:model/WebhookEventDataType
36
- * @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
36
+ * @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
37
37
  */
38
38
  function WebhookEventDataType(data_type) {
39
39
  _classCallCheck(this, WebhookEventDataType);
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
104
104
  WebhookEventDataType.RequiredProperties = ["data_type"];
105
105
 
106
106
  /**
107
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
107
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The payment address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
108
108
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
109
109
  */
110
110
  WebhookEventDataType.prototype['data_type'] = undefined;
@@ -170,6 +170,16 @@ WebhookEventDataType['DataTypeEnum'] = {
170
170
  * @const
171
171
  */
172
172
  "PaymentSettlement": "PaymentSettlement",
173
+ /**
174
+ * value: "PaymentTransaction"
175
+ * @const
176
+ */
177
+ "PaymentTransaction": "PaymentTransaction",
178
+ /**
179
+ * value: "PaymentAddressUpdate"
180
+ * @const
181
+ */
182
+ "PaymentAddressUpdate": "PaymentAddressUpdate",
173
183
  /**
174
184
  * value: "BalanceUpdateInfo"
175
185
  * @const
@@ -190,6 +190,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
190
190
  * @const
191
191
  */
192
192
  _defineProperty(this, "payment.settlement.status.updated", "payment.settlement.status.updated");
193
+ /**
194
+ * value: "payment.address.updated"
195
+ * @const
196
+ */
197
+ _defineProperty(this, "payment.address.updated", "payment.address.updated");
193
198
  /**
194
199
  * value: "unknown_default_open_api"
195
200
  * @const
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;PaymentTransaction&#x60;: The payment transaction event data. - &#x60;PaymentAddressUpdate&#x60;: The payment address update event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
8
8
  **addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
9
9
 
10
10
 
@@ -34,6 +34,10 @@ Name | Type | Description | Notes
34
34
 
35
35
  * `PaymentSettlement` (value: `"PaymentSettlement"`)
36
36
 
37
+ * `PaymentTransaction` (value: `"PaymentTransaction"`)
38
+
39
+ * `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
40
+
37
41
  * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
38
42
 
39
43
  * `SuspendedToken` (value: `"SuspendedToken"`)
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;PaymentTransaction&#x60;: The payment transaction event data. - &#x60;PaymentAddressUpdate&#x60;: The payment address update event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
8
8
  **token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
9
9
  **address** | **String** | The wallet address. |
10
10
  **wallet_uuid** | **String** | The wallet ID. |
@@ -38,6 +38,10 @@ Name | Type | Description | Notes
38
38
 
39
39
  * `PaymentSettlement` (value: `"PaymentSettlement"`)
40
40
 
41
+ * `PaymentTransaction` (value: `"PaymentTransaction"`)
42
+
43
+ * `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
44
+
41
45
  * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
42
46
 
43
47
  * `SuspendedToken` (value: `"SuspendedToken"`)
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. - &#x60;Addresses&#x60;: The addresses event data. - &#x60;WalletInfo&#x60;: The wallet information event data. - &#x60;MPCVault&#x60;: The MPC vault event data. - &#x60;Chains&#x60;: The enabled chain event data. - &#x60;Tokens&#x60;: The enabled token event data. - &#x60;TokenListing&#x60;: The token listing event data. - &#x60;PaymentOrder&#x60;: The payment order event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. - &#x60;PaymentTransaction&#x60;: The payment transaction event data. - &#x60;PaymentAddressUpdate&#x60;: The payment address update event data. - &#x60;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;SuspendedToken&#x60;: The token suspension event data. |
8
8
  **chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
9
9
  **wallet_type** | [**WalletType**](WalletType.md) | | [optional]
10
10
  **wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | | [optional]
@@ -36,6 +36,10 @@ Name | Type | Description | Notes
36
36
 
37
37
  * `PaymentSettlement` (value: `"PaymentSettlement"`)
38
38
 
39
+ * `PaymentTransaction` (value: `"PaymentTransaction"`)
40
+
41
+ * `PaymentAddressUpdate` (value: `"PaymentAddressUpdate"`)
42
+
39
43
  * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
40
44
 
41
45
  * `SuspendedToken` (value: `"SuspendedToken"`)
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
8
8
  **address** | **String** | The destination address. |
9
9
  **value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is &#x60;1.5&#x60;. | [optional]
10
- **calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
10
+ **calldata** | **String** | The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters. |
11
11
  **instructions** | [**[SolContractCallInstruction]**](SolContractCallInstruction.md) | |
12
12
 
13
13
 
@@ -5,8 +5,8 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **merchant_id** | **String** | The merchant ID. |
8
- **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
9
- **currency** | **String** | The fiat currency of the order. Currently, only &#x60;USD&#x60; is supported. | [optional] [default to &#39;USD&#39;]
8
+ **token_id** | **String** | The ID of the cryptocurrency used for payment. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDCOIN&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC2&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
9
+ **currency** | **String** | The fiat currency of the order. Currently, only &#x60;USD&#x60; is supported. | [optional] [default to &#39;&#39;]
10
10
  **order_amount** | **String** | The base amount of the order in fiat currency, excluding the developer fee (specified in &#x60;fee_amount&#x60;). Values must be greater than &#x60;0&#x60; and contain two decimal places. |
11
11
  **fee_amount** | **String** | The developer fee for the order in fiat currency. It is added to the base amount (&#x60;order_amount&#x60;) to determine the final charge. For example, if order_amount is \&quot;100.00\&quot; and fee_amount is \&quot;2.00\&quot;, the customer will be charged \&quot;102.00\&quot; in total, with \&quot;100.00\&quot; being settled to the merchant and \&quot;2.00\&quot; settled to the developer. Values must be greater than 0 and contain two decimal places. |
12
12
  **merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters. | [optional]
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
8
8
  **merchant_id** | **String** | The merchant ID. | [optional]
9
9
  **payable_amount** | **String** | The amount to refund in cryptocurrency. The amount must be a positive integer with up to two decimal places. |
10
10
  **to_address** | **String** | The address where the refunded cryptocurrency will be sent. | [optional]
11
- **token_id** | **String** | The ID of the cryptocurrency used for refund. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
11
+ **token_id** | **String** | The ID of the cryptocurrency used for refund. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDCOIN&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC2&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
12
12
  **refund_type** | [**RefundType**](RefundType.md) | |
13
13
  **order_id** | **String** | The ID of the original pay-in order associated with this refund. Use this to track refunds against specific payments. | [optional]
14
14
  **charge_merchant_fee** | **Boolean** | Whether to charge developer fee to the merchant. - &#x60;true&#x60;: The fee amount (specified in &#x60;merchant_fee_amount&#x60;) will be deducted from the merchant&#39;s balance and added to the developer&#39;s balance - &#x60;false&#x60;: The merchant is not charged any developer fee When enabled, ensure both &#x60;merchant_fee_amount&#x60; and &#x60;merchant_fee_token_id&#x60; are properly specified. | [optional]
15
15
  **merchant_fee_amount** | **String** | The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by &#x60;merchant_fee_token_id&#x60;. Required when &#x60;charge_merchant_fee&#x60; is &#x60;true&#x60;. Must be: - A positive integer with up to two decimal places. - Less than the refund amount | [optional]
16
- **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. It must be the same as &#x60;token_id&#x60;. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
16
+ **merchant_fee_token_id** | **String** | The ID of the cryptocurrency used for the developer fee. It must be the same as &#x60;token_id&#x60;. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDCOIN&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC2&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
17
17
 
18
18
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **merchant_id** | **String** | The merchant ID. Specify this field when &#x60;settlement_type&#x60; is set to &#x60;Merchant&#x60;. | [optional]
8
- **token_id** | **String** | The ID of the cryptocurrency you want to settle. Specify this field when &#x60;payout_channel&#x60; is set to &#x60;Crypto&#x60;. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
8
+ **token_id** | **String** | The ID of the cryptocurrency you want to settle. Specify this field when &#x60;payout_channel&#x60; is set to &#x60;Crypto&#x60;. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDCOIN&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC2&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; | [optional]
9
9
  **currency** | **String** | The fiat currency for settling the cryptocurrency. Currently, only &#x60;USD&#x60; is supported. Specify this field when &#x60;payout_channel&#x60; is set to &#x60;OffRamp&#x60;. | [optional]
10
10
  **amount** | **String** | The settlement amount. When settling merchant balance from orders (&#x60;acquiring_type&#x60; is &#x60;Order&#x60; and &#x60;settlement_type&#x60; is &#x60;Merchant&#x60;), do not specify this field as the settlement amount will be automatically calculated based on the order amounts. - If &#x60;payout_channel&#x60; is set to &#x60;Crypto&#x60;, this represents the settlement amount in the specified cryptocurrency. - If &#x60;payout_channel&#x60; is set to &#x60;OffRamp&#x60;, this represents the settlement amount in the specified fiat currency. | [optional]
11
11
  **bank_account_id** | **String** | The ID of the bank account where the settled funds will be deposited. This field is only applicable when &#x60;payout_channel&#x60; is set to &#x60;OffRamp&#x60;. Call [List all bank accounts](/v2/api-references/payment/list-all-bank-accounts) to retrieve the IDs of registered bank accounts. | [optional]
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_type** | [**WalletSubtype**](WalletSubtype.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
- **address** | **String** | Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both &#x60;address&#x60; and &#x60;included_utxos&#x60; are optional. If both &#x60;address&#x60; and &#x60;included_utxos&#x60; are provided, the UTXOs must belong to the specified address. If neither &#x60;address&#x60; nor &#x60;included_utxos&#x60; is provided, the system will select UTXOs from the wallet associated with &#x60;wallet_id&#x60;. For RBF transactions, please note the following: - If the original transaction did not specify &#x60;included_utxos&#x60;, the RBF transaction may omit &#x60;address&#x60;, &#x60;included_utxos&#x60;, or both. - If the original transaction specified &#x60;included_utxos&#x60;, the RBF transaction must specify either &#x60;address&#x60; or &#x60;included_utxos&#x60;, or both. - The &#x60;address&#x60; or &#x60;included_utxos&#x60; in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide &#x60;address&#x60; otherwise the token transfer will fail. However, when estimating fees for a transfer, &#x60;address&#x60; is not required. | [optional]
9
+ **address** | **String** | Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both &#x60;address&#x60; and &#x60;included_utxos&#x60; are optional. If both &#x60;address&#x60; and &#x60;included_utxos&#x60; are provided, the UTXOs must belong to the specified address. If neither &#x60;address&#x60; nor &#x60;included_utxos&#x60; is provided, the system will select UTXOs from the wallet associated with &#x60;wallet_id&#x60;. - For account-based chains: You need to provide &#x60;address&#x60; otherwise the token transfer will fail. However, when estimating fees for a transfer, &#x60;address&#x60; is not required. For detailed rules on &#x60;address&#x60; and &#x60;included_utxos&#x60; in both regular and RBF transactions, see [Address and included_utxos usage](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations#address-and-included-utxos-usage). | [optional]
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
9
  **chain_id** | **String** | The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
10
10
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
11
- **destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
11
+ **destination** | [**ContractCallDestination**](ContractCallDestination.md) | | [optional]
12
12
  **fee_type** | [**FeeType**](FeeType.md) | | [optional]
13
13
  **replaced_transaction_id** | **String** | The ID of the transaction that this transaction replaced. | [optional]
14
14
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
9
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
10
10
  **token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
11
- **destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
11
+ **destination** | [**ContractCallDestination**](ContractCallDestination.md) | | [optional]
12
12
  **fee_type** | [**FeeType**](FeeType.md) | | [optional]
13
13
  **replaced_transaction_id** | **String** | The ID of the transaction that this transaction replaced. | [optional]
14
14
  **chain_id** | **String** | The chain ID of the chain on which the smart contract is issued. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
8
8
  **address** | **String** | The destination address. |
9
9
  **value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is &#x60;1.5&#x60;. | [optional]
10
- **calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
10
+ **calldata** | **String** | The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters. |
11
11
 
12
12
 
@@ -0,0 +1,16 @@
1
+ # CoboWaas2.ForcedSweep
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **forced_sweep_id** | **String** | The force sweep ID. |
8
+ **request_id** | **String** | The request ID provided by you when creating the force sweep request. |
9
+ **wallet_id** | **String** | The wallet ID to force sweep, which is the unique identifier of a wallet. | [optional]
10
+ **token_id** | **String** | The token ID to force sweep, which is the unique identifier of a token. | [optional]
11
+ **amount** | **String** | The amount of needing force sweep. | [optional]
12
+ **status** | [**ForcedSweepStatus**](ForcedSweepStatus.md) | |
13
+ **created_timestamp** | **Number** | The created time of the force sweep request, represented as a UNIX timestamp in seconds. | [optional]
14
+ **updated_timestamp** | **Number** | The updated time of the force sweep request, represented as a UNIX timestamp in seconds. | [optional]
15
+
16
+
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.ForcedSweepRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | The request id of the force sweep. |
8
+ **wallet_id** | **String** | The wallet ID to force sweep, which is the unique identifier of a wallet. |
9
+ **token_id** | **String** | The token ID to force sweep, which is the unique identifier of a token. |
10
+ **amount** | **String** | The amount of needing force sweep. |
11
+
12
+
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.ForcedSweepStatus
2
+
3
+ ## Enum
4
+
5
+
6
+ * `Pending` (value: `"Pending"`)
7
+
8
+ * `Processing` (value: `"Processing"`)
9
+
10
+ * `Completed` (value: `"Completed"`)
11
+
12
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
13
+
14
+
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListForcedSweepRequests200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[ForcedSweep]**](ForcedSweep.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CoboWaas2.ListTransactionApprovalDetails200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[TransactionApprovalDetail]**](TransactionApprovalDetail.md) | | [optional]
8
+
9
+