@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
@@ -83,6 +83,9 @@ var TokenizationUnpauseTokenRequest = /*#__PURE__*/function () {
83
83
  if (data.hasOwnProperty('fee')) {
84
84
  obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
85
85
  }
86
+ if (data.hasOwnProperty('request_id')) {
87
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
88
+ }
86
89
  }
87
90
  return obj;
88
91
  }
@@ -128,6 +131,10 @@ var TokenizationUnpauseTokenRequest = /*#__PURE__*/function () {
128
131
  _TransactionRequestFee["default"].validateJSON(data['fee']);
129
132
  }
130
133
  }
134
+ // ensure the json data is a string
135
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
136
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
137
+ }
131
138
  return true;
132
139
  }
133
140
  }]);
@@ -150,6 +157,12 @@ TokenizationUnpauseTokenRequest.prototype['app_initiator'] = undefined;
150
157
  */
151
158
  TokenizationUnpauseTokenRequest.prototype['fee'] = undefined;
152
159
 
160
+ /**
161
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
162
+ * @member {String} request_id
163
+ */
164
+ TokenizationUnpauseTokenRequest.prototype['request_id'] = undefined;
165
+
153
166
  // Implement TokenizationUnpauseTokenParams interface:
154
167
  /**
155
168
  * @member {module:model/TokenizationTokenOperationSource} source
@@ -93,6 +93,9 @@ var TokenizationUpdateAllowlistAddressesEstimateFeeParams = /*#__PURE__*/functio
93
93
  if (data.hasOwnProperty('token_id')) {
94
94
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
95
95
  }
96
+ if (data.hasOwnProperty('request_id')) {
97
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
98
+ }
96
99
  }
97
100
  return obj;
98
101
  }
@@ -152,6 +155,10 @@ var TokenizationUpdateAllowlistAddressesEstimateFeeParams = /*#__PURE__*/functio
152
155
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
153
156
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
154
157
  }
158
+ // ensure the json data is a string
159
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
160
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
161
+ }
155
162
  return true;
156
163
  }
157
164
  }]);
@@ -185,6 +192,12 @@ TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['operation_type'
185
192
  */
186
193
  TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['token_id'] = undefined;
187
194
 
195
+ /**
196
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
197
+ * @member {String} request_id
198
+ */
199
+ TokenizationUpdateAllowlistAddressesEstimateFeeParams.prototype['request_id'] = undefined;
200
+
188
201
  // Implement TokenizationUpdateAllowlistAddressesParams interface:
189
202
  /**
190
203
  * @member {module:model/TokenizationUpdateAddressAction} action
@@ -116,7 +116,7 @@ TokenizationUpdateAllowlistAddressesParamsAddressesInner.RequiredProperties = ["
116
116
  TokenizationUpdateAllowlistAddressesParamsAddressesInner.prototype['address'] = undefined;
117
117
 
118
118
  /**
119
- * An optional note for the address, primarily used when adding.
119
+ * An optional note for the address, primarily used when adding addresses.
120
120
  * @member {String} note
121
121
  */
122
122
  TokenizationUpdateAllowlistAddressesParamsAddressesInner.prototype['note'] = undefined;
@@ -95,6 +95,9 @@ var TokenizationUpdateAllowlistAddressesRequest = /*#__PURE__*/function () {
95
95
  if (data.hasOwnProperty('fee')) {
96
96
  obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
97
97
  }
98
+ if (data.hasOwnProperty('request_id')) {
99
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
100
+ }
98
101
  }
99
102
  return obj;
100
103
  }
@@ -161,6 +164,10 @@ var TokenizationUpdateAllowlistAddressesRequest = /*#__PURE__*/function () {
161
164
  _TransactionRequestFee["default"].validateJSON(data['fee']);
162
165
  }
163
166
  }
167
+ // ensure the json data is a string
168
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
169
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
170
+ }
164
171
  return true;
165
172
  }
166
173
  }]);
@@ -194,6 +201,12 @@ TokenizationUpdateAllowlistAddressesRequest.prototype['app_initiator'] = undefin
194
201
  */
195
202
  TokenizationUpdateAllowlistAddressesRequest.prototype['fee'] = undefined;
196
203
 
