@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,137 +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 TypesEntityType from './TypesEntityType';
|
|
16
|
-
import TypesFileType from './TypesFileType';
|
|
17
|
-
import TypesTaskType from './TypesTaskType';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The DtoCreateTaskRequest model module.
|
|
21
|
-
* @module model/DtoCreateTaskRequest
|
|
22
|
-
* @version 1.0
|
|
23
|
-
*/
|
|
24
|
-
class DtoCreateTaskRequest {
|
|
25
|
-
/**
|
|
26
|
-
* Constructs a new <code>DtoCreateTaskRequest</code>.
|
|
27
|
-
* @alias module:model/DtoCreateTaskRequest
|
|
28
|
-
* @param entityType {module:model/TypesEntityType}
|
|
29
|
-
* @param fileType {module:model/TypesFileType}
|
|
30
|
-
* @param fileUrl {String}
|
|
31
|
-
* @param taskType {module:model/TypesTaskType}
|
|
32
|
-
*/
|
|
33
|
-
constructor(entityType, fileType, fileUrl, taskType) {
|
|
34
|
-
DtoCreateTaskRequest.initialize(this, entityType, fileType, fileUrl, taskType);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Initializes the fields of this object.
|
|
39
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
|
-
* Only for internal use.
|
|
41
|
-
*/
|
|
42
|
-
static initialize(obj, entityType, fileType, fileUrl, taskType) {
|
|
43
|
-
obj['entity_type'] = entityType;
|
|
44
|
-
obj['file_type'] = fileType;
|
|
45
|
-
obj['file_url'] = fileUrl;
|
|
46
|
-
obj['task_type'] = taskType;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Constructs a <code>DtoCreateTaskRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
51
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
52
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
53
|
-
* @param {module:model/DtoCreateTaskRequest} obj Optional instance to populate.
|
|
54
|
-
* @return {module:model/DtoCreateTaskRequest} The populated <code>DtoCreateTaskRequest</code> instance.
|
|
55
|
-
*/
|
|
56
|
-
static constructFromObject(data, obj) {
|
|
57
|
-
if (data) {
|
|
58
|
-
obj = obj || new DtoCreateTaskRequest();
|
|
59
|
-
if (data.hasOwnProperty('entity_type')) {
|
|
60
|
-
obj['entity_type'] = TypesEntityType.constructFromObject(data['entity_type']);
|
|
61
|
-
}
|
|
62
|
-
if (data.hasOwnProperty('file_name')) {
|
|
63
|
-
obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String');
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('file_type')) {
|
|
66
|
-
obj['file_type'] = TypesFileType.constructFromObject(data['file_type']);
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('file_url')) {
|
|
69
|
-
obj['file_url'] = ApiClient.convertToType(data['file_url'], 'String');
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('metadata')) {
|
|
72
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], {
|
|
73
|
-
'String': Object
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty('task_type')) {
|
|
77
|
-
obj['task_type'] = TypesTaskType.constructFromObject(data['task_type']);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return obj;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Validates the JSON data with respect to <code>DtoCreateTaskRequest</code>.
|
|
85
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoCreateTaskRequest</code>.
|
|
87
|
-
*/
|
|
88
|
-
static validateJSON(data) {
|
|
89
|
-
// check to make sure all required properties are present in the JSON string
|
|
90
|
-
for (const property of DtoCreateTaskRequest.RequiredProperties) {
|
|
91
|
-
if (!data.hasOwnProperty(property)) {
|
|
92
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
// ensure the json data is a string
|
|
96
|
-
if (data['file_name'] && !(typeof data['file_name'] === 'string' || data['file_name'] instanceof String)) {
|
|
97
|
-
throw new Error("Expected the field `file_name` to be a primitive type in the JSON string but got " + data['file_name']);
|
|
98
|
-
}
|
|
99
|
-
// ensure the json data is a string
|
|
100
|
-
if (data['file_url'] && !(typeof data['file_url'] === 'string' || data['file_url'] instanceof String)) {
|
|
101
|
-
throw new Error("Expected the field `file_url` to be a primitive type in the JSON string but got " + data['file_url']);
|
|
102
|
-
}
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
DtoCreateTaskRequest.RequiredProperties = ["entity_type", "file_type", "file_url", "task_type"];
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @member {module:model/TypesEntityType} entity_type
|
|
110
|
-
*/
|
|
111
|
-
DtoCreateTaskRequest.prototype['entity_type'] = undefined;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @member {String} file_name
|
|
115
|
-
*/
|
|
116
|
-
DtoCreateTaskRequest.prototype['file_name'] = undefined;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @member {module:model/TypesFileType} file_type
|
|
120
|
-
*/
|
|
121
|
-
DtoCreateTaskRequest.prototype['file_type'] = undefined;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @member {String} file_url
|
|
125
|
-
*/
|
|
126
|
-
DtoCreateTaskRequest.prototype['file_url'] = undefined;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @member {Object.<String, Object>} metadata
|
|
130
|
-
*/
|
|
131
|
-
DtoCreateTaskRequest.prototype['metadata'] = undefined;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @member {module:model/TypesTaskType} task_type
|
|
135
|
-
*/
|
|
136
|
-
DtoCreateTaskRequest.prototype['task_type'] = undefined;
|
|
137
|
-
export default DtoCreateTaskRequest;
|
|
@@ -1,96 +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 DtoTenantBillingDetails from './DtoTenantBillingDetails';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The DtoCreateTenantRequest model module.
|
|
19
|
-
* @module model/DtoCreateTenantRequest
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoCreateTenantRequest {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoCreateTenantRequest</code>.
|
|
25
|
-
* @alias module:model/DtoCreateTenantRequest
|
|
26
|
-
* @param name {String}
|
|
27
|
-
*/
|
|
28
|
-
constructor(name) {
|
|
29
|
-
DtoCreateTenantRequest.initialize(this, name);
|
|
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, name) {
|
|
38
|
-
obj['name'] = name;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Constructs a <code>DtoCreateTenantRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
43
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
44
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
45
|
-
* @param {module:model/DtoCreateTenantRequest} obj Optional instance to populate.
|
|
46
|
-
* @return {module:model/DtoCreateTenantRequest} The populated <code>DtoCreateTenantRequest</code> instance.
|
|
47
|
-
*/
|
|
48
|
-
static constructFromObject(data, obj) {
|
|
49
|
-
if (data) {
|
|
50
|
-
obj = obj || new DtoCreateTenantRequest();
|
|
51
|
-
if (data.hasOwnProperty('billing_details')) {
|
|
52
|
-
obj['billing_details'] = DtoTenantBillingDetails.constructFromObject(data['billing_details']);
|
|
53
|
-
}
|
|
54
|
-
if (data.hasOwnProperty('name')) {
|
|
55
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return obj;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Validates the JSON data with respect to <code>DtoCreateTenantRequest</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>DtoCreateTenantRequest</code>.
|
|
65
|
-
*/
|
|
66
|
-
static validateJSON(data) {
|
|
67
|
-
// check to make sure all required properties are present in the JSON string
|
|
68
|
-
for (const property of DtoCreateTenantRequest.RequiredProperties) {
|
|
69
|
-
if (!data.hasOwnProperty(property)) {
|
|
70
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
// validate the optional field `billing_details`
|
|
74
|
-
if (data['billing_details']) {
|
|
75
|
-
// data not null
|
|
76
|
-
DtoTenantBillingDetails.validateJSON(data['billing_details']);
|
|
77
|
-
}
|
|
78
|
-
// ensure the json data is a string
|
|
79
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
80
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
81
|
-
}
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
DtoCreateTenantRequest.RequiredProperties = ["name"];
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @member {module:model/DtoTenantBillingDetails} billing_details
|
|
89
|
-
*/
|
|
90
|
-
DtoCreateTenantRequest.prototype['billing_details'] = undefined;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @member {String} name
|
|
94
|
-
*/
|
|
95
|
-
DtoCreateTenantRequest.prototype['name'] = undefined;
|
|
96
|
-
export default DtoCreateTenantRequest;
|
|
@@ -1,205 +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 TypesAutoTopupTrigger from './TypesAutoTopupTrigger';
|
|
16
|
-
import TypesWalletConfig from './TypesWalletConfig';
|
|
17
|
-
import TypesWalletType from './TypesWalletType';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The DtoCreateWalletRequest model module.
|
|
21
|
-
* @module model/DtoCreateWalletRequest
|
|
22
|
-
* @version 1.0
|
|
23
|
-
*/
|
|
24
|
-
class DtoCreateWalletRequest {
|
|
25
|
-
/**
|
|
26
|
-
* Constructs a new <code>DtoCreateWalletRequest</code>.
|
|
27
|
-
* @alias module:model/DtoCreateWalletRequest
|
|
28
|
-
* @param currency {String}
|
|
29
|
-
* @param customerId {String}
|
|
30
|
-
*/
|
|
31
|
-
constructor(currency, customerId) {
|
|
32
|
-
DtoCreateWalletRequest.initialize(this, currency, customerId);
|
|
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, currency, customerId) {
|
|
41
|
-
obj['currency'] = currency;
|
|
42
|
-
obj['customer_id'] = customerId;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Constructs a <code>DtoCreateWalletRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
48
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
49
|
-
* @param {module:model/DtoCreateWalletRequest} obj Optional instance to populate.
|
|
50
|
-
* @return {module:model/DtoCreateWalletRequest} The populated <code>DtoCreateWalletRequest</code> instance.
|
|
51
|
-
*/
|
|
52
|
-
static constructFromObject(data, obj) {
|
|
53
|
-
if (data) {
|
|
54
|
-
obj = obj || new DtoCreateWalletRequest();
|
|
55
|
-
if (data.hasOwnProperty('auto_topup_amount')) {
|
|
56
|
-
obj['auto_topup_amount'] = ApiClient.convertToType(data['auto_topup_amount'], 'Number');
|
|
57
|
-
}
|
|
58
|
-
if (data.hasOwnProperty('auto_topup_min_balance')) {
|
|
59
|
-
obj['auto_topup_min_balance'] = ApiClient.convertToType(data['auto_topup_min_balance'], 'Number');
|
|
60
|
-
}
|
|
61
|
-
if (data.hasOwnProperty('auto_topup_trigger')) {
|
|
62
|
-
obj['auto_topup_trigger'] = TypesAutoTopupTrigger.constructFromObject(data['auto_topup_trigger']);
|
|
63
|
-
}
|
|
64
|
-
if (data.hasOwnProperty('config')) {
|
|
65
|
-
obj['config'] = TypesWalletConfig.constructFromObject(data['config']);
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('conversion_rate')) {
|
|
68
|
-
obj['conversion_rate'] = ApiClient.convertToType(data['conversion_rate'], 'Number');
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('currency')) {
|
|
71
|
-
obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty('customer_id')) {
|
|
74
|
-
obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String');
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty('description')) {
|
|
77
|
-
obj['description'] = ApiClient.convertToType(data['description'], 'String');
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty('initial_credits_to_load')) {
|
|
80
|
-
obj['initial_credits_to_load'] = ApiClient.convertToType(data['initial_credits_to_load'], 'Number');
|
|
81
|
-
}
|
|
82
|
-
if (data.hasOwnProperty('initial_credits_to_load_expiry_date')) {
|
|
83
|
-
obj['initial_credits_to_load_expiry_date'] = ApiClient.convertToType(data['initial_credits_to_load_expiry_date'], 'Number');
|
|
84
|
-
}
|
|
85
|
-
if (data.hasOwnProperty('metadata')) {
|
|
86
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], {
|
|
87
|
-
'String': 'String'
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
if (data.hasOwnProperty('name')) {
|
|
91
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
92
|
-
}
|
|
93
|
-
if (data.hasOwnProperty('wallet_type')) {
|
|
94
|
-
obj['wallet_type'] = TypesWalletType.constructFromObject(data['wallet_type']);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return obj;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Validates the JSON data with respect to <code>DtoCreateWalletRequest</code>.
|
|
102
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
103
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoCreateWalletRequest</code>.
|
|
104
|
-
*/
|
|
105
|
-
static validateJSON(data) {
|
|
106
|
-
// check to make sure all required properties are present in the JSON string
|
|
107
|
-
for (const property of DtoCreateWalletRequest.RequiredProperties) {
|
|
108
|
-
if (!data.hasOwnProperty(property)) {
|
|
109
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
// validate the optional field `config`
|
|
113
|
-
if (data['config']) {
|
|
114
|
-
// data not null
|
|
115
|
-
TypesWalletConfig.validateJSON(data['config']);
|
|
116
|
-
}
|
|
117
|
-
// ensure the json data is a string
|
|
118
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
119
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
120
|
-
}
|
|
121
|
-
// ensure the json data is a string
|
|
122
|
-
if (data['customer_id'] && !(typeof data['customer_id'] === 'string' || data['customer_id'] instanceof String)) {
|
|
123
|
-
throw new Error("Expected the field `customer_id` to be a primitive type in the JSON string but got " + data['customer_id']);
|
|
124
|
-
}
|
|
125
|
-
// ensure the json data is a string
|
|
126
|
-
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
127
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
128
|
-
}
|
|
129
|
-
// ensure the json data is a string
|
|
130
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
131
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
132
|
-
}
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
DtoCreateWalletRequest.RequiredProperties = ["currency", "customer_id"];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @member {Number} auto_topup_amount
|
|
140
|
-
*/
|
|
141
|
-
DtoCreateWalletRequest.prototype['auto_topup_amount'] = undefined;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @member {Number} auto_topup_min_balance
|
|
145
|
-
*/
|
|
146
|
-
DtoCreateWalletRequest.prototype['auto_topup_min_balance'] = undefined;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @member {module:model/TypesAutoTopupTrigger} auto_topup_trigger
|
|
150
|
-
*/
|
|
151
|
-
DtoCreateWalletRequest.prototype['auto_topup_trigger'] = undefined;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @member {module:model/TypesWalletConfig} config
|
|
155
|
-
*/
|
|
156
|
-
DtoCreateWalletRequest.prototype['config'] = undefined;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* amount in the currency = number of credits * conversion_rate ex if conversion_rate is 1, then 1 USD = 1 credit ex if conversion_rate is 2, then 1 USD = 0.5 credits ex if conversion_rate is 0.5, then 1 USD = 2 credits
|
|
160
|
-
* @member {Number} conversion_rate
|
|
161
|
-
*/
|
|
162
|
-
DtoCreateWalletRequest.prototype['conversion_rate'] = undefined;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @member {String} currency
|
|
166
|
-
*/
|
|
167
|
-
DtoCreateWalletRequest.prototype['currency'] = undefined;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @member {String} customer_id
|
|
171
|
-
*/
|
|
172
|
-
DtoCreateWalletRequest.prototype['customer_id'] = undefined;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @member {String} description
|
|
176
|
-
*/
|
|
177
|
-
DtoCreateWalletRequest.prototype['description'] = undefined;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* initial_credits_to_load is the number of credits to load to the wallet if not provided, the wallet will be created with 0 balance NOTE: this is not the amount in the currency, but the number of credits
|
|
181
|
-
* @member {Number} initial_credits_to_load
|
|
182
|
-
*/
|
|
183
|
-
DtoCreateWalletRequest.prototype['initial_credits_to_load'] = undefined;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* initial_credits_to_load_expiry_date YYYYMMDD format in UTC timezone (optional to set nil means no expiry) for ex 20250101 means the credits will expire on 2025-01-01 00:00:00 UTC hence they will be available for use until 2024-12-31 23:59:59 UTC
|
|
187
|
-
* @member {Number} initial_credits_to_load_expiry_date
|
|
188
|
-
*/
|
|
189
|
-
DtoCreateWalletRequest.prototype['initial_credits_to_load_expiry_date'] = undefined;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @member {Object.<String, String>} metadata
|
|
193
|
-
*/
|
|
194
|
-
DtoCreateWalletRequest.prototype['metadata'] = undefined;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @member {String} name
|
|
198
|
-
*/
|
|
199
|
-
DtoCreateWalletRequest.prototype['name'] = undefined;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @member {module:model/TypesWalletType} wallet_type
|
|
203
|
-
*/
|
|
204
|
-
DtoCreateWalletRequest.prototype['wallet_type'] = undefined;
|
|
205
|
-
export default DtoCreateWalletRequest;
|
|
@@ -1,93 +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 DtoAggregatedFeature from './DtoAggregatedFeature';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The DtoCustomerEntitlementsResponse model module.
|
|
19
|
-
* @module model/DtoCustomerEntitlementsResponse
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoCustomerEntitlementsResponse {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoCustomerEntitlementsResponse</code>.
|
|
25
|
-
* @alias module:model/DtoCustomerEntitlementsResponse
|
|
26
|
-
*/
|
|
27
|
-
constructor() {
|
|
28
|
-
DtoCustomerEntitlementsResponse.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>DtoCustomerEntitlementsResponse</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/DtoCustomerEntitlementsResponse} obj Optional instance to populate.
|
|
43
|
-
* @return {module:model/DtoCustomerEntitlementsResponse} The populated <code>DtoCustomerEntitlementsResponse</code> instance.
|
|
44
|
-
*/
|
|
45
|
-
static constructFromObject(data, obj) {
|
|
46
|
-
if (data) {
|
|
47
|
-
obj = obj || new DtoCustomerEntitlementsResponse();
|
|
48
|
-
if (data.hasOwnProperty('customer_id')) {
|
|
49
|
-
obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String');
|
|
50
|
-
}
|
|
51
|
-
if (data.hasOwnProperty('features')) {
|
|
52
|
-
obj['features'] = ApiClient.convertToType(data['features'], [DtoAggregatedFeature]);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return obj;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Validates the JSON data with respect to <code>DtoCustomerEntitlementsResponse</code>.
|
|
60
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoCustomerEntitlementsResponse</code>.
|
|
62
|
-
*/
|
|
63
|
-
static validateJSON(data) {
|
|
64
|
-
// ensure the json data is a string
|
|
65
|
-
if (data['customer_id'] && !(typeof data['customer_id'] === 'string' || data['customer_id'] instanceof String)) {
|
|
66
|
-
throw new Error("Expected the field `customer_id` to be a primitive type in the JSON string but got " + data['customer_id']);
|
|
67
|
-
}
|
|
68
|
-
if (data['features']) {
|
|
69
|
-
// data not null
|
|
70
|
-
// ensure the json data is an array
|
|
71
|
-
if (!Array.isArray(data['features'])) {
|
|
72
|
-
throw new Error("Expected the field `features` to be an array in the JSON data but got " + data['features']);
|
|
73
|
-
}
|
|
74
|
-
// validate the optional field `features` (array)
|
|
75
|
-
for (const item of data['features']) {
|
|
76
|
-
DtoAggregatedFeature.validateJSON(item);
|
|
77
|
-
}
|
|
78
|
-
;
|
|
79
|
-
}
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @member {String} customer_id
|
|
86
|
-
*/
|
|
87
|
-
DtoCustomerEntitlementsResponse.prototype['customer_id'] = undefined;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @member {Array.<module:model/DtoAggregatedFeature>} features
|
|
91
|
-
*/
|
|
92
|
-
DtoCustomerEntitlementsResponse.prototype['features'] = undefined;
|
|
93
|
-
export default DtoCustomerEntitlementsResponse;
|
|
@@ -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
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The DtoCustomerInvoiceSummary model module.
|
|
18
|
-
* @module model/DtoCustomerInvoiceSummary
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoCustomerInvoiceSummary {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoCustomerInvoiceSummary</code>.
|
|
24
|
-
* @alias module:model/DtoCustomerInvoiceSummary
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoCustomerInvoiceSummary.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>DtoCustomerInvoiceSummary</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/DtoCustomerInvoiceSummary} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoCustomerInvoiceSummary} The populated <code>DtoCustomerInvoiceSummary</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoCustomerInvoiceSummary();
|
|
47
|
-
if (data.hasOwnProperty('currency')) {
|
|
48
|
-
obj['currency'] = ApiClient.convertToType(data['currency'], 'String');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('customer_id')) {
|
|
51
|
-
obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('overdue_invoice_count')) {
|
|
54
|
-
obj['overdue_invoice_count'] = ApiClient.convertToType(data['overdue_invoice_count'], 'Number');
|
|
55
|
-
}
|
|
56
|
-
if (data.hasOwnProperty('total_invoice_count')) {
|
|
57
|
-
obj['total_invoice_count'] = ApiClient.convertToType(data['total_invoice_count'], 'Number');
|
|
58
|
-
}
|
|
59
|
-
if (data.hasOwnProperty('total_overdue_amount')) {
|
|
60
|
-
obj['total_overdue_amount'] = ApiClient.convertToType(data['total_overdue_amount'], 'Number');
|
|
61
|
-
}
|
|
62
|
-
if (data.hasOwnProperty('total_revenue_amount')) {
|
|
63
|
-
obj['total_revenue_amount'] = ApiClient.convertToType(data['total_revenue_amount'], 'Number');
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('total_unpaid_amount')) {
|
|
66
|
-
obj['total_unpaid_amount'] = ApiClient.convertToType(data['total_unpaid_amount'], 'Number');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('unpaid_fixed_charges')) {
|
|
69
|
-
obj['unpaid_fixed_charges'] = ApiClient.convertToType(data['unpaid_fixed_charges'], 'Number');
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('unpaid_invoice_count')) {
|
|
72
|
-
obj['unpaid_invoice_count'] = ApiClient.convertToType(data['unpaid_invoice_count'], 'Number');
|
|
73
|
-
}
|
|
74
|
-
if (data.hasOwnProperty('unpaid_usage_charges')) {
|
|
75
|
-
obj['unpaid_usage_charges'] = ApiClient.convertToType(data['unpaid_usage_charges'], 'Number');
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return obj;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Validates the JSON data with respect to <code>DtoCustomerInvoiceSummary</code>.
|
|
83
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoCustomerInvoiceSummary</code>.
|
|
85
|
-
*/
|
|
86
|
-
static validateJSON(data) {
|
|
87
|
-
// ensure the json data is a string
|
|
88
|
-
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
89
|
-
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
90
|
-
}
|
|
91
|
-
// ensure the json data is a string
|
|
92
|
-
if (data['customer_id'] && !(typeof data['customer_id'] === 'string' || data['customer_id'] instanceof String)) {
|
|
93
|
-
throw new Error("Expected the field `customer_id` to be a primitive type in the JSON string but got " + data['customer_id']);
|
|
94
|
-
}
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @member {String} currency
|
|
101
|
-
*/
|
|
102
|
-
DtoCustomerInvoiceSummary.prototype['currency'] = undefined;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @member {String} customer_id
|
|
106
|
-
*/
|
|
107
|
-
DtoCustomerInvoiceSummary.prototype['customer_id'] = undefined;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @member {Number} overdue_invoice_count
|
|
111
|
-
*/
|
|
112
|
-
DtoCustomerInvoiceSummary.prototype['overdue_invoice_count'] = undefined;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @member {Number} total_invoice_count
|
|
116
|
-
*/
|
|
117
|
-
DtoCustomerInvoiceSummary.prototype['total_invoice_count'] = undefined;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @member {Number} total_overdue_amount
|
|
121
|
-
*/
|
|
122
|
-
DtoCustomerInvoiceSummary.prototype['total_overdue_amount'] = undefined;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @member {Number} total_revenue_amount
|
|
126
|
-
*/
|
|
127
|
-
DtoCustomerInvoiceSummary.prototype['total_revenue_amount'] = undefined;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @member {Number} total_unpaid_amount
|
|
131
|
-
*/
|
|
132
|
-
DtoCustomerInvoiceSummary.prototype['total_unpaid_amount'] = undefined;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @member {Number} unpaid_fixed_charges
|
|
136
|
-
*/
|
|
137
|
-
DtoCustomerInvoiceSummary.prototype['unpaid_fixed_charges'] = undefined;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @member {Number} unpaid_invoice_count
|
|
141
|
-
*/
|
|
142
|
-
DtoCustomerInvoiceSummary.prototype['unpaid_invoice_count'] = undefined;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @member {Number} unpaid_usage_charges
|
|
146
|
-
*/
|
|
147
|
-
DtoCustomerInvoiceSummary.prototype['unpaid_usage_charges'] = undefined;
|
|
148
|
-
export default DtoCustomerInvoiceSummary;
|