@cobo/cobo-waas2 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -9
- package/dist/ApiClient.js +1 -1
- package/dist/api/ComplianceApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +218 -86
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +112 -28
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +42 -42
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +33 -33
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +11 -11
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -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/ContractCallParams.js +1 -1
- package/dist/model/CreateBatchAllocationRequest.js +17 -17
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateKyaScreeningsBody.js +3 -3
- package/dist/model/CreatePaymentOrderRequest.js +7 -5
- package/dist/model/CreatePayoutRequest.js +33 -26
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/{ListPayoutItems200Response.js → ListBulkSendItems200Response.js} +22 -22
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/OrderLinkBusinessInfo.js +10 -4
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +149 -82
- package/dist/model/PaymentPayoutItem.js +9 -167
- package/dist/model/PaymentPayoutParam.js +6 -47
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +8 -3
- 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/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +76 -17
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -1
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceApi.md +1 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +1 -1
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateKyaScreeningsBody.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +2 -2
- package/docs/CreatePayoutRequest.md +3 -3
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/GraphQLApi.md +61 -0
- package/docs/{ListAllocations200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/{ListPayoutItems200Response.md → ListBulkSendItems200Response.md} +2 -2
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/OrderLinkBusinessInfo.md +3 -3
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +231 -76
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +13 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +15 -8
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -299
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
|
@@ -35,10 +35,11 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
35
35
|
* @param merchant_id {String} The merchant ID.
|
|
36
36
|
* @param psp_order_code {String} A unique reference code assigned by the developer to identify this order in their system.
|
|
37
37
|
* @param fee_amount {String} The developer fee for the order. It is added to the base amount (`pricing_amount`) to determine the final charge. For example, if `pricing_amount` is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant account and \"2.00\" settled to the developer account. Values must be greater than 0 and contain two decimal places.
|
|
38
|
+
* @param payable_currency {String} The ID of the cryptocurrency used for payment. 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`
|
|
38
39
|
*/
|
|
39
|
-
function CreatePaymentOrderRequest(merchant_id, psp_order_code, fee_amount) {
|
|
40
|
+
function CreatePaymentOrderRequest(merchant_id, psp_order_code, fee_amount, payable_currency) {
|
|
40
41
|
_classCallCheck(this, CreatePaymentOrderRequest);
|
|
41
|
-
CreatePaymentOrderRequest.initialize(this, merchant_id, psp_order_code, fee_amount);
|
|
42
|
+
CreatePaymentOrderRequest.initialize(this, merchant_id, psp_order_code, fee_amount, payable_currency);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -48,10 +49,11 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
48
49
|
*/
|
|
49
50
|
return _createClass(CreatePaymentOrderRequest, null, [{
|
|
50
51
|
key: "initialize",
|
|
51
|
-
value: function initialize(obj, merchant_id, psp_order_code, fee_amount) {
|
|
52
|
+
value: function initialize(obj, merchant_id, psp_order_code, fee_amount, payable_currency) {
|
|
52
53
|
obj['merchant_id'] = merchant_id;
|
|
53
54
|
obj['psp_order_code'] = psp_order_code;
|
|
54
55
|
obj['fee_amount'] = fee_amount;
|
|
56
|
+
obj['payable_currency'] = payable_currency;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -194,7 +196,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
194
196
|
}
|
|
195
197
|
}]);
|
|
196
198
|
}();
|
|
197
|
-
CreatePaymentOrderRequest.RequiredProperties = ["merchant_id", "psp_order_code", "fee_amount"];
|
|
199
|
+
CreatePaymentOrderRequest.RequiredProperties = ["merchant_id", "psp_order_code", "fee_amount", "payable_currency"];
|
|
198
200
|
|
|
199
201
|
/**
|
|
200
202
|
* The merchant ID.
|
|
@@ -215,7 +217,7 @@ CreatePaymentOrderRequest.prototype['merchant_order_code'] = undefined;
|
|
|
215
217
|
CreatePaymentOrderRequest.prototype['psp_order_code'] = undefined;
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
|
-
* The pricing currency that denominates `pricing_amount` and `fee_amount`. If left empty, both values will be denominated in `payable_currency`.
|
|
220
|
+
* The pricing currency that denominates `pricing_amount` and `fee_amount`. If left empty, both values will be denominated in `payable_currency`. Currently, For a complete list of supported currencies, see [Supported chains and tokens](https://www.cobo.com/developers/v2/guides/overview/supported-chains-and-tokens).
|
|
219
221
|
* @member {String} pricing_currency
|
|
220
222
|
*/
|
|
221
223
|
CreatePaymentOrderRequest.prototype['pricing_currency'] = undefined;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _PaymentPayoutParam = _interopRequireDefault(require("./PaymentPayoutParam"));
|
|
9
|
+
var _PaymentPayoutRecipientInfo = _interopRequireDefault(require("./PaymentPayoutRecipientInfo"));
|
|
9
10
|
var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
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); }
|
|
@@ -35,12 +36,14 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
35
36
|
* Constructs a new <code>CreatePayoutRequest</code>.
|
|
36
37
|
* @alias module:model/CreatePayoutRequest
|
|
37
38
|
* @param request_id {String} The request ID that is used to track a payout request. The request ID is provided by you and must be unique.
|
|
39
|
+
* @param source_account {String} The source account from which the payout will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
38
40
|
* @param payout_channel {module:model/PayoutChannel}
|
|
39
41
|
* @param payout_params {Array.<module:model/PaymentPayoutParam>}
|
|
42
|
+
* @param recipient_info {module:model/PaymentPayoutRecipientInfo}
|
|
40
43
|
*/
|
|
41
|
-
function CreatePayoutRequest(request_id, payout_channel, payout_params) {
|
|
44
|
+
function CreatePayoutRequest(request_id, source_account, payout_channel, payout_params, recipient_info) {
|
|
42
45
|
_classCallCheck(this, CreatePayoutRequest);
|
|
43
|
-
CreatePayoutRequest.initialize(this, request_id, payout_channel, payout_params);
|
|
46
|
+
CreatePayoutRequest.initialize(this, request_id, source_account, payout_channel, payout_params, recipient_info);
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -50,10 +53,12 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
50
53
|
*/
|
|
51
54
|
return _createClass(CreatePayoutRequest, null, [{
|
|
52
55
|
key: "initialize",
|
|
53
|
-
value: function initialize(obj, request_id, payout_channel, payout_params) {
|
|
56
|
+
value: function initialize(obj, request_id, source_account, payout_channel, payout_params, recipient_info) {
|
|
54
57
|
obj['request_id'] = request_id;
|
|
58
|
+
obj['source_account'] = source_account;
|
|
55
59
|
obj['payout_channel'] = payout_channel;
|
|
56
60
|
obj['payout_params'] = payout_params;
|
|
61
|
+
obj['recipient_info'] = recipient_info;
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
/**
|
|
@@ -71,17 +76,17 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
71
76
|
if (data.hasOwnProperty('request_id')) {
|
|
72
77
|
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
73
78
|
}
|
|
79
|
+
if (data.hasOwnProperty('source_account')) {
|
|
80
|
+
obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
|
|
81
|
+
}
|
|
74
82
|
if (data.hasOwnProperty('payout_channel')) {
|
|
75
83
|
obj['payout_channel'] = _PayoutChannel["default"].constructFromObject(data['payout_channel']);
|
|
76
84
|
}
|
|
77
85
|
if (data.hasOwnProperty('payout_params')) {
|
|
78
86
|
obj['payout_params'] = _ApiClient["default"].convertToType(data['payout_params'], [_PaymentPayoutParam["default"]]);
|
|
79
87
|
}
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
82
|
-
}
|
|
83
|
-
if (data.hasOwnProperty('currency')) {
|
|
84
|
-
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
88
|
+
if (data.hasOwnProperty('recipient_info')) {
|
|
89
|
+
obj['recipient_info'] = _PaymentPayoutRecipientInfo["default"].constructFromObject(data['recipient_info']);
|
|
85
90
|
}
|
|
86
91
|
if (data.hasOwnProperty('remark')) {
|
|
87
92
|
obj['remark'] = _ApiClient["default"].convertToType(data['remark'], 'String');
|
|
@@ -117,6 +122,10 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
117
122
|
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
118
123
|
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
119
124
|
}
|
|
125
|
+
// ensure the json data is a string
|
|
126
|
+
if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
|
|
128
|
+
}
|
|
120
129
|
if (data['payout_params']) {
|
|
121
130
|
// data not null
|
|
122
131
|
// ensure the json data is an array
|
|
@@ -138,13 +147,12 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
138
147
|
}
|
|
139
148
|
;
|
|
140
149
|
}
|
|
141
|
-
//
|
|
142
|
-
if (data['
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
150
|
+
// validate the optional field `recipient_info`
|
|
151
|
+
if (data['recipient_info']) {
|
|
152
|
+
// data not null
|
|
153
|
+
if (!!_PaymentPayoutRecipientInfo["default"].validateJSON) {
|
|
154
|
+
_PaymentPayoutRecipientInfo["default"].validateJSON(data['recipient_info']);
|
|
155
|
+
}
|
|
148
156
|
}
|
|
149
157
|
// ensure the json data is a string
|
|
150
158
|
if (data['remark'] && !(typeof data['remark'] === 'string' || data['remark'] instanceof String)) {
|
|
@@ -154,7 +162,7 @@ var CreatePayoutRequest = /*#__PURE__*/function () {
|
|
|
154
162
|
}
|
|
155
163
|
}]);
|
|
156
164
|
}();
|
|
157
|
-
CreatePayoutRequest.RequiredProperties = ["request_id", "payout_channel", "payout_params"];
|
|
165
|
+
CreatePayoutRequest.RequiredProperties = ["request_id", "source_account", "payout_channel", "payout_params", "recipient_info"];
|
|
158
166
|
|
|
159
167
|
/**
|
|
160
168
|
* The request ID that is used to track a payout request. The request ID is provided by you and must be unique.
|
|
@@ -162,6 +170,12 @@ CreatePayoutRequest.RequiredProperties = ["request_id", "payout_channel", "payou
|
|
|
162
170
|
*/
|
|
163
171
|
CreatePayoutRequest.prototype['request_id'] = undefined;
|
|
164
172
|
|
|
173
|
+
/**
|
|
174
|
+
* The source account from which the payout will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`.
|
|
175
|
+
* @member {String} source_account
|
|
176
|
+
*/
|
|
177
|
+
CreatePayoutRequest.prototype['source_account'] = undefined;
|
|
178
|
+
|
|
165
179
|
/**
|
|
166
180
|
* @member {module:model/PayoutChannel} payout_channel
|
|
167
181
|
*/
|
|
@@ -173,19 +187,12 @@ CreatePayoutRequest.prototype['payout_channel'] = undefined;
|
|
|
173
187
|
CreatePayoutRequest.prototype['payout_params'] = undefined;
|
|
174
188
|
|
|
175
189
|
/**
|
|
176
|
-
*
|
|
177
|
-
* @member {String} bank_account_id
|
|
178
|
-
*/
|
|
179
|
-
CreatePayoutRequest.prototype['bank_account_id'] = undefined;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The fiat currency you will receive from the payout. - Required when `payout_channel` is set to `OffRamp`. - Currently, only `USD` is supported.
|
|
183
|
-
* @member {String} currency
|
|
190
|
+
* @member {module:model/PaymentPayoutRecipientInfo} recipient_info
|
|
184
191
|
*/
|
|
185
|
-
CreatePayoutRequest.prototype['
|
|
192
|
+
CreatePayoutRequest.prototype['recipient_info'] = undefined;
|
|
186
193
|
|
|
187
194
|
/**
|
|
188
|
-
*
|
|
195
|
+
* An optional note or comment about the payout for your internal reference.
|
|
189
196
|
* @member {String} remark
|
|
190
197
|
*/
|
|
191
198
|
CreatePayoutRequest.prototype['remark'] = undefined;
|
|
@@ -0,0 +1,139 @@
|
|
|
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 CreateTopUpAddresses model module.
|
|
29
|
+
* @module model/CreateTopUpAddresses
|
|
30
|
+
*/
|
|
31
|
+
var CreateTopUpAddresses = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>CreateTopUpAddresses</code>.
|
|
34
|
+
* The request body to batch create top-up addresses.
|
|
35
|
+
* @alias module:model/CreateTopUpAddresses
|
|
36
|
+
* @param token_id {String} The token ID, which identifies the cryptocurrency.
|
|
37
|
+
* @param custom_payer_ids {Array.<String>} A list of unique custom payer IDs required to create top-up addresses. The maximum number of items is 50.
|
|
38
|
+
*/
|
|
39
|
+
function CreateTopUpAddresses(token_id, custom_payer_ids) {
|
|
40
|
+
_classCallCheck(this, CreateTopUpAddresses);
|
|
41
|
+
CreateTopUpAddresses.initialize(this, token_id, custom_payer_ids);
|
|
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(CreateTopUpAddresses, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, token_id, custom_payer_ids) {
|
|
52
|
+
obj['token_id'] = token_id;
|
|
53
|
+
obj['custom_payer_ids'] = custom_payer_ids;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>CreateTopUpAddresses</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/CreateTopUpAddresses} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/CreateTopUpAddresses} The populated <code>CreateTopUpAddresses</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new CreateTopUpAddresses();
|
|
68
|
+
if (data.hasOwnProperty('merchant_id')) {
|
|
69
|
+
obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('token_id')) {
|
|
72
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('custom_payer_ids')) {
|
|
75
|
+
obj['custom_payer_ids'] = _ApiClient["default"].convertToType(data['custom_payer_ids'], ['String']);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>CreateTopUpAddresses</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateTopUpAddresses</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// check to make sure all required properties are present in the JSON string
|
|
90
|
+
var _iterator = _createForOfIteratorHelper(CreateTopUpAddresses.RequiredProperties),
|
|
91
|
+
_step;
|
|
92
|
+
try {
|
|
93
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
+
var property = _step.value;
|
|
95
|
+
if (!data.hasOwnProperty(property)) {
|
|
96
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// ensure the json data is a string
|
|
100
|
+
} catch (err) {
|
|
101
|
+
_iterator.e(err);
|
|
102
|
+
} finally {
|
|
103
|
+
_iterator.f();
|
|
104
|
+
}
|
|
105
|
+
if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
|
|
107
|
+
}
|
|
108
|
+
// ensure the json data is a string
|
|
109
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is an array
|
|
113
|
+
if (!Array.isArray(data['custom_payer_ids'])) {
|
|
114
|
+
throw new Error("Expected the field `custom_payer_ids` to be an array in the JSON data but got " + data['custom_payer_ids']);
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
}]);
|
|
119
|
+
}();
|
|
120
|
+
CreateTopUpAddresses.RequiredProperties = ["token_id", "custom_payer_ids"];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The merchant ID. If not provided, the default merchant created during organization initialization will be used.
|
|
124
|
+
* @member {String} merchant_id
|
|
125
|
+
*/
|
|
126
|
+
CreateTopUpAddresses.prototype['merchant_id'] = undefined;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The token ID, which identifies the cryptocurrency.
|
|
130
|
+
* @member {String} token_id
|
|
131
|
+
*/
|
|
132
|
+
CreateTopUpAddresses.prototype['token_id'] = undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* A list of unique custom payer IDs required to create top-up addresses. The maximum number of items is 50.
|
|
136
|
+
* @member {Array.<String>} custom_payer_ids
|
|
137
|
+
*/
|
|
138
|
+
CreateTopUpAddresses.prototype['custom_payer_ids'] = undefined;
|
|
139
|
+
var _default = exports["default"] = CreateTopUpAddresses;
|
|
@@ -0,0 +1,107 @@
|
|
|
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 _TopUpAddress = _interopRequireDefault(require("./TopUpAddress"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
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; } } }; }
|
|
12
|
+
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; } }
|
|
13
|
+
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; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The CreateTopUpAddresses201Response model module.
|
|
30
|
+
* @module model/CreateTopUpAddresses201Response
|
|
31
|
+
*/
|
|
32
|
+
var CreateTopUpAddresses201Response = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>CreateTopUpAddresses201Response</code>.
|
|
35
|
+
* @alias module:model/CreateTopUpAddresses201Response
|
|
36
|
+
*/
|
|
37
|
+
function CreateTopUpAddresses201Response() {
|
|
38
|
+
_classCallCheck(this, CreateTopUpAddresses201Response);
|
|
39
|
+
CreateTopUpAddresses201Response.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(CreateTopUpAddresses201Response, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>CreateTopUpAddresses201Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/CreateTopUpAddresses201Response} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/CreateTopUpAddresses201Response} The populated <code>CreateTopUpAddresses201Response</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new CreateTopUpAddresses201Response();
|
|
63
|
+
if (data.hasOwnProperty('data')) {
|
|
64
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_TopUpAddress["default"]]);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Validates the JSON data with respect to <code>CreateTopUpAddresses201Response</code>.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateTopUpAddresses201Response</code>.
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "validateJSON",
|
|
77
|
+
value: function validateJSON(data) {
|
|
78
|
+
if (data['data']) {
|
|
79
|
+
// data not null
|
|
80
|
+
// ensure the json data is an array
|
|
81
|
+
if (!Array.isArray(data['data'])) {
|
|
82
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
|
|
83
|
+
}
|
|
84
|
+
// validate the optional field `data` (array)
|
|
85
|
+
var _iterator = _createForOfIteratorHelper(data['data']),
|
|
86
|
+
_step;
|
|
87
|
+
try {
|
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
89
|
+
var item = _step.value;
|
|
90
|
+
_TopUpAddress["default"].validateJSON(item);
|
|
91
|
+
}
|
|
92
|
+
} catch (err) {
|
|
93
|
+
_iterator.e(err);
|
|
94
|
+
} finally {
|
|
95
|
+
_iterator.f();
|
|
96
|
+
}
|
|
97
|
+
;
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
/**
|
|
104
|
+
* @member {Array.<module:model/TopUpAddress>} data
|
|
105
|
+
*/
|
|
106
|
+
CreateTopUpAddresses201Response.prototype['data'] = undefined;
|
|
107
|
+
var _default = exports["default"] = CreateTopUpAddresses201Response;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _AllocationItem = _interopRequireDefault(require("./AllocationItem"));
|
|
9
9
|
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
@@ -27,17 +27,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
30
|
+
* The ListAllocationItems200Response model module.
|
|
31
|
+
* @module model/ListAllocationItems200Response
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var ListAllocationItems200Response = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
* @alias module:model/
|
|
35
|
+
* Constructs a new <code>ListAllocationItems200Response</code>.
|
|
36
|
+
* @alias module:model/ListAllocationItems200Response
|
|
37
37
|
*/
|
|
38
|
-
function
|
|
39
|
-
_classCallCheck(this,
|
|
40
|
-
|
|
38
|
+
function ListAllocationItems200Response() {
|
|
39
|
+
_classCallCheck(this, ListAllocationItems200Response);
|
|
40
|
+
ListAllocationItems200Response.initialize(this);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -45,24 +45,24 @@ var ListAllocations200Response = /*#__PURE__*/function () {
|
|
|
45
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
46
|
* Only for internal use.
|
|
47
47
|
*/
|
|
48
|
-
return _createClass(
|
|
48
|
+
return _createClass(ListAllocationItems200Response, null, [{
|
|
49
49
|
key: "initialize",
|
|
50
50
|
value: function initialize(obj) {}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>ListAllocationItems200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
-
* @param {module:model/
|
|
57
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/ListAllocationItems200Response} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ListAllocationItems200Response} The populated <code>ListAllocationItems200Response</code> instance.
|
|
58
58
|
*/
|
|
59
59
|
}, {
|
|
60
60
|
key: "constructFromObject",
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new ListAllocationItems200Response();
|
|
64
64
|
if (data.hasOwnProperty('data')) {
|
|
65
|
-
obj['data'] = _ApiClient["default"].convertToType(data['data'], [
|
|
65
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AllocationItem["default"]]);
|
|
66
66
|
}
|
|
67
67
|
if (data.hasOwnProperty('pagination')) {
|
|
68
68
|
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
@@ -72,9 +72,9 @@ var ListAllocations200Response = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Validates the JSON data with respect to <code>
|
|
75
|
+
* Validates the JSON data with respect to <code>ListAllocationItems200Response</code>.
|
|
76
76
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
77
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListAllocationItems200Response</code>.
|
|
78
78
|
*/
|
|
79
79
|
}, {
|
|
80
80
|
key: "validateJSON",
|
|
@@ -91,7 +91,7 @@ var ListAllocations200Response = /*#__PURE__*/function () {
|
|
|
91
91
|
try {
|
|
92
92
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
93
|
var item = _step.value;
|
|
94
|
-
|
|
94
|
+
_AllocationItem["default"].validateJSON(item);
|
|
95
95
|
}
|
|
96
96
|
} catch (err) {
|
|
97
97
|
_iterator.e(err);
|
|
@@ -112,12 +112,12 @@ var ListAllocations200Response = /*#__PURE__*/function () {
|
|
|
112
112
|
}]);
|
|
113
113
|
}();
|
|
114
114
|
/**
|
|
115
|
-
* @member {Array.<module:model/
|
|
115
|
+
* @member {Array.<module:model/AllocationItem>} data
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
ListAllocationItems200Response.prototype['data'] = undefined;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* @member {module:model/Pagination} pagination
|
|
121
121
|
*/
|
|
122
|
-
|
|
123
|
-
var _default = exports["default"] =
|
|
122
|
+
ListAllocationItems200Response.prototype['pagination'] = undefined;
|
|
123
|
+
var _default = exports["default"] = ListAllocationItems200Response;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
9
|
-
var
|
|
9
|
+
var _PaymentBulkSendItem = _interopRequireDefault(require("./PaymentBulkSendItem"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
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; } } }; }
|
|
@@ -27,17 +27,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
30
|
+
* The ListBulkSendItems200Response model module.
|
|
31
|
+
* @module model/ListBulkSendItems200Response
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var ListBulkSendItems200Response = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
* @alias module:model/
|
|
35
|
+
* Constructs a new <code>ListBulkSendItems200Response</code>.
|
|
36
|
+
* @alias module:model/ListBulkSendItems200Response
|
|
37
37
|
*/
|
|
38
|
-
function
|
|
39
|
-
_classCallCheck(this,
|
|
40
|
-
|
|
38
|
+
function ListBulkSendItems200Response() {
|
|
39
|
+
_classCallCheck(this, ListBulkSendItems200Response);
|
|
40
|
+
ListBulkSendItems200Response.initialize(this);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -45,24 +45,24 @@ var ListPayoutItems200Response = /*#__PURE__*/function () {
|
|
|
45
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
46
|
* Only for internal use.
|
|
47
47
|
*/
|
|
48
|
-
return _createClass(
|
|
48
|
+
return _createClass(ListBulkSendItems200Response, null, [{
|
|
49
49
|
key: "initialize",
|
|
50
50
|
value: function initialize(obj) {}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>ListBulkSendItems200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
-
* @param {module:model/
|
|
57
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/ListBulkSendItems200Response} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ListBulkSendItems200Response} The populated <code>ListBulkSendItems200Response</code> instance.
|
|
58
58
|
*/
|
|
59
59
|
}, {
|
|
60
60
|
key: "constructFromObject",
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new ListBulkSendItems200Response();
|
|
64
64
|
if (data.hasOwnProperty('data')) {
|
|
65
|
-
obj['data'] = _ApiClient["default"].convertToType(data['data'], [
|
|
65
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_PaymentBulkSendItem["default"]]);
|
|
66
66
|
}
|
|
67
67
|
if (data.hasOwnProperty('pagination')) {
|
|
68
68
|
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
@@ -72,9 +72,9 @@ var ListPayoutItems200Response = /*#__PURE__*/function () {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Validates the JSON data with respect to <code>
|
|
75
|
+
* Validates the JSON data with respect to <code>ListBulkSendItems200Response</code>.
|
|
76
76
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
77
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListBulkSendItems200Response</code>.
|
|
78
78
|
*/
|
|
79
79
|
}, {
|
|
80
80
|
key: "validateJSON",
|
|
@@ -91,7 +91,7 @@ var ListPayoutItems200Response = /*#__PURE__*/function () {
|
|
|
91
91
|
try {
|
|
92
92
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
93
|
var item = _step.value;
|
|
94
|
-
|
|
94
|
+
_PaymentBulkSendItem["default"].validateJSON(item);
|
|
95
95
|
}
|
|
96
96
|
} catch (err) {
|
|
97
97
|
_iterator.e(err);
|
|
@@ -112,12 +112,12 @@ var ListPayoutItems200Response = /*#__PURE__*/function () {
|
|
|
112
112
|
}]);
|
|
113
113
|
}();
|
|
114
114
|
/**
|
|
115
|
-
* @member {Array.<module:model/
|
|
115
|
+
* @member {Array.<module:model/PaymentBulkSendItem>} data
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
ListBulkSendItems200Response.prototype['data'] = undefined;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* @member {module:model/Pagination} pagination
|
|
121
121
|
*/
|
|
122
|
-
|
|
123
|
-
var _default = exports["default"] =
|
|
122
|
+
ListBulkSendItems200Response.prototype['pagination'] = undefined;
|
|
123
|
+
var _default = exports["default"] = ListBulkSendItems200Response;
|