@cobo/cobo-waas2 1.29.0 → 1.30.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 (132) hide show
  1. package/README.md +24 -9
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/ComplianceApi.js +2 -2
  4. package/dist/api/GraphQLApi.js +85 -0
  5. package/dist/api/PaymentApi.js +218 -86
  6. package/dist/api/SwapsApi.js +3 -0
  7. package/dist/api/WalletsApi.js +18 -18
  8. package/dist/index.js +112 -28
  9. package/dist/model/AddressesEventData.js +8 -3
  10. package/dist/model/{AllocationRecord.js → AllocationItem.js} +42 -42
  11. package/dist/model/{AllocationRequest.js → AllocationParam.js} +33 -33
  12. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  13. package/dist/model/BatchAllocation.js +11 -11
  14. package/dist/model/BatchAllocationDetail.js +15 -17
  15. package/dist/model/BridgingFee.js +3 -3
  16. package/dist/model/ChainsEventData.js +8 -3
  17. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  18. package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
  19. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  20. package/dist/model/ContractCallParams.js +1 -1
  21. package/dist/model/CreateBatchAllocationRequest.js +17 -17
  22. package/dist/model/CreateBulkSendRequest.js +167 -0
  23. package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
  24. package/dist/model/CreateKyaScreeningsBody.js +3 -3
  25. package/dist/model/CreatePaymentOrderRequest.js +7 -5
  26. package/dist/model/CreatePayoutRequest.js +33 -26
  27. package/dist/model/CreateTopUpAddresses.js +139 -0
  28. package/dist/model/CreateTopUpAddresses201Response.js +107 -0
  29. package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
  30. package/dist/model/{ListPayoutItems200Response.js → ListBulkSendItems200Response.js} +22 -22
  31. package/dist/model/MPCVaultEventData.js +8 -3
  32. package/dist/model/OrderLinkBusinessInfo.js +10 -4
  33. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  34. package/dist/model/PaymentBulkSend.js +182 -0
  35. package/dist/model/PaymentBulkSendEvent.js +359 -0
  36. package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
  37. package/dist/model/PaymentBulkSendItem.js +190 -0
  38. package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
  39. package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
  40. package/dist/model/PaymentBulkSendStatus.js +81 -0
  41. package/dist/model/PaymentEstimateFeeRequest.js +13 -0
  42. package/dist/model/PaymentFeeType.js +15 -0
  43. package/dist/model/PaymentOrderEventData.js +8 -3
  44. package/dist/model/PaymentPayout.js +64 -46
  45. package/dist/model/PaymentPayoutDetail.js +166 -52
  46. package/dist/model/PaymentPayoutEvent.js +149 -82
  47. package/dist/model/PaymentPayoutItem.js +9 -167
  48. package/dist/model/PaymentPayoutParam.js +6 -47
  49. package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
  50. package/dist/model/PaymentPayoutStatus.js +9 -4
  51. package/dist/model/PaymentRefundEventData.js +8 -3
  52. package/dist/model/PaymentSettlementEvent.js +8 -3
  53. package/dist/model/PaymentTransactionEventData.js +8 -3
  54. package/dist/model/SuspendedTokenEventData.js +8 -3
  55. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  56. package/dist/model/TokenListingEventData.js +8 -3
  57. package/dist/model/TokensEventData.js +8 -3
  58. package/dist/model/TransactionCoboCategory.js +5 -0
  59. package/dist/model/TransactionExtraType.js +5 -0
  60. package/dist/model/TransactionWalletConnectInfo.js +146 -0
  61. package/dist/model/TransactionWebhookEventData.js +8 -3
  62. package/dist/model/WalletInfoEventData.js +8 -3
  63. package/dist/model/WebhookEventData.js +76 -17
  64. package/dist/model/WebhookEventDataType.js +7 -2
  65. package/dist/model/WebhookEventType.js +10 -0
  66. package/docs/AddressesEventData.md +3 -1
  67. package/docs/AllocationItem.md +15 -0
  68. package/docs/AllocationParam.md +13 -0
  69. package/docs/BalanceUpdateInfoEventData.md +3 -1
  70. package/docs/BatchAllocation.md +1 -1
  71. package/docs/BatchAllocationDetail.md +1 -1
  72. package/docs/BridgingFee.md +2 -2
  73. package/docs/ChainsEventData.md +3 -1
  74. package/docs/ComplianceApi.md +1 -1
  75. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  76. package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
  77. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  78. package/docs/ContractCallParams.md +1 -1
  79. package/docs/CreateBatchAllocationRequest.md +1 -1
  80. package/docs/CreateBulkSendRequest.md +12 -0
  81. package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
  82. package/docs/CreateKyaScreeningsBody.md +1 -1
  83. package/docs/CreatePaymentOrderRequest.md +2 -2
  84. package/docs/CreatePayoutRequest.md +3 -3
  85. package/docs/CreateTopUpAddresses.md +11 -0
  86. package/docs/CreateTopUpAddresses201Response.md +9 -0
  87. package/docs/GraphQLApi.md +61 -0
  88. package/docs/{ListAllocations200Response.md → ListAllocationItems200Response.md} +2 -2
  89. package/docs/{ListPayoutItems200Response.md → ListBulkSendItems200Response.md} +2 -2
  90. package/docs/MPCVaultEventData.md +3 -1
  91. package/docs/OrderLinkBusinessInfo.md +3 -3
  92. package/docs/PaymentAddressUpdateEventData.md +3 -1
  93. package/docs/PaymentApi.md +231 -76
  94. package/docs/PaymentBulkSend.md +15 -0
  95. package/docs/PaymentBulkSendEvent.md +65 -0
  96. package/docs/PaymentBulkSendExecutionMode.md +12 -0
  97. package/docs/PaymentBulkSendItem.md +15 -0
  98. package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
  99. package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
  100. package/docs/PaymentBulkSendStatus.md +20 -0
  101. package/docs/PaymentEstimateFeeRequest.md +1 -0
  102. package/docs/PaymentFeeType.md +6 -0
  103. package/docs/PaymentOrderEventData.md +3 -1
  104. package/docs/PaymentPayout.md +8 -7
  105. package/docs/PaymentPayoutDetail.md +10 -8
  106. package/docs/PaymentPayoutEvent.md +13 -9
  107. package/docs/PaymentPayoutItem.md +2 -13
  108. package/docs/PaymentPayoutParam.md +1 -4
  109. package/docs/PaymentPayoutRecipientInfo.md +12 -0
  110. package/docs/PaymentPayoutStatus.md +4 -2
  111. package/docs/PaymentRefundEventData.md +3 -1
  112. package/docs/PaymentSettlementEvent.md +3 -1
  113. package/docs/PaymentTransactionEventData.md +3 -1
  114. package/docs/SuspendedTokenEventData.md +3 -1
  115. package/docs/SwapsApi.md +2 -0
  116. package/docs/TSSRequestWebhookEventData.md +3 -1
  117. package/docs/TokenListingEventData.md +3 -1
  118. package/docs/TokensEventData.md +3 -1
  119. package/docs/TransactionCoboCategory.md +2 -0
  120. package/docs/TransactionExtraType.md +2 -0
  121. package/docs/TransactionWalletConnectInfo.md +12 -0
  122. package/docs/TransactionWebhookEventData.md +3 -1
  123. package/docs/WalletInfoEventData.md +3 -1
  124. package/docs/WalletsApi.md +9 -9
  125. package/docs/WebhookEventData.md +15 -8
  126. package/docs/WebhookEventDataType.md +3 -1
  127. package/docs/WebhookEventType.md +4 -0
  128. package/package.json +1 -1
  129. package/dist/model/PaymentPayoutItemDetail.js +0 -299
  130. package/docs/AllocationRecord.md +0 -15
  131. package/docs/AllocationRequest.md +0 -13
  132. package/docs/PaymentPayoutItemDetail.md +0 -22
