@cobo/cobo-waas2 1.22.0 → 1.24.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 (285) hide show
  1. package/README.md +81 -17
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +200 -21
  4. package/dist/api/AutoSweepApi.js +26 -26
  5. package/dist/api/ComplianceApi.js +214 -0
  6. package/dist/api/FeeStationApi.js +47 -4
  7. package/dist/api/PaymentApi.js +204 -57
  8. package/dist/api/SwapsApi.js +374 -0
  9. package/dist/api/TokenizationApi.js +2 -2
  10. package/dist/api/TransactionsApi.js +18 -18
  11. package/dist/api/WalletsApi.js +4 -4
  12. package/dist/api/WalletsMPCWalletsApi.js +2 -2
  13. package/dist/index.js +329 -21
  14. package/dist/model/AddressBook.js +12 -12
  15. package/dist/model/AddressInfo.js +13 -0
  16. package/dist/model/AddressesEventData.js +8 -3
  17. package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
  18. package/dist/model/ApprovalDetail.js +4 -4
  19. package/dist/model/ApprovalResult.js +6 -11
  20. package/dist/model/ApprovalTemplate.js +4 -4
  21. package/dist/model/ApprovalTransactionResult.js +8 -8
  22. package/dist/model/ApprovalUserDetail.js +95 -24
  23. package/dist/model/AutoSweepTask.js +9 -9
  24. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  25. package/dist/model/BridgingFee.js +136 -0
  26. package/dist/model/ChainInfo.js +14 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CommissionFee.js +110 -0
  29. package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
  30. package/dist/model/ContractCallDestination.js +48 -8
  31. package/dist/model/ContractCallDestinationType.js +5 -0
  32. package/dist/model/CreateAddressBookParam.js +165 -0
  33. package/dist/model/CreateAddressBooks201Response.js +107 -0
  34. package/dist/model/CreateAddressBooksParam.js +128 -0
  35. package/dist/model/CreateAutoSweepTask.js +5 -5
  36. package/dist/model/CreateCustodialWalletParams.js +1 -1
  37. package/dist/model/CreateExchangeWalletParams.js +2 -2
  38. package/dist/model/CreateMerchantRequest.js +14 -7
  39. package/dist/model/CreateMpcWalletParams.js +2 -2
  40. package/dist/model/CreatePaymentOrderRequest.js +17 -4
  41. package/dist/model/CreateRefundRequest.js +2 -2
  42. package/dist/model/CreateSafeWalletParams.js +1 -1
  43. package/dist/model/CreateSettlement.js +3 -3
  44. package/dist/model/CreateSettlementRequestRequest.js +39 -0
  45. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  46. package/dist/model/CreateSwapActivityRequest.js +193 -0
  47. package/dist/model/CreateSweepToAddress.js +1 -1
  48. package/dist/model/CreateWalletParams.js +1 -1
  49. package/dist/model/CustodialTransferDestination.js +1 -1
  50. package/dist/model/DeleteAddressBookById201Response.js +106 -0
  51. package/dist/model/DispositionEventData.js +170 -0
  52. package/dist/model/DispositionQueryResponse.js +146 -0
  53. package/dist/model/DispositionResponse.js +122 -0
  54. package/dist/model/DispositionStatus.js +116 -0
  55. package/dist/model/DispositionType.js +66 -0
  56. package/dist/model/EstimateContractCallFeeParams.js +1 -1
  57. package/dist/model/EstimateFeeParams.js +1 -1
  58. package/dist/model/EstimateTransferFeeParams.js +1 -1
  59. package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
  60. package/dist/model/EstimatedEvmLegacyFee.js +1 -1
  61. package/dist/model/EstimatedFILFee.js +1 -1
  62. package/dist/model/EstimatedFixedFee.js +1 -1
  63. package/dist/model/EstimatedSOLFee.js +1 -1
  64. package/dist/model/EstimatedUtxoFee.js +1 -1
  65. package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
  66. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
  67. package/dist/model/FeeStationGasStationType.js +61 -0
  68. package/dist/model/IsolateDisposition.js +167 -0
  69. package/dist/model/ListSwapActivities200Response.js +123 -0
  70. package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
  71. package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
  72. package/dist/model/MPCVaultEventData.js +8 -3
  73. package/dist/model/Merchant.js +10 -1
  74. package/dist/model/MerchantBalance.js +7 -7
  75. package/dist/model/MessageSignDestination.js +8 -70
  76. package/dist/model/OrgInfo.js +9 -0
  77. package/dist/model/OtcFee.js +123 -0
  78. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  79. package/dist/model/PaymentEstimateFee.js +125 -0
  80. package/dist/model/PaymentEstimateFee201Response.js +107 -0
  81. package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
  82. package/dist/model/PaymentEstimatedFee.js +173 -0
  83. package/dist/model/PaymentFeeType.js +71 -0
  84. package/dist/model/PaymentOrderEventData.js +8 -3
  85. package/dist/model/PaymentRefundEventData.js +30 -5
  86. package/dist/model/PaymentSettlementEvent.js +70 -9
  87. package/dist/model/PaymentTransactionEventData.js +8 -3
  88. package/dist/model/PaymentWalletBalance.js +6 -6
  89. package/dist/model/PspBalance.js +7 -7
  90. package/dist/model/ReceivedAmountPerAddress.js +5 -5
  91. package/dist/model/Refund.js +17 -1
  92. package/dist/model/RefundDisposition.js +167 -0
  93. package/dist/model/RoleDetail.js +41 -6
  94. package/dist/model/SettleRequestStatus.js +5 -0
  95. package/dist/model/Settlement.js +45 -3
  96. package/dist/model/SettlementDetail.js +33 -1
  97. package/dist/model/SettlementInfo.js +7 -7
  98. package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
  99. package/dist/model/SolContractCallDestination.js +30 -0
  100. package/dist/model/StellarContractCallContractParam.js +164 -0
  101. package/dist/model/StellarContractCallContractType.js +56 -0
  102. package/dist/model/StellarContractCallDestination.js +125 -0
  103. package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
  104. package/dist/model/StellarContractCallTrustLineParam.js +133 -0
  105. package/dist/model/SupportedToken.js +9 -0
  106. package/dist/model/SuspendedTokenEventData.js +8 -3
  107. package/dist/model/SwapActivity.js +9 -9
  108. package/dist/model/SwapActivityApprovers.js +1 -1
  109. package/dist/model/SwapActivityDetail.js +34 -18
  110. package/dist/model/SwapActivitySigners.js +2 -2
  111. package/dist/model/SwapActivityTimeline.js +5 -5
  112. package/dist/model/SwapEstimateFee.js +147 -0
  113. package/dist/model/SwapQuote.js +18 -31
  114. package/dist/model/SwapReceivingTransaction.js +133 -0
  115. package/dist/model/SwapToken.js +9 -9
  116. package/dist/model/SweepToAddress.js +1 -1
  117. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  118. package/dist/model/TokenListingEventData.js +8 -3
  119. package/dist/model/TokensEventData.js +8 -3
  120. package/dist/model/TransactionCoboCategory.js +5 -0
  121. package/dist/model/TransactionDestination.js +48 -8
  122. package/dist/model/TransactionDestinationType.js +5 -0
  123. package/dist/model/TransactionEvmEip1559Fee.js +1 -1
  124. package/dist/model/TransactionEvmLegacyFee.js +1 -1
  125. package/dist/model/TransactionFILFee.js +1 -1
  126. package/dist/model/TransactionFixedFee.js +1 -1
  127. package/dist/model/TransactionFuelingInfo.js +13 -0
  128. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  129. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  130. package/dist/model/TransactionRequestFILFee.js +1 -1
  131. package/dist/model/TransactionRequestSOLFee.js +1 -1
  132. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  133. package/dist/model/TransactionSOLFee.js +1 -1
  134. package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
  135. package/dist/model/TransactionSolContractDestination.js +30 -0
  136. package/dist/model/TransactionStellarContractParam.js +164 -0
  137. package/dist/model/TransactionStellarContractType.js +56 -0
  138. package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
  139. package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
  140. package/dist/model/TransactionStellarTrustLineParam.js +133 -0
  141. package/dist/model/TransactionUtxoFee.js +1 -1
  142. package/dist/model/TransactionWebhookEventData.js +8 -3
  143. package/dist/model/UnfreezeDisposition.js +111 -0
  144. package/dist/model/UpdateAddressBookParam.js +150 -0
  145. package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
  146. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  147. package/dist/model/UpdateTopUpAddress.js +4 -6
  148. package/dist/model/WalletInfoEventData.js +8 -3
  149. package/dist/model/WalletSetup.js +66 -0
  150. package/dist/model/WebhookEventData.js +81 -11
  151. package/dist/model/WebhookEventDataType.js +7 -2
  152. package/dist/model/WebhookEventType.js +5 -0
  153. package/docs/AddressBook.md +7 -7
  154. package/docs/AddressBooksApi.md +218 -8
  155. package/docs/AddressInfo.md +1 -0
  156. package/docs/AddressesEventData.md +3 -1
  157. package/docs/AddressesEventDataAllOfAddresses.md +1 -0
  158. package/docs/ApprovalDetail.md +3 -3
  159. package/docs/ApprovalResult.md +3 -5
  160. package/docs/ApprovalTemplate.md +3 -3
  161. package/docs/ApprovalTransactionResult.md +4 -4
  162. package/docs/ApprovalUserDetail.md +15 -9
  163. package/docs/AutoSweepApi.md +18 -18
  164. package/docs/AutoSweepTask.md +5 -5
  165. package/docs/BalanceUpdateInfoEventData.md +3 -1
  166. package/docs/BridgingFee.md +11 -0
  167. package/docs/ChainInfo.md +2 -1
  168. package/docs/ChainsEventData.md +3 -1
  169. package/docs/CommissionFee.md +9 -0
  170. package/docs/ComplianceApi.md +218 -0
  171. package/docs/ComplianceDispositionUpdateEventData.md +56 -0
  172. package/docs/ContractCallDestination.md +2 -0
  173. package/docs/ContractCallDestinationType.md +2 -0
  174. package/docs/CreateAddressBookParam.md +13 -0
  175. package/docs/CreateAddressBooks201Response.md +9 -0
  176. package/docs/CreateAddressBooksParam.md +9 -0
  177. package/docs/CreateAutoSweepTask.md +2 -2
  178. package/docs/CreateCustodialWalletParams.md +1 -1
  179. package/docs/CreateExchangeWalletParams.md +1 -1
  180. package/docs/CreateMerchantRequest.md +3 -2
  181. package/docs/CreateMpcWalletParams.md +1 -1
  182. package/docs/CreatePaymentOrderRequest.md +4 -3
  183. package/docs/CreateRefundRequest.md +1 -1
  184. package/docs/CreateSafeWalletParams.md +1 -1
  185. package/docs/CreateSettlement.md +3 -3
  186. package/docs/CreateSettlementRequestRequest.md +3 -0
  187. package/docs/CreateSmartContractWalletParams.md +1 -1
  188. package/docs/CreateSwapActivityRequest.md +15 -0
  189. package/docs/CreateWalletParams.md +1 -1
  190. package/docs/DeleteAddressBookById201Response.md +9 -0
  191. package/docs/DispositionEventData.md +14 -0
  192. package/docs/DispositionQueryResponse.md +12 -0
  193. package/docs/DispositionResponse.md +10 -0
  194. package/docs/DispositionStatus.md +34 -0
  195. package/docs/DispositionType.md +14 -0
  196. package/docs/EstimateContractCallFeeParams.md +1 -1
  197. package/docs/EstimateFeeParams.md +1 -1
  198. package/docs/EstimateTransferFeeParams.md +1 -1
  199. package/docs/FeeStationApi.md +53 -0
  200. package/docs/FeeStationCheckFeeStationUsage.md +14 -0
  201. package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
  202. package/docs/FeeStationGasStationType.md +12 -0
  203. package/docs/IsolateDisposition.md +13 -0
  204. package/docs/ListSwapActivities200Response.md +10 -0
  205. package/docs/ListSwapEnabledTokens200Response.md +10 -0
  206. package/docs/ListTopUpPayerAccounts200Response.md +10 -0
  207. package/docs/MPCVaultEventData.md +3 -1
  208. package/docs/Merchant.md +2 -1
  209. package/docs/MerchantBalance.md +6 -6
  210. package/docs/MessageSignDestination.md +0 -1
  211. package/docs/OrgInfo.md +1 -0
  212. package/docs/OtcFee.md +10 -0
  213. package/docs/PaymentAddressUpdateEventData.md +3 -1
  214. package/docs/PaymentApi.md +203 -28
  215. package/docs/PaymentEstimateFee.md +10 -0
  216. package/docs/PaymentEstimateFee201Response.md +9 -0
  217. package/docs/PaymentEstimateFeeRequest.md +10 -0
  218. package/docs/PaymentEstimatedFee.md +13 -0
  219. package/docs/PaymentFeeType.md +16 -0
  220. package/docs/PaymentOrderEventData.md +3 -1
  221. package/docs/PaymentRefundEventData.md +5 -2
  222. package/docs/PaymentSettlementEvent.md +9 -4
  223. package/docs/PaymentTransactionEventData.md +3 -1
  224. package/docs/PaymentWalletBalance.md +5 -5
  225. package/docs/PspBalance.md +6 -6
  226. package/docs/ReceivedAmountPerAddress.md +2 -2
  227. package/docs/Refund.md +2 -1
  228. package/docs/RefundDisposition.md +13 -0
  229. package/docs/RoleDetail.md +4 -1
  230. package/docs/SettleRequestStatus.md +2 -0
  231. package/docs/Settlement.md +6 -3
  232. package/docs/SettlementDetail.md +3 -1
  233. package/docs/SettlementInfo.md +6 -6
  234. package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
  235. package/docs/SolContractCallDestination.md +1 -0
  236. package/docs/StellarContractCallContractParam.md +11 -0
  237. package/docs/StellarContractCallContractType.md +10 -0
  238. package/docs/StellarContractCallDestination.md +10 -0
  239. package/docs/StellarContractCallTrustLineOperationType.md +10 -0
  240. package/docs/StellarContractCallTrustLineParam.md +11 -0
  241. package/docs/SupportedToken.md +1 -0
  242. package/docs/SuspendedTokenEventData.md +3 -1
  243. package/docs/SwapActivity.md +9 -9
  244. package/docs/SwapActivityDetail.md +10 -9
  245. package/docs/SwapActivitySigners.md +1 -1
  246. package/docs/SwapActivityTimeline.md +3 -3
  247. package/docs/SwapEstimateFee.md +12 -0
  248. package/docs/SwapQuote.md +10 -11
  249. package/docs/SwapReceivingTransaction.md +11 -0
  250. package/docs/SwapToken.md +6 -6
  251. package/docs/SwapsApi.md +356 -0
  252. package/docs/TSSRequestWebhookEventData.md +3 -1
  253. package/docs/TokenListingEventData.md +3 -1
  254. package/docs/TokenizationApi.md +2 -2
  255. package/docs/TokensEventData.md +3 -1
  256. package/docs/TransactionCoboCategory.md +2 -0
  257. package/docs/TransactionDestination.md +2 -0
  258. package/docs/TransactionDestinationType.md +2 -0
  259. package/docs/TransactionFuelingInfo.md +1 -0
  260. package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
  261. package/docs/TransactionSolContractDestination.md +1 -0
  262. package/docs/TransactionStellarContractParam.md +11 -0
  263. package/docs/TransactionStellarContractType.md +10 -0
  264. package/docs/TransactionStellarDestination.md +10 -0
  265. package/docs/TransactionStellarTrustLineOperationType.md +10 -0
  266. package/docs/TransactionStellarTrustLineParam.md +11 -0
  267. package/docs/TransactionWebhookEventData.md +3 -1
  268. package/docs/TransactionsApi.md +11 -11
  269. package/docs/UnfreezeDisposition.md +9 -0
  270. package/docs/UpdateAddressBookParam.md +12 -0
  271. package/docs/UpdateBankAccountByIdRequest.md +9 -0
  272. package/docs/UpdateMerchantByIdRequest.md +1 -1
  273. package/docs/UpdateTopUpAddress.md +1 -1
  274. package/docs/WalletInfoEventData.md +3 -1
  275. package/docs/WalletSetup.md +14 -0
  276. package/docs/WalletsApi.md +2 -2
  277. package/docs/WalletsMPCWalletsApi.md +1 -1
  278. package/docs/WebhookEventData.md +12 -3
  279. package/docs/WebhookEventDataType.md +3 -1
  280. package/docs/WebhookEventType.md +2 -0
  281. package/package.json +1 -1
  282. package/dist/model/ApprovalShowInfo.js +0 -140
  283. package/docs/ApprovalShowInfo.md +0 -13
  284. package/docs/BTCEIP191MessageSignDestination.md +0 -10
  285. package/docs/RawMessageSignDestination.md +0 -10
