@cobo/cobo-waas2 1.26.0 → 1.28.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 (262) hide show
  1. package/README.md +96 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +2 -2
  4. package/dist/api/AutoSweepApi.js +4 -4
  5. package/dist/api/DevelopersWebhooksApi.js +2 -2
  6. package/dist/api/OAuthApi.js +4 -4
  7. package/dist/api/PaymentApi.js +1847 -294
  8. package/dist/api/StakingsApi.js +44 -2
  9. package/dist/api/SwapsApi.js +2 -2
  10. package/dist/api/TransactionsApi.js +6 -6
  11. package/dist/api/WalletsApi.js +14 -14
  12. package/dist/index.js +420 -7
  13. package/dist/model/AddressesEventData.js +8 -3
  14. package/dist/model/AllocationRecord.js +193 -0
  15. package/dist/model/AllocationRequest.js +167 -0
  16. package/dist/model/BabylonCreateStakingExpansion.js +157 -0
  17. package/dist/model/BabylonStakeExtra.js +26 -0
  18. package/dist/model/BabylonStakingRegistration.js +1 -1
  19. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  20. package/dist/model/BankAccountStatus.js +66 -0
  21. package/dist/model/BatchAllocation.js +190 -0
  22. package/dist/model/BatchAllocationDetail.js +188 -0
  23. package/dist/model/ChainsEventData.js +8 -3
  24. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  25. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  26. package/dist/model/ContractCallDestination.js +72 -10
  27. package/dist/model/ContractCallDestinationType.js +10 -0
  28. package/dist/model/CosmosContractCallDestination.js +0 -13
  29. package/dist/model/Counterparty.js +195 -0
  30. package/dist/model/CounterpartyDetail.js +228 -0
  31. package/dist/model/CounterpartyType.js +61 -0
  32. package/dist/model/CounterpartyWalletAddressDetail.js +192 -0
  33. package/dist/model/CreateBatchAllocationRequest.js +142 -0
  34. package/dist/model/CreateCounterpartyRequest.js +193 -0
  35. package/dist/model/CreateCounterpartyWalletAddressRequest.js +140 -0
  36. package/dist/model/CreateCustodialWalletParams.js +1 -1
  37. package/dist/model/CreateDestinationBankAccount.js +257 -0
  38. package/dist/model/CreateDestinationBankAccountRequest.js +272 -0
  39. package/dist/model/CreateDestinationRequest.js +235 -0
  40. package/dist/model/CreateDestinationWalletAddressRequest.js +140 -0
  41. package/dist/model/CreateExchangeWalletParams.js +2 -2
  42. package/dist/model/CreateKeyShareHolder.js +1 -1
  43. package/dist/model/CreateMerchantRequest.js +1 -1
  44. package/dist/model/CreateMpcWalletParams.js +2 -2
  45. package/dist/model/CreatePaymentOrderRequest.js +115 -68
  46. package/dist/model/CreatePayoutRequest.js +192 -0
  47. package/dist/model/CreateRefundRequest.js +3 -3
  48. package/dist/model/CreateSafeWalletParams.js +1 -1
  49. package/dist/model/CreateSettlement.js +14 -1
  50. package/dist/model/CreateSettlementRequestRequest.js +1 -1
  51. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  52. package/dist/model/CreateStakeActivityExtra.js +12 -0
  53. package/dist/model/{ReceivedAmountPerAddress.js → CreateWalletAddress.js} +31 -32
  54. package/dist/model/CreateWalletParams.js +1 -1
  55. package/dist/model/DeleteCounterparty200Response.js +110 -0
  56. package/dist/model/DeleteCounterpartyWalletAddress200Response.js +110 -0
  57. package/dist/model/DeleteDestination200Response.js +110 -0
  58. package/dist/model/DeleteDestinationBankAccount200Response.js +110 -0
  59. package/dist/model/DeleteDestinationWalletAddress200Response.js +110 -0
  60. package/dist/model/Destination.js +208 -0
  61. package/dist/model/DestinationBankAccount.js +301 -0
  62. package/dist/model/DestinationBankAccountDetail.js +394 -0
  63. package/dist/model/DestinationDetail.js +272 -0
  64. package/dist/model/DestinationType.js +61 -0
  65. package/dist/model/DestinationWalletAddressDetail.js +205 -0
  66. package/dist/model/EnableDestinationWhitelistRequest.js +106 -0
  67. package/dist/model/EvmContractCallDestination.js +2 -2
  68. package/dist/model/ExchangeRate.js +140 -0
  69. package/dist/model/GetExchangeRate200Response.js +2 -2
  70. package/dist/model/IntermediaryBankInfo.js +140 -0
  71. package/dist/model/Link.js +4 -4
  72. package/dist/model/LinkDisplayInfo.js +15 -2
  73. package/dist/model/ListAllocations200Response.js +123 -0
  74. package/dist/model/ListBatchAllocations200Response.js +123 -0
  75. package/dist/model/ListCounterparties200Response.js +123 -0
  76. package/dist/model/ListCounterpartyWalletAddress200Response.js +123 -0
  77. package/dist/model/ListDestinationBankAccounts200Response.js +123 -0
  78. package/dist/model/ListDestinationWalletAddresses200Response.js +123 -0
  79. package/dist/model/ListDestinations200Response.js +123 -0
  80. package/dist/model/ListPayoutItems200Response.js +123 -0
  81. package/dist/model/ListPayouts200Response.js +123 -0
  82. package/dist/model/MPCVaultEventData.js +8 -3
  83. package/dist/model/MerchantBalance.js +28 -2
  84. package/dist/model/Order.js +135 -102
  85. package/dist/model/OrderLinkBusinessInfo.js +151 -87
  86. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
  87. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
  88. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  89. package/dist/model/PaymentAllocationAmount.js +125 -0
  90. package/dist/model/PaymentOrderEventData.js +198 -145
  91. package/dist/model/PaymentPayout.js +250 -0
  92. package/dist/model/PaymentPayoutDetail.js +248 -0
  93. package/dist/model/PaymentPayoutEvent.js +433 -0
  94. package/dist/model/PaymentPayoutItem.js +298 -0
  95. package/dist/model/PaymentPayoutItemDetail.js +298 -0
  96. package/dist/model/PaymentPayoutItemStatus.js +76 -0
  97. package/dist/model/PaymentPayoutParam.js +165 -0
  98. package/dist/model/PaymentPayoutStatus.js +81 -0
  99. package/dist/model/PaymentRefundEventData.js +8 -3
  100. package/dist/model/PaymentSettlementEvent.js +8 -3
  101. package/dist/model/PaymentSourceType.js +61 -0
  102. package/dist/model/PaymentTransaction.js +32 -0
  103. package/dist/model/PaymentTransactionEventData.js +10 -5
  104. package/dist/model/PspBalance.js +28 -2
  105. package/dist/model/QueryDestinationWhitelistEnabled200Response.js +106 -0
  106. package/dist/model/RefundLinkBusinessInfo.js +6 -6
  107. package/dist/model/SettlementDetail.js +13 -0
  108. package/dist/model/Stakings.js +33 -6
  109. package/dist/model/SuspendedTokenEventData.js +8 -3
  110. package/dist/model/SwapActivity.js +1 -1
  111. package/dist/model/SwapActivityDetail.js +2 -2
  112. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  113. package/dist/model/TokenListingEventData.js +8 -3
  114. package/dist/model/TokensEventData.js +8 -3
  115. package/dist/model/Transaction.js +1 -1
  116. package/dist/model/TransactionCosmosContractDestination.js +0 -13
  117. package/dist/model/TransactionDestination.js +38 -10
  118. package/dist/model/TransactionDestinationType.js +5 -0
  119. package/dist/model/TransactionDetail.js +2 -2
  120. package/dist/model/TransactionDetails.js +2 -2
  121. package/dist/model/TransactionTronContractDestination.js +150 -0
  122. package/dist/model/TransactionWebhookEventData.js +10 -5
  123. package/dist/model/TronContractCallDestination.js +150 -0
  124. package/dist/model/UpdateCounterpartyByIdRequest.js +160 -0
  125. package/dist/model/UpdateDestinationBankAccount.js +257 -0
  126. package/dist/model/UpdateDestinationByIdRequest.js +173 -0
  127. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  128. package/dist/model/WalletAddress.js +151 -0
  129. package/dist/model/WalletInfoEventData.js +8 -3
  130. package/dist/model/WebhookEventData.js +107 -43
  131. package/dist/model/WebhookEventDataType.js +7 -2
  132. package/dist/model/WebhookEventType.js +10 -0
  133. package/docs/AddressBooksApi.md +1 -1
  134. package/docs/AddressesEventData.md +3 -1
  135. package/docs/AllocationRecord.md +15 -0
  136. package/docs/AllocationRequest.md +13 -0
  137. package/docs/AutoSweepApi.md +2 -2
  138. package/docs/BabylonCreateStakingExpansion.md +12 -0
  139. package/docs/BabylonStakeExtra.md +2 -0
  140. package/docs/BalanceUpdateInfoEventData.md +3 -1
  141. package/docs/BankAccountStatus.md +14 -0
  142. package/docs/BatchAllocation.md +14 -0
  143. package/docs/BatchAllocationDetail.md +14 -0
  144. package/docs/ChainsEventData.md +3 -1
  145. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  146. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  147. package/docs/ContractCallDestination.md +3 -2
  148. package/docs/ContractCallDestinationType.md +4 -0
  149. package/docs/CosmosContractCallDestination.md +0 -1
  150. package/docs/Counterparty.md +16 -0
  151. package/docs/CounterpartyDetail.md +17 -0
  152. package/docs/CounterpartyType.md +12 -0
  153. package/docs/CounterpartyWalletAddressDetail.md +15 -0
  154. package/docs/CreateBatchAllocationRequest.md +10 -0
  155. package/docs/CreateCounterpartyRequest.md +14 -0
  156. package/docs/CreateCounterpartyWalletAddressRequest.md +11 -0
  157. package/docs/CreateCustodialWalletParams.md +1 -1
  158. package/docs/CreateDestinationBankAccount.md +19 -0
  159. package/docs/CreateDestinationBankAccountRequest.md +20 -0
  160. package/docs/CreateDestinationRequest.md +16 -0
  161. package/docs/CreateDestinationWalletAddressRequest.md +11 -0
  162. package/docs/CreateExchangeWalletParams.md +1 -1
  163. package/docs/CreateKeyShareHolder.md +1 -1
  164. package/docs/CreateMerchantRequest.md +1 -1
  165. package/docs/CreateMpcWalletParams.md +1 -1
  166. package/docs/CreatePaymentOrderRequest.md +15 -11
  167. package/docs/CreatePayoutRequest.md +14 -0
  168. package/docs/CreateRefundRequest.md +3 -3
  169. package/docs/CreateSafeWalletParams.md +1 -1
  170. package/docs/CreateSettlement.md +2 -1
  171. package/docs/CreateSettlementRequestRequest.md +1 -1
  172. package/docs/CreateSmartContractWalletParams.md +1 -1
  173. package/docs/CreateStakeActivityExtra.md +2 -0
  174. package/docs/CreateWalletAddress.md +10 -0
  175. package/docs/CreateWalletParams.md +1 -1
  176. package/docs/DeleteCounterparty200Response.md +9 -0
  177. package/docs/DeleteCounterpartyWalletAddress200Response.md +9 -0
  178. package/docs/DeleteDestination200Response.md +9 -0
  179. package/docs/DeleteDestinationBankAccount200Response.md +9 -0
  180. package/docs/DeleteDestinationWalletAddress200Response.md +9 -0
  181. package/docs/Destination.md +17 -0
  182. package/docs/DestinationBankAccount.md +23 -0
  183. package/docs/DestinationBankAccountDetail.md +30 -0
  184. package/docs/DestinationDetail.md +19 -0
  185. package/docs/DestinationType.md +12 -0
  186. package/docs/DestinationWalletAddressDetail.md +16 -0
  187. package/docs/DevelopersWebhooksApi.md +1 -1
  188. package/docs/EnableDestinationWhitelistRequest.md +9 -0
  189. package/docs/EvmContractCallDestination.md +1 -1
  190. package/docs/ExchangeRate.md +11 -0
  191. package/docs/GetExchangeRate200Response.md +1 -1
  192. package/docs/IntermediaryBankInfo.md +11 -0
  193. package/docs/Link.md +2 -2
  194. package/docs/LinkDisplayInfo.md +3 -2
  195. package/docs/ListAllocations200Response.md +10 -0
  196. package/docs/ListBatchAllocations200Response.md +10 -0
  197. package/docs/ListCounterparties200Response.md +10 -0
  198. package/docs/ListCounterpartyWalletAddress200Response.md +10 -0
  199. package/docs/ListDestinationBankAccounts200Response.md +10 -0
  200. package/docs/ListDestinationWalletAddresses200Response.md +10 -0
  201. package/docs/ListDestinations200Response.md +10 -0
  202. package/docs/ListPayoutItems200Response.md +10 -0
  203. package/docs/ListPayouts200Response.md +10 -0
  204. package/docs/MPCVaultEventData.md +3 -1
  205. package/docs/MerchantBalance.md +4 -2
  206. package/docs/OAuthApi.md +2 -2
  207. package/docs/Order.md +16 -13
  208. package/docs/OrderLinkBusinessInfo.md +11 -7
  209. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  210. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
  211. package/docs/PaymentAddressUpdateEventData.md +3 -1
  212. package/docs/PaymentAllocationAmount.md +10 -0
  213. package/docs/PaymentApi.md +2153 -395
  214. package/docs/PaymentOrderEventData.md +19 -14
  215. package/docs/PaymentPayout.md +19 -0
  216. package/docs/PaymentPayoutDetail.md +19 -0
  217. package/docs/PaymentPayoutEvent.md +65 -0
  218. package/docs/PaymentPayoutItem.md +22 -0
  219. package/docs/PaymentPayoutItemDetail.md +22 -0
  220. package/docs/PaymentPayoutItemStatus.md +18 -0
  221. package/docs/PaymentPayoutParam.md +13 -0
  222. package/docs/PaymentPayoutStatus.md +20 -0
  223. package/docs/PaymentRefundEventData.md +3 -1
  224. package/docs/PaymentSettlementEvent.md +3 -1
  225. package/docs/PaymentSourceType.md +12 -0
  226. package/docs/PaymentTransaction.md +2 -0
  227. package/docs/PaymentTransactionEventData.md +4 -2
  228. package/docs/PspBalance.md +4 -2
  229. package/docs/QueryDestinationWhitelistEnabled200Response.md +9 -0
  230. package/docs/RefundLinkBusinessInfo.md +4 -4
  231. package/docs/SettlementDetail.md +1 -0
  232. package/docs/Stakings.md +2 -1
  233. package/docs/StakingsApi.md +54 -1
  234. package/docs/SuspendedTokenEventData.md +3 -1
  235. package/docs/SwapActivity.md +1 -1
  236. package/docs/SwapActivityDetail.md +1 -1
  237. package/docs/SwapsApi.md +1 -1
  238. package/docs/TSSRequestWebhookEventData.md +3 -1
  239. package/docs/TokenListingEventData.md +3 -1
  240. package/docs/TokensEventData.md +3 -1
  241. package/docs/Transaction.md +1 -1
  242. package/docs/TransactionCosmosContractDestination.md +0 -1
  243. package/docs/TransactionDestination.md +2 -2
  244. package/docs/TransactionDestinationType.md +2 -0
  245. package/docs/TransactionDetail.md +1 -1
  246. package/docs/TransactionDetails.md +1 -1
  247. package/docs/TransactionTronContractDestination.md +12 -0
  248. package/docs/TransactionWebhookEventData.md +4 -2
  249. package/docs/TransactionsApi.md +3 -3
  250. package/docs/TronContractCallDestination.md +12 -0
  251. package/docs/UpdateCounterpartyByIdRequest.md +13 -0
  252. package/docs/UpdateDestinationBankAccount.md +19 -0
  253. package/docs/UpdateDestinationByIdRequest.md +14 -0
  254. package/docs/UpdateMerchantByIdRequest.md +1 -1
  255. package/docs/WalletAddress.md +12 -0
  256. package/docs/WalletInfoEventData.md +3 -1
  257. package/docs/WalletsApi.md +7 -7
  258. package/docs/WebhookEventData.md +22 -14
  259. package/docs/WebhookEventDataType.md +3 -1
  260. package/docs/WebhookEventType.md +4 -0
  261. package/package.json +1 -1
  262. package/docs/ReceivedAmountPerAddress.md +0 -10
