@flexprice/sdk 1.0.16 → 1.0.26
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 +281 -200
- package/package.json +29 -41
- package/LICENSE +0 -663
- package/dist/ApiClient.js +0 -653
- package/dist/api/AuthApi.js +0 -100
- package/dist/api/CustomersApi.js +0 -376
- package/dist/api/EntitlementsApi.js +0 -267
- package/dist/api/EnvironmentsApi.js +0 -184
- package/dist/api/EventsApi.js +0 -238
- package/dist/api/FeaturesApi.js +0 -263
- package/dist/api/IntegrationsApi.js +0 -169
- package/dist/api/InvoicesApi.js +0 -419
- package/dist/api/PaymentsApi.js +0 -272
- package/dist/api/PlansApi.js +0 -226
- package/dist/api/PricesApi.js +0 -228
- package/dist/api/SecretsApi.js +0 -137
- package/dist/api/SubscriptionsApi.js +0 -353
- package/dist/api/TasksApi.js +0 -232
- package/dist/api/TenantsApi.js +0 -162
- package/dist/api/UsersApi.js +0 -61
- package/dist/api/WalletsApi.js +0 -392
- package/dist/index.js +0 -1102
- package/dist/model/DtoAddress.js +0 -132
- package/dist/model/DtoAggregatedEntitlement.js +0 -106
- package/dist/model/DtoAggregatedFeature.js +0 -109
- package/dist/model/DtoAuthResponse.js +0 -96
- package/dist/model/DtoBillingPeriodInfo.js +0 -97
- package/dist/model/DtoBulkIngestEventRequest.js +0 -91
- package/dist/model/DtoCreateAPIKeyRequest.js +0 -117
- package/dist/model/DtoCreateAPIKeyResponse.js +0 -86
- package/dist/model/DtoCreateCustomerRequest.js +0 -188
- package/dist/model/DtoCreateEntitlementRequest.js +0 -150
- package/dist/model/DtoCreateEnvironmentRequest.js +0 -96
- package/dist/model/DtoCreateFeatureRequest.js +0 -177
- package/dist/model/DtoCreateIntegrationRequest.js +0 -105
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +0 -206
- package/dist/model/DtoCreateInvoiceRequest.js +0 -289
- package/dist/model/DtoCreateMeterRequest.js +0 -144
- package/dist/model/DtoCreatePaymentRequest.js +0 -172
- package/dist/model/DtoCreatePlanEntitlementRequest.js +0 -150
- package/dist/model/DtoCreatePlanPriceRequest.js +0 -279
- package/dist/model/DtoCreatePlanRequest.js +0 -148
- package/dist/model/DtoCreatePriceRequest.js +0 -279
- package/dist/model/DtoCreatePriceTier.js +0 -102
- package/dist/model/DtoCreateSubscriptionRequest.js +0 -223
- package/dist/model/DtoCreateTaskRequest.js +0 -137
- package/dist/model/DtoCreateTenantRequest.js +0 -96
- package/dist/model/DtoCreateWalletRequest.js +0 -205
- package/dist/model/DtoCustomerEntitlementsResponse.js +0 -93
- package/dist/model/DtoCustomerInvoiceSummary.js +0 -148
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +0 -105
- package/dist/model/DtoCustomerResponse.js +0 -283
- package/dist/model/DtoCustomerUsageSummaryResponse.js +0 -121
- package/dist/model/DtoEntitlementResponse.js +0 -259
- package/dist/model/DtoEntitlementSource.js +0 -144
- package/dist/model/DtoEnvironmentResponse.js +0 -120
- package/dist/model/DtoEvent.js +0 -154
- package/dist/model/DtoFeatureResponse.js +0 -258
- package/dist/model/DtoFeatureUsageSummary.js +0 -135
- package/dist/model/DtoGetEventsRequest.js +0 -193
- package/dist/model/DtoGetEventsResponse.js +0 -129
- package/dist/model/DtoGetPreviewInvoiceRequest.js +0 -106
- package/dist/model/DtoGetUsageAnalyticsRequest.js +0 -156
- package/dist/model/DtoGetUsageAnalyticsResponse.js +0 -101
- package/dist/model/DtoGetUsageByMeterRequest.js +0 -149
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +0 -114
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +0 -137
- package/dist/model/DtoGetUsageRequest.js +0 -173
- package/dist/model/DtoGetUsageResponse.js +0 -110
- package/dist/model/DtoIngestEventRequest.js +0 -156
- package/dist/model/DtoInvoiceLineItemResponse.js +0 -326
- package/dist/model/DtoInvoiceResponse.js +0 -450
- package/dist/model/DtoLinkedIntegrationsResponse.js +0 -72
- package/dist/model/DtoListCustomersResponse.js +0 -95
- package/dist/model/DtoListEntitlementsResponse.js +0 -95
- package/dist/model/DtoListEnvironmentsResponse.js +0 -105
- package/dist/model/DtoListFeaturesResponse.js +0 -95
- package/dist/model/DtoListInvoicesResponse.js +0 -95
- package/dist/model/DtoListPaymentsResponse.js +0 -95
- package/dist/model/DtoListPlansResponse.js +0 -95
- package/dist/model/DtoListPricesResponse.js +0 -95
- package/dist/model/DtoListSecretsResponse.js +0 -95
- package/dist/model/DtoListSubscriptionPausesResponse.js +0 -89
- package/dist/model/DtoListSubscriptionsResponse.js +0 -95
- package/dist/model/DtoListTasksResponse.js +0 -95
- package/dist/model/DtoListWalletTransactionsResponse.js +0 -95
- package/dist/model/DtoLoginRequest.js +0 -108
- package/dist/model/DtoMeterResponse.js +0 -188
- package/dist/model/DtoPauseSubscriptionRequest.js +0 -141
- package/dist/model/DtoPaymentAttemptResponse.js +0 -174
- package/dist/model/DtoPaymentResponse.js +0 -314
- package/dist/model/DtoPlanResponse.js +0 -231
- package/dist/model/DtoPriceResponse.js +0 -373
- package/dist/model/DtoResumeSubscriptionRequest.js +0 -97
- package/dist/model/DtoSecretResponse.js +0 -183
- package/dist/model/DtoSignUpRequest.js +0 -118
- package/dist/model/DtoSubscriptionPauseResponse.js +0 -283
- package/dist/model/DtoSubscriptionResponse.js +0 -489
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +0 -148
- package/dist/model/DtoTaskResponse.js +0 -294
- package/dist/model/DtoTenantBillingDetails.js +0 -110
- package/dist/model/DtoTenantBillingUsage.js +0 -95
- package/dist/model/DtoTenantResponse.js +0 -134
- package/dist/model/DtoTopUpWalletRequest.js +0 -148
- package/dist/model/DtoUpdateCustomerRequest.js +0 -178
- package/dist/model/DtoUpdateEntitlementRequest.js +0 -105
- package/dist/model/DtoUpdateEnvironmentRequest.js +0 -84
- package/dist/model/DtoUpdateFeatureRequest.js +0 -139
- package/dist/model/DtoUpdatePaymentRequest.js +0 -82
- package/dist/model/DtoUpdatePaymentStatusRequest.js +0 -87
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +0 -163
- package/dist/model/DtoUpdatePlanPriceRequest.js +0 -292
- package/dist/model/DtoUpdatePlanRequest.js +0 -138
- package/dist/model/DtoUpdatePriceRequest.js +0 -94
- package/dist/model/DtoUpdateTaskStatusRequest.js +0 -79
- package/dist/model/DtoUpdateTenantRequest.js +0 -86
- package/dist/model/DtoUpdateWalletRequest.js +0 -133
- package/dist/model/DtoUsageAnalyticItem.js +0 -190
- package/dist/model/DtoUsageAnalyticPoint.js +0 -88
- package/dist/model/DtoUsageResult.js +0 -80
- package/dist/model/DtoUserResponse.js +0 -98
- package/dist/model/DtoWalletBalanceResponse.js +0 -336
- package/dist/model/DtoWalletResponse.js +0 -235
- package/dist/model/DtoWalletTransactionResponse.js +0 -221
- package/dist/model/ErrorsErrorDetail.js +0 -94
- package/dist/model/ErrorsErrorResponse.js +0 -82
- package/dist/model/GithubComFlexpriceFlexpriceInternalTypesValue.js +0 -112
- package/dist/model/MeterAggregation.js +0 -82
- package/dist/model/MeterFilter.js +0 -86
- package/dist/model/PriceJSONBTransformQuantity.js +0 -82
- package/dist/model/PricePrice.js +0 -359
- package/dist/model/PricePriceTier.js +0 -87
- package/dist/model/PriceTransformQuantity.js +0 -82
- package/dist/model/SubscriptionSubscriptionLineItem.js +0 -338
- package/dist/model/SubscriptionSubscriptionPause.js +0 -283
- package/dist/model/TypesAggregationType.js +0 -53
- package/dist/model/TypesAutoTopupTrigger.js +0 -41
- package/dist/model/TypesBillingCadence.js +0 -41
- package/dist/model/TypesBillingCycle.js +0 -41
- package/dist/model/TypesBillingModel.js +0 -47
- package/dist/model/TypesBillingPeriod.js +0 -65
- package/dist/model/TypesBillingTier.js +0 -41
- package/dist/model/TypesCustomerFilter.js +0 -230
- package/dist/model/TypesDataType.js +0 -53
- package/dist/model/TypesEntityType.js +0 -47
- package/dist/model/TypesFeatureFilter.js +0 -243
- package/dist/model/TypesFeatureType.js +0 -47
- package/dist/model/TypesFileType.js +0 -41
- package/dist/model/TypesFilterCondition.js +0 -104
- package/dist/model/TypesFilterOperatorType.js +0 -77
- package/dist/model/TypesInvoiceBillingReason.js +0 -53
- package/dist/model/TypesInvoiceCadence.js +0 -41
- package/dist/model/TypesInvoiceStatus.js +0 -47
- package/dist/model/TypesInvoiceType.js +0 -47
- package/dist/model/TypesPaginationResponse.js +0 -84
- package/dist/model/TypesPauseMode.js +0 -47
- package/dist/model/TypesPauseStatus.js +0 -59
- package/dist/model/TypesPaymentDestinationType.js +0 -35
- package/dist/model/TypesPaymentMethodType.js +0 -53
- package/dist/model/TypesPaymentStatus.js +0 -65
- package/dist/model/TypesPriceType.js +0 -41
- package/dist/model/TypesResetUsage.js +0 -41
- package/dist/model/TypesResumeMode.js +0 -47
- package/dist/model/TypesSecretProvider.js +0 -47
- package/dist/model/TypesSecretType.js +0 -47
- package/dist/model/TypesSortCondition.js +0 -81
- package/dist/model/TypesSortDirection.js +0 -41
- package/dist/model/TypesStatus.js +0 -47
- package/dist/model/TypesSubscriptionStatus.js +0 -77
- package/dist/model/TypesTaskStatus.js +0 -53
- package/dist/model/TypesTaskType.js +0 -41
- package/dist/model/TypesTransactionReason.js +0 -77
- package/dist/model/TypesTransactionStatus.js +0 -47
- package/dist/model/TypesTransactionType.js +0 -41
- package/dist/model/TypesWalletConfig.js +0 -74
- package/dist/model/TypesWalletConfigPriceType.js +0 -47
- package/dist/model/TypesWalletStatus.js +0 -47
- package/dist/model/TypesWalletTxReferenceType.js +0 -47
- package/dist/model/TypesWalletType.js +0 -41
- package/dist/model/TypesWindowSize.js +0 -47
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from '../ApiClient';
|
|
15
|
-
import DtoUsageAnalyticPoint from './DtoUsageAnalyticPoint';
|
|
16
|
-
import TypesAggregationType from './TypesAggregationType';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The DtoUsageAnalyticItem model module.
|
|
20
|
-
* @module model/DtoUsageAnalyticItem
|
|
21
|
-
* @version 1.0
|
|
22
|
-
*/
|
|
23
|
-
class DtoUsageAnalyticItem {
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new <code>DtoUsageAnalyticItem</code>.
|
|
26
|
-
* @alias module:model/DtoUsageAnalyticItem
|
|
27
|
-
*/
|
|
28
|
-
constructor() {
|
|
29
|
-
DtoUsageAnalyticItem.initialize(this);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Initializes the fields of this object.
|
|
34
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
35
|
-
* Only for internal use.
|
|
36
|
-
*/
|
|
37
|
-
static initialize(obj) {}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Constructs a <code>DtoUsageAnalyticItem</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
-
* @param {module:model/DtoUsageAnalyticItem} obj Optional instance to populate.
|
|
44
|
-
* @return {module:model/DtoUsageAnalyticItem} The populated <code>DtoUsageAnalyticItem</code> instance.
|
|
45
|
-
*/
|
|
46
|
-
static constructFromObject(data, obj) {
|
|
47
|
-
if (data) {
|
|
48
|
-
obj = obj || new DtoUsageAnalyticItem();
|
|
49
|
-
if (data.hasOwnProperty('aggregation_type')) {
|
|
50
|
-
obj['aggregation_type'] = TypesAggregationType.constructFromObject(data['aggregation_type']);
|
|
51
|
-
}
|
|
52
|
-
if (data.hasOwnProperty('currency')) {
|
|
53
|
-
obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
|
|
54
|
-
}
|
|
55
|
-
if (data.hasOwnProperty('event_name')) {
|
|
56
|
-
obj['event_name'] = ApiClient.convertToType(data['event_name'], 'String');
|
|
57
|
-
}
|
|
58
|
-
if (data.hasOwnProperty('feature_id')) {
|
|
59
|
-
obj['feature_id'] = ApiClient.convertToType(data['feature_id'], 'String');
|
|
60
|
-
}
|
|
61
|
-
if (data.hasOwnProperty('name')) {
|
|
62
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
63
|
-
}
|
|
64
|
-
if (data.hasOwnProperty('points')) {
|
|
65
|
-
obj['points'] = ApiClient.convertToType(data['points'], [DtoUsageAnalyticPoint]);
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('source')) {
|
|
68
|
-
obj['source'] = ApiClient.convertToType(data['source'], 'String');
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('total_cost')) {
|
|
71
|
-
obj['total_cost'] = ApiClient.convertToType(data['total_cost'], 'Number');
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty('total_usage')) {
|
|
74
|
-
obj['total_usage'] = ApiClient.convertToType(data['total_usage'], 'Number');
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty('unit')) {
|
|
77
|
-
obj['unit'] = ApiClient.convertToType(data['unit'], 'String');
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty('unit_plural')) {
|
|
80
|
-
obj['unit_plural'] = ApiClient.convertToType(data['unit_plural'], 'String');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return obj;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Validates the JSON data with respect to <code>DtoUsageAnalyticItem</code>.
|
|
88
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUsageAnalyticItem</code>.
|
|
90
|
-
*/
|
|
91
|
-
static validateJSON(data) {
|
|
92
|
-
// ensure the json data is a string
|
|
93
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
94
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
95
|
-
}
|
|
96
|
-
// ensure the json data is a string
|
|
97
|
-
if (data['event_name'] && !(typeof data['event_name'] === 'string' || data['event_name'] instanceof String)) {
|
|
98
|
-
throw new Error("Expected the field `event_name` to be a primitive type in the JSON string but got " + data['event_name']);
|
|
99
|
-
}
|
|
100
|
-
// ensure the json data is a string
|
|
101
|
-
if (data['feature_id'] && !(typeof data['feature_id'] === 'string' || data['feature_id'] instanceof String)) {
|
|
102
|
-
throw new Error("Expected the field `feature_id` to be a primitive type in the JSON string but got " + data['feature_id']);
|
|
103
|
-
}
|
|
104
|
-
// ensure the json data is a string
|
|
105
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
106
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
107
|
-
}
|
|
108
|
-
if (data['points']) {
|
|
109
|
-
// data not null
|
|
110
|
-
// ensure the json data is an array
|
|
111
|
-
if (!Array.isArray(data['points'])) {
|
|
112
|
-
throw new Error("Expected the field `points` to be an array in the JSON data but got " + data['points']);
|
|
113
|
-
}
|
|
114
|
-
// validate the optional field `points` (array)
|
|
115
|
-
for (const item of data['points']) {
|
|
116
|
-
DtoUsageAnalyticPoint.validateJSON(item);
|
|
117
|
-
}
|
|
118
|
-
;
|
|
119
|
-
}
|
|
120
|
-
// ensure the json data is a string
|
|
121
|
-
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
122
|
-
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
|
|
123
|
-
}
|
|
124
|
-
// ensure the json data is a string
|
|
125
|
-
if (data['unit'] && !(typeof data['unit'] === 'string' || data['unit'] instanceof String)) {
|
|
126
|
-
throw new Error("Expected the field `unit` to be a primitive type in the JSON string but got " + data['unit']);
|
|
127
|
-
}
|
|
128
|
-
// ensure the json data is a string
|
|
129
|
-
if (data['unit_plural'] && !(typeof data['unit_plural'] === 'string' || data['unit_plural'] instanceof String)) {
|
|
130
|
-
throw new Error("Expected the field `unit_plural` to be a primitive type in the JSON string but got " + data['unit_plural']);
|
|
131
|
-
}
|
|
132
|
-
return true;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @member {module:model/TypesAggregationType} aggregation_type
|
|
138
|
-
*/
|
|
139
|
-
DtoUsageAnalyticItem.prototype['aggregation_type'] = undefined;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @member {String} currency
|
|
143
|
-
*/
|
|
144
|
-
DtoUsageAnalyticItem.prototype['currency'] = undefined;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @member {String} event_name
|
|
148
|
-
*/
|
|
149
|
-
DtoUsageAnalyticItem.prototype['event_name'] = undefined;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @member {String} feature_id
|
|
153
|
-
*/
|
|
154
|
-
DtoUsageAnalyticItem.prototype['feature_id'] = undefined;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @member {String} name
|
|
158
|
-
*/
|
|
159
|
-
DtoUsageAnalyticItem.prototype['name'] = undefined;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @member {Array.<module:model/DtoUsageAnalyticPoint>} points
|
|
163
|
-
*/
|
|
164
|
-
DtoUsageAnalyticItem.prototype['points'] = undefined;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* @member {String} source
|
|
168
|
-
*/
|
|
169
|
-
DtoUsageAnalyticItem.prototype['source'] = undefined;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @member {Number} total_cost
|
|
173
|
-
*/
|
|
174
|
-
DtoUsageAnalyticItem.prototype['total_cost'] = undefined;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @member {Number} total_usage
|
|
178
|
-
*/
|
|
179
|
-
DtoUsageAnalyticItem.prototype['total_usage'] = undefined;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @member {String} unit
|
|
183
|
-
*/
|
|
184
|
-
DtoUsageAnalyticItem.prototype['unit'] = undefined;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* @member {String} unit_plural
|
|
188
|
-
*/
|
|
189
|
-
DtoUsageAnalyticItem.prototype['unit_plural'] = undefined;
|
|
190
|
-
export default DtoUsageAnalyticItem;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from '../ApiClient';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The DtoUsageAnalyticPoint model module.
|
|
18
|
-
* @module model/DtoUsageAnalyticPoint
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoUsageAnalyticPoint {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoUsageAnalyticPoint</code>.
|
|
24
|
-
* @alias module:model/DtoUsageAnalyticPoint
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoUsageAnalyticPoint.initialize(this);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Initializes the fields of this object.
|
|
32
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
-
* Only for internal use.
|
|
34
|
-
*/
|
|
35
|
-
static initialize(obj) {}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Constructs a <code>DtoUsageAnalyticPoint</code> from a plain JavaScript object, optionally creating a new instance.
|
|
39
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
40
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
41
|
-
* @param {module:model/DtoUsageAnalyticPoint} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoUsageAnalyticPoint} The populated <code>DtoUsageAnalyticPoint</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoUsageAnalyticPoint();
|
|
47
|
-
if (data.hasOwnProperty('cost')) {
|
|
48
|
-
obj['cost'] = ApiClient.convertToType(data['cost'], 'Number');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('timestamp')) {
|
|
51
|
-
obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('usage')) {
|
|
54
|
-
obj['usage'] = ApiClient.convertToType(data['usage'], 'Number');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return obj;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Validates the JSON data with respect to <code>DtoUsageAnalyticPoint</code>.
|
|
62
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUsageAnalyticPoint</code>.
|
|
64
|
-
*/
|
|
65
|
-
static validateJSON(data) {
|
|
66
|
-
// ensure the json data is a string
|
|
67
|
-
if (data['timestamp'] && !(typeof data['timestamp'] === 'string' || data['timestamp'] instanceof String)) {
|
|
68
|
-
throw new Error("Expected the field `timestamp` to be a primitive type in the JSON string but got " + data['timestamp']);
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @member {Number} cost
|
|
76
|
-
*/
|
|
77
|
-
DtoUsageAnalyticPoint.prototype['cost'] = undefined;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @member {String} timestamp
|
|
81
|
-
*/
|
|
82
|
-
DtoUsageAnalyticPoint.prototype['timestamp'] = undefined;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @member {Number} usage
|
|
86
|
-
*/
|
|
87
|
-
DtoUsageAnalyticPoint.prototype['usage'] = undefined;
|
|
88
|
-
export default DtoUsageAnalyticPoint;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from '../ApiClient';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The DtoUsageResult model module.
|
|
18
|
-
* @module model/DtoUsageResult
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoUsageResult {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoUsageResult</code>.
|
|
24
|
-
* @alias module:model/DtoUsageResult
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoUsageResult.initialize(this);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Initializes the fields of this object.
|
|
32
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
-
* Only for internal use.
|
|
34
|
-
*/
|
|
35
|
-
static initialize(obj) {}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Constructs a <code>DtoUsageResult</code> from a plain JavaScript object, optionally creating a new instance.
|
|
39
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
40
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
41
|
-
* @param {module:model/DtoUsageResult} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoUsageResult} The populated <code>DtoUsageResult</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoUsageResult();
|
|
47
|
-
if (data.hasOwnProperty('value')) {
|
|
48
|
-
obj['value'] = ApiClient.convertToType(data['value'], 'Number');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('window_size')) {
|
|
51
|
-
obj['window_size'] = ApiClient.convertToType(data['window_size'], 'String');
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Validates the JSON data with respect to <code>DtoUsageResult</code>.
|
|
59
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUsageResult</code>.
|
|
61
|
-
*/
|
|
62
|
-
static validateJSON(data) {
|
|
63
|
-
// ensure the json data is a string
|
|
64
|
-
if (data['window_size'] && !(typeof data['window_size'] === 'string' || data['window_size'] instanceof String)) {
|
|
65
|
-
throw new Error("Expected the field `window_size` to be a primitive type in the JSON string but got " + data['window_size']);
|
|
66
|
-
}
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @member {Number} value
|
|
73
|
-
*/
|
|
74
|
-
DtoUsageResult.prototype['value'] = undefined;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @member {String} window_size
|
|
78
|
-
*/
|
|
79
|
-
DtoUsageResult.prototype['window_size'] = undefined;
|
|
80
|
-
export default DtoUsageResult;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from '../ApiClient';
|
|
15
|
-
import DtoTenantResponse from './DtoTenantResponse';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The DtoUserResponse model module.
|
|
19
|
-
* @module model/DtoUserResponse
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoUserResponse {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoUserResponse</code>.
|
|
25
|
-
* @alias module:model/DtoUserResponse
|
|
26
|
-
*/
|
|
27
|
-
constructor() {
|
|
28
|
-
DtoUserResponse.initialize(this);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Initializes the fields of this object.
|
|
33
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
34
|
-
* Only for internal use.
|
|
35
|
-
*/
|
|
36
|
-
static initialize(obj) {}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Constructs a <code>DtoUserResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
40
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
41
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
42
|
-
* @param {module:model/DtoUserResponse} obj Optional instance to populate.
|
|
43
|
-
* @return {module:model/DtoUserResponse} The populated <code>DtoUserResponse</code> instance.
|
|
44
|
-
*/
|
|
45
|
-
static constructFromObject(data, obj) {
|
|
46
|
-
if (data) {
|
|
47
|
-
obj = obj || new DtoUserResponse();
|
|
48
|
-
if (data.hasOwnProperty('email')) {
|
|
49
|
-
obj['email'] = ApiClient.convertToType(data['email'], 'String');
|
|
50
|
-
}
|
|
51
|
-
if (data.hasOwnProperty('id')) {
|
|
52
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
53
|
-
}
|
|
54
|
-
if (data.hasOwnProperty('tenant')) {
|
|
55
|
-
obj['tenant'] = DtoTenantResponse.constructFromObject(data['tenant']);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return obj;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Validates the JSON data with respect to <code>DtoUserResponse</code>.
|
|
63
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUserResponse</code>.
|
|
65
|
-
*/
|
|
66
|
-
static validateJSON(data) {
|
|
67
|
-
// ensure the json data is a string
|
|
68
|
-
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
69
|
-
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
70
|
-
}
|
|
71
|
-
// ensure the json data is a string
|
|
72
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
73
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
74
|
-
}
|
|
75
|
-
// validate the optional field `tenant`
|
|
76
|
-
if (data['tenant']) {
|
|
77
|
-
// data not null
|
|
78
|
-
DtoTenantResponse.validateJSON(data['tenant']);
|
|
79
|
-
}
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @member {String} email
|
|
86
|
-
*/
|
|
87
|
-
DtoUserResponse.prototype['email'] = undefined;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @member {String} id
|
|
91
|
-
*/
|
|
92
|
-
DtoUserResponse.prototype['id'] = undefined;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @member {module:model/DtoTenantResponse} tenant
|
|
96
|
-
*/
|
|
97
|
-
DtoUserResponse.prototype['tenant'] = undefined;
|
|
98
|
-
export default DtoUserResponse;
|