@@ -7,8 +7,11 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ContractCallDestinationType = _interopRequireDefault(require("./ContractCallDestinationType"));
9
9
  var _EvmContractCallDestination = _interopRequireDefault(require("./EvmContractCallDestination"));
10
+ var _SolContractCallAddressLookupTableAccount = _interopRequireDefault(require("./SolContractCallAddressLookupTableAccount"));
10
11
  var _SolContractCallDestination = _interopRequireDefault(require("./SolContractCallDestination"));
11
12
  var _SolContractCallInstruction = _interopRequireDefault(require("./SolContractCallInstruction"));
13
+ var _StellarContractCallContractParam = _interopRequireDefault(require("./StellarContractCallContractParam"));
14
+ var _StellarContractCallDestination = _interopRequireDefault(require("./StellarContractCallDestination"));
12
15
  var _ContractCallDestination;
13
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
17
  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); }
@@ -35,7 +38,7 @@ var ContractCallDestination = /*#__PURE__*/function () {
35
38
  /**
36
39
  * Constructs a new <code>ContractCallDestination</code>.
37
40
  * @alias module:model/ContractCallDestination
38
- * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
41
+ * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
39
42
  */
40
43
  function ContractCallDestination() {
41
44
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -64,6 +67,10 @@ var ContractCallDestination = /*#__PURE__*/function () {
64
67
  this.actualInstance = _SolContractCallDestination["default"].constructFromObject(instance);
65
68
  match++;
66
69
  break;
70
+ case "STELLAR_Contract":
71
+ this.actualInstance = _StellarContractCallDestination["default"].constructFromObject(instance);
72
+ match++;
73
+ break;
67
74
  default:
68
75
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
69
76
  break;
@@ -116,13 +123,36 @@ var ContractCallDestination = /*#__PURE__*/function () {
116
123
  // json data failed to deserialize into SolContractCallDestination
117
124
  errorMessages.push("Failed to construct SolContractCallDestination: " + err);
118
125
  }
126
+ try {
127
+ if (instance instanceof _StellarContractCallDestination["default"]) {
128
+ this.actualInstance = instance;
129
+ } else if (!!_StellarContractCallDestination["default"].validateJSON && _StellarContractCallDestination["default"].validateJSON(instance)) {
130
+ // plain JS object
131
+ // create StellarContractCallDestination from JS object
132
+ this.actualInstance = _StellarContractCallDestination["default"].constructFromObject(instance);
133
+ } else {
134
+ if (_StellarContractCallDestination["default"].constructFromObject(instance)) {
135
+ if (!!_StellarContractCallDestination["default"].constructFromObject(instance).toJSON) {
136
+ if (_StellarContractCallDestination["default"].constructFromObject(instance).toJSON()) {
137
+ this.actualInstance = _StellarContractCallDestination["default"].constructFromObject(instance);
138
+ }
139
+ } else {
140
+ this.actualInstance = _StellarContractCallDestination["default"].constructFromObject(instance);
141
+ }
142
+ }
143
+ }
144
+ match++;
145
+ } catch (err) {
146
+ // json data failed to deserialize into StellarContractCallDestination
147
+ errorMessages.push("Failed to construct StellarContractCallDestination: " + err);
148
+ }
119
149
 
120
150
  // if (match > 1) {
121
- // throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination. Input: " + JSON.stringify(instance));
151
+ // throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination. Input: " + JSON.stringify(instance));
122
152
  // } else
123
153
  if (match === 0) {
124
154
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
125
- // throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination. Details: " +
155
+ // throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination, StellarContractCallDestination. Details: " +
126
156
  // errorMessages.join(", "));
127
157
  return;
128
158
  } else {// only 1 match
@@ -141,16 +171,16 @@ var ContractCallDestination = /*#__PURE__*/function () {
141
171
  key: "getActualInstance",
142
172
  value:
143
173
  /**
144
- * Gets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>.
145
- * @return {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} The actual instance.
174
+ * Gets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>.
175
+ * @return {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} The actual instance.
146
176
  */
147
177
  function getActualInstance() {
148
178
  return this.actualInstance;
149
179
  }
150
180
 
151
181
  /**
152
- * Sets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>.
153
- * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} obj The actual instance.
182
+ * Sets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>, <code>StellarContractCallDestination</code>.
183
+ * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination|module:model/StellarContractCallDestination)} obj The actual instance.
154
184
  */
155
185
  }, {
156
186
  key: "setActualInstance",
@@ -200,5 +230,15 @@ ContractCallDestination.prototype['calldata'] = undefined;
200
230
  * @member {Array.<module:model/SolContractCallInstruction>} instructions
201
231
  */
202
232
  ContractCallDestination.prototype['instructions'] = undefined;
203
- ContractCallDestination.OneOf = ["EvmContractCallDestination", "SolContractCallDestination"];
233
+
234
+ /**
235
+ * @member {Array.<module:model/SolContractCallAddressLookupTableAccount>} address_lookup_table_accounts
236
+ */
237
+ ContractCallDestination.prototype['address_lookup_table_accounts'] = undefined;
238
+
239
+ /**
240
+ * @member {module:model/StellarContractCallContractParam} contract_param
241
+ */
242
+ ContractCallDestination.prototype['contract_param'] = undefined;
243
+ ContractCallDestination.OneOf = ["EvmContractCallDestination", "SolContractCallDestination", "StellarContractCallDestination"];
204
244
  var _default = exports["default"] = ContractCallDestination;
@@ -40,6 +40,11 @@ var ContractCallDestinationType = exports["default"] = /*#__PURE__*/function ()
40
40
  * @const
41
41
  */
42
42
  _defineProperty(this, "SOL_Contract", "SOL_Contract");
43
+ /**
44
+ * value: "STELLAR_Contract"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "STELLAR_Contract", "STELLAR_Contract");
43
48
  /**
44
49
  * value: "unknown_default_open_api"
45
50
  * @const
@@ -0,0 +1,165 @@
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 CreateAddressBookParam model module.
29
+ * @module model/CreateAddressBookParam
30
+ */
31
+ var CreateAddressBookParam = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>CreateAddressBookParam</code>.
34
+ * The request body to add an address to your Address Book.
35
+ * @alias module:model/CreateAddressBookParam
36
+ * @param chain_ids {Array.<String>} A list of chain IDs.
37
+ * @param address {String} The wallet address.
38
+ */
39
+ function CreateAddressBookParam(chain_ids, address) {
40
+ _classCallCheck(this, CreateAddressBookParam);
41
+ CreateAddressBookParam.initialize(this, chain_ids, address);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(CreateAddressBookParam, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, chain_ids, address) {
52
+ obj['chain_ids'] = chain_ids;
53
+ obj['address'] = address;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>CreateAddressBookParam</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/CreateAddressBookParam} obj Optional instance to populate.
61
+ * @return {module:model/CreateAddressBookParam} The populated <code>CreateAddressBookParam</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new CreateAddressBookParam();
68
+ if (data.hasOwnProperty('chain_ids')) {
69
+ obj['chain_ids'] = _ApiClient["default"].convertToType(data['chain_ids'], ['String']);
70
+ }
71
+ if (data.hasOwnProperty('address')) {
72
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('memo')) {
75
+ obj['memo'] = _ApiClient["default"].convertToType(data['memo'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('label')) {
78
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('email')) {
81
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>CreateAddressBookParam</code>.
89
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateAddressBookParam</code>.
91
+ */
92
+ }, {
93
+ key: "validateJSON",
94
+ value: function validateJSON(data) {
95
+ // check to make sure all required properties are present in the JSON string
96
+ var _iterator = _createForOfIteratorHelper(CreateAddressBookParam.RequiredProperties),
97
+ _step;
98
+ try {
99
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
100
+ var property = _step.value;
101
+ if (!data.hasOwnProperty(property)) {
102
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
103
+ }
104
+ }
105
+ // ensure the json data is an array
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (!Array.isArray(data['chain_ids'])) {
112
+ throw new Error("Expected the field `chain_ids` to be an array in the JSON data but got " + data['chain_ids']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
116
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['memo'] && !(typeof data['memo'] === 'string' || data['memo'] instanceof String)) {
120
+ throw new Error("Expected the field `memo` to be a primitive type in the JSON string but got " + data['memo']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
124
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
128
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
129
+ }
130
+ return true;
131
+ }
132
+ }]);
133
+ }();
134
+ CreateAddressBookParam.RequiredProperties = ["chain_ids", "address"];
135
+
136
+ /**
137
+ * A list of chain IDs.
138
+ * @member {Array.<String>} chain_ids
139
+ */
140
+ CreateAddressBookParam.prototype['chain_ids'] = undefined;
141
+
142
+ /**
143
+ * The wallet address.
144
+ * @member {String} address
145
+ */
146
+ CreateAddressBookParam.prototype['address'] = undefined;
147
+
148
+ /**
149
+ * Optional memo or tag required by some chains.
150
+ * @member {String} memo
151
+ */
152
+ CreateAddressBookParam.prototype['memo'] = undefined;
153
+
154
+ /**
155
+ * A user-defined label for the address.
156
+ * @member {String} label
157
+ */
158
+ CreateAddressBookParam.prototype['label'] = undefined;
159
+
160
+ /**
161
+ * The email of the address owner.
162
+ * @member {String} email
163
+ */
164
+ CreateAddressBookParam.prototype['email'] = undefined;
165
+ var _default = exports["default"] = CreateAddressBookParam;
@@ -0,0 +1,107 @@
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 _AddressBook = _interopRequireDefault(require("./AddressBook"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ 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; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The CreateAddressBooks201Response model module.
30
+ * @module model/CreateAddressBooks201Response
31
+ */
32
+ var CreateAddressBooks201Response = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>CreateAddressBooks201Response</code>.
35
+ * @alias module:model/CreateAddressBooks201Response
36
+ */
37
+ function CreateAddressBooks201Response() {
38
+ _classCallCheck(this, CreateAddressBooks201Response);
39
+ CreateAddressBooks201Response.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(CreateAddressBooks201Response, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj) {}
50
+
51
+ /**
52
+ * Constructs a <code>CreateAddressBooks201Response</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
55
+ * @param {module:model/CreateAddressBooks201Response} obj Optional instance to populate.
56
+ * @return {module:model/CreateAddressBooks201Response} The populated <code>CreateAddressBooks201Response</code> instance.
57
+ */
58
+ }, {
59
+ key: "constructFromObject",
60
+ value: function constructFromObject(data, obj) {
61
+ if (data) {
62
+ obj = obj || new CreateAddressBooks201Response();
63
+ if (data.hasOwnProperty('data')) {
64
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AddressBook["default"]]);
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>CreateAddressBooks201Response</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateAddressBooks201Response</code>.
74
+ */
75
+ }, {
76
+ key: "validateJSON",
77
+ value: function validateJSON(data) {
78
+ if (data['data']) {
79
+ // data not null
80
+ // ensure the json data is an array
81
+ if (!Array.isArray(data['data'])) {
82
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
83
+ }
84
+ // validate the optional field `data` (array)
85
+ var _iterator = _createForOfIteratorHelper(data['data']),
86
+ _step;
87
+ try {
88
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
89
+ var item = _step.value;
90
+ _AddressBook["default"].validateJSON(item);
91
+ }
92
+ } catch (err) {
93
+ _iterator.e(err);
94
+ } finally {
95
+ _iterator.f();
96
+ }
97
+ ;
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ /**
104
+ * @member {Array.<module:model/AddressBook>} data
105
+ */
106
+ CreateAddressBooks201Response.prototype['data'] = undefined;
107
+ var _default = exports["default"] = CreateAddressBooks201Response;
@@ -0,0 +1,128 @@
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 _CreateAddressBookParam = _interopRequireDefault(require("./CreateAddressBookParam"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ 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; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The CreateAddressBooksParam model module.
30
+ * @module model/CreateAddressBooksParam
31
+ */
32
+ var CreateAddressBooksParam = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>CreateAddressBooksParam</code>.
35
+ * The request body to add addresses in batches to your Address Book.
36
+ * @alias module:model/CreateAddressBooksParam
37
+ * @param address_books {Array.<module:model/CreateAddressBookParam>}
38
+ */
39
+ function CreateAddressBooksParam(address_books) {
40
+ _classCallCheck(this, CreateAddressBooksParam);
41
+ CreateAddressBooksParam.initialize(this, address_books);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(CreateAddressBooksParam, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, address_books) {
52
+ obj['address_books'] = address_books;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>CreateAddressBooksParam</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/CreateAddressBooksParam} obj Optional instance to populate.
60
+ * @return {module:model/CreateAddressBooksParam} The populated <code>CreateAddressBooksParam</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new CreateAddressBooksParam();
67
+ if (data.hasOwnProperty('address_books')) {
68
+ obj['address_books'] = _ApiClient["default"].convertToType(data['address_books'], [_CreateAddressBookParam["default"]]);
69
+ }
70
+ }
71
+ return obj;
72
+ }
73
+
74
+ /**
75
+ * Validates the JSON data with respect to <code>CreateAddressBooksParam</code>.
76
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
77
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateAddressBooksParam</code>.
78
+ */
79
+ }, {
80
+ key: "validateJSON",
81
+ value: function validateJSON(data) {
82
+ // check to make sure all required properties are present in the JSON string
83
+ var _iterator = _createForOfIteratorHelper(CreateAddressBooksParam.RequiredProperties),
84
+ _step;
85
+ try {
86
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
87
+ var property = _step.value;
88
+ if (!data.hasOwnProperty(property)) {
89
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
90
+ }
91
+ }
92
+ } catch (err) {
93
+ _iterator.e(err);
94
+ } finally {
95
+ _iterator.f();
96
+ }
97
+ if (data['address_books']) {
98
+ // data not null
99
+ // ensure the json data is an array
100
+ if (!Array.isArray(data['address_books'])) {
101
+ throw new Error("Expected the field `address_books` to be an array in the JSON data but got " + data['address_books']);
102
+ }
103
+ // validate the optional field `address_books` (array)
104
+ var _iterator2 = _createForOfIteratorHelper(data['address_books']),
105
+ _step2;
106
+ try {
107
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
108
+ var item = _step2.value;
109
+ _CreateAddressBookParam["default"].validateJSON(item);
110
+ }
111
+ } catch (err) {
112
+ _iterator2.e(err);
113
+ } finally {
114
+ _iterator2.f();
115
+ }
116
+ ;
117
+ }
118
+ return true;
119
+ }
120
+ }]);
121
+ }();
122
+ CreateAddressBooksParam.RequiredProperties = ["address_books"];
123
+
124
+ /**
125
+ * @member {Array.<module:model/CreateAddressBookParam>} address_books
126
+ */
127
+ CreateAddressBooksParam.prototype['address_books'] = undefined;
128
+ var _default = exports["default"] = CreateAddressBooksParam;
@@ -31,10 +31,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  var CreateAutoSweepTask = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>CreateAutoSweepTask</code>.
34
- * The sweep to address information.
34
+ * Wallet and token information required to create an auto-sweep task.
35
35
  * @alias module:model/CreateAutoSweepTask
36
- * @param wallet_id {String} The wallet ID.
37
- * @param token_id {String} The token ID of the swept 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).
36
+ * @param wallet_id {String} ID of the wallet where the token will be swept.
37
+ * @param token_id {String} ID of the token to be swept. 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).
38
38
  */
39
39
  function CreateAutoSweepTask(wallet_id, token_id) {
40
40
  _classCallCheck(this, CreateAutoSweepTask);
@@ -113,13 +113,13 @@ var CreateAutoSweepTask = /*#__PURE__*/function () {
113
113
  CreateAutoSweepTask.RequiredProperties = ["wallet_id", "token_id"];
114
114
 
115
115
  /**
116
- * The wallet ID.
116
+ * ID of the wallet where the token will be swept.
117
117
  * @member {String} wallet_id
118
118
  */
119
119
  CreateAutoSweepTask.prototype['wallet_id'] = undefined;
120
120
 
121
121
  /**
122
- * The token ID of the swept 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).
122
+ * ID of the token to be swept. 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).
123
123
  * @member {String} token_id
124
124
  */
125
125
  CreateAutoSweepTask.prototype['token_id'] = undefined;
@@ -135,7 +135,7 @@ CreateCustodialWalletParams.prototype['wallet_type'] = undefined;
135
135
  CreateCustodialWalletParams.prototype['wallet_subtype'] = undefined;
136
136
 
137
137
  /**
138
- * Enable the auto sweep feature for the wallet. This parameter only applies to MPC and Web3 wallets.
138
+ * Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets.
139
139
  * @member {Boolean} enable_auto_sweep
140
140
  */
141
141
  CreateCustodialWalletParams.prototype['enable_auto_sweep'] = undefined;
@@ -197,7 +197,7 @@ CreateExchangeWalletParams.prototype['wallet_type'] = undefined;
197
197
  CreateExchangeWalletParams.prototype['wallet_subtype'] = undefined;
198
198
 
199
199
  /**
200
- * Enable the auto sweep feature for the wallet. This parameter only applies to MPC and Web3 wallets.
200
+ * Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets.
201
201
  * @member {Boolean} enable_auto_sweep
202
202
  */
203
203
  CreateExchangeWalletParams.prototype['enable_auto_sweep'] = undefined;
@@ -264,7 +264,7 @@ _CreateCustodialWalletParams["default"].prototype['wallet_type'] = undefined;
264
264
  */
265
265
  _CreateCustodialWalletParams["default"].prototype['wallet_subtype'] = undefined;
266
266
  /**
267
- * Enable the auto sweep feature for the wallet. This parameter only applies to MPC and Web3 wallets.
267
+ * Enable the auto-sweep feature for the wallet. This parameter only applies to MPC Wallets and Web3 Wallets.
268
268
  * @member {Boolean} enable_auto_sweep
269
269
  */
270
270
  _CreateCustodialWalletParams["default"].prototype['enable_auto_sweep'] = undefined;