@cobo/cobo-waas2 1.34.0 → 1.36.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 +28 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/PaymentApi.js +126 -91
- package/dist/api/TravelRuleApi.js +293 -6
- package/dist/index.js +133 -7
- package/dist/model/AddressVerification.js +172 -0
- package/dist/model/AddressVerificationDetail.js +204 -0
- package/dist/model/AddressVerificationDetailSatoshiTestDetail.js +299 -0
- package/dist/model/AddressVerificationDetailSignatureDetail.js +172 -0
- package/dist/model/AddressVerificationMethod.js +61 -0
- package/dist/model/AddressVerificationStatus.js +66 -0
- package/dist/model/ApprovalUserDetail.js +9 -0
- package/dist/model/{UpdateBankAccountByIdRequest.js → CancelSatoshiTestChallengeRequest.js} +31 -28
- package/dist/model/ChainInfo.js +13 -0
- package/dist/model/CreateBulkSendRequest.js +13 -0
- package/dist/model/CreateSatoshiTestChallengeRequest.js +176 -0
- package/dist/model/GetTransactionLimitation200Response.js +10 -1
- package/dist/model/ListAddressVerifications200Response.js +147 -0
- package/dist/model/ListBulkSends200Response.js +123 -0
- package/dist/model/ListPayerTransactions200Response.js +123 -0
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +14 -1
- package/dist/model/OrderLinkBusinessInfo.js +2 -2
- package/dist/model/OriginalMainGroupHandling.js +61 -0
- package/dist/model/PaymentBulkSend.js +13 -0
- package/dist/model/PaymentBulkSendEvent.js +18 -0
- package/dist/model/SatoshiTestCancelResult.js +144 -0
- package/dist/model/SatoshiTestChallenge.js +239 -0
- package/dist/model/SatoshiTestChallengeAction.js +61 -0
- package/dist/model/SatoshiTestChallengeStatus.js +81 -0
- package/dist/model/SignatureChallenge.js +137 -0
- package/dist/model/SignatureDetail.js +146 -0
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TravelRuleTransactionType.js +61 -0
- package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +9 -0
- package/dist/model/WebhookEventData.js +1 -1
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressVerification.md +14 -0
- package/docs/AddressVerificationDetail.md +16 -0
- package/docs/AddressVerificationDetailSatoshiTestDetail.md +19 -0
- package/docs/AddressVerificationDetailSignatureDetail.md +12 -0
- package/docs/AddressVerificationMethod.md +12 -0
- package/docs/AddressVerificationStatus.md +14 -0
- package/docs/ApprovalUserDetail.md +1 -0
- package/docs/CancelSatoshiTestChallengeRequest.md +9 -0
- package/docs/ChainInfo.md +1 -0
- package/docs/CreateBulkSendRequest.md +1 -0
- package/docs/CreateSatoshiTestChallengeRequest.md +14 -0
- package/docs/GetTransactionLimitation200Response.md +2 -1
- package/docs/ListAddressVerifications200Response.md +10 -0
- package/docs/ListBulkSends200Response.md +10 -0
- package/docs/ListPayerTransactions200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +2 -1
- package/docs/OrderLinkBusinessInfo.md +1 -1
- package/docs/OriginalMainGroupHandling.md +12 -0
- package/docs/PaymentApi.md +107 -83
- package/docs/PaymentBulkSend.md +1 -0
- package/docs/PaymentBulkSendEvent.md +1 -0
- package/docs/SatoshiTestCancelResult.md +21 -0
- package/docs/SatoshiTestChallenge.md +19 -0
- package/docs/SatoshiTestChallengeAction.md +12 -0
- package/docs/SatoshiTestChallengeStatus.md +20 -0
- package/docs/SignatureChallenge.md +11 -0
- package/docs/SignatureDetail.md +12 -0
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/TravelRuleApi.md +325 -1
- package/docs/TravelRuleTransactionType.md +12 -0
- package/docs/UpdateKeyShareHolderGroupByIdRequest.md +1 -0
- package/docs/WebhookEventData.md +1 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
- package/docs/UpdateBankAccountByIdRequest.md +0 -9
|
@@ -0,0 +1,299 @@
|
|
|
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 _SatoshiTestChallenge = _interopRequireDefault(require("./SatoshiTestChallenge"));
|
|
9
|
+
var _SatoshiTestChallengeStatus = _interopRequireDefault(require("./SatoshiTestChallengeStatus"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
+
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; } } }; }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The AddressVerificationDetailSatoshiTestDetail model module.
|
|
31
|
+
* @module model/AddressVerificationDetailSatoshiTestDetail
|
|
32
|
+
*/
|
|
33
|
+
var AddressVerificationDetailSatoshiTestDetail = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>AddressVerificationDetailSatoshiTestDetail</code>.
|
|
36
|
+
* The latest Satoshi Test challenge associated with this verification. Present only when `verification_method=SATOSHI_TEST`.
|
|
37
|
+
* @alias module:model/AddressVerificationDetailSatoshiTestDetail
|
|
38
|
+
* @implements module:model/SatoshiTestChallenge
|
|
39
|
+
* @param challenge_id {String} The unique identifier of the Satoshi Test challenge.
|
|
40
|
+
* @param from_address {String} The counterparty (self-custody) wallet address that must transfer the micro-deposit.
|
|
41
|
+
* @param to_address {String} The Cobo-generated verification address that will receive the micro-deposit.
|
|
42
|
+
* @param amount {String} The exact amount (in the token's smallest unit) that must be transferred. The amount is unique per challenge and is used together with `to_address` to identify a matching on-chain transfer.
|
|
43
|
+
* @param token_id {String} The ID of the token used for the micro-deposit (typically the chain's native asset).
|
|
44
|
+
* @param chain_id {String} The chain on which the micro-deposit is expected.
|
|
45
|
+
* @param status {module:model/SatoshiTestChallengeStatus}
|
|
46
|
+
* @param remaining_seconds {Number} Remaining time (in seconds) before the challenge expires. `0` when the challenge is not yet submitted or has already completed/expired.
|
|
47
|
+
*/
|
|
48
|
+
function AddressVerificationDetailSatoshiTestDetail(challenge_id, from_address, to_address, amount, token_id, chain_id, status, remaining_seconds) {
|
|
49
|
+
_classCallCheck(this, AddressVerificationDetailSatoshiTestDetail);
|
|
50
|
+
_SatoshiTestChallenge["default"].initialize(this, challenge_id, from_address, to_address, amount, token_id, chain_id, status, remaining_seconds);
|
|
51
|
+
AddressVerificationDetailSatoshiTestDetail.initialize(this, challenge_id, from_address, to_address, amount, token_id, chain_id, status, remaining_seconds);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Initializes the fields of this object.
|
|
56
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
57
|
+
* Only for internal use.
|
|
58
|
+
*/
|
|
59
|
+
return _createClass(AddressVerificationDetailSatoshiTestDetail, null, [{
|
|
60
|
+
key: "initialize",
|
|
61
|
+
value: function initialize(obj, challenge_id, from_address, to_address, amount, token_id, chain_id, status, remaining_seconds) {
|
|
62
|
+
obj['challenge_id'] = challenge_id;
|
|
63
|
+
obj['from_address'] = from_address;
|
|
64
|
+
obj['to_address'] = to_address;
|
|
65
|
+
obj['amount'] = amount;
|
|
66
|
+
obj['token_id'] = token_id;
|
|
67
|
+
obj['chain_id'] = chain_id;
|
|
68
|
+
obj['status'] = status;
|
|
69
|
+
obj['remaining_seconds'] = remaining_seconds;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Constructs a <code>AddressVerificationDetailSatoshiTestDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
74
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @param {module:model/AddressVerificationDetailSatoshiTestDetail} obj Optional instance to populate.
|
|
77
|
+
* @return {module:model/AddressVerificationDetailSatoshiTestDetail} The populated <code>AddressVerificationDetailSatoshiTestDetail</code> instance.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "constructFromObject",
|
|
81
|
+
value: function constructFromObject(data, obj) {
|
|
82
|
+
if (data) {
|
|
83
|
+
obj = obj || new AddressVerificationDetailSatoshiTestDetail();
|
|
84
|
+
_SatoshiTestChallenge["default"].constructFromObject(data, obj);
|
|
85
|
+
if (data.hasOwnProperty('challenge_id')) {
|
|
86
|
+
obj['challenge_id'] = _ApiClient["default"].convertToType(data['challenge_id'], 'String');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('from_address')) {
|
|
89
|
+
obj['from_address'] = _ApiClient["default"].convertToType(data['from_address'], 'String');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('to_address')) {
|
|
92
|
+
obj['to_address'] = _ApiClient["default"].convertToType(data['to_address'], 'String');
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('amount')) {
|
|
95
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('token_id')) {
|
|
98
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('chain_id')) {
|
|
101
|
+
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('status')) {
|
|
104
|
+
obj['status'] = _SatoshiTestChallengeStatus["default"].constructFromObject(data['status']);
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('remaining_seconds')) {
|
|
107
|
+
obj['remaining_seconds'] = _ApiClient["default"].convertToType(data['remaining_seconds'], 'Number');
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('matched_txid')) {
|
|
110
|
+
obj['matched_txid'] = _ApiClient["default"].convertToType(data['matched_txid'], 'String');
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('started_at')) {
|
|
113
|
+
obj['started_at'] = _ApiClient["default"].convertToType(data['started_at'], 'Number');
|
|
114
|
+
}
|
|
115
|
+
if (data.hasOwnProperty('expires_at')) {
|
|
116
|
+
obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Number');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Validates the JSON data with respect to <code>AddressVerificationDetailSatoshiTestDetail</code>.
|
|
124
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
125
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AddressVerificationDetailSatoshiTestDetail</code>.
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "validateJSON",
|
|
129
|
+
value: function validateJSON(data) {
|
|
130
|
+
// check to make sure all required properties are present in the JSON string
|
|
131
|
+
var _iterator = _createForOfIteratorHelper(AddressVerificationDetailSatoshiTestDetail.RequiredProperties),
|
|
132
|
+
_step;
|
|
133
|
+
try {
|
|
134
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
135
|
+
var property = _step.value;
|
|
136
|
+
if (!data.hasOwnProperty(property)) {
|
|
137
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// ensure the json data is a string
|
|
141
|
+
} catch (err) {
|
|
142
|
+
_iterator.e(err);
|
|
143
|
+
} finally {
|
|
144
|
+
_iterator.f();
|
|
145
|
+
}
|
|
146
|
+
if (data['challenge_id'] && !(typeof data['challenge_id'] === 'string' || data['challenge_id'] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `challenge_id` to be a primitive type in the JSON string but got " + data['challenge_id']);
|
|
148
|
+
}
|
|
149
|
+
// ensure the json data is a string
|
|
150
|
+
if (data['from_address'] && !(typeof data['from_address'] === 'string' || data['from_address'] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `from_address` to be a primitive type in the JSON string but got " + data['from_address']);
|
|
152
|
+
}
|
|
153
|
+
// ensure the json data is a string
|
|
154
|
+
if (data['to_address'] && !(typeof data['to_address'] === 'string' || data['to_address'] instanceof String)) {
|
|
155
|
+
throw new Error("Expected the field `to_address` to be a primitive type in the JSON string but got " + data['to_address']);
|
|
156
|
+
}
|
|
157
|
+
// ensure the json data is a string
|
|
158
|
+
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
159
|
+
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
160
|
+
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
164
|
+
}
|
|
165
|
+
// ensure the json data is a string
|
|
166
|
+
if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
|
|
168
|
+
}
|
|
169
|
+
// ensure the json data is a string
|
|
170
|
+
if (data['matched_txid'] && !(typeof data['matched_txid'] === 'string' || data['matched_txid'] instanceof String)) {
|
|
171
|
+
throw new Error("Expected the field `matched_txid` to be a primitive type in the JSON string but got " + data['matched_txid']);
|
|
172
|
+
}
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
}]);
|
|
176
|
+
}();
|
|
177
|
+
AddressVerificationDetailSatoshiTestDetail.RequiredProperties = ["challenge_id", "from_address", "to_address", "amount", "token_id", "chain_id", "status", "remaining_seconds"];
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The unique identifier of the Satoshi Test challenge.
|
|
181
|
+
* @member {String} challenge_id
|
|
182
|
+
*/
|
|
183
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['challenge_id'] = undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The counterparty (self-custody) wallet address that must transfer the micro-deposit.
|
|
187
|
+
* @member {String} from_address
|
|
188
|
+
*/
|
|
189
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['from_address'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The Cobo-generated verification address that will receive the micro-deposit.
|
|
193
|
+
* @member {String} to_address
|
|
194
|
+
*/
|
|
195
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['to_address'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The exact amount (in the token's smallest unit) that must be transferred. The amount is unique per challenge and is used together with `to_address` to identify a matching on-chain transfer.
|
|
199
|
+
* @member {String} amount
|
|
200
|
+
*/
|
|
201
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['amount'] = undefined;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the token used for the micro-deposit (typically the chain's native asset).
|
|
205
|
+
* @member {String} token_id
|
|
206
|
+
*/
|
|
207
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['token_id'] = undefined;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The chain on which the micro-deposit is expected.
|
|
211
|
+
* @member {String} chain_id
|
|
212
|
+
*/
|
|
213
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['chain_id'] = undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @member {module:model/SatoshiTestChallengeStatus} status
|
|
217
|
+
*/
|
|
218
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['status'] = undefined;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Remaining time (in seconds) before the challenge expires. `0` when the challenge is not yet submitted or has already completed/expired.
|
|
222
|
+
* @member {Number} remaining_seconds
|
|
223
|
+
*/
|
|
224
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['remaining_seconds'] = undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The on-chain transaction hash of the matching transfer, once matched.
|
|
228
|
+
* @member {String} matched_txid
|
|
229
|
+
*/
|
|
230
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['matched_txid'] = undefined;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Timestamp (milliseconds) when the challenge was submitted and the countdown started.
|
|
234
|
+
* @member {Number} started_at
|
|
235
|
+
*/
|
|
236
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['started_at'] = undefined;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Timestamp (milliseconds) when the challenge will expire if not matched.
|
|
240
|
+
* @member {Number} expires_at
|
|
241
|
+
*/
|
|
242
|
+
AddressVerificationDetailSatoshiTestDetail.prototype['expires_at'] = undefined;
|
|
243
|
+
|
|
244
|
+
// Implement SatoshiTestChallenge interface:
|
|
245
|
+
/**
|
|
246
|
+
* The unique identifier of the Satoshi Test challenge.
|
|
247
|
+
* @member {String} challenge_id
|
|
248
|
+
*/
|
|
249
|
+
_SatoshiTestChallenge["default"].prototype['challenge_id'] = undefined;
|
|
250
|
+
/**
|
|
251
|
+
* The counterparty (self-custody) wallet address that must transfer the micro-deposit.
|
|
252
|
+
* @member {String} from_address
|
|
253
|
+
*/
|
|
254
|
+
_SatoshiTestChallenge["default"].prototype['from_address'] = undefined;
|
|
255
|
+
/**
|
|
256
|
+
* The Cobo-generated verification address that will receive the micro-deposit.
|
|
257
|
+
* @member {String} to_address
|
|
258
|
+
*/
|
|
259
|
+
_SatoshiTestChallenge["default"].prototype['to_address'] = undefined;
|
|
260
|
+
/**
|
|
261
|
+
* The exact amount (in the token's smallest unit) that must be transferred. The amount is unique per challenge and is used together with `to_address` to identify a matching on-chain transfer.
|
|
262
|
+
* @member {String} amount
|
|
263
|
+
*/
|
|
264
|
+
_SatoshiTestChallenge["default"].prototype['amount'] = undefined;
|
|
265
|
+
/**
|
|
266
|
+
* The ID of the token used for the micro-deposit (typically the chain's native asset).
|
|
267
|
+
* @member {String} token_id
|
|
268
|
+
*/
|
|
269
|
+
_SatoshiTestChallenge["default"].prototype['token_id'] = undefined;
|
|
270
|
+
/**
|
|
271
|
+
* The chain on which the micro-deposit is expected.
|
|
272
|
+
* @member {String} chain_id
|
|
273
|
+
*/
|
|
274
|
+
_SatoshiTestChallenge["default"].prototype['chain_id'] = undefined;
|
|
275
|
+
/**
|
|
276
|
+
* @member {module:model/SatoshiTestChallengeStatus} status
|
|
277
|
+
*/
|
|
278
|
+
_SatoshiTestChallenge["default"].prototype['status'] = undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Remaining time (in seconds) before the challenge expires. `0` when the challenge is not yet submitted or has already completed/expired.
|
|
281
|
+
* @member {Number} remaining_seconds
|
|
282
|
+
*/
|
|
283
|
+
_SatoshiTestChallenge["default"].prototype['remaining_seconds'] = undefined;
|
|
284
|
+
/**
|
|
285
|
+
* The on-chain transaction hash of the matching transfer, once matched.
|
|
286
|
+
* @member {String} matched_txid
|
|
287
|
+
*/
|
|
288
|
+
_SatoshiTestChallenge["default"].prototype['matched_txid'] = undefined;
|
|
289
|
+
/**
|
|
290
|
+
* Timestamp (milliseconds) when the challenge was submitted and the countdown started.
|
|
291
|
+
* @member {Number} started_at
|
|
292
|
+
*/
|
|
293
|
+
_SatoshiTestChallenge["default"].prototype['started_at'] = undefined;
|
|
294
|
+
/**
|
|
295
|
+
* Timestamp (milliseconds) when the challenge will expire if not matched.
|
|
296
|
+
* @member {Number} expires_at
|
|
297
|
+
*/
|
|
298
|
+
_SatoshiTestChallenge["default"].prototype['expires_at'] = undefined;
|
|
299
|
+
var _default = exports["default"] = AddressVerificationDetailSatoshiTestDetail;
|
|
@@ -0,0 +1,172 @@
|
|
|
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 _SignatureDetail = _interopRequireDefault(require("./SignatureDetail"));
|
|
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 AddressVerificationDetailSignatureDetail model module.
|
|
30
|
+
* @module model/AddressVerificationDetailSignatureDetail
|
|
31
|
+
*/
|
|
32
|
+
var AddressVerificationDetailSignatureDetail = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>AddressVerificationDetailSignatureDetail</code>.
|
|
35
|
+
* Off-chain signature provenance. Present only when `verification_method=SIGNATURE`.
|
|
36
|
+
* @alias module:model/AddressVerificationDetailSignatureDetail
|
|
37
|
+
* @implements module:model/SignatureDetail
|
|
38
|
+
* @param address {String} The self-custody wallet address that signed the challenge.
|
|
39
|
+
*/
|
|
40
|
+
function AddressVerificationDetailSignatureDetail(address) {
|
|
41
|
+
_classCallCheck(this, AddressVerificationDetailSignatureDetail);
|
|
42
|
+
_SignatureDetail["default"].initialize(this, address);
|
|
43
|
+
AddressVerificationDetailSignatureDetail.initialize(this, address);
|
|
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(AddressVerificationDetailSignatureDetail, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, address) {
|
|
54
|
+
obj['address'] = address;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>AddressVerificationDetailSignatureDetail</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/AddressVerificationDetailSignatureDetail} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/AddressVerificationDetailSignatureDetail} The populated <code>AddressVerificationDetailSignatureDetail</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new AddressVerificationDetailSignatureDetail();
|
|
69
|
+
_SignatureDetail["default"].constructFromObject(data, obj);
|
|
70
|
+
if (data.hasOwnProperty('address')) {
|
|
71
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('challenge')) {
|
|
74
|
+
obj['challenge'] = _ApiClient["default"].convertToType(data['challenge'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('signature')) {
|
|
77
|
+
obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('verified_at')) {
|
|
80
|
+
obj['verified_at'] = _ApiClient["default"].convertToType(data['verified_at'], 'Number');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Validates the JSON data with respect to <code>AddressVerificationDetailSignatureDetail</code>.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AddressVerificationDetailSignatureDetail</code>.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "validateJSON",
|
|
93
|
+
value: function validateJSON(data) {
|
|
94
|
+
// check to make sure all required properties are present in the JSON string
|
|
95
|
+
var _iterator = _createForOfIteratorHelper(AddressVerificationDetailSignatureDetail.RequiredProperties),
|
|
96
|
+
_step;
|
|
97
|
+
try {
|
|
98
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
99
|
+
var property = _step.value;
|
|
100
|
+
if (!data.hasOwnProperty(property)) {
|
|
101
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
} catch (err) {
|
|
106
|
+
_iterator.e(err);
|
|
107
|
+
} finally {
|
|
108
|
+
_iterator.f();
|
|
109
|
+
}
|
|
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['challenge'] && !(typeof data['challenge'] === 'string' || data['challenge'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `challenge` to be a primitive type in the JSON string but got " + data['challenge']);
|
|
116
|
+
}
|
|
117
|
+
// ensure the json data is a string
|
|
118
|
+
if (data['signature'] && !(typeof data['signature'] === 'string' || data['signature'] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `signature` to be a primitive type in the JSON string but got " + data['signature']);
|
|
120
|
+
}
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
}]);
|
|
124
|
+
}();
|
|
125
|
+
AddressVerificationDetailSignatureDetail.RequiredProperties = ["address"];
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The self-custody wallet address that signed the challenge.
|
|
129
|
+
* @member {String} address
|
|
130
|
+
*/
|
|
131
|
+
AddressVerificationDetailSignatureDetail.prototype['address'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The challenge string that was signed.
|
|
135
|
+
* @member {String} challenge
|
|
136
|
+
*/
|
|
137
|
+
AddressVerificationDetailSignatureDetail.prototype['challenge'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The wallet signature submitted by the client.
|
|
141
|
+
* @member {String} signature
|
|
142
|
+
*/
|
|
143
|
+
AddressVerificationDetailSignatureDetail.prototype['signature'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Timestamp (milliseconds) when the signature was verified.
|
|
147
|
+
* @member {Number} verified_at
|
|
148
|
+
*/
|
|
149
|
+
AddressVerificationDetailSignatureDetail.prototype['verified_at'] = undefined;
|
|
150
|
+
|
|
151
|
+
// Implement SignatureDetail interface:
|
|
152
|
+
/**
|
|
153
|
+
* The self-custody wallet address that signed the challenge.
|
|
154
|
+
* @member {String} address
|
|
155
|
+
*/
|
|
156
|
+
_SignatureDetail["default"].prototype['address'] = undefined;
|
|
157
|
+
/**
|
|
158
|
+
* The challenge string that was signed.
|
|
159
|
+
* @member {String} challenge
|
|
160
|
+
*/
|
|
161
|
+
_SignatureDetail["default"].prototype['challenge'] = undefined;
|
|
162
|
+
/**
|
|
163
|
+
* The wallet signature submitted by the client.
|
|
164
|
+
* @member {String} signature
|
|
165
|
+
*/
|
|
166
|
+
_SignatureDetail["default"].prototype['signature'] = undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Timestamp (milliseconds) when the signature was verified.
|
|
169
|
+
* @member {Number} verified_at
|
|
170
|
+
*/
|
|
171
|
+
_SignatureDetail["default"].prototype['verified_at'] = undefined;
|
|
172
|
+
var _default = exports["default"] = AddressVerificationDetailSignatureDetail;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* Cobo Wallet as a Service 2.0
|
|
17
|
+
*
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Enum class AddressVerificationMethod.
|
|
27
|
+
* @enum {}
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
var AddressVerificationMethod = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
function AddressVerificationMethod() {
|
|
32
|
+
_classCallCheck(this, AddressVerificationMethod);
|
|
33
|
+
/**
|
|
34
|
+
* value: "SIGNATURE"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
_defineProperty(this, "SIGNATURE", "SIGNATURE");
|
|
38
|
+
/**
|
|
39
|
+
* value: "SATOSHI_TEST"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "SATOSHI_TEST", "SATOSHI_TEST");
|
|
43
|
+
/**
|
|
44
|
+
* value: "unknown_default_open_api"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
|
|
48
|
+
}
|
|
49
|
+
return _createClass(AddressVerificationMethod, null, [{
|
|
50
|
+
key: "constructFromObject",
|
|
51
|
+
value:
|
|
52
|
+
/**
|
|
53
|
+
* Returns a <code>AddressVerificationMethod</code> enum value from a Javascript object name.
|
|
54
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
55
|
+
* @return {module:model/AddressVerificationMethod} The enum <code>AddressVerificationMethod</code> value.
|
|
56
|
+
*/
|
|
57
|
+
function constructFromObject(object) {
|
|
58
|
+
return object;
|
|
59
|
+
}
|
|
60
|
+
}]);
|
|
61
|
+
}();
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* Cobo Wallet as a Service 2.0
|
|
17
|
+
*
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Enum class AddressVerificationStatus.
|
|
27
|
+
* @enum {}
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
var AddressVerificationStatus = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
function AddressVerificationStatus() {
|
|
32
|
+
_classCallCheck(this, AddressVerificationStatus);
|
|
33
|
+
/**
|
|
34
|
+
* value: "PENDING"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
_defineProperty(this, "PENDING", "PENDING");
|
|
38
|
+
/**
|
|
39
|
+
* value: "VERIFIED"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "VERIFIED", "VERIFIED");
|
|
43
|
+
/**
|
|
44
|
+
* value: "FAILED"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "FAILED", "FAILED");
|
|
48
|
+
/**
|
|
49
|
+
* value: "unknown_default_open_api"
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
_defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
|
|
53
|
+
}
|
|
54
|
+
return _createClass(AddressVerificationStatus, null, [{
|
|
55
|
+
key: "constructFromObject",
|
|
56
|
+
value:
|
|
57
|
+
/**
|
|
58
|
+
* Returns a <code>AddressVerificationStatus</code> enum value from a Javascript object name.
|
|
59
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
60
|
+
* @return {module:model/AddressVerificationStatus} The enum <code>AddressVerificationStatus</code> value.
|
|
61
|
+
*/
|
|
62
|
+
function constructFromObject(object) {
|
|
63
|
+
return object;
|
|
64
|
+
}
|
|
65
|
+
}]);
|
|
66
|
+
}();
|
|
@@ -82,6 +82,9 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
|
|
|
82
82
|
if (data.hasOwnProperty('created_time')) {
|
|
83
83
|
obj['created_time'] = _ApiClient["default"].convertToType(data['created_time'], 'Number');
|
|
84
84
|
}
|
|
85
|
+
if (data.hasOwnProperty('expired_time')) {
|
|
86
|
+
obj['expired_time'] = _ApiClient["default"].convertToType(data['expired_time'], 'Number');
|
|
87
|
+
}
|
|
85
88
|
if (data.hasOwnProperty('template_version')) {
|
|
86
89
|
obj['template_version'] = _ApiClient["default"].convertToType(data['template_version'], 'String');
|
|
87
90
|
}
|
|
@@ -217,6 +220,12 @@ ApprovalUserDetail.prototype['approval_result_code'] = undefined;
|
|
|
217
220
|
*/
|
|
218
221
|
ApprovalUserDetail.prototype['created_time'] = undefined;
|
|
219
222
|
|
|
223
|
+
/**
|
|
224
|
+
* The timestamp when the approval was expired.
|
|
225
|
+
* @member {Number} expired_time
|
|
226
|
+
*/
|
|
227
|
+
ApprovalUserDetail.prototype['expired_time'] = undefined;
|
|
228
|
+
|
|
220
229
|
/**
|
|
221
230
|
* Version of the template used for the transaction approval.
|
|
222
231
|
* @member {String} template_version
|