@@ -75,6 +75,10 @@
75
75
 
76
76
  * `payment.subscription.status.updated` (value: `"payment.subscription.status.updated"`)
77
77
 
78
+ * `payment.charge.status.updated` (value: `"payment.charge.status.updated"`)
79
+
80
+ * `payment.bulk_send.status.updated` (value: `"payment.bulk_send.status.updated"`)
81
+
78
82
  * `compliance.disposition.status.updated` (value: `"compliance.disposition.status.updated"`)
79
83
 
80
84
  * `compliance.kyt.screenings.status.updated` (value: `"compliance.kyt.screenings.status.updated"`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobo/cobo-waas2",
3
- "version": "1.29.0",
3
+ "version": "1.30.0",
4
4
  "description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
5
5
  "license": "GPL 2.0",
6
6
  "main": "dist/index.js",
@@ -1,299 +0,0 @@
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 _BridgingFee = _interopRequireDefault(require("./BridgingFee"));
9
- var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
10
- var _PaymentPayoutStatus = _interopRequireDefault(require("./PaymentPayoutStatus"));
11
- var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
- 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); }
14
- 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; } } }; }
15
- 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; } }
16
- 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; }
17
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
22
- * Cobo Wallet as a Service 2.0
23
- *
24
- * Contact: help@cobo.com
25
- *
26
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
- * https://openapi-generator.tech
28
- * Do not edit the class manually.
29
- *
30
- */
31
- /**
32
- * The PaymentPayoutItemDetail model module.
33
- * @module model/PaymentPayoutItemDetail
34
- */
35
- var PaymentPayoutItemDetail = /*#__PURE__*/function () {
36
- /**
37
- * Constructs a new <code>PaymentPayoutItemDetail</code>.
38
- * @alias module:model/PaymentPayoutItemDetail
39
- * @param payout_item_id {String} The payout item ID generated by Cobo.
40
- * @param payout_id {String} The payout ID generated by Cobo.
41
- * @param source_account {String} The source account from which the payout was made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
42
- * @param amount {String} The amount of the cryptocurrency paid out.
43
- * @param status {module:model/PaymentPayoutStatus}
44
- */
45
- function PaymentPayoutItemDetail(payout_item_id, payout_id, source_account, amount, status) {
46
- _classCallCheck(this, PaymentPayoutItemDetail);
47
- PaymentPayoutItemDetail.initialize(this, payout_item_id, payout_id, source_account, amount, status);
48
- }
49
-
50
- /**
51
- * Initializes the fields of this object.
52
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
- * Only for internal use.
54
- */
55
- return _createClass(PaymentPayoutItemDetail, null, [{
56
- key: "initialize",
57
- value: function initialize(obj, payout_item_id, payout_id, source_account, amount, status) {
58
- obj['payout_item_id'] = payout_item_id;
59
- obj['payout_id'] = payout_id;
60
- obj['source_account'] = source_account;
61
- obj['amount'] = amount;
62
- obj['status'] = status;
63
- }
64
-
65
- /**
66
- * Constructs a <code>PaymentPayoutItemDetail</code> from a plain JavaScript object, optionally creating a new instance.
67
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
- * @param {Object} data The plain JavaScript object bearing properties of interest.
69
- * @param {module:model/PaymentPayoutItemDetail} obj Optional instance to populate.
70
- * @return {module:model/PaymentPayoutItemDetail} The populated <code>PaymentPayoutItemDetail</code> instance.
71
- */
72
- }, {
73
- key: "constructFromObject",
74
- value: function constructFromObject(data, obj) {
75
- if (data) {
76
- obj = obj || new PaymentPayoutItemDetail();
77
- if (data.hasOwnProperty('payout_item_id')) {
78
- obj['payout_item_id'] = _ApiClient["default"].convertToType(data['payout_item_id'], 'String');
79
- }
80
- if (data.hasOwnProperty('payout_id')) {
81
- obj['payout_id'] = _ApiClient["default"].convertToType(data['payout_id'], 'String');
82
- }
83
- if (data.hasOwnProperty('token_id')) {
84
- obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
85
- }
86
- if (data.hasOwnProperty('chain_id')) {
87
- obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
88
- }
89
- if (data.hasOwnProperty('source_account')) {
90
- obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
91
- }
92
- if (data.hasOwnProperty('amount')) {
93
- obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
94
- }
95
- if (data.hasOwnProperty('status')) {
96
- obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
97
- }
98
- if (data.hasOwnProperty('transactions')) {
99
- obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
100
- }
101
- if (data.hasOwnProperty('created_timestamp')) {
102
- obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
103
- }
104
- if (data.hasOwnProperty('updated_timestamp')) {
105
- obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
106
- }
107
- if (data.hasOwnProperty('crypto_address_id')) {
108
- obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
109
- }
110
- if (data.hasOwnProperty('crypto_address')) {
111
- obj['crypto_address'] = _ApiClient["default"].convertToType(data['crypto_address'], 'String');
112
- }
113
- if (data.hasOwnProperty('commission_fee')) {
114
- obj['commission_fee'] = _CommissionFee["default"].constructFromObject(data['commission_fee']);
115
- }
116
- if (data.hasOwnProperty('bridging_fee')) {
117
- obj['bridging_fee'] = _BridgingFee["default"].constructFromObject(data['bridging_fee']);
118
- }
119
- }
120
- return obj;
121
- }
122
-
123
- /**
124
- * Validates the JSON data with respect to <code>PaymentPayoutItemDetail</code>.
125
- * @param {Object} data The plain JavaScript object bearing properties of interest.
126
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentPayoutItemDetail</code>.
127
- */
128
- }, {
129
- key: "validateJSON",
130
- value: function validateJSON(data) {
131
- // check to make sure all required properties are present in the JSON string
132
- var _iterator = _createForOfIteratorHelper(PaymentPayoutItemDetail.RequiredProperties),
133
- _step;
134
- try {
135
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
136
- var property = _step.value;
137
- if (!data.hasOwnProperty(property)) {
138
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
139
- }
140
- }
141
- // ensure the json data is a string
142
- } catch (err) {
143
- _iterator.e(err);
144
- } finally {
145
- _iterator.f();
146
- }
147
- if (data['payout_item_id'] && !(typeof data['payout_item_id'] === 'string' || data['payout_item_id'] instanceof String)) {
148
- throw new Error("Expected the field `payout_item_id` to be a primitive type in the JSON string but got " + data['payout_item_id']);
149
- }
150
- // ensure the json data is a string
151
- if (data['payout_id'] && !(typeof data['payout_id'] === 'string' || data['payout_id'] instanceof String)) {
152
- throw new Error("Expected the field `payout_id` to be a primitive type in the JSON string but got " + data['payout_id']);
153
- }
154
- // ensure the json data is a string
155
- if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
156
- throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
157
- }
158
- // ensure the json data is a string
159
- if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
160
- throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
161
- }
162
- // ensure the json data is a string
163
- if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
164
- throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
165
- }
166
- // ensure the json data is a string
167
- if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
168
- throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
169
- }
170
- if (data['transactions']) {
171
- // data not null
172
- // ensure the json data is an array
173
- if (!Array.isArray(data['transactions'])) {
174
- throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
175
- }
176
- // validate the optional field `transactions` (array)
177
- var _iterator2 = _createForOfIteratorHelper(data['transactions']),
178
- _step2;
179
- try {
180
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
181
- var item = _step2.value;
182
- _PaymentTransaction["default"].validateJSON(item);
183
- }
184
- } catch (err) {
185
- _iterator2.e(err);
186
- } finally {
187
- _iterator2.f();
188
- }
189
- ;
190
- }
191
- // ensure the json data is a string
192
- if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
193
- throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
194
- }
195
- // ensure the json data is a string
196
- if (data['crypto_address'] && !(typeof data['crypto_address'] === 'string' || data['crypto_address'] instanceof String)) {
197
- throw new Error("Expected the field `crypto_address` to be a primitive type in the JSON string but got " + data['crypto_address']);
198
- }
199
- // validate the optional field `commission_fee`
200
- if (data['commission_fee']) {
201
- // data not null
202
- if (!!_CommissionFee["default"].validateJSON) {
203
- _CommissionFee["default"].validateJSON(data['commission_fee']);
204
- }
205
- }
206
- // validate the optional field `bridging_fee`
207
- if (data['bridging_fee']) {
208
- // data not null
209
- if (!!_BridgingFee["default"].validateJSON) {
210
- _BridgingFee["default"].validateJSON(data['bridging_fee']);
211
- }
212
- }
213
- return true;
214
- }
215
- }]);
216
- }();
217
- PaymentPayoutItemDetail.RequiredProperties = ["payout_item_id", "payout_id", "source_account", "amount", "status"];
218
-
219
- /**
220
- * The payout item ID generated by Cobo.
221
- * @member {String} payout_item_id
222
- */
223
- PaymentPayoutItemDetail.prototype['payout_item_id'] = undefined;
224
-
225
- /**
226
- * The payout ID generated by Cobo.
227
- * @member {String} payout_id
228
- */
229
- PaymentPayoutItemDetail.prototype['payout_id'] = undefined;
230
-
231
- /**
232
- * The ID of the cryptocurrency paid out.
233
- * @member {String} token_id
234
- */
235
- PaymentPayoutItemDetail.prototype['token_id'] = undefined;
236
-
237
- /**
238
- * The ID of the blockchain network on which the payout occurred.
239
- * @member {String} chain_id
240
- */
241
- PaymentPayoutItemDetail.prototype['chain_id'] = undefined;
242
-
243
- /**
244
- * The source account from which the payout was made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
245
- * @member {String} source_account
246
- */
247
- PaymentPayoutItemDetail.prototype['source_account'] = undefined;
248
-
249
- /**
250
- * The amount of the cryptocurrency paid out.
251
- * @member {String} amount
252
- */
253
- PaymentPayoutItemDetail.prototype['amount'] = undefined;
254
-
255
- /**
256
- * @member {module:model/PaymentPayoutStatus} status
257
- */
258
- PaymentPayoutItemDetail.prototype['status'] = undefined;
259
-
260
- /**
261
- * An array of transactions associated with this payout item. Each transaction represents a separate blockchain operation related to the payout process.
262
- * @member {Array.<module:model/PaymentTransaction>} transactions
263
- */
264
- PaymentPayoutItemDetail.prototype['transactions'] = undefined;
265
-
266
- /**
267
- * The created time of the payout, represented as a UNIX timestamp in seconds.
268
- * @member {Number} created_timestamp
269
- */
270
- PaymentPayoutItemDetail.prototype['created_timestamp'] = undefined;
271
-
272
- /**
273
- * The updated time of the payout, represented as a UNIX timestamp in seconds.
274
- * @member {Number} updated_timestamp
275
- */
276
- PaymentPayoutItemDetail.prototype['updated_timestamp'] = undefined;
277
-
278
- /**
279
- * The ID of the crypto address used for crypto payouts.
280
- * @member {String} crypto_address_id
281
- */
282
- PaymentPayoutItemDetail.prototype['crypto_address_id'] = undefined;
283
-
284
- /**
285
- * The actual blockchain address to which funds were transferred for crypto payouts.
286
- * @member {String} crypto_address
287
- */
288
- PaymentPayoutItemDetail.prototype['crypto_address'] = undefined;
289
-
290
- /**
291
- * @member {module:model/CommissionFee} commission_fee
292
- */
293
- PaymentPayoutItemDetail.prototype['commission_fee'] = undefined;
294
-
295
- /**
296
- * @member {module:model/BridgingFee} bridging_fee
297
- */
298
- PaymentPayoutItemDetail.prototype['bridging_fee'] = undefined;
299
- var _default = exports["default"] = PaymentPayoutItemDetail;
@@ -1,15 +0,0 @@
1
- # CoboWaas2.AllocationRecord
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **allocation_record_id** | **String** | The allocation record ID generated by Cobo. |
8
- **batch_allocation_id** | **String** | The batch allocation ID generated by Cobo. |
9
- **token_id** | **String** | The ID of the cryptocurrency to allocate. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
10
- **amount** | **String** | The amount of the cryptocurrency to allocate. |
11
- **source_account** | **String** | The source account. | [optional]
12
- **destination_account** | **String** | The destination account. | [optional]
13
- **description** | **String** | The description of the allocation record. |
14
-
15
-
@@ -1,13 +0,0 @@
1
- # CoboWaas2.AllocationRequest
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **token_id** | **String** | The ID of the cryptocurrency you want to allocate. Supported values: - USDC: &#x60;ETH_USDC&#x60;, &#x60;ARBITRUM_USDC&#x60;, &#x60;SOL_USDC&#x60;, &#x60;BASE_USDC&#x60;, &#x60;MATIC_USDC&#x60;, &#x60;BSC_USDC&#x60; - USDT: &#x60;TRON_USDT&#x60;, &#x60;ETH_USDT&#x60;, &#x60;ARBITRUM_USDT&#x60;, &#x60;SOL_USDT&#x60;, &#x60;BASE_USDT&#x60;, &#x60;MATIC_USDT&#x60;, &#x60;BSC_USDT&#x60; |
8
- **amount** | **String** | The amount of the cryptocurrency you want to allocate. |
9
- **source_account** | **String** | The source account. - If the source account is a merchant account, provide the merchant&#39;s ID (e.g., \&quot;M1001\&quot;). - If the source account is the developer account, use the string &#x60;\&quot;developer\&quot;&#x60;. |
10
- **destination_account** | **String** | The destination account. - If the destination account is a merchant account, provide the merchant&#39;s ID (e.g., \&quot;M1001\&quot;). - If the destination account is the developer account, use the string &#x60;\&quot;developer\&quot;&#x60;. |
11
- **description** | **String** | The description of the allocation request. |
12
-
13
-
@@ -1,22 +0,0 @@
1
- # CoboWaas2.PaymentPayoutItemDetail
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **payout_item_id** | **String** | The payout item ID generated by Cobo. |
8
- **payout_id** | **String** | The payout ID generated by Cobo. |
9
- **token_id** | **String** | The ID of the cryptocurrency paid out. | [optional]
10
- **chain_id** | **String** | The ID of the blockchain network on which the payout occurred. | [optional]
11
- **source_account** | **String** | The source account from which the payout was made. - If the source account is a merchant account, provide the merchant&#39;s ID (e.g., \&quot;M1001\&quot;). - If the source account is the developer account, use the string &#x60;\&quot;developer\&quot;&#x60;. |
12
- **amount** | **String** | The amount of the cryptocurrency paid out. |
13
- **status** | [**PaymentPayoutStatus**](PaymentPayoutStatus.md) | |
14
- **transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | An array of transactions associated with this payout item. Each transaction represents a separate blockchain operation related to the payout process. | [optional]
15
- **created_timestamp** | **Number** | The created time of the payout, represented as a UNIX timestamp in seconds. | [optional]
16
- **updated_timestamp** | **Number** | The updated time of the payout, represented as a UNIX timestamp in seconds. | [optional]
17
- **crypto_address_id** | **String** | The ID of the crypto address used for crypto payouts. | [optional]
18
- **crypto_address** | **String** | The actual blockchain address to which funds were transferred for crypto payouts. | [optional]
19
- **commission_fee** | [**CommissionFee**](CommissionFee.md) | | [optional]
20
- **bridging_fee** | [**BridgingFee**](BridgingFee.md) | | [optional]
21
-
22
-