@cobo/cobo-waas2 1.28.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 (238) hide show
  1. package/README.md +88 -16
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/ComplianceApi.js +144 -4
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/GraphQLApi.js +85 -0
  7. package/dist/api/PaymentApi.js +1161 -154
  8. package/dist/api/StakingsApi.js +2 -2
  9. package/dist/api/SwapsApi.js +3 -0
  10. package/dist/api/TransactionsApi.js +6 -6
  11. package/dist/api/WalletsApi.js +18 -18
  12. package/dist/index.js +357 -28
  13. package/dist/model/AddressRiskLevel.js +71 -0
  14. package/dist/model/AddressesEventData.js +13 -3
  15. package/dist/model/{AllocationRecord.js → AllocationItem.js} +38 -35
  16. package/dist/model/{AllocationRequest.js → AllocationParam.js} +29 -26
  17. package/dist/model/BalanceUpdateInfoEventData.js +13 -3
  18. package/dist/model/BatchAllocation.js +12 -12
  19. package/dist/model/BatchAllocationDetail.js +15 -17
  20. package/dist/model/BridgingFee.js +3 -3
  21. package/dist/model/ChainsEventData.js +13 -3
  22. package/dist/model/CommissionFee.js +2 -2
  23. package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
  24. package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +346 -0
  25. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
  26. package/dist/model/ContractCallParams.js +3 -3
  27. package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
  28. package/dist/model/CreateBatchAllocationRequest.js +19 -19
  29. package/dist/model/CreateBulkSendRequest.js +167 -0
  30. package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
  31. package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
  32. package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
  33. package/dist/model/CreateDestinationEntry201Response.js +172 -0
  34. package/dist/model/CreateDestinationEntryRequest.js +172 -0
  35. package/dist/model/CreateKyaScreeningsBody.js +129 -0
  36. package/dist/model/CreateMerchantRequest.js +1 -1
  37. package/dist/model/CreatePaymentOrderRequest.js +17 -15
  38. package/dist/model/CreatePayoutRequest.js +35 -28
  39. package/dist/model/CreateRefundRequest.js +2 -2
  40. package/dist/model/CreateReportRequest.js +156 -0
  41. package/dist/model/CreateTopUpAddresses.js +139 -0
  42. package/dist/model/CreateTopUpAddresses201Response.js +107 -0
  43. package/dist/model/CreateWalletAddress.js +2 -2
  44. package/dist/model/DeleteCounterpartyById200Response.js +110 -0
  45. package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
  46. package/dist/model/DeleteDestinationById200Response.js +110 -0
  47. package/dist/model/DeleteDestinationEntry200Response.js +110 -0
  48. package/dist/model/EntryType.js +61 -0
  49. package/dist/model/GetCounterpartyEntry200Response.js +90 -0
  50. package/dist/model/GetDestinationEntry200Response.js +106 -0
  51. package/dist/model/{ListPayoutItems200Response.js → GetReports200Response.js} +22 -22
  52. package/dist/model/KyaRiskAssessment.js +151 -0
  53. package/dist/model/KyaRiskDetail.js +126 -0
  54. package/dist/model/KyaRiskLevel.js +66 -0
  55. package/dist/model/KyaScreeningRequest.js +154 -0
  56. package/dist/model/KyaScreeningResult.js +222 -0
  57. package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
  58. package/dist/model/KyaScreeningStatus.js +71 -0
  59. package/dist/model/KyaScreeningsEventData.js +174 -0
  60. package/dist/model/LinkDisplayInfo.js +1 -1
  61. package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
  62. package/dist/model/ListBulkSendItems200Response.js +123 -0
  63. package/dist/model/ListCounterpartyEntries200Response.js +123 -0
  64. package/dist/model/ListDestinationEntries200Response.js +153 -0
  65. package/dist/model/ListKyaScreenings200Response.js +145 -0
  66. package/dist/model/MPCVaultEventData.js +13 -3
  67. package/dist/model/MerchantBalance.js +4 -4
  68. package/dist/model/Order.js +10 -10
  69. package/dist/model/OrderLinkBusinessInfo.js +22 -16
  70. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
  71. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
  72. package/dist/model/PaymentAddressUpdateEventData.js +13 -3
  73. package/dist/model/PaymentAllocationAmount.js +2 -2
  74. package/dist/model/PaymentBulkSend.js +182 -0
  75. package/dist/model/PaymentBulkSendEvent.js +359 -0
  76. package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
  77. package/dist/model/PaymentBulkSendItem.js +190 -0
  78. package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
  79. package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
  80. package/dist/model/PaymentBulkSendStatus.js +81 -0
  81. package/dist/model/PaymentEstimateFeeRequest.js +13 -0
  82. package/dist/model/PaymentFeeType.js +15 -0
  83. package/dist/model/PaymentOrderEventData.js +31 -21
  84. package/dist/model/PaymentPayout.js +64 -46
  85. package/dist/model/PaymentPayoutDetail.js +166 -52
  86. package/dist/model/PaymentPayoutEvent.js +152 -80
  87. package/dist/model/PaymentPayoutItem.js +9 -166
  88. package/dist/model/PaymentPayoutParam.js +6 -46
  89. package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
  90. package/dist/model/PaymentPayoutStatus.js +9 -4
  91. package/dist/model/PaymentRefundEventData.js +13 -3
  92. package/dist/model/PaymentSettlementEvent.js +13 -3
  93. package/dist/model/PaymentTransactionEventData.js +13 -3
  94. package/dist/model/PspBalance.js +4 -4
  95. package/dist/model/RefundLinkBusinessInfo.js +1 -1
  96. package/dist/model/Report.js +209 -0
  97. package/dist/model/ReportExportFormat.js +66 -0
  98. package/dist/model/ReportStatus.js +61 -0
  99. package/dist/model/ReportType.js +121 -0
  100. package/dist/model/SuspendedTokenEventData.js +13 -3
  101. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  102. package/dist/model/TokenListingEventData.js +13 -3
  103. package/dist/model/TokensEventData.js +13 -3
  104. package/dist/model/TransactionCoboCategory.js +5 -0
  105. package/dist/model/TransactionExtraType.js +5 -0
  106. package/dist/model/TransactionWalletConnectInfo.js +146 -0
  107. package/dist/model/TransactionWebhookEventData.js +13 -3
  108. package/dist/model/TransferParams.js +2 -2
  109. package/dist/model/UpdateCounterpartyRequest.js +160 -0
  110. package/dist/model/UpdateDestinationEntry200Response.js +90 -0
  111. package/dist/model/UpdateDestinationEntryRequest.js +135 -0
  112. package/dist/model/UpdateDestinationRequest.js +173 -0
  113. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  114. package/dist/model/WalletAddress.js +20 -2
  115. package/dist/model/WalletInfoEventData.js +13 -3
  116. package/dist/model/WebhookEventData.js +121 -28
  117. package/dist/model/WebhookEventDataType.js +12 -2
  118. package/dist/model/WebhookEventType.js +15 -0
  119. package/docs/AddressRiskLevel.md +16 -0
  120. package/docs/AddressesEventData.md +5 -1
  121. package/docs/AllocationItem.md +15 -0
  122. package/docs/AllocationParam.md +13 -0
  123. package/docs/AutoSweepApi.md +1 -1
  124. package/docs/BalanceUpdateInfoEventData.md +5 -1
  125. package/docs/BatchAllocation.md +2 -2
  126. package/docs/BatchAllocationDetail.md +1 -1
  127. package/docs/BridgingFee.md +2 -2
  128. package/docs/ChainsEventData.md +5 -1
  129. package/docs/CommissionFee.md +1 -1
  130. package/docs/ComplianceApi.md +163 -0
  131. package/docs/ComplianceDispositionUpdateEventData.md +5 -1
  132. package/docs/ComplianceKyaScreeningsUpdateEventData.md +64 -0
  133. package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
  134. package/docs/ContractCallParams.md +2 -2
  135. package/docs/CounterpartyWalletAddressDetail.md +1 -1
  136. package/docs/CreateBatchAllocationRequest.md +2 -2
  137. package/docs/CreateBulkSendRequest.md +12 -0
  138. package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
  139. package/docs/CreateCounterpartyEntry201Response.md +10 -0
  140. package/docs/CreateCounterpartyEntryRequest.md +10 -0
  141. package/docs/CreateDestinationEntry201Response.md +11 -0
  142. package/docs/CreateDestinationEntryRequest.md +11 -0
  143. package/docs/CreateKyaScreeningsBody.md +9 -0
  144. package/docs/CreateMerchantRequest.md +1 -1
  145. package/docs/CreatePaymentOrderRequest.md +11 -11
  146. package/docs/CreatePayoutRequest.md +4 -4
  147. package/docs/CreateRefundRequest.md +2 -2
  148. package/docs/CreateReportRequest.md +13 -0
  149. package/docs/CreateTopUpAddresses.md +11 -0
  150. package/docs/CreateTopUpAddresses201Response.md +9 -0
  151. package/docs/CreateWalletAddress.md +1 -1
  152. package/docs/DeleteCounterpartyById200Response.md +9 -0
  153. package/docs/DeleteCounterpartyEntry200Response.md +9 -0
  154. package/docs/DeleteDestinationById200Response.md +9 -0
  155. package/docs/DeleteDestinationEntry200Response.md +9 -0
  156. package/docs/EntryType.md +12 -0
  157. package/docs/FeeStationApi.md +1 -1
  158. package/docs/GetCounterpartyEntry200Response.md +9 -0
  159. package/docs/GetDestinationEntry200Response.md +10 -0
  160. package/docs/{ListAllocations200Response.md → GetReports200Response.md} +2 -2
  161. package/docs/GraphQLApi.md +61 -0
  162. package/docs/KyaRiskAssessment.md +11 -0
  163. package/docs/KyaRiskDetail.md +10 -0
  164. package/docs/KyaRiskLevel.md +14 -0
  165. package/docs/KyaScreeningRequest.md +12 -0
  166. package/docs/KyaScreeningResult.md +17 -0
  167. package/docs/KyaScreeningResultRiskAssessment.md +11 -0
  168. package/docs/KyaScreeningStatus.md +16 -0
  169. package/docs/KyaScreeningsEventData.md +14 -0
  170. package/docs/LinkDisplayInfo.md +1 -1
  171. package/docs/{ListPayoutItems200Response.md → ListAllocationItems200Response.md} +2 -2
  172. package/docs/ListBulkSendItems200Response.md +10 -0
  173. package/docs/ListCounterpartyEntries200Response.md +10 -0
  174. package/docs/ListDestinationEntries200Response.md +11 -0
  175. package/docs/ListKyaScreenings200Response.md +10 -0
  176. package/docs/MPCVaultEventData.md +5 -1
  177. package/docs/MerchantBalance.md +4 -4
  178. package/docs/Order.md +8 -8
  179. package/docs/OrderLinkBusinessInfo.md +11 -11
  180. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  181. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
  182. package/docs/PaymentAddressUpdateEventData.md +5 -1
  183. package/docs/PaymentAllocationAmount.md +1 -1
  184. package/docs/PaymentApi.md +1296 -198
  185. package/docs/PaymentBulkSend.md +15 -0
  186. package/docs/PaymentBulkSendEvent.md +65 -0
  187. package/docs/PaymentBulkSendExecutionMode.md +12 -0
  188. package/docs/PaymentBulkSendItem.md +15 -0
  189. package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
  190. package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
  191. package/docs/PaymentBulkSendStatus.md +20 -0
  192. package/docs/PaymentEstimateFeeRequest.md +1 -0
  193. package/docs/PaymentFeeType.md +6 -0
  194. package/docs/PaymentOrderEventData.md +13 -9
  195. package/docs/PaymentPayout.md +8 -7
  196. package/docs/PaymentPayoutDetail.md +10 -8
  197. package/docs/PaymentPayoutEvent.md +15 -9
  198. package/docs/PaymentPayoutItem.md +2 -13
  199. package/docs/PaymentPayoutParam.md +1 -4
  200. package/docs/PaymentPayoutRecipientInfo.md +12 -0
  201. package/docs/PaymentPayoutStatus.md +4 -2
  202. package/docs/PaymentRefundEventData.md +5 -1
  203. package/docs/PaymentSettlementEvent.md +5 -1
  204. package/docs/PaymentTransactionEventData.md +5 -1
  205. package/docs/PspBalance.md +4 -4
  206. package/docs/RefundLinkBusinessInfo.md +1 -1
  207. package/docs/Report.md +17 -0
  208. package/docs/ReportExportFormat.md +14 -0
  209. package/docs/ReportStatus.md +12 -0
  210. package/docs/ReportType.md +36 -0
  211. package/docs/StakingsApi.md +1 -1
  212. package/docs/SuspendedTokenEventData.md +5 -1
  213. package/docs/SwapsApi.md +2 -0
  214. package/docs/TSSRequestWebhookEventData.md +5 -1
  215. package/docs/TokenListingEventData.md +5 -1
  216. package/docs/TokensEventData.md +5 -1
  217. package/docs/TransactionCoboCategory.md +2 -0
  218. package/docs/TransactionExtraType.md +2 -0
  219. package/docs/TransactionWalletConnectInfo.md +12 -0
  220. package/docs/TransactionWebhookEventData.md +5 -1
  221. package/docs/TransactionsApi.md +3 -3
  222. package/docs/TransferParams.md +1 -1
  223. package/docs/UpdateCounterpartyRequest.md +13 -0
  224. package/docs/UpdateDestinationEntry200Response.md +9 -0
  225. package/docs/UpdateDestinationEntryRequest.md +11 -0
  226. package/docs/UpdateDestinationRequest.md +14 -0
  227. package/docs/UpdateMerchantByIdRequest.md +1 -1
  228. package/docs/WalletAddress.md +3 -1
  229. package/docs/WalletInfoEventData.md +5 -1
  230. package/docs/WalletsApi.md +9 -9
  231. package/docs/WebhookEventData.md +28 -18
  232. package/docs/WebhookEventDataType.md +5 -1
  233. package/docs/WebhookEventType.md +6 -0
  234. package/package.json +1 -1
  235. package/dist/model/PaymentPayoutItemDetail.js +0 -298
  236. package/docs/AllocationRecord.md +0 -15
  237. package/docs/AllocationRequest.md +0 -13
  238. package/docs/PaymentPayoutItemDetail.md +0 -22