@@ -30,6 +30,7 @@ var _TransactionTransferToAddressDestination = _interopRequireDefault(require(".
30
30
  var _TransactionTransferToAddressDestinationAccountOutput = _interopRequireDefault(require("./TransactionTransferToAddressDestinationAccountOutput"));
31
31
  var _TransactionTransferToAddressDestinationUtxoOutputsInner = _interopRequireDefault(require("./TransactionTransferToAddressDestinationUtxoOutputsInner"));
32
32
  var _TransactionTransferToWalletDestination = _interopRequireDefault(require("./TransactionTransferToWalletDestination"));
33
+ var _TransactionTronContractDestination = _interopRequireDefault(require("./TransactionTronContractDestination"));
33
34
  var _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
34
35
  var _WalletType = _interopRequireDefault(require("./WalletType"));
35
36
  var _TransactionDestination;
@@ -58,7 +59,7 @@ var TransactionDestination = /*#__PURE__*/function () {
58
59
  /**
59
60
  * Constructs a new <code>TransactionDestination</code>.
60
61
  * @alias module:model/TransactionDestination
61
- * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
62
+ * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination|module:model/TransactionTronContractDestination)} instance The actual instance to initialize TransactionDestination.
62
63
  */
63
64
  function TransactionDestination() {
64
65
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -139,6 +140,10 @@ var TransactionDestination = /*#__PURE__*/function () {
139
140
  this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
140
141
  match++;
141
142
  break;
143
+ case "TRON_Contract":
144
+ this.actualInstance = _TransactionTronContractDestination["default"].constructFromObject(instance);
145
+ match++;
146
+ break;
142
147
  default:
143
148
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
144
149
  break;
@@ -467,13 +472,36 @@ var TransactionDestination = /*#__PURE__*/function () {
467
472
  // json data failed to deserialize into TransactionStellarDestination
468
473
  errorMessages.push("Failed to construct TransactionStellarDestination: " + err);
469
474
  }
475
+ try {
476
+ if (instance instanceof _TransactionTronContractDestination["default"]) {
477
+ this.actualInstance = instance;
478
+ } else if (!!_TransactionTronContractDestination["default"].validateJSON && _TransactionTronContractDestination["default"].validateJSON(instance)) {
479
+ // plain JS object
480
+ // create TransactionTronContractDestination from JS object
481
+ this.actualInstance = _TransactionTronContractDestination["default"].constructFromObject(instance);
482
+ } else {
483
+ if (_TransactionTronContractDestination["default"].constructFromObject(instance)) {
484
+ if (!!_TransactionTronContractDestination["default"].constructFromObject(instance).toJSON) {
485
+ if (_TransactionTronContractDestination["default"].constructFromObject(instance).toJSON()) {
486
+ this.actualInstance = _TransactionTronContractDestination["default"].constructFromObject(instance);
487
+ }
488
+ } else {
489
+ this.actualInstance = _TransactionTronContractDestination["default"].constructFromObject(instance);
490
+ }
491
+ }
492
+ }
493
+ match++;
494
+ } catch (err) {
495
+ // json data failed to deserialize into TransactionTronContractDestination
496
+ errorMessages.push("Failed to construct TransactionTronContractDestination: " + err);
497
+ }
470
498
 
471
499
  // if (match > 1) {
472
- // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
500
+ // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination, TransactionTronContractDestination. Input: " + JSON.stringify(instance));
473
501
  // } else
474
502
  if (match === 0) {
475
503
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
476
- // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
504
+ // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination, TransactionTronContractDestination. Details: " +
477
505
  // errorMessages.join(", "));
478
506
  return;
479
507
  } else {// only 1 match
@@ -492,16 +520,16 @@ var TransactionDestination = /*#__PURE__*/function () {
492
520
  key: "getActualInstance",
493
521
  value:
494
522
  /**
495
- * Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
496
- * @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
523
+ * Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>, <code>TransactionTronContractDestination</code>.
524
+ * @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination|module:model/TransactionTronContractDestination)} The actual instance.
497
525
  */
498
526
  function getActualInstance() {
499
527
  return this.actualInstance;
500
528
  }
501
529
 
502
530
  /**
503
- * Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
504
- * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
531
+ * Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>, <code>TransactionTronContractDestination</code>.
532
+ * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination|module:model/TransactionTronContractDestination)} obj The actual instance.
505
533
  */
506
534
  }, {
507
535
  key: "setActualInstance",
@@ -587,13 +615,13 @@ TransactionDestination.prototype['amount'] = undefined;
587
615
  TransactionDestination.prototype['address'] = undefined;
588
616
 
589
617
  /**
590
- * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
618
+ * The transfer amount. For example, if you trade 1.5 TRX, then the value is `1.5`.
591
619
  * @member {String} value
592
620
  */
593
621
  TransactionDestination.prototype['value'] = undefined;
594
622
 
595
623
  /**
596
- * The data used to invoke a specific function or method within the specified contract at the destination address, with a maximum length of 65,000 characters.
624
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
597
625
  * @member {String} calldata
598
626
  */
599
627
  TransactionDestination.prototype['calldata'] = undefined;
@@ -690,5 +718,5 @@ TransactionDestination.prototype['message_cosmos_adr36'] = undefined;
690
718
  * @member {module:model/TransactionStellarContractParam} contract_param
691
719
  */
692
720
  TransactionDestination.prototype['contract_param'] = undefined;
693
- TransactionDestination.OneOf = ["TransactionBIP137Destination", "TransactionBIP322Destination", "TransactionCosmosAdr36Destination", "TransactionCosmosContractDestination", "TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionSolContractDestination", "TransactionStellarDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
721
+ TransactionDestination.OneOf = ["TransactionBIP137Destination", "TransactionBIP322Destination", "TransactionCosmosAdr36Destination", "TransactionCosmosContractDestination", "TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionSolContractDestination", "TransactionStellarDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination", "TransactionTronContractDestination"];
694
722
  var _default = exports["default"] = TransactionDestination;
@@ -65,6 +65,11 @@ var TransactionDestinationType = exports["default"] = /*#__PURE__*/function () {
65
65
  * @const
66
66
  */
67
67
  _defineProperty(this, "COSMOS_Contract", "COSMOS_Contract");
68
+ /**
69
+ * value: "TRON_Contract"
70
+ * @const
71
+ */
72
+ _defineProperty(this, "TRON_Contract", "TRON_Contract");
68
73
  /**
69
74
  * value: "EVM_EIP_191_Signature"
70
75
  * @const
@@ -501,7 +501,7 @@ TransactionDetail.prototype['description'] = undefined;
501
501
  TransactionDetail.prototype['is_loop'] = undefined;
502
502
 
503
503
  /**
504
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
504
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
505
505
  * @member {Array.<String>} cobo_category
506
506
  */
507
507
  TransactionDetail.prototype['cobo_category'] = undefined;
@@ -655,7 +655,7 @@ _Transaction["default"].prototype['description'] = undefined;
655
655
  */
656
656
  _Transaction["default"].prototype['is_loop'] = undefined;
657
657
  /**
658
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
658
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
659
659
  * @member {Array.<String>} cobo_category
660
660
  */
661
661
  _Transaction["default"].prototype['cobo_category'] = undefined;
@@ -593,7 +593,7 @@ TransactionDetails.prototype['description'] = undefined;
593
593
  TransactionDetails.prototype['is_loop'] = undefined;
594
594
 
595
595
  /**
596
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
596
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
597
597
  * @member {Array.<String>} cobo_category
598
598
  */
599
599
  TransactionDetails.prototype['cobo_category'] = undefined;
@@ -792,7 +792,7 @@ _Transaction["default"].prototype['description'] = undefined;
792
792
  */
793
793
  _Transaction["default"].prototype['is_loop'] = undefined;
794
794
  /**
795
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
795
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
796
796
  * @member {Array.<String>} cobo_category
797
797
  */
798
798
  _Transaction["default"].prototype['cobo_category'] = undefined;
@@ -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
+ var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
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 TransactionTronContractDestination model module.
30
+ * @module model/TransactionTronContractDestination
31
+ */
32
+ var TransactionTronContractDestination = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TransactionTronContractDestination</code>.
35
+ * Information about the transaction destination type &#x60;TRON_Contract&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
36
+ * @alias module:model/TransactionTronContractDestination
37
+ * @param destination_type {module:model/TransactionDestinationType}
38
+ * @param address {String} The destination address.
39
+ * @param calldata {String} The data that is used to invoke a specific function or method within the specified contract at the destination address.
40
+ */
41
+ function TransactionTronContractDestination(destination_type, address, calldata) {
42
+ _classCallCheck(this, TransactionTronContractDestination);
43
+ TransactionTronContractDestination.initialize(this, destination_type, address, calldata);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(TransactionTronContractDestination, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, destination_type, address, calldata) {
54
+ obj['destination_type'] = destination_type;
55
+ obj['address'] = address;
56
+ obj['calldata'] = calldata;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>TransactionTronContractDestination</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/TransactionTronContractDestination} obj Optional instance to populate.
64
+ * @return {module:model/TransactionTronContractDestination} The populated <code>TransactionTronContractDestination</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new TransactionTronContractDestination();
71
+ if (data.hasOwnProperty('destination_type')) {
72
+ obj['destination_type'] = _TransactionDestinationType["default"].constructFromObject(data['destination_type']);
73
+ }
74
+ if (data.hasOwnProperty('address')) {
75
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('value')) {
78
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('calldata')) {
81
+ obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>TransactionTronContractDestination</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>TransactionTronContractDestination</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(TransactionTronContractDestination.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 a string
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
112
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
116
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
120
+ throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
121
+ }
122
+ return true;
123
+ }
124
+ }]);
125
+ }();
126
+ TransactionTronContractDestination.RequiredProperties = ["destination_type", "address", "calldata"];
127
+
128
+ /**
129
+ * @member {module:model/TransactionDestinationType} destination_type
130
+ */
131
+ TransactionTronContractDestination.prototype['destination_type'] = undefined;
132
+
133
+ /**
134
+ * The destination address.
135
+ * @member {String} address
136
+ */
137
+ TransactionTronContractDestination.prototype['address'] = undefined;
138
+
139
+ /**
140
+ * The transfer amount. For example, if you trade 1.5 TRX, then the value is `1.5`.
141
+ * @member {String} value
142
+ */
143
+ TransactionTronContractDestination.prototype['value'] = undefined;
144
+
145
+ /**
146
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
147
+ * @member {String} calldata
148
+ */
149
+ TransactionTronContractDestination.prototype['calldata'] = undefined;
150
+ var _default = exports["default"] = TransactionTronContractDestination;
@@ -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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
348
348
  * @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
349
349
  */
350
350
  TransactionWebhookEventData.prototype['data_type'] = undefined;
@@ -495,7 +495,7 @@ TransactionWebhookEventData.prototype['description'] = undefined;
495
495
  TransactionWebhookEventData.prototype['is_loop'] = undefined;
496
496
 
497
497
  /**
498
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
498
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
499
499
  * @member {Array.<String>} cobo_category
500
500
  */
501
501
  TransactionWebhookEventData.prototype['cobo_category'] = 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. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings 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. - `PaymentPayout`: The payment payout event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
529
529
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
530
530
  */
531
531
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -650,7 +650,7 @@ _Transaction["default"].prototype['description'] = undefined;
650
650
  */
651
651
  _Transaction["default"].prototype['is_loop'] = undefined;
652
652
  /**
653
- * The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
653
+ * The transaction category defined by Cobo. For more details, refer to [Cobo-defined categories](/v2/guides/transactions/manage-transactions#cobo-defined-categories).
654
654
  * @member {Array.<String>} cobo_category
655
655
  */
656
656
  _Transaction["default"].prototype['cobo_category'] = undefined;
@@ -745,6 +745,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
745
745
  * @const
746
746
  */
747
747
  "PaymentAddressUpdate": "PaymentAddressUpdate",
748
+ /**
749
+ * value: "PaymentPayout"
750
+ * @const
751
+ */
752
+ "PaymentPayout": "PaymentPayout",
748
753
  /**
749
754
  * value: "BalanceUpdateInfo"
750
755
  * @const
@@ -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
+ var _ContractCallDestinationType = _interopRequireDefault(require("./ContractCallDestinationType"));
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 TronContractCallDestination model module.
30
+ * @module model/TronContractCallDestination
31
+ */
32
+ var TronContractCallDestination = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TronContractCallDestination</code>.
35
+ * The information about the transaction destination. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
36
+ * @alias module:model/TronContractCallDestination
37
+ * @param destination_type {module:model/ContractCallDestinationType}
38
+ * @param address {String} The destination address.
39
+ * @param calldata {String} The data that is used to invoke a specific function or method within the specified contract at the destination address.
40
+ */
41
+ function TronContractCallDestination(destination_type, address, calldata) {
42
+ _classCallCheck(this, TronContractCallDestination);
43
+ TronContractCallDestination.initialize(this, destination_type, address, calldata);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(TronContractCallDestination, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, destination_type, address, calldata) {
54
+ obj['destination_type'] = destination_type;
55
+ obj['address'] = address;
56
+ obj['calldata'] = calldata;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>TronContractCallDestination</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/TronContractCallDestination} obj Optional instance to populate.
64
+ * @return {module:model/TronContractCallDestination} The populated <code>TronContractCallDestination</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new TronContractCallDestination();
71
+ if (data.hasOwnProperty('destination_type')) {
72
+ obj['destination_type'] = _ContractCallDestinationType["default"].constructFromObject(data['destination_type']);
73
+ }
74
+ if (data.hasOwnProperty('address')) {
75
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('value')) {
78
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('calldata')) {
81
+ obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
82
+ }
83
+ }
84
+ return obj;
85
+ }
86
+
87
+ /**
88
+ * Validates the JSON data with respect to <code>TronContractCallDestination</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>TronContractCallDestination</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(TronContractCallDestination.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 a string
106
+ } catch (err) {
107
+ _iterator.e(err);
108
+ } finally {
109
+ _iterator.f();
110
+ }
111
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
112
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
116
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
120
+ throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
121
+ }
122
+ return true;
123
+ }
124
+ }]);
125
+ }();
126
+ TronContractCallDestination.RequiredProperties = ["destination_type", "address", "calldata"];
127
+
128
+ /**
129
+ * @member {module:model/ContractCallDestinationType} destination_type
130
+ */
131
+ TronContractCallDestination.prototype['destination_type'] = undefined;
132
+
133
+ /**
134
+ * The destination address.
135
+ * @member {String} address
136
+ */
137
+ TronContractCallDestination.prototype['address'] = undefined;
138
+
139
+ /**
140
+ * The transfer amount. For example, if you trade 1.5 TRX, then the value is `1.5`.
141
+ * @member {String} value
142
+ */
143
+ TronContractCallDestination.prototype['value'] = undefined;
144
+
145
+ /**
146
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
147
+ * @member {String} calldata
148
+ */
149
+ TronContractCallDestination.prototype['calldata'] = undefined;
150
+ var _default = exports["default"] = TronContractCallDestination;