@flexprice/sdk 1.0.17 → 1.0.28
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,259 +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 DtoFeatureResponse from './DtoFeatureResponse';
|
|
16
|
-
import DtoPlanResponse from './DtoPlanResponse';
|
|
17
|
-
import TypesBillingPeriod from './TypesBillingPeriod';
|
|
18
|
-
import TypesFeatureType from './TypesFeatureType';
|
|
19
|
-
import TypesStatus from './TypesStatus';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The DtoEntitlementResponse model module.
|
|
23
|
-
* @module model/DtoEntitlementResponse
|
|
24
|
-
* @version 1.0
|
|
25
|
-
*/
|
|
26
|
-
class DtoEntitlementResponse {
|
|
27
|
-
/**
|
|
28
|
-
* Constructs a new <code>DtoEntitlementResponse</code>.
|
|
29
|
-
* @alias module:model/DtoEntitlementResponse
|
|
30
|
-
*/
|
|
31
|
-
constructor() {
|
|
32
|
-
DtoEntitlementResponse.initialize(this);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Initializes the fields of this object.
|
|
37
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
|
-
* Only for internal use.
|
|
39
|
-
*/
|
|
40
|
-
static initialize(obj) {}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a <code>DtoEntitlementResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
44
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
45
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
46
|
-
* @param {module:model/DtoEntitlementResponse} obj Optional instance to populate.
|
|
47
|
-
* @return {module:model/DtoEntitlementResponse} The populated <code>DtoEntitlementResponse</code> instance.
|
|
48
|
-
*/
|
|
49
|
-
static constructFromObject(data, obj) {
|
|
50
|
-
if (data) {
|
|
51
|
-
obj = obj || new DtoEntitlementResponse();
|
|
52
|
-
if (data.hasOwnProperty('created_at')) {
|
|
53
|
-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
|
|
54
|
-
}
|
|
55
|
-
if (data.hasOwnProperty('created_by')) {
|
|
56
|
-
obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String');
|
|
57
|
-
}
|
|
58
|
-
if (data.hasOwnProperty('environment_id')) {
|
|
59
|
-
obj['environment_id'] = ApiClient.convertToType(data['environment_id'], 'String');
|
|
60
|
-
}
|
|
61
|
-
if (data.hasOwnProperty('feature')) {
|
|
62
|
-
obj['feature'] = DtoFeatureResponse.constructFromObject(data['feature']);
|
|
63
|
-
}
|
|
64
|
-
if (data.hasOwnProperty('feature_id')) {
|
|
65
|
-
obj['feature_id'] = ApiClient.convertToType(data['feature_id'], 'String');
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('feature_type')) {
|
|
68
|
-
obj['feature_type'] = TypesFeatureType.constructFromObject(data['feature_type']);
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('id')) {
|
|
71
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty('is_enabled')) {
|
|
74
|
-
obj['is_enabled'] = ApiClient.convertToType(data['is_enabled'], 'Boolean');
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty('is_soft_limit')) {
|
|
77
|
-
obj['is_soft_limit'] = ApiClient.convertToType(data['is_soft_limit'], 'Boolean');
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty('plan')) {
|
|
80
|
-
obj['plan'] = DtoPlanResponse.constructFromObject(data['plan']);
|
|
81
|
-
}
|
|
82
|
-
if (data.hasOwnProperty('plan_id')) {
|
|
83
|
-
obj['plan_id'] = ApiClient.convertToType(data['plan_id'], 'String');
|
|
84
|
-
}
|
|
85
|
-
if (data.hasOwnProperty('static_value')) {
|
|
86
|
-
obj['static_value'] = ApiClient.convertToType(data['static_value'], 'String');
|
|
87
|
-
}
|
|
88
|
-
if (data.hasOwnProperty('status')) {
|
|
89
|
-
obj['status'] = TypesStatus.constructFromObject(data['status']);
|
|
90
|
-
}
|
|
91
|
-
if (data.hasOwnProperty('tenant_id')) {
|
|
92
|
-
obj['tenant_id'] = ApiClient.convertToType(data['tenant_id'], 'String');
|
|
93
|
-
}
|
|
94
|
-
if (data.hasOwnProperty('updated_at')) {
|
|
95
|
-
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
|
|
96
|
-
}
|
|
97
|
-
if (data.hasOwnProperty('updated_by')) {
|
|
98
|
-
obj['updated_by'] = ApiClient.convertToType(data['updated_by'], 'String');
|
|
99
|
-
}
|
|
100
|
-
if (data.hasOwnProperty('usage_limit')) {
|
|
101
|
-
obj['usage_limit'] = ApiClient.convertToType(data['usage_limit'], 'Number');
|
|
102
|
-
}
|
|
103
|
-
if (data.hasOwnProperty('usage_reset_period')) {
|
|
104
|
-
obj['usage_reset_period'] = TypesBillingPeriod.constructFromObject(data['usage_reset_period']);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return obj;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Validates the JSON data with respect to <code>DtoEntitlementResponse</code>.
|
|
112
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
113
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoEntitlementResponse</code>.
|
|
114
|
-
*/
|
|
115
|
-
static validateJSON(data) {
|
|
116
|
-
// ensure the json data is a string
|
|
117
|
-
if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) {
|
|
118
|
-
throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']);
|
|
119
|
-
}
|
|
120
|
-
// ensure the json data is a string
|
|
121
|
-
if (data['created_by'] && !(typeof data['created_by'] === 'string' || data['created_by'] instanceof String)) {
|
|
122
|
-
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data['created_by']);
|
|
123
|
-
}
|
|
124
|
-
// ensure the json data is a string
|
|
125
|
-
if (data['environment_id'] && !(typeof data['environment_id'] === 'string' || data['environment_id'] instanceof String)) {
|
|
126
|
-
throw new Error("Expected the field `environment_id` to be a primitive type in the JSON string but got " + data['environment_id']);
|
|
127
|
-
}
|
|
128
|
-
// validate the optional field `feature`
|
|
129
|
-
if (data['feature']) {
|
|
130
|
-
// data not null
|
|
131
|
-
DtoFeatureResponse.validateJSON(data['feature']);
|
|
132
|
-
}
|
|
133
|
-
// ensure the json data is a string
|
|
134
|
-
if (data['feature_id'] && !(typeof data['feature_id'] === 'string' || data['feature_id'] instanceof String)) {
|
|
135
|
-
throw new Error("Expected the field `feature_id` to be a primitive type in the JSON string but got " + data['feature_id']);
|
|
136
|
-
}
|
|
137
|
-
// ensure the json data is a string
|
|
138
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
139
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
140
|
-
}
|
|
141
|
-
// validate the optional field `plan`
|
|
142
|
-
if (data['plan']) {
|
|
143
|
-
// data not null
|
|
144
|
-
DtoPlanResponse.validateJSON(data['plan']);
|
|
145
|
-
}
|
|
146
|
-
// ensure the json data is a string
|
|
147
|
-
if (data['plan_id'] && !(typeof data['plan_id'] === 'string' || data['plan_id'] instanceof String)) {
|
|
148
|
-
throw new Error("Expected the field `plan_id` to be a primitive type in the JSON string but got " + data['plan_id']);
|
|
149
|
-
}
|
|
150
|
-
// ensure the json data is a string
|
|
151
|
-
if (data['static_value'] && !(typeof data['static_value'] === 'string' || data['static_value'] instanceof String)) {
|
|
152
|
-
throw new Error("Expected the field `static_value` to be a primitive type in the JSON string but got " + data['static_value']);
|
|
153
|
-
}
|
|
154
|
-
// ensure the json data is a string
|
|
155
|
-
if (data['tenant_id'] && !(typeof data['tenant_id'] === 'string' || data['tenant_id'] instanceof String)) {
|
|
156
|
-
throw new Error("Expected the field `tenant_id` to be a primitive type in the JSON string but got " + data['tenant_id']);
|
|
157
|
-
}
|
|
158
|
-
// ensure the json data is a string
|
|
159
|
-
if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) {
|
|
160
|
-
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
161
|
-
}
|
|
162
|
-
// ensure the json data is a string
|
|
163
|
-
if (data['updated_by'] && !(typeof data['updated_by'] === 'string' || data['updated_by'] instanceof String)) {
|
|
164
|
-
throw new Error("Expected the field `updated_by` to be a primitive type in the JSON string but got " + data['updated_by']);
|
|
165
|
-
}
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @member {String} created_at
|
|
172
|
-
*/
|
|
173
|
-
DtoEntitlementResponse.prototype['created_at'] = undefined;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @member {String} created_by
|
|
177
|
-
*/
|
|
178
|
-
DtoEntitlementResponse.prototype['created_by'] = undefined;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @member {String} environment_id
|
|
182
|
-
*/
|
|
183
|
-
DtoEntitlementResponse.prototype['environment_id'] = undefined;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @member {module:model/DtoFeatureResponse} feature
|
|
187
|
-
*/
|
|
188
|
-
DtoEntitlementResponse.prototype['feature'] = undefined;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @member {String} feature_id
|
|
192
|
-
*/
|
|
193
|
-
DtoEntitlementResponse.prototype['feature_id'] = undefined;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* @member {module:model/TypesFeatureType} feature_type
|
|
197
|
-
*/
|
|
198
|
-
DtoEntitlementResponse.prototype['feature_type'] = undefined;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @member {String} id
|
|
202
|
-
*/
|
|
203
|
-
DtoEntitlementResponse.prototype['id'] = undefined;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @member {Boolean} is_enabled
|
|
207
|
-
*/
|
|
208
|
-
DtoEntitlementResponse.prototype['is_enabled'] = undefined;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @member {Boolean} is_soft_limit
|
|
212
|
-
*/
|
|
213
|
-
DtoEntitlementResponse.prototype['is_soft_limit'] = undefined;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @member {module:model/DtoPlanResponse} plan
|
|
217
|
-
*/
|
|
218
|
-
DtoEntitlementResponse.prototype['plan'] = undefined;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* @member {String} plan_id
|
|
222
|
-
*/
|
|
223
|
-
DtoEntitlementResponse.prototype['plan_id'] = undefined;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @member {String} static_value
|
|
227
|
-
*/
|
|
228
|
-
DtoEntitlementResponse.prototype['static_value'] = undefined;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @member {module:model/TypesStatus} status
|
|
232
|
-
*/
|
|
233
|
-
DtoEntitlementResponse.prototype['status'] = undefined;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @member {String} tenant_id
|
|
237
|
-
*/
|
|
238
|
-
DtoEntitlementResponse.prototype['tenant_id'] = undefined;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @member {String} updated_at
|
|
242
|
-
*/
|
|
243
|
-
DtoEntitlementResponse.prototype['updated_at'] = undefined;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @member {String} updated_by
|
|
247
|
-
*/
|
|
248
|
-
DtoEntitlementResponse.prototype['updated_by'] = undefined;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @member {Number} usage_limit
|
|
252
|
-
*/
|
|
253
|
-
DtoEntitlementResponse.prototype['usage_limit'] = undefined;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @member {module:model/TypesBillingPeriod} usage_reset_period
|
|
257
|
-
*/
|
|
258
|
-
DtoEntitlementResponse.prototype['usage_reset_period'] = undefined;
|
|
259
|
-
export default DtoEntitlementResponse;
|
|
@@ -1,144 +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 DtoEntitlementSource model module.
|
|
18
|
-
* @module model/DtoEntitlementSource
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoEntitlementSource {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoEntitlementSource</code>.
|
|
24
|
-
* @alias module:model/DtoEntitlementSource
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoEntitlementSource.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>DtoEntitlementSource</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/DtoEntitlementSource} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoEntitlementSource} The populated <code>DtoEntitlementSource</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoEntitlementSource();
|
|
47
|
-
if (data.hasOwnProperty('entitlement_id')) {
|
|
48
|
-
obj['entitlement_id'] = ApiClient.convertToType(data['entitlement_id'], 'String');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('is_enabled')) {
|
|
51
|
-
obj['is_enabled'] = ApiClient.convertToType(data['is_enabled'], 'Boolean');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('plan_id')) {
|
|
54
|
-
obj['plan_id'] = ApiClient.convertToType(data['plan_id'], 'String');
|
|
55
|
-
}
|
|
56
|
-
if (data.hasOwnProperty('plan_name')) {
|
|
57
|
-
obj['plan_name'] = ApiClient.convertToType(data['plan_name'], 'String');
|
|
58
|
-
}
|
|
59
|
-
if (data.hasOwnProperty('quantity')) {
|
|
60
|
-
obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number');
|
|
61
|
-
}
|
|
62
|
-
if (data.hasOwnProperty('static_value')) {
|
|
63
|
-
obj['static_value'] = ApiClient.convertToType(data['static_value'], 'String');
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('subscription_id')) {
|
|
66
|
-
obj['subscription_id'] = ApiClient.convertToType(data['subscription_id'], 'String');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('usage_limit')) {
|
|
69
|
-
obj['usage_limit'] = ApiClient.convertToType(data['usage_limit'], 'Number');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return obj;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Validates the JSON data with respect to <code>DtoEntitlementSource</code>.
|
|
77
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoEntitlementSource</code>.
|
|
79
|
-
*/
|
|
80
|
-
static validateJSON(data) {
|
|
81
|
-
// ensure the json data is a string
|
|
82
|
-
if (data['entitlement_id'] && !(typeof data['entitlement_id'] === 'string' || data['entitlement_id'] instanceof String)) {
|
|
83
|
-
throw new Error("Expected the field `entitlement_id` to be a primitive type in the JSON string but got " + data['entitlement_id']);
|
|
84
|
-
}
|
|
85
|
-
// ensure the json data is a string
|
|
86
|
-
if (data['plan_id'] && !(typeof data['plan_id'] === 'string' || data['plan_id'] instanceof String)) {
|
|
87
|
-
throw new Error("Expected the field `plan_id` to be a primitive type in the JSON string but got " + data['plan_id']);
|
|
88
|
-
}
|
|
89
|
-
// ensure the json data is a string
|
|
90
|
-
if (data['plan_name'] && !(typeof data['plan_name'] === 'string' || data['plan_name'] instanceof String)) {
|
|
91
|
-
throw new Error("Expected the field `plan_name` to be a primitive type in the JSON string but got " + data['plan_name']);
|
|
92
|
-
}
|
|
93
|
-
// ensure the json data is a string
|
|
94
|
-
if (data['static_value'] && !(typeof data['static_value'] === 'string' || data['static_value'] instanceof String)) {
|
|
95
|
-
throw new Error("Expected the field `static_value` to be a primitive type in the JSON string but got " + data['static_value']);
|
|
96
|
-
}
|
|
97
|
-
// ensure the json data is a string
|
|
98
|
-
if (data['subscription_id'] && !(typeof data['subscription_id'] === 'string' || data['subscription_id'] instanceof String)) {
|
|
99
|
-
throw new Error("Expected the field `subscription_id` to be a primitive type in the JSON string but got " + data['subscription_id']);
|
|
100
|
-
}
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @member {String} entitlement_id
|
|
107
|
-
*/
|
|
108
|
-
DtoEntitlementSource.prototype['entitlement_id'] = undefined;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @member {Boolean} is_enabled
|
|
112
|
-
*/
|
|
113
|
-
DtoEntitlementSource.prototype['is_enabled'] = undefined;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @member {String} plan_id
|
|
117
|
-
*/
|
|
118
|
-
DtoEntitlementSource.prototype['plan_id'] = undefined;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @member {String} plan_name
|
|
122
|
-
*/
|
|
123
|
-
DtoEntitlementSource.prototype['plan_name'] = undefined;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @member {Number} quantity
|
|
127
|
-
*/
|
|
128
|
-
DtoEntitlementSource.prototype['quantity'] = undefined;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @member {String} static_value
|
|
132
|
-
*/
|
|
133
|
-
DtoEntitlementSource.prototype['static_value'] = undefined;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @member {String} subscription_id
|
|
137
|
-
*/
|
|
138
|
-
DtoEntitlementSource.prototype['subscription_id'] = undefined;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @member {Number} usage_limit
|
|
142
|
-
*/
|
|
143
|
-
DtoEntitlementSource.prototype['usage_limit'] = undefined;
|
|
144
|
-
export default DtoEntitlementSource;
|
|
@@ -1,120 +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 DtoEnvironmentResponse model module.
|
|
18
|
-
* @module model/DtoEnvironmentResponse
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoEnvironmentResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoEnvironmentResponse</code>.
|
|
24
|
-
* @alias module:model/DtoEnvironmentResponse
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoEnvironmentResponse.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>DtoEnvironmentResponse</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/DtoEnvironmentResponse} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoEnvironmentResponse} The populated <code>DtoEnvironmentResponse</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoEnvironmentResponse();
|
|
47
|
-
if (data.hasOwnProperty('created_at')) {
|
|
48
|
-
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('id')) {
|
|
51
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('name')) {
|
|
54
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
55
|
-
}
|
|
56
|
-
if (data.hasOwnProperty('type')) {
|
|
57
|
-
obj['type'] = ApiClient.convertToType(data['type'], 'String');
|
|
58
|
-
}
|
|
59
|
-
if (data.hasOwnProperty('updated_at')) {
|
|
60
|
-
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return obj;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Validates the JSON data with respect to <code>DtoEnvironmentResponse</code>.
|
|
68
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoEnvironmentResponse</code>.
|
|
70
|
-
*/
|
|
71
|
-
static validateJSON(data) {
|
|
72
|
-
// ensure the json data is a string
|
|
73
|
-
if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) {
|
|
74
|
-
throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']);
|
|
75
|
-
}
|
|
76
|
-
// ensure the json data is a string
|
|
77
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
78
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
79
|
-
}
|
|
80
|
-
// ensure the json data is a string
|
|
81
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
82
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
83
|
-
}
|
|
84
|
-
// ensure the json data is a string
|
|
85
|
-
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
86
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
87
|
-
}
|
|
88
|
-
// ensure the json data is a string
|
|
89
|
-
if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) {
|
|
90
|
-
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
91
|
-
}
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @member {String} created_at
|
|
98
|
-
*/
|
|
99
|
-
DtoEnvironmentResponse.prototype['created_at'] = undefined;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @member {String} id
|
|
103
|
-
*/
|
|
104
|
-
DtoEnvironmentResponse.prototype['id'] = undefined;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @member {String} name
|
|
108
|
-
*/
|
|
109
|
-
DtoEnvironmentResponse.prototype['name'] = undefined;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @member {String} type
|
|
113
|
-
*/
|
|
114
|
-
DtoEnvironmentResponse.prototype['type'] = undefined;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @member {String} updated_at
|
|
118
|
-
*/
|
|
119
|
-
DtoEnvironmentResponse.prototype['updated_at'] = undefined;
|
|
120
|
-
export default DtoEnvironmentResponse;
|
package/dist/model/DtoEvent.js
DELETED
|
@@ -1,154 +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 DtoEvent model module.
|
|
18
|
-
* @module model/DtoEvent
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoEvent {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoEvent</code>.
|
|
24
|
-
* @alias module:model/DtoEvent
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoEvent.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>DtoEvent</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/DtoEvent} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoEvent} The populated <code>DtoEvent</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoEvent();
|
|
47
|
-
if (data.hasOwnProperty('customer_id')) {
|
|
48
|
-
obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('environment_id')) {
|
|
51
|
-
obj['environment_id'] = ApiClient.convertToType(data['environment_id'], 'String');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('event_name')) {
|
|
54
|
-
obj['event_name'] = ApiClient.convertToType(data['event_name'], 'String');
|
|
55
|
-
}
|
|
56
|
-
if (data.hasOwnProperty('external_customer_id')) {
|
|
57
|
-
obj['external_customer_id'] = ApiClient.convertToType(data['external_customer_id'], 'String');
|
|
58
|
-
}
|
|
59
|
-
if (data.hasOwnProperty('id')) {
|
|
60
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
61
|
-
}
|
|
62
|
-
if (data.hasOwnProperty('properties')) {
|
|
63
|
-
obj['properties'] = ApiClient.convertToType(data['properties'], {
|
|
64
|
-
'String': Object
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('source')) {
|
|
68
|
-
obj['source'] = ApiClient.convertToType(data['source'], 'String');
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('timestamp')) {
|
|
71
|
-
obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String');
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return obj;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Validates the JSON data with respect to <code>DtoEvent</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>DtoEvent</code>.
|
|
81
|
-
*/
|
|
82
|
-
static validateJSON(data) {
|
|
83
|
-
// ensure the json data is a string
|
|
84
|
-
if (data['customer_id'] && !(typeof data['customer_id'] === 'string' || data['customer_id'] instanceof String)) {
|
|
85
|
-
throw new Error("Expected the field `customer_id` to be a primitive type in the JSON string but got " + data['customer_id']);
|
|
86
|
-
}
|
|
87
|
-
// ensure the json data is a string
|
|
88
|
-
if (data['environment_id'] && !(typeof data['environment_id'] === 'string' || data['environment_id'] instanceof String)) {
|
|
89
|
-
throw new Error("Expected the field `environment_id` to be a primitive type in the JSON string but got " + data['environment_id']);
|
|
90
|
-
}
|
|
91
|
-
// ensure the json data is a string
|
|
92
|
-
if (data['event_name'] && !(typeof data['event_name'] === 'string' || data['event_name'] instanceof String)) {
|
|
93
|
-
throw new Error("Expected the field `event_name` to be a primitive type in the JSON string but got " + data['event_name']);
|
|
94
|
-
}
|
|
95
|
-
// ensure the json data is a string
|
|
96
|
-
if (data['external_customer_id'] && !(typeof data['external_customer_id'] === 'string' || data['external_customer_id'] instanceof String)) {
|
|
97
|
-
throw new Error("Expected the field `external_customer_id` to be a primitive type in the JSON string but got " + data['external_customer_id']);
|
|
98
|
-
}
|
|
99
|
-
// ensure the json data is a string
|
|
100
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
101
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
102
|
-
}
|
|
103
|
-
// ensure the json data is a string
|
|
104
|
-
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
105
|
-
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
|
|
106
|
-
}
|
|
107
|
-
// ensure the json data is a string
|
|
108
|
-
if (data['timestamp'] && !(typeof data['timestamp'] === 'string' || data['timestamp'] instanceof String)) {
|
|
109
|
-
throw new Error("Expected the field `timestamp` to be a primitive type in the JSON string but got " + data['timestamp']);
|
|
110
|
-
}
|
|
111
|
-
return true;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @member {String} customer_id
|
|
117
|
-
*/
|
|
118
|
-
DtoEvent.prototype['customer_id'] = undefined;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @member {String} environment_id
|
|
122
|
-
*/
|
|
123
|
-
DtoEvent.prototype['environment_id'] = undefined;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @member {String} event_name
|
|
127
|
-
*/
|
|
128
|
-
DtoEvent.prototype['event_name'] = undefined;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @member {String} external_customer_id
|
|
132
|
-
*/
|
|
133
|
-
DtoEvent.prototype['external_customer_id'] = undefined;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @member {String} id
|
|
137
|
-
*/
|
|
138
|
-
DtoEvent.prototype['id'] = undefined;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @member {Object.<String, Object>} properties
|
|
142
|
-
*/
|
|
143
|
-
DtoEvent.prototype['properties'] = undefined;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @member {String} source
|
|
147
|
-
*/
|
|
148
|
-
DtoEvent.prototype['source'] = undefined;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @member {String} timestamp
|
|
152
|
-
*/
|
|
153
|
-
DtoEvent.prototype['timestamp'] = undefined;
|
|
154
|
-
export default DtoEvent;
|