204
+ /**
205
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
206
+ * @member {String} request_id
207
+ */
208
+ TokenizationUpdateAllowlistAddressesRequest.prototype['request_id'] = undefined;
209
+
197
210
  // Implement TokenizationUpdateAllowlistAddressesParams interface:
198
211
  /**
199
212
  * @member {module:model/TokenizationUpdateAddressAction} action
@@ -93,6 +93,9 @@ var TokenizationUpdateBlocklistAddressesEstimateFeeParams = /*#__PURE__*/functio
93
93
  if (data.hasOwnProperty('token_id')) {
94
94
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
95
95
  }
96
+ if (data.hasOwnProperty('request_id')) {
97
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
98
+ }
96
99
  }
97
100
  return obj;
98
101
  }
@@ -152,6 +155,10 @@ var TokenizationUpdateBlocklistAddressesEstimateFeeParams = /*#__PURE__*/functio
152
155
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
153
156
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
154
157
  }
158
+ // ensure the json data is a string
159
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
160
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
161
+ }
155
162
  return true;
156
163
  }
157
164
  }]);
@@ -185,6 +192,12 @@ TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['operation_type'
185
192
  */
186
193
  TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['token_id'] = undefined;
187
194
 
195
+ /**
196
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
197
+ * @member {String} request_id
198
+ */
199
+ TokenizationUpdateBlocklistAddressesEstimateFeeParams.prototype['request_id'] = undefined;
200
+
188
201
  // Implement TokenizationUpdateBlocklistAddressesParams interface:
189
202
  /**
190
203
  * @member {module:model/TokenizationUpdateAddressAction} action
@@ -116,7 +116,7 @@ TokenizationUpdateBlocklistAddressesParamsAddressesInner.RequiredProperties = ["
116
116
  TokenizationUpdateBlocklistAddressesParamsAddressesInner.prototype['address'] = undefined;
117
117
 
118
118
  /**
119
- * An optional note for the address, primarily used when adding.
119
+ * An optional note for the address, primarily used when adding addresses.
120
120
  * @member {String} note
121
121
  */
122
122
  TokenizationUpdateBlocklistAddressesParamsAddressesInner.prototype['note'] = undefined;
@@ -95,6 +95,9 @@ var TokenizationUpdateBlocklistAddressesRequest = /*#__PURE__*/function () {
95
95
  if (data.hasOwnProperty('fee')) {
96
96
  obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
97
97
  }
98
+ if (data.hasOwnProperty('request_id')) {
99
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
100
+ }
98
101
  }
99
102
  return obj;
100
103
  }
@@ -161,6 +164,10 @@ var TokenizationUpdateBlocklistAddressesRequest = /*#__PURE__*/function () {
161
164
  _TransactionRequestFee["default"].validateJSON(data['fee']);
162
165
  }
163
166
  }
167
+ // ensure the json data is a string
168
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
169
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
170
+ }
164
171
  return true;
165
172
  }
166
173
  }]);
@@ -194,6 +201,12 @@ TokenizationUpdateBlocklistAddressesRequest.prototype['app_initiator'] = undefin
194
201
  */
195
202
  TokenizationUpdateBlocklistAddressesRequest.prototype['fee'] = undefined;
196
203
 
204
+ /**
205
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
206
+ * @member {String} request_id
207
+ */
208
+ TokenizationUpdateBlocklistAddressesRequest.prototype['request_id'] = undefined;
209
+
197
210
  // Implement TokenizationUpdateBlocklistAddressesParams interface:
