@cobo/cobo-waas2 1.26.0 → 1.27.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 +64 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/PaymentApi.js +1298 -200
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/index.js +266 -7
- package/dist/model/BankAccountStatus.js +66 -0
- package/dist/model/ContractCallDestination.js +38 -10
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/Counterparty.js +195 -0
- package/dist/model/CounterpartyDetail.js +228 -0
- package/dist/model/CounterpartyType.js +61 -0
- package/dist/model/CounterpartyWalletAddressDetail.js +192 -0
- package/dist/model/CreateCounterpartyRequest.js +193 -0
- package/dist/model/CreateCounterpartyWalletAddressRequest.js +140 -0
- package/dist/model/CreateDestinationBankAccount.js +257 -0
- package/dist/model/CreateDestinationBankAccountRequest.js +272 -0
- package/dist/model/CreateDestinationRequest.js +235 -0
- package/dist/model/CreateDestinationWalletAddressRequest.js +140 -0
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +2 -2
- package/dist/model/CreateSettlement.js +13 -0
- package/dist/model/{ReceivedAmountPerAddress.js → CreateWalletAddress.js} +31 -32
- package/dist/model/DeleteCounterparty200Response.js +110 -0
- package/dist/model/DeleteCounterpartyWalletAddress200Response.js +110 -0
- package/dist/model/DeleteDestination200Response.js +110 -0
- package/dist/model/DeleteDestinationBankAccount200Response.js +110 -0
- package/dist/model/DeleteDestinationWalletAddress200Response.js +110 -0
- package/dist/model/Destination.js +208 -0
- package/dist/model/DestinationBankAccount.js +301 -0
- package/dist/model/DestinationBankAccountDetail.js +394 -0
- package/dist/model/DestinationDetail.js +272 -0
- package/dist/model/DestinationType.js +61 -0
- package/dist/model/DestinationWalletAddressDetail.js +205 -0
- package/dist/model/EnableDestinationWhitelistRequest.js +106 -0
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/ExchangeRate.js +140 -0
- package/dist/model/IntermediaryBankInfo.js +140 -0
- package/dist/model/Link.js +4 -4
- package/dist/model/LinkDisplayInfo.js +2 -2
- package/dist/model/ListCounterparties200Response.js +123 -0
- package/dist/model/ListCounterpartyWalletAddress200Response.js +123 -0
- package/dist/model/ListDestinationBankAccounts200Response.js +123 -0
- package/dist/model/ListDestinationWalletAddresses200Response.js +123 -0
- package/dist/model/ListDestinations200Response.js +123 -0
- package/dist/model/PaymentTransaction.js +32 -0
- package/dist/model/PaymentTransactionEventData.js +2 -2
- package/dist/model/QueryDestinationWhitelistEnabled200Response.js +106 -0
- package/dist/model/RefundLinkBusinessInfo.js +6 -6
- package/dist/model/SettlementDetail.js +13 -0
- package/dist/model/SwapActivityTimeline.js +1 -1
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +38 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +150 -0
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TronContractCallDestination.js +150 -0
- package/dist/model/UpdateCounterpartyByIdRequest.js +160 -0
- package/dist/model/UpdateDestinationBankAccount.js +257 -0
- package/dist/model/UpdateDestinationByIdRequest.js +173 -0
- package/dist/model/WalletAddress.js +151 -0
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/BankAccountStatus.md +14 -0
- package/docs/ContractCallDestination.md +2 -2
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/Counterparty.md +16 -0
- package/docs/CounterpartyDetail.md +17 -0
- package/docs/CounterpartyType.md +12 -0
- package/docs/CounterpartyWalletAddressDetail.md +15 -0
- package/docs/CreateCounterpartyRequest.md +14 -0
- package/docs/CreateCounterpartyWalletAddressRequest.md +11 -0
- package/docs/CreateDestinationBankAccount.md +19 -0
- package/docs/CreateDestinationBankAccountRequest.md +20 -0
- package/docs/CreateDestinationRequest.md +16 -0
- package/docs/CreateDestinationWalletAddressRequest.md +11 -0
- package/docs/CreateKeyShareHolder.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +1 -1
- package/docs/CreateSettlement.md +1 -0
- package/docs/CreateWalletAddress.md +10 -0
- package/docs/DeleteCounterparty200Response.md +9 -0
- package/docs/DeleteCounterpartyWalletAddress200Response.md +9 -0
- package/docs/DeleteDestination200Response.md +9 -0
- package/docs/DeleteDestinationBankAccount200Response.md +9 -0
- package/docs/DeleteDestinationWalletAddress200Response.md +9 -0
- package/docs/Destination.md +17 -0
- package/docs/DestinationBankAccount.md +23 -0
- package/docs/DestinationBankAccountDetail.md +30 -0
- package/docs/DestinationDetail.md +19 -0
- package/docs/DestinationType.md +12 -0
- package/docs/DestinationWalletAddressDetail.md +16 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EnableDestinationWhitelistRequest.md +9 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeRate.md +11 -0
- package/docs/IntermediaryBankInfo.md +11 -0
- package/docs/Link.md +2 -2
- package/docs/LinkDisplayInfo.md +2 -2
- package/docs/ListCounterparties200Response.md +10 -0
- package/docs/ListCounterpartyWalletAddress200Response.md +10 -0
- package/docs/ListDestinationBankAccounts200Response.md +10 -0
- package/docs/ListDestinationWalletAddresses200Response.md +10 -0
- package/docs/ListDestinations200Response.md +10 -0
- package/docs/PaymentApi.md +1459 -208
- package/docs/PaymentTransaction.md +2 -0
- package/docs/PaymentTransactionEventData.md +1 -1
- package/docs/QueryDestinationWhitelistEnabled200Response.md +9 -0
- package/docs/RefundLinkBusinessInfo.md +4 -4
- package/docs/SettlementDetail.md +1 -0
- package/docs/SwapActivityTimeline.md +1 -1
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionTronContractDestination.md +12 -0
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +1 -1
- package/docs/TronContractCallDestination.md +12 -0
- package/docs/UpdateCounterpartyByIdRequest.md +13 -0
- package/docs/UpdateDestinationBankAccount.md +19 -0
- package/docs/UpdateDestinationByIdRequest.md +14 -0
- package/docs/WalletAddress.md +12 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +1 -1
- package/docs/ReceivedAmountPerAddress.md +0 -10
|
@@ -0,0 +1,235 @@
|
|
|
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 _CreateDestinationBankAccount = _interopRequireDefault(require("./CreateDestinationBankAccount"));
|
|
9
|
+
var _CreateWalletAddress = _interopRequireDefault(require("./CreateWalletAddress"));
|
|
10
|
+
var _DestinationType = _interopRequireDefault(require("./DestinationType"));
|
|
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 CreateDestinationRequest model module.
|
|
32
|
+
* @module model/CreateDestinationRequest
|
|
33
|
+
*/
|
|
34
|
+
var CreateDestinationRequest = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateDestinationRequest</code>.
|
|
37
|
+
* @alias module:model/CreateDestinationRequest
|
|
38
|
+
* @param destination_name {String} The destination name.
|
|
39
|
+
* @param destination_type {module:model/DestinationType}
|
|
40
|
+
*/
|
|
41
|
+
function CreateDestinationRequest(destination_name, destination_type) {
|
|
42
|
+
_classCallCheck(this, CreateDestinationRequest);
|
|
43
|
+
CreateDestinationRequest.initialize(this, destination_name, destination_type);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(CreateDestinationRequest, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, destination_name, destination_type) {
|
|
54
|
+
obj['destination_name'] = destination_name;
|
|
55
|
+
obj['destination_type'] = destination_type;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>CreateDestinationRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/CreateDestinationRequest} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/CreateDestinationRequest} The populated <code>CreateDestinationRequest</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new CreateDestinationRequest();
|
|
70
|
+
if (data.hasOwnProperty('destination_name')) {
|
|
71
|
+
obj['destination_name'] = _ApiClient["default"].convertToType(data['destination_name'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('destination_type')) {
|
|
74
|
+
obj['destination_type'] = _DestinationType["default"].constructFromObject(data['destination_type']);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('wallet_addresses')) {
|
|
77
|
+
obj['wallet_addresses'] = _ApiClient["default"].convertToType(data['wallet_addresses'], [_CreateWalletAddress["default"]]);
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('bank_accounts')) {
|
|
80
|
+
obj['bank_accounts'] = _ApiClient["default"].convertToType(data['bank_accounts'], [_CreateDestinationBankAccount["default"]]);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('merchant_id')) {
|
|
83
|
+
obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('country')) {
|
|
86
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('email')) {
|
|
89
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('contact_address')) {
|
|
92
|
+
obj['contact_address'] = _ApiClient["default"].convertToType(data['contact_address'], 'String');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Validates the JSON data with respect to <code>CreateDestinationRequest</code>.
|
|
100
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
101
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateDestinationRequest</code>.
|
|
102
|
+
*/
|
|
103
|
+
}, {
|
|
104
|
+
key: "validateJSON",
|
|
105
|
+
value: function validateJSON(data) {
|
|
106
|
+
// check to make sure all required properties are present in the JSON string
|
|
107
|
+
var _iterator = _createForOfIteratorHelper(CreateDestinationRequest.RequiredProperties),
|
|
108
|
+
_step;
|
|
109
|
+
try {
|
|
110
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
111
|
+
var property = _step.value;
|
|
112
|
+
if (!data.hasOwnProperty(property)) {
|
|
113
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
} catch (err) {
|
|
118
|
+
_iterator.e(err);
|
|
119
|
+
} finally {
|
|
120
|
+
_iterator.f();
|
|
121
|
+
}
|
|
122
|
+
if (data['destination_name'] && !(typeof data['destination_name'] === 'string' || data['destination_name'] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `destination_name` to be a primitive type in the JSON string but got " + data['destination_name']);
|
|
124
|
+
}
|
|
125
|
+
if (data['wallet_addresses']) {
|
|
126
|
+
// data not null
|
|
127
|
+
// ensure the json data is an array
|
|
128
|
+
if (!Array.isArray(data['wallet_addresses'])) {
|
|
129
|
+
throw new Error("Expected the field `wallet_addresses` to be an array in the JSON data but got " + data['wallet_addresses']);
|
|
130
|
+
}
|
|
131
|
+
// validate the optional field `wallet_addresses` (array)
|
|
132
|
+
var _iterator2 = _createForOfIteratorHelper(data['wallet_addresses']),
|
|
133
|
+
_step2;
|
|
134
|
+
try {
|
|
135
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
136
|
+
var item = _step2.value;
|
|
137
|
+
_CreateWalletAddress["default"].validateJSON(item);
|
|
138
|
+
}
|
|
139
|
+
} catch (err) {
|
|
140
|
+
_iterator2.e(err);
|
|
141
|
+
} finally {
|
|
142
|
+
_iterator2.f();
|
|
143
|
+
}
|
|
144
|
+
;
|
|
145
|
+
}
|
|
146
|
+
if (data['bank_accounts']) {
|
|
147
|
+
// data not null
|
|
148
|
+
// ensure the json data is an array
|
|
149
|
+
if (!Array.isArray(data['bank_accounts'])) {
|
|
150
|
+
throw new Error("Expected the field `bank_accounts` to be an array in the JSON data but got " + data['bank_accounts']);
|
|
151
|
+
}
|
|
152
|
+
// validate the optional field `bank_accounts` (array)
|
|
153
|
+
var _iterator3 = _createForOfIteratorHelper(data['bank_accounts']),
|
|
154
|
+
_step3;
|
|
155
|
+
try {
|
|
156
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
157
|
+
var _item = _step3.value;
|
|
158
|
+
_CreateDestinationBankAccount["default"].validateJSON(_item);
|
|
159
|
+
}
|
|
160
|
+
} catch (err) {
|
|
161
|
+
_iterator3.e(err);
|
|
162
|
+
} finally {
|
|
163
|
+
_iterator3.f();
|
|
164
|
+
}
|
|
165
|
+
;
|
|
166
|
+
}
|
|
167
|
+
// ensure the json data is a string
|
|
168
|
+
if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
|
|
170
|
+
}
|
|
171
|
+
// ensure the json data is a string
|
|
172
|
+
if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
|
|
173
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
|
|
174
|
+
}
|
|
175
|
+
// ensure the json data is a string
|
|
176
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
177
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
178
|
+
}
|
|
179
|
+
// ensure the json data is a string
|
|
180
|
+
if (data['contact_address'] && !(typeof data['contact_address'] === 'string' || data['contact_address'] instanceof String)) {
|
|
181
|
+
throw new Error("Expected the field `contact_address` to be a primitive type in the JSON string but got " + data['contact_address']);
|
|
182
|
+
}
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}]);
|
|
186
|
+
}();
|
|
187
|
+
CreateDestinationRequest.RequiredProperties = ["destination_name", "destination_type"];
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The destination name.
|
|
191
|
+
* @member {String} destination_name
|
|
192
|
+
*/
|
|
193
|
+
CreateDestinationRequest.prototype['destination_name'] = undefined;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @member {module:model/DestinationType} destination_type
|
|
197
|
+
*/
|
|
198
|
+
CreateDestinationRequest.prototype['destination_type'] = undefined;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The wallet addresses of the destination.
|
|
202
|
+
* @member {Array.<module:model/CreateWalletAddress>} wallet_addresses
|
|
203
|
+
*/
|
|
204
|
+
CreateDestinationRequest.prototype['wallet_addresses'] = undefined;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The bank accounts of the destination.
|
|
208
|
+
* @member {Array.<module:model/CreateDestinationBankAccount>} bank_accounts
|
|
209
|
+
*/
|
|
210
|
+
CreateDestinationRequest.prototype['bank_accounts'] = undefined;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The ID of the merchant linked to the destination.
|
|
214
|
+
* @member {String} merchant_id
|
|
215
|
+
*/
|
|
216
|
+
CreateDestinationRequest.prototype['merchant_id'] = undefined;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The country of the destination, in ISO 3166-1 alpha-3 format.
|
|
220
|
+
* @member {String} country
|
|
221
|
+
*/
|
|
222
|
+
CreateDestinationRequest.prototype['country'] = undefined;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The email of the destination.
|
|
226
|
+
* @member {String} email
|
|
227
|
+
*/
|
|
228
|
+
CreateDestinationRequest.prototype['email'] = undefined;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The contact address of the destination.
|
|
232
|
+
* @member {String} contact_address
|
|
233
|
+
*/
|
|
234
|
+
CreateDestinationRequest.prototype['contact_address'] = undefined;
|
|
235
|
+
var _default = exports["default"] = CreateDestinationRequest;
|
|
@@ -0,0 +1,140 @@
|
|
|
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 CreateDestinationWalletAddressRequest model module.
|
|
29
|
+
* @module model/CreateDestinationWalletAddressRequest
|
|
30
|
+
*/
|
|
31
|
+
var CreateDestinationWalletAddressRequest = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>CreateDestinationWalletAddressRequest</code>.
|
|
34
|
+
* @alias module:model/CreateDestinationWalletAddressRequest
|
|
35
|
+
* @param destination_id {String} The destination ID.
|
|
36
|
+
* @param address {String} The wallet address.
|
|
37
|
+
* @param chain_id {String} The chain ID of the cryptocurrency.
|
|
38
|
+
*/
|
|
39
|
+
function CreateDestinationWalletAddressRequest(destination_id, address, chain_id) {
|
|
40
|
+
_classCallCheck(this, CreateDestinationWalletAddressRequest);
|
|
41
|
+
CreateDestinationWalletAddressRequest.initialize(this, destination_id, address, chain_id);
|
|
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(CreateDestinationWalletAddressRequest, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, destination_id, address, chain_id) {
|
|
52
|
+
obj['destination_id'] = destination_id;
|
|
53
|
+
obj['address'] = address;
|
|
54
|
+
obj['chain_id'] = chain_id;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>CreateDestinationWalletAddressRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/CreateDestinationWalletAddressRequest} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/CreateDestinationWalletAddressRequest} The populated <code>CreateDestinationWalletAddressRequest</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new CreateDestinationWalletAddressRequest();
|
|
69
|
+
if (data.hasOwnProperty('destination_id')) {
|
|
70
|
+
obj['destination_id'] = _ApiClient["default"].convertToType(data['destination_id'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('address')) {
|
|
73
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('chain_id')) {
|
|
76
|
+
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Validates the JSON data with respect to <code>CreateDestinationWalletAddressRequest</code>.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateDestinationWalletAddressRequest</code>.
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "validateJSON",
|
|
89
|
+
value: function validateJSON(data) {
|
|
90
|
+
// check to make sure all required properties are present in the JSON string
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(CreateDestinationWalletAddressRequest.RequiredProperties),
|
|
92
|
+
_step;
|
|
93
|
+
try {
|
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
+
var property = _step.value;
|
|
96
|
+
if (!data.hasOwnProperty(property)) {
|
|
97
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// ensure the json data is a string
|
|
101
|
+
} catch (err) {
|
|
102
|
+
_iterator.e(err);
|
|
103
|
+
} finally {
|
|
104
|
+
_iterator.f();
|
|
105
|
+
}
|
|
106
|
+
if (data['destination_id'] && !(typeof data['destination_id'] === 'string' || data['destination_id'] instanceof String)) {
|
|
107
|
+
throw new Error("Expected the field `destination_id` to be a primitive type in the JSON string but got " + data['destination_id']);
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
112
|
+
}
|
|
113
|
+
// ensure the json data is a string
|
|
114
|
+
if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
|
|
116
|
+
}
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
}]);
|
|
120
|
+
}();
|
|
121
|
+
CreateDestinationWalletAddressRequest.RequiredProperties = ["destination_id", "address", "chain_id"];
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The destination ID.
|
|
125
|
+
* @member {String} destination_id
|
|
126
|
+
*/
|
|
127
|
+
CreateDestinationWalletAddressRequest.prototype['destination_id'] = undefined;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The wallet address.
|
|
131
|
+
* @member {String} address
|
|
132
|
+
*/
|
|
133
|
+
CreateDestinationWalletAddressRequest.prototype['address'] = undefined;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The chain ID of the cryptocurrency.
|
|
137
|
+
* @member {String} chain_id
|
|
138
|
+
*/
|
|
139
|
+
CreateDestinationWalletAddressRequest.prototype['chain_id'] = undefined;
|
|
140
|
+
var _default = exports["default"] = CreateDestinationWalletAddressRequest;
|
|
@@ -106,7 +106,7 @@ CreateKeyShareHolder.prototype['name'] = undefined;
|
|
|
106
106
|
CreateKeyShareHolder.prototype['type'] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* Key share holder's TSS Node ID.
|
|
109
|
+
* Key share holder's TSS Node ID. For detailed information about signer types and their setup, see the [**Signer Type** table](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/holder-group-main-group). Mobile signers can view their TSS Node ID in the [Cobo Guard app](https://manuals.cobo.com/en/guard/manage).
|
|
110
110
|
* @member {String} tss_node_id
|
|
111
111
|
*/
|
|
112
112
|
CreateKeyShareHolder.prototype['tss_node_id'] = undefined;
|
|
@@ -34,7 +34,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
34
34
|
* @alias module:model/CreatePaymentOrderRequest
|
|
35
35
|
* @param merchant_id {String} The merchant ID. This ID is assigned by Cobo when you create the merchant.
|
|
36
36
|
* @param token_id {String} The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
37
|
-
* @param order_amount {String} The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
37
|
+
* @param order_amount {String} The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
38
38
|
* @param fee_amount {String} The developer fee for the order. - **When to set:** If you are a merchant serving payers directly, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. For details, see [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - **Denomination:** The denomination of `fee_amount` depends on the presence of `currency`: - If `currency` is set, the amount is denominated in that currency (e.g., \"USD\"). - If `currency` is not set, the amount is denominated in the cryptocurrency specified by `token_id` (e.g., \"ETH_USDT\"). - **Calculation:** The developer fee is added to the base order amount (`order_amount`) to determine the final amount charged to the customer. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - **Total charged:** \"102.00\" - **Formatting:** The value can contain up to two decimal places.
|
|
39
39
|
* @param psp_order_code {String} A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters.
|
|
40
40
|
*/
|
|
@@ -192,7 +192,7 @@ CreatePaymentOrderRequest.prototype['token_id'] = undefined;
|
|
|
192
192
|
CreatePaymentOrderRequest.prototype['currency'] = '';
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
195
|
+
* The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
196
196
|
* @member {String} order_amount
|
|
197
197
|
*/
|
|
198
198
|
CreatePaymentOrderRequest.prototype['order_amount'] = undefined;
|
|
@@ -74,6 +74,9 @@ var CreateSettlement = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty('crypto_address_id')) {
|
|
75
75
|
obj['crypto_address_id'] = _ApiClient["default"].convertToType(data['crypto_address_id'], 'String');
|
|
76
76
|
}
|
|
77
|
+
if (data.hasOwnProperty('crypto_address')) {
|
|
78
|
+
obj['crypto_address'] = _ApiClient["default"].convertToType(data['crypto_address'], 'String');
|
|
79
|
+
}
|
|
77
80
|
if (data.hasOwnProperty('order_ids')) {
|
|
78
81
|
obj['order_ids'] = _ApiClient["default"].convertToType(data['order_ids'], ['String']);
|
|
79
82
|
}
|
|
@@ -120,6 +123,10 @@ var CreateSettlement = /*#__PURE__*/function () {
|
|
|
120
123
|
if (data['crypto_address_id'] && !(typeof data['crypto_address_id'] === 'string' || data['crypto_address_id'] instanceof String)) {
|
|
121
124
|
throw new Error("Expected the field `crypto_address_id` to be a primitive type in the JSON string but got " + data['crypto_address_id']);
|
|
122
125
|
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['crypto_address'] && !(typeof data['crypto_address'] === 'string' || data['crypto_address'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `crypto_address` to be a primitive type in the JSON string but got " + data['crypto_address']);
|
|
129
|
+
}
|
|
123
130
|
// ensure the json data is an array
|
|
124
131
|
if (!Array.isArray(data['order_ids'])) {
|
|
125
132
|
throw new Error("Expected the field `order_ids` to be an array in the JSON data but got " + data['order_ids']);
|
|
@@ -154,6 +161,12 @@ CreateSettlement.prototype['amount'] = undefined;
|
|
|
154
161
|
*/
|
|
155
162
|
CreateSettlement.prototype['crypto_address_id'] = undefined;
|
|
156
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Only used in Crypto payout channel. The actual blockchain address to which funds will be transferred. If enable destination whitelist, this address must be associated with a destination.
|
|
166
|
+
* @member {String} crypto_address
|
|
167
|
+
*/
|
|
168
|
+
CreateSettlement.prototype['crypto_address'] = undefined;
|
|
169
|
+
|
|
157
170
|
/**
|
|
158
171
|
* @member {Array.<String>} order_ids
|
|
159
172
|
*/
|
|
@@ -25,20 +25,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* @module model/
|
|
28
|
+
* The CreateWalletAddress model module.
|
|
29
|
+
* @module model/CreateWalletAddress
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var CreateWalletAddress = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
*
|
|
35
|
-
* @
|
|
36
|
-
* @param
|
|
37
|
-
* @param total_received_amount {String} The total amount of the token that has been received at this address.
|
|
33
|
+
* Constructs a new <code>CreateWalletAddress</code>.
|
|
34
|
+
* @alias module:model/CreateWalletAddress
|
|
35
|
+
* @param address {String} The wallet address.
|
|
36
|
+
* @param chain_id {String} The chain ID of the cryptocurrency.
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function CreateWalletAddress(address, chain_id) {
|
|
39
|
+
_classCallCheck(this, CreateWalletAddress);
|
|
40
|
+
CreateWalletAddress.initialize(this, address, chain_id);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,45 +45,45 @@ var ReceivedAmountPerAddress = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(CreateWalletAddress, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
|
-
value: function initialize(obj, address,
|
|
50
|
+
value: function initialize(obj, address, chain_id) {
|
|
52
51
|
obj['address'] = address;
|
|
53
|
-
obj['
|
|
52
|
+
obj['chain_id'] = chain_id;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
|
-
* Constructs a <code>
|
|
56
|
+
* Constructs a <code>CreateWalletAddress</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
57
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
58
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @param {module:model/
|
|
61
|
-
* @return {module:model/
|
|
59
|
+
* @param {module:model/CreateWalletAddress} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/CreateWalletAddress} The populated <code>CreateWalletAddress</code> instance.
|
|
62
61
|
*/
|
|
63
62
|
}, {
|
|
64
63
|
key: "constructFromObject",
|
|
65
64
|
value: function constructFromObject(data, obj) {
|
|
66
65
|
if (data) {
|
|
67
|
-
obj = obj || new
|
|
66
|
+
obj = obj || new CreateWalletAddress();
|
|
68
67
|
if (data.hasOwnProperty('address')) {
|
|
69
68
|
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
70
69
|
}
|
|
71
|
-
if (data.hasOwnProperty('
|
|
72
|
-
obj['
|
|
70
|
+
if (data.hasOwnProperty('chain_id')) {
|
|
71
|
+
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
return obj;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>
|
|
78
|
+
* Validates the JSON data with respect to <code>CreateWalletAddress</code>.
|
|
80
79
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateWalletAddress</code>.
|
|
82
81
|
*/
|
|
83
82
|
}, {
|
|
84
83
|
key: "validateJSON",
|
|
85
84
|
value: function validateJSON(data) {
|
|
86
85
|
// check to make sure all required properties are present in the JSON string
|
|
87
|
-
var _iterator = _createForOfIteratorHelper(
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(CreateWalletAddress.RequiredProperties),
|
|
88
87
|
_step;
|
|
89
88
|
try {
|
|
90
89
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -103,24 +102,24 @@ var ReceivedAmountPerAddress = /*#__PURE__*/function () {
|
|
|
103
102
|
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
104
103
|
}
|
|
105
104
|
// ensure the json data is a string
|
|
106
|
-
if (data['
|
|
107
|
-
throw new Error("Expected the field `
|
|
105
|
+
if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
|
|
108
107
|
}
|
|
109
108
|
return true;
|
|
110
109
|
}
|
|
111
110
|
}]);
|
|
112
111
|
}();
|
|
113
|
-
|
|
112
|
+
CreateWalletAddress.RequiredProperties = ["address", "chain_id"];
|
|
114
113
|
|
|
115
114
|
/**
|
|
116
|
-
* The
|
|
115
|
+
* The wallet address.
|
|
117
116
|
* @member {String} address
|
|
118
117
|
*/
|
|
119
|
-
|
|
118
|
+
CreateWalletAddress.prototype['address'] = undefined;
|
|
120
119
|
|
|
121
120
|
/**
|
|
122
|
-
* The
|
|
123
|
-
* @member {String}
|
|
121
|
+
* The chain ID of the cryptocurrency.
|
|
122
|
+
* @member {String} chain_id
|
|
124
123
|
*/
|
|
125
|
-
|
|
126
|
-
var _default = exports["default"] =
|
|
124
|
+
CreateWalletAddress.prototype['chain_id'] = undefined;
|
|
125
|
+
var _default = exports["default"] = CreateWalletAddress;
|