@cobo/cobo-waas2 1.24.0 → 1.26.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 (188) hide show
  1. package/README.md +45 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/ComplianceApi.js +132 -2
  5. package/dist/api/DevelopersWebhooksApi.js +2 -2
  6. package/dist/api/FeeStationApi.js +6 -6
  7. package/dist/api/PaymentApi.js +109 -24
  8. package/dist/api/TokenizationApi.js +122 -4
  9. package/dist/api/TransactionsApi.js +4 -4
  10. package/dist/index.js +217 -14
  11. package/dist/model/AddressesEventData.js +8 -3
  12. package/dist/model/AutoFuelType.js +5 -0
  13. package/dist/model/BalanceUpdateInfoEventData.js +8 -3
  14. package/dist/model/BridgingFee.js +4 -4
  15. package/dist/model/ChainsEventData.js +8 -3
  16. package/dist/model/CommissionFee.js +2 -2
  17. package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
  18. package/dist/model/ComplianceKytScreeningsUpdateEventData.js +305 -0
  19. package/dist/model/CreateCryptoAddressRequest.js +1 -1
  20. package/dist/model/CreateMerchantRequest.js +2 -2
  21. package/dist/model/CreateOrderLinkRequest.js +129 -0
  22. package/dist/model/CreatePaymentOrderRequest.js +21 -8
  23. package/dist/model/CreateRefundLinkRequest.js +129 -0
  24. package/dist/model/CreateRefundRequest.js +2 -2
  25. package/dist/model/CreateSettlement.js +2 -28
  26. package/dist/model/CreateSettlementRequestRequest.js +3 -3
  27. package/dist/model/CustodialTransferDestination.js +1 -1
  28. package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
  29. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
  30. package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
  31. package/dist/model/FundsStatusType.js +111 -0
  32. package/dist/model/KytScreeningsDecisionsType.js +71 -0
  33. package/dist/model/KytScreeningsEventData.js +155 -0
  34. package/dist/model/KytScreeningsReviewType.js +61 -0
  35. package/dist/model/KytScreeningsTransaction.js +144 -0
  36. package/dist/model/KytScreeningsTransactionType.js +61 -0
  37. package/dist/model/Link.js +125 -0
  38. package/dist/model/LinkDisplayInfo.js +100 -0
  39. package/dist/model/MPCVaultEventData.js +8 -3
  40. package/dist/model/Merchant.js +3 -3
  41. package/dist/model/MerchantBalance.js +1 -1
  42. package/dist/model/Order.js +13 -0
  43. package/dist/model/OrderLinkBusinessInfo.js +261 -0
  44. package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +125 -0
  45. package/dist/model/OtcFee.js +3 -3
  46. package/dist/model/PaymentAddressUpdateEventData.js +8 -3
  47. package/dist/model/PaymentEstimateFee.js +4 -4
  48. package/dist/model/PaymentEstimateFee201Response.js +1 -0
  49. package/dist/model/PaymentEstimateFeeRequest.js +2 -1
  50. package/dist/model/PaymentEstimatedFee.js +4 -4
  51. package/dist/model/PaymentOrderEventData.js +26 -3
  52. package/dist/model/PaymentRefundEventData.js +8 -3
  53. package/dist/model/PaymentSettlementEvent.js +12 -7
  54. package/dist/model/PaymentTransactionEventData.js +8 -3
  55. package/dist/model/PspBalance.js +1 -1
  56. package/dist/model/RefundLinkBusinessInfo.js +162 -0
  57. package/dist/model/RefundStatus.js +10 -0
  58. package/dist/model/ReviewStatusType.js +91 -0
  59. package/dist/model/Settlement.js +2 -2
  60. package/dist/model/SubmitKytResponse.js +122 -0
  61. package/dist/model/SubmitKytScreeningsDecisionsBody.js +122 -0
  62. package/dist/model/SubmitKytScreeningsReviewBody.js +122 -0
  63. package/dist/model/SupportedToken.js +1 -1
  64. package/dist/model/SuspendedTokenEventData.js +8 -3
  65. package/dist/model/SwapQuote.js +18 -18
  66. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  67. package/dist/model/TokenListingEventData.js +8 -3
  68. package/dist/model/TokenizationERC20TokenParams.js +5 -5
  69. package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
  70. package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
  71. package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
  72. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
  73. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
  74. package/dist/model/TokenizationListPermissionsResponse.js +146 -0
  75. package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
  76. package/dist/model/TokenizationOperationType.js +5 -0
  77. package/dist/model/TokenizationPermissionAction.js +66 -0
  78. package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
  79. package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
  80. package/dist/model/TokenizationTokenDetailInfo.js +51 -5
  81. package/dist/model/TokenizationTokenInfo.js +26 -4
  82. package/dist/model/TokenizationTokenPermissionType.js +5 -0
  83. package/dist/model/TokenizationTokenStandard.js +10 -0
  84. package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
  85. package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
  86. package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
  87. package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
  88. package/dist/model/TokensEventData.js +8 -3
  89. package/dist/model/TransactionCoboCategory.js +35 -0
  90. package/dist/model/TransactionWebhookEventData.js +8 -3
  91. package/dist/model/UpdateMerchantByIdRequest.js +1 -1
  92. package/dist/model/WalletInfoEventData.js +8 -3
  93. package/dist/model/WebhookEventData.js +64 -12
  94. package/dist/model/WebhookEventDataType.js +7 -2
  95. package/dist/model/WebhookEventType.js +10 -0
  96. package/docs/AddressesEventData.md +3 -1
  97. package/docs/AutoFuelType.md +2 -0
  98. package/docs/AutoSweepApi.md +2 -2
  99. package/docs/BalanceUpdateInfoEventData.md +3 -1
  100. package/docs/BridgingFee.md +3 -3
  101. package/docs/ChainsEventData.md +3 -1
  102. package/docs/CommissionFee.md +1 -1
  103. package/docs/ComplianceApi.md +158 -1
  104. package/docs/ComplianceDispositionUpdateEventData.md +3 -1
  105. package/docs/ComplianceKytScreeningsUpdateEventData.md +57 -0
  106. package/docs/CreateCryptoAddressRequest.md +1 -1
  107. package/docs/CreateMerchantRequest.md +2 -2
  108. package/docs/CreateOrderLinkRequest.md +10 -0
  109. package/docs/CreatePaymentOrderRequest.md +6 -5
  110. package/docs/CreateRefundLinkRequest.md +10 -0
  111. package/docs/CreateRefundRequest.md +2 -2
  112. package/docs/CreateSettlement.md +1 -3
  113. package/docs/CreateSettlementRequestRequest.md +3 -3
  114. package/docs/DevelopersWebhooksApi.md +1 -1
  115. package/docs/FeeStationApi.md +4 -4
  116. package/docs/FeeStationCheckFeeStationUsage.md +4 -2
  117. package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
  118. package/docs/FeeStationSponsorTransactionDescription.md +10 -0
  119. package/docs/FundsStatusType.md +32 -0
  120. package/docs/KytScreeningsDecisionsType.md +16 -0
  121. package/docs/KytScreeningsEventData.md +13 -0
  122. package/docs/KytScreeningsReviewType.md +12 -0
  123. package/docs/KytScreeningsTransaction.md +12 -0
  124. package/docs/KytScreeningsTransactionType.md +12 -0
  125. package/docs/Link.md +10 -0
  126. package/docs/LinkDisplayInfo.md +10 -0
  127. package/docs/MPCVaultEventData.md +3 -1
  128. package/docs/Merchant.md +2 -2
  129. package/docs/MerchantBalance.md +1 -1
  130. package/docs/Order.md +1 -0
  131. package/docs/OrderLinkBusinessInfo.md +19 -0
  132. package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +10 -0
  133. package/docs/OtcFee.md +2 -2
  134. package/docs/PaymentAddressUpdateEventData.md +3 -1
  135. package/docs/PaymentApi.md +118 -12
  136. package/docs/PaymentEstimateFee.md +2 -2
  137. package/docs/PaymentEstimateFee201Response.md +1 -1
  138. package/docs/PaymentEstimateFeeRequest.md +1 -1
  139. package/docs/PaymentEstimatedFee.md +2 -2
  140. package/docs/PaymentOrderEventData.md +4 -1
  141. package/docs/PaymentRefundEventData.md +3 -1
  142. package/docs/PaymentSettlementEvent.md +5 -3
  143. package/docs/PaymentTransactionEventData.md +3 -1
  144. package/docs/PspBalance.md +1 -1
  145. package/docs/RefundLinkBusinessInfo.md +13 -0
  146. package/docs/RefundStatus.md +4 -0
  147. package/docs/ReviewStatusType.md +24 -0
  148. package/docs/Settlement.md +2 -2
  149. package/docs/SubmitKytResponse.md +10 -0
  150. package/docs/SubmitKytScreeningsDecisionsBody.md +10 -0
  151. package/docs/SubmitKytScreeningsReviewBody.md +10 -0
  152. package/docs/SupportedToken.md +1 -1
  153. package/docs/SuspendedTokenEventData.md +3 -1
  154. package/docs/SwapQuote.md +10 -10
  155. package/docs/TSSRequestWebhookEventData.md +3 -1
  156. package/docs/TokenListingEventData.md +3 -1
  157. package/docs/TokenizationApi.md +120 -2
  158. package/docs/TokenizationERC20TokenParams.md +1 -1
  159. package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
  160. package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
  161. package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
  162. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
  163. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
  164. package/docs/TokenizationListPermissionsResponse.md +10 -0
  165. package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
  166. package/docs/TokenizationOperationType.md +2 -0
  167. package/docs/TokenizationPermissionAction.md +14 -0
  168. package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
  169. package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
  170. package/docs/TokenizationTokenDetailInfo.md +3 -0
  171. package/docs/TokenizationTokenInfo.md +2 -0
  172. package/docs/TokenizationTokenPermissionType.md +2 -0
  173. package/docs/TokenizationTokenStandard.md +4 -0
  174. package/docs/TokenizationUpdateAddressPermissions.md +11 -0
  175. package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
  176. package/docs/TokenizationUpdatePermissionsParams.md +10 -0
  177. package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
  178. package/docs/TokensEventData.md +3 -1
  179. package/docs/TransactionCoboCategory.md +14 -0
  180. package/docs/TransactionWebhookEventData.md +3 -1
  181. package/docs/TransactionsApi.md +2 -2
  182. package/docs/UpdateMerchantByIdRequest.md +1 -1
  183. package/docs/WalletInfoEventData.md +3 -1
  184. package/docs/WebhookEventData.md +10 -4
  185. package/docs/WebhookEventDataType.md +3 -1
  186. package/docs/WebhookEventType.md +4 -0
  187. package/package.json +1 -1
  188. package/docs/TokenizationTokenPermissionsResponse.md +0 -10
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _RefundType = _interopRequireDefault(require("./RefundType"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The RefundLinkBusinessInfo model module.
30
+ * @module model/RefundLinkBusinessInfo
31
+ */
32
+ var RefundLinkBusinessInfo = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>RefundLinkBusinessInfo</code>.
35
+ * @alias module:model/RefundLinkBusinessInfo
36
+ * @param transaction_id {String} The transaction ID.
37
+ * @param amount {String} The amount to refund in cryptocurrency.
38
+ * @param refund_source {module:model/RefundType}
39
+ */
40
+ function RefundLinkBusinessInfo(transaction_id, amount, refund_source) {
41
+ _classCallCheck(this, RefundLinkBusinessInfo);
42
+ RefundLinkBusinessInfo.initialize(this, transaction_id, amount, refund_source);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(RefundLinkBusinessInfo, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, transaction_id, amount, refund_source) {
53
+ obj['transaction_id'] = transaction_id;
54
+ obj['amount'] = amount;
55
+ obj['refund_source'] = refund_source;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>RefundLinkBusinessInfo</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/RefundLinkBusinessInfo} obj Optional instance to populate.
63
+ * @return {module:model/RefundLinkBusinessInfo} The populated <code>RefundLinkBusinessInfo</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new RefundLinkBusinessInfo();
70
+ if (data.hasOwnProperty('transaction_id')) {
71
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('amount')) {
74
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('refund_source')) {
77
+ obj['refund_source'] = _RefundType["default"].constructFromObject(data['refund_source']);
78
+ }
79
+ if (data.hasOwnProperty('merchant_id')) {
80
+ obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('fee_amount')) {
83
+ obj['fee_amount'] = _ApiClient["default"].convertToType(data['fee_amount'], 'String');
84
+ }
85
+ }
86
+ return obj;
87
+ }
88
+
89
+ /**
90
+ * Validates the JSON data with respect to <code>RefundLinkBusinessInfo</code>.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RefundLinkBusinessInfo</code>.
93
+ */
94
+ }, {
95
+ key: "validateJSON",
96
+ value: function validateJSON(data) {
97
+ // check to make sure all required properties are present in the JSON string
98
+ var _iterator = _createForOfIteratorHelper(RefundLinkBusinessInfo.RequiredProperties),
99
+ _step;
100
+ try {
101
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
102
+ var property = _step.value;
103
+ if (!data.hasOwnProperty(property)) {
104
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
105
+ }
106
+ }
107
+ // ensure the json data is a string
108
+ } catch (err) {
109
+ _iterator.e(err);
110
+ } finally {
111
+ _iterator.f();
112
+ }
113
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
114
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
115
+ }
116
+ // ensure the json data is a string
117
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
118
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['merchant_id'] && !(typeof data['merchant_id'] === 'string' || data['merchant_id'] instanceof String)) {
122
+ throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['fee_amount'] && !(typeof data['fee_amount'] === 'string' || data['fee_amount'] instanceof String)) {
126
+ throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
127
+ }
128
+ return true;
129
+ }
130
+ }]);
131
+ }();
132
+ RefundLinkBusinessInfo.RequiredProperties = ["transaction_id", "amount", "refund_source"];
133
+
134
+ /**
135
+ * The transaction ID.
136
+ * @member {String} transaction_id
137
+ */
138
+ RefundLinkBusinessInfo.prototype['transaction_id'] = undefined;
139
+
140
+ /**
141
+ * The amount to refund in cryptocurrency.
142
+ * @member {String} amount
143
+ */
144
+ RefundLinkBusinessInfo.prototype['amount'] = undefined;
145
+
146
+ /**
147
+ * @member {module:model/RefundType} refund_source
148
+ */
149
+ RefundLinkBusinessInfo.prototype['refund_source'] = undefined;
150
+
151
+ /**
152
+ * The merchant ID, required if the refund amount source is `Merchant`.
153
+ * @member {String} merchant_id
154
+ */
155
+ RefundLinkBusinessInfo.prototype['merchant_id'] = undefined;
156
+
157
+ /**
158
+ * The amount of the transaction fee that the merchant will bear for the refund.
159
+ * @member {String} fee_amount
160
+ */
161
+ RefundLinkBusinessInfo.prototype['fee_amount'] = undefined;
162
+ var _default = exports["default"] = RefundLinkBusinessInfo;
@@ -30,6 +30,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  var RefundStatus = exports["default"] = /*#__PURE__*/function () {
31
31
  function RefundStatus() {
32
32
  _classCallCheck(this, RefundStatus);
33
+ /**
34
+ * value: "AddressPending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "AddressPending", "AddressPending");
38
+ /**
39
+ * value: "AddressSubmitted"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "AddressSubmitted", "AddressSubmitted");
33
43
  /**
34
44
  * value: "Pending"
35
45
  * @const
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class ReviewStatusType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var ReviewStatusType = exports["default"] = /*#__PURE__*/function () {
31
+ function ReviewStatusType() {
32
+ _classCallCheck(this, ReviewStatusType);
33
+ /**
34
+ * value: "PendingScreening"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "PendingScreening", "PendingScreening");
38
+ /**
39
+ * value: "Screened"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Screened", "Screened");
43
+ /**
44
+ * value: "PendingDecision"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "PendingDecision", "PendingDecision");
48
+ /**
49
+ * value: "PendingReview"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "PendingReview", "PendingReview");
53
+ /**
54
+ * value: "Approved"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "Approved", "Approved");
58
+ /**
59
+ * value: "Rejected"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "Rejected", "Rejected");
63
+ /**
64
+ * value: "Unsupported"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "Unsupported", "Unsupported");
68
+ /**
69
+ * value: "Bypassed"
70
+ * @const
71
+ */
72
+ _defineProperty(this, "Bypassed", "Bypassed");
73
+ /**
74
+ * value: "unknown_default_open_api"
75
+ * @const
76
+ */
77
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
78
+ }
79
+ return _createClass(ReviewStatusType, null, [{
80
+ key: "constructFromObject",
81
+ value:
82
+ /**
83
+ * Returns a <code>ReviewStatusType</code> enum value from a Javascript object name.
84
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
85
+ * @return {module:model/ReviewStatusType} The enum <code>ReviewStatusType</code> value.
86
+ */
87
+ function constructFromObject(object) {
88
+ return object;
89
+ }
90
+ }]);
91
+ }();
@@ -250,13 +250,13 @@ Settlement.prototype['payout_channel'] = undefined;
250
250
  Settlement.prototype['settlement_type'] = undefined;
251
251
 
252
252
  /**
253
- * The fiat currency for the settlement request.
253
+ * The fiat currency for the off-ramp.
254
254
  * @member {String} currency
255
255
  */
256
256
  Settlement.prototype['currency'] = undefined;
257
257
 
258
258
  /**
259
- * The received fiat amount of this settlement request.
259
+ * The estimated amount of the fiat currency to receive after off-ramping. This amount is subject to change due to bank transfer fees.
260
260
  * @member {String} received_amount_fiat
261
261
  */
262
262
  Settlement.prototype['received_amount_fiat'] = undefined;
@@ -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 _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 SubmitKytResponse model module.
29
+ * @module model/SubmitKytResponse
30
+ */
31
+ var SubmitKytResponse = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>SubmitKytResponse</code>.
34
+ * The response for a request to submit a KYT review result.
35
+ * @alias module:model/SubmitKytResponse
36
+ * @param transaction_id {String} The UUID of the transaction being processed for KYT screening.
37
+ * @param submitted {Boolean} Indicates whether the KYT review result was successfully submitted.
38
+ */
39
+ function SubmitKytResponse(transaction_id, submitted) {
40
+ _classCallCheck(this, SubmitKytResponse);
41
+ SubmitKytResponse.initialize(this, transaction_id, submitted);
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(SubmitKytResponse, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, transaction_id, submitted) {
52
+ obj['transaction_id'] = transaction_id;
53
+ obj['submitted'] = submitted;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>SubmitKytResponse</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/SubmitKytResponse} obj Optional instance to populate.
61
+ * @return {module:model/SubmitKytResponse} The populated <code>SubmitKytResponse</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new SubmitKytResponse();
68
+ if (data.hasOwnProperty('transaction_id')) {
69
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('submitted')) {
72
+ obj['submitted'] = _ApiClient["default"].convertToType(data['submitted'], 'Boolean');
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>SubmitKytResponse</code>.
80
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytResponse</code>.
82
+ */
83
+ }, {
84
+ key: "validateJSON",
85
+ value: function validateJSON(data) {
86
+ // check to make sure all required properties are present in the JSON string
87
+ var _iterator = _createForOfIteratorHelper(SubmitKytResponse.RequiredProperties),
88
+ _step;
89
+ try {
90
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
91
+ var property = _step.value;
92
+ if (!data.hasOwnProperty(property)) {
93
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
+ }
95
+ }
96
+ // ensure the json data is a string
97
+ } catch (err) {
98
+ _iterator.e(err);
99
+ } finally {
100
+ _iterator.f();
101
+ }
102
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
103
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
104
+ }
105
+ return true;
106
+ }
107
+ }]);
108
+ }();
109
+ SubmitKytResponse.RequiredProperties = ["transaction_id", "submitted"];
110
+
111
+ /**
112
+ * The UUID of the transaction being processed for KYT screening.
113
+ * @member {String} transaction_id
114
+ */
115
+ SubmitKytResponse.prototype['transaction_id'] = undefined;
116
+
117
+ /**
118
+ * Indicates whether the KYT review result was successfully submitted.
119
+ * @member {Boolean} submitted
120
+ */
121
+ SubmitKytResponse.prototype['submitted'] = undefined;
122
+ var _default = exports["default"] = SubmitKytResponse;
@@ -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
+ var _KytScreeningsDecisionsType = _interopRequireDefault(require("./KytScreeningsDecisionsType"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The SubmitKytScreeningsDecisionsBody model module.
30
+ * @module model/SubmitKytScreeningsDecisionsBody
31
+ */
32
+ var SubmitKytScreeningsDecisionsBody = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>SubmitKytScreeningsDecisionsBody</code>.
35
+ * The KYT screening decision submission containing the transaction ID and the screening decision based on an external compliance review.
36
+ * @alias module:model/SubmitKytScreeningsDecisionsBody
37
+ * @param transaction_id {String} The UUID of the transaction for KYT result submission. This identifies the specific transaction that the external KYT result applies to.
38
+ * @param result {module:model/KytScreeningsDecisionsType}
39
+ */
40
+ function SubmitKytScreeningsDecisionsBody(transaction_id, result) {
41
+ _classCallCheck(this, SubmitKytScreeningsDecisionsBody);
42
+ SubmitKytScreeningsDecisionsBody.initialize(this, transaction_id, result);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(SubmitKytScreeningsDecisionsBody, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, transaction_id, result) {
53
+ obj['transaction_id'] = transaction_id;
54
+ obj['result'] = result;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>SubmitKytScreeningsDecisionsBody</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/SubmitKytScreeningsDecisionsBody} obj Optional instance to populate.
62
+ * @return {module:model/SubmitKytScreeningsDecisionsBody} The populated <code>SubmitKytScreeningsDecisionsBody</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new SubmitKytScreeningsDecisionsBody();
69
+ if (data.hasOwnProperty('transaction_id')) {
70
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('result')) {
73
+ obj['result'] = _KytScreeningsDecisionsType["default"].constructFromObject(data['result']);
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>SubmitKytScreeningsDecisionsBody</code>.
81
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
82
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytScreeningsDecisionsBody</code>.
83
+ */
84
+ }, {
85
+ key: "validateJSON",
86
+ value: function validateJSON(data) {
87
+ // check to make sure all required properties are present in the JSON string
88
+ var _iterator = _createForOfIteratorHelper(SubmitKytScreeningsDecisionsBody.RequiredProperties),
89
+ _step;
90
+ try {
91
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
92
+ var property = _step.value;
93
+ if (!data.hasOwnProperty(property)) {
94
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
95
+ }
96
+ }
97
+ // ensure the json data is a string
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
103
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
104
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
105
+ }
106
+ return true;
107
+ }
108
+ }]);
109
+ }();
110
+ SubmitKytScreeningsDecisionsBody.RequiredProperties = ["transaction_id", "result"];
111
+
112
+ /**
113
+ * The UUID of the transaction for KYT result submission. This identifies the specific transaction that the external KYT result applies to.
114
+ * @member {String} transaction_id
115
+ */
116
+ SubmitKytScreeningsDecisionsBody.prototype['transaction_id'] = undefined;
117
+
118
+ /**
119
+ * @member {module:model/KytScreeningsDecisionsType} result
120
+ */
121
+ SubmitKytScreeningsDecisionsBody.prototype['result'] = undefined;
122
+ var _default = exports["default"] = SubmitKytScreeningsDecisionsBody;
@@ -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
+ var _KytScreeningsReviewType = _interopRequireDefault(require("./KytScreeningsReviewType"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The SubmitKytScreeningsReviewBody model module.
30
+ * @module model/SubmitKytScreeningsReviewBody
31
+ */
32
+ var SubmitKytScreeningsReviewBody = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>SubmitKytScreeningsReviewBody</code>.
35
+ * Submission of a manual KYT review result.
36
+ * @alias module:model/SubmitKytScreeningsReviewBody
37
+ * @param transaction_id {String} The UUID of the transaction that requires a manual KYT review.
38
+ * @param result {module:model/KytScreeningsReviewType}
39
+ */
40
+ function SubmitKytScreeningsReviewBody(transaction_id, result) {
41
+ _classCallCheck(this, SubmitKytScreeningsReviewBody);
42
+ SubmitKytScreeningsReviewBody.initialize(this, transaction_id, result);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(SubmitKytScreeningsReviewBody, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, transaction_id, result) {
53
+ obj['transaction_id'] = transaction_id;
54
+ obj['result'] = result;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>SubmitKytScreeningsReviewBody</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/SubmitKytScreeningsReviewBody} obj Optional instance to populate.
62
+ * @return {module:model/SubmitKytScreeningsReviewBody} The populated <code>SubmitKytScreeningsReviewBody</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new SubmitKytScreeningsReviewBody();
69
+ if (data.hasOwnProperty('transaction_id')) {
70
+ obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('result')) {
73
+ obj['result'] = _KytScreeningsReviewType["default"].constructFromObject(data['result']);
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>SubmitKytScreeningsReviewBody</code>.
81
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
82
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubmitKytScreeningsReviewBody</code>.
83
+ */
84
+ }, {
85
+ key: "validateJSON",
86
+ value: function validateJSON(data) {
87
+ // check to make sure all required properties are present in the JSON string
88
+ var _iterator = _createForOfIteratorHelper(SubmitKytScreeningsReviewBody.RequiredProperties),
89
+ _step;
90
+ try {
91
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
92
+ var property = _step.value;
93
+ if (!data.hasOwnProperty(property)) {
94
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
95
+ }
96
+ }
97
+ // ensure the json data is a string
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
103
+ if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
104
+ throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
105
+ }
106
+ return true;
107
+ }
108
+ }]);
109
+ }();
110
+ SubmitKytScreeningsReviewBody.RequiredProperties = ["transaction_id", "result"];
111
+
112
+ /**
113
+ * The UUID of the transaction that requires a manual KYT review.
114
+ * @member {String} transaction_id
115
+ */
116
+ SubmitKytScreeningsReviewBody.prototype['transaction_id'] = undefined;
117
+
118
+ /**
119
+ * @member {module:model/KytScreeningsReviewType} result
120
+ */
121
+ SubmitKytScreeningsReviewBody.prototype['result'] = undefined;
122
+ var _default = exports["default"] = SubmitKytScreeningsReviewBody;