@cobo/cobo-waas2 1.15.0 → 1.17.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.
Files changed (140) hide show
  1. package/README.md +42 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AddressBooksApi.js +4 -4
  5. package/dist/api/AppWorkflowsApi.js +275 -0
  6. package/dist/api/DevelopersApi.js +4 -4
  7. package/dist/api/DevelopersWebhooksApi.js +12 -12
  8. package/dist/api/FeeStationApi.js +12 -12
  9. package/dist/api/OAuthApi.js +93 -6
  10. package/dist/api/PaymentApi.js +107 -161
  11. package/dist/api/StakingsApi.js +28 -28
  12. package/dist/api/TransactionsApi.js +4 -4
  13. package/dist/api/WalletsApi.js +102 -51
  14. package/dist/api/WalletsExchangeWalletApi.js +8 -8
  15. package/dist/api/WalletsMPCWalletsApi.js +20 -20
  16. package/dist/index.js +224 -14
  17. package/dist/model/AppWorkflow.js +173 -0
  18. package/dist/model/AppWorkflowField.js +137 -0
  19. package/dist/model/AppWorkflowPolicy.js +144 -0
  20. package/dist/model/ApprovalEntry.js +148 -0
  21. package/dist/model/ApprovalRequest.js +180 -0
  22. package/dist/model/ApprovalRequestDetail.js +177 -0
  23. package/dist/model/ApprovalStatus.js +71 -0
  24. package/dist/model/ApprovalUser.js +146 -0
  25. package/dist/model/BabylonStakeExtra.js +16 -0
  26. package/dist/model/BatchCheckUtxo201Response.js +107 -0
  27. package/dist/model/BatchCheckUtxoRequest.js +142 -0
  28. package/dist/model/{CreateBankAccountRequest.js → BatchUTXOParam.js} +43 -28
  29. package/dist/model/ChainInfo.js +9 -0
  30. package/dist/model/CreateApprovalRequest201Response.js +110 -0
  31. package/dist/model/CreatePaymentOrderRequest.js +5 -5
  32. package/dist/model/CreateRefundRequest.js +35 -0
  33. package/dist/model/CreateSettlement.js +39 -29
  34. package/dist/model/CreateStakeActivityExtra.js +6 -0
  35. package/dist/model/CryptoAddress.js +171 -0
  36. package/dist/model/{OrderAddressInfo.js → CustodialTransferDestination.js} +36 -46
  37. package/dist/model/CustodialWeb3TransferSource.js +1 -1
  38. package/dist/model/EstimateContractCallFeeParams.js +13 -0
  39. package/dist/model/EstimateFeeParams.js +6 -0
  40. package/dist/model/EstimateTransferFeeParams.js +13 -0
  41. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  42. package/dist/model/ExchangePermissionTokenRequest.js +110 -0
  43. package/dist/model/ListApprovalRequests200Response.js +123 -0
  44. package/dist/model/MpcTransferSource.js +1 -1
  45. package/dist/model/Order.js +4 -4
  46. package/dist/model/PaymentOrderEventData.js +6 -6
  47. package/dist/model/PayoutChannel.js +61 -0
  48. package/dist/model/PolicyAction.js +123 -0
  49. package/dist/model/PolicyActionContent.js +169 -0
  50. package/dist/model/PolicyActionType.js +66 -0
  51. package/dist/model/PolicyCondition.js +148 -0
  52. package/dist/model/PolicyFieldOperator.js +76 -0
  53. package/dist/model/PolicyFieldValueType.js +61 -0
  54. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  55. package/dist/model/RequestApproval.js +188 -0
  56. package/dist/model/RevokeApprovalRequest201Response.js +119 -0
  57. package/dist/model/RevokeApprovalRequestRequest.js +110 -0
  58. package/dist/model/SettlementDetail.js +22 -0
  59. package/dist/model/SupportedToken.js +222 -0
  60. package/dist/model/SwapActivityApprovers.js +122 -0
  61. package/dist/model/SwapActivityDetail.js +30 -0
  62. package/dist/model/SwapApproversStatus.js +66 -0
  63. package/dist/model/TransactionCoboCategory.js +102 -7
  64. package/dist/model/TransactionDestination.js +4 -0
  65. package/dist/model/TransactionDestinationType.js +5 -0
  66. package/dist/model/TransactionRbfSource.js +1 -1
  67. package/dist/model/TransactionSubStatus.js +10 -0
  68. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  69. package/dist/model/TransferDestination.js +42 -14
  70. package/dist/model/TransferDestinationType.js +5 -0
  71. package/dist/model/UTXO.js +9 -0
  72. package/docs/AddressBooksApi.md +2 -2
  73. package/docs/AppWorkflow.md +12 -0
  74. package/docs/AppWorkflowField.md +11 -0
  75. package/docs/AppWorkflowPolicy.md +10 -0
  76. package/docs/AppWorkflowsApi.md +273 -0
  77. package/docs/ApprovalEntry.md +11 -0
  78. package/docs/ApprovalRequest.md +13 -0
  79. package/docs/ApprovalRequestDetail.md +13 -0
  80. package/docs/ApprovalStatus.md +16 -0
  81. package/docs/ApprovalUser.md +12 -0
  82. package/docs/BabylonStakeExtra.md +1 -0
  83. package/docs/BatchCheckUtxo201Response.md +9 -0
  84. package/docs/BatchCheckUtxoRequest.md +10 -0
  85. package/docs/BatchUTXOParam.md +10 -0
  86. package/docs/ChainInfo.md +1 -0
  87. package/docs/CreateApprovalRequest201Response.md +9 -0
  88. package/docs/CreatePaymentOrderRequest.md +1 -1
  89. package/docs/CreateRefundRequest.md +3 -0
  90. package/docs/CreateSettlement.md +5 -2
  91. package/docs/CreateStakeActivityExtra.md +1 -0
  92. package/docs/CryptoAddress.md +14 -0
  93. package/docs/CustodialTransferDestination.md +11 -0
  94. package/docs/CustodialWeb3TransferSource.md +1 -1
  95. package/docs/DevelopersApi.md +2 -2
  96. package/docs/DevelopersWebhooksApi.md +6 -6
  97. package/docs/EstimateContractCallFeeParams.md +1 -0
  98. package/docs/EstimateFeeParams.md +1 -0
  99. package/docs/EstimateTransferFeeParams.md +1 -0
  100. package/docs/ExchangePermissionToken201Response.md +12 -0
  101. package/docs/ExchangePermissionTokenRequest.md +9 -0
  102. package/docs/FeeStationApi.md +6 -6
  103. package/docs/ListApprovalRequests200Response.md +10 -0
  104. package/docs/MpcTransferSource.md +1 -1
  105. package/docs/OAuthApi.md +102 -0
  106. package/docs/Order.md +2 -2
  107. package/docs/PaymentApi.md +86 -147
  108. package/docs/PaymentOrderEventData.md +2 -2
  109. package/docs/PayoutChannel.md +12 -0
  110. package/docs/PolicyAction.md +10 -0
  111. package/docs/PolicyActionContent.md +25 -0
  112. package/docs/PolicyActionType.md +14 -0
  113. package/docs/PolicyCondition.md +12 -0
  114. package/docs/PolicyFieldOperator.md +18 -0
  115. package/docs/PolicyFieldValueType.md +12 -0
  116. package/docs/RefreshPermissionTokenRequest.md +9 -0
  117. package/docs/RequestApproval.md +13 -0
  118. package/docs/RevokeApprovalRequest201Response.md +10 -0
  119. package/docs/RevokeApprovalRequestRequest.md +9 -0
  120. package/docs/SettlementDetail.md +2 -0
  121. package/docs/StakingsApi.md +14 -14
  122. package/docs/SupportedToken.md +17 -0
  123. package/docs/SwapActivityApprovers.md +10 -0
  124. package/docs/SwapActivityDetail.md +1 -0
  125. package/docs/SwapApproversStatus.md +14 -0
  126. package/docs/TransactionCoboCategory.md +41 -3
  127. package/docs/TransactionDestinationType.md +2 -0
  128. package/docs/TransactionRbfSource.md +1 -1
  129. package/docs/TransactionSubStatus.md +4 -0
  130. package/docs/TransactionTransferToWalletDestination.md +1 -1
  131. package/docs/TransactionsApi.md +2 -2
  132. package/docs/TransferDestination.md +1 -1
  133. package/docs/TransferDestinationType.md +2 -0
  134. package/docs/UTXO.md +1 -0
  135. package/docs/WalletsApi.md +78 -23
  136. package/docs/WalletsExchangeWalletApi.md +4 -4
  137. package/docs/WalletsMPCWalletsApi.md +10 -10
  138. package/package.json +1 -1
  139. package/docs/CreateBankAccountRequest.md +0 -9
  140. package/docs/OrderAddressInfo.md +0 -12
