@cobo/cobo-waas2 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +33 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +2 -2
  4. package/dist/api/AutoSweepApi.js +4 -4
  5. package/dist/api/OAuthApi.js +4 -4
  6. package/dist/api/PaymentApi.js +491 -36
  7. package/dist/api/StakingsApi.js +44 -2
  8. package/dist/api/SwapsApi.js +2 -2
  9. package/dist/api/TransactionsApi.js +6 -6
  10. package/dist/api/WalletsApi.js +14 -14
  11. package/dist/index.js +154 -0
  12. package/dist/model/AddressesEventData.js +8 -3
  13. package/dist/model/AllocationRecord.js +193 -0
  14. package/dist/model/AllocationRequest.js +167 -0
  15. package/dist/model/BabylonCreateStakingExpansion.js +157 -0
  16. package/dist/model/BabylonStakeExtra.js +26 -0
  17. package/dist/model/BabylonStakingRegistration.js +1 -1
  18. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  19. package/dist/model/BatchAllocation.js +190 -0
  20. package/dist/model/BatchAllocationDetail.js +188 -0
  21. package/dist/model/ChainsEventData.js +8 -3
  22. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  23. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
  24. package/dist/model/ContractCallDestination.js +42 -8
  25. package/dist/model/ContractCallDestinationType.js +5 -0
  26. package/dist/model/CosmosContractCallDestination.js +0 -13
  27. package/dist/model/CreateBatchAllocationRequest.js +142 -0
  28. package/dist/model/CreateCustodialWalletParams.js +1 -1
  29. package/dist/model/CreateExchangeWalletParams.js +2 -2
  30. package/dist/model/CreateMerchantRequest.js +1 -1
  31. package/dist/model/CreateMpcWalletParams.js +2 -2
  32. package/dist/model/CreatePaymentOrderRequest.js +115 -68
  33. package/dist/model/CreatePayoutRequest.js +192 -0
  34. package/dist/model/CreateRefundRequest.js +3 -3
  35. package/dist/model/CreateSafeWalletParams.js +1 -1
  36. package/dist/model/CreateSettlement.js +1 -1
  37. package/dist/model/CreateSettlementRequestRequest.js +1 -1
  38. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  39. package/dist/model/CreateStakeActivityExtra.js +12 -0
  40. package/dist/model/CreateWalletParams.js +1 -1
  41. package/dist/model/GetExchangeRate200Response.js +2 -2
  42. package/dist/model/LinkDisplayInfo.js +13 -0
  43. package/dist/model/ListAllocations200Response.js +123 -0
  44. package/dist/model/ListBatchAllocations200Response.js +123 -0
  45. package/dist/model/ListPayoutItems200Response.js +123 -0
  46. package/dist/model/ListPayouts200Response.js +123 -0
  47. package/dist/model/MPCVaultEventData.js +8 -3
  48. package/dist/model/MerchantBalance.js +28 -2
  49. package/dist/model/Order.js +135 -102
  50. package/dist/model/OrderLinkBusinessInfo.js +151 -87
  51. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
  52. package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
  53. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  54. package/dist/model/PaymentAllocationAmount.js +125 -0
  55. package/dist/model/PaymentOrderEventData.js +198 -145
  56. package/dist/model/PaymentPayout.js +250 -0
  57. package/dist/model/PaymentPayoutDetail.js +248 -0
  58. package/dist/model/PaymentPayoutEvent.js +433 -0
  59. package/dist/model/PaymentPayoutItem.js +298 -0
  60. package/dist/model/PaymentPayoutItemDetail.js +298 -0
  61. package/dist/model/PaymentPayoutItemStatus.js +76 -0
  62. package/dist/model/PaymentPayoutParam.js +165 -0
  63. package/dist/model/PaymentPayoutStatus.js +81 -0
  64. package/dist/model/PaymentRefundEventData.js +8 -3
  65. package/dist/model/PaymentSettlementEvent.js +8 -3
  66. package/dist/model/PaymentSourceType.js +61 -0
  67. package/dist/model/PaymentTransactionEventData.js +8 -3
  68. package/dist/model/PspBalance.js +28 -2
  69. package/dist/model/RefundLinkBusinessInfo.js +1 -1
  70. package/dist/model/Stakings.js +33 -6
  71. package/dist/model/SuspendedTokenEventData.js +8 -3
  72. package/dist/model/SwapActivity.js +1 -1
  73. package/dist/model/SwapActivityDetail.js +2 -2
  74. package/dist/model/SwapActivityTimeline.js +1 -1
  75. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  76. package/dist/model/TokenListingEventData.js +8 -3
  77. package/dist/model/TokensEventData.js +8 -3
  78. package/dist/model/TransactionCosmosContractDestination.js +0 -13
  79. package/dist/model/TransactionWebhookEventData.js +8 -3
  80. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  81. package/dist/model/WalletInfoEventData.js +8 -3
  82. package/dist/model/WebhookEventData.js +106 -42
  83. package/dist/model/WebhookEventDataType.js +7 -2
  84. package/dist/model/WebhookEventType.js +10 -0
  85. package/docs/AddressBooksApi.md +1 -1
  86. package/docs/AddressesEventData.md +3 -1
  87. package/docs/AllocationRecord.md +15 -0
  88. package/docs/AllocationRequest.md +13 -0
  89. package/docs/AutoSweepApi.md +2 -2
  90. package/docs/BabylonCreateStakingExpansion.md +12 -0
  91. package/docs/BabylonStakeExtra.md +2 -0
  92. package/docs/BalanceUpdateInfoEventData.md +3 -1
  93. package/docs/BatchAllocation.md +14 -0
  94. package/docs/BatchAllocationDetail.md +14 -0
  95. package/docs/ChainsEventData.md +3 -1
  96. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  97. package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
  98. package/docs/ContractCallDestination.md +1 -0
  99. package/docs/ContractCallDestinationType.md +2 -0
  100. package/docs/CosmosContractCallDestination.md +0 -1
  101. package/docs/CreateBatchAllocationRequest.md +10 -0
  102. package/docs/CreateCustodialWalletParams.md +1 -1
  103. package/docs/CreateExchangeWalletParams.md +1 -1
  104. package/docs/CreateMerchantRequest.md +1 -1
  105. package/docs/CreateMpcWalletParams.md +1 -1
  106. package/docs/CreatePaymentOrderRequest.md +15 -11
  107. package/docs/CreatePayoutRequest.md +14 -0
  108. package/docs/CreateRefundRequest.md +3 -3
  109. package/docs/CreateSafeWalletParams.md +1 -1
  110. package/docs/CreateSettlement.md +1 -1
  111. package/docs/CreateSettlementRequestRequest.md +1 -1
  112. package/docs/CreateSmartContractWalletParams.md +1 -1
  113. package/docs/CreateStakeActivityExtra.md +2 -0
  114. package/docs/CreateWalletParams.md +1 -1
  115. package/docs/GetExchangeRate200Response.md +1 -1
  116. package/docs/LinkDisplayInfo.md +1 -0
  117. package/docs/ListAllocations200Response.md +10 -0
  118. package/docs/ListBatchAllocations200Response.md +10 -0
  119. package/docs/ListPayoutItems200Response.md +10 -0
  120. package/docs/ListPayouts200Response.md +10 -0
  121. package/docs/MPCVaultEventData.md +3 -1
  122. package/docs/MerchantBalance.md +4 -2
  123. package/docs/OAuthApi.md +2 -2
  124. package/docs/Order.md +16 -13
  125. package/docs/OrderLinkBusinessInfo.md +11 -7
  126. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
  127. package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
  128. package/docs/PaymentAddressUpdateEventData.md +3 -1
  129. package/docs/PaymentAllocationAmount.md +10 -0
  130. package/docs/PaymentApi.md +527 -20
  131. package/docs/PaymentOrderEventData.md +19 -14
  132. package/docs/PaymentPayout.md +19 -0
  133. package/docs/PaymentPayoutDetail.md +19 -0
  134. package/docs/PaymentPayoutEvent.md +65 -0
  135. package/docs/PaymentPayoutItem.md +22 -0
  136. package/docs/PaymentPayoutItemDetail.md +22 -0
  137. package/docs/PaymentPayoutItemStatus.md +18 -0
  138. package/docs/PaymentPayoutParam.md +13 -0
  139. package/docs/PaymentPayoutStatus.md +20 -0
  140. package/docs/PaymentRefundEventData.md +3 -1
  141. package/docs/PaymentSettlementEvent.md +3 -1
  142. package/docs/PaymentSourceType.md +12 -0
  143. package/docs/PaymentTransactionEventData.md +3 -1
  144. package/docs/PspBalance.md +4 -2
  145. package/docs/RefundLinkBusinessInfo.md +1 -1
  146. package/docs/Stakings.md +2 -1
  147. package/docs/StakingsApi.md +54 -1
  148. package/docs/SuspendedTokenEventData.md +3 -1
  149. package/docs/SwapActivity.md +1 -1
  150. package/docs/SwapActivityDetail.md +1 -1
  151. package/docs/SwapActivityTimeline.md +1 -1
  152. package/docs/SwapsApi.md +1 -1
  153. package/docs/TSSRequestWebhookEventData.md +3 -1
  154. package/docs/TokenListingEventData.md +3 -1
  155. package/docs/TokensEventData.md +3 -1
  156. package/docs/TransactionCosmosContractDestination.md +0 -1
  157. package/docs/TransactionWebhookEventData.md +3 -1
  158. package/docs/TransactionsApi.md +3 -3
  159. package/docs/UpdateMerchantByIdRequest.md +1 -1
  160. package/docs/WalletInfoEventData.md +3 -1
  161. package/docs/WalletsApi.md +7 -7
  162. package/docs/WebhookEventData.md +21 -13
  163. package/docs/WebhookEventDataType.md +3 -1
  164. package/docs/WebhookEventType.md +4 -0
  165. package/package.json +1 -1
