@cobo/cobo-waas2 1.8.0 → 1.9.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 +78 -30
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +12 -12
- package/dist/api/TransactionsApi.js +60 -16
- package/dist/api/TravelRuleApi.js +18 -18
- package/dist/api/WalletsApi.js +84 -13
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +151 -39
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +112 -7
- package/dist/model/ActivityExtra.js +5 -5
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressTransferDestination.js +36 -0
- package/dist/model/ApprovalStatementStatus.js +81 -0
- package/dist/model/AssetBalance.js +6 -6
- package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
- package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +110 -0
- package/dist/model/ContractCallParams.js +36 -0
- package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
- package/dist/model/CreateAddressRequest.js +28 -2
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
- package/dist/model/DeleteGuardPubkey201Response.js +110 -0
- package/dist/model/EthStakeEstimatedFee.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +1 -1
- package/dist/model/GetTransactionLimitation200Response.js +4 -4
- package/dist/model/GuardPubkeyStatus.js +91 -0
- package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
- package/dist/model/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- package/dist/model/OrgInfo.js +3 -3
- package/dist/model/QueryApprovalStatement200Response.js +122 -0
- package/dist/model/QueryGuardPubkey200Response.js +129 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SelfCustodyWallet.js +7 -7
- package/dist/model/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TokenBalance.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +16 -0
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
- package/dist/model/TransactionDestination.js +6 -0
- package/dist/model/TransactionRawTxInfo.js +13 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUserApprovalDetail.js +3 -3
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +36 -0
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
- package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
- package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
- package/dist/model/Vasp.js +7 -7
- package/docs/ActivityExtra.md +5 -5
- package/docs/AddressBalance.md +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonStakingActivityDetailExtra.md +1 -1
- package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +14 -0
- package/docs/CoreStakingActivityDetailExtra.md +3 -3
- package/docs/CreateAddressRequest.md +3 -1
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DevelopersApi.md +3 -3
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EthStakeEstimatedFee.md +1 -1
- package/docs/EthStakingActivityDetailExtra.md +1 -1
- package/docs/GetStakingEstimationFee201Response.md +1 -1
- package/docs/GetTransactionLimitation200Response.md +4 -4
- package/docs/GuardPubkeyStatus.md +24 -0
- package/docs/ListAddressBalancesByToken200Response.md +10 -0
- package/docs/ListKeyShareHolders200Response.md +10 -0
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- package/docs/OrgInfo.md +1 -1
- package/docs/PrimeBrokerApi.md +318 -0
- package/docs/QueryApprovalStatement200Response.md +12 -0
- package/docs/QueryGuardPubkey200Response.md +11 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
- package/docs/RootPubkey.md +1 -1
- package/docs/SelfCustodyWallet.md +3 -3
- package/docs/StakingsApi.md +12 -12
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
- package/docs/TSSGroups.md +1 -1
- package/docs/TokenBalance.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionRawTxInfo.md +1 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUserApprovalDetail.md +3 -3
- package/docs/TransactionsApi.md +66 -15
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +14 -0
- package/docs/TravelRuleApi.md +13 -13
- package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
- package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
- package/docs/TravelRuleDepositLegalEntity.md +3 -3
- package/docs/TravelRuleDepositNaturalEntity.md +5 -5
- package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
- package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
- package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
- package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
- package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
- package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
- package/docs/Vasp.md +3 -3
- package/docs/WalletsApi.md +78 -13
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +141 -27
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/package.json +1 -1
|
@@ -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 _Balance = _interopRequireDefault(require("./Balance"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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
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; } } }; }
|
|
@@ -35,7 +35,7 @@ var SubWalletAssetBalance = /*#__PURE__*/function () {
|
|
|
35
35
|
* The information about the asset balance of a trading account.
|
|
36
36
|
* @alias module:model/SubWalletAssetBalance
|
|
37
37
|
* @param asset_id {String} The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
38
|
-
* @param balance {module:model/
|
|
38
|
+
* @param balance {module:model/Balance}
|
|
39
39
|
*/
|
|
40
40
|
function SubWalletAssetBalance(asset_id, balance) {
|
|
41
41
|
_classCallCheck(this, SubWalletAssetBalance);
|
|
@@ -73,7 +73,7 @@ var SubWalletAssetBalance = /*#__PURE__*/function () {
|
|
|
73
73
|
obj['asset_id'] = _ApiClient["default"].convertToType(data['asset_id'], 'String');
|
|
74
74
|
}
|
|
75
75
|
if (data.hasOwnProperty('balance')) {
|
|
76
|
-
obj['balance'] =
|
|
76
|
+
obj['balance'] = _Balance["default"].constructFromObject(data['balance']);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return obj;
|
|
@@ -113,8 +113,8 @@ var SubWalletAssetBalance = /*#__PURE__*/function () {
|
|
|
113
113
|
// validate the optional field `balance`
|
|
114
114
|
if (data['balance']) {
|
|
115
115
|
// data not null
|
|
116
|
-
if (!!
|
|
117
|
-
|
|
116
|
+
if (!!_Balance["default"].validateJSON) {
|
|
117
|
+
_Balance["default"].validateJSON(data['balance']);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return true;
|
|
@@ -136,7 +136,7 @@ SubWalletAssetBalance.prototype['trading_account_type'] = undefined;
|
|
|
136
136
|
SubWalletAssetBalance.prototype['asset_id'] = undefined;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* @member {module:model/
|
|
139
|
+
* @member {module:model/Balance} balance
|
|
140
140
|
*/
|
|
141
141
|
SubWalletAssetBalance.prototype['balance'] = undefined;
|
|
142
142
|
var _default = exports["default"] = SubWalletAssetBalance;
|
|
@@ -76,7 +76,7 @@ var SubmitDepositTravelRuleInfo201Response = /*#__PURE__*/function () {
|
|
|
76
76
|
}]);
|
|
77
77
|
}();
|
|
78
78
|
/**
|
|
79
|
-
* Whether the
|
|
79
|
+
* Whether the Travel Rule information has been successfully submitted. - `true`: The information has been successfully submitted. - `false`: The information has not been submitted.
|
|
80
80
|
* @member {Boolean} submitted
|
|
81
81
|
*/
|
|
82
82
|
SubmitDepositTravelRuleInfo201Response.prototype['submitted'] = undefined;
|
package/dist/model/TSSGroups.js
CHANGED
|
@@ -103,7 +103,7 @@ TSSGroups.prototype['tss_key_share_group_id'] = undefined;
|
|
|
103
103
|
TSSGroups.prototype['curve'] = undefined;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* The vault's [root extended public key](https://
|
|
106
|
+
* The vault's [root extended public key](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#root-extended-public-keys).
|
|
107
107
|
* @member {String} root_pubkey
|
|
108
108
|
*/
|
|
109
109
|
TSSGroups.prototype['root_pubkey'] = undefined;
|
|
@@ -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 _Balance = _interopRequireDefault(require("./Balance"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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
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; } } }; }
|
|
@@ -35,7 +35,7 @@ var TokenBalance = /*#__PURE__*/function () {
|
|
|
35
35
|
* The balance information.
|
|
36
36
|
* @alias module:model/TokenBalance
|
|
37
37
|
* @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
38
|
-
* @param balance {module:model/
|
|
38
|
+
* @param balance {module:model/Balance}
|
|
39
39
|
*/
|
|
40
40
|
function TokenBalance(token_id, balance) {
|
|
41
41
|
_classCallCheck(this, TokenBalance);
|
|
@@ -70,7 +70,7 @@ var TokenBalance = /*#__PURE__*/function () {
|
|
|
70
70
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
71
71
|
}
|
|
72
72
|
if (data.hasOwnProperty('balance')) {
|
|
73
|
-
obj['balance'] =
|
|
73
|
+
obj['balance'] = _Balance["default"].constructFromObject(data['balance']);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return obj;
|
|
@@ -106,8 +106,8 @@ var TokenBalance = /*#__PURE__*/function () {
|
|
|
106
106
|
// validate the optional field `balance`
|
|
107
107
|
if (data['balance']) {
|
|
108
108
|
// data not null
|
|
109
|
-
if (!!
|
|
110
|
-
|
|
109
|
+
if (!!_Balance["default"].validateJSON) {
|
|
110
|
+
_Balance["default"].validateJSON(data['balance']);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
return true;
|
|
@@ -123,7 +123,7 @@ TokenBalance.RequiredProperties = ["token_id", "balance"];
|
|
|
123
123
|
TokenBalance.prototype['token_id'] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* @member {module:model/
|
|
126
|
+
* @member {module:model/Balance} balance
|
|
127
127
|
*/
|
|
128
128
|
TokenBalance.prototype['balance'] = undefined;
|
|
129
129
|
var _default = exports["default"] = TokenBalance;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TransactionDepositToAddressDestinationTxInfo = _interopRequireDefault(require("./TransactionDepositToAddressDestinationTxInfo"));
|
|
8
9
|
var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
|
|
9
10
|
var _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
|
|
10
11
|
var _WalletType = _interopRequireDefault(require("./WalletType"));
|
|
@@ -95,6 +96,9 @@ var TransactionDepositToAddressDestination = /*#__PURE__*/function () {
|
|
|
95
96
|
if (data.hasOwnProperty('amount')) {
|
|
96
97
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
97
98
|
}
|
|
99
|
+
if (data.hasOwnProperty('tx_info')) {
|
|
100
|
+
obj['tx_info'] = _TransactionDepositToAddressDestinationTxInfo["default"].constructFromObject(data['tx_info']);
|
|
101
|
+
}
|
|
98
102
|
}
|
|
99
103
|
return obj;
|
|
100
104
|
}
|
|
@@ -138,6 +142,13 @@ var TransactionDepositToAddressDestination = /*#__PURE__*/function () {
|
|
|
138
142
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
139
143
|
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
140
144
|
}
|
|
145
|
+
// validate the optional field `tx_info`
|
|
146
|
+
if (data['tx_info']) {
|
|
147
|
+
// data not null
|
|
148
|
+
if (!!_TransactionDepositToAddressDestinationTxInfo["default"].validateJSON) {
|
|
149
|
+
_TransactionDepositToAddressDestinationTxInfo["default"].validateJSON(data['tx_info']);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
141
152
|
return true;
|
|
142
153
|
}
|
|
143
154
|
}]);
|
|
@@ -182,4 +193,9 @@ TransactionDepositToAddressDestination.prototype['memo'] = undefined;
|
|
|
182
193
|
* @member {String} amount
|
|
183
194
|
*/
|
|
184
195
|
TransactionDepositToAddressDestination.prototype['amount'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @member {module:model/TransactionDepositToAddressDestinationTxInfo} tx_info
|
|
199
|
+
*/
|
|
200
|
+
TransactionDepositToAddressDestination.prototype['tx_info'] = undefined;
|
|
185
201
|
var _default = exports["default"] = TransactionDepositToAddressDestination;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Cobo Wallet as a Service 2.0
|
|
16
|
+
*
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The TransactionDepositToAddressDestinationTxInfo model module.
|
|
26
|
+
* @module model/TransactionDepositToAddressDestinationTxInfo
|
|
27
|
+
*/
|
|
28
|
+
var TransactionDepositToAddressDestinationTxInfo = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>TransactionDepositToAddressDestinationTxInfo</code>.
|
|
31
|
+
* @alias module:model/TransactionDepositToAddressDestinationTxInfo
|
|
32
|
+
*/
|
|
33
|
+
function TransactionDepositToAddressDestinationTxInfo() {
|
|
34
|
+
_classCallCheck(this, TransactionDepositToAddressDestinationTxInfo);
|
|
35
|
+
TransactionDepositToAddressDestinationTxInfo.initialize(this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
return _createClass(TransactionDepositToAddressDestinationTxInfo, null, [{
|
|
44
|
+
key: "initialize",
|
|
45
|
+
value: function initialize(obj) {}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>TransactionDepositToAddressDestinationTxInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/TransactionDepositToAddressDestinationTxInfo} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/TransactionDepositToAddressDestinationTxInfo} The populated <code>TransactionDepositToAddressDestinationTxInfo</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
}, {
|
|
55
|
+
key: "constructFromObject",
|
|
56
|
+
value: function constructFromObject(data, obj) {
|
|
57
|
+
if (data) {
|
|
58
|
+
obj = obj || new TransactionDepositToAddressDestinationTxInfo();
|
|
59
|
+
if (data.hasOwnProperty('vout_n')) {
|
|
60
|
+
obj['vout_n'] = _ApiClient["default"].convertToType(data['vout_n'], 'Number');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return obj;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Validates the JSON data with respect to <code>TransactionDepositToAddressDestinationTxInfo</code>.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionDepositToAddressDestinationTxInfo</code>.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "validateJSON",
|
|
73
|
+
value: function validateJSON(data) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}]);
|
|
77
|
+
}();
|
|
78
|
+
/**
|
|
79
|
+
* The output index of the UTXO.
|
|
80
|
+
* @member {Number} vout_n
|
|
81
|
+
*/
|
|
82
|
+
TransactionDepositToAddressDestinationTxInfo.prototype['vout_n'] = undefined;
|
|
83
|
+
var _default = exports["default"] = TransactionDepositToAddressDestinationTxInfo;
|
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ExchangeId = _interopRequireDefault(require("./ExchangeId"));
|
|
9
9
|
var _TransactionDepositToAddressDestination = _interopRequireDefault(require("./TransactionDepositToAddressDestination"));
|
|
10
|
+
var _TransactionDepositToAddressDestinationTxInfo = _interopRequireDefault(require("./TransactionDepositToAddressDestinationTxInfo"));
|
|
10
11
|
var _TransactionDepositToWalletDestination = _interopRequireDefault(require("./TransactionDepositToWalletDestination"));
|
|
11
12
|
var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
|
|
12
13
|
var _TransactionEvmCalldataInfo = _interopRequireDefault(require("./TransactionEvmCalldataInfo"));
|
|
@@ -458,5 +459,10 @@ TransactionDestination.prototype['wallet_subtype'] = undefined;
|
|
|
458
459
|
* @member {String} memo
|
|
459
460
|
*/
|
|
460
461
|
TransactionDestination.prototype['memo'] = undefined;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @member {module:model/TransactionDepositToAddressDestinationTxInfo} tx_info
|
|
465
|
+
*/
|
|
466
|
+
TransactionDestination.prototype['tx_info'] = undefined;
|
|
461
467
|
TransactionDestination.OneOf = ["TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
|
|
462
468
|
var _default = exports["default"] = TransactionDestination;
|
|
@@ -70,6 +70,9 @@ var TransactionRawTxInfo = /*#__PURE__*/function () {
|
|
|
70
70
|
if (data.hasOwnProperty('raw_tx')) {
|
|
71
71
|
obj['raw_tx'] = _ApiClient["default"].convertToType(data['raw_tx'], 'String');
|
|
72
72
|
}
|
|
73
|
+
if (data.hasOwnProperty('unsigned_raw_tx')) {
|
|
74
|
+
obj['unsigned_raw_tx'] = _ApiClient["default"].convertToType(data['unsigned_raw_tx'], 'String');
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
return obj;
|
|
75
78
|
}
|
|
@@ -107,6 +110,10 @@ var TransactionRawTxInfo = /*#__PURE__*/function () {
|
|
|
107
110
|
if (data['raw_tx'] && !(typeof data['raw_tx'] === 'string' || data['raw_tx'] instanceof String)) {
|
|
108
111
|
throw new Error("Expected the field `raw_tx` to be a primitive type in the JSON string but got " + data['raw_tx']);
|
|
109
112
|
}
|
|
113
|
+
// ensure the json data is a string
|
|
114
|
+
if (data['unsigned_raw_tx'] && !(typeof data['unsigned_raw_tx'] === 'string' || data['unsigned_raw_tx'] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `unsigned_raw_tx` to be a primitive type in the JSON string but got " + data['unsigned_raw_tx']);
|
|
116
|
+
}
|
|
110
117
|
return true;
|
|
111
118
|
}
|
|
112
119
|
}]);
|
|
@@ -128,4 +135,10 @@ TransactionRawTxInfo.prototype['selected_utxos'] = undefined;
|
|
|
128
135
|
* @member {String} raw_tx
|
|
129
136
|
*/
|
|
130
137
|
TransactionRawTxInfo.prototype['raw_tx'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The unsigned raw transaction data.
|
|
141
|
+
* @member {String} unsigned_raw_tx
|
|
142
|
+
*/
|
|
143
|
+
TransactionRawTxInfo.prototype['unsigned_raw_tx'] = undefined;
|
|
131
144
|
var _default = exports["default"] = TransactionRawTxInfo;
|
|
@@ -90,6 +90,11 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
90
|
* @const
|
|
91
91
|
*/
|
|
92
92
|
_defineProperty(this, "RejectedbyMobileCosigner", "RejectedbyMobileCosigner");
|
|
93
|
+
/**
|
|
94
|
+
* value: "Built"
|
|
95
|
+
* @const
|
|
96
|
+
*/
|
|
97
|
+
_defineProperty(this, "Built", "Built");
|
|
93
98
|
/**
|
|
94
99
|
* value: "PendingWaitSigner"
|
|
95
100
|
* @const
|
|
@@ -120,7 +120,7 @@ var TransactionUserApprovalDetail = /*#__PURE__*/function () {
|
|
|
120
120
|
}]);
|
|
121
121
|
}();
|
|
122
122
|
/**
|
|
123
|
-
* The
|
|
123
|
+
* The Cobo Guard public key of the user who audited this message.
|
|
124
124
|
* @member {String} pubkey
|
|
125
125
|
*/
|
|
126
126
|
TransactionUserApprovalDetail.prototype['pubkey'] = undefined;
|
|
@@ -131,7 +131,7 @@ TransactionUserApprovalDetail.prototype['pubkey'] = undefined;
|
|
|
131
131
|
TransactionUserApprovalDetail.prototype['result'] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* The signature of the audited message.
|
|
135
135
|
* @member {String} signature
|
|
136
136
|
*/
|
|
137
137
|
TransactionUserApprovalDetail.prototype['signature'] = undefined;
|
|
@@ -143,7 +143,7 @@ TransactionUserApprovalDetail.prototype['signature'] = undefined;
|
|
|
143
143
|
TransactionUserApprovalDetail.prototype['language'] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* The version of the audited message.
|
|
147
147
|
* @member {String} message_version
|
|
148
148
|
*/
|
|
149
149
|
TransactionUserApprovalDetail.prototype['message_version'] = undefined;
|
|
@@ -195,6 +195,12 @@ TransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
195
195
|
*/
|
|
196
196
|
TransferDestination.prototype['change_address'] = undefined;
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* The position of the change output in the transaction's outputs. Possible values are: - `Last`: The change output is placed at the end of the transaction's outputs. - `First`: The change output is placed at the beginning of the transaction's outputs.
|
|
200
|
+
* @member {module:model/TransferDestination.ChangeOutputTypeEnum} change_output_type
|
|
201
|
+
*/
|
|
202
|
+
TransferDestination.prototype['change_output_type'] = undefined;
|
|
203
|
+
|
|
198
204
|
/**
|
|
199
205
|
* Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
|
|
200
206
|
* @member {Boolean} force_internal
|
|
@@ -94,6 +94,9 @@ var TransferParams = /*#__PURE__*/function () {
|
|
|
94
94
|
if (data.hasOwnProperty('fee')) {
|
|
95
95
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
96
96
|
}
|
|
97
|
+
if (data.hasOwnProperty('transaction_process_type')) {
|
|
98
|
+
obj['transaction_process_type'] = _ApiClient["default"].convertToType(data['transaction_process_type'], 'String');
|
|
99
|
+
}
|
|
97
100
|
if (data.hasOwnProperty('auto_fuel')) {
|
|
98
101
|
obj['auto_fuel'] = _AutoFuelType["default"].constructFromObject(data['auto_fuel']);
|
|
99
102
|
}
|
|
@@ -161,6 +164,10 @@ var TransferParams = /*#__PURE__*/function () {
|
|
|
161
164
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
162
165
|
}
|
|
163
166
|
}
|
|
167
|
+
// ensure the json data is a string
|
|
168
|
+
if (data['transaction_process_type'] && !(typeof data['transaction_process_type'] === 'string' || data['transaction_process_type'] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `transaction_process_type` to be a primitive type in the JSON string but got " + data['transaction_process_type']);
|
|
170
|
+
}
|
|
164
171
|
return true;
|
|
165
172
|
}
|
|
166
173
|
}]);
|
|
@@ -206,8 +213,37 @@ TransferParams.prototype['description'] = undefined;
|
|
|
206
213
|
*/
|
|
207
214
|
TransferParams.prototype['fee'] = undefined;
|
|
208
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Transaction processing type. Possible values are: - `AutoProcess` (default): After the transaction is constructed, it will be automatically signed and broadcast. - `BuildOnly`: Set to this value if you want to build the transaction first without automatically signing and broadcasting it. You can manually call the [Sign and broadcast transaction](https://www.cobo.com/developers/v2/api-references/transactions/sign-and-broadcast-transaction) operation to complete the signing and broadcasting process.
|
|
218
|
+
* @member {module:model/TransferParams.TransactionProcessTypeEnum} transaction_process_type
|
|
219
|
+
*/
|
|
220
|
+
TransferParams.prototype['transaction_process_type'] = undefined;
|
|
221
|
+
|
|
209
222
|
/**
|
|
210
223
|
* @member {module:model/AutoFuelType} auto_fuel
|
|
211
224
|
*/
|
|
212
225
|
TransferParams.prototype['auto_fuel'] = undefined;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Allowed values for the <code>transaction_process_type</code> property.
|
|
229
|
+
* @enum {String}
|
|
230
|
+
* @readonly
|
|
231
|
+
*/
|
|
232
|
+
TransferParams['TransactionProcessTypeEnum'] = {
|
|
233
|
+
/**
|
|
234
|
+
* value: "AutoProcess"
|
|
235
|
+
* @const
|
|
236
|
+
*/
|
|
237
|
+
"AutoProcess": "AutoProcess",
|
|
238
|
+
/**
|
|
239
|
+
* value: "BuildOnly"
|
|
240
|
+
* @const
|
|
241
|
+
*/
|
|
242
|
+
"BuildOnly": "BuildOnly",
|
|
243
|
+
/**
|
|
244
|
+
* value: "unknown_default_open_api"
|
|
245
|
+
* @const
|
|
246
|
+
*/
|
|
247
|
+
"unknown_default_open_api": "unknown_default_open_api"
|
|
248
|
+
};
|
|
213
249
|
var _default = exports["default"] = TransferParams;
|
|
@@ -33,10 +33,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TravelRuleDepositExchangesOrVASP = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TravelRuleDepositExchangesOrVASP</code>.
|
|
36
|
-
* Required
|
|
36
|
+
* Required information when depositing from an exchange or other virtual asset service providers (VASP).
|
|
37
37
|
* @alias module:model/TravelRuleDepositExchangesOrVASP
|
|
38
38
|
* @param destination_wallet_type {module:model/DestinationWalletType}
|
|
39
|
-
* @param vendor_code {String} The vendor code
|
|
39
|
+
* @param vendor_code {String} The vendor code of the VASP.
|
|
40
40
|
* @param vendor_vasp_id {String} The unique identifier of the VASP.
|
|
41
41
|
* @param entity_info {module:model/TravelRuleDepositExchangesOrVASPEntityInfo}
|
|
42
42
|
*/
|
|
@@ -144,7 +144,7 @@ TravelRuleDepositExchangesOrVASP.RequiredProperties = ["destination_wallet_type"
|
|
|
144
144
|
TravelRuleDepositExchangesOrVASP.prototype['destination_wallet_type'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* The vendor code
|
|
147
|
+
* The vendor code of the VASP.
|
|
148
148
|
* @member {String} vendor_code
|
|
149
149
|
*/
|
|
150
150
|
TravelRuleDepositExchangesOrVASP.prototype['vendor_code'] = undefined;
|
|
@@ -156,7 +156,7 @@ TravelRuleDepositExchangesOrVASP.prototype['vendor_code'] = undefined;
|
|
|
156
156
|
TravelRuleDepositExchangesOrVASP.prototype['vendor_vasp_id'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The vendor name
|
|
159
|
+
* The vendor name. Use this field to specify the name of a vendor not listed.
|
|
160
160
|
* @member {String} vendor_vasp_name
|
|
161
161
|
*/
|
|
162
162
|
TravelRuleDepositExchangesOrVASP.prototype['vendor_vasp_name'] = undefined;
|
|
@@ -163,7 +163,7 @@ var TravelRuleDepositExchangesOrVASPEntityInfo = /*#__PURE__*/function () {
|
|
|
163
163
|
}]);
|
|
164
164
|
}();
|
|
165
165
|
/**
|
|
166
|
-
* Specifies the type of entity associated with the transaction.
|
|
166
|
+
* Specifies the type of entity associated with the transaction. - `LEGAL`: Legal entity. - `NATURAL`: Natural person.
|
|
167
167
|
* @member {module:model/TravelRuleDepositExchangesOrVASPEntityInfo.SelectedEntityTypeEnum} selected_entity_type
|
|
168
168
|
*/
|
|
169
169
|
_TravelRuleDepositExchangesOrVASPEntityInfo = TravelRuleDepositExchangesOrVASPEntityInfo;
|
|
@@ -184,37 +184,37 @@ TravelRuleDepositExchangesOrVASPEntityInfo.prototype['selected_entity_type'] = u
|
|
|
184
184
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['legal_name'] = undefined;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* The
|
|
187
|
+
* The date of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`.
|
|
188
188
|
* @member {Date} date_of_incorporation
|
|
189
189
|
*/
|
|
190
190
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['date_of_incorporation'] = undefined;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
|
-
* The place of incorporation of the entity. This field is required when: -
|
|
193
|
+
* The place of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`.
|
|
194
194
|
* @member {String} place_of_incorporation
|
|
195
195
|
*/
|
|
196
196
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['place_of_incorporation'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* The first name of the
|
|
199
|
+
* The first name of the natural person.
|
|
200
200
|
* @member {String} first_name
|
|
201
201
|
*/
|
|
202
202
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['first_name'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The last name of the
|
|
205
|
+
* The last name of the natural person.
|
|
206
206
|
* @member {String} last_name
|
|
207
207
|
*/
|
|
208
208
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['last_name'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The date of birth of the
|
|
211
|
+
* The date of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`.
|
|
212
212
|
* @member {Date} date_of_birth
|
|
213
213
|
*/
|
|
214
214
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['date_of_birth'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* The place of birth of the
|
|
217
|
+
* The place of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`.
|
|
218
218
|
* @member {String} place_of_birth
|
|
219
219
|
*/
|
|
220
220
|
TravelRuleDepositExchangesOrVASPEntityInfo.prototype['place_of_birth'] = undefined;
|
|
@@ -31,9 +31,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
var TravelRuleDepositLegalEntity = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>TravelRuleDepositLegalEntity</code>.
|
|
34
|
-
*
|
|
34
|
+
* The required information of a legal entity.
|
|
35
35
|
* @alias module:model/TravelRuleDepositLegalEntity
|
|
36
|
-
* @param selected_entity_type {module:model/TravelRuleDepositLegalEntity.SelectedEntityTypeEnum}
|
|
36
|
+
* @param selected_entity_type {module:model/TravelRuleDepositLegalEntity.SelectedEntityTypeEnum} The entity type. Possible values include: - `LEGAL`: Legal entity. - `NATURAL`: Natural person.
|
|
37
37
|
* @param legal_name {String} The legal name of the entity.
|
|
38
38
|
*/
|
|
39
39
|
function TravelRuleDepositLegalEntity(selected_entity_type, legal_name) {
|
|
@@ -123,7 +123,7 @@ var TravelRuleDepositLegalEntity = /*#__PURE__*/function () {
|
|
|
123
123
|
TravelRuleDepositLegalEntity.RequiredProperties = ["selected_entity_type", "legal_name"];
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* The entity type. Possible values include: - `LEGAL`: Legal entity. - `NATURAL`: Natural person.
|
|
127
127
|
* @member {module:model/TravelRuleDepositLegalEntity.SelectedEntityTypeEnum} selected_entity_type
|
|
128
128
|
*/
|
|
129
129
|
TravelRuleDepositLegalEntity.prototype['selected_entity_type'] = undefined;
|
|
@@ -135,13 +135,13 @@ TravelRuleDepositLegalEntity.prototype['selected_entity_type'] = undefined;
|
|
|
135
135
|
TravelRuleDepositLegalEntity.prototype['legal_name'] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
* The
|
|
138
|
+
* The date of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`.
|
|
139
139
|
* @member {Date} date_of_incorporation
|
|
140
140
|
*/
|
|
141
141
|
TravelRuleDepositLegalEntity.prototype['date_of_incorporation'] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* The place of incorporation of the entity. This field is required when: -
|
|
144
|
+
* The place of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`.
|
|
145
145
|
* @member {String} place_of_incorporation
|
|
146
146
|
*/
|
|
147
147
|
TravelRuleDepositLegalEntity.prototype['place_of_incorporation'] = undefined;
|
|
@@ -31,11 +31,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
var TravelRuleDepositNaturalEntity = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>TravelRuleDepositNaturalEntity</code>.
|
|
34
|
-
*
|
|
34
|
+
* The required information of a natural person.
|
|
35
35
|
* @alias module:model/TravelRuleDepositNaturalEntity
|
|
36
|
-
* @param selected_entity_type {module:model/TravelRuleDepositNaturalEntity.SelectedEntityTypeEnum} Specifies the type of entity associated with the transaction.
|
|
37
|
-
* @param first_name {String} The first name of the
|
|
38
|
-
* @param last_name {String} The last name of the
|
|
36
|
+
* @param selected_entity_type {module:model/TravelRuleDepositNaturalEntity.SelectedEntityTypeEnum} Specifies the type of entity associated with the transaction. - `LEGAL`: Legal entity. - `NATURAL`: Natural person.
|
|
37
|
+
* @param first_name {String} The first name of the natural person.
|
|
38
|
+
* @param last_name {String} The last name of the natural person.
|
|
39
39
|
*/
|
|
40
40
|
function TravelRuleDepositNaturalEntity(selected_entity_type, first_name, last_name) {
|
|
41
41
|
_classCallCheck(this, TravelRuleDepositNaturalEntity);
|
|
@@ -132,31 +132,31 @@ var TravelRuleDepositNaturalEntity = /*#__PURE__*/function () {
|
|
|
132
132
|
TravelRuleDepositNaturalEntity.RequiredProperties = ["selected_entity_type", "first_name", "last_name"];
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* Specifies the type of entity associated with the transaction.
|
|
135
|
+
* Specifies the type of entity associated with the transaction. - `LEGAL`: Legal entity. - `NATURAL`: Natural person.
|
|
136
136
|
* @member {module:model/TravelRuleDepositNaturalEntity.SelectedEntityTypeEnum} selected_entity_type
|
|
137
137
|
*/
|
|
138
138
|
TravelRuleDepositNaturalEntity.prototype['selected_entity_type'] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* The first name of the
|
|
141
|
+
* The first name of the natural person.
|
|
142
142
|
* @member {String} first_name
|
|
143
143
|
*/
|
|
144
144
|
TravelRuleDepositNaturalEntity.prototype['first_name'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* The last name of the
|
|
147
|
+
* The last name of the natural person.
|
|
148
148
|
* @member {String} last_name
|
|
149
149
|
*/
|
|
150
150
|
TravelRuleDepositNaturalEntity.prototype['last_name'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* The date of birth of the
|
|
153
|
+
* The date of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`.
|
|
154
154
|
* @member {Date} date_of_birth
|
|
155
155
|
*/
|
|
156
156
|
TravelRuleDepositNaturalEntity.prototype['date_of_birth'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The place of birth of the
|
|
159
|
+
* The place of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`.
|
|
160
160
|
* @member {String} place_of_birth
|
|
161
161
|
*/
|
|
162
162
|
TravelRuleDepositNaturalEntity.prototype['place_of_birth'] = undefined;
|
|
@@ -179,7 +179,7 @@ _defineProperty(TravelRuleDepositRequestTravelRuleInfo, "fromJSON", function (js
|
|
|
179
179
|
TravelRuleDepositRequestTravelRuleInfo.prototype['destination_wallet_type'] = undefined;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
* The vendor code
|
|
182
|
+
* The vendor code of the VASP.
|
|
183
183
|
* @member {String} vendor_code
|
|
184
184
|
*/
|
|
185
185
|
TravelRuleDepositRequestTravelRuleInfo.prototype['vendor_code'] = undefined;
|
|
@@ -191,7 +191,7 @@ TravelRuleDepositRequestTravelRuleInfo.prototype['vendor_code'] = undefined;
|
|
|
191
191
|
TravelRuleDepositRequestTravelRuleInfo.prototype['vendor_vasp_id'] = undefined;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* The vendor name
|
|
194
|
+
* The vendor name. Use this field to specify the name of a vendor not listed.
|
|
195
195
|
* @member {String} vendor_vasp_name
|
|
196
196
|
*/
|
|
197
197
|
TravelRuleDepositRequestTravelRuleInfo.prototype['vendor_vasp_name'] = undefined;
|
|
@@ -202,19 +202,19 @@ TravelRuleDepositRequestTravelRuleInfo.prototype['vendor_vasp_name'] = undefined
|
|
|
202
202
|
TravelRuleDepositRequestTravelRuleInfo.prototype['entity_info'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The
|
|
205
|
+
* The message obtained from the `Retrieve transaction limitations` operation. This message is used to verify wallet ownership through signing.
|
|
206
206
|
* @member {String} self_custody_wallet_challenge
|
|
207
207
|
*/
|
|
208
208
|
TravelRuleDepositRequestTravelRuleInfo.prototype['self_custody_wallet_challenge'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The address of the self-
|
|
211
|
+
* The address of the self-custody wallet.
|
|
212
212
|
* @member {String} self_custody_wallet_address
|
|
213
213
|
*/
|
|
214
214
|
TravelRuleDepositRequestTravelRuleInfo.prototype['self_custody_wallet_address'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* The
|
|
217
|
+
* The signature created by signing the challenge message with the wallet's private key.
|
|
218
218
|
* @member {String} self_custody_wallet_sign
|
|
219
219
|
*/
|
|
220
220
|
TravelRuleDepositRequestTravelRuleInfo.prototype['self_custody_wallet_sign'] = undefined;
|