@@ -23,13 +23,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
23
23
  *
24
24
  */
25
25
  /**
26
- * Enum class PaymentPayoutItemStatus.
26
+ * Enum class PaymentBulkSendItemStatus.
27
27
  * @enum {}
28
28
  * @readonly
29
29
  */
30
- var PaymentPayoutItemStatus = exports["default"] = /*#__PURE__*/function () {
31
- function PaymentPayoutItemStatus() {
32
- _classCallCheck(this, PaymentPayoutItemStatus);
30
+ var PaymentBulkSendItemStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentBulkSendItemStatus() {
32
+ _classCallCheck(this, PaymentBulkSendItemStatus);
33
33
  /**
34
34
  * value: "Pending"
35
35
  * @const
@@ -46,28 +46,28 @@ var PaymentPayoutItemStatus = exports["default"] = /*#__PURE__*/function () {
46
46
  */
47
47
  _defineProperty(this, "Completed", "Completed");
48
48
  /**
49
- * value: "PartiallyCompleted"
49
+ * value: "Failed"
50
50
  * @const
51
51
  */
52
- _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
52
+ _defineProperty(this, "Failed", "Failed");
53
53
  /**
54
- * value: "Failed"
54
+ * value: "NotExecuted"
55
55
  * @const
56
56
  */
57
- _defineProperty(this, "Failed", "Failed");
57
+ _defineProperty(this, "NotExecuted", "NotExecuted");
58
58
  /**
59
59
  * value: "unknown_default_open_api"
60
60
  * @const
61
61
  */
62
62
  _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
63
63
  }
64
- return _createClass(PaymentPayoutItemStatus, null, [{
64
+ return _createClass(PaymentBulkSendItemStatus, null, [{
65
65
  key: "constructFromObject",
66
66
  value:
67
67
  /**
68
- * Returns a <code>PaymentPayoutItemStatus</code> enum value from a Javascript object name.
68
+ * Returns a <code>PaymentBulkSendItemStatus</code> enum value from a Javascript object name.
69
69
  * @param {Object} data The plain JavaScript object containing the name of the enum value.
70
- * @return {module:model/PaymentPayoutItemStatus} The enum <code>PaymentPayoutItemStatus</code> value.
70
+ * @return {module:model/PaymentBulkSendItemStatus} The enum <code>PaymentBulkSendItemStatus</code> value.
71
71
  */
72
72
  function constructFromObject(object) {
73
73
  return object;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class PaymentBulkSendItemValidationStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentBulkSendItemValidationStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentBulkSendItemValidationStatus() {
32
+ _classCallCheck(this, PaymentBulkSendItemValidationStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Validated"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Validated", "Validated");
43
+ /**
44
+ * value: "ValidationFailed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "ValidationFailed", "ValidationFailed");
48
+ /**
49
+ * value: "unknown_default_open_api"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
53
+ }
54
+ return _createClass(PaymentBulkSendItemValidationStatus, null, [{
55
+ key: "constructFromObject",
56
+ value:
57
+ /**
58
+ * Returns a <code>PaymentBulkSendItemValidationStatus</code> enum value from a Javascript object name.
59
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
60
+ * @return {module:model/PaymentBulkSendItemValidationStatus} The enum <code>PaymentBulkSendItemValidationStatus</code> value.
61
+ */
62
+ function constructFromObject(object) {
63
+ return object;
64
+ }
65
+ }]);
66
+ }();
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class PaymentBulkSendStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentBulkSendStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentBulkSendStatus() {
32
+ _classCallCheck(this, PaymentBulkSendStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Validating"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Validating", "Validating");
43
+ /**
44
+ * value: "Transferring"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Transferring", "Transferring");
48
+ /**
49
+ * value: "Completed"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "Completed", "Completed");
53
+ /**
54
+ * value: "PartiallyCompleted"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
58
+ /**
59
+ * value: "Failed"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "Failed", "Failed");
63
+ /**
64
+ * value: "unknown_default_open_api"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
68
+ }
69
+ return _createClass(PaymentBulkSendStatus, null, [{
70
+ key: "constructFromObject",
71
+ value:
72
+ /**
73
+ * Returns a <code>PaymentBulkSendStatus</code> enum value from a Javascript object name.
74
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
75
+ * @return {module:model/PaymentBulkSendStatus} The enum <code>PaymentBulkSendStatus</code> value.
76
+ */
77
+ function constructFromObject(object) {
78
+ return object;
79
+ }
80
+ }]);
81
+ }();
@@ -70,6 +70,9 @@ var PaymentEstimateFeeRequest = /*#__PURE__*/function () {
70
70
  if (data.hasOwnProperty('estimate_fees')) {
71
71
  obj['estimate_fees'] = _ApiClient["default"].convertToType(data['estimate_fees'], [_PaymentEstimateFee["default"]]);
72
72
  }
73
+ if (data.hasOwnProperty('recipient_token_id')) {
74
+ obj['recipient_token_id'] = _ApiClient["default"].convertToType(data['recipient_token_id'], 'String');
75
+ }
73
76
  }
74
77
  return obj;
75
78
  }
@@ -118,6 +121,10 @@ var PaymentEstimateFeeRequest = /*#__PURE__*/function () {
118
121
  }
119
122
  ;
120
123
  }
124
+ // ensure the json data is a string
125
+ if (data['recipient_token_id'] && !(typeof data['recipient_token_id'] === 'string' || data['recipient_token_id'] instanceof String)) {
126
+ throw new Error("Expected the field `recipient_token_id` to be a primitive type in the JSON string but got " + data['recipient_token_id']);
127
+ }
121
128
  return true;
122
129
  }
123
130
  }]);