@@ -0,0 +1,76 @@
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 PaymentPayoutItemStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentPayoutItemStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentPayoutItemStatus() {
32
+ _classCallCheck(this, PaymentPayoutItemStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "PartiallyCompleted"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
53
+ /**
54
+ * value: "Failed"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Failed", "Failed");
58
+ /**
59
+ * value: "unknown_default_open_api"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
63
+ }
64
+ return _createClass(PaymentPayoutItemStatus, null, [{
65
+ key: "constructFromObject",
66
+ value:
67
+ /**
68
+ * Returns a <code>PaymentPayoutItemStatus</code> enum value from a Javascript object name.
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.
71
+ */
72
+ function constructFromObject(object) {
73
+ return object;
74
+ }
75
+ }]);
76
+ }();
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The PaymentPayoutParam model module.
29
+ * @module model/PaymentPayoutParam
30
+ */
31
+ var PaymentPayoutParam = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>PaymentPayoutParam</code>.
34
+ * @alias module:model/PaymentPayoutParam
35
+ * @param source_account {String}
36
+ * @param token_id {String} Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
37
+ * @param amount {String} The payout cryptocurrency amount.
38
+ */
39
+ function PaymentPayoutParam(source_account, token_id, amount) {
40
+ _classCallCheck(this, PaymentPayoutParam);
41
+ PaymentPayoutParam.initialize(this, source_account, token_id, amount);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(PaymentPayoutParam, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, source_account, token_id, amount) {
52
+ obj['source_account'] = source_account;
53
+ obj['token_id'] = token_id;
54
+ obj['amount'] = amount;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>PaymentPayoutParam</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/PaymentPayoutParam} obj Optional instance to populate.
62
+ * @return {module:model/PaymentPayoutParam} The populated <code>PaymentPayoutParam</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new PaymentPayoutParam();
69
+ if (data.hasOwnProperty('source_account')) {
70
+ obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('token_id')) {
73
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('amount')) {
76
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('crypto_address_id')) {
79
+ obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('crypto_address')) {
82
+ obj['crypto_address'] = _ApiClient["default"].convertToType(data['crypto_address'], 'String');
83
+ }
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>PaymentPayoutParam</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentPayoutParam</code>.
92
+ */
93
+ }, {
94
+ key: "validateJSON",
95
+ value: function validateJSON(data) {
96
+ // check to make sure all required properties are present in the JSON string
97
+ var _iterator = _createForOfIteratorHelper(PaymentPayoutParam.RequiredProperties),
98
+ _step;
99
+ try {
100
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
101
+ var property = _step.value;
102
+ if (!data.hasOwnProperty(property)) {
103
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
104
+ }
105
+ }
106
+ // ensure the json data is a string
107
+ } catch (err) {
108
+ _iterator.e(err);
109
+ } finally {
110
+ _iterator.f();
111
+ }
112
+ if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
113
+ throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
117
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
121
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
125
+ throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
126
+ }
127
+ // ensure the json data is a string
128
+ if (data['crypto_address'] && !(typeof data['crypto_address'] === 'string' || data['crypto_address'] instanceof String)) {
129
+ throw new Error("Expected the field `crypto_address` to be a primitive type in the JSON string but got " + data['crypto_address']);
130
+ }
131
+ return true;
132
+ }
133
+ }]);
134
+ }();
135
+ PaymentPayoutParam.RequiredProperties = ["source_account", "token_id", "amount"];
136
+
137
+ /**
138
+ * @member {String} source_account
139
+ */
140
+ PaymentPayoutParam.prototype['source_account'] = undefined;
141
+
142
+ /**
143
+ * Only used in Crypto payout channel. The ID of the cryptocurrency you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
144
+ * @member {String} token_id
145
+ */
146
+ PaymentPayoutParam.prototype['token_id'] = undefined;
147
+
148
+ /**
149
+ * The payout cryptocurrency amount.
150
+ * @member {String} amount
151
+ */
152
+ PaymentPayoutParam.prototype['amount'] = undefined;
153
+
154
+ /**
155
+ * Only used in Crypto payout channel. The ID of the pre-approved crypto address used for Crypto settlements. - The value must refer to a valid address that has been pre-configured and approved for the given token.
156
+ * @member {String} crypto_address_id
157
+ */
158
+ PaymentPayoutParam.prototype['crypto_address_id'] = undefined;
159
+
160
+ /**
161
+ * Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination.
162
+ * @member {String} crypto_address
163
+ */
164
+ PaymentPayoutParam.prototype['crypto_address'] = undefined;
165
+ var _default = exports["default"] = PaymentPayoutParam;
@@ -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 PaymentPayoutStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentPayoutStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentPayoutStatus() {
32
+ _classCallCheck(this, PaymentPayoutStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Processing"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Processing", "Processing");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "PartiallyCompleted"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PartiallyCompleted", "PartiallyCompleted");
53
+ /**
54
+ * value: "Failed"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Failed", "Failed");
58
+ /**
59
+ * value: "Canceled"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "Canceled", "Canceled");
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(PaymentPayoutStatus, null, [{
70
+ key: "constructFromObject",
71
+ value:
72
+ /**
73
+ * Returns a <code>PaymentPayoutStatus</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/PaymentPayoutStatus} The enum <code>PaymentPayoutStatus</code> value.
76
+ */
77
+ function constructFromObject(object) {
78
+ return object;
79
+ }
80
+ }]);
81
+ }();
@@ -40,7 +40,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
40
40
  * @alias module:model/PaymentRefundEventData
