@flexprice/sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +380 -0
- package/dist/ApiClient.js +703 -0
- package/dist/api/AuthApi.js +116 -0
- package/dist/api/CustomersApi.js +373 -0
- package/dist/api/EntitlementsApi.js +291 -0
- package/dist/api/EnvironmentsApi.js +204 -0
- package/dist/api/EventsApi.js +237 -0
- package/dist/api/FeaturesApi.js +252 -0
- package/dist/api/IntegrationsApi.js +189 -0
- package/dist/api/InvoicesApi.js +444 -0
- package/dist/api/MetersApi.js +287 -0
- package/dist/api/PaymentsApi.js +296 -0
- package/dist/api/PlansApi.js +248 -0
- package/dist/api/PricesApi.js +250 -0
- package/dist/api/SecretsApi.js +155 -0
- package/dist/api/SubscriptionsApi.js +383 -0
- package/dist/api/TasksApi.js +254 -0
- package/dist/api/TenantsApi.js +182 -0
- package/dist/api/UsersApi.js +75 -0
- package/dist/api/WalletsApi.js +384 -0
- package/dist/index.js +1154 -0
- package/dist/model/DtoAddress.js +149 -0
- package/dist/model/DtoAggregatedEntitlement.js +123 -0
- package/dist/model/DtoAggregatedFeature.js +138 -0
- package/dist/model/DtoAuthResponse.js +113 -0
- package/dist/model/DtoBillingPeriodInfo.js +114 -0
- package/dist/model/DtoBulkIngestEventRequest.js +130 -0
- package/dist/model/DtoCreateAPIKeyRequest.js +147 -0
- package/dist/model/DtoCreateAPIKeyResponse.js +103 -0
- package/dist/model/DtoCreateCustomerRequest.js +218 -0
- package/dist/model/DtoCreateEntitlementRequest.js +180 -0
- package/dist/model/DtoCreateEnvironmentRequest.js +126 -0
- package/dist/model/DtoCreateFeatureRequest.js +193 -0
- package/dist/model/DtoCreateIntegrationRequest.js +135 -0
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +238 -0
- package/dist/model/DtoCreateInvoiceRequest.js +316 -0
- package/dist/model/DtoCreateMeterRequest.js +183 -0
- package/dist/model/DtoCreatePaymentRequest.js +202 -0
- package/dist/model/DtoCreatePlanEntitlementRequest.js +180 -0
- package/dist/model/DtoCreatePlanPriceRequest.js +318 -0
- package/dist/model/DtoCreatePlanRequest.js +196 -0
- package/dist/model/DtoCreatePriceRequest.js +318 -0
- package/dist/model/DtoCreatePriceTier.js +132 -0
- package/dist/model/DtoCreateSubscriptionRequest.js +244 -0
- package/dist/model/DtoCreateTaskRequest.js +167 -0
- package/dist/model/DtoCreateTenantRequest.js +126 -0
- package/dist/model/DtoCreateWalletRequest.js +216 -0
- package/dist/model/DtoCustomerEntitlementsResponse.js +122 -0
- package/dist/model/DtoCustomerInvoiceSummary.js +165 -0
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +134 -0
- package/dist/model/DtoCustomerResponse.js +300 -0
- package/dist/model/DtoCustomerUsageSummaryResponse.js +150 -0
- package/dist/model/DtoEntitlementResponse.js +276 -0
- package/dist/model/DtoEntitlementSource.js +161 -0
- package/dist/model/DtoEnvironmentResponse.js +137 -0
- package/dist/model/DtoEvent.js +159 -0
- package/dist/model/DtoFeatureResponse.js +275 -0
- package/dist/model/DtoFeatureUsageSummary.js +164 -0
- package/dist/model/DtoGetEventsResponse.js +142 -0
- package/dist/model/DtoGetPreviewInvoiceRequest.js +136 -0
- package/dist/model/DtoGetUsageByMeterRequest.js +179 -0
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +144 -0
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +166 -0
- package/dist/model/DtoGetUsageRequest.js +203 -0
- package/dist/model/DtoGetUsageResponse.js +139 -0
- package/dist/model/DtoIngestEventRequest.js +186 -0
- package/dist/model/DtoInvoiceLineItemResponse.js +343 -0
- package/dist/model/DtoInvoiceResponse.js +479 -0
- package/dist/model/DtoLinkedIntegrationsResponse.js +89 -0
- package/dist/model/DtoListCustomersResponse.js +124 -0
- package/dist/model/DtoListEntitlementsResponse.js +124 -0
- package/dist/model/DtoListEnvironmentsResponse.js +134 -0
- package/dist/model/DtoListFeaturesResponse.js +124 -0
- package/dist/model/DtoListInvoicesResponse.js +124 -0
- package/dist/model/DtoListPaymentsResponse.js +124 -0
- package/dist/model/DtoListPlansResponse.js +124 -0
- package/dist/model/DtoListPricesResponse.js +124 -0
- package/dist/model/DtoListSecretsResponse.js +124 -0
- package/dist/model/DtoListSubscriptionPausesResponse.js +118 -0
- package/dist/model/DtoListSubscriptionsResponse.js +124 -0
- package/dist/model/DtoListTasksResponse.js +124 -0
- package/dist/model/DtoListWalletTransactionsResponse.js +124 -0
- package/dist/model/DtoLoginRequest.js +138 -0
- package/dist/model/DtoMeterResponse.js +217 -0
- package/dist/model/DtoPauseSubscriptionRequest.js +171 -0
- package/dist/model/DtoPaymentAttemptResponse.js +191 -0
- package/dist/model/DtoPaymentResponse.js +331 -0
- package/dist/model/DtoPlanResponse.js +269 -0
- package/dist/model/DtoPriceResponse.js +412 -0
- package/dist/model/DtoResumeSubscriptionRequest.js +127 -0
- package/dist/model/DtoSecretResponse.js +200 -0
- package/dist/model/DtoSignUpRequest.js +148 -0
- package/dist/model/DtoSubscriptionPauseResponse.js +300 -0
- package/dist/model/DtoSubscriptionResponse.js +518 -0
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +165 -0
- package/dist/model/DtoTaskResponse.js +311 -0
- package/dist/model/DtoTenantBillingDetails.js +127 -0
- package/dist/model/DtoTenantBillingUsage.js +124 -0
- package/dist/model/DtoTenantResponse.js +151 -0
- package/dist/model/DtoTopUpWalletRequest.js +185 -0
- package/dist/model/DtoUpdateCustomerRequest.js +195 -0
- package/dist/model/DtoUpdateEntitlementRequest.js +122 -0
- package/dist/model/DtoUpdateEnvironmentRequest.js +101 -0
- package/dist/model/DtoUpdateFeatureRequest.js +135 -0
- package/dist/model/DtoUpdateMeterRequest.js +110 -0
- package/dist/model/DtoUpdatePaymentRequest.js +99 -0
- package/dist/model/DtoUpdatePaymentStatusRequest.js +117 -0
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +193 -0
- package/dist/model/DtoUpdatePlanPriceRequest.js +331 -0
- package/dist/model/DtoUpdatePlanRequest.js +176 -0
- package/dist/model/DtoUpdatePriceRequest.js +111 -0
- package/dist/model/DtoUpdateTaskStatusRequest.js +109 -0
- package/dist/model/DtoUpdateTenantRequest.js +91 -0
- package/dist/model/DtoUpdateWalletRequest.js +150 -0
- package/dist/model/DtoUsageResult.js +97 -0
- package/dist/model/DtoUserResponse.js +115 -0
- package/dist/model/DtoWalletBalanceResponse.js +353 -0
- package/dist/model/DtoWalletResponse.js +252 -0
- package/dist/model/DtoWalletTransactionResponse.js +238 -0
- package/dist/model/ErrorsErrorDetail.js +111 -0
- package/dist/model/ErrorsErrorResponse.js +99 -0
- package/dist/model/MeterAggregation.js +99 -0
- package/dist/model/MeterFilter.js +103 -0
- package/dist/model/PriceJSONBTransformQuantity.js +99 -0
- package/dist/model/PricePrice.js +398 -0
- package/dist/model/PricePriceTier.js +104 -0
- package/dist/model/PriceTransformQuantity.js +99 -0
- package/dist/model/SubscriptionSubscriptionLineItem.js +355 -0
- package/dist/model/SubscriptionSubscriptionPause.js +300 -0
- package/dist/model/TypesAggregationType.js +68 -0
- package/dist/model/TypesAutoTopupTrigger.js +58 -0
- package/dist/model/TypesBillingCadence.js +58 -0
- package/dist/model/TypesBillingModel.js +63 -0
- package/dist/model/TypesBillingPeriod.js +78 -0
- package/dist/model/TypesBillingTier.js +58 -0
- package/dist/model/TypesEntityType.js +63 -0
- package/dist/model/TypesFeatureType.js +63 -0
- package/dist/model/TypesFileType.js +58 -0
- package/dist/model/TypesInvoiceBillingReason.js +68 -0
- package/dist/model/TypesInvoiceCadence.js +58 -0
- package/dist/model/TypesInvoiceStatus.js +63 -0
- package/dist/model/TypesInvoiceType.js +63 -0
- package/dist/model/TypesPaginationResponse.js +101 -0
- package/dist/model/TypesPauseMode.js +63 -0
- package/dist/model/TypesPauseStatus.js +73 -0
- package/dist/model/TypesPaymentDestinationType.js +53 -0
- package/dist/model/TypesPaymentMethodType.js +68 -0
- package/dist/model/TypesPaymentStatus.js +78 -0
- package/dist/model/TypesPriceType.js +58 -0
- package/dist/model/TypesResetUsage.js +58 -0
- package/dist/model/TypesResumeMode.js +63 -0
- package/dist/model/TypesSecretProvider.js +63 -0
- package/dist/model/TypesSecretType.js +63 -0
- package/dist/model/TypesStatus.js +63 -0
- package/dist/model/TypesSubscriptionStatus.js +88 -0
- package/dist/model/TypesTaskStatus.js +68 -0
- package/dist/model/TypesTaskType.js +58 -0
- package/dist/model/TypesTransactionReason.js +88 -0
- package/dist/model/TypesTransactionStatus.js +63 -0
- package/dist/model/TypesTransactionType.js +58 -0
- package/dist/model/TypesWalletConfig.js +91 -0
- package/dist/model/TypesWalletConfigPriceType.js +63 -0
- package/dist/model/TypesWalletStatus.js +63 -0
- package/dist/model/TypesWalletTxReferenceType.js +68 -0
- package/dist/model/TypesWalletType.js +58 -0
- package/dist/model/TypesWindowSize.js +63 -0
- package/package.json +54 -0
|
@@ -0,0 +1,124 @@
|
|
|
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 _DtoCustomerResponse = _interopRequireDefault(require("./DtoCustomerResponse"));
|
|
9
|
+
var _TypesPaginationResponse = _interopRequireDefault(require("./TypesPaginationResponse"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* FlexPrice API
|
|
21
|
+
* FlexPrice API Service
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* The DtoListCustomersResponse model module.
|
|
33
|
+
* @module model/DtoListCustomersResponse
|
|
34
|
+
* @version 1.0
|
|
35
|
+
*/
|
|
36
|
+
var DtoListCustomersResponse = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>DtoListCustomersResponse</code>.
|
|
39
|
+
* @alias module:model/DtoListCustomersResponse
|
|
40
|
+
*/
|
|
41
|
+
function DtoListCustomersResponse() {
|
|
42
|
+
_classCallCheck(this, DtoListCustomersResponse);
|
|
43
|
+
DtoListCustomersResponse.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(DtoListCustomersResponse, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>DtoListCustomersResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/DtoListCustomersResponse} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/DtoListCustomersResponse} The populated <code>DtoListCustomersResponse</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new DtoListCustomersResponse();
|
|
67
|
+
if (data.hasOwnProperty('items')) {
|
|
68
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_DtoCustomerResponse["default"]]);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('pagination')) {
|
|
71
|
+
obj['pagination'] = _TypesPaginationResponse["default"].constructFromObject(data['pagination']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>DtoListCustomersResponse</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoListCustomersResponse</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
if (data['items']) {
|
|
86
|
+
// data not null
|
|
87
|
+
// ensure the json data is an array
|
|
88
|
+
if (!Array.isArray(data['items'])) {
|
|
89
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
90
|
+
}
|
|
91
|
+
// validate the optional field `items` (array)
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var item = _step.value;
|
|
97
|
+
_DtoCustomerResponse["default"].validateJSON(item);
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `pagination`
|
|
107
|
+
if (data['pagination']) {
|
|
108
|
+
// data not null
|
|
109
|
+
_TypesPaginationResponse["default"].validateJSON(data['pagination']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
/**
|
|
116
|
+
* @member {Array.<module:model/DtoCustomerResponse>} items
|
|
117
|
+
*/
|
|
118
|
+
DtoListCustomersResponse.prototype['items'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {module:model/TypesPaginationResponse} pagination
|
|
122
|
+
*/
|
|
123
|
+
DtoListCustomersResponse.prototype['pagination'] = undefined;
|
|
124
|
+
var _default = exports["default"] = DtoListCustomersResponse;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 _DtoEntitlementResponse = _interopRequireDefault(require("./DtoEntitlementResponse"));
|
|
9
|
+
var _TypesPaginationResponse = _interopRequireDefault(require("./TypesPaginationResponse"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* FlexPrice API
|
|
21
|
+
* FlexPrice API Service
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* The DtoListEntitlementsResponse model module.
|
|
33
|
+
* @module model/DtoListEntitlementsResponse
|
|
34
|
+
* @version 1.0
|
|
35
|
+
*/
|
|
36
|
+
var DtoListEntitlementsResponse = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>DtoListEntitlementsResponse</code>.
|
|
39
|
+
* @alias module:model/DtoListEntitlementsResponse
|
|
40
|
+
*/
|
|
41
|
+
function DtoListEntitlementsResponse() {
|
|
42
|
+
_classCallCheck(this, DtoListEntitlementsResponse);
|
|
43
|
+
DtoListEntitlementsResponse.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(DtoListEntitlementsResponse, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>DtoListEntitlementsResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/DtoListEntitlementsResponse} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/DtoListEntitlementsResponse} The populated <code>DtoListEntitlementsResponse</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new DtoListEntitlementsResponse();
|
|
67
|
+
if (data.hasOwnProperty('items')) {
|
|
68
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_DtoEntitlementResponse["default"]]);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('pagination')) {
|
|
71
|
+
obj['pagination'] = _TypesPaginationResponse["default"].constructFromObject(data['pagination']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>DtoListEntitlementsResponse</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoListEntitlementsResponse</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
if (data['items']) {
|
|
86
|
+
// data not null
|
|
87
|
+
// ensure the json data is an array
|
|
88
|
+
if (!Array.isArray(data['items'])) {
|
|
89
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
90
|
+
}
|
|
91
|
+
// validate the optional field `items` (array)
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var item = _step.value;
|
|
97
|
+
_DtoEntitlementResponse["default"].validateJSON(item);
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `pagination`
|
|
107
|
+
if (data['pagination']) {
|
|
108
|
+
// data not null
|
|
109
|
+
_TypesPaginationResponse["default"].validateJSON(data['pagination']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
/**
|
|
116
|
+
* @member {Array.<module:model/DtoEntitlementResponse>} items
|
|
117
|
+
*/
|
|
118
|
+
DtoListEntitlementsResponse.prototype['items'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {module:model/TypesPaginationResponse} pagination
|
|
122
|
+
*/
|
|
123
|
+
DtoListEntitlementsResponse.prototype['pagination'] = undefined;
|
|
124
|
+
var _default = exports["default"] = DtoListEntitlementsResponse;
|
|
@@ -0,0 +1,134 @@
|
|
|
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 _DtoEnvironmentResponse = _interopRequireDefault(require("./DtoEnvironmentResponse"));
|
|
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
|
+
* FlexPrice API
|
|
20
|
+
* FlexPrice API Service
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The DtoListEnvironmentsResponse model module.
|
|
32
|
+
* @module model/DtoListEnvironmentsResponse
|
|
33
|
+
* @version 1.0
|
|
34
|
+
*/
|
|
35
|
+
var DtoListEnvironmentsResponse = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>DtoListEnvironmentsResponse</code>.
|
|
38
|
+
* @alias module:model/DtoListEnvironmentsResponse
|
|
39
|
+
*/
|
|
40
|
+
function DtoListEnvironmentsResponse() {
|
|
41
|
+
_classCallCheck(this, DtoListEnvironmentsResponse);
|
|
42
|
+
DtoListEnvironmentsResponse.initialize(this);
|
|
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(DtoListEnvironmentsResponse, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj) {}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>DtoListEnvironmentsResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/DtoListEnvironmentsResponse} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/DtoListEnvironmentsResponse} The populated <code>DtoListEnvironmentsResponse</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new DtoListEnvironmentsResponse();
|
|
66
|
+
if (data.hasOwnProperty('environments')) {
|
|
67
|
+
obj['environments'] = _ApiClient["default"].convertToType(data['environments'], [_DtoEnvironmentResponse["default"]]);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('limit')) {
|
|
70
|
+
obj['limit'] = _ApiClient["default"].convertToType(data['limit'], 'Number');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('offset')) {
|
|
73
|
+
obj['offset'] = _ApiClient["default"].convertToType(data['offset'], 'Number');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('total')) {
|
|
76
|
+
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Validates the JSON data with respect to <code>DtoListEnvironmentsResponse</code>.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoListEnvironmentsResponse</code>.
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "validateJSON",
|
|
89
|
+
value: function validateJSON(data) {
|
|
90
|
+
if (data['environments']) {
|
|
91
|
+
// data not null
|
|
92
|
+
// ensure the json data is an array
|
|
93
|
+
if (!Array.isArray(data['environments'])) {
|
|
94
|
+
throw new Error("Expected the field `environments` to be an array in the JSON data but got " + data['environments']);
|
|
95
|
+
}
|
|
96
|
+
// validate the optional field `environments` (array)
|
|
97
|
+
var _iterator = _createForOfIteratorHelper(data['environments']),
|
|
98
|
+
_step;
|
|
99
|
+
try {
|
|
100
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
101
|
+
var item = _step.value;
|
|
102
|
+
_DtoEnvironmentResponse["default"].validateJSON(item);
|
|
103
|
+
}
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_iterator.e(err);
|
|
106
|
+
} finally {
|
|
107
|
+
_iterator.f();
|
|
108
|
+
}
|
|
109
|
+
;
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
/**
|
|
116
|
+
* @member {Array.<module:model/DtoEnvironmentResponse>} environments
|
|
117
|
+
*/
|
|
118
|
+
DtoListEnvironmentsResponse.prototype['environments'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {Number} limit
|
|
122
|
+
*/
|
|
123
|
+
DtoListEnvironmentsResponse.prototype['limit'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @member {Number} offset
|
|
127
|
+
*/
|
|
128
|
+
DtoListEnvironmentsResponse.prototype['offset'] = undefined;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @member {Number} total
|
|
132
|
+
*/
|
|
133
|
+
DtoListEnvironmentsResponse.prototype['total'] = undefined;
|
|
134
|
+
var _default = exports["default"] = DtoListEnvironmentsResponse;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 _DtoFeatureResponse = _interopRequireDefault(require("./DtoFeatureResponse"));
|
|
9
|
+
var _TypesPaginationResponse = _interopRequireDefault(require("./TypesPaginationResponse"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* FlexPrice API
|
|
21
|
+
* FlexPrice API Service
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* The DtoListFeaturesResponse model module.
|
|
33
|
+
* @module model/DtoListFeaturesResponse
|
|
34
|
+
* @version 1.0
|
|
35
|
+
*/
|
|
36
|
+
var DtoListFeaturesResponse = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>DtoListFeaturesResponse</code>.
|
|
39
|
+
* @alias module:model/DtoListFeaturesResponse
|
|
40
|
+
*/
|
|
41
|
+
function DtoListFeaturesResponse() {
|
|
42
|
+
_classCallCheck(this, DtoListFeaturesResponse);
|
|
43
|
+
DtoListFeaturesResponse.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(DtoListFeaturesResponse, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>DtoListFeaturesResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/DtoListFeaturesResponse} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/DtoListFeaturesResponse} The populated <code>DtoListFeaturesResponse</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new DtoListFeaturesResponse();
|
|
67
|
+
if (data.hasOwnProperty('items')) {
|
|
68
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_DtoFeatureResponse["default"]]);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('pagination')) {
|
|
71
|
+
obj['pagination'] = _TypesPaginationResponse["default"].constructFromObject(data['pagination']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>DtoListFeaturesResponse</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoListFeaturesResponse</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
if (data['items']) {
|
|
86
|
+
// data not null
|
|
87
|
+
// ensure the json data is an array
|
|
88
|
+
if (!Array.isArray(data['items'])) {
|
|
89
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
90
|
+
}
|
|
91
|
+
// validate the optional field `items` (array)
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var item = _step.value;
|
|
97
|
+
_DtoFeatureResponse["default"].validateJSON(item);
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `pagination`
|
|
107
|
+
if (data['pagination']) {
|
|
108
|
+
// data not null
|
|
109
|
+
_TypesPaginationResponse["default"].validateJSON(data['pagination']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
/**
|
|
116
|
+
* @member {Array.<module:model/DtoFeatureResponse>} items
|
|
117
|
+
*/
|
|
118
|
+
DtoListFeaturesResponse.prototype['items'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {module:model/TypesPaginationResponse} pagination
|
|
122
|
+
*/
|
|
123
|
+
DtoListFeaturesResponse.prototype['pagination'] = undefined;
|
|
124
|
+
var _default = exports["default"] = DtoListFeaturesResponse;
|
|
@@ -0,0 +1,124 @@
|
|
|
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 _DtoInvoiceResponse = _interopRequireDefault(require("./DtoInvoiceResponse"));
|
|
9
|
+
var _TypesPaginationResponse = _interopRequireDefault(require("./TypesPaginationResponse"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* FlexPrice API
|
|
21
|
+
* FlexPrice API Service
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* The DtoListInvoicesResponse model module.
|
|
33
|
+
* @module model/DtoListInvoicesResponse
|
|
34
|
+
* @version 1.0
|
|
35
|
+
*/
|
|
36
|
+
var DtoListInvoicesResponse = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>DtoListInvoicesResponse</code>.
|
|
39
|
+
* @alias module:model/DtoListInvoicesResponse
|
|
40
|
+
*/
|
|
41
|
+
function DtoListInvoicesResponse() {
|
|
42
|
+
_classCallCheck(this, DtoListInvoicesResponse);
|
|
43
|
+
DtoListInvoicesResponse.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(DtoListInvoicesResponse, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>DtoListInvoicesResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/DtoListInvoicesResponse} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/DtoListInvoicesResponse} The populated <code>DtoListInvoicesResponse</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new DtoListInvoicesResponse();
|
|
67
|
+
if (data.hasOwnProperty('items')) {
|
|
68
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [_DtoInvoiceResponse["default"]]);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('pagination')) {
|
|
71
|
+
obj['pagination'] = _TypesPaginationResponse["default"].constructFromObject(data['pagination']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>DtoListInvoicesResponse</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoListInvoicesResponse</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
if (data['items']) {
|
|
86
|
+
// data not null
|
|
87
|
+
// ensure the json data is an array
|
|
88
|
+
if (!Array.isArray(data['items'])) {
|
|
89
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data['items']);
|
|
90
|
+
}
|
|
91
|
+
// validate the optional field `items` (array)
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(data['items']),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var item = _step.value;
|
|
97
|
+
_DtoInvoiceResponse["default"].validateJSON(item);
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `pagination`
|
|
107
|
+
if (data['pagination']) {
|
|
108
|
+
// data not null
|
|
109
|
+
_TypesPaginationResponse["default"].validateJSON(data['pagination']);
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
}();
|
|
115
|
+
/**
|
|
116
|
+
* @member {Array.<module:model/DtoInvoiceResponse>} items
|
|
117
|
+
*/
|
|
118
|
+
DtoListInvoicesResponse.prototype['items'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {module:model/TypesPaginationResponse} pagination
|
|
122
|
+
*/
|
|
123
|
+
DtoListInvoicesResponse.prototype['pagination'] = undefined;
|
|
124
|
+
var _default = exports["default"] = DtoListInvoicesResponse;
|