@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
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _BankAccount = _interopRequireDefault(require("./BankAccount"));
9
- var _PaymentPayoutItemDetail = _interopRequireDefault(require("./PaymentPayoutItemDetail"));
8
+ var _PaymentPayout = _interopRequireDefault(require("./PaymentPayout"));
9
+ var _PaymentPayoutItem = _interopRequireDefault(require("./PaymentPayoutItem"));
10
+ var _PaymentPayoutRecipientInfo = _interopRequireDefault(require("./PaymentPayoutRecipientInfo"));
10
11
  var _PaymentPayoutStatus = _interopRequireDefault(require("./PaymentPayoutStatus"));
12
+ var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
11
13
  var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
12
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
15
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -36,13 +38,18 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
36
38
  /**
37
39
  * Constructs a new <code>PaymentPayoutDetail</code>.
38
40
  * @alias module:model/PaymentPayoutDetail
41
+ * @implements module:model/PaymentPayout
39
42
  * @param payout_id {String} The payout ID generated by Cobo.
40
43
  * @param request_id {String} The request ID provided by you when creating the payout.
44
+ * @param payout_channel {module:model/PayoutChannel}
41
45
  * @param status {module:model/PaymentPayoutStatus}
46
+ * @param created_timestamp {Number} The created time of the payout, represented as a UNIX timestamp in seconds.
47
+ * @param updated_timestamp {Number} The updated time of the payout, represented as a UNIX timestamp in seconds.
42
48
  */
