@flexprice/sdk 1.0.16 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +281 -200
- package/package.json +29 -41
- package/LICENSE +0 -663
- package/dist/ApiClient.js +0 -653
- package/dist/api/AuthApi.js +0 -100
- package/dist/api/CustomersApi.js +0 -376
- package/dist/api/EntitlementsApi.js +0 -267
- package/dist/api/EnvironmentsApi.js +0 -184
- package/dist/api/EventsApi.js +0 -238
- package/dist/api/FeaturesApi.js +0 -263
- package/dist/api/IntegrationsApi.js +0 -169
- package/dist/api/InvoicesApi.js +0 -419
- package/dist/api/PaymentsApi.js +0 -272
- package/dist/api/PlansApi.js +0 -226
- package/dist/api/PricesApi.js +0 -228
- package/dist/api/SecretsApi.js +0 -137
- package/dist/api/SubscriptionsApi.js +0 -353
- package/dist/api/TasksApi.js +0 -232
- package/dist/api/TenantsApi.js +0 -162
- package/dist/api/UsersApi.js +0 -61
- package/dist/api/WalletsApi.js +0 -392
- package/dist/index.js +0 -1102
- package/dist/model/DtoAddress.js +0 -132
- package/dist/model/DtoAggregatedEntitlement.js +0 -106
- package/dist/model/DtoAggregatedFeature.js +0 -109
- package/dist/model/DtoAuthResponse.js +0 -96
- package/dist/model/DtoBillingPeriodInfo.js +0 -97
- package/dist/model/DtoBulkIngestEventRequest.js +0 -91
- package/dist/model/DtoCreateAPIKeyRequest.js +0 -117
- package/dist/model/DtoCreateAPIKeyResponse.js +0 -86
- package/dist/model/DtoCreateCustomerRequest.js +0 -188
- package/dist/model/DtoCreateEntitlementRequest.js +0 -150
- package/dist/model/DtoCreateEnvironmentRequest.js +0 -96
- package/dist/model/DtoCreateFeatureRequest.js +0 -177
- package/dist/model/DtoCreateIntegrationRequest.js +0 -105
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +0 -206
- package/dist/model/DtoCreateInvoiceRequest.js +0 -289
- package/dist/model/DtoCreateMeterRequest.js +0 -144
- package/dist/model/DtoCreatePaymentRequest.js +0 -172
- package/dist/model/DtoCreatePlanEntitlementRequest.js +0 -150
- package/dist/model/DtoCreatePlanPriceRequest.js +0 -279
- package/dist/model/DtoCreatePlanRequest.js +0 -148
- package/dist/model/DtoCreatePriceRequest.js +0 -279
- package/dist/model/DtoCreatePriceTier.js +0 -102
- package/dist/model/DtoCreateSubscriptionRequest.js +0 -223
- package/dist/model/DtoCreateTaskRequest.js +0 -137
- package/dist/model/DtoCreateTenantRequest.js +0 -96
- package/dist/model/DtoCreateWalletRequest.js +0 -205
- package/dist/model/DtoCustomerEntitlementsResponse.js +0 -93
- package/dist/model/DtoCustomerInvoiceSummary.js +0 -148
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +0 -105
- package/dist/model/DtoCustomerResponse.js +0 -283
- package/dist/model/DtoCustomerUsageSummaryResponse.js +0 -121
- package/dist/model/DtoEntitlementResponse.js +0 -259
- package/dist/model/DtoEntitlementSource.js +0 -144
- package/dist/model/DtoEnvironmentResponse.js +0 -120
- package/dist/model/DtoEvent.js +0 -154
- package/dist/model/DtoFeatureResponse.js +0 -258
- package/dist/model/DtoFeatureUsageSummary.js +0 -135
- package/dist/model/DtoGetEventsRequest.js +0 -193
- package/dist/model/DtoGetEventsResponse.js +0 -129
- package/dist/model/DtoGetPreviewInvoiceRequest.js +0 -106
- package/dist/model/DtoGetUsageAnalyticsRequest.js +0 -156
- package/dist/model/DtoGetUsageAnalyticsResponse.js +0 -101
- package/dist/model/DtoGetUsageByMeterRequest.js +0 -149
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +0 -114
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +0 -137
- package/dist/model/DtoGetUsageRequest.js +0 -173
- package/dist/model/DtoGetUsageResponse.js +0 -110
- package/dist/model/DtoIngestEventRequest.js +0 -156
- package/dist/model/DtoInvoiceLineItemResponse.js +0 -326
- package/dist/model/DtoInvoiceResponse.js +0 -450
- package/dist/model/DtoLinkedIntegrationsResponse.js +0 -72
- package/dist/model/DtoListCustomersResponse.js +0 -95
- package/dist/model/DtoListEntitlementsResponse.js +0 -95
- package/dist/model/DtoListEnvironmentsResponse.js +0 -105
- package/dist/model/DtoListFeaturesResponse.js +0 -95
- package/dist/model/DtoListInvoicesResponse.js +0 -95
- package/dist/model/DtoListPaymentsResponse.js +0 -95
- package/dist/model/DtoListPlansResponse.js +0 -95
- package/dist/model/DtoListPricesResponse.js +0 -95
- package/dist/model/DtoListSecretsResponse.js +0 -95
- package/dist/model/DtoListSubscriptionPausesResponse.js +0 -89
- package/dist/model/DtoListSubscriptionsResponse.js +0 -95
- package/dist/model/DtoListTasksResponse.js +0 -95
- package/dist/model/DtoListWalletTransactionsResponse.js +0 -95
- package/dist/model/DtoLoginRequest.js +0 -108
- package/dist/model/DtoMeterResponse.js +0 -188
- package/dist/model/DtoPauseSubscriptionRequest.js +0 -141
- package/dist/model/DtoPaymentAttemptResponse.js +0 -174
- package/dist/model/DtoPaymentResponse.js +0 -314
- package/dist/model/DtoPlanResponse.js +0 -231
- package/dist/model/DtoPriceResponse.js +0 -373
- package/dist/model/DtoResumeSubscriptionRequest.js +0 -97
- package/dist/model/DtoSecretResponse.js +0 -183
- package/dist/model/DtoSignUpRequest.js +0 -118
- package/dist/model/DtoSubscriptionPauseResponse.js +0 -283
- package/dist/model/DtoSubscriptionResponse.js +0 -489
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +0 -148
- package/dist/model/DtoTaskResponse.js +0 -294
- package/dist/model/DtoTenantBillingDetails.js +0 -110
- package/dist/model/DtoTenantBillingUsage.js +0 -95
- package/dist/model/DtoTenantResponse.js +0 -134
- package/dist/model/DtoTopUpWalletRequest.js +0 -148
- package/dist/model/DtoUpdateCustomerRequest.js +0 -178
- package/dist/model/DtoUpdateEntitlementRequest.js +0 -105
- package/dist/model/DtoUpdateEnvironmentRequest.js +0 -84
- package/dist/model/DtoUpdateFeatureRequest.js +0 -139
- package/dist/model/DtoUpdatePaymentRequest.js +0 -82
- package/dist/model/DtoUpdatePaymentStatusRequest.js +0 -87
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +0 -163
- package/dist/model/DtoUpdatePlanPriceRequest.js +0 -292
- package/dist/model/DtoUpdatePlanRequest.js +0 -138
- package/dist/model/DtoUpdatePriceRequest.js +0 -94
- package/dist/model/DtoUpdateTaskStatusRequest.js +0 -79
- package/dist/model/DtoUpdateTenantRequest.js +0 -86
- package/dist/model/DtoUpdateWalletRequest.js +0 -133
- package/dist/model/DtoUsageAnalyticItem.js +0 -190
- package/dist/model/DtoUsageAnalyticPoint.js +0 -88
- package/dist/model/DtoUsageResult.js +0 -80
- package/dist/model/DtoUserResponse.js +0 -98
- package/dist/model/DtoWalletBalanceResponse.js +0 -336
- package/dist/model/DtoWalletResponse.js +0 -235
- package/dist/model/DtoWalletTransactionResponse.js +0 -221
- package/dist/model/ErrorsErrorDetail.js +0 -94
- package/dist/model/ErrorsErrorResponse.js +0 -82
- package/dist/model/GithubComFlexpriceFlexpriceInternalTypesValue.js +0 -112
- package/dist/model/MeterAggregation.js +0 -82
- package/dist/model/MeterFilter.js +0 -86
- package/dist/model/PriceJSONBTransformQuantity.js +0 -82
- package/dist/model/PricePrice.js +0 -359
- package/dist/model/PricePriceTier.js +0 -87
- package/dist/model/PriceTransformQuantity.js +0 -82
- package/dist/model/SubscriptionSubscriptionLineItem.js +0 -338
- package/dist/model/SubscriptionSubscriptionPause.js +0 -283
- package/dist/model/TypesAggregationType.js +0 -53
- package/dist/model/TypesAutoTopupTrigger.js +0 -41
- package/dist/model/TypesBillingCadence.js +0 -41
- package/dist/model/TypesBillingCycle.js +0 -41
- package/dist/model/TypesBillingModel.js +0 -47
- package/dist/model/TypesBillingPeriod.js +0 -65
- package/dist/model/TypesBillingTier.js +0 -41
- package/dist/model/TypesCustomerFilter.js +0 -230
- package/dist/model/TypesDataType.js +0 -53
- package/dist/model/TypesEntityType.js +0 -47
- package/dist/model/TypesFeatureFilter.js +0 -243
- package/dist/model/TypesFeatureType.js +0 -47
- package/dist/model/TypesFileType.js +0 -41
- package/dist/model/TypesFilterCondition.js +0 -104
- package/dist/model/TypesFilterOperatorType.js +0 -77
- package/dist/model/TypesInvoiceBillingReason.js +0 -53
- package/dist/model/TypesInvoiceCadence.js +0 -41
- package/dist/model/TypesInvoiceStatus.js +0 -47
- package/dist/model/TypesInvoiceType.js +0 -47
- package/dist/model/TypesPaginationResponse.js +0 -84
- package/dist/model/TypesPauseMode.js +0 -47
- package/dist/model/TypesPauseStatus.js +0 -59
- package/dist/model/TypesPaymentDestinationType.js +0 -35
- package/dist/model/TypesPaymentMethodType.js +0 -53
- package/dist/model/TypesPaymentStatus.js +0 -65
- package/dist/model/TypesPriceType.js +0 -41
- package/dist/model/TypesResetUsage.js +0 -41
- package/dist/model/TypesResumeMode.js +0 -47
- package/dist/model/TypesSecretProvider.js +0 -47
- package/dist/model/TypesSecretType.js +0 -47
- package/dist/model/TypesSortCondition.js +0 -81
- package/dist/model/TypesSortDirection.js +0 -41
- package/dist/model/TypesStatus.js +0 -47
- package/dist/model/TypesSubscriptionStatus.js +0 -77
- package/dist/model/TypesTaskStatus.js +0 -53
- package/dist/model/TypesTaskType.js +0 -41
- package/dist/model/TypesTransactionReason.js +0 -77
- package/dist/model/TypesTransactionStatus.js +0 -47
- package/dist/model/TypesTransactionType.js +0 -41
- package/dist/model/TypesWalletConfig.js +0 -74
- package/dist/model/TypesWalletConfigPriceType.js +0 -47
- package/dist/model/TypesWalletStatus.js +0 -47
- package/dist/model/TypesWalletTxReferenceType.js +0 -47
- package/dist/model/TypesWalletType.js +0 -41
- package/dist/model/TypesWindowSize.js +0 -47
|
@@ -1,138 +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 DtoUpdatePlanEntitlementRequest from './DtoUpdatePlanEntitlementRequest';
|
|
16
|
-
import DtoUpdatePlanPriceRequest from './DtoUpdatePlanPriceRequest';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The DtoUpdatePlanRequest model module.
|
|
20
|
-
* @module model/DtoUpdatePlanRequest
|
|
21
|
-
* @version 1.0
|
|
22
|
-
*/
|
|
23
|
-
class DtoUpdatePlanRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new <code>DtoUpdatePlanRequest</code>.
|
|
26
|
-
* @alias module:model/DtoUpdatePlanRequest
|
|
27
|
-
*/
|
|
28
|
-
constructor() {
|
|
29
|
-
DtoUpdatePlanRequest.initialize(this);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Initializes the fields of this object.
|
|
34
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
35
|
-
* Only for internal use.
|
|
36
|
-
*/
|
|
37
|
-
static initialize(obj) {}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Constructs a <code>DtoUpdatePlanRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
-
* @param {module:model/DtoUpdatePlanRequest} obj Optional instance to populate.
|
|
44
|
-
* @return {module:model/DtoUpdatePlanRequest} The populated <code>DtoUpdatePlanRequest</code> instance.
|
|
45
|
-
*/
|
|
46
|
-
static constructFromObject(data, obj) {
|
|
47
|
-
if (data) {
|
|
48
|
-
obj = obj || new DtoUpdatePlanRequest();
|
|
49
|
-
if (data.hasOwnProperty('description')) {
|
|
50
|
-
obj['description'] = ApiClient.convertToType(data['description'], 'String');
|
|
51
|
-
}
|
|
52
|
-
if (data.hasOwnProperty('entitlements')) {
|
|
53
|
-
obj['entitlements'] = ApiClient.convertToType(data['entitlements'], [DtoUpdatePlanEntitlementRequest]);
|
|
54
|
-
}
|
|
55
|
-
if (data.hasOwnProperty('lookup_key')) {
|
|
56
|
-
obj['lookup_key'] = ApiClient.convertToType(data['lookup_key'], 'String');
|
|
57
|
-
}
|
|
58
|
-
if (data.hasOwnProperty('name')) {
|
|
59
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
60
|
-
}
|
|
61
|
-
if (data.hasOwnProperty('prices')) {
|
|
62
|
-
obj['prices'] = ApiClient.convertToType(data['prices'], [DtoUpdatePlanPriceRequest]);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return obj;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Validates the JSON data with respect to <code>DtoUpdatePlanRequest</code>.
|
|
70
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
71
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUpdatePlanRequest</code>.
|
|
72
|
-
*/
|
|
73
|
-
static validateJSON(data) {
|
|
74
|
-
// ensure the json data is a string
|
|
75
|
-
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
76
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
77
|
-
}
|
|
78
|
-
if (data['entitlements']) {
|
|
79
|
-
// data not null
|
|
80
|
-
// ensure the json data is an array
|
|
81
|
-
if (!Array.isArray(data['entitlements'])) {
|
|
82
|
-
throw new Error("Expected the field `entitlements` to be an array in the JSON data but got " + data['entitlements']);
|
|
83
|
-
}
|
|
84
|
-
// validate the optional field `entitlements` (array)
|
|
85
|
-
for (const item of data['entitlements']) {
|
|
86
|
-
DtoUpdatePlanEntitlementRequest.validateJSON(item);
|
|
87
|
-
}
|
|
88
|
-
;
|
|
89
|
-
}
|
|
90
|
-
// ensure the json data is a string
|
|
91
|
-
if (data['lookup_key'] && !(typeof data['lookup_key'] === 'string' || data['lookup_key'] instanceof String)) {
|
|
92
|
-
throw new Error("Expected the field `lookup_key` to be a primitive type in the JSON string but got " + data['lookup_key']);
|
|
93
|
-
}
|
|
94
|
-
// ensure the json data is a string
|
|
95
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
96
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
97
|
-
}
|
|
98
|
-
if (data['prices']) {
|
|
99
|
-
// data not null
|
|
100
|
-
// ensure the json data is an array
|
|
101
|
-
if (!Array.isArray(data['prices'])) {
|
|
102
|
-
throw new Error("Expected the field `prices` to be an array in the JSON data but got " + data['prices']);
|
|
103
|
-
}
|
|
104
|
-
// validate the optional field `prices` (array)
|
|
105
|
-
for (const item of data['prices']) {
|
|
106
|
-
DtoUpdatePlanPriceRequest.validateJSON(item);
|
|
107
|
-
}
|
|
108
|
-
;
|
|
109
|
-
}
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @member {String} description
|
|
116
|
-
*/
|
|
117
|
-
DtoUpdatePlanRequest.prototype['description'] = undefined;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @member {Array.<module:model/DtoUpdatePlanEntitlementRequest>} entitlements
|
|
121
|
-
*/
|
|
122
|
-
DtoUpdatePlanRequest.prototype['entitlements'] = undefined;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @member {String} lookup_key
|
|
126
|
-
*/
|
|
127
|
-
DtoUpdatePlanRequest.prototype['lookup_key'] = undefined;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @member {String} name
|
|
131
|
-
*/
|
|
132
|
-
DtoUpdatePlanRequest.prototype['name'] = undefined;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @member {Array.<module:model/DtoUpdatePlanPriceRequest>} prices
|
|
136
|
-
*/
|
|
137
|
-
DtoUpdatePlanRequest.prototype['prices'] = undefined;
|
|
138
|
-
export default DtoUpdatePlanRequest;
|
|
@@ -1,94 +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 DtoUpdatePriceRequest model module.
|
|
18
|
-
* @module model/DtoUpdatePriceRequest
|
|
19
|
-
* @version 1.0
|
|
20
|
-
*/
|
|
21
|
-
class DtoUpdatePriceRequest {
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a new <code>DtoUpdatePriceRequest</code>.
|
|
24
|
-
* @alias module:model/DtoUpdatePriceRequest
|
|
25
|
-
*/
|
|
26
|
-
constructor() {
|
|
27
|
-
DtoUpdatePriceRequest.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>DtoUpdatePriceRequest</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/DtoUpdatePriceRequest} obj Optional instance to populate.
|
|
42
|
-
* @return {module:model/DtoUpdatePriceRequest} The populated <code>DtoUpdatePriceRequest</code> instance.
|
|
43
|
-
*/
|
|
44
|
-
static constructFromObject(data, obj) {
|
|
45
|
-
if (data) {
|
|
46
|
-
obj = obj || new DtoUpdatePriceRequest();
|
|
47
|
-
if (data.hasOwnProperty('description')) {
|
|
48
|
-
obj['description'] = ApiClient.convertToType(data['description'], 'String');
|
|
49
|
-
}
|
|
50
|
-
if (data.hasOwnProperty('lookup_key')) {
|
|
51
|
-
obj['lookup_key'] = ApiClient.convertToType(data['lookup_key'], 'String');
|
|
52
|
-
}
|
|
53
|
-
if (data.hasOwnProperty('metadata')) {
|
|
54
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], {
|
|
55
|
-
'String': 'String'
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return obj;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Validates the JSON data with respect to <code>DtoUpdatePriceRequest</code>.
|
|
64
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUpdatePriceRequest</code>.
|
|
66
|
-
*/
|
|
67
|
-
static validateJSON(data) {
|
|
68
|
-
// ensure the json data is a string
|
|
69
|
-
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
70
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
71
|
-
}
|
|
72
|
-
// ensure the json data is a string
|
|
73
|
-
if (data['lookup_key'] && !(typeof data['lookup_key'] === 'string' || data['lookup_key'] instanceof String)) {
|
|
74
|
-
throw new Error("Expected the field `lookup_key` to be a primitive type in the JSON string but got " + data['lookup_key']);
|
|
75
|
-
}
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @member {String} description
|
|
82
|
-
*/
|
|
83
|
-
DtoUpdatePriceRequest.prototype['description'] = undefined;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @member {String} lookup_key
|
|
87
|
-
*/
|
|
88
|
-
DtoUpdatePriceRequest.prototype['lookup_key'] = undefined;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @member {Object.<String, String>} metadata
|
|
92
|
-
*/
|
|
93
|
-
DtoUpdatePriceRequest.prototype['metadata'] = undefined;
|
|
94
|
-
export default DtoUpdatePriceRequest;
|
|
@@ -1,79 +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 TypesTaskStatus from './TypesTaskStatus';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The DtoUpdateTaskStatusRequest model module.
|
|
19
|
-
* @module model/DtoUpdateTaskStatusRequest
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoUpdateTaskStatusRequest {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoUpdateTaskStatusRequest</code>.
|
|
25
|
-
* @alias module:model/DtoUpdateTaskStatusRequest
|
|
26
|
-
* @param taskStatus {module:model/TypesTaskStatus}
|
|
27
|
-
*/
|
|
28
|
-
constructor(taskStatus) {
|
|
29
|
-
DtoUpdateTaskStatusRequest.initialize(this, taskStatus);
|
|
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, taskStatus) {
|
|
38
|
-
obj['task_status'] = taskStatus;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Constructs a <code>DtoUpdateTaskStatusRequest</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/DtoUpdateTaskStatusRequest} obj Optional instance to populate.
|
|
46
|
-
* @return {module:model/DtoUpdateTaskStatusRequest} The populated <code>DtoUpdateTaskStatusRequest</code> instance.
|
|
47
|
-
*/
|
|
48
|
-
static constructFromObject(data, obj) {
|
|
49
|
-
if (data) {
|
|
50
|
-
obj = obj || new DtoUpdateTaskStatusRequest();
|
|
51
|
-
if (data.hasOwnProperty('task_status')) {
|
|
52
|
-
obj['task_status'] = TypesTaskStatus.constructFromObject(data['task_status']);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return obj;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Validates the JSON data with respect to <code>DtoUpdateTaskStatusRequest</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>DtoUpdateTaskStatusRequest</code>.
|
|
62
|
-
*/
|
|
63
|
-
static validateJSON(data) {
|
|
64
|
-
// check to make sure all required properties are present in the JSON string
|
|
65
|
-
for (const property of DtoUpdateTaskStatusRequest.RequiredProperties) {
|
|
66
|
-
if (!data.hasOwnProperty(property)) {
|
|
67
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
DtoUpdateTaskStatusRequest.RequiredProperties = ["task_status"];
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @member {module:model/TypesTaskStatus} task_status
|
|
77
|
-
*/
|
|
78
|
-
DtoUpdateTaskStatusRequest.prototype['task_status'] = undefined;
|
|
79
|
-
export default DtoUpdateTaskStatusRequest;
|
|
@@ -1,86 +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 DtoUpdateTenantRequest model module.
|
|
19
|
-
* @module model/DtoUpdateTenantRequest
|
|
20
|
-
* @version 1.0
|
|
21
|
-
*/
|
|
22
|
-
class DtoUpdateTenantRequest {
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a new <code>DtoUpdateTenantRequest</code>.
|
|
25
|
-
* @alias module:model/DtoUpdateTenantRequest
|
|
26
|
-
*/
|
|
27
|
-
constructor() {
|
|
28
|
-
DtoUpdateTenantRequest.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>DtoUpdateTenantRequest</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/DtoUpdateTenantRequest} obj Optional instance to populate.
|
|
43
|
-
* @return {module:model/DtoUpdateTenantRequest} The populated <code>DtoUpdateTenantRequest</code> instance.
|
|
44
|
-
*/
|
|
45
|
-
static constructFromObject(data, obj) {
|
|
46
|
-
if (data) {
|
|
47
|
-
obj = obj || new DtoUpdateTenantRequest();
|
|
48
|
-
if (data.hasOwnProperty('billing_details')) {
|
|
49
|
-
obj['billing_details'] = DtoTenantBillingDetails.constructFromObject(data['billing_details']);
|
|
50
|
-
}
|
|
51
|
-
if (data.hasOwnProperty('name')) {
|
|
52
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return obj;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Validates the JSON data with respect to <code>DtoUpdateTenantRequest</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>DtoUpdateTenantRequest</code>.
|
|
62
|
-
*/
|
|
63
|
-
static validateJSON(data) {
|
|
64
|
-
// validate the optional field `billing_details`
|
|
65
|
-
if (data['billing_details']) {
|
|
66
|
-
// data not null
|
|
67
|
-
DtoTenantBillingDetails.validateJSON(data['billing_details']);
|
|
68
|
-
}
|
|
69
|
-
// ensure the json data is a string
|
|
70
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
71
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
72
|
-
}
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @member {module:model/DtoTenantBillingDetails} billing_details
|
|
79
|
-
*/
|
|
80
|
-
DtoUpdateTenantRequest.prototype['billing_details'] = undefined;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @member {String} name
|
|
84
|
-
*/
|
|
85
|
-
DtoUpdateTenantRequest.prototype['name'] = undefined;
|
|
86
|
-
export default DtoUpdateTenantRequest;
|
|
@@ -1,133 +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
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The DtoUpdateWalletRequest model module.
|
|
20
|
-
* @module model/DtoUpdateWalletRequest
|
|
21
|
-
* @version 1.0
|
|
22
|
-
*/
|
|
23
|
-
class DtoUpdateWalletRequest {
|
|
24
|
-
/**
|
|
25
|
-
* Constructs a new <code>DtoUpdateWalletRequest</code>.
|
|
26
|
-
* @alias module:model/DtoUpdateWalletRequest
|
|
27
|
-
*/
|
|
28
|
-
constructor() {
|
|
29
|
-
DtoUpdateWalletRequest.initialize(this);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Initializes the fields of this object.
|
|
34
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
35
|
-
* Only for internal use.
|
|
36
|
-
*/
|
|
37
|
-
static initialize(obj) {}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Constructs a <code>DtoUpdateWalletRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
-
* @param {module:model/DtoUpdateWalletRequest} obj Optional instance to populate.
|
|
44
|
-
* @return {module:model/DtoUpdateWalletRequest} The populated <code>DtoUpdateWalletRequest</code> instance.
|
|
45
|
-
*/
|
|
46
|
-
static constructFromObject(data, obj) {
|
|
47
|
-
if (data) {
|
|
48
|
-
obj = obj || new DtoUpdateWalletRequest();
|
|
49
|
-
if (data.hasOwnProperty('auto_topup_amount')) {
|
|
50
|
-
obj['auto_topup_amount'] = ApiClient.convertToType(data['auto_topup_amount'], 'Number');
|
|
51
|
-
}
|
|
52
|
-
if (data.hasOwnProperty('auto_topup_min_balance')) {
|
|
53
|
-
obj['auto_topup_min_balance'] = ApiClient.convertToType(data['auto_topup_min_balance'], 'Number');
|
|
54
|
-
}
|
|
55
|
-
if (data.hasOwnProperty('auto_topup_trigger')) {
|
|
56
|
-
obj['auto_topup_trigger'] = TypesAutoTopupTrigger.constructFromObject(data['auto_topup_trigger']);
|
|
57
|
-
}
|
|
58
|
-
if (data.hasOwnProperty('config')) {
|
|
59
|
-
obj['config'] = TypesWalletConfig.constructFromObject(data['config']);
|
|
60
|
-
}
|
|
61
|
-
if (data.hasOwnProperty('description')) {
|
|
62
|
-
obj['description'] = ApiClient.convertToType(data['description'], 'String');
|
|
63
|
-
}
|
|
64
|
-
if (data.hasOwnProperty('metadata')) {
|
|
65
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], {
|
|
66
|
-
'String': 'String'
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('name')) {
|
|
70
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return obj;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Validates the JSON data with respect to <code>DtoUpdateWalletRequest</code>.
|
|
78
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DtoUpdateWalletRequest</code>.
|
|
80
|
-
*/
|
|
81
|
-
static validateJSON(data) {
|
|
82
|
-
// validate the optional field `config`
|
|
83
|
-
if (data['config']) {
|
|
84
|
-
// data not null
|
|
85
|
-
TypesWalletConfig.validateJSON(data['config']);
|
|
86
|
-
}
|
|
87
|
-
// ensure the json data is a string
|
|
88
|
-
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
89
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
90
|
-
}
|
|
91
|
-
// ensure the json data is a string
|
|
92
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
93
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
94
|
-
}
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @member {Number} auto_topup_amount
|
|
101
|
-
*/
|
|
102
|
-
DtoUpdateWalletRequest.prototype['auto_topup_amount'] = undefined;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @member {Number} auto_topup_min_balance
|
|
106
|
-
*/
|
|
107
|
-
DtoUpdateWalletRequest.prototype['auto_topup_min_balance'] = undefined;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @member {module:model/TypesAutoTopupTrigger} auto_topup_trigger
|
|
111
|
-
*/
|
|
112
|
-
DtoUpdateWalletRequest.prototype['auto_topup_trigger'] = undefined;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @member {module:model/TypesWalletConfig} config
|
|
116
|
-
*/
|
|
117
|
-
DtoUpdateWalletRequest.prototype['config'] = undefined;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @member {String} description
|
|
121
|
-
*/
|
|
122
|
-
DtoUpdateWalletRequest.prototype['description'] = undefined;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @member {Object.<String, String>} metadata
|
|
126
|
-
*/
|
|
127
|
-
DtoUpdateWalletRequest.prototype['metadata'] = undefined;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @member {String} name
|
|
131
|
-
*/
|
|
132
|
-
DtoUpdateWalletRequest.prototype['name'] = undefined;
|
|
133
|
-
export default DtoUpdateWalletRequest;
|