@cobo/cobo-waas2 1.37.0 → 1.38.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.
- package/README.md +2 -1
- package/dist/ApiClient.js +1 -1
- package/dist/index.js +7 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/ApprovalUserDetail.js +13 -0
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/CreateBulkSendRequest.js +1 -1
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +1 -1
- package/dist/model/EstimatedSOLFeeSlow.js +2 -2
- package/dist/model/FiatTransactionEventData.js +8 -3
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/OrganizationEventData.js +8 -3
- package/dist/model/PaymentAccountBalanceUpdateEventData.js +418 -0
- package/dist/model/PaymentAddressUpdateEventData.js +21 -3
- package/dist/model/PaymentBulkSendEvent.js +8 -3
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentPayoutEvent.js +8 -3
- package/dist/model/PaymentPayoutRecipientInfo.js +1 -1
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +47 -3
- package/dist/model/SOLBase.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +3 -3
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +105 -11
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/ApprovalUserDetail.md +1 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/CreateBulkSendRequest.md +1 -1
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +1 -1
- package/docs/FiatTransactionEventData.md +3 -1
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/OrganizationEventData.md +3 -1
- package/docs/PaymentAccountBalanceUpdateEventData.md +76 -0
- package/docs/PaymentAddressUpdateEventData.md +4 -1
- package/docs/PaymentBulkSendEvent.md +3 -1
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentPayoutEvent.md +3 -1
- package/docs/PaymentPayoutRecipientInfo.md +1 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +6 -1
- package/docs/SOLBase.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionSOLFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WebhookEventData.md +16 -3
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _PaymentBalanceChangeSourceType = _interopRequireDefault(require("./PaymentBalanceChangeSourceType"));
|
|
9
|
+
var _PaymentBalanceFlowDirection = _interopRequireDefault(require("./PaymentBalanceFlowDirection"));
|
|
10
|
+
var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; } } }; }
|
|
14
|
+
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; } }
|
|
15
|
+
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; }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
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); } /**
|
|
21
|
+
* Cobo Wallet as a Service 2.0
|
|
22
|
+
*
|
|
23
|
+
* Contact: help@cobo.com
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The PaymentAccountBalanceUpdateEventData model module.
|
|
32
|
+
* @module model/PaymentAccountBalanceUpdateEventData
|
|
33
|
+
*/
|
|
34
|
+
var PaymentAccountBalanceUpdateEventData = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>PaymentAccountBalanceUpdateEventData</code>.
|
|
37
|
+
* This event occurs when the available balance of a Payments account changes for a specific token. The balance change fields are aligned with the `PaymentBalanceChange` object returned by
|
|
38
|
+
* @alias module:model/PaymentAccountBalanceUpdateEventData
|
|
39
|
+
* @implements module:model/WebhookEventDataType
|
|
40
|
+
* @param data_type {module:model/PaymentAccountBalanceUpdateEventData.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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
41
|
+
* @param source_account {String} The source account of the balance change. This field uses the same semantics as `source_account` in [List balance changes](https://www.cobo.com/developers/v2/api-references/payment/list-balance-changes). - When the account is a merchant account, this is the merchant ID (merchant code), which you can retrieve by calling [List all merchants](https://www.cobo.com/developers/v2/api-references/payment/list-all-merchants). - When the account is the developer account, use `developer`.
|
|
42
|
+
* @param source_id {String} The source ID of the balance change.
|
|
43
|
+
* @param source_type {module:model/PaymentBalanceChangeSourceType}
|
|
44
|
+
* @param token_id {String} The token ID of the balance change.
|
|
45
|
+
* @param amount {String} The balance change amount, truncated to two decimal places and represented as a numeric string.
|
|
46
|
+
* @param amount_raw {String} The balance change amount in the token's decimal precision, represented as a numeric string.
|
|
47
|
+
* @param balance_before {String} The account balance before the balance change, truncated to two decimal places and represented as a numeric string.
|
|
48
|
+
* @param balance_before_raw {String} The account balance before the balance change in the token's decimal precision, represented as a numeric string.
|
|
49
|
+
* @param balance_after {String} The account balance after the balance change, truncated to two decimal places and represented as a numeric string.
|
|
50
|
+
* @param balance_after_raw {String} The account balance after the balance change in the token's decimal precision, represented as a numeric string.
|
|
51
|
+
* @param flow_direction {module:model/PaymentBalanceFlowDirection}
|
|
52
|
+
* @param update_time {Number} The time when the balance was updated, represented as a UNIX timestamp in seconds.
|
|
53
|
+
*/
|
|
54
|
+
function PaymentAccountBalanceUpdateEventData(data_type, source_account, source_id, source_type, token_id, amount, amount_raw, balance_before, balance_before_raw, balance_after, balance_after_raw, flow_direction, update_time) {
|
|
55
|
+
_classCallCheck(this, PaymentAccountBalanceUpdateEventData);
|
|
56
|
+
_WebhookEventDataType["default"].initialize(this, data_type);
|
|
57
|
+
PaymentAccountBalanceUpdateEventData.initialize(this, data_type, source_account, source_id, source_type, token_id, amount, amount_raw, balance_before, balance_before_raw, balance_after, balance_after_raw, flow_direction, update_time);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Initializes the fields of this object.
|
|
62
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
63
|
+
* Only for internal use.
|
|
64
|
+
*/
|
|
65
|
+
return _createClass(PaymentAccountBalanceUpdateEventData, null, [{
|
|
66
|
+
key: "initialize",
|
|
67
|
+
value: function initialize(obj, data_type, source_account, source_id, source_type, token_id, amount, amount_raw, balance_before, balance_before_raw, balance_after, balance_after_raw, flow_direction, update_time) {
|
|
68
|
+
obj['data_type'] = data_type;
|
|
69
|
+
obj['source_account'] = source_account;
|
|
70
|
+
obj['source_id'] = source_id;
|
|
71
|
+
obj['source_type'] = source_type;
|
|
72
|
+
obj['token_id'] = token_id;
|
|
73
|
+
obj['amount'] = amount;
|
|
74
|
+
obj['amount_raw'] = amount_raw;
|
|
75
|
+
obj['balance_before'] = balance_before;
|
|
76
|
+
obj['balance_before_raw'] = balance_before_raw;
|
|
77
|
+
obj['balance_after'] = balance_after;
|
|
78
|
+
obj['balance_after_raw'] = balance_after_raw;
|
|
79
|
+
obj['flow_direction'] = flow_direction;
|
|
80
|
+
obj['update_time'] = update_time;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Constructs a <code>PaymentAccountBalanceUpdateEventData</code> from a plain JavaScript object, optionally creating a new instance.
|
|
85
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
+
* @param {module:model/PaymentAccountBalanceUpdateEventData} obj Optional instance to populate.
|
|
88
|
+
* @return {module:model/PaymentAccountBalanceUpdateEventData} The populated <code>PaymentAccountBalanceUpdateEventData</code> instance.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "constructFromObject",
|
|
92
|
+
value: function constructFromObject(data, obj) {
|
|
93
|
+
if (data) {
|
|
94
|
+
obj = obj || new PaymentAccountBalanceUpdateEventData();
|
|
95
|
+
_WebhookEventDataType["default"].constructFromObject(data, obj);
|
|
96
|
+
if (data.hasOwnProperty('data_type')) {
|
|
97
|
+
obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('source_account')) {
|
|
100
|
+
obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('source_id')) {
|
|
103
|
+
obj['source_id'] = _ApiClient["default"].convertToType(data['source_id'], 'String');
|
|
104
|
+
}
|
|
105
|
+
if (data.hasOwnProperty('source_type')) {
|
|
106
|
+
obj['source_type'] = _PaymentBalanceChangeSourceType["default"].constructFromObject(data['source_type']);
|
|
107
|
+
}
|
|
108
|
+
if (data.hasOwnProperty('token_id')) {
|
|
109
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('amount')) {
|
|
112
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
113
|
+
}
|
|
114
|
+
if (data.hasOwnProperty('amount_raw')) {
|
|
115
|
+
obj['amount_raw'] = _ApiClient["default"].convertToType(data['amount_raw'], 'String');
|
|
116
|
+
}
|
|
117
|
+
if (data.hasOwnProperty('balance_before')) {
|
|
118
|
+
obj['balance_before'] = _ApiClient["default"].convertToType(data['balance_before'], 'String');
|
|
119
|
+
}
|
|
120
|
+
if (data.hasOwnProperty('balance_before_raw')) {
|
|
121
|
+
obj['balance_before_raw'] = _ApiClient["default"].convertToType(data['balance_before_raw'], 'String');
|
|
122
|
+
}
|
|
123
|
+
if (data.hasOwnProperty('balance_after')) {
|
|
124
|
+
obj['balance_after'] = _ApiClient["default"].convertToType(data['balance_after'], 'String');
|
|
125
|
+
}
|
|
126
|
+
if (data.hasOwnProperty('balance_after_raw')) {
|
|
127
|
+
obj['balance_after_raw'] = _ApiClient["default"].convertToType(data['balance_after_raw'], 'String');
|
|
128
|
+
}
|
|
129
|
+
if (data.hasOwnProperty('flow_direction')) {
|
|
130
|
+
obj['flow_direction'] = _PaymentBalanceFlowDirection["default"].constructFromObject(data['flow_direction']);
|
|
131
|
+
}
|
|
132
|
+
if (data.hasOwnProperty('update_time')) {
|
|
133
|
+
obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'Number');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return obj;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Validates the JSON data with respect to <code>PaymentAccountBalanceUpdateEventData</code>.
|
|
141
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
142
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentAccountBalanceUpdateEventData</code>.
|
|
143
|
+
*/
|
|
144
|
+
}, {
|
|
145
|
+
key: "validateJSON",
|
|
146
|
+
value: function validateJSON(data) {
|
|
147
|
+
// check to make sure all required properties are present in the JSON string
|
|
148
|
+
var _iterator = _createForOfIteratorHelper(PaymentAccountBalanceUpdateEventData.RequiredProperties),
|
|
149
|
+
_step;
|
|
150
|
+
try {
|
|
151
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
152
|
+
var property = _step.value;
|
|
153
|
+
if (!data.hasOwnProperty(property)) {
|
|
154
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
// ensure the json data is a string
|
|
158
|
+
} catch (err) {
|
|
159
|
+
_iterator.e(err);
|
|
160
|
+
} finally {
|
|
161
|
+
_iterator.f();
|
|
162
|
+
}
|
|
163
|
+
if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
|
|
165
|
+
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
|
|
169
|
+
}
|
|
170
|
+
// ensure the json data is a string
|
|
171
|
+
if (data['source_id'] && !(typeof data['source_id'] === 'string' || data['source_id'] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `source_id` to be a primitive type in the JSON string but got " + data['source_id']);
|
|
173
|
+
}
|
|
174
|
+
// ensure the json data is a string
|
|
175
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
176
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
177
|
+
}
|
|
178
|
+
// ensure the json data is a string
|
|
179
|
+
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
180
|
+
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
181
|
+
}
|
|
182
|
+
// ensure the json data is a string
|
|
183
|
+
if (data['amount_raw'] && !(typeof data['amount_raw'] === 'string' || data['amount_raw'] instanceof String)) {
|
|
184
|
+
throw new Error("Expected the field `amount_raw` to be a primitive type in the JSON string but got " + data['amount_raw']);
|
|
185
|
+
}
|
|
186
|
+
// ensure the json data is a string
|
|
187
|
+
if (data['balance_before'] && !(typeof data['balance_before'] === 'string' || data['balance_before'] instanceof String)) {
|
|
188
|
+
throw new Error("Expected the field `balance_before` to be a primitive type in the JSON string but got " + data['balance_before']);
|
|
189
|
+
}
|
|
190
|
+
// ensure the json data is a string
|
|
191
|
+
if (data['balance_before_raw'] && !(typeof data['balance_before_raw'] === 'string' || data['balance_before_raw'] instanceof String)) {
|
|
192
|
+
throw new Error("Expected the field `balance_before_raw` to be a primitive type in the JSON string but got " + data['balance_before_raw']);
|
|
193
|
+
}
|
|
194
|
+
// ensure the json data is a string
|
|
195
|
+
if (data['balance_after'] && !(typeof data['balance_after'] === 'string' || data['balance_after'] instanceof String)) {
|
|
196
|
+
throw new Error("Expected the field `balance_after` to be a primitive type in the JSON string but got " + data['balance_after']);
|
|
197
|
+
}
|
|
198
|
+
// ensure the json data is a string
|
|
199
|
+
if (data['balance_after_raw'] && !(typeof data['balance_after_raw'] === 'string' || data['balance_after_raw'] instanceof String)) {
|
|
200
|
+
throw new Error("Expected the field `balance_after_raw` to be a primitive type in the JSON string but got " + data['balance_after_raw']);
|
|
201
|
+
}
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
}]);
|
|
205
|
+
}();
|
|
206
|
+
PaymentAccountBalanceUpdateEventData.RequiredProperties = ["data_type", "source_account", "source_id", "source_type", "token_id", "amount", "amount_raw", "balance_before", "balance_before_raw", "balance_after", "balance_after_raw", "flow_direction", "update_time"];
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
210
|
+
* @member {module:model/PaymentAccountBalanceUpdateEventData.DataTypeEnum} data_type
|
|
211
|
+
*/
|
|
212
|
+
PaymentAccountBalanceUpdateEventData.prototype['data_type'] = undefined;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The source account of the balance change. This field uses the same semantics as `source_account` in [List balance changes](https://www.cobo.com/developers/v2/api-references/payment/list-balance-changes). - When the account is a merchant account, this is the merchant ID (merchant code), which you can retrieve by calling [List all merchants](https://www.cobo.com/developers/v2/api-references/payment/list-all-merchants). - When the account is the developer account, use `developer`.
|
|
216
|
+
* @member {String} source_account
|
|
217
|
+
*/
|
|
218
|
+
PaymentAccountBalanceUpdateEventData.prototype['source_account'] = undefined;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The source ID of the balance change.
|
|
222
|
+
* @member {String} source_id
|
|
223
|
+
*/
|
|
224
|
+
PaymentAccountBalanceUpdateEventData.prototype['source_id'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @member {module:model/PaymentBalanceChangeSourceType} source_type
|
|
228
|
+
*/
|
|
229
|
+
PaymentAccountBalanceUpdateEventData.prototype['source_type'] = undefined;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The token ID of the balance change.
|
|
233
|
+
* @member {String} token_id
|
|
234
|
+
*/
|
|
235
|
+
PaymentAccountBalanceUpdateEventData.prototype['token_id'] = undefined;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The balance change amount, truncated to two decimal places and represented as a numeric string.
|
|
239
|
+
* @member {String} amount
|
|
240
|
+
*/
|
|
241
|
+
PaymentAccountBalanceUpdateEventData.prototype['amount'] = undefined;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The balance change amount in the token's decimal precision, represented as a numeric string.
|
|
245
|
+
* @member {String} amount_raw
|
|
246
|
+
*/
|
|
247
|
+
PaymentAccountBalanceUpdateEventData.prototype['amount_raw'] = undefined;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The account balance before the balance change, truncated to two decimal places and represented as a numeric string.
|
|
251
|
+
* @member {String} balance_before
|
|
252
|
+
*/
|
|
253
|
+
PaymentAccountBalanceUpdateEventData.prototype['balance_before'] = undefined;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The account balance before the balance change in the token's decimal precision, represented as a numeric string.
|
|
257
|
+
* @member {String} balance_before_raw
|
|
258
|
+
*/
|
|
259
|
+
PaymentAccountBalanceUpdateEventData.prototype['balance_before_raw'] = undefined;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The account balance after the balance change, truncated to two decimal places and represented as a numeric string.
|
|
263
|
+
* @member {String} balance_after
|
|
264
|
+
*/
|
|
265
|
+
PaymentAccountBalanceUpdateEventData.prototype['balance_after'] = undefined;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The account balance after the balance change in the token's decimal precision, represented as a numeric string.
|
|
269
|
+
* @member {String} balance_after_raw
|
|
270
|
+
*/
|
|
271
|
+
PaymentAccountBalanceUpdateEventData.prototype['balance_after_raw'] = undefined;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @member {module:model/PaymentBalanceFlowDirection} flow_direction
|
|
275
|
+
*/
|
|
276
|
+
PaymentAccountBalanceUpdateEventData.prototype['flow_direction'] = undefined;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The time when the balance was updated, represented as a UNIX timestamp in seconds.
|
|
280
|
+
* @member {Number} update_time
|
|
281
|
+
*/
|
|
282
|
+
PaymentAccountBalanceUpdateEventData.prototype['update_time'] = undefined;
|
|
283
|
+
|
|
284
|
+
// Implement WebhookEventDataType interface:
|
|
285
|
+
/**
|
|
286
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
287
|
+
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
288
|
+
*/
|
|
289
|
+
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Allowed values for the <code>data_type</code> property.
|
|
293
|
+
* @enum {String}
|
|
294
|
+
* @readonly
|
|
295
|
+
*/
|
|
296
|
+
PaymentAccountBalanceUpdateEventData['DataTypeEnum'] = {
|
|
297
|
+
/**
|
|
298
|
+
* value: "Transaction"
|
|
299
|
+
* @const
|
|
300
|
+
*/
|
|
301
|
+
"Transaction": "Transaction",
|
|
302
|
+
/**
|
|
303
|
+
* value: "TSSRequest"
|
|
304
|
+
* @const
|
|
305
|
+
*/
|
|
306
|
+
"TSSRequest": "TSSRequest",
|
|
307
|
+
/**
|
|
308
|
+
* value: "Addresses"
|
|
309
|
+
* @const
|
|
310
|
+
*/
|
|
311
|
+
"Addresses": "Addresses",
|
|
312
|
+
/**
|
|
313
|
+
* value: "WalletInfo"
|
|
314
|
+
* @const
|
|
315
|
+
*/
|
|
316
|
+
"WalletInfo": "WalletInfo",
|
|
317
|
+
/**
|
|
318
|
+
* value: "MPCVault"
|
|
319
|
+
* @const
|
|
320
|
+
*/
|
|
321
|
+
"MPCVault": "MPCVault",
|
|
322
|
+
/**
|
|
323
|
+
* value: "Chains"
|
|
324
|
+
* @const
|
|
325
|
+
*/
|
|
326
|
+
"Chains": "Chains",
|
|
327
|
+
/**
|
|
328
|
+
* value: "Tokens"
|
|
329
|
+
* @const
|
|
330
|
+
*/
|
|
331
|
+
"Tokens": "Tokens",
|
|
332
|
+
/**
|
|
333
|
+
* value: "TokenListing"
|
|
334
|
+
* @const
|
|
335
|
+
*/
|
|
336
|
+
"TokenListing": "TokenListing",
|
|
337
|
+
/**
|
|
338
|
+
* value: "PaymentOrder"
|
|
339
|
+
* @const
|
|
340
|
+
*/
|
|
341
|
+
"PaymentOrder": "PaymentOrder",
|
|
342
|
+
/**
|
|
343
|
+
* value: "PaymentRefund"
|
|
344
|
+
* @const
|
|
345
|
+
*/
|
|
346
|
+
"PaymentRefund": "PaymentRefund",
|
|
347
|
+
/**
|
|
348
|
+
* value: "PaymentSettlement"
|
|
349
|
+
* @const
|
|
350
|
+
*/
|
|
351
|
+
"PaymentSettlement": "PaymentSettlement",
|
|
352
|
+
/**
|
|
353
|
+
* value: "PaymentTransaction"
|
|
354
|
+
* @const
|
|
355
|
+
*/
|
|
356
|
+
"PaymentTransaction": "PaymentTransaction",
|
|
357
|
+
/**
|
|
358
|
+
* value: "PaymentAddressUpdate"
|
|
359
|
+
* @const
|
|
360
|
+
*/
|
|
361
|
+
"PaymentAddressUpdate": "PaymentAddressUpdate",
|
|
362
|
+
/**
|
|
363
|
+
* value: "PaymentPayout"
|
|
364
|
+
* @const
|
|
365
|
+
*/
|
|
366
|
+
"PaymentPayout": "PaymentPayout",
|
|
367
|
+
/**
|
|
368
|
+
* value: "PaymentBulkSend"
|
|
369
|
+
* @const
|
|
370
|
+
*/
|
|
371
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
372
|
+
/**
|
|
373
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
374
|
+
* @const
|
|
375
|
+
*/
|
|
376
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
377
|
+
/**
|
|
378
|
+
* value: "BalanceUpdateInfo"
|
|
379
|
+
* @const
|
|
380
|
+
*/
|
|
381
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
382
|
+
/**
|
|
383
|
+
* value: "SuspendedToken"
|
|
384
|
+
* @const
|
|
385
|
+
*/
|
|
386
|
+
"SuspendedToken": "SuspendedToken",
|
|
387
|
+
/**
|
|
388
|
+
* value: "ComplianceDisposition"
|
|
389
|
+
* @const
|
|
390
|
+
*/
|
|
391
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
392
|
+
/**
|
|
393
|
+
* value: "ComplianceKytScreenings"
|
|
394
|
+
* @const
|
|
395
|
+
*/
|
|
396
|
+
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
397
|
+
/**
|
|
398
|
+
* value: "ComplianceKyaScreenings"
|
|
399
|
+
* @const
|
|
400
|
+
*/
|
|
401
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
402
|
+
/**
|
|
403
|
+
* value: "Organization"
|
|
404
|
+
* @const
|
|
405
|
+
*/
|
|
406
|
+
"Organization": "Organization",
|
|
407
|
+
/**
|
|
408
|
+
* value: "FiatTransaction"
|
|
409
|
+
* @const
|
|
410
|
+
*/
|
|
411
|
+
"FiatTransaction": "FiatTransaction",
|
|
412
|
+
/**
|
|
413
|
+
* value: "unknown_default_open_api"
|
|
414
|
+
* @const
|
|
415
|
+
*/
|
|
416
|
+
"unknown_default_open_api": "unknown_default_open_api"
|
|
417
|
+
};
|
|
418
|
+
var _default = exports["default"] = PaymentAccountBalanceUpdateEventData;
|
|
@@ -34,7 +34,7 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
34
34
|
* Constructs a new <code>PaymentAddressUpdateEventData</code>.
|
|
35
35
|
* @alias module:model/PaymentAddressUpdateEventData
|
|
36
36
|
* @implements module:model/WebhookEventDataType
|
|
37
|
-
* @param data_type {module:model/PaymentAddressUpdateEventData.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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
37
|
+
* @param data_type {module:model/PaymentAddressUpdateEventData.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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
38
38
|
* @param custom_payer_id {String} A unique identifier assigned by the developer to track and identify individual payers in their system.
|
|
39
39
|
* @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
|
|
40
40
|
* @param chain {String} The chain ID.
|
|
@@ -85,6 +85,9 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
85
85
|
if (data.hasOwnProperty('payer_id')) {
|
|
86
86
|
obj['payer_id'] = _ApiClient["default"].convertToType(data['payer_id'], 'String');
|
|
87
87
|
}
|
|
88
|
+
if (data.hasOwnProperty('merchant_id')) {
|
|
89
|
+
obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
|
|
90
|
+
}
|
|
88
91
|
if (data.hasOwnProperty('chain')) {
|
|
89
92
|
obj['chain'] = _ApiClient["default"].convertToType(data['chain'], 'String');
|
|
90
93
|
}
|
|
@@ -134,6 +137,10 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
134
137
|
throw new Error("Expected the field `payer_id` to be a primitive type in the JSON string but got " + data['payer_id']);
|
|
135
138
|
}
|
|
136
139
|
// ensure the json data is a string
|
|
140
|
+
if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
|
|
142
|
+
}
|
|
143
|
+
// ensure the json data is a string
|
|
137
144
|
if (data['chain'] && !(typeof data['chain'] === 'string' || data['chain'] instanceof String)) {
|
|
138
145
|
throw new Error("Expected the field `chain` to be a primitive type in the JSON string but got " + data['chain']);
|
|
139
146
|
}
|
|
@@ -152,7 +159,7 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
152
159
|
PaymentAddressUpdateEventData.RequiredProperties = ["data_type", "custom_payer_id", "payer_id", "chain", "previous_address", "updated_address"];
|
|
153
160
|
|
|
154
161
|
/**
|
|
155
|
-
* 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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
162
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
156
163
|
* @member {module:model/PaymentAddressUpdateEventData.DataTypeEnum} data_type
|
|
157
164
|
*/
|
|
158
165
|
PaymentAddressUpdateEventData.prototype['data_type'] = undefined;
|
|
@@ -169,6 +176,12 @@ PaymentAddressUpdateEventData.prototype['custom_payer_id'] = undefined;
|
|
|
169
176
|
*/
|
|
170
177
|
PaymentAddressUpdateEventData.prototype['payer_id'] = undefined;
|
|
171
178
|
|
|
179
|
+
/**
|
|
180
|
+
* The merchant ID.
|
|
181
|
+
* @member {String} merchant_id
|
|
182
|
+
*/
|
|
183
|
+
PaymentAddressUpdateEventData.prototype['merchant_id'] = undefined;
|
|
184
|
+
|
|
172
185
|
/**
|
|
173
186
|
* The chain ID.
|
|
174
187
|
* @member {String} chain
|
|
@@ -189,7 +202,7 @@ PaymentAddressUpdateEventData.prototype['updated_address'] = undefined;
|
|
|
189
202
|
|
|
190
203
|
// Implement WebhookEventDataType interface:
|
|
191
204
|
/**
|
|
192
|
-
* 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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
205
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
193
206
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
194
207
|
*/
|
|
195
208
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -275,6 +288,11 @@ PaymentAddressUpdateEventData['DataTypeEnum'] = {
|
|
|
275
288
|
* @const
|
|
276
289
|
*/
|
|
277
290
|
"PaymentBulkSend": "PaymentBulkSend",
|
|
291
|
+
/**
|
|
292
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
293
|
+
* @const
|
|
294
|
+
*/
|
|
295
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
278
296
|
/**
|
|
279
297
|
* value: "BalanceUpdateInfo"
|
|
280
298
|
* @const
|
|
@@ -39,7 +39,7 @@ var PaymentBulkSendEvent = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/PaymentBulkSendEvent
|
|
40
40
|
* @implements module:model/WebhookEventDataType
|
|
41
41
|
* @implements module:model/PaymentBulkSend
|
|
42
|
-
* @param data_type {module:model/PaymentBulkSendEvent.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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
42
|
+
* @param data_type {module:model/PaymentBulkSendEvent.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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
43
43
|
* @param bulk_send_id {String} The bulk send ID.
|
|
44
44
|
* @param source_account {String} The source account from which the bulk send will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
45
45
|
* @param execution_mode {module:model/PaymentBulkSendExecutionMode}
|
|
@@ -176,7 +176,7 @@ var PaymentBulkSendEvent = /*#__PURE__*/function () {
|
|
|
176
176
|
PaymentBulkSendEvent.RequiredProperties = ["data_type", "bulk_send_id", "source_account", "execution_mode", "status", "created_timestamp", "updated_timestamp"];
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
* 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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
179
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
180
180
|
* @member {module:model/PaymentBulkSendEvent.DataTypeEnum} data_type
|
|
181
181
|
*/
|
|
182
182
|
PaymentBulkSendEvent.prototype['data_type'] = undefined;
|
|
@@ -235,7 +235,7 @@ PaymentBulkSendEvent.prototype['commission_fee'] = undefined;
|
|
|
235
235
|
|
|
236
236
|
// Implement WebhookEventDataType interface:
|
|
237
237
|
/**
|
|
238
|
-
* 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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
238
|
+
* 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
239
239
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
240
240
|
*/
|
|
241
241
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -365,6 +365,11 @@ PaymentBulkSendEvent['DataTypeEnum'] = {
|
|
|
365
365
|
* @const
|
|
366
366
|
*/
|
|
367
367
|
"PaymentBulkSend": "PaymentBulkSend",
|
|
368
|
+
/**
|
|
369
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
370
|
+
* @const
|
|
371
|
+
*/
|
|
372
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
368
373
|
/**
|
|
369
374
|
* value: "BalanceUpdateInfo"
|
|
370
375
|
* @const
|
|
@@ -39,7 +39,7 @@ 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. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction 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
45
|
* @param fee_amount {String} The developer fee for the order. It is added to the base amount to determine the final charge.
|
|
@@ -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. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
294
294
|
* @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
|
|
295
295
|
*/
|
|
296
296
|
PaymentOrderEventData.prototype['data_type'] = 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. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction 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. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `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. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
437
437
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
438
438
|
*/
|
|
439
439
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -633,6 +633,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
|
|
|
633
633
|
* @const
|
|
634
634
|
*/
|
|
635
635
|
"PaymentBulkSend": "PaymentBulkSend",
|
|
636
|
+
/**
|
|
637
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
638
|
+
* @const
|
|
639
|
+
*/
|
|
640
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
636
641
|
/**
|
|
637
642
|
* value: "BalanceUpdateInfo"
|
|
638
643
|
* @const
|