43
- function PaymentPayoutDetail(payout_id, request_id, status) {
49
+ function PaymentPayoutDetail(payout_id, request_id, payout_channel, status, created_timestamp, updated_timestamp) {
44
50
  _classCallCheck(this, PaymentPayoutDetail);
45
- PaymentPayoutDetail.initialize(this, payout_id, request_id, status);
51
+ _PaymentPayout["default"].initialize(this, payout_id, request_id, payout_channel, status, created_timestamp, updated_timestamp);
52
+ PaymentPayoutDetail.initialize(this, payout_id, request_id, payout_channel, status, created_timestamp, updated_timestamp);
46
53
  }
47
54
 
48
55
  /**
@@ -52,10 +59,13 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
52
59
  */
53
60
  return _createClass(PaymentPayoutDetail, null, [{
54
61
  key: "initialize",
55
- value: function initialize(obj, payout_id, request_id, status) {
62
+ value: function initialize(obj, payout_id, request_id, payout_channel, status, created_timestamp, updated_timestamp) {
56
63
  obj['payout_id'] = payout_id;
57
64
  obj['request_id'] = request_id;
65
+ obj['payout_channel'] = payout_channel;
58
66
  obj['status'] = status;
67
+ obj['created_timestamp'] = created_timestamp;
68
+ obj['updated_timestamp'] = updated_timestamp;
59
69
  }
60
70
 
61
71
  /**
@@ -70,38 +80,45 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
70
80
  value: function constructFromObject(data, obj) {
71
81
  if (data) {
72
82
  obj = obj || new PaymentPayoutDetail();
83
+ _PaymentPayout["default"].constructFromObject(data, obj);
73
84
  if (data.hasOwnProperty('payout_id')) {
74
85
  obj['payout_id'] = _ApiClient["default"].convertToType(data['payout_id'], 'String');
75
86
  }
76
87
  if (data.hasOwnProperty('request_id')) {
77
88
  obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
78
89
  }
79
- if (data.hasOwnProperty('status')) {
80
- obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
90
+ if (data.hasOwnProperty('payout_channel')) {
91
+ obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
81
92
  }
82
- if (data.hasOwnProperty('payout_item_details')) {
83
- obj['payout_item_details'] = _ApiClient["default"].convertToType(data['payout_item_details'], [_PaymentPayoutItemDetail["default"]]);
93
+ if (data.hasOwnProperty('source_account')) {
94
+ obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
84
95
  }
85
- if (data.hasOwnProperty('created_timestamp')) {
86
- obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
96
+ if (data.hasOwnProperty('payout_items')) {
97
+ obj['payout_items'] = _ApiClient["default"].convertToType(data['payout_items'], [_PaymentPayoutItem["default"]]);
87
98
  }
88
- if (data.hasOwnProperty('updated_timestamp')) {
89
- obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
99
+ if (data.hasOwnProperty('recipient_info')) {
100
+ obj['recipient_info'] = _PaymentPayoutRecipientInfo["default"].constructFromObject(data['recipient_info']);
90
101
  }
91
102
  if (data.hasOwnProperty('initiator')) {
92
103
  obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
93
104
  }
94
- if (data.hasOwnProperty('payout_channel')) {
95
- obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
96
- }
97
- if (data.hasOwnProperty('currency')) {
98
- obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
99
- }
100
105
  if (data.hasOwnProperty('actual_payout_amount')) {
101
106
  obj['actual_payout_amount'] = _ApiClient["default"].convertToType(data['actual_payout_amount'], 'String');
102
107
  }
103
- if (data.hasOwnProperty('bank_account')) {
104
- obj['bank_account'] = _BankAccount["default"].constructFromObject(data['bank_account']);
108
+ if (data.hasOwnProperty('status')) {
109
+ obj['status'] = _PaymentPayoutStatus["default"].constructFromObject(data['status']);
110
+ }
111
+ if (data.hasOwnProperty('remark')) {
112
+ obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
113
+ }
114
+ if (data.hasOwnProperty('created_timestamp')) {
115
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
116
+ }
117
+ if (data.hasOwnProperty('updated_timestamp')) {
118
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
119
+ }
120
+ if (data.hasOwnProperty('transactions')) {
121
+ obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
105
122
  }
106
123
  }
107
124
  return obj;
@@ -138,19 +155,23 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
138
155
  if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
139
156
  throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
140
157
  }
141
- if (data['payout_item_details']) {
158
+ // ensure the json data is a string
159
+ if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
160
+ throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
161
+ }
162
+ if (data['payout_items']) {
142
163
  // data not null
143
164
  // ensure the json data is an array
144
- if (!Array.isArray(data['payout_item_details'])) {
145
- throw new Error("Expected the field `payout_item_details` to be an array in the JSON data but got " + data['payout_item_details']);
165
+ if (!Array.isArray(data['payout_items'])) {
166
+ throw new Error("Expected the field `payout_items` to be an array in the JSON data but got " + data['payout_items']);
146
167
  }
147
- // validate the optional field `payout_item_details` (array)
148
- var _iterator2 = _createForOfIteratorHelper(data['payout_item_details']),
168
+ // validate the optional field `payout_items` (array)
169
+ var _iterator2 = _createForOfIteratorHelper(data['payout_items']),
149
170
  _step2;
150
171
  try {
151
172
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
152
173
  var item = _step2.value;
153
- _PaymentPayoutItemDetail["default"].validateJSON(item);
174
+ _PaymentPayoutItem["default"].validateJSON(item);
154
175
  }
155
176
  } catch (err) {
156
177
  _iterator2.e(err);
@@ -159,30 +180,51 @@ var PaymentPayoutDetail = /*#__PURE__*/function () {
159
180
  }
160
181
  ;
161
182
  }
183
+ // validate the optional field `recipient_info`
184
+ if (data['recipient_info']) {
185
+ // data not null
186
+ if (!!_PaymentPayoutRecipientInfo["default"].validateJSON) {
187
+ _PaymentPayoutRecipientInfo["default"].validateJSON(data['recipient_info']);
188
+ }
189
+ }
162
190
  // ensure the json data is a string
163
191
  if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
164
192
  throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
165
193
  }
166
194
  // ensure the json data is a string
167
- if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
168
- throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
169
- }
170
- // ensure the json data is a string
171
195
  if (data['actual_payout_amount'] && !(typeof data['actual_payout_amount'] === 'string' || data['actual_payout_amount'] instanceof String)) {
172
196
  throw new Error("Expected the field `actual_payout_amount` to be a primitive type in the JSON string but got " + data['actual_payout_amount']);
173
197
  }
174
- // validate the optional field `bank_account`
175
- if (data['bank_account']) {
198
+ // ensure the json data is a string
199
+ if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
200
+ throw new Error("Expected the field `remark` to be a primitive type in the JSON string but got " + data['remark']);
201
+ }
202
+ if (data['transactions']) {
176
203
  // data not null
177
- if (!!_BankAccount["default"].validateJSON) {
178
- _BankAccount["default"].validateJSON(data['bank_account']);
204
+ // ensure the json data is an array
205
+ if (!Array.isArray(data['transactions'])) {
206
+ throw new Error("Expected the field `transactions` to be an array in the JSON data but got " + data['transactions']);
207
+ }
208
+ // validate the optional field `transactions` (array)
209
+ var _iterator3 = _createForOfIteratorHelper(data['transactions']),
210
+ _step3;
211
+ try {
212
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
213
+ var _item = _step3.value;
214
+ _PaymentTransaction["default"].validateJSON(_item);
215
+ }
216
+ } catch (err) {
217
+ _iterator3.e(err);
218
+ } finally {
219
+ _iterator3.f();
179
220
  }
221
+ ;
180
222
  }
181
223
  return true;
182
224
  }
183
225
  }]);
