@cobo/cobo-waas2 1.16.0 → 1.18.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 (214) hide show
  1. package/README.md +46 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AppWorkflowsApi.js +22 -22
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/OAuthApi.js +93 -6
  7. package/dist/api/OrganizationsApi.js +79 -0
  8. package/dist/api/PaymentApi.js +265 -55
  9. package/dist/api/TransactionsApi.js +2 -2
  10. package/dist/api/WalletsApi.js +11 -8
  11. package/dist/index.js +252 -14
  12. package/dist/model/Account.js +174 -0
  13. package/dist/model/AcquiringType.js +61 -0
  14. package/dist/model/AddressTransferDestination.js +2 -2
  15. package/dist/model/AddressesEventData.js +8 -3
  16. package/dist/model/AppWorkflow.js +7 -7
  17. package/dist/model/AppWorkflowField.js +5 -5
  18. package/dist/model/AppWorkflowPolicy.js +1 -1
  19. package/dist/model/ApprovalEntry.js +1 -1
  20. package/dist/model/ApprovalRequest.js +5 -3
  21. package/dist/model/ApprovalRequestDetail.js +2 -1
  22. package/dist/model/ApprovalUser.js +4 -4
  23. package/dist/model/BalanceUpdateInfo.js +170 -0
  24. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  25. package/dist/model/BankAccount.js +2 -2
  26. package/dist/model/ChainInfo.js +1 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CreateApprovalRequest201Response.js +2 -1
  29. package/dist/model/CreateMerchantRequest.js +13 -0
  30. package/dist/model/CreatePaymentOrderRequest.js +14 -5
  31. package/dist/model/CreateRefundRequest.js +41 -8
  32. package/dist/model/CreateSettlement.js +28 -12
  33. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  34. package/dist/model/CryptoAddress.js +171 -0
  35. package/dist/model/CustodialTransferDestination.js +137 -0
  36. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  37. package/dist/model/EstimateFeeParams.js +1 -1
  38. package/dist/model/EstimatedFILFee.js +170 -0
  39. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  40. package/dist/model/EstimatedFee.js +68 -12
  41. package/dist/model/EstimatedSOLFee.js +170 -0
  42. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  43. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  44. package/dist/model/{CreateBankAccountRequest.js → ExchangePermissionTokenRequest.js} +30 -28
  45. package/dist/model/FILBase.js +88 -0
  46. package/dist/model/FILPrice.js +114 -0
  47. package/dist/model/FeeType.js +10 -0
  48. package/dist/model/GetExchangeRate200Response.js +2 -2
  49. package/dist/model/GraphQLError.js +135 -0
  50. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  51. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  52. package/dist/model/GraphQLResponse.js +119 -0
  53. package/dist/model/ListTopUpPayers200Response.js +123 -0
  54. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  55. package/dist/model/MPCVaultEventData.js +8 -3
  56. package/dist/model/Merchant.js +15 -2
  57. package/dist/model/Order.js +16 -7
  58. package/dist/model/PayerAccount.js +189 -0
  59. package/dist/model/PaymentOrderEventData.js +33 -15
  60. package/dist/model/PaymentRefundEventData.js +66 -11
  61. package/dist/model/PaymentSettlementEvent.js +14 -9
  62. package/dist/model/PayoutChannel.js +61 -0
  63. package/dist/model/PolicyAction.js +1 -1
  64. package/dist/model/PolicyActionContent.js +6 -4
  65. package/dist/model/PolicyCondition.js +5 -5
  66. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  67. package/dist/model/Refund.js +39 -4
  68. package/dist/model/RefundStatus.js +5 -0
  69. package/dist/model/RequestApproval.js +9 -9
  70. package/dist/model/RevokeApprovalRequest201Response.js +2 -1
  71. package/dist/model/RevokeApprovalRequestRequest.js +2 -2
  72. package/dist/model/SOLBase.js +101 -0
  73. package/dist/model/SOLComputeUnit.js +101 -0
  74. package/dist/model/Settlement.js +3 -3
  75. package/dist/model/SettlementDetail.js +24 -6
  76. package/dist/model/SettlementInfo.js +11 -2
  77. package/dist/model/SupportedToken.js +222 -0
  78. package/dist/model/SwapActivityDetail.js +30 -0
  79. package/dist/model/SwapActivitySigners.js +110 -0
  80. package/dist/model/SwapQuote.js +17 -4
  81. package/dist/model/SwapSingingStatus.js +71 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  83. package/dist/model/TokenListingEventData.js +8 -3
  84. package/dist/model/TokensEventData.js +8 -3
  85. package/dist/model/TopUpAddress.js +230 -0
  86. package/dist/model/TransactionCoboCategory.js +20 -0
  87. package/dist/model/TransactionDestination.js +14 -38
  88. package/dist/model/TransactionDestinationType.js +5 -0
  89. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  90. package/dist/model/TransactionFILFee.js +229 -0
  91. package/dist/model/TransactionFee.js +107 -9
  92. package/dist/model/TransactionRequestFILFee.js +186 -0
  93. package/dist/model/TransactionRequestFee.js +89 -9
  94. package/dist/model/TransactionRequestSOLFee.js +168 -0
  95. package/dist/model/TransactionSOLFee.js +229 -0
  96. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  97. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  98. package/dist/model/TransactionWebhookEventData.js +8 -3
  99. package/dist/model/TransferDestination.js +44 -16
  100. package/dist/model/TransferDestinationType.js +5 -0
  101. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  102. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  103. package/dist/model/UpdateTopUpAddress.js +141 -0
  104. package/dist/model/WalletInfoEventData.js +8 -3
  105. package/dist/model/WebhookEvent.js +2 -2
  106. package/dist/model/WebhookEventData.js +83 -13
  107. package/dist/model/WebhookEventDataType.js +7 -2
  108. package/dist/model/WebhookEventLog.js +2 -2
  109. package/dist/model/WebhookEventType.js +15 -0
  110. package/docs/Account.md +14 -0
  111. package/docs/AcquiringType.md +12 -0
  112. package/docs/AddressTransferDestination.md +2 -2
  113. package/docs/AddressesEventData.md +3 -1
  114. package/docs/AppWorkflow.md +3 -3
  115. package/docs/AppWorkflowField.md +2 -2
  116. package/docs/AppWorkflowsApi.md +12 -12
  117. package/docs/ApprovalRequest.md +2 -2
  118. package/docs/ApprovalRequestDetail.md +1 -1
  119. package/docs/ApprovalUser.md +2 -2
  120. package/docs/BalanceUpdateInfo.md +13 -0
  121. package/docs/BalanceUpdateInfoEventData.md +47 -0
  122. package/docs/BankAccount.md +2 -2
  123. package/docs/ChainInfo.md +1 -1
  124. package/docs/ChainsEventData.md +3 -1
  125. package/docs/CreateApprovalRequest201Response.md +1 -1
  126. package/docs/CreateMerchantRequest.md +1 -0
  127. package/docs/CreatePaymentOrderRequest.md +2 -1
  128. package/docs/CreateRefundRequest.md +5 -2
  129. package/docs/CreateSettlement.md +7 -6
  130. package/docs/CreateSettlementRequestRequest.md +3 -0
  131. package/docs/CryptoAddress.md +14 -0
  132. package/docs/CustodialTransferDestination.md +11 -0
  133. package/docs/EstimateContractCallFeeParams.md +1 -1
  134. package/docs/EstimateFeeParams.md +1 -1
  135. package/docs/EstimatedFILFee.md +13 -0
  136. package/docs/EstimatedFILFeeSlow.md +12 -0
  137. package/docs/EstimatedFee.md +3 -3
  138. package/docs/EstimatedSOLFee.md +13 -0
  139. package/docs/EstimatedSOLFeeSlow.md +12 -0
  140. package/docs/ExchangePermissionToken201Response.md +12 -0
  141. package/docs/ExchangePermissionTokenRequest.md +9 -0
  142. package/docs/FILBase.md +9 -0
  143. package/docs/FILPrice.md +11 -0
  144. package/docs/FeeStationApi.md +1 -1
  145. package/docs/FeeType.md +4 -0
  146. package/docs/GetExchangeRate200Response.md +1 -1
  147. package/docs/GraphQLError.md +11 -0
  148. package/docs/GraphQLErrorLocationsInner.md +10 -0
  149. package/docs/GraphQLRequest.md +11 -0
  150. package/docs/GraphQLResponse.md +10 -0
  151. package/docs/ListTopUpPayers200Response.md +10 -0
  152. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  153. package/docs/MPCVaultEventData.md +3 -1
  154. package/docs/Merchant.md +3 -2
  155. package/docs/OAuthApi.md +102 -0
  156. package/docs/Order.md +6 -5
  157. package/docs/OrganizationsApi.md +55 -0
  158. package/docs/PayerAccount.md +14 -0
  159. package/docs/PaymentApi.md +247 -29
  160. package/docs/PaymentOrderEventData.md +9 -6
  161. package/docs/PaymentRefundEventData.md +10 -5
  162. package/docs/PaymentSettlementEvent.md +6 -4
  163. package/docs/PayoutChannel.md +12 -0
  164. package/docs/PolicyActionContent.md +4 -4
  165. package/docs/PolicyCondition.md +2 -2
  166. package/docs/RefreshPermissionTokenRequest.md +9 -0
  167. package/docs/Refund.md +7 -4
  168. package/docs/RefundStatus.md +2 -0
  169. package/docs/RequestApproval.md +4 -4
  170. package/docs/RevokeApprovalRequest201Response.md +1 -1
  171. package/docs/RevokeApprovalRequestRequest.md +1 -1
  172. package/docs/SOLBase.md +10 -0
  173. package/docs/SOLComputeUnit.md +10 -0
  174. package/docs/Settlement.md +3 -3
  175. package/docs/SettlementDetail.md +8 -6
  176. package/docs/SettlementInfo.md +3 -2
  177. package/docs/SupportedToken.md +17 -0
  178. package/docs/SwapActivityDetail.md +1 -0
  179. package/docs/SwapActivitySigners.md +11 -0
  180. package/docs/SwapQuote.md +3 -2
  181. package/docs/SwapSingingStatus.md +16 -0
  182. package/docs/TSSRequestWebhookEventData.md +3 -1
  183. package/docs/TokenListingEventData.md +3 -1
  184. package/docs/TokensEventData.md +3 -1
  185. package/docs/TopUpAddress.md +18 -0
  186. package/docs/TransactionCoboCategory.md +8 -0
  187. package/docs/TransactionDestination.md +2 -2
  188. package/docs/TransactionDestinationType.md +2 -0
  189. package/docs/TransactionEvmCalldataInfo.md +1 -1
  190. package/docs/TransactionFILFee.md +16 -0
  191. package/docs/TransactionFee.md +8 -1
  192. package/docs/TransactionRequestFILFee.md +13 -0
  193. package/docs/TransactionRequestFee.md +5 -1
  194. package/docs/TransactionRequestSOLFee.md +12 -0
  195. package/docs/TransactionSOLFee.md +16 -0
  196. package/docs/TransactionTransferToAddressDestination.md +2 -2
  197. package/docs/TransactionTransferToWalletDestination.md +1 -1
  198. package/docs/TransactionWebhookEventData.md +3 -1
  199. package/docs/TransactionsApi.md +1 -1
  200. package/docs/TransferDestination.md +3 -3
  201. package/docs/TransferDestinationType.md +2 -0
  202. package/docs/UpdateMerchantByIdRequest.md +1 -0
  203. package/docs/UpdateRefundByIdRequest.md +9 -0
  204. package/docs/UpdateTopUpAddress.md +11 -0
  205. package/docs/WalletInfoEventData.md +3 -1
  206. package/docs/WalletsApi.md +6 -4
  207. package/docs/WebhookEvent.md +1 -1
  208. package/docs/WebhookEventData.md +14 -5
  209. package/docs/WebhookEventDataType.md +3 -1
  210. package/docs/WebhookEventLog.md +1 -1
  211. package/docs/WebhookEventType.md +6 -0
  212. package/package.json +1 -1
  213. package/docs/CreateBankAccountRequest.md +0 -9
  214. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AddressesEventData = _interopRequireDefault(require("./AddressesEventData"));
