@flexprice/sdk 1.0.17 → 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 -219
- package/dist/model/DtoGetEventsResponse.js +0 -129
- package/dist/model/DtoGetPreviewInvoiceRequest.js +0 -106
- package/dist/model/DtoGetUsageAnalyticsRequest.js +0 -152
- 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 -83
|
@@ -1,489 +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 DtoCustomerResponse from './DtoCustomerResponse';
|
|
16
|
-
import DtoPlanResponse from './DtoPlanResponse';
|
|
17
|
-
import SubscriptionSubscriptionLineItem from './SubscriptionSubscriptionLineItem';
|
|
18
|
-
import SubscriptionSubscriptionPause from './SubscriptionSubscriptionPause';
|
|
19
|
-
import TypesBillingCadence from './TypesBillingCadence';
|
|
20
|
-
import TypesBillingCycle from './TypesBillingCycle';
|
|
21
|
-
import TypesBillingPeriod from './TypesBillingPeriod';
|
|
22
|
-
import TypesPauseStatus from './TypesPauseStatus';
|
|
23
|
-
import TypesStatus from './TypesStatus';
|
|
24
|
-
import TypesSubscriptionStatus from './TypesSubscriptionStatus';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The DtoSubscriptionResponse model module.
|
|
28
|
-
* @module model/DtoSubscriptionResponse
|
|
29
|
-
* @version 1.0
|
|
30
|
-
*/
|
|
31
|
-
class DtoSubscriptionResponse {
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a new <code>DtoSubscriptionResponse</code>.
|
|
34
|
-
* @alias module:model/DtoSubscriptionResponse
|
|
35
|
-
*/
|
|
36
|
-
constructor() {
|
|
37
|
-
DtoSubscriptionResponse.initialize(this);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Initializes the fields of this object.
|
|
42
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
43
|
-
* Only for internal use.
|
|
44
|
-
*/
|
|
45
|
-
static initialize(obj) {}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Constructs a <code>DtoSubscriptionResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
-
* @param {module:model/DtoSubscriptionResponse} obj Optional instance to populate.
|
|
52
|
-
* @return {module:model/DtoSubscriptionResponse} The populated <code>DtoSubscriptionResponse</code> instance.
|
|
53
|
-
*/
|
|
54
|
-
static constructFromObject(data, obj) {
|
|
55
|
-
if (data) {
|
|
56
|
-
obj = obj || new DtoSubscriptionResponse();
|
|
57
|
-
if (data.hasOwnProperty('active_pause_id')) {
|
|
58
|
-
obj['active_pause_id'] = ApiClient.convertToType(data['active_pause_id'], 'String');
|
|
59
|
-
}
|
|
60
|
-
if (data.hasOwnProperty('billing_anchor')) {
|
|
61
|
-
obj['billing_anchor'] = ApiClient.convertToType(data['billing_anchor'], 'String');
|
|
62
|
-
}
|
|
63
|
-
if (data.hasOwnProperty('billing_cadence')) {
|
|
64
|
-
obj['billing_cadence'] = TypesBillingCadence.constructFromObject(data['billing_cadence']);
|
|
65
|
-
}
|
|
66
|
-
if (data.hasOwnProperty('billing_cycle')) {
|
|
67
|
-
obj['billing_cycle'] = TypesBillingCycle.constructFromObject(data['billing_cycle']);
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('billing_period')) {
|
|
70
|
-
obj['billing_period'] = TypesBillingPeriod.constructFromObject(data['billing_period']);
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty('billing_period_count')) {
|
|
73
|
-
obj['billing_period_count'] = ApiClient.convertToType(data['billing_period_count'], 'Number');
|
|
74
|
-
}
|
|
75
|
-
if (data.hasOwnProperty('cancel_at')) {
|
|
76
|
-
obj['cancel_at'] = ApiClient.convertToType(data['cancel_at'], 'String');
|
|
77
|
-
}
|
|
78
|
-
if (data.hasOwnProperty('cancel_at_period_end')) {
|
|
79
|
-
obj['cancel_at_period_end'] = ApiClient.convertToType(data['cancel_at_period_end'], 'Boolean');
|
|
80
|
-
}
|
|
81
|
-
if (data.hasOwnProperty('cancelled_at')) {
|
|
82
|
-
obj['cancelled_at'] = ApiClient.convertToType(data['cancelled_at'], 'String');
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('created_at')) {
|
|
85
|
-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
|
|
86
|
-
}
|
|
87
|
-
if (data.hasOwnProperty('created_by')) {
|
|
88
|
-
obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String');
|
|
89
|
-
}
|
|
90
|
-
if (data.hasOwnProperty('currency')) {
|
|
91
|
-
obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
|
|
92
|
-
}
|
|
93
|
-
if (data.hasOwnProperty('current_period_end')) {
|
|
94
|
-
obj['current_period_end'] = ApiClient.convertToType(data['current_period_end'], 'String');
|
|
95
|
-
}
|
|
96
|
-
if (data.hasOwnProperty('current_period_start')) {
|
|
97
|
-
obj['current_period_start'] = ApiClient.convertToType(data['current_period_start'], 'String');
|
|
98
|
-
}
|
|
99
|
-
if (data.hasOwnProperty('customer')) {
|
|
100
|
-
obj['customer'] = DtoCustomerResponse.constructFromObject(data['customer']);
|
|
101
|
-
}
|
|
102
|
-
if (data.hasOwnProperty('customer_id')) {
|
|
103
|
-
obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String');
|
|
104
|
-
}
|
|
105
|
-
if (data.hasOwnProperty('end_date')) {
|
|
106
|
-
obj['end_date'] = ApiClient.convertToType(data['end_date'], 'String');
|
|
107
|
-
}
|
|
108
|
-
if (data.hasOwnProperty('environment_id')) {
|
|
109
|
-
obj['environment_id'] = ApiClient.convertToType(data['environment_id'], 'String');
|
|
110
|
-
}
|
|
111
|
-
if (data.hasOwnProperty('id')) {
|
|
112
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
113
|
-
}
|
|
114
|
-
if (data.hasOwnProperty('line_items')) {
|
|
115
|
-
obj['line_items'] = ApiClient.convertToType(data['line_items'], [SubscriptionSubscriptionLineItem]);
|
|
116
|
-
}
|
|
117
|
-
if (data.hasOwnProperty('lookup_key')) {
|
|
118
|
-
obj['lookup_key'] = ApiClient.convertToType(data['lookup_key'], 'String');
|
|
119
|
-
}
|
|
120
|
-
if (data.hasOwnProperty('metadata')) {
|
|
121
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], {
|
|
122
|
-
'String': 'String'
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
if (data.hasOwnProperty('pause_status')) {
|
|
126
|
-
obj['pause_status'] = TypesPauseStatus.constructFromObject(data['pause_status']);
|
|
127
|
-
}
|
|
128
|
-
if (data.hasOwnProperty('pauses')) {
|
|
129
|
-
obj['pauses'] = ApiClient.convertToType(data['pauses'], [SubscriptionSubscriptionPause]);
|
|
130
|
-
}
|
|
131
|
-
if (data.hasOwnProperty('plan')) {
|
|
132
|
-
obj['plan'] = DtoPlanResponse.constructFromObject(data['plan']);
|
|
133
|
-
}
|
|
134
|
-
if (data.hasOwnProperty('plan_id')) {
|
|
135
|
-
obj['plan_id'] = ApiClient.convertToType(data['plan_id'], 'String');
|
|
136
|
-
}
|
|
137
|
-
if (data.hasOwnProperty('start_date')) {
|
|
138
|
-
obj['start_date'] = ApiClient.convertToType(data['start_date'], 'String');
|
|
139
|
-
}
|
|
140
|
-
if (data.hasOwnProperty('status')) {
|
|
141
|
-
obj['status'] = TypesStatus.constructFromObject(data['status']);
|
|
142
|
-
}
|
|
143
|
-
if (data.hasOwnProperty('subscription_status')) {
|
|
144
|
-
obj['subscription_status'] = TypesSubscriptionStatus.constructFromObject(data['subscription_status']);
|
|
145
|
-
}
|
|
146
|
-
if (data.hasOwnProperty('tenant_id')) {
|
|
147
|
-
obj['tenant_id'] = ApiClient.convertToType(data['tenant_id'], 'String');
|
|
148
|
-
}
|
|
149
|
-
if (data.hasOwnProperty('trial_end')) {
|
|
150
|
-
obj['trial_end'] = ApiClient.convertToType(data['trial_end'], 'String');
|
|
151
|
-
}
|
|
152
|
-
if (data.hasOwnProperty('trial_start')) {
|
|
153
|
-
obj['trial_start'] = ApiClient.convertToType(data['trial_start'], 'String');
|
|
154
|
-
}
|
|
155
|
-
if (data.hasOwnProperty('updated_at')) {
|
|
156
|
-
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
|
|
157
|
-
}
|
|
158
|
-
if (data.hasOwnProperty('updated_by')) {
|
|
159
|
-
obj['updated_by'] = ApiClient.convertToType(data['updated_by'], 'String');
|
|
160
|
-
}
|
|
161
|
-
if (data.hasOwnProperty('version')) {
|
|
162
|
-
obj['version'] = ApiClient.convertToType(data['version'], 'Number');
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return obj;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Validates the JSON data with respect to <code>DtoSubscriptionResponse</code>.
|
|
170
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
171
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoSubscriptionResponse</code>.
|
|
172
|
-
*/
|
|
173
|
-
static validateJSON(data) {
|
|
174
|
-
// ensure the json data is a string
|
|
175
|
-
if (data['active_pause_id'] && !(typeof data['active_pause_id'] === 'string' || data['active_pause_id'] instanceof String)) {
|
|
176
|
-
throw new Error("Expected the field `active_pause_id` to be a primitive type in the JSON string but got " + data['active_pause_id']);
|
|
177
|
-
}
|
|
178
|
-
// ensure the json data is a string
|
|
179
|
-
if (data['billing_anchor'] && !(typeof data['billing_anchor'] === 'string' || data['billing_anchor'] instanceof String)) {
|
|
180
|
-
throw new Error("Expected the field `billing_anchor` to be a primitive type in the JSON string but got " + data['billing_anchor']);
|
|
181
|
-
}
|
|
182
|
-
// ensure the json data is a string
|
|
183
|
-
if (data['cancel_at'] && !(typeof data['cancel_at'] === 'string' || data['cancel_at'] instanceof String)) {
|
|
184
|
-
throw new Error("Expected the field `cancel_at` to be a primitive type in the JSON string but got " + data['cancel_at']);
|
|
185
|
-
}
|
|
186
|
-
// ensure the json data is a string
|
|
187
|
-
if (data['cancelled_at'] && !(typeof data['cancelled_at'] === 'string' || data['cancelled_at'] instanceof String)) {
|
|
188
|
-
throw new Error("Expected the field `cancelled_at` to be a primitive type in the JSON string but got " + data['cancelled_at']);
|
|
189
|
-
}
|
|
190
|
-
// ensure the json data is a string
|
|
191
|
-
if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) {
|
|
192
|
-
throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']);
|
|
193
|
-
}
|
|
194
|
-
// ensure the json data is a string
|
|
195
|
-
if (data['created_by'] && !(typeof data['created_by'] === 'string' || data['created_by'] instanceof String)) {
|
|
196
|
-
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data['created_by']);
|
|
197
|
-
}
|
|
198
|
-
// ensure the json data is a string
|
|
199
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
200
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
201
|
-
}
|
|
202
|
-
// ensure the json data is a string
|
|
203
|
-
if (data['current_period_end'] && !(typeof data['current_period_end'] === 'string' || data['current_period_end'] instanceof String)) {
|
|
204
|
-
throw new Error("Expected the field `current_period_end` to be a primitive type in the JSON string but got " + data['current_period_end']);
|
|
205
|
-
}
|
|
206
|
-
// ensure the json data is a string
|
|
207
|
-
if (data['current_period_start'] && !(typeof data['current_period_start'] === 'string' || data['current_period_start'] instanceof String)) {
|
|
208
|
-
throw new Error("Expected the field `current_period_start` to be a primitive type in the JSON string but got " + data['current_period_start']);
|
|
209
|
-
}
|
|
210
|
-
// validate the optional field `customer`
|
|
211
|
-
if (data['customer']) {
|
|
212
|
-
// data not null
|
|
213
|
-
DtoCustomerResponse.validateJSON(data['customer']);
|
|
214
|
-
}
|
|
215
|
-
// ensure the json data is a string
|
|
216
|
-
if (data['customer_id'] && !(typeof data['customer_id'] === 'string' || data['customer_id'] instanceof String)) {
|
|
217
|
-
throw new Error("Expected the field `customer_id` to be a primitive type in the JSON string but got " + data['customer_id']);
|
|
218
|
-
}
|
|
219
|
-
// ensure the json data is a string
|
|
220
|
-
if (data['end_date'] && !(typeof data['end_date'] === 'string' || data['end_date'] instanceof String)) {
|
|
221
|
-
throw new Error("Expected the field `end_date` to be a primitive type in the JSON string but got " + data['end_date']);
|
|
222
|
-
}
|
|
223
|
-
// ensure the json data is a string
|
|
224
|
-
if (data['environment_id'] && !(typeof data['environment_id'] === 'string' || data['environment_id'] instanceof String)) {
|
|
225
|
-
throw new Error("Expected the field `environment_id` to be a primitive type in the JSON string but got " + data['environment_id']);
|
|
226
|
-
}
|
|
227
|
-
// ensure the json data is a string
|
|
228
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
229
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
230
|
-
}
|
|
231
|
-
if (data['line_items']) {
|
|
232
|
-
// data not null
|
|
233
|
-
// ensure the json data is an array
|
|
234
|
-
if (!Array.isArray(data['line_items'])) {
|
|
235
|
-
throw new Error("Expected the field `line_items` to be an array in the JSON data but got " + data['line_items']);
|
|
236
|
-
}
|
|
237
|
-
// validate the optional field `line_items` (array)
|
|
238
|
-
for (const item of data['line_items']) {
|
|
239
|
-
SubscriptionSubscriptionLineItem.validateJSON(item);
|
|
240
|
-
}
|
|
241
|
-
;
|
|
242
|
-
}
|
|
243
|
-
// ensure the json data is a string
|
|
244
|
-
if (data['lookup_key'] && !(typeof data['lookup_key'] === 'string' || data['lookup_key'] instanceof String)) {
|
|
245
|
-
throw new Error("Expected the field `lookup_key` to be a primitive type in the JSON string but got " + data['lookup_key']);
|
|
246
|
-
}
|
|
247
|
-
if (data['pauses']) {
|
|
248
|
-
// data not null
|
|
249
|
-
// ensure the json data is an array
|
|
250
|
-
if (!Array.isArray(data['pauses'])) {
|
|
251
|
-
throw new Error("Expected the field `pauses` to be an array in the JSON data but got " + data['pauses']);
|
|
252
|
-
}
|
|
253
|
-
// validate the optional field `pauses` (array)
|
|
254
|
-
for (const item of data['pauses']) {
|
|
255
|
-
SubscriptionSubscriptionPause.validateJSON(item);
|
|
256
|
-
}
|
|
257
|
-
;
|
|
258
|
-
}
|
|
259
|
-
// validate the optional field `plan`
|
|
260
|
-
if (data['plan']) {
|
|
261
|
-
// data not null
|
|
262
|
-
DtoPlanResponse.validateJSON(data['plan']);
|
|
263
|
-
}
|
|
264
|
-
// ensure the json data is a string
|
|
265
|
-
if (data['plan_id'] && !(typeof data['plan_id'] === 'string' || data['plan_id'] instanceof String)) {
|
|
266
|
-
throw new Error("Expected the field `plan_id` to be a primitive type in the JSON string but got " + data['plan_id']);
|
|
267
|
-
}
|
|
268
|
-
// ensure the json data is a string
|
|
269
|
-
if (data['start_date'] && !(typeof data['start_date'] === 'string' || data['start_date'] instanceof String)) {
|
|
270
|
-
throw new Error("Expected the field `start_date` to be a primitive type in the JSON string but got " + data['start_date']);
|
|
271
|
-
}
|
|
272
|
-
// ensure the json data is a string
|
|
273
|
-
if (data['tenant_id'] && !(typeof data['tenant_id'] === 'string' || data['tenant_id'] instanceof String)) {
|
|
274
|
-
throw new Error("Expected the field `tenant_id` to be a primitive type in the JSON string but got " + data['tenant_id']);
|
|
275
|
-
}
|
|
276
|
-
// ensure the json data is a string
|
|
277
|
-
if (data['trial_end'] && !(typeof data['trial_end'] === 'string' || data['trial_end'] instanceof String)) {
|
|
278
|
-
throw new Error("Expected the field `trial_end` to be a primitive type in the JSON string but got " + data['trial_end']);
|
|
279
|
-
}
|
|
280
|
-
// ensure the json data is a string
|
|
281
|
-
if (data['trial_start'] && !(typeof data['trial_start'] === 'string' || data['trial_start'] instanceof String)) {
|
|
282
|
-
throw new Error("Expected the field `trial_start` to be a primitive type in the JSON string but got " + data['trial_start']);
|
|
283
|
-
}
|
|
284
|
-
// ensure the json data is a string
|
|
285
|
-
if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) {
|
|
286
|
-
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
287
|
-
}
|
|
288
|
-
// ensure the json data is a string
|
|
289
|
-
if (data['updated_by'] && !(typeof data['updated_by'] === 'string' || data['updated_by'] instanceof String)) {
|
|
290
|
-
throw new Error("Expected the field `updated_by` to be a primitive type in the JSON string but got " + data['updated_by']);
|
|
291
|
-
}
|
|
292
|
-
return true;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* ActivePauseID references the current active pause configuration This will be null if no pause is active or scheduled
|
|
298
|
-
* @member {String} active_pause_id
|
|
299
|
-
*/
|
|
300
|
-
DtoSubscriptionResponse.prototype['active_pause_id'] = undefined;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* BillingAnchor is the reference point that aligns future billing cycle dates. It sets the day of week for week intervals, the day of month for month and year intervals, and the month of year for year intervals. The timestamp is in UTC format.
|
|
304
|
-
* @member {String} billing_anchor
|
|
305
|
-
*/
|
|
306
|
-
DtoSubscriptionResponse.prototype['billing_anchor'] = undefined;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* @member {module:model/TypesBillingCadence} billing_cadence
|
|
310
|
-
*/
|
|
311
|
-
DtoSubscriptionResponse.prototype['billing_cadence'] = undefined;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @member {module:model/TypesBillingCycle} billing_cycle
|
|
315
|
-
*/
|
|
316
|
-
DtoSubscriptionResponse.prototype['billing_cycle'] = undefined;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* @member {module:model/TypesBillingPeriod} billing_period
|
|
320
|
-
*/
|
|
321
|
-
DtoSubscriptionResponse.prototype['billing_period'] = undefined;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* BillingPeriodCount is the total number units of the billing period.
|
|
325
|
-
* @member {Number} billing_period_count
|
|
326
|
-
*/
|
|
327
|
-
DtoSubscriptionResponse.prototype['billing_period_count'] = undefined;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* CancelAt is the date the subscription will be canceled
|
|
331
|
-
* @member {String} cancel_at
|
|
332
|
-
*/
|
|
333
|
-
DtoSubscriptionResponse.prototype['cancel_at'] = undefined;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* CancelAtPeriodEnd is whether the subscription was canceled at the end of the current period
|
|
337
|
-
* @member {Boolean} cancel_at_period_end
|
|
338
|
-
*/
|
|
339
|
-
DtoSubscriptionResponse.prototype['cancel_at_period_end'] = undefined;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* CanceledAt is the date the subscription was canceled
|
|
343
|
-
* @member {String} cancelled_at
|
|
344
|
-
*/
|
|
345
|
-
DtoSubscriptionResponse.prototype['cancelled_at'] = undefined;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* @member {String} created_at
|
|
349
|
-
*/
|
|
350
|
-
DtoSubscriptionResponse.prototype['created_at'] = undefined;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @member {String} created_by
|
|
354
|
-
*/
|
|
355
|
-
DtoSubscriptionResponse.prototype['created_by'] = undefined;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Currency is the currency of the subscription in lowercase 3 digit ISO codes
|
|
359
|
-
* @member {String} currency
|
|
360
|
-
*/
|
|
361
|
-
DtoSubscriptionResponse.prototype['currency'] = undefined;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* CurrentPeriodEnd is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
|
|
365
|
-
* @member {String} current_period_end
|
|
366
|
-
*/
|
|
367
|
-
DtoSubscriptionResponse.prototype['current_period_end'] = undefined;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* CurrentPeriodStart is the end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
|
|
371
|
-
* @member {String} current_period_start
|
|
372
|
-
*/
|
|
373
|
-
DtoSubscriptionResponse.prototype['current_period_start'] = undefined;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* @member {module:model/DtoCustomerResponse} customer
|
|
377
|
-
*/
|
|
378
|
-
DtoSubscriptionResponse.prototype['customer'] = undefined;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* CustomerID is the identifier for the customer in our system
|
|
382
|
-
* @member {String} customer_id
|
|
383
|
-
*/
|
|
384
|
-
DtoSubscriptionResponse.prototype['customer_id'] = undefined;
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* EndDate is the end date of the subscription
|
|
388
|
-
* @member {String} end_date
|
|
389
|
-
*/
|
|
390
|
-
DtoSubscriptionResponse.prototype['end_date'] = undefined;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* EnvironmentID is the environment identifier for the subscription
|
|
394
|
-
* @member {String} environment_id
|
|
395
|
-
*/
|
|
396
|
-
DtoSubscriptionResponse.prototype['environment_id'] = undefined;
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* ID is the unique identifier for the subscription
|
|
400
|
-
* @member {String} id
|
|
401
|
-
*/
|
|
402
|
-
DtoSubscriptionResponse.prototype['id'] = undefined;
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @member {Array.<module:model/SubscriptionSubscriptionLineItem>} line_items
|
|
406
|
-
*/
|
|
407
|
-
DtoSubscriptionResponse.prototype['line_items'] = undefined;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* LookupKey is the key used to lookup the subscription in our system
|
|
411
|
-
* @member {String} lookup_key
|
|
412
|
-
*/
|
|
413
|
-
DtoSubscriptionResponse.prototype['lookup_key'] = undefined;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* @member {Object.<String, String>} metadata
|
|
417
|
-
*/
|
|
418
|
-
DtoSubscriptionResponse.prototype['metadata'] = undefined;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @member {module:model/TypesPauseStatus} pause_status
|
|
422
|
-
*/
|
|
423
|
-
DtoSubscriptionResponse.prototype['pause_status'] = undefined;
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @member {Array.<module:model/SubscriptionSubscriptionPause>} pauses
|
|
427
|
-
*/
|
|
428
|
-
DtoSubscriptionResponse.prototype['pauses'] = undefined;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @member {module:model/DtoPlanResponse} plan
|
|
432
|
-
*/
|
|
433
|
-
DtoSubscriptionResponse.prototype['plan'] = undefined;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* PlanID is the identifier for the plan in our system
|
|
437
|
-
* @member {String} plan_id
|
|
438
|
-
*/
|
|
439
|
-
DtoSubscriptionResponse.prototype['plan_id'] = undefined;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* StartDate is the start date of the subscription
|
|
443
|
-
* @member {String} start_date
|
|
444
|
-
*/
|
|
445
|
-
DtoSubscriptionResponse.prototype['start_date'] = undefined;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* @member {module:model/TypesStatus} status
|
|
449
|
-
*/
|
|
450
|
-
DtoSubscriptionResponse.prototype['status'] = undefined;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* @member {module:model/TypesSubscriptionStatus} subscription_status
|
|
454
|
-
*/
|
|
455
|
-
DtoSubscriptionResponse.prototype['subscription_status'] = undefined;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* @member {String} tenant_id
|
|
459
|
-
*/
|
|
460
|
-
DtoSubscriptionResponse.prototype['tenant_id'] = undefined;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* TrialEnd is the end date of the trial period
|
|
464
|
-
* @member {String} trial_end
|
|
465
|
-
*/
|
|
466
|
-
DtoSubscriptionResponse.prototype['trial_end'] = undefined;
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* TrialStart is the start date of the trial period
|
|
470
|
-
* @member {String} trial_start
|
|
471
|
-
*/
|
|
472
|
-
DtoSubscriptionResponse.prototype['trial_start'] = undefined;
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @member {String} updated_at
|
|
476
|
-
*/
|
|
477
|
-
DtoSubscriptionResponse.prototype['updated_at'] = undefined;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* @member {String} updated_by
|
|
481
|
-
*/
|
|
482
|
-
DtoSubscriptionResponse.prototype['updated_by'] = undefined;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Version is used for optimistic locking
|
|
486
|
-
* @member {Number} version
|
|
487
|
-
*/
|
|
488
|
-
DtoSubscriptionResponse.prototype['version'] = undefined;
|
|
489
|
-
export default DtoSubscriptionResponse;
|
|
@@ -1,148 +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 PricePrice from './PricePrice';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The DtoSubscriptionUsageByMetersResponse model module.
|
|
19
|
-
* @module model/DtoSubscriptionUsageByMetersResponse
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoSubscriptionUsageByMetersResponse {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoSubscriptionUsageByMetersResponse</code>.
|
|
25
|
-
* @alias module:model/DtoSubscriptionUsageByMetersResponse
|
|
26
|
-
*/
|
|
27
|
-
constructor() {
|
|
28
|
-
DtoSubscriptionUsageByMetersResponse.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>DtoSubscriptionUsageByMetersResponse</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/DtoSubscriptionUsageByMetersResponse} obj Optional instance to populate.
|
|
43
|
-
* @return {module:model/DtoSubscriptionUsageByMetersResponse} The populated <code>DtoSubscriptionUsageByMetersResponse</code> instance.
|
|
44
|
-
*/
|
|
45
|
-
static constructFromObject(data, obj) {
|
|
46
|
-
if (data) {
|
|
47
|
-
obj = obj || new DtoSubscriptionUsageByMetersResponse();
|
|
48
|
-
if (data.hasOwnProperty('amount')) {
|
|
49
|
-
obj['amount'] = ApiClient.convertToType(data['amount'], 'Number');
|
|
50
|
-
}
|
|
51
|
-
if (data.hasOwnProperty('currency')) {
|
|
52
|
-
obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
|
|
53
|
-
}
|
|
54
|
-
if (data.hasOwnProperty('display_amount')) {
|
|
55
|
-
obj['display_amount'] = ApiClient.convertToType(data['display_amount'], 'String');
|
|
56
|
-
}
|
|
57
|
-
if (data.hasOwnProperty('filter_values')) {
|
|
58
|
-
obj['filter_values'] = ApiClient.convertToType(data['filter_values'], {
|
|
59
|
-
'String': ['String']
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
if (data.hasOwnProperty('meter_display_name')) {
|
|
63
|
-
obj['meter_display_name'] = ApiClient.convertToType(data['meter_display_name'], 'String');
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('meter_id')) {
|
|
66
|
-
obj['meter_id'] = ApiClient.convertToType(data['meter_id'], 'String');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('price')) {
|
|
69
|
-
obj['price'] = PricePrice.constructFromObject(data['price']);
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('quantity')) {
|
|
72
|
-
obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return obj;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>DtoSubscriptionUsageByMetersResponse</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>DtoSubscriptionUsageByMetersResponse</code>.
|
|
82
|
-
*/
|
|
83
|
-
static validateJSON(data) {
|
|
84
|
-
// ensure the json data is a string
|
|
85
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
86
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
87
|
-
}
|
|
88
|
-
// ensure the json data is a string
|
|
89
|
-
if (data['display_amount'] && !(typeof data['display_amount'] === 'string' || data['display_amount'] instanceof String)) {
|
|
90
|
-
throw new Error("Expected the field `display_amount` to be a primitive type in the JSON string but got " + data['display_amount']);
|
|
91
|
-
}
|
|
92
|
-
// ensure the json data is a string
|
|
93
|
-
if (data['meter_display_name'] && !(typeof data['meter_display_name'] === 'string' || data['meter_display_name'] instanceof String)) {
|
|
94
|
-
throw new Error("Expected the field `meter_display_name` to be a primitive type in the JSON string but got " + data['meter_display_name']);
|
|
95
|
-
}
|
|
96
|
-
// ensure the json data is a string
|
|
97
|
-
if (data['meter_id'] && !(typeof data['meter_id'] === 'string' || data['meter_id'] instanceof String)) {
|
|
98
|
-
throw new Error("Expected the field `meter_id` to be a primitive type in the JSON string but got " + data['meter_id']);
|
|
99
|
-
}
|
|
100
|
-
// validate the optional field `price`
|
|
101
|
-
if (data['price']) {
|
|
102
|
-
// data not null
|
|
103
|
-
PricePrice.validateJSON(data['price']);
|
|
104
|
-
}
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @member {Number} amount
|
|
111
|
-
*/
|
|
112
|
-
DtoSubscriptionUsageByMetersResponse.prototype['amount'] = undefined;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @member {String} currency
|
|
116
|
-
*/
|
|
117
|
-
DtoSubscriptionUsageByMetersResponse.prototype['currency'] = undefined;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @member {String} display_amount
|
|
121
|
-
*/
|
|
122
|
-
DtoSubscriptionUsageByMetersResponse.prototype['display_amount'] = undefined;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @member {Object.<String, Array.<String>>} filter_values
|
|
126
|
-
*/
|
|
127
|
-
DtoSubscriptionUsageByMetersResponse.prototype['filter_values'] = undefined;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @member {String} meter_display_name
|
|
131
|
-
*/
|
|
132
|
-
DtoSubscriptionUsageByMetersResponse.prototype['meter_display_name'] = undefined;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @member {String} meter_id
|
|
136
|
-
*/
|
|
137
|
-
DtoSubscriptionUsageByMetersResponse.prototype['meter_id'] = undefined;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @member {module:model/PricePrice} price
|
|
141
|
-
*/
|
|
142
|
-
DtoSubscriptionUsageByMetersResponse.prototype['price'] = undefined;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @member {Number} quantity
|
|
146
|
-
*/
|
|
147
|
-
DtoSubscriptionUsageByMetersResponse.prototype['quantity'] = undefined;
|
|
148
|
-
export default DtoSubscriptionUsageByMetersResponse;
|