184
226
  }();
185
- PaymentPayoutDetail.RequiredProperties = ["payout_id", "request_id", "status"];
227
+ PaymentPayoutDetail.RequiredProperties = ["payout_id", "request_id", "payout_channel", "status", "created_timestamp", "updated_timestamp"];
186
228
 
187
229
  /**
188
230
  * The payout ID generated by Cobo.
@@ -196,15 +238,50 @@ PaymentPayoutDetail.prototype['payout_id'] = undefined;
196
238
  */
197
239
  PaymentPayoutDetail.prototype['request_id'] = undefined;
198
240
 
241
+ /**
242
+ * @member {module:model/PayoutChannel} payout_channel
243
+ */
244
+ PaymentPayoutDetail.prototype['payout_channel'] = undefined;
245
+
246
+ /**
247
+ * The source account from which the payout will be 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\"`.
248
+ * @member {String} source_account
249
+ */
250
+ PaymentPayoutDetail.prototype['source_account'] = undefined;
251
+
252
+ /**
253
+ * required
254
+ * @member {Array.<module:model/PaymentPayoutItem>} payout_items
255
+ */
256
+ PaymentPayoutDetail.prototype['payout_items'] = undefined;
257
+
258
+ /**
259
+ * @member {module:model/PaymentPayoutRecipientInfo} recipient_info
260
+ */
261
+ PaymentPayoutDetail.prototype['recipient_info'] = undefined;
262
+
263
+ /**
264
+ * The initiator of this payout, usually the user's API key.
265
+ * @member {String} initiator
266
+ */
267
+ PaymentPayoutDetail.prototype['initiator'] = undefined;
268
+
269
+ /**
270
+ * - For `Crypto` payouts: The amount of cryptocurrency sent to the recipient's address, denominated in the token specified in `recipient_info.token_id`. - For `OffRamp` payouts: The amount of fiat currency sent to the recipient's bank account, denominated in the currency specified in `recipient_info.currency`. (Note: The actual amount received may be lower due to additional bank transfer fees.)
271
+ * @member {String} actual_payout_amount
272
+ */
273
+ PaymentPayoutDetail.prototype['actual_payout_amount'] = undefined;
274
+
199
275
  /**
200
276
  * @member {module:model/PaymentPayoutStatus} status
201
277
  */
202
278
  PaymentPayoutDetail.prototype['status'] = undefined;
203
279
 
204
280
  /**
205
- * @member {Array.<module:model/PaymentPayoutItemDetail>} payout_item_details
281
+ * A note or comment about the payout.
282
+ * @member {String} remark
206
283
  */
207
- PaymentPayoutDetail.prototype['payout_item_details'] = undefined;
284
+ PaymentPayoutDetail.prototype['remark'] = undefined;
208
285
 