41
41
  * @implements module:model/WebhookEventDataType
42
42
  * @implements module:model/Refund
43
- * @param data_type {module:model/PaymentRefundEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
43
+ * @param data_type {module:model/PaymentRefundEventData.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.
44
44
  * @param refund_id {String} The refund order ID.
45
45
  * @param token_id {String} The ID of the cryptocurrency used for refund.
46
46
  * @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
@@ -253,7 +253,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
253
253
  PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
254
254
 
255
255
  /**
256
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
256
+ * 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.
257
257
  * @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
258
258
  */
259
259
  PaymentRefundEventData.prototype['data_type'] = undefined;
@@ -365,7 +365,7 @@ PaymentRefundEventData.prototype['commission_fee'] = undefined;
365
365
 
366
366
  // Implement WebhookEventDataType interface:
367
367
  /**
368
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
368
+ * 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.
369
369
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
370
370
  */
371
371
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -529,6 +529,11 @@ PaymentRefundEventData['DataTypeEnum'] = {
529
529
  * @const
530
530
  */
531
531
  "PaymentAddressUpdate": "PaymentAddressUpdate",
532
+ /**
533
+ * value: "PaymentPayout"
534
+ * @const
535
+ */
536
+ "PaymentPayout": "PaymentPayout",
532
537
  /**
533
538
  * value: "BalanceUpdateInfo"
534
539
  * @const
@@ -42,7 +42,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
42
42
  * @alias module:model/PaymentSettlementEvent
43
43
  * @implements module:model/WebhookEventDataType
44
44
  * @implements module:model/Settlement
45
- * @param data_type {module:model/PaymentSettlementEvent.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
45
+ * @param data_type {module:model/PaymentSettlementEvent.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.
46
46
  * @param settlement_request_id {String} The settlement request ID generated by Cobo.
47
47
  * @param request_id {String} The request ID provided by you when creating the settlement request.
48
48
  * @param status {module:model/SettleRequestStatus}
@@ -212,7 +212,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
212
212
  PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
213
213
 
214
214
  /**
215
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
215
+ * 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.
216
216
  * @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
217
217
  */
218
218
  PaymentSettlementEvent.prototype['data_type'] = undefined;
@@ -291,7 +291,7 @@ PaymentSettlementEvent.prototype['bank_account'] = undefined;
291
291
 
292
292
  // Implement WebhookEventDataType interface:
293
293
  /**
294
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
294
+ * 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.
295
295
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
296
296
  */
297
297
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -427,6 +427,11 @@ PaymentSettlementEvent['DataTypeEnum'] = {
427
427
  * @const
428
428
  */
429
429
  "PaymentAddressUpdate": "PaymentAddressUpdate",
430
+ /**
431
+ * value: "PaymentPayout"
432
+ * @const
433
+ */
434
+ "PaymentPayout": "PaymentPayout",
430
435
  /**
431
436
  * value: "BalanceUpdateInfo"
432
437
  * @const
@@ -0,0 +1,61 @@
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 PaymentSourceType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentSourceType = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentSourceType() {
32
+ _classCallCheck(this, PaymentSourceType);
33
+ /**
34
+ * value: "Merchant"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Merchant", "Merchant");
38
+ /**
39
+ * value: "Psp"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Psp", "Psp");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(PaymentSourceType, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>PaymentSourceType</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/PaymentSourceType} The enum <code>PaymentSourceType</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -49,7 +49,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
49
49
  * @alias module:model/PaymentTransactionEventData
50
50
  * @implements module:model/WebhookEventDataType
51
51
  * @implements module:model/Transaction
52
- * @param data_type {module:model/PaymentTransactionEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
52
+ * @param data_type {module:model/PaymentTransactionEventData.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.
53
53
  * @param transaction_id {String} The transaction ID.
54
54
  * @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
55
55
  * @param status {module:model/TransactionStatus}
@@ -378,7 +378,7 @@ var PaymentTransactionEventData = /*#__PURE__*/function () {
378
378
  PaymentTransactionEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type", "created_timestamp", "updated_timestamp", "acquiring_type"];
379
379
 
380
380
  /**
381
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
381
+ * 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.
382
382
  * @member {module:model/PaymentTransactionEventData.DataTypeEnum} data_type
383
383
  */
384
384
  PaymentTransactionEventData.prototype['data_type'] = undefined;
@@ -588,7 +588,7 @@ PaymentTransactionEventData.prototype['custom_payer_id'] = undefined;
588
588
 
589
589
  // Implement WebhookEventDataType interface:
590
590
  /**
591
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
591
+ * 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.
592
592
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
593
593
  */
594
594
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -808,6 +808,11 @@ PaymentTransactionEventData['DataTypeEnum'] = {
808
808
  * @const
809
809
  */
810
810
  "PaymentAddressUpdate": "PaymentAddressUpdate",
811
+ /**
812
+ * value: "PaymentPayout"
813
+ * @const
814
+ */
815
+ "PaymentPayout": "PaymentPayout",
811
816
  /**
812
817
  * value: "BalanceUpdateInfo"
813
818
  * @const
@@ -71,6 +71,9 @@ var PspBalance = /*#__PURE__*/function () {
71
71
  if (data.hasOwnProperty('settled_amount')) {
72
72
  obj['settled_amount'] = _ApiClient["default"].convertToType(data['settled_amount'], 'String');
73
73
  }
74
+ if (data.hasOwnProperty('payout_amount')) {
75
+ obj['payout_amount'] = _ApiClient["default"].convertToType(data['payout_amount'], 'String');
76
+ }
74
77
  if (data.hasOwnProperty('refunded_amount')) {
75
78
  obj['refunded_amount'] = _ApiClient["default"].convertToType(data['refunded_amount'], 'String');
76
79
  }
@@ -80,6 +83,9 @@ var PspBalance = /*#__PURE__*/function () {
80
83
  if (data.hasOwnProperty('available_balance')) {
81
84
  obj['available_balance'] = _ApiClient["default"].convertToType(data['available_balance'], 'String');
82
85
  }
86
+ if (data.hasOwnProperty('locked_balance')) {
87
+ obj['locked_balance'] = _ApiClient["default"].convertToType(data['locked_balance'], 'String');
88
+ }
83
89
  }
84
90
  return obj;
85
91
  }
@@ -120,6 +126,10 @@ var PspBalance = /*#__PURE__*/function () {
120
126
  throw new Error("Expected the field `settled_amount` to be a primitive type in the JSON string but got " + data['settled_amount']);
121
127
  }
122
128
  // ensure the json data is a string
129
+ if (data['payout_amount'] && !(typeof data['payout_amount'] === 'string' || data['payout_amount'] instanceof String)) {
130
+ throw new Error("Expected the field `payout_amount` to be a primitive type in the JSON string but got " + data['payout_amount']);
131
+ }
132
+ // ensure the json data is a string
123
133
  if (data['refunded_amount'] && !(typeof data['refunded_amount'] === 'string' || data['refunded_amount'] instanceof String)) {
124
134
  throw new Error("Expected the field `refunded_amount` to be a primitive type in the JSON string but got " + data['refunded_amount']);
125
135
  }
@@ -131,6 +141,10 @@ var PspBalance = /*#__PURE__*/function () {
131
141
  if (data['available_balance'] && !(typeof data['available_balance'] === 'string' || data['available_balance'] instanceof String)) {
132
142
  throw new Error("Expected the field `available_balance` to be a primitive type in the JSON string but got " + data['available_balance']);
133
143
  }
144
+ // ensure the json data is a string
145
+ if (data['locked_balance'] && !(typeof data['locked_balance'] === 'string' || data['locked_balance'] instanceof String)) {
146
+ throw new Error("Expected the field `locked_balance` to be a primitive type in the JSON string but got " + data['locked_balance']);
147
+ }
134
148
  return true;
135
149
  }
136
150
  }]);
@@ -155,6 +169,12 @@ PspBalance.prototype['developer_fee_amount'] = undefined;
155
169
  */
156
170
  PspBalance.prototype['settled_amount'] = undefined;
157
171
 
172
+ /**
173
+ * The psp payout amount.
174
+ * @member {String} payout_amount
175
+ */
176
+ PspBalance.prototype['payout_amount'] = undefined;
177
+
158
178
  /**
159
179
  * The total amount of the token that has been refunded from the developer's balance.
160
180
  * @member {String} refunded_amount
@@ -162,14 +182,20 @@ PspBalance.prototype['settled_amount'] = undefined;
162
182
  PspBalance.prototype['refunded_amount'] = undefined;
163
183
 
164
184
  /**
165
- * The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances)
185
+ * The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances)
166
186
  * @member {String} total_balance
167
187
  */
168
188
  PspBalance.prototype['total_balance'] = undefined;
169
189
 
170
190
  /**
171
- * This field has been deprecated.
191
+ * The psp available balance.
172
192
  * @member {String} available_balance
173
193
  */
174
194
  PspBalance.prototype['available_balance'] = undefined;
195
+
196
+ /**
197
+ * The psp locked balance.
198
+ * @member {String} locked_balance
199
+ */
200
+ PspBalance.prototype['locked_balance'] = undefined;
175
201
  var _default = exports["default"] = PspBalance;
@@ -155,7 +155,7 @@ RefundLinkBusinessInfo.prototype['refund_source'] = undefined;
155
155
  RefundLinkBusinessInfo.prototype['merchant_id'] = undefined;
156
156
 
157
157
  /**
158
- * The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount
158
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency of the original payment transaction. This field is only valid when `refund_source` is `Merchant`. For more information, please refer to [Funds allocation and balances](https://www.cobo.com/payments/en/guides/amounts-and-balances). Must be: - A positive integer with up to two decimal places. - Less than the refund amount
159
159
  * @member {String} fee_amount
160
160
  */
161
161
  RefundLinkBusinessInfo.prototype['fee_amount'] = undefined;