@cobo/cobo-waas2 1.21.0 → 1.23.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 (270) hide show
  1. package/README.md +80 -5
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +2 -4
  4. package/dist/api/AddressBooksApi.js +200 -21
  5. package/dist/api/AutoSweepApi.js +289 -0
  6. package/dist/api/ComplianceApi.js +214 -0
  7. package/dist/api/PaymentApi.js +233 -20
  8. package/dist/api/TokenizationApi.js +1024 -0
  9. package/dist/api/TransactionsApi.js +105 -4
  10. package/dist/api/WalletsApi.js +4 -4
  11. package/dist/api/WalletsMPCWalletsApi.js +2 -2
  12. package/dist/index.js +259 -7
  13. package/dist/model/AddressBook.js +12 -12
  14. package/dist/model/AddressesEventData.js +8 -3
  15. package/dist/model/ApprovalDetail.js +11 -11
  16. package/dist/model/ApprovalResult.js +6 -11
  17. package/dist/model/ApprovalTemplate.js +4 -4
  18. package/dist/model/ApprovalTransactionResult.js +8 -8
  19. package/dist/model/ApprovalUserDetail.js +95 -24
  20. package/dist/model/AutoSweepTask.js +198 -0
  21. package/dist/model/AutoSweepTaskStatus.js +61 -0
  22. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  23. package/dist/model/ChainInfo.js +14 -1
  24. package/dist/model/ChainsEventData.js +8 -3
  25. package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
  26. package/dist/model/CreateAddressBookParam.js +165 -0
  27. package/dist/model/CreateAddressBooks201Response.js +107 -0
  28. package/dist/model/CreateAddressBooksParam.js +128 -0
  29. package/dist/model/CreateAutoSweepTask.js +126 -0
  30. package/dist/model/CreateCryptoAddressRequest.js +5 -5
  31. package/dist/model/CreateCustodialWalletParams.js +9 -0
  32. package/dist/model/CreateExchangeWalletParams.js +14 -0
  33. package/dist/model/CreateMerchantRequest.js +1 -1
  34. package/dist/model/CreateMpcWalletParams.js +14 -0
  35. package/dist/model/CreatePaymentOrderRequest.js +3 -3
  36. package/dist/model/CreateRefundRequest.js +2 -2
  37. package/dist/model/CreateSafeWalletParams.js +9 -0
  38. package/dist/model/CreateSettlement.js +28 -5
  39. package/dist/model/CreateSmartContractWalletParams.js +6 -0
  40. package/dist/model/CreateSweepToAddress.js +126 -0
  41. package/dist/model/CreateWalletParams.js +6 -0
  42. package/dist/model/CreatedWalletInfo.js +6 -0
  43. package/dist/model/CustodialWalletInfo.js +9 -0
  44. package/dist/model/DeleteAddressBookById201Response.js +106 -0
  45. package/dist/model/DeleteCryptoAddress201Response.js +2 -2
  46. package/dist/model/DispositionEventData.js +170 -0
  47. package/dist/model/DispositionQueryResponse.js +146 -0
  48. package/dist/model/DispositionResponse.js +122 -0
  49. package/dist/model/DispositionStatus.js +116 -0
  50. package/dist/model/DispositionType.js +66 -0
  51. package/dist/model/ExchangeWalletInfo.js +14 -0
  52. package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
  53. package/dist/model/IsolateDisposition.js +167 -0
  54. package/dist/model/ListAutoSweepTask200Response.js +123 -0
  55. package/dist/model/ListMerchantBalances200Response.js +107 -0
  56. package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
  57. package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
  58. package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
  59. package/dist/model/MPCVaultEventData.js +8 -3
  60. package/dist/model/MPCWalletInfo.js +14 -0
  61. package/dist/model/Merchant.js +1 -1
  62. package/dist/model/MerchantBalance.js +201 -0
  63. package/dist/model/OrgInfo.js +9 -0
  64. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  65. package/dist/model/PaymentOrderEventData.js +8 -3
  66. package/dist/model/PaymentRefundEventData.js +8 -3
  67. package/dist/model/PaymentSettlementEvent.js +8 -3
  68. package/dist/model/PaymentTransactionEventData.js +8 -3
  69. package/dist/model/PaymentWalletBalance.js +177 -0
  70. package/dist/model/PspBalance.js +175 -0
  71. package/dist/model/ReceivedAmountPerAddress.js +126 -0
  72. package/dist/model/RefundDisposition.js +167 -0
  73. package/dist/model/RoleDetail.js +41 -6
  74. package/dist/model/SafeWallet.js +9 -0
  75. package/dist/model/SettlementDetail.js +1 -1
  76. package/dist/model/SmartContractWalletInfo.js +6 -0
  77. package/dist/model/SuspendedTokenEventData.js +8 -3
  78. package/dist/model/SweepToAddress.js +135 -0
  79. package/dist/model/SweepToAddressStatus.js +61 -0
  80. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  81. package/dist/model/TokenListingEventData.js +8 -3
  82. package/dist/model/TokenizationActivityInfo.js +8 -4
  83. package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
  84. package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
  85. package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
  86. package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
  87. package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
  88. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
  89. package/dist/model/TokenizationBurnTokenRequest.js +13 -0
  90. package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
  91. package/dist/model/TokenizationContractCallParamsData.js +43 -9
  92. package/dist/model/TokenizationContractCallRequest.js +13 -0
  93. package/dist/model/TokenizationContractCallType.js +5 -0
  94. package/dist/model/TokenizationERC20TokenParams.js +4 -4
  95. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
  96. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  97. package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
  98. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
  99. package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
  100. package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
  101. package/dist/model/TokenizationMintTokenRequest.js +13 -0
  102. package/dist/model/TokenizationMpcOperationSource.js +2 -2
  103. package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
  104. package/dist/model/TokenizationPauseTokenRequest.js +13 -0
  105. package/dist/model/TokenizationSOLTokenParams.js +173 -0
  106. package/dist/model/TokenizationSolContractCallParams.js +137 -0
  107. package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
  108. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
  109. package/dist/model/TokenizationTokenDetailInfo.js +6 -6
  110. package/dist/model/TokenizationTokenInfo.js +4 -4
  111. package/dist/model/TokenizationTokenOperationSource.js +1 -1
  112. package/dist/model/TokenizationTokenPermissionParams.js +1 -1
  113. package/dist/model/TokenizationTokenPermissionType.js +15 -0
  114. package/dist/model/TokenizationTokenStandard.js +5 -0
  115. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
  116. package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
  117. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
  118. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
  119. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
  120. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
  121. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
  122. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
  123. package/dist/model/TokenizationWeb3OperationSource.js +2 -2
  124. package/dist/model/TokensEventData.js +8 -3
  125. package/dist/model/TransactionWebhookEventData.js +8 -3
  126. package/dist/model/UnfreezeDisposition.js +111 -0
  127. package/dist/model/UpdateAddressBookParam.js +150 -0
  128. package/dist/model/UpdateCustodialWalletParams.js +13 -6
  129. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  130. package/dist/model/UpdateMpcWalletParams.js +13 -6
  131. package/dist/model/UpdateWalletParams.js +6 -0
  132. package/dist/model/WalletInfo.js +6 -0
  133. package/dist/model/WalletInfoEventData.js +8 -3
  134. package/dist/model/WebhookEventData.js +62 -10
  135. package/dist/model/WebhookEventDataType.js +7 -2
  136. package/dist/model/WebhookEventType.js +5 -0
  137. package/docs/AddressBook.md +7 -7
  138. package/docs/AddressBooksApi.md +218 -8
  139. package/docs/AddressesEventData.md +3 -1
  140. package/docs/ApprovalDetail.md +4 -4
  141. package/docs/ApprovalResult.md +3 -5
  142. package/docs/ApprovalTemplate.md +3 -3
  143. package/docs/ApprovalTransactionResult.md +4 -4
  144. package/docs/ApprovalUserDetail.md +15 -9
  145. package/docs/AutoSweepApi.md +285 -0
  146. package/docs/AutoSweepTask.md +16 -0
  147. package/docs/AutoSweepTaskStatus.md +12 -0
  148. package/docs/BalanceUpdateInfoEventData.md +3 -1
  149. package/docs/ChainInfo.md +2 -1
  150. package/docs/ChainsEventData.md +3 -1
  151. package/docs/ComplianceApi.md +218 -0
  152. package/docs/ComplianceDispositionUpdateEventData.md +56 -0
  153. package/docs/CreateAddressBookParam.md +13 -0
  154. package/docs/CreateAddressBooks201Response.md +9 -0
  155. package/docs/CreateAddressBooksParam.md +9 -0
  156. package/docs/CreateAutoSweepTask.md +10 -0
  157. package/docs/CreateCryptoAddressRequest.md +3 -3
  158. package/docs/CreateCustodialWalletParams.md +1 -0
  159. package/docs/CreateExchangeWalletParams.md +1 -0
  160. package/docs/CreateMerchantRequest.md +1 -1
  161. package/docs/CreateMpcWalletParams.md +1 -0
  162. package/docs/CreatePaymentOrderRequest.md +2 -2
  163. package/docs/CreateRefundRequest.md +1 -1
  164. package/docs/CreateSafeWalletParams.md +1 -0
  165. package/docs/CreateSettlement.md +2 -2
  166. package/docs/CreateSmartContractWalletParams.md +1 -0
  167. package/docs/CreateSweepToAddress.md +10 -0
  168. package/docs/CreateWalletParams.md +1 -0
  169. package/docs/CreatedWalletInfo.md +1 -0
  170. package/docs/CustodialWalletInfo.md +1 -0
  171. package/docs/DeleteAddressBookById201Response.md +9 -0
  172. package/docs/DeleteCryptoAddress201Response.md +1 -1
  173. package/docs/DispositionEventData.md +14 -0
  174. package/docs/DispositionQueryResponse.md +12 -0
  175. package/docs/DispositionResponse.md +10 -0
  176. package/docs/DispositionStatus.md +34 -0
  177. package/docs/DispositionType.md +14 -0
  178. package/docs/ExchangeWalletInfo.md +1 -0
  179. package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
  180. package/docs/IsolateDisposition.md +13 -0
  181. package/docs/ListAutoSweepTask200Response.md +10 -0
  182. package/docs/ListMerchantBalances200Response.md +9 -0
  183. package/docs/ListPaymentWalletBalances200Response.md +9 -0
  184. package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
  185. package/docs/ListWalletSweepToAddresses200Response.md +9 -0
  186. package/docs/MPCVaultEventData.md +3 -1
  187. package/docs/MPCWalletInfo.md +1 -0
  188. package/docs/Merchant.md +1 -1
  189. package/docs/MerchantBalance.md +16 -0
  190. package/docs/OrgInfo.md +1 -0
  191. package/docs/PaymentAddressUpdateEventData.md +3 -1
  192. package/docs/PaymentApi.md +229 -11
  193. package/docs/PaymentOrderEventData.md +3 -1
  194. package/docs/PaymentRefundEventData.md +3 -1
  195. package/docs/PaymentSettlementEvent.md +3 -1
  196. package/docs/PaymentTransactionEventData.md +3 -1
  197. package/docs/PaymentWalletBalance.md +14 -0
  198. package/docs/PspBalance.md +14 -0
  199. package/docs/ReceivedAmountPerAddress.md +10 -0
  200. package/docs/RefundDisposition.md +13 -0
  201. package/docs/RoleDetail.md +4 -1
  202. package/docs/SafeWallet.md +1 -0
  203. package/docs/SettlementDetail.md +1 -1
  204. package/docs/SmartContractWalletInfo.md +1 -0
  205. package/docs/SuspendedTokenEventData.md +3 -1
  206. package/docs/SweepToAddress.md +11 -0
  207. package/docs/SweepToAddressStatus.md +12 -0
  208. package/docs/TSSRequestWebhookEventData.md +3 -1
  209. package/docs/TokenListingEventData.md +3 -1
  210. package/docs/TokenizationActivityInfo.md +2 -2
  211. package/docs/TokenizationAllowlistActivationRequest.md +1 -0
  212. package/docs/TokenizationAllowlistAddressNote.md +3 -3
  213. package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
  214. package/docs/TokenizationApi.md +1069 -0
  215. package/docs/TokenizationBlocklistAddressNote.md +3 -3
  216. package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
  217. package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
  218. package/docs/TokenizationBurnTokenRequest.md +1 -0
  219. package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
  220. package/docs/TokenizationContractCallParamsData.md +2 -1
  221. package/docs/TokenizationContractCallRequest.md +1 -0
  222. package/docs/TokenizationContractCallType.md +2 -0
  223. package/docs/TokenizationERC20TokenParams.md +1 -1
  224. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
  225. package/docs/TokenizationEvmContractCallParams.md +1 -1
  226. package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
  227. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
  228. package/docs/TokenizationIssuedTokenRequest.md +2 -1
  229. package/docs/TokenizationMintEstimateFeeParams.md +1 -0
  230. package/docs/TokenizationMintTokenRequest.md +1 -0
  231. package/docs/TokenizationMpcOperationSource.md +1 -1
  232. package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
  233. package/docs/TokenizationPauseTokenRequest.md +1 -0
  234. package/docs/TokenizationSOLTokenParams.md +14 -0
  235. package/docs/TokenizationSolContractCallParams.md +10 -0
  236. package/docs/TokenizationSolTokenPermissionParams.md +13 -0
  237. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
  238. package/docs/TokenizationTokenDetailInfo.md +1 -1
  239. package/docs/TokenizationTokenInfo.md +1 -1
  240. package/docs/TokenizationTokenOperationSource.md +1 -1
  241. package/docs/TokenizationTokenPermissionType.md +6 -0
  242. package/docs/TokenizationTokenStandard.md +2 -0
  243. package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
  244. package/docs/TokenizationUnpauseTokenRequest.md +1 -0
  245. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
  246. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
  247. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
  248. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
  249. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
  250. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
  251. package/docs/TokenizationWeb3OperationSource.md +1 -1
  252. package/docs/TokensEventData.md +3 -1
  253. package/docs/TransactionWebhookEventData.md +3 -1
  254. package/docs/TransactionsApi.md +114 -2
  255. package/docs/UnfreezeDisposition.md +9 -0
  256. package/docs/UpdateAddressBookParam.md +12 -0
  257. package/docs/UpdateCustodialWalletParams.md +2 -1
  258. package/docs/UpdateMerchantByIdRequest.md +1 -1
  259. package/docs/UpdateMpcWalletParams.md +2 -1
  260. package/docs/UpdateWalletParams.md +1 -0
  261. package/docs/WalletInfo.md +1 -0
  262. package/docs/WalletInfoEventData.md +3 -1
  263. package/docs/WalletsApi.md +2 -2
  264. package/docs/WalletsMPCWalletsApi.md +1 -1
  265. package/docs/WebhookEventData.md +8 -2
  266. package/docs/WebhookEventDataType.md +3 -1
  267. package/docs/WebhookEventType.md +2 -0
  268. package/package.json +1 -1
  269. package/dist/model/ApprovalShowInfo.js +0 -140
  270. package/docs/ApprovalShowInfo.md +0 -13