@@ -0,0 +1,171 @@
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 CryptoAddress model module.
29
+ * @module model/CryptoAddress
30
+ */
31
+ var CryptoAddress = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>CryptoAddress</code>.
34
+ * @alias module:model/CryptoAddress
35
+ * @param token_id {String} The token identifier (e.g., ETH_USDT, TRON_USDT) that this address is associated with.
36
+ * @param address_id {String} Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. This ID is returned by the system and should be used instead of the raw blockchain address in API calls.
37
+ * @param address {String} The actual blockchain address to which funds will be transferred. This is for display purposes only; external clients should always use address_id to refer to the address in secure operations.
38
+ */
39
+ function CryptoAddress(token_id, address_id, address) {
40
+ _classCallCheck(this, CryptoAddress);
41
+ CryptoAddress.initialize(this, token_id, address_id, address);
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(CryptoAddress, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, token_id, address_id, address) {
52
+ obj['token_id'] = token_id;
53
+ obj['address_id'] = address_id;
54
+ obj['address'] = address;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>CryptoAddress</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/CryptoAddress} obj Optional instance to populate.
62
+ * @return {module:model/CryptoAddress} The populated <code>CryptoAddress</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new CryptoAddress();
69
+ if (data.hasOwnProperty('token_id')) {
70
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('address_id')) {
73
+ obj['address_id'] = _ApiClient["default"].convertToType(data['address_id'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('address')) {
76
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('label')) {
79
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('created_timestamp')) {
82
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
83
+ }
84
+ if (data.hasOwnProperty('updated_timestamp')) {
85
+ obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
86
+ }
87
+ }
88
+ return obj;
89
+ }
90
+
91
+ /**
92
+ * Validates the JSON data with respect to <code>CryptoAddress</code>.
93
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
94
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CryptoAddress</code>.
95
+ */
96
+ }, {
97
+ key: "validateJSON",
98
+ value: function validateJSON(data) {
99
+ // check to make sure all required properties are present in the JSON string
100
+ var _iterator = _createForOfIteratorHelper(CryptoAddress.RequiredProperties),
101
+ _step;
102
+ try {
103
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
104
+ var property = _step.value;
105
+ if (!data.hasOwnProperty(property)) {
106
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
107
+ }
108
+ }
109
+ // ensure the json data is a string
110
+ } catch (err) {
111
+ _iterator.e(err);
112
+ } finally {
113
+ _iterator.f();
114
+ }
115
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
116
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['address_id'] && !(typeof data['address_id'] === 'string' || data['address_id'] instanceof String)) {
120
+ throw new Error("Expected the field `address_id` to be a primitive type in the JSON string but got " + data['address_id']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
124
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
128
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
129
+ }
130
+ return true;
131
+ }
132
+ }]);
133
+ }();
134
+ CryptoAddress.RequiredProperties = ["token_id", "address_id", "address"];
135
+
136
+ /**
137
+ * The token identifier (e.g., ETH_USDT, TRON_USDT) that this address is associated with.
138
+ * @member {String} token_id
139
+ */
140
+ CryptoAddress.prototype['token_id'] = undefined;
141
+
142
+ /**
143
+ * Unique identifier for the pre-approved crypto address, used to reference the address securely in requests. This ID is returned by the system and should be used instead of the raw blockchain address in API calls.
144
+ * @member {String} address_id
145
+ */
146
+ CryptoAddress.prototype['address_id'] = undefined;
147
+
148
+ /**
149
+ * The actual blockchain address to which funds will be transferred. This is for display purposes only; external clients should always use address_id to refer to the address in secure operations.
150
+ * @member {String} address
151
+ */
152
+ CryptoAddress.prototype['address'] = undefined;
153
+
154
+ /**
155
+ * A human-readable label or alias for the crypto address, set by the merchant or platform operator. This field is optional and intended to help distinguish addresses by usage or purpose (e.g., \"Main Payout Wallet\", \"Cold Wallet\").
156
+ * @member {String} label
157
+ */
158
+ CryptoAddress.prototype['label'] = undefined;
159
+
160
+ /**
161
+ * The created time of the crypto address, represented as a UNIX timestamp in seconds.
162
+ * @member {Number} created_timestamp
163
+ */
164
+ CryptoAddress.prototype['created_timestamp'] = undefined;
165
+
166
+ /**
167
+ * The updated time of the crypto address, represented as a UNIX timestamp in seconds.
168
+ * @member {Number} updated_timestamp
169
+ */
170
+ CryptoAddress.prototype['updated_timestamp'] = undefined;
171
+ var _default = exports["default"] = CryptoAddress;
@@ -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 _TransferDestinationType = _interopRequireDefault(require("./TransferDestinationType"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
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); }
10
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; } } }; }
@@ -25,21 +26,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
26
  *