209
286
  /**
210
287
  * The created time of the payout, represented as a UNIX timestamp in seconds.
@@ -219,30 +296,67 @@ PaymentPayoutDetail.prototype['created_timestamp'] = undefined;
219
296
  PaymentPayoutDetail.prototype['updated_timestamp'] = undefined;
220
297
 
221
298
  /**
222
- * The initiator of this payout, usually the API key used to create the payout.
223
- * @member {String} initiator
299
+ * An array of payout transactions.
300
+ * @member {Array.<module:model/PaymentTransaction>} transactions
224
301
  */
225
- PaymentPayoutDetail.prototype['initiator'] = undefined;
302
+ PaymentPayoutDetail.prototype['transactions'] = undefined;
226
303
 
304
+ // Implement PaymentPayout interface:
305
+ /**
306
+ * The payout ID generated by Cobo.
307
+ * @member {String} payout_id
308
+ */
309
+ _PaymentPayout["default"].prototype['payout_id'] = undefined;
310
+ /**
311
+ * The request ID provided by you when creating the payout.
312
+ * @member {String} request_id
313
+ */
314
+ _PaymentPayout["default"].prototype['request_id'] = undefined;
227
315
  /**
228
316
  * @member {module:model/PayoutChannel} payout_channel
229
317
  */
230
- PaymentPayoutDetail.prototype['payout_channel'] = undefined;
231
-
318
+ _PaymentPayout["default"].prototype['payout_channel'] = undefined;
232
319
  /**
233
- * The fiat currency you will receive from the payout.
234
- * @member {String} currency
320
+ * The source account from which the payout will be 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\"`.
321
+ * @member {String} source_account
235
322
  */
236
- PaymentPayoutDetail.prototype['currency'] = undefined;
237
-
323
+ _PaymentPayout["default"].prototype['source_account'] = undefined;
324
+ /**
325
+ * required
326
+ * @member {Array.<module:model/PaymentPayoutItem>} payout_items
327
+ */
328
+ _PaymentPayout["default"].prototype['payout_items'] = undefined;
329
+ /**
330
+ * @member {module:model/PaymentPayoutRecipientInfo} recipient_info
331
+ */
332
+ _PaymentPayout["default"].prototype['recipient_info'] = undefined;
333
+ /**
334
+ * The initiator of this payout, usually the user's API key.
335
+ * @member {String} initiator
336
+ */
337
+ _PaymentPayout["default"].prototype['initiator'] = undefined;
238
338
  /**
239
- * The total amount of cryptocurrency actually paid out for this payout.
339
+ * - For `Crypto` payouts: The amount of cryptocurrency sent to the recipient's address, denominated in the token specified in `recipient_info.token_id`. - For `OffRamp` payouts: The amount of fiat currency sent to the recipient's bank account, denominated in the currency specified in `recipient_info.currency`. (Note: The actual amount received may be lower due to additional bank transfer fees.)
240
340
  * @member {String} actual_payout_amount
241
341
  */
242
- PaymentPayoutDetail.prototype['actual_payout_amount'] = undefined;
243
-
342
+ _PaymentPayout["default"].prototype['actual_payout_amount'] = undefined;
244
343
  /**
245
- * @member {module:model/BankAccount} bank_account
344
+ * @member {module:model/PaymentPayoutStatus} status
345
+ */
346
+ _PaymentPayout["default"].prototype['status'] = undefined;
347
+ /**
348
+ * A note or comment about the payout.
349
+ * @member {String} remark
350
+ */
351
+ _PaymentPayout["default"].prototype['remark'] = undefined;
352
+ /**
353
+ * The created time of the payout, represented as a UNIX timestamp in seconds.
354
+ * @member {Number} created_timestamp
355
+ */
356
+ _PaymentPayout["default"].prototype['created_timestamp'] = undefined;
357
+ /**
358
+ * The updated time of the payout, represented as a UNIX timestamp in seconds.
359
+ * @member {Number} updated_timestamp
246
360
  */
247
- PaymentPayoutDetail.prototype['bank_account'] = undefined;
361
+ _PaymentPayout["default"].prototype['updated_timestamp'] = undefined;
248
362
  var _default = exports["default"] = PaymentPayoutDetail;