@@ -0,0 +1,289 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AutoSweepTask = _interopRequireDefault(require("../model/AutoSweepTask"));
9
+ var _CreateAutoSweepTask = _interopRequireDefault(require("../model/CreateAutoSweepTask"));
10
+ var _CreateSweepToAddress = _interopRequireDefault(require("../model/CreateSweepToAddress"));
11
+ var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
12
+ var _ListAutoSweepTask200Response = _interopRequireDefault(require("../model/ListAutoSweepTask200Response"));
13
+ var _ListWalletSweepToAddresses200Response = _interopRequireDefault(require("../model/ListWalletSweepToAddresses200Response"));
14
+ var _SweepToAddress = _interopRequireDefault(require("../model/SweepToAddress"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
22
+ * Cobo Wallet as a Service 2.0
23
+ *
24
+ * Contact: help@cobo.com
25
+ *
26
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
+ * https://openapi-generator.tech
28
+ * Do not edit the class manually.
29
+ *
30
+ */
31
+ /**
32
+ * AutoSweep service.
33
+ * @module api/AutoSweepApi
34
+ */
35
+ var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new AutoSweepApi.
38
+ * @alias module:api/AutoSweepApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
+ function AutoSweepApi(apiClient) {
44
+ _classCallCheck(this, AutoSweepApi);
45
+ this.apiClient = apiClient || _ApiClient["default"].instance;
46
+ }
47
+
48
+ /**
49
+ * Create auto-sweep task
50
+ * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address.
51
+ * @param {Object} opts Optional parameters
52
+ * @param {module:model/CreateAutoSweepTask} [CreateAutoSweepTask] The request body to create an auto-sweep task.
53
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoSweepTask} and HTTP response
54
+ */
55
+ return _createClass(AutoSweepApi, [{
56
+ key: "createAutoSweepTaskWithHttpInfo",
57
+ value: function createAutoSweepTaskWithHttpInfo(opts) {
58
+ opts = opts || {};
59
+ var postBody = opts['CreateAutoSweepTask'];
60
+ if (postBody && postBody.toJSON) {
61
+ postBody = postBody.toJSON();
62
+ }
63
+ var pathParams = {};
64
+ var queryParams = {};
65
+ var headerParams = {};
66
+ var formParams = {};
67
+ var authNames = ['OAuth2', 'CoboAuth'];
68
+ var contentTypes = ['application/json'];
69
+ var accepts = ['application/json'];
70
+ var returnType = _AutoSweepTask["default"];
71
+ return this.apiClient.callApi('/auto_sweep/tasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
72
+ }
73
+
74
+ /**
75
+ * Create auto-sweep task
76
+ * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address.
77
+ * @param {Object} opts Optional parameters
78
+ * @param {module:model/CreateAutoSweepTask} opts.CreateAutoSweepTask The request body to create an auto-sweep task.
79
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoSweepTask}
80
+ */
81
+ }, {
82
+ key: "createAutoSweepTask",
83
+ value: function createAutoSweepTask(opts) {
84
+ return this.createAutoSweepTaskWithHttpInfo(opts).then(function (response_and_data) {
85
+ return response_and_data.data;
86
+ });
87
+ }
88
+
89
+ /**
90
+ * create sweep-to address
91
+ * This operation creates a new sweep-to address for the specified wallet. The previously sweep-to address for the same token becomes invalid once the new one is created. Use this operation to change the sweep-to address when your setup changes, you switch networks, or the current address is compromised or tainted by suspicious funds. You can withdraw any remaining balances from the old sweep-to addresses to the new address or another designated destination. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
92
+ * @param {Object} opts Optional parameters
93
+ * @param {module:model/CreateSweepToAddress} [CreateSweepToAddress] The request body to generates a new sweep-to address within a specified wallet.
94
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SweepToAddress} and HTTP response
95
+ */
96
+ }, {
97
+ key: "createWalletSweepToAddressesWithHttpInfo",
98
+ value: function createWalletSweepToAddressesWithHttpInfo(opts) {
99
+ opts = opts || {};
100
+ var postBody = opts['CreateSweepToAddress'];
101
+ if (postBody && postBody.toJSON) {
102
+ postBody = postBody.toJSON();
103
+ }
104
+ var pathParams = {};
105
+ var queryParams = {};
106
+ var headerParams = {};
107
+ var formParams = {};
108
+ var authNames = ['OAuth2', 'CoboAuth'];
109
+ var contentTypes = ['application/json'];
110
+ var accepts = ['application/json'];
111
+ var returnType = _SweepToAddress["default"];
112
+ return this.apiClient.callApi('/auto_sweep/sweep_to_addresses', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
113
+ }
114
+
115
+ /**
116
+ * create sweep-to address
117
+ * This operation creates a new sweep-to address for the specified wallet. The previously sweep-to address for the same token becomes invalid once the new one is created. Use this operation to change the sweep-to address when your setup changes, you switch networks, or the current address is compromised or tainted by suspicious funds. You can withdraw any remaining balances from the old sweep-to addresses to the new address or another designated destination. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
118
+ * @param {Object} opts Optional parameters
119
+ * @param {module:model/CreateSweepToAddress} opts.CreateSweepToAddress The request body to generates a new sweep-to address within a specified wallet.
120
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SweepToAddress}
121
+ */
122
+ }, {
123
+ key: "createWalletSweepToAddresses",
124
+ value: function createWalletSweepToAddresses(opts) {
125
+ return this.createWalletSweepToAddressesWithHttpInfo(opts).then(function (response_and_data) {
126
+ return response_and_data.data;
127
+ });
128
+ }
129
+
130
+ /**
131
+ * Get auto-sweep task details
132
+ * This operation retrieves detailed information about a specified auto-sweep task.
133
+ * @param {String} task_id The auto sweep task ID.
134
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoSweepTask} and HTTP response
135
+ */
136
+ }, {
137
+ key: "getAutoSweepTaskByIdWithHttpInfo",
138
+ value: function getAutoSweepTaskByIdWithHttpInfo(task_id) {
139
+ var postBody = null;
140
+ if (postBody && postBody.toJSON) {
141
+ postBody = postBody.toJSON();
142
+ }
143
+ // verify the required parameter 'task_id' is set
144
+ if (task_id === undefined || task_id === null) {
145
+ throw new Error("Missing the required parameter 'task_id' when calling getAutoSweepTaskById");
146
+ }
147
+ var pathParams = {
148
+ 'task_id': task_id
149
+ };
150
+ var queryParams = {};
151
+ var headerParams = {};
152
+ var formParams = {};
153
+ var authNames = ['OAuth2', 'CoboAuth'];
154
+ var contentTypes = [];
155
+ var accepts = ['application/json'];
156
+ var returnType = _AutoSweepTask["default"];
157
+ return this.apiClient.callApi('/auto_sweep/tasks/{task_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
158
+ }
159
+
160
+ /**
161
+ * Get auto-sweep task details
162
+ * This operation retrieves detailed information about a specified auto-sweep task.
163
+ * @param {String} task_id The auto sweep task ID.
164
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoSweepTask}
165
+ */
166
+ }, {
167
+ key: "getAutoSweepTaskById",
168
+ value: function getAutoSweepTaskById(task_id) {
169
+ return this.getAutoSweepTaskByIdWithHttpInfo(task_id).then(function (response_and_data) {
170
+ return response_and_data.data;
171
+ });
172
+ }
173
+
174
+ /**
175
+ * List auto-sweep tasks
176
+ * This operation retrieves a list of auto-sweep tasks for the specified wallet. You can filter the results by token ID, task IDs, or a created-time range.
177
+ * @param {String} wallet_id The wallet ID.
178
+ * @param {Object} opts Optional parameters
179
+ * @param {String} [token_id] 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).
180
+ * @param {String} [task_ids] A list of auto-sweep task IDs, separated by comma.
181
+ * @param {Number} [min_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change.
182
+ * @param {Number} [max_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change.
183
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
184
+ * @param {String} [before] 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.
185
+ * @param {String} [after] 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.
186
+ * @param {module:model/String} [direction = 'ASC')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
187
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAutoSweepTask200Response} and HTTP response
188
+ */
189
+ }, {
190
+ key: "listAutoSweepTaskWithHttpInfo",
191
+ value: function listAutoSweepTaskWithHttpInfo(wallet_id, opts) {
192
+ opts = opts || {};
193
+ var postBody = null;
194
+ if (postBody && postBody.toJSON) {
195
+ postBody = postBody.toJSON();
196
+ }
197
+ // verify the required parameter 'wallet_id' is set
198
+ if (wallet_id === undefined || wallet_id === null) {
199
+ throw new Error("Missing the required parameter 'wallet_id' when calling listAutoSweepTask");
200
+ }
201
+ var pathParams = {};
202
+ var queryParams = {
203
+ 'wallet_id': wallet_id,
204
+ 'token_id': opts['token_id'],
205
+ 'task_ids': opts['task_ids'],
206
+ 'min_created_timestamp': opts['min_created_timestamp'],
207
+ 'max_created_timestamp': opts['max_created_timestamp'],
208
+ 'limit': opts['limit'],
209
+ 'before': opts['before'],
210
+ 'after': opts['after'],
211
+ 'direction': opts['direction']
212
+ };
213
+ var headerParams = {};
214
+ var formParams = {};
215
+ var authNames = ['OAuth2', 'CoboAuth'];
216
+ var contentTypes = [];
217
+ var accepts = ['application/json'];
218
+ var returnType = _ListAutoSweepTask200Response["default"];
219
+ return this.apiClient.callApi('/auto_sweep/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
220
+ }
221
+
222
+ /**
223
+ * List auto-sweep tasks
224
+ * This operation retrieves a list of auto-sweep tasks for the specified wallet. You can filter the results by token ID, task IDs, or a created-time range.
225
+ * @param {String} wallet_id The wallet ID.
226
+ * @param {Object} opts Optional parameters
227
+ * @param {String} opts.token_id 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).
228
+ * @param {String} opts.task_ids A list of auto-sweep task IDs, separated by comma.
229
+ * @param {Number} opts.min_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change.
230
+ * @param {Number} opts.max_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change.
231
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
232
+ * @param {String} opts.before 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.
233
+ * @param {String} opts.after 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.
234
+ * @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to 'ASC')
235
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAutoSweepTask200Response}
236
+ */
237
+ }, {
238
+ key: "listAutoSweepTask",
239
+ value: function listAutoSweepTask(wallet_id, opts) {
240
+ return this.listAutoSweepTaskWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
241
+ return response_and_data.data;
242
+ });
243
+ }
244
+
245
+ /**
246
+ * List sweep-to addresses
247
+ * This operation retrieves a list of sweep-to addresses within your wallet. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
248
+ * @param {String} wallet_id The wallet ID.
249
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListWalletSweepToAddresses200Response} and HTTP response
250
+ */
251
+ }, {
252
+ key: "listWalletSweepToAddressesWithHttpInfo",
253
+ value: function listWalletSweepToAddressesWithHttpInfo(wallet_id) {
254
+ var postBody = null;
255
+ if (postBody && postBody.toJSON) {
256
+ postBody = postBody.toJSON();
257
+ }
258
+ // verify the required parameter 'wallet_id' is set
259
+ if (wallet_id === undefined || wallet_id === null) {
260
+ throw new Error("Missing the required parameter 'wallet_id' when calling listWalletSweepToAddresses");
261
+ }
262
+ var pathParams = {};
263
+ var queryParams = {
264
+ 'wallet_id': wallet_id
265
+ };
266
+ var headerParams = {};
267
+ var formParams = {};
268
+ var authNames = ['OAuth2', 'CoboAuth'];
269
+ var contentTypes = [];
270
+ var accepts = ['application/json'];
271
+ var returnType = _ListWalletSweepToAddresses200Response["default"];
272
+ return this.apiClient.callApi('/auto_sweep/sweep_to_addresses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
273
+ }
274
+
275
+ /**
276
+ * List sweep-to addresses
277
+ * This operation retrieves a list of sweep-to addresses within your wallet. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
278
+ * @param {String} wallet_id The wallet ID.
279
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListWalletSweepToAddresses200Response}
280
+ */
281
+ }, {
282
+ key: "listWalletSweepToAddresses",
283
+ value: function listWalletSweepToAddresses(wallet_id) {
284
+ return this.listWalletSweepToAddressesWithHttpInfo(wallet_id).then(function (response_and_data) {
285
+ return response_and_data.data;
286
+ });
287
+ }
288
+ }]);
289
+ }();
@@ -0,0 +1,214 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DispositionQueryResponse = _interopRequireDefault(require("../model/DispositionQueryResponse"));
9
+ var _DispositionResponse = _interopRequireDefault(require("../model/DispositionResponse"));
10
+ var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
11
+ var _IsolateDisposition = _interopRequireDefault(require("../model/IsolateDisposition"));
12
+ var _RefundDisposition = _interopRequireDefault(require("../model/RefundDisposition"));
13
+ var _UnfreezeDisposition = _interopRequireDefault(require("../model/UnfreezeDisposition"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
21
+ * Cobo Wallet as a Service 2.0
22
+ *
23
+ * Contact: help@cobo.com
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * Compliance service.
32
+ * @module api/ComplianceApi
33
+ */
34
+ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new ComplianceApi.
37
+ * @alias module:api/ComplianceApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
+ function ComplianceApi(apiClient) {
43
+ _classCallCheck(this, ComplianceApi);
44
+ this.apiClient = apiClient || _ApiClient["default"].instance;
45
+ }
46
+
47
+ /**
48
+ * Get disposition status
49
+ * This operation retrieves the current status of a disposition request for a specific transaction. You can use this endpoint to check the status of any disposition operation (Refund, Isolate, or Unfreeze) that has been initiated for a transaction. The response includes the disposition type, current status, and the disposition transaction ID if applicable. <Note>Use this endpoint to monitor the progress of disposition operations and verify their completion.</Note>
50
+ * @param {String} transaction_id The UUID of the transaction to query for disposition status.
51
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionQueryResponse} and HTTP response
52
+ */
53
+ return _createClass(ComplianceApi, [{
54
+ key: "getDispositionStatusWithHttpInfo",
55
+ value: function getDispositionStatusWithHttpInfo(transaction_id) {
56
+ var postBody = null;
57
+ if (postBody && postBody.toJSON) {
58
+ postBody = postBody.toJSON();
59
+ }
60
+ // verify the required parameter 'transaction_id' is set
61
+ if (transaction_id === undefined || transaction_id === null) {
62
+ throw new Error("Missing the required parameter 'transaction_id' when calling getDispositionStatus");
63
+ }
64
+ var pathParams = {};
65
+ var queryParams = {
66
+ 'transaction_id': transaction_id
67
+ };
68
+ var headerParams = {};
69
+ var formParams = {};
70
+ var authNames = ['OAuth2', 'CoboAuth'];
71
+ var contentTypes = [];
72
+ var accepts = ['application/json'];
73
+ var returnType = _DispositionQueryResponse["default"];
74
+ return this.apiClient.callApi('/compliance/funds/disposition', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
75
+ }
76
+
77
+ /**
78
+ * Get disposition status
79
+ * This operation retrieves the current status of a disposition request for a specific transaction. You can use this endpoint to check the status of any disposition operation (Refund, Isolate, or Unfreeze) that has been initiated for a transaction. The response includes the disposition type, current status, and the disposition transaction ID if applicable. <Note>Use this endpoint to monitor the progress of disposition operations and verify their completion.</Note>
80
+ * @param {String} transaction_id The UUID of the transaction to query for disposition status.
81
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DispositionQueryResponse}
82
+ */
83
+ }, {
84
+ key: "getDispositionStatus",
85
+ value: function getDispositionStatus(transaction_id) {
86
+ return this.getDispositionStatusWithHttpInfo(transaction_id).then(function (response_and_data) {
87
+ return response_and_data.data;
88
+ });
89
+ }
90
+
91
+ /**
92
+ * Isolate funds
93
+ * This operation creates a request to isolate funds for a specific transaction. The funds will be sent to a designated isolation address for compliance purposes. You need to specify the transaction ID to be isolated and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The isolation will initiate a withdrawal transaction from the compliance-managed address to the specified isolation address.</Note>
94
+ * @param {Object} opts Optional parameters
95
+ * @param {module:model/IsolateDisposition} [IsolateDisposition] The request body to isolate funds.
96
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionResponse} and HTTP response
97
+ */
98
+ }, {
99
+ key: "isolateFundsWithHttpInfo",
100
+ value: function isolateFundsWithHttpInfo(opts) {
101
+ opts = opts || {};
102
+ var postBody = opts['IsolateDisposition'];
103
+ if (postBody && postBody.toJSON) {
104
+ postBody = postBody.toJSON();
105
+ }
106
+ var pathParams = {};
107
+ var queryParams = {};
108
+ var headerParams = {};
109
+ var formParams = {};
110
+ var authNames = ['OAuth2', 'CoboAuth'];
111
+ var contentTypes = ['application/json'];
112
+ var accepts = ['application/json'];
113
+ var returnType = _DispositionResponse["default"];
114
+ return this.apiClient.callApi('/compliance/funds/disposition/isolate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
115
+ }
116
+
117
+ /**
118
+ * Isolate funds
119
+ * This operation creates a request to isolate funds for a specific transaction. The funds will be sent to a designated isolation address for compliance purposes. You need to specify the transaction ID to be isolated and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The isolation will initiate a withdrawal transaction from the compliance-managed address to the specified isolation address.</Note>
120
+ * @param {Object} opts Optional parameters
121
+ * @param {module:model/IsolateDisposition} opts.IsolateDisposition The request body to isolate funds.
122
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DispositionResponse}
123
+ */
124
+ }, {
125
+ key: "isolateFunds",
126
+ value: function isolateFunds(opts) {
127
+ return this.isolateFundsWithHttpInfo(opts).then(function (response_and_data) {
128
+ return response_and_data.data;
129
+ });
130
+ }
131
+
132
+ /**
133
+ * Refund funds
134
+ * This operation creates a request to refund funds for a specific transaction. The funds will be sent to the specified destination address. You need to specify the transaction ID to be refunded and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The refund will initiate a withdrawal transaction from the compliance-managed address to the specified destination.</Note>
135
+ * @param {Object} opts Optional parameters
136
+ * @param {module:model/RefundDisposition} [RefundDisposition] The request body to refund funds.
137
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionResponse} and HTTP response
138
+ */
139
+ }, {
140
+ key: "refundFundsWithHttpInfo",
141
+ value: function refundFundsWithHttpInfo(opts) {
142
+ opts = opts || {};
143
+ var postBody = opts['RefundDisposition'];
144
+ if (postBody && postBody.toJSON) {
145
+ postBody = postBody.toJSON();
146
+ }
147
+ var pathParams = {};
148
+ var queryParams = {};
149
+ var headerParams = {};
150
+ var formParams = {};
151
+ var authNames = ['OAuth2', 'CoboAuth'];
152
+ var contentTypes = ['application/json'];
153
+ var accepts = ['application/json'];
154
+ var returnType = _DispositionResponse["default"];
155
+ return this.apiClient.callApi('/compliance/funds/disposition/refund', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
156
+ }
157
+
158
+ /**
159
+ * Refund funds
160
+ * This operation creates a request to refund funds for a specific transaction. The funds will be sent to the specified destination address. You need to specify the transaction ID to be refunded and the destination address. Optional parameters include custom categories for tracking purposes. <Note>The refund will initiate a withdrawal transaction from the compliance-managed address to the specified destination.</Note>
161
+ * @param {Object} opts Optional parameters
162
+ * @param {module:model/RefundDisposition} opts.RefundDisposition The request body to refund funds.
163
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DispositionResponse}
164
+ */
165
+ }, {
166
+ key: "refundFunds",
167
+ value: function refundFunds(opts) {
168
+ return this.refundFundsWithHttpInfo(opts).then(function (response_and_data) {
169
+ return response_and_data.data;
170
+ });
171
+ }
172
+
173
+ /**
174
+ * Unfreeze frozen funds
175
+ * This operation creates a request to unfreeze funds for a previously frozen transaction. It releases the frozen funds back to their original state. You only need to specify the transaction ID to be unfrozen. Once unfrozen, the funds will be available for normal operations. <Note>The unfreeze process will release the compliance hold on the transaction, allowing it to proceed normally.</Note>
176
+ * @param {Object} opts Optional parameters
177
+ * @param {module:model/UnfreezeDisposition} [UnfreezeDisposition] The request body to unfreeze funds.
178
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DispositionResponse} and HTTP response
179
+ */
180
+ }, {
181
+ key: "unfreezeFundsWithHttpInfo",
182
+ value: function unfreezeFundsWithHttpInfo(opts) {
183
+ opts = opts || {};
184
+ var postBody = opts['UnfreezeDisposition'];
185
+ if (postBody && postBody.toJSON) {
186
+ postBody = postBody.toJSON();
187
+ }
188
+ var pathParams = {};
189
+ var queryParams = {};
190
+ var headerParams = {};
191
+ var formParams = {};
192
+ var authNames = ['OAuth2', 'CoboAuth'];
193
+ var contentTypes = ['application/json'];
194
+ var accepts = ['application/json'];
195
+ var returnType = _DispositionResponse["default"];
196
+ return this.apiClient.callApi('/compliance/funds/disposition/unfreeze', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
197
+ }
198
+
199
+ /**
200
+ * Unfreeze frozen funds
201
+ * This operation creates a request to unfreeze funds for a previously frozen transaction. It releases the frozen funds back to their original state. You only need to specify the transaction ID to be unfrozen. Once unfrozen, the funds will be available for normal operations. <Note>The unfreeze process will release the compliance hold on the transaction, allowing it to proceed normally.</Note>
202
+ * @param {Object} opts Optional parameters
203
+ * @param {module:model/UnfreezeDisposition} opts.UnfreezeDisposition The request body to unfreeze funds.
204
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DispositionResponse}
205
+ */
206
+ }, {
207
+ key: "unfreezeFunds",
208
+ value: function unfreezeFunds(opts) {
209
+ return this.unfreezeFundsWithHttpInfo(opts).then(function (response_and_data) {
210
+ return response_and_data.data;
211
+ });
212
+ }
213
+ }]);
214
+ }();