198
211
  /**
199
212
  * @member {module:model/TokenizationUpdateAddressAction} action
@@ -35,7 +35,7 @@ var TokenizationWeb3OperationSource = /*#__PURE__*/function () {
35
35
  * @alias module:model/TokenizationWeb3OperationSource
36
36
  * @param source_type {module:model/TokenizationOperationSourceType}
37
37
  * @param wallet_id {String} The wallet ID.
38
- * @param address {String} The wallet address to interact with the token contract from.
38
+ * @param address {String} The wallet address used to interact with the token contract.
39
39
  */
40
40
  function TokenizationWeb3OperationSource(source_type, wallet_id, address) {
41
41
  _classCallCheck(this, TokenizationWeb3OperationSource);
@@ -129,7 +129,7 @@ TokenizationWeb3OperationSource.prototype['source_type'] = undefined;
129
129
  TokenizationWeb3OperationSource.prototype['wallet_id'] = undefined;
130
130
 
131
131
  /**
132
- * The wallet address to interact with the token contract from.
132
+ * The wallet address used to interact with the token contract.
133
133
  * @member {String} address
134
134
  */
135
135
  TokenizationWeb3OperationSource.prototype['address'] = undefined;
@@ -37,7 +37,7 @@ var TokensEventData = /*#__PURE__*/function () {
37
37
  * Constructs a new <code>TokensEventData</code>.
38
38
  * @alias module:model/TokensEventData
39
39
  * @implements module:model/WebhookEventDataType
40
- * @param data_type {module:model/TokensEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
40
+ * @param data_type {module:model/TokensEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
41
41
  * @param tokens {Array.<module:model/TokenInfo>} The enabled tokens.
42
42
  */
43
43
  function TokensEventData(data_type, tokens) {
@@ -146,7 +146,7 @@ var TokensEventData = /*#__PURE__*/function () {
146
146
  TokensEventData.RequiredProperties = ["data_type", "tokens"];
147
147
 
148
148
  /**
149
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
149
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
150
150
  * @member {module:model/TokensEventData.DataTypeEnum} data_type
151
151
  */
152
152
  TokensEventData.prototype['data_type'] = undefined;
@@ -169,7 +169,7 @@ TokensEventData.prototype['wallet_subtypes'] = undefined;
169
169
 
170
170
  // Implement WebhookEventDataType interface:
171
171
  /**
172
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
172
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
173
173
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
174
174
  */
175
175
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -255,6 +255,11 @@ TokensEventData['DataTypeEnum'] = {
255
255
  * @const
256
256
  */
257
257
  "SuspendedToken": "SuspendedToken",
258
+ /**
259
+ * value: "ComplianceDisposition"
260
+ * @const
261
+ */
262
+ "ComplianceDisposition": "ComplianceDisposition",
258
263
  /**
259
264
  * value: "unknown_default_open_api"
260
265
  * @const
@@ -48,7 +48,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
48
48
  * @alias module:model/TransactionWebhookEventData
49
49
  * @implements module:model/WebhookEventDataType
50
50
  * @implements module:model/Transaction
51
- * @param data_type {module:model/TransactionWebhookEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
51
+ * @param data_type {module:model/TransactionWebhookEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
52
52
  * @param transaction_id {String} The transaction ID.
53
53
  * @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
54
54
  * @param status {module:model/TransactionStatus}
@@ -344,7 +344,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
344
344
  TransactionWebhookEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp"];
345
345
 
346
346
  /**
347
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
347
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
348
348
  * @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
349
349
  */
350
350
  TransactionWebhookEventData.prototype['data_type'] = undefined;
@@ -525,7 +525,7 @@ TransactionWebhookEventData.prototype['updated_timestamp'] = undefined;
525
525
 
526
526
  // Implement WebhookEventDataType interface:
527
527
  /**
528
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
528
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
529
529
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
530
530
  */
531
531
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -755,6 +755,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
755
755
  * @const
756
756
  */
757
757
  "SuspendedToken": "SuspendedToken",
758
+ /**
759
+ * value: "ComplianceDisposition"
760
+ * @const
761
+ */
762
+ "ComplianceDisposition": "ComplianceDisposition",
758
763
  /**
759
764
  * value: "unknown_default_open_api"
760
765
  * @const
@@ -0,0 +1,111 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The UnfreezeDisposition model module.
29
+ * @module model/UnfreezeDisposition
30
+ */
31
+ var UnfreezeDisposition = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>UnfreezeDisposition</code>.
34
+ * The information about a request to unfreeze funds.
35
+ * @alias module:model/UnfreezeDisposition
36
+ * @param transaction_id {String} The UUID of the transaction whose funds are to be unfrozen.
37
+ */
38
+ function UnfreezeDisposition(transaction_id) {
39
+ _classCallCheck(this, UnfreezeDisposition);
40
+ UnfreezeDisposition.initialize(this, transaction_id);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(UnfreezeDisposition, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj, transaction_id) {
51
+ obj['transaction_id'] = transaction_id;
52
+ }
53
+
54
+ /**
55
+ * Constructs a <code>UnfreezeDisposition</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/UnfreezeDisposition} obj Optional instance to populate.
59
+ * @return {module:model/UnfreezeDisposition} The populated <code>UnfreezeDisposition</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UnfreezeDisposition();
66
+ if (data.hasOwnProperty('transaction_id')) {
67
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Validates the JSON data with respect to <code>UnfreezeDisposition</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UnfreezeDisposition</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ // check to make sure all required properties are present in the JSON string
82
+ var _iterator = _createForOfIteratorHelper(UnfreezeDisposition.RequiredProperties),
83
+ _step;
84
+ try {
85
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
86
+ var property = _step.value;
87
+ if (!data.hasOwnProperty(property)) {
88
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
89
+ }
90
+ }
91
+ // ensure the json data is a string
92
+ } catch (err) {
93
+ _iterator.e(err);
94
+ } finally {
95
+ _iterator.f();
96
+ }
97
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
98
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
99
+ }
100
+ return true;
101
+ }
102
+ }]);
103
+ }();
104
+ UnfreezeDisposition.RequiredProperties = ["transaction_id"];
105
+
106
+ /**
107
+ * The UUID of the transaction whose funds are to be unfrozen.
108
+ * @member {String} transaction_id
109
+ */
110
+ UnfreezeDisposition.prototype['transaction_id'] = undefined;
111
+ var _default = exports["default"] = UnfreezeDisposition;
@@ -0,0 +1,150 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The UpdateAddressBookParam model module.
29
+ * @module model/UpdateAddressBookParam
30
+ */
31
+ var UpdateAddressBookParam = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>UpdateAddressBookParam</code>.
34
+ * The request body to update Address Book.
35
+ * @alias module:model/UpdateAddressBookParam
36
+ * @param chain_ids {Array.<String>} A list of chain IDs.
37
+ */
38
+ function UpdateAddressBookParam(chain_ids) {
39
+ _classCallCheck(this, UpdateAddressBookParam);
40
+ UpdateAddressBookParam.initialize(this, chain_ids);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(UpdateAddressBookParam, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj, chain_ids) {
51
+ obj['chain_ids'] = chain_ids;
52
+ }
53
+
54
+ /**
55
+ * Constructs a <code>UpdateAddressBookParam</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/UpdateAddressBookParam} obj Optional instance to populate.
59
+ * @return {module:model/UpdateAddressBookParam} The populated <code>UpdateAddressBookParam</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UpdateAddressBookParam();
66
+ if (data.hasOwnProperty('chain_ids')) {
67
+ obj['chain_ids'] = _ApiClient["default"].convertToType(data['chain_ids'], ['String']);
68
+ }
69
+ if (data.hasOwnProperty('memo')) {
70
+ obj['memo'] = _ApiClient["default"].convertToType(data['memo'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('label')) {
73
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('email')) {
76
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
77
+ }
78
+ }
79
+ return obj;
80
+ }
81
+
82
+ /**
83
+ * Validates the JSON data with respect to <code>UpdateAddressBookParam</code>.
84
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
85
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateAddressBookParam</code>.
86
+ */
87
+ }, {
88
+ key: "validateJSON",
89
+ value: function validateJSON(data) {
90
+ // check to make sure all required properties are present in the JSON string
91
+ var _iterator = _createForOfIteratorHelper(UpdateAddressBookParam.RequiredProperties),
92
+ _step;
93
+ try {
94
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
95
+ var property = _step.value;
96
+ if (!data.hasOwnProperty(property)) {
97
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
98
+ }
99
+ }
100
+ // ensure the json data is an array
101
+ } catch (err) {
102
+ _iterator.e(err);
103
+ } finally {
104
+ _iterator.f();
105
+ }
106
+ if (!Array.isArray(data['chain_ids'])) {
107
+ throw new Error("Expected the field `chain_ids` to be an array in the JSON data but got " + data['chain_ids']);
108
+ }
109
+ // ensure the json data is a string
110
+ if (data['memo'] && !(typeof data['memo'] === 'string' || data['memo'] instanceof String)) {
111
+ throw new Error("Expected the field `memo` to be a primitive type in the JSON string but got " + data['memo']);
112
+ }
113
+ // ensure the json data is a string
114
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
115
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
116
+ }
117
+ // ensure the json data is a string
118
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
119
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
120
+ }
121
+ return true;
122
+ }
123
+ }]);
124
+ }();
125
+ UpdateAddressBookParam.RequiredProperties = ["chain_ids"];
126
+
127
+ /**
128
+ * A list of chain IDs.
129
+ * @member {Array.<String>} chain_ids
130
+ */
131
+ UpdateAddressBookParam.prototype['chain_ids'] = undefined;
132
+
133
+ /**
134
+ * Optional memo or tag required by some chains.
135
+ * @member {String} memo
136
+ */
137
+ UpdateAddressBookParam.prototype['memo'] = undefined;
138
+
139
+ /**
140
+ * A user-defined label for the address.
141
+ * @member {String} label
142
+ */
143
+ UpdateAddressBookParam.prototype['label'] = undefined;
144
+
145
+ /**
146
+ * Email of the address owner.
147
+ * @member {String} email
148
+ */
149
+ UpdateAddressBookParam.prototype['email'] = undefined;
150
+ var _default = exports["default"] = UpdateAddressBookParam;
@@ -35,11 +35,10 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
35
35
  * The information of Custodial Wallets.
36
36
  * @alias module:model/UpdateCustodialWalletParams
37
37
  * @param wallet_type {module:model/WalletType}
38
- * @param name {String} The wallet name.
39
38
  */
40
- function UpdateCustodialWalletParams(wallet_type, name) {
39
+ function UpdateCustodialWalletParams(wallet_type) {
41
40
  _classCallCheck(this, UpdateCustodialWalletParams);
42
- UpdateCustodialWalletParams.initialize(this, wallet_type, name);
41
+ UpdateCustodialWalletParams.initialize(this, wallet_type);
43
42
  }
44
43
 
45
44
  /**
@@ -49,9 +48,8 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
49
48
  */
50
49
  return _createClass(UpdateCustodialWalletParams, null, [{
51
50
  key: "initialize",
52
- value: function initialize(obj, wallet_type, name) {
51
+ value: function initialize(obj, wallet_type) {
53
52
  obj['wallet_type'] = wallet_type;
54
- obj['name'] = name;
55
53
  }
56
54
 
57
55
  /**
@@ -72,6 +70,9 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
72
70
  if (data.hasOwnProperty('name')) {
73
71
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
74
72
  }
73
+ if (data.hasOwnProperty('enable_auto_sweep')) {
74
+ obj['enable_auto_sweep'] = _ApiClient["default"].convertToType(data['enable_auto_sweep'], 'Boolean');
75
+ }
75
76
  }
76
77
  return obj;
77
78
  }
@@ -107,7 +108,7 @@ var UpdateCustodialWalletParams = /*#__PURE__*/function () {
107
108
  }
108
109
  }]);
109
110
  }();
110
- UpdateCustodialWalletParams.RequiredProperties = ["wallet_type", "name"];
111
+ UpdateCustodialWalletParams.RequiredProperties = ["wallet_type"];
111
112
 
112
113
  /**
113
114
  * @member {module:model/WalletType} wallet_type
@@ -119,4 +120,10 @@ UpdateCustodialWalletParams.prototype['wallet_type'] = undefined;
119
120
  * @member {String} name
120
121
  */
121
122
  UpdateCustodialWalletParams.prototype['name'] = undefined;
123
+
124
+ /**
125
+ * Enable the auto sweep feature for the wallet
126
+ * @member {Boolean} enable_auto_sweep
127
+ */
128
+ UpdateCustodialWalletParams.prototype['enable_auto_sweep'] = undefined;
122
129
  var _default = exports["default"] = UpdateCustodialWalletParams;
@@ -93,7 +93,7 @@ var UpdateMerchantByIdRequest = /*#__PURE__*/function () {
93
93
  UpdateMerchantByIdRequest.prototype['name'] = undefined;
94
94
 
95
95
  /**
96
- * The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions.
96
+ * The developer fee rate applied to this merchant. Expressed as a string in decimal format where \"0.1\" represents 10%. This fee is deducted from the payment amount and only applies to top-up transactions. If you are a merchant (directly serving the payer), you do not need to configure the developer fee rate.
97
97
  * @member {String} developer_fee_rate
98
98
  */
99
99
  UpdateMerchantByIdRequest.prototype['developer_fee_rate'] = undefined;