9
9
  var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./AddressesEventDataAllOfAddresses"));
10
+ var _Balance = _interopRequireDefault(require("./Balance"));
11
+ var _BalanceUpdateInfoEventData = _interopRequireDefault(require("./BalanceUpdateInfoEventData"));
10
12
  var _ChainInfo = _interopRequireDefault(require("./ChainInfo"));
11
13
  var _ChainsEventData = _interopRequireDefault(require("./ChainsEventData"));
12
14
  var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
@@ -18,6 +20,7 @@ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction")
18
20
  var _RefundType = _interopRequireDefault(require("./RefundType"));
19
21
  var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
20
22
  var _SettleRequestStatus = _interopRequireDefault(require("./SettleRequestStatus"));
23
+ var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
21
24
  var _SettlementDetail = _interopRequireDefault(require("./SettlementDetail"));
22
25
  var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
23
26
  var _TSSRequestWebhookEventData = _interopRequireDefault(require("./TSSRequestWebhookEventData"));
@@ -65,7 +68,7 @@ var WebhookEventData = /*#__PURE__*/function () {
65
68
  /**
66
69
  * Constructs a new <code>WebhookEventData</code>.
67
70
  * @alias module:model/WebhookEventData
68
- * @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
71
+ * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
69
72
  */
70
73
  function WebhookEventData() {
71
74
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -90,6 +93,10 @@ var WebhookEventData = /*#__PURE__*/function () {
90
93
  this.actualInstance = _AddressesEventData["default"].constructFromObject(instance);
91
94
  match++;
92
95
  break;
96
+ case "BalanceUpdateInfo":
97
+ this.actualInstance = _BalanceUpdateInfoEventData["default"].constructFromObject(instance);
98
+ match++;
99
+ break;
93
100
  case "Chains":
94
101
  this.actualInstance = _ChainsEventData["default"].constructFromObject(instance);
95
102
  match++;
@@ -320,6 +327,29 @@ var WebhookEventData = /*#__PURE__*/function () {
320
327
  // json data failed to deserialize into TokenListingEventData
321
328
  errorMessages.push("Failed to construct TokenListingEventData: " + err);
322
329
  }
330
+ try {
331
+ if (instance instanceof _BalanceUpdateInfoEventData["default"]) {
332
+ this.actualInstance = instance;
333
+ } else if (!!_BalanceUpdateInfoEventData["default"].validateJSON && _BalanceUpdateInfoEventData["default"].validateJSON(instance)) {
334
+ // plain JS object
335
+ // create BalanceUpdateInfoEventData from JS object
336
+ this.actualInstance = _BalanceUpdateInfoEventData["default"].constructFromObject(instance);
337
+ } else {
338
+ if (_BalanceUpdateInfoEventData["default"].constructFromObject(instance)) {
339
+ if (!!_BalanceUpdateInfoEventData["default"].constructFromObject(instance).toJSON) {
340
+ if (_BalanceUpdateInfoEventData["default"].constructFromObject(instance).toJSON()) {
341
+ this.actualInstance = _BalanceUpdateInfoEventData["default"].constructFromObject(instance);
342
+ }
343
+ } else {
344
+ this.actualInstance = _BalanceUpdateInfoEventData["default"].constructFromObject(instance);
345
+ }
346
+ }
347
+ }
348
+ match++;
349
+ } catch (err) {
350
+ // json data failed to deserialize into BalanceUpdateInfoEventData
351
+ errorMessages.push("Failed to construct BalanceUpdateInfoEventData: " + err);
352
+ }
323
353
  try {
324
354
  if (instance instanceof _PaymentOrderEventData["default"]) {
325
355
  this.actualInstance = instance;
@@ -391,11 +421,11 @@ var WebhookEventData = /*#__PURE__*/function () {
391
421
  }
392
422
 
393
423
  // if (match > 1) {
394
- // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
424
+ // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
395
425
  // } else
396
426
  if (match === 0) {
397
427
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
398
- // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
428
+ // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, MPCVaultEventData, PaymentOrderEventData, PaymentRefundEventData, PaymentSettlementEvent, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
399
429
  // errorMessages.join(", "));
400
430
  return;
401
431
  } else {// only 1 match
@@ -414,16 +444,16 @@ var WebhookEventData = /*#__PURE__*/function () {
414
444
  key: "getActualInstance",
415
445
  value:
416
446
  /**
417
- * Gets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
418
- * @return {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
447
+ * 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>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
448
+ * @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
419
449
  */
420
450
  function getActualInstance() {
421
451
  return this.actualInstance;
422
452
  }
423
453
 
424
454
  /**
425
- * Sets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentOrderEventData</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
426
- * @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
455
+ * 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>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
456
+ * @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/PaymentOrderEventData|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
427
457
  */
428
458
  }, {
429
459
  key: "setActualInstance",
@@ -438,7 +468,7 @@ var WebhookEventData = /*#__PURE__*/function () {
438
468
  }]);
439
469
  }();
440
470
  /**
441
- * 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.
471
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
442
472
  * @member {module:model/WebhookEventData.DataTypeEnum} data_type
443
473
  */
444
474
  _WebhookEventData = WebhookEventData;
@@ -536,7 +566,7 @@ WebhookEventData.prototype['result'] = undefined;
536
566
  WebhookEventData.prototype['fee'] = undefined;
537
567
 
538
568
  /**
539
- * The initiator of this settlement request, usually the user's API key.
569
+ * 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.
540
570
  * @member {String} initiator
541
571
  */
542
572
  WebhookEventData.prototype['initiator'] = undefined;
@@ -615,13 +645,13 @@ WebhookEventData.prototype['extra'] = undefined;
615
645
  WebhookEventData.prototype['fueling_info'] = undefined;
616
646
 
617
647
  /**
618
- * The created time of the settlement request, represented as a UNIX timestamp in seconds.
648
+ * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
619
649
  * @member {Number} created_timestamp
620
650
  */
621
651
  WebhookEventData.prototype['created_timestamp'] = undefined;
622
652
 
623
653
  /**
624
- * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
654
+ * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
625
655
  * @member {Number} updated_timestamp
626
656
  */
627
657
  WebhookEventData.prototype['updated_timestamp'] = undefined;
@@ -722,7 +752,24 @@ WebhookEventData.prototype['token'] = undefined;
722
752
  WebhookEventData.prototype['feedback'] = undefined;
723
753
 
724
754
  /**
725
- * The order ID corresponding to this refund.
755
+ * The wallet address.
756
+ * @member {String} address
757
+ */
758
+ WebhookEventData.prototype['address'] = undefined;
759
+
760
+ /**
761
+ * The wallet ID.
762
+ * @member {String} wallet_uuid
763
+ */
764
+ WebhookEventData.prototype['wallet_uuid'] = undefined;
765
+
766
+ /**
767
+ * @member {module:model/Balance} balance
768
+ */
769
+ WebhookEventData.prototype['balance'] = undefined;
770
+
771
+ /**
772
+ * The ID of the pay-in order corresponding to this refund.
726
773
  * @member {String} order_id
727
774
  */
728
775
  WebhookEventData.prototype['order_id'] = undefined;
@@ -799,6 +846,11 @@ WebhookEventData.prototype['received_token_amount'] = undefined;
799
846
  */
800
847
  WebhookEventData.prototype['transactions'] = undefined;
801
848
 
849
+ /**
850
+ * @member {module:model/SettleStatus} settlement_status
851
+ */
852
+ WebhookEventData.prototype['settlement_status'] = undefined;
853
+
802
854
  /**
803
855
  * The refund order ID.
804
856
  * @member {String} refund_id
@@ -822,6 +874,24 @@ WebhookEventData.prototype['to_address'] = undefined;
822
874
  */
823
875
  WebhookEventData.prototype['refund_type'] = undefined;
824
876
 
877
+ /**
878
+ * Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee.
879
+ * @member {Boolean} charge_merchant_fee
880
+ */
881
+ WebhookEventData.prototype['charge_merchant_fee'] = undefined;
882
+
883
+ /**
884
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`.
885
+ * @member {String} merchant_fee_amount
886
+ */
887
+ WebhookEventData.prototype['merchant_fee_amount'] = undefined;
888
+
889
+ /**
890
+ * The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
891
+ * @member {String} merchant_fee_token_id
892
+ */
893
+ WebhookEventData.prototype['merchant_fee_token_id'] = undefined;
894
+
825
895
  /**
826
896
  * The settlement request ID generated by Cobo.
827
897
  * @member {String} settlement_request_id
@@ -832,5 +902,5 @@ WebhookEventData.prototype['settlement_request_id'] = undefined;
832
902
  * @member {Array.<module:model/SettlementDetail>} settlements
833
903
  */
834
904
  WebhookEventData.prototype['settlements'] = undefined;
835
- WebhookEventData.OneOf = ["AddressesEventData", "ChainsEventData", "MPCVaultEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
905
+ WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "MPCVaultEventData", "PaymentOrderEventData", "PaymentRefundEventData", "PaymentSettlementEvent", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
836
906
  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.
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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement 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.
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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
108
108
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
109
109
  */
110
110
  WebhookEventDataType.prototype['data_type'] = undefined;
@@ -155,6 +155,11 @@ WebhookEventDataType['DataTypeEnum'] = {
155
155
  * @const
156
156
  */
157
157
  "TokenListing": "TokenListing",
158
+ /**
159
+ * value: "BalanceUpdateInfo"
160
+ * @const
161
+ */
162
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
158
163
  /**
159
164
  * value: "PaymentOrder"
160
165
  * @const
@@ -35,7 +35,7 @@ var WebhookEventLog = /*#__PURE__*/function () {
35
35
  * The webhook event log.
36
36
  * @alias module:model/WebhookEventLog
37
37
  * @param id {String} The event log ID.
38
- * @param created_timestamp {Number} The time when the log was created, in Unix timestamp format, measured in milliseconds.
38
+ * @param created_timestamp {Number} The time when the event type was triggered, in Unix timestamp format (milliseconds). - The value remains unchanged across retries. - The default webhook timeout is 2 seconds.
39
39
  * @param request_headers {Object} The request headers of the webhook event.
40
40
  * @param request_body {module:model/WebhookEvent}
41
41
  * @param success {Boolean} Whether the webhook event has been successfully delivered.
@@ -158,7 +158,7 @@ WebhookEventLog.RequiredProperties = ["id", "created_timestamp", "request_header
158
158
  WebhookEventLog.prototype['id'] = undefined;
159
159
 
160
160
  /**
161
- * The time when the log was created, in Unix timestamp format, measured in milliseconds.
161
+ * The time when the event type was triggered, in Unix timestamp format (milliseconds). - The value remains unchanged across retries. - The default webhook timeout is 2 seconds.
162
162
  * @member {Number} created_timestamp
163
163
  */
164
164
  WebhookEventLog.prototype['created_timestamp'] = undefined;
@@ -125,6 +125,16 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
125
125
  * @const
126
126
  */
127
127
  _defineProperty(this, "wallet.chain.enabled", "wallet.chain.enabled");
128
+ /**
129
+ * value: "wallet.mpc.balance.updated"
130
+ * @const
131
+ */
132
+ _defineProperty(this, "wallet.mpc.balance.updated", "wallet.mpc.balance.updated");
133
+ /**
134
+ * value: "wallet.web3.balance.updated"
135
+ * @const
136
+ */
137
+ _defineProperty(this, "wallet.web3.balance.updated", "wallet.web3.balance.updated");
128
138
  /**
129
139
  * value: "payment.transaction.created"
130
140
  * @const
@@ -135,6 +145,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
135
145
  * @const
136
146
  */
137
147
  _defineProperty(this, "payment.transaction.late", "payment.transaction.late");
148
+ /**
149
+ * value: "payment.transaction.completed"
150
+ * @const
151
+ */
152
+ _defineProperty(this, "payment.transaction.completed", "payment.transaction.completed");
138
153
  /**
139
154
  * value: "payment.transaction.held"
140
155
  * @const
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.Account
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **token_id** | **String** | The ID of the cryptocurrency that this account is configured to handle. |
8
+ **address** | **String** | The top-up address corresponding to the account. |
9
+ **merchant_balance** | **String** | The amount of merchant funds under this account. |
10
+ **psp_balance** | **String** | The amount of developer funds under this account. |
11
+ **created_timestamp** | **Number** | The creation time of the account, in Unix timestamp format, measured in milliseconds. | [optional]
12
+ **updated_timestamp** | **Number** | The last update time of the account, in Unix timestamp format, measured in milliseconds. | [optional]
13
+
14
+
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.AcquiringType
2
+
3
+ ## Enum
4
+
5
+
6
+ * `Order` (value: `"Order"`)
7
+
8
+ * `TopUp` (value: `"TopUp"`)
9
+
10
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
11
+
12
+
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
9
9
  **utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
10
10
  **change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
11
11
  **change_output_type** | **String** | The position of the change output in the transaction&#39;s outputs. Possible values are: - &#x60;Last&#x60;: The change output is placed at the end of the transaction&#39;s outputs. - &#x60;First&#x60;: The change output is placed at the beginning of the transaction&#39;s outputs. | [optional]
12
- **force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. | [optional]
13
- **force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must not be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. | [optional]
12
+ **force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. If both are set to &#x60;false&#x60;, the system uses Cobo Loop by default if possible; otherwise, it proceeds with an on-chain transfer. | [optional]
13
+ **force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must not be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. If both are set to &#x60;false&#x60;, the system uses Cobo Loop by default if possible; otherwise, it proceeds with an on-chain transfer. | [optional]
14
14
 
15
15
 
16
16
 
@@ -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. |
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;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
8
8
  **addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
9
9
 
10
10
 
@@ -28,6 +28,8 @@ Name | Type | Description | Notes
28
28
 
29
29
  * `TokenListing` (value: `"TokenListing"`)
30
30
 
31
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
32
+
31
33
  * `PaymentOrder` (value: `"PaymentOrder"`)
32
34
 
33
35
  * `PaymentRefund` (value: `"PaymentRefund"`)
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **workflow_id** | **String** | The workflow id. |
8
- **operation_id** | **String** | The workflow operation id. |
9
- **operation_name** | **String** | The workflow operation name. |
7
+ **workflow_id** | **String** | The unique ID distinguishing the approval workflow instance among organizations. |
8
+ **operation_id** | **String** | The unique ID of the approval workflow. |
9
+ **operation_name** | **String** | The name of the approval workflow. |
10
10
  **current_policies** | [**[AppWorkflowPolicy]**](AppWorkflowPolicy.md) | |
11
11
 
12
12
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **field** | **String** | The app workflow field name. |
7
+ **field** | **String** | The workflow field name. |
8
8
  **value_type** | [**PolicyFieldValueType**](PolicyFieldValueType.md) | |
9
- **value** | **String** | The app workflow field value. |
9
+ **value** | **String** | The workflow field value. |
10
10
 
11
11
 
@@ -6,7 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**createApprovalRequest**](AppWorkflowsApi.md#createApprovalRequest) | **POST** /app/workflows/approval_requests | Request workflow approval
8
8
  [**getApprovalRequestById**](AppWorkflowsApi.md#getApprovalRequestById) | **GET** /app/workflows/approval_requests/{approval_id} | Get approval request details
9
- [**listAppWorkflows**](AppWorkflowsApi.md#listAppWorkflows) | **GET** /app/workflows | list app workflows
9
+ [**listAppWorkflows**](AppWorkflowsApi.md#listAppWorkflows) | **GET** /app/workflows | List app workflows
10
10
  [**listApprovalRequests**](AppWorkflowsApi.md#listApprovalRequests) | **GET** /app/workflows/approval_requests | List approval requests
11
11
  [**revokeApprovalRequest**](AppWorkflowsApi.md#revokeApprovalRequest) | **POST** /app/workflows/approval_requests/{approval_id}/revoke | Revoke approval request
12
12
 
@@ -18,7 +18,7 @@ Method | HTTP request | Description
18
18
 
19
19
  Request workflow approval
20
20
 
21
- This operation is request approval from app workflow with idempotency checks.
21
+ This operation triggers a specified workflow and generates a new approval request. &lt;Note&gt;To use the approval workflow operations, you must use the Cobo OAuth authentication method ([Org Access Token](https://www.cobo.com/developers/v2/apps/org-access-tokens)).&lt;/Note&gt;
22
22
 
23
23
  ### Example
24
24
 
@@ -48,7 +48,7 @@ apiInstance.createApprovalRequest(opts).then((data) => {
48
48
 
49
49
  Name | Type | Description | Notes
50
50
  ------------- | ------------- | ------------- | -------------
51
- **RequestApproval** | [**RequestApproval**](RequestApproval.md)| The request body to app workflow approval. | [optional]
51
+ **RequestApproval** | [**RequestApproval**](RequestApproval.md)| The request body to request workflow approval. | [optional]
52
52
 
53
53
  ### Return type
54
54
 
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
70
70
 
71
71
  Get approval request details
72
72
 
73
- This operation is retrieves approval request from app workflow.
73
+ This operation retrieves the details of a specific approval request. &lt;Note&gt;To use the approval workflow operations, you must use the Cobo OAuth authentication method ([Org Access Token](https://www.cobo.com/developers/v2/apps/org-access-tokens)).&lt;/Note&gt;
74
74
 
75
75
  ### Example
76
76
 
@@ -98,7 +98,7 @@ apiInstance.getApprovalRequestById(approval_id).then((data) => {
98
98
 
99
99
  Name | Type | Description | Notes
100
100
  ------------- | ------------- | ------------- | -------------
101
- **approval_id** | **String**| The approval ID that is used to track a workflow approval request. |
101
+ **approval_id** | **String**| The system-generated unique ID of the approval request. |
102
102
 
103
103
  ### Return type
104
104
 
@@ -118,9 +118,9 @@ Name | Type | Description | Notes
118
118
 
119
119
  > [AppWorkflow] listAppWorkflows()
120
120
 
121
- list app workflows
121
+ List app workflows
122
122
 
123
- This operation is list app workflows of app.
123
+ This operation retrieves all approval workflows of an Cobo Portal App. &lt;Note&gt;You need to [configure approval workflow](https://www.cobo.com/developers/v2/apps/configure-workflow) in the app Manifest file first.&lt;/Note&gt; &lt;Note&gt;To use the approval workflow operations, you must use the Cobo OAuth authentication method ([Org Access Token](https://www.cobo.com/developers/v2/apps/org-access-tokens)).&lt;/Note&gt;
124
124
 
125
125
  ### Example
126
126
 
@@ -166,7 +166,7 @@ This endpoint does not need any parameter.
166
166
 
167
167
  List approval requests
168
168
 
169
- This operation is retrieves list approval requests from app workflow.
169
+ This operation retrieves a list of approval requests. &lt;Note&gt;To use the approval workflow operations, you must use the Cobo OAuth authentication method ([Org Access Token](https://www.cobo.com/developers/v2/apps/org-access-tokens)).&lt;/Note&gt;
170
170
 
171
171
  ### Example
172
172
 
@@ -199,7 +199,7 @@ apiInstance.listApprovalRequests(operation_id, opts).then((data) => {
199
199
 
200
200
  Name | Type | Description | Notes
201
201
  ------------- | ------------- | ------------- | -------------
202
- **operation_id** | **String**| The operation ID that is used to track a workflow. The operation ID is provided by you and must be unique within your app. |
202
+ **operation_id** | **String**| The unique ID of the approval workflow. |
203
203
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
204
204
  **before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
205
205
  **after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
@@ -224,7 +224,7 @@ Name | Type | Description | Notes
224
224
 
225
225
  Revoke approval request
226
226
 
227
- This operation is revoke approval request from app workflow.
227
+ This operation revokes a pending approval request. &lt;Note&gt;To use the approval workflow operations, you must use the Cobo OAuth authentication method ([Org Access Token](https://www.cobo.com/developers/v2/apps/org-access-tokens)).&lt;/Note&gt;
228
228
 
229
229
  ### Example
230
230
 
@@ -255,8 +255,8 @@ apiInstance.revokeApprovalRequest(approval_id, opts).then((data) => {
255
255
 
256
256
  Name | Type | Description | Notes
257
257
  ------------- | ------------- | ------------- | -------------
258
- **approval_id** | **String**| The approval ID that is used to track a workflow approval request. |
259
- **RevokeApprovalRequestRequest** | [**RevokeApprovalRequestRequest**](RevokeApprovalRequestRequest.md)| The revoke request body to app workflow approval. | [optional]
258
+ **approval_id** | **String**| The system-generated unique ID of the approval request. |
259
+ **RevokeApprovalRequestRequest** | [**RevokeApprovalRequestRequest**](RevokeApprovalRequestRequest.md)| The request body to revoke an approval request. | [optional]
260
260
 
261
261
  ### Return type
262
262
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **approval_id** | **String** | |
8
- **request_id** | **String** | |
7
+ **approval_id** | **String** | The system-generated unique ID of the approval request. |
8
+ **request_id** | **String** | An identifier provided by you when requesting the approval. |
9
9
  **fields** | [**[AppWorkflowField]**](AppWorkflowField.md) | |
10
10
  **status** | [**ApprovalStatus**](ApprovalStatus.md) | |
11
11
  **initiated_timestamp** | **Number** | The time when the approval was initiated, in Unix timestamp format, measured in milliseconds. |
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **approval_id** | **String** | | [optional]
7
+ **approval_id** | **String** | The system-generated unique ID of the approval request. | [optional]
8
8
  **initiator** | [**ApprovalUser**](ApprovalUser.md) | |
9
9
  **approved_list** | [**[ApprovalEntry]**](ApprovalEntry.md) | | [optional]
10
10
  **status** | [**ApprovalStatus**](ApprovalStatus.md) | |
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **email** | **String** | The approval user email. |
8
- **name** | **String** | The approval user name. | [optional]
7
+ **email** | **String** | The user email. |
8
+ **name** | **String** | The user name. | [optional]
9
9
  **status** | [**ApprovalStatus**](ApprovalStatus.md) | |
10
10
  **created_timestamp** | **Number** | The time when the approval was created, in Unix timestamp format, measured in milliseconds. |
11
11
 
@@ -0,0 +1,13 @@
1
+ # CoboWaas2.BalanceUpdateInfo
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **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). |
8
+ **address** | **String** | The wallet address. |
9
+ **wallet_uuid** | **String** | The wallet ID. |
10
+ **updated_timestamp** | **Number** | The time when the balance updated, in Unix timestamp format, measured in milliseconds. |
11
+ **balance** | [**Balance**](Balance.md) | |
12
+
13
+
@@ -0,0 +1,47 @@
1
+ # CoboWaas2.BalanceUpdateInfoEventData
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
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;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement event data. |
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
+ **address** | **String** | The wallet address. |
10
+ **wallet_uuid** | **String** | The wallet ID. |
11
+ **updated_timestamp** | **Number** | The time when the balance updated, in Unix timestamp format, measured in milliseconds. |
12
+ **balance** | [**Balance**](Balance.md) | |
13
+
14
+
15
+
16
+ ## Enum: DataTypeEnum
17
+
18
+
19
+ * `Transaction` (value: `"Transaction"`)
20
+
21
+ * `TSSRequest` (value: `"TSSRequest"`)
22
+
23
+ * `Addresses` (value: `"Addresses"`)
24
+
25
+ * `WalletInfo` (value: `"WalletInfo"`)
26
+
27
+ * `MPCVault` (value: `"MPCVault"`)
28
+
29
+ * `Chains` (value: `"Chains"`)
30
+
31
+ * `Tokens` (value: `"Tokens"`)
32
+
33
+ * `TokenListing` (value: `"TokenListing"`)
34
+
35
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
36
+
37
+ * `PaymentOrder` (value: `"PaymentOrder"`)
38
+
39
+ * `PaymentRefund` (value: `"PaymentRefund"`)
40
+
41
+ * `PaymentSettlement` (value: `"PaymentSettlement"`)
42
+
43
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
44
+
45
+
46
+
47
+
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **bank_account_id** | **String** | The bank account ID. |
8
8
  **info** | **{String: Object}** | JSON-formatted bank account details. |
9
- **created_timestamp** | **Number** | The created time of the bank account, represented as a UNIX timestamp in seconds. | [optional]
10
- **updated_timestamp** | **Number** | The updated time of the bank account, represented as a UNIX timestamp in seconds. | [optional]
9
+ **created_timestamp** | **Number** | The creation time of the bank account, represented as a UNIX timestamp in seconds. | [optional]
10
+ **updated_timestamp** | **Number** | The last update time of the bank account, represented as a UNIX timestamp in seconds. | [optional]
11
11
 
12
12
 
package/docs/ChainInfo.md CHANGED
@@ -11,6 +11,6 @@ Name | Type | Description | Notes
11
11
  **explorer_address_url** | **String** | The address URL pattern on the blockchain explorer. You can use it to concatenate the address URLs. | [optional]
12
12
  **require_memo** | **Boolean** | Whether the chain requires a memo. | [optional]
13
13
  **confirming_threshold** | **Number** | The number of confirmations required for an on-chain transaction, such as 64 for Ethereum. | [optional]
14
- **coinbase_maturity** | **Number** | The number of confirmations required for a coinbase transaction to be mature, such as 100 for BTC. | [optional]
14
+ **coinbase_maturity** | **Number** | The number of confirmations required before a coinbase transaction is considered mature and can be spent, for example, 100 confirmations for BTC. | [optional]
15
15
 
16
16
 
@@ -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. |
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;BalanceUpdateInfo&#x60;: The balance update event data. - &#x60;PaymentRefund&#x60;: The payment refund event data. - &#x60;PaymentSettlement&#x60;: The payment settlement 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]
@@ -30,6 +30,8 @@ Name | Type | Description | Notes
30
30
 
31
31
  * `TokenListing` (value: `"TokenListing"`)
32
32
 
33
+ * `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
34
+
33
35
  * `PaymentOrder` (value: `"PaymentOrder"`)
34
36
 
35
37
  * `PaymentRefund` (value: `"PaymentRefund"`)
@@ -4,6 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **approval_id** | **String** | |
7
+ **approval_id** | **String** | The system-generated unique ID of the approval request. You can use this ID to query the approval request status or revoke the request. |
8
8
 
9
9