@@ -134,4 +141,10 @@ PaymentEstimateFeeRequest.prototype['fee_type'] = undefined;
134
141
  * @member {Array.<module:model/PaymentEstimateFee>} estimate_fees
135
142
  */
136
143
  PaymentEstimateFeeRequest.prototype['estimate_fees'] = undefined;
144
+
145
+ /**
146
+ * The token ID that the recipient will receive. Required only when `fee_type` is `CryptoPayoutBridge`.
147
+ * @member {String} recipient_token_id
148
+ */
149
+ PaymentEstimateFeeRequest.prototype['recipient_token_id'] = undefined;
137
150
  var _default = exports["default"] = PaymentEstimateFeeRequest;
@@ -50,6 +50,21 @@ var PaymentFeeType = exports["default"] = /*#__PURE__*/function () {
50
50
  * @const
51
51
  */
52
52
  _defineProperty(this, "OffRampSettlement", "OffRampSettlement");
53
+ /**
54
+ * value: "CryptoPayout"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "CryptoPayout", "CryptoPayout");
58
+ /**
59
+ * value: "CryptoPayoutBridge"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "CryptoPayoutBridge", "CryptoPayoutBridge");
63
+ /**
64
+ * value: "OffRampPayout"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "OffRampPayout", "OffRampPayout");
53
68
  /**
54
69
  * value: "unknown_default_open_api"
55
70
  * @const
@@ -39,13 +39,13 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
39
39
  * @alias module:model/PaymentOrderEventData
40
40
  * @implements module:model/WebhookEventDataType
41
41
  * @implements module:model/Order
42
- * @param data_type {module:model/PaymentOrderEventData.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.
42
+ * @param data_type {module:model/PaymentOrderEventData.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. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
43
43
  * @param order_id {String} The order ID.
44
44
  * @param psp_order_code {String} A unique reference code assigned by the developer to identify this order in their system.
45
- * @param fee_amount {String} The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
45
+ * @param fee_amount {String} The developer fee for the order. It is added to the base amount to determine the final charge.
46
46
  * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made.
47
47
  * @param payable_amount {String} The cryptocurrency amount to be paid for this order.
48
- * @param exchange_rate {String} The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
48
+ * @param exchange_rate {String} The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
49
49
  * @param receive_address {String} The recipient wallet address to be used for the payment transaction.
50
50
  * @param status {module:model/OrderStatus}
51
51
  * @param received_token_amount {String} The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT).
@@ -290,7 +290,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
290
290
  PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "psp_order_code", "fee_amount", "chain_id", "payable_amount", "exchange_rate", "receive_address", "status", "received_token_amount"];
291
291
 
292
292
  /**
293
- * 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.
293
+ * 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. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
294
294
  * @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
295
295
  */
296
296
  PaymentOrderEventData.prototype['data_type'] = undefined;
@@ -320,19 +320,19 @@ PaymentOrderEventData.prototype['merchant_order_code'] = undefined;
320
320
  PaymentOrderEventData.prototype['psp_order_code'] = undefined;
321
321
 
322
322
  /**
323
- * The fiat currency of the order.
323
+ * The pricing currency of the order.
324
324
  * @member {String} pricing_currency
325
325
  */
326
326
  PaymentOrderEventData.prototype['pricing_currency'] = undefined;
327
327
 
328
328
  /**
329
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
329
+ * The base amount of the order, excluding the developer fee (specified in `fee_amount`).
330
330
  * @member {String} pricing_amount
331
331
  */
332
332
  PaymentOrderEventData.prototype['pricing_amount'] = undefined;
333
333
 
334
334
  /**
335
- * The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
335
+ * The developer fee for the order. It is added to the base amount to determine the final charge.
336
336
  * @member {String} fee_amount
337
337
  */
338
338
  PaymentOrderEventData.prototype['fee_amount'] = undefined;
@@ -356,13 +356,13 @@ PaymentOrderEventData.prototype['chain_id'] = undefined;
356
356
  PaymentOrderEventData.prototype['payable_amount'] = undefined;
357
357
 
358
358
  /**
359
- * The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
359
+ * The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
360
360
  * @member {String} exchange_rate
361
361
  */
362
362
  PaymentOrderEventData.prototype['exchange_rate'] = undefined;
363
363
 
364
364
  /**
365
- * Allowed amount deviation.
365
+ * The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5)
366
366
  * @member {String} amount_tolerance
367
367
  */
368
368
  PaymentOrderEventData.prototype['amount_tolerance'] = undefined;
@@ -409,19 +409,19 @@ PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
409
409
  PaymentOrderEventData.prototype['transactions'] = undefined;
410
410
 
411
411
  /**
412
- * The fiat currency of the order.
412
+ * This field has been deprecated. Please use `pricing_currency` instead.
413
413
  * @member {String} currency
414
414
  */
415
415
  PaymentOrderEventData.prototype['currency'] = undefined;
416
416
 
417
417
  /**
418
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
418
+ * This field has been deprecated. Please use `pricing_amount` instead.
419
419
  * @member {String} order_amount
420
420
  */
421
421
  PaymentOrderEventData.prototype['order_amount'] = undefined;
422
422
 
423
423
  /**
424
- * The ID of the cryptocurrency used for payment.
424
+ * This field has been deprecated. Please use `payable_currency` instead.
425
425
  * @member {String} token_id
426
426
  */
427
427
  PaymentOrderEventData.prototype['token_id'] = undefined;
@@ -433,7 +433,7 @@ PaymentOrderEventData.prototype['settlement_status'] = undefined;
433
433
 
434
434
  // Implement WebhookEventDataType interface:
435
435
  /**
436
- * 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.
436
+ * 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. - `PaymentBulkSend`: The payment bulk send 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. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
437
437
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
438
438
  */
439
439
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -459,17 +459,17 @@ _Order["default"].prototype['merchant_order_code'] = undefined;
459
459
  */
460
460
  _Order["default"].prototype['psp_order_code'] = undefined;
461
461
  /**
462
- * The fiat currency of the order.
462
+ * The pricing currency of the order.
463
463
  * @member {String} pricing_currency
464
464
  */
465
465
  _Order["default"].prototype['pricing_currency'] = undefined;
466
466
  /**
467
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
467
+ * The base amount of the order, excluding the developer fee (specified in `fee_amount`).
468
468
  * @member {String} pricing_amount
469
469
  */
470
470
  _Order["default"].prototype['pricing_amount'] = undefined;
471
471
  /**
472
- * The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
472
+ * The developer fee for the order. It is added to the base amount to determine the final charge.
473
473
  * @member {String} fee_amount
474
474
  */
475
475
  _Order["default"].prototype['fee_amount'] = undefined;
@@ -489,12 +489,12 @@ _Order["default"].prototype['chain_id'] = undefined;
489
489
  */
490
490
  _Order["default"].prototype['payable_amount'] = undefined;
491
491
  /**
492
- * The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
492
+ * The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
493
493
  * @member {String} exchange_rate
494
494
  */
495
495
  _Order["default"].prototype['exchange_rate'] = undefined;
496
496
  /**
497
- * Allowed amount deviation.
497
+ * The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5)
498
498
  * @member {String} amount_tolerance
499
499
  */
500
500
  _Order["default"].prototype['amount_tolerance'] = undefined;
@@ -533,17 +533,17 @@ _Order["default"].prototype['updated_timestamp'] = undefined;
533
533
  */
534
534
  _Order["default"].prototype['transactions'] = undefined;
535
535
  /**
536
- * The fiat currency of the order.
536
+ * This field has been deprecated. Please use `pricing_currency` instead.
537
537
  * @member {String} currency
538
538
  */
539
539
  _Order["default"].prototype['currency'] = undefined;
540
540
  /**
541
- * The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
541
+ * This field has been deprecated. Please use `pricing_amount` instead.
542
542
  * @member {String} order_amount
543
543
  */
544
544
  _Order["default"].prototype['order_amount'] = undefined;
545
545
  /**
546
- * The ID of the cryptocurrency used for payment.
546
+ * This field has been deprecated. Please use `payable_currency` instead.
547
547
  * @member {String} token_id
548
548
  */
549
549
  _Order["default"].prototype['token_id'] = undefined;
@@ -628,6 +628,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
628
628
  * @const
629
629
  */
630
630
  "PaymentPayout": "PaymentPayout",
631
+ /**
632
+ * value: "PaymentBulkSend"
633
+ * @const
634
+ */
635
+ "PaymentBulkSend": "PaymentBulkSend",
631
636
  /**
632
637
  * value: "BalanceUpdateInfo"
633
638
  * @const
@@ -648,6 +653,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
648
653
  * @const
649
654
  */
650
655
  "ComplianceKytScreenings": "ComplianceKytScreenings",
656
+ /**
657
+ * value: "ComplianceKyaScreenings"
658
+ * @const
659
+ */
660
+ "ComplianceKyaScreenings": "ComplianceKyaScreenings",
651
661
  /**
652
662
  * value: "unknown_default_open_api"
653
663
  * @const