26
27
  */
27
28
  /**
28
- * The OrderAddressInfo model module.
29
- * @module model/OrderAddressInfo
29
+ * The CustodialTransferDestination model module.
30
+ * @module model/CustodialTransferDestination
30
31
  */
31
- var OrderAddressInfo = /*#__PURE__*/function () {
32
+ var CustodialTransferDestination = /*#__PURE__*/function () {
32
33
  /**
33
- * Constructs a new <code>OrderAddressInfo</code>.
34
- * @alias module:model/OrderAddressInfo
35
- * @param wallet_id {String} The ID of the linked wallet.
36
- * @param amount {String} The amount of cryptocurrency received by the order's receiving address.
37
- * @param created_timestamp {Number} The created time of the address, represented as a UNIX timestamp in seconds.
38
- * @param updated_timestamp {Number} The updated time of the address, represented as a UNIX timestamp in seconds.
34
+ * Constructs a new <code>CustodialTransferDestination</code>.
35
+ * The information about the transaction destination type &#x60;CustodialWallet&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. An Custodial Wallet can only receive asset transfers from another Custodial Wallet by using Loop. Switch between the tabs to display the properties for different transaction destinations.
36
+ * @alias module:model/CustodialTransferDestination
37
+ * @param destination_type {module:model/TransferDestinationType}
38
+ * @param wallet_id {String} The wallet ID.
39
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
39
40
  */
40
- function OrderAddressInfo(wallet_id, amount, created_timestamp, updated_timestamp) {
41
- _classCallCheck(this, OrderAddressInfo);
42
- OrderAddressInfo.initialize(this, wallet_id, amount, created_timestamp, updated_timestamp);
41
+ function CustodialTransferDestination(destination_type, wallet_id, amount) {
42
+ _classCallCheck(this, CustodialTransferDestination);
43
+ CustodialTransferDestination.initialize(this, destination_type, wallet_id, amount);
43
44
  }
44
45
 
45
46
  /**
@@ -47,53 +48,49 @@ var OrderAddressInfo = /*#__PURE__*/function () {
47
48
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
49
  * Only for internal use.
49
50
  */
50
- return _createClass(OrderAddressInfo, null, [{
51
+ return _createClass(CustodialTransferDestination, null, [{
51
52
  key: "initialize",
52
- value: function initialize(obj, wallet_id, amount, created_timestamp, updated_timestamp) {
53
+ value: function initialize(obj, destination_type, wallet_id, amount) {
54
+ obj['destination_type'] = destination_type;
53
55
  obj['wallet_id'] = wallet_id;
54
56
  obj['amount'] = amount;
55
- obj['created_timestamp'] = created_timestamp;
56
- obj['updated_timestamp'] = updated_timestamp;
57
57
  }
58
58
 
59
59
  /**
60
- * Constructs a <code>OrderAddressInfo</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Constructs a <code>CustodialTransferDestination</code> from a plain JavaScript object, optionally creating a new instance.
61
61
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
62
  * @param {Object} data The plain JavaScript object bearing properties of interest.
63
- * @param {module:model/OrderAddressInfo} obj Optional instance to populate.
64
- * @return {module:model/OrderAddressInfo} The populated <code>OrderAddressInfo</code> instance.
63
+ * @param {module:model/CustodialTransferDestination} obj Optional instance to populate.
64
+ * @return {module:model/CustodialTransferDestination} The populated <code>CustodialTransferDestination</code> instance.
65
65
  */
66
66
  }, {
67
67
  key: "constructFromObject",
68
68
  value: function constructFromObject(data, obj) {
69
69
  if (data) {
70
- obj = obj || new OrderAddressInfo();
70
+ obj = obj || new CustodialTransferDestination();
71
+ if (data.hasOwnProperty('destination_type')) {
72
+ obj['destination_type'] = _TransferDestinationType["default"].constructFromObject(data['destination_type']);
73
+ }
71
74
  if (data.hasOwnProperty('wallet_id')) {
72
75
  obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
73
76
  }
74
77
  if (data.hasOwnProperty('amount')) {
75
78
  obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
76
79
  }
77
- if (data.hasOwnProperty('created_timestamp')) {
78
- obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
79
- }
80
- if (data.hasOwnProperty('updated_timestamp')) {
81
- obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
82
- }
83
80
  }
84
81
  return obj;
85
82
  }
86
83
 
87
84
  /**
88
- * Validates the JSON data with respect to <code>OrderAddressInfo</code>.
85
+ * Validates the JSON data with respect to <code>CustodialTransferDestination</code>.
89
86
  * @param {Object} data The plain JavaScript object bearing properties of interest.
90
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>OrderAddressInfo</code>.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CustodialTransferDestination</code>.
91
88
  */
92
89
  }, {
93
90
  key: "validateJSON",
94
91
  value: function validateJSON(data) {
95
92
  // check to make sure all required properties are present in the JSON string
96
- var _iterator = _createForOfIteratorHelper(OrderAddressInfo.RequiredProperties),
93
+ var _iterator = _createForOfIteratorHelper(CustodialTransferDestination.RequiredProperties),
97
94
  _step;
98
95
  try {
99
96
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -119,29 +116,22 @@ var OrderAddressInfo = /*#__PURE__*/function () {
119
116
  }
120
117
  }]);
121
118
  }();
122
- OrderAddressInfo.RequiredProperties = ["wallet_id", "amount", "created_timestamp", "updated_timestamp"];
123
-
124
- /**
125
- * The ID of the linked wallet.
126
- * @member {String} wallet_id
127
- */
128
- OrderAddressInfo.prototype['wallet_id'] = undefined;
119
+ CustodialTransferDestination.RequiredProperties = ["destination_type", "wallet_id", "amount"];
129
120
 
130
121
  /**
131
- * The amount of cryptocurrency received by the order's receiving address.
132
- * @member {String} amount
122
+ * @member {module:model/TransferDestinationType} destination_type
133
123
  */
134
- OrderAddressInfo.prototype['amount'] = undefined;
124
+ CustodialTransferDestination.prototype['destination_type'] = undefined;
135
125
 
136
126
  /**
137
- * The created time of the address, represented as a UNIX timestamp in seconds.
138
- * @member {Number} created_timestamp
127
+ * The wallet ID.
128
+ * @member {String} wallet_id
139
129
  */
140
- OrderAddressInfo.prototype['created_timestamp'] = undefined;
130
+ CustodialTransferDestination.prototype['wallet_id'] = undefined;
141
131
 
142
132
  /**
143
- * The updated time of the address, represented as a UNIX timestamp in seconds.
144
- * @member {Number} updated_timestamp
133
+ * The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
134
+ * @member {String} amount
145
135
  */
146
- OrderAddressInfo.prototype['updated_timestamp'] = undefined;
147
- var _default = exports["default"] = OrderAddressInfo;
136
+ CustodialTransferDestination.prototype['amount'] = undefined;
137
+ var _default = exports["default"] = CustodialTransferDestination;
@@ -177,7 +177,7 @@ CustodialWeb3TransferSource.prototype['source_type'] = undefined;
177
177
  CustodialWeb3TransferSource.prototype['wallet_id'] = undefined;
178
178
 
179
179
  /**
180
- * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
180
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. When `included_utxos` is specified, only these specified UTXOs will be used for the transaction. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
181
181
  * @member {String} address
182
182
  */
183
183
  CustodialWeb3TransferSource.prototype['address'] = undefined;
@@ -91,6 +91,9 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
91
91
  if (data.hasOwnProperty('fee_type')) {
92
92
  obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
93
93
  }
94
+ if (data.hasOwnProperty('replaced_transaction_id')) {
95
+ obj['replaced_transaction_id'] = _ApiClient["default"].convertToType(data['replaced_transaction_id'], 'String');
96
+ }
94
97
  }
95
98
  return obj;
96
99
  }
@@ -140,6 +143,10 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
140
143
  _ContractCallDestination["default"].validateJSON(data['destination']);
141
144
  }
142
145
  }
146
+ // ensure the json data is a string
147
+ if (data['replaced_transaction_id'] && !(typeof data['replaced_transaction_id'] === 'string' || data['replaced_transaction_id'] instanceof String)) {
148
+ throw new Error("Expected the field `replaced_transaction_id` to be a primitive type in the JSON string but got " + data['replaced_transaction_id']);
149
+ }
143
150
  return true;
144
151
  }
145
152
  }]);
@@ -177,4 +184,10 @@ EstimateContractCallFeeParams.prototype['destination'] = undefined;
177
184
  * @member {module:model/FeeType} fee_type
178
185
  */
179
186
  EstimateContractCallFeeParams.prototype['fee_type'] = undefined;
187
+
188
+ /**
189
+ * The ID of the transaction that this transaction replaced.
190
+ * @member {String} replaced_transaction_id
191
+ */
192
+ EstimateContractCallFeeParams.prototype['replaced_transaction_id'] = undefined;
180
193
  var _default = exports["default"] = EstimateContractCallFeeParams;
@@ -207,6 +207,12 @@ EstimateFeeParams.prototype['destination'] = undefined;
207
207
  */
208
208
  EstimateFeeParams.prototype['fee_type'] = undefined;
209
209
 
210
+ /**
211
+ * The ID of the transaction that this transaction replaced.
212
+ * @member {String} replaced_transaction_id
213
+ */
214
+ EstimateFeeParams.prototype['replaced_transaction_id'] = undefined;
215
+
210
216
  /**
211
217
  * The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
212
218
  * @member {String} chain_id
@@ -89,6 +89,9 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
89
89
  if (data.hasOwnProperty('fee_type')) {
90
90
  obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
91
91
  }
92
+ if (data.hasOwnProperty('replaced_transaction_id')) {
93
+ obj['replaced_transaction_id'] = _ApiClient["default"].convertToType(data['replaced_transaction_id'], 'String');
94
+ }
92
95
  }
93
96
  return obj;
94
97
  }
@@ -138,6 +141,10 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
138
141
  _TransferDestination["default"].validateJSON(data['destination']);
139
142
  }
140
143
  }
144
+ // ensure the json data is a string
145
+ if (data['replaced_transaction_id'] && !(typeof data['replaced_transaction_id'] === 'string' || data['replaced_transaction_id'] instanceof String)) {
146
+ throw new Error("Expected the field `replaced_transaction_id` to be a primitive type in the JSON string but got " + data['replaced_transaction_id']);
147
+ }
141
148
  return true;
142
149
  }
143
150
  }]);
@@ -175,4 +182,10 @@ EstimateTransferFeeParams.prototype['destination'] = undefined;
175
182
  * @member {module:model/FeeType} fee_type
176
183
  */
177
184
  EstimateTransferFeeParams.prototype['fee_type'] = undefined;
185
+
186
+ /**
187
+ * The ID of the transaction that this transaction replaced.
188
+ * @member {String} replaced_transaction_id
189
+ */
190
+ EstimateTransferFeeParams.prototype['replaced_transaction_id'] = undefined;
178
191
  var _default = exports["default"] = EstimateTransferFeeParams;
@@ -0,0 +1,122 @@
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 ExchangePermissionToken201Response model module.
26
+ * @module model/ExchangePermissionToken201Response
27
+ */
28
+ var ExchangePermissionToken201Response = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>ExchangePermissionToken201Response</code>.
31
+ * @alias module:model/ExchangePermissionToken201Response
32
+ */
33
+ function ExchangePermissionToken201Response() {
34
+ _classCallCheck(this, ExchangePermissionToken201Response);
35
+ ExchangePermissionToken201Response.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(ExchangePermissionToken201Response, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>ExchangePermissionToken201Response</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/ExchangePermissionToken201Response} obj Optional instance to populate.
52
+ * @return {module:model/ExchangePermissionToken201Response} The populated <code>ExchangePermissionToken201Response</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new ExchangePermissionToken201Response();
59
+ if (data.hasOwnProperty('access_token')) {
60
+ obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
61
+ }
62
+ if (data.hasOwnProperty('token_type')) {
63
+ obj['token_type'] = _ApiClient["default"].convertToType(data['token_type'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('expires_in')) {
66
+ obj['expires_in'] = _ApiClient["default"].convertToType(data['expires_in'], 'Number');
67
+ }
68
+ if (data.hasOwnProperty('refresh_token')) {
69
+ obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
70
+ }
71
+ }
72
+ return obj;
73
+ }
74
+
75
+ /**
76
+ * Validates the JSON data with respect to <code>ExchangePermissionToken201Response</code>.
77
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
78
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ExchangePermissionToken201Response</code>.
79
+ */
80
+ }, {
81
+ key: "validateJSON",
82
+ value: function validateJSON(data) {
83
+ // ensure the json data is a string
84
+ if (data['access_token'] && !(typeof data['access_token'] === 'string' || data['access_token'] instanceof String)) {
85
+ throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data['access_token']);
86
+ }
87
+ // ensure the json data is a string
88
+ if (data['token_type'] && !(typeof data['token_type'] === 'string' || data['token_type'] instanceof String)) {
89
+ throw new Error("Expected the field `token_type` to be a primitive type in the JSON string but got " + data['token_type']);
90
+ }
91
+ // ensure the json data is a string
92
+ if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) {
93
+ throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']);
94
+ }
95
+ return true;
96
+ }
97
+ }]);
98
+ }();
99
+ /**
100
+ * The new Permission Access Token.
101
+ * @member {String} access_token
102
+ */
103
+ ExchangePermissionToken201Response.prototype['access_token'] = undefined;
104
+
105
+ /**
106
+ * The type of the tokens, which is Bearer.
107
+ * @member {String} token_type
108
+ */
109
+ ExchangePermissionToken201Response.prototype['token_type'] = undefined;
110
+
111
+ /**
112
+ * The time in seconds in which the new Permission Access Token expires.
113
+ * @member {Number} expires_in
114
+ */
115
+ ExchangePermissionToken201Response.prototype['expires_in'] = undefined;
116
+
117
+ /**
118
+ * The Refresh Token, used to obtain another Org Access Token when the new Permission Access Token expires. The expiration time for Refresh Tokens is currently set to 7 days and is subject to change.
119
+ * @member {String} refresh_token
120
+ */
121
+ ExchangePermissionToken201Response.prototype['refresh_token'] = undefined;
122
+ var _default = exports["default"] = ExchangePermissionToken201Response;
@@ -0,0 +1,110 @@
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 ExchangePermissionTokenRequest model module.
29
+ * @module model/ExchangePermissionTokenRequest
30
+ */
31
+ var ExchangePermissionTokenRequest = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>ExchangePermissionTokenRequest</code>.
34
+ * @alias module:model/ExchangePermissionTokenRequest
35
+ * @param permission_type {String} The OAuth permission type. Set the value as `payment_orders_payin`.
36
+ */
37
+ function ExchangePermissionTokenRequest(permission_type) {
38
+ _classCallCheck(this, ExchangePermissionTokenRequest);
39
+ ExchangePermissionTokenRequest.initialize(this, permission_type);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(ExchangePermissionTokenRequest, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj, permission_type) {
50
+ obj['permission_type'] = permission_type;
51
+ }
52
+
53
+ /**
54
+ * Constructs a <code>ExchangePermissionTokenRequest</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/ExchangePermissionTokenRequest} obj Optional instance to populate.
58
+ * @return {module:model/ExchangePermissionTokenRequest} The populated <code>ExchangePermissionTokenRequest</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new ExchangePermissionTokenRequest();
65
+ if (data.hasOwnProperty('permission_type')) {
66
+ obj['permission_type'] = _ApiClient["default"].convertToType(data['permission_type'], 'String');
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>ExchangePermissionTokenRequest</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ExchangePermissionTokenRequest</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ // check to make sure all required properties are present in the JSON string
81
+ var _iterator = _createForOfIteratorHelper(ExchangePermissionTokenRequest.RequiredProperties),
82
+ _step;
83
+ try {
84
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
85
+ var property = _step.value;
86
+ if (!data.hasOwnProperty(property)) {
87
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
88
+ }
89
+ }
90
+ // ensure the json data is a string
91
+ } catch (err) {
92
+ _iterator.e(err);
93
+ } finally {
94
+ _iterator.f();
95
+ }
96
+ if (data['permission_type'] && !(typeof data['permission_type'] === 'string' || data['permission_type'] instanceof String)) {
97
+ throw new Error("Expected the field `permission_type` to be a primitive type in the JSON string but got " + data['permission_type']);
98
+ }
99
+ return true;
100
+ }
101
+ }]);
102
+ }();
103
+ ExchangePermissionTokenRequest.RequiredProperties = ["permission_type"];
104
+
105
+ /**
106
+ * The OAuth permission type. Set the value as `payment_orders_payin`.
107
+ * @member {String} permission_type
108
+ */
109
+ ExchangePermissionTokenRequest.prototype['permission_type'] = undefined;
110
+ var _default = exports["default"] = ExchangePermissionTokenRequest;