@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
package/dist/api/PlansApi.js
DELETED
|
@@ -1,226 +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 DtoCreatePlanRequest from '../model/DtoCreatePlanRequest';
|
|
16
|
-
import DtoListPlansResponse from '../model/DtoListPlansResponse';
|
|
17
|
-
import DtoPlanResponse from '../model/DtoPlanResponse';
|
|
18
|
-
import DtoUpdatePlanRequest from '../model/DtoUpdatePlanRequest';
|
|
19
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Plans service.
|
|
23
|
-
* @module api/PlansApi
|
|
24
|
-
* @version 1.0
|
|
25
|
-
*/
|
|
26
|
-
export default class PlansApi {
|
|
27
|
-
/**
|
|
28
|
-
* Constructs a new PlansApi.
|
|
29
|
-
* @alias module:api/PlansApi
|
|
30
|
-
* @class
|
|
31
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
32
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
33
|
-
*/
|
|
34
|
-
constructor(apiClient) {
|
|
35
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Callback function to receive the result of the plansGet operation.
|
|
40
|
-
* @callback module:api/PlansApi~plansGetCallback
|
|
41
|
-
* @param {String} error Error message, if any.
|
|
42
|
-
* @param {module:model/DtoListPlansResponse} data The data returned by the service call.
|
|
43
|
-
* @param {String} response The complete HTTP response.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get plans
|
|
48
|
-
* Get plans with optional filtering
|
|
49
|
-
* @param {Object} opts Optional parameters
|
|
50
|
-
* @param {String} [endTime]
|
|
51
|
-
* @param {String} [expand]
|
|
52
|
-
* @param {Number} [limit]
|
|
53
|
-
* @param {Number} [offset]
|
|
54
|
-
* @param {module:model/String} [order]
|
|
55
|
-
* @param {Array.<String>} [planIds]
|
|
56
|
-
* @param {String} [sort]
|
|
57
|
-
* @param {String} [startTime]
|
|
58
|
-
* @param {module:model/String} [status]
|
|
59
|
-
* @param {module:api/PlansApi~plansGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
60
|
-
* data is of type: {@link module:model/DtoListPlansResponse}
|
|
61
|
-
*/
|
|
62
|
-
plansGet(opts, callback) {
|
|
63
|
-
opts = opts || {};
|
|
64
|
-
let postBody = null;
|
|
65
|
-
let pathParams = {};
|
|
66
|
-
let queryParams = {
|
|
67
|
-
'end_time': opts['endTime'],
|
|
68
|
-
'expand': opts['expand'],
|
|
69
|
-
'limit': opts['limit'],
|
|
70
|
-
'offset': opts['offset'],
|
|
71
|
-
'order': opts['order'],
|
|
72
|
-
'plan_ids': this.apiClient.buildCollectionParam(opts['planIds'], 'csv'),
|
|
73
|
-
'sort': opts['sort'],
|
|
74
|
-
'start_time': opts['startTime'],
|
|
75
|
-
'status': opts['status']
|
|
76
|
-
};
|
|
77
|
-
let headerParams = {};
|
|
78
|
-
let formParams = {};
|
|
79
|
-
let authNames = ['ApiKeyAuth'];
|
|
80
|
-
let contentTypes = [];
|
|
81
|
-
let accepts = ['application/json'];
|
|
82
|
-
let returnType = DtoListPlansResponse;
|
|
83
|
-
return this.apiClient.callApi('/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Callback function to receive the result of the plansIdDelete operation.
|
|
88
|
-
* @callback module:api/PlansApi~plansIdDeleteCallback
|
|
89
|
-
* @param {String} error Error message, if any.
|
|
90
|
-
* @param {Object.<String, {String: Object}>} data The data returned by the service call.
|
|
91
|
-
* @param {String} response The complete HTTP response.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Delete a plan
|
|
96
|
-
* Delete a plan by ID
|
|
97
|
-
* @param {String} id Plan ID
|
|
98
|
-
* @param {module:api/PlansApi~plansIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
99
|
-
* data is of type: {@link Object.<String, {String: Object}>}
|
|
100
|
-
*/
|
|
101
|
-
plansIdDelete(id, callback) {
|
|
102
|
-
let postBody = null;
|
|
103
|
-
// verify the required parameter 'id' is set
|
|
104
|
-
if (id === undefined || id === null) {
|
|
105
|
-
throw new Error("Missing the required parameter 'id' when calling plansIdDelete");
|
|
106
|
-
}
|
|
107
|
-
let pathParams = {
|
|
108
|
-
'id': id
|
|
109
|
-
};
|
|
110
|
-
let queryParams = {};
|
|
111
|
-
let headerParams = {};
|
|
112
|
-
let formParams = {};
|
|
113
|
-
let authNames = ['ApiKeyAuth'];
|
|
114
|
-
let contentTypes = [];
|
|
115
|
-
let accepts = ['application/json'];
|
|
116
|
-
let returnType = {
|
|
117
|
-
'String': Object
|
|
118
|
-
};
|
|
119
|
-
return this.apiClient.callApi('/plans/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Callback function to receive the result of the plansIdGet operation.
|
|
124
|
-
* @callback module:api/PlansApi~plansIdGetCallback
|
|
125
|
-
* @param {String} error Error message, if any.
|
|
126
|
-
* @param {module:model/DtoPlanResponse} data The data returned by the service call.
|
|
127
|
-
* @param {String} response The complete HTTP response.
|
|
128
|
-
*/
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Get a plan
|
|
132
|
-
* Get a plan by ID
|
|
133
|
-
* @param {String} id Plan ID
|
|
134
|
-
* @param {module:api/PlansApi~plansIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
135
|
-
* data is of type: {@link module:model/DtoPlanResponse}
|
|
136
|
-
*/
|
|
137
|
-
plansIdGet(id, callback) {
|
|
138
|
-
let postBody = null;
|
|
139
|
-
// verify the required parameter 'id' is set
|
|
140
|
-
if (id === undefined || id === null) {
|
|
141
|
-
throw new Error("Missing the required parameter 'id' when calling plansIdGet");
|
|
142
|
-
}
|
|
143
|
-
let pathParams = {
|
|
144
|
-
'id': id
|
|
145
|
-
};
|
|
146
|
-
let queryParams = {};
|
|
147
|
-
let headerParams = {};
|
|
148
|
-
let formParams = {};
|
|
149
|
-
let authNames = ['ApiKeyAuth'];
|
|
150
|
-
let contentTypes = [];
|
|
151
|
-
let accepts = ['application/json'];
|
|
152
|
-
let returnType = DtoPlanResponse;
|
|
153
|
-
return this.apiClient.callApi('/plans/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Callback function to receive the result of the plansIdPut operation.
|
|
158
|
-
* @callback module:api/PlansApi~plansIdPutCallback
|
|
159
|
-
* @param {String} error Error message, if any.
|
|
160
|
-
* @param {module:model/DtoPlanResponse} data The data returned by the service call.
|
|
161
|
-
* @param {String} response The complete HTTP response.
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Update a plan
|
|
166
|
-
* Update a plan by ID
|
|
167
|
-
* @param {String} id Plan ID
|
|
168
|
-
* @param {module:model/DtoUpdatePlanRequest} plan Plan update
|
|
169
|
-
* @param {module:api/PlansApi~plansIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
170
|
-
* data is of type: {@link module:model/DtoPlanResponse}
|
|
171
|
-
*/
|
|
172
|
-
plansIdPut(id, plan, callback) {
|
|
173
|
-
let postBody = plan;
|
|
174
|
-
// verify the required parameter 'id' is set
|
|
175
|
-
if (id === undefined || id === null) {
|
|
176
|
-
throw new Error("Missing the required parameter 'id' when calling plansIdPut");
|
|
177
|
-
}
|
|
178
|
-
// verify the required parameter 'plan' is set
|
|
179
|
-
if (plan === undefined || plan === null) {
|
|
180
|
-
throw new Error("Missing the required parameter 'plan' when calling plansIdPut");
|
|
181
|
-
}
|
|
182
|
-
let pathParams = {
|
|
183
|
-
'id': id
|
|
184
|
-
};
|
|
185
|
-
let queryParams = {};
|
|
186
|
-
let headerParams = {};
|
|
187
|
-
let formParams = {};
|
|
188
|
-
let authNames = ['ApiKeyAuth'];
|
|
189
|
-
let contentTypes = ['application/json'];
|
|
190
|
-
let accepts = ['application/json'];
|
|
191
|
-
let returnType = DtoPlanResponse;
|
|
192
|
-
return this.apiClient.callApi('/plans/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Callback function to receive the result of the plansPost operation.
|
|
197
|
-
* @callback module:api/PlansApi~plansPostCallback
|
|
198
|
-
* @param {String} error Error message, if any.
|
|
199
|
-
* @param {module:model/DtoPlanResponse} data The data returned by the service call.
|
|
200
|
-
* @param {String} response The complete HTTP response.
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Create a new plan
|
|
205
|
-
* Create a new plan with the specified configuration
|
|
206
|
-
* @param {module:model/DtoCreatePlanRequest} plan Plan configuration
|
|
207
|
-
* @param {module:api/PlansApi~plansPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
208
|
-
* data is of type: {@link module:model/DtoPlanResponse}
|
|
209
|
-
*/
|
|
210
|
-
plansPost(plan, callback) {
|
|
211
|
-
let postBody = plan;
|
|
212
|
-
// verify the required parameter 'plan' is set
|
|
213
|
-
if (plan === undefined || plan === null) {
|
|
214
|
-
throw new Error("Missing the required parameter 'plan' when calling plansPost");
|
|
215
|
-
}
|
|
216
|
-
let pathParams = {};
|
|
217
|
-
let queryParams = {};
|
|
218
|
-
let headerParams = {};
|
|
219
|
-
let formParams = {};
|
|
220
|
-
let authNames = ['ApiKeyAuth'];
|
|
221
|
-
let contentTypes = ['application/json'];
|
|
222
|
-
let accepts = ['application/json'];
|
|
223
|
-
let returnType = DtoPlanResponse;
|
|
224
|
-
return this.apiClient.callApi('/plans', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
225
|
-
}
|
|
226
|
-
}
|
package/dist/api/PricesApi.js
DELETED
|
@@ -1,228 +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 DtoCreatePriceRequest from '../model/DtoCreatePriceRequest';
|
|
16
|
-
import DtoListPricesResponse from '../model/DtoListPricesResponse';
|
|
17
|
-
import DtoPriceResponse from '../model/DtoPriceResponse';
|
|
18
|
-
import DtoUpdatePriceRequest from '../model/DtoUpdatePriceRequest';
|
|
19
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Prices service.
|
|
23
|
-
* @module api/PricesApi
|
|
24
|
-
* @version 1.0
|
|
25
|
-
*/
|
|
26
|
-
export default class PricesApi {
|
|
27
|
-
/**
|
|
28
|
-
* Constructs a new PricesApi.
|
|
29
|
-
* @alias module:api/PricesApi
|
|
30
|
-
* @class
|
|
31
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
32
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
33
|
-
*/
|
|
34
|
-
constructor(apiClient) {
|
|
35
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Callback function to receive the result of the pricesGet operation.
|
|
40
|
-
* @callback module:api/PricesApi~pricesGetCallback
|
|
41
|
-
* @param {String} error Error message, if any.
|
|
42
|
-
* @param {module:model/DtoListPricesResponse} data The data returned by the service call.
|
|
43
|
-
* @param {String} response The complete HTTP response.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get prices
|
|
48
|
-
* Get prices with the specified filter
|
|
49
|
-
* @param {Object} opts Optional parameters
|
|
50
|
-
* @param {String} [endTime]
|
|
51
|
-
* @param {String} [expand]
|
|
52
|
-
* @param {Number} [limit]
|
|
53
|
-
* @param {Number} [offset]
|
|
54
|
-
* @param {module:model/String} [order]
|
|
55
|
-
* @param {Array.<String>} [planIds]
|
|
56
|
-
* @param {Array.<String>} [priceIds]
|
|
57
|
-
* @param {String} [sort]
|
|
58
|
-
* @param {String} [startTime]
|
|
59
|
-
* @param {module:model/String} [status]
|
|
60
|
-
* @param {module:api/PricesApi~pricesGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
61
|
-
* data is of type: {@link module:model/DtoListPricesResponse}
|
|
62
|
-
*/
|
|
63
|
-
pricesGet(opts, callback) {
|
|
64
|
-
opts = opts || {};
|
|
65
|
-
let postBody = null;
|
|
66
|
-
let pathParams = {};
|
|
67
|
-
let queryParams = {
|
|
68
|
-
'end_time': opts['endTime'],
|
|
69
|
-
'expand': opts['expand'],
|
|
70
|
-
'limit': opts['limit'],
|
|
71
|
-
'offset': opts['offset'],
|
|
72
|
-
'order': opts['order'],
|
|
73
|
-
'plan_ids': this.apiClient.buildCollectionParam(opts['planIds'], 'csv'),
|
|
74
|
-
'price_ids': this.apiClient.buildCollectionParam(opts['priceIds'], 'csv'),
|
|
75
|
-
'sort': opts['sort'],
|
|
76
|
-
'start_time': opts['startTime'],
|
|
77
|
-
'status': opts['status']
|
|
78
|
-
};
|
|
79
|
-
let headerParams = {};
|
|
80
|
-
let formParams = {};
|
|
81
|
-
let authNames = ['ApiKeyAuth'];
|
|
82
|
-
let contentTypes = [];
|
|
83
|
-
let accepts = ['application/json'];
|
|
84
|
-
let returnType = DtoListPricesResponse;
|
|
85
|
-
return this.apiClient.callApi('/prices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Callback function to receive the result of the pricesIdDelete operation.
|
|
90
|
-
* @callback module:api/PricesApi~pricesIdDeleteCallback
|
|
91
|
-
* @param {String} error Error message, if any.
|
|
92
|
-
* @param {Object.<String, {String: Object}>} data The data returned by the service call.
|
|
93
|
-
* @param {String} response The complete HTTP response.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Delete a price
|
|
98
|
-
* Delete a price
|
|
99
|
-
* @param {String} id Price ID
|
|
100
|
-
* @param {module:api/PricesApi~pricesIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
101
|
-
* data is of type: {@link Object.<String, {String: Object}>}
|
|
102
|
-
*/
|
|
103
|
-
pricesIdDelete(id, callback) {
|
|
104
|
-
let postBody = null;
|
|
105
|
-
// verify the required parameter 'id' is set
|
|
106
|
-
if (id === undefined || id === null) {
|
|
107
|
-
throw new Error("Missing the required parameter 'id' when calling pricesIdDelete");
|
|
108
|
-
}
|
|
109
|
-
let pathParams = {
|
|
110
|
-
'id': id
|
|
111
|
-
};
|
|
112
|
-
let queryParams = {};
|
|
113
|
-
let headerParams = {};
|
|
114
|
-
let formParams = {};
|
|
115
|
-
let authNames = ['ApiKeyAuth'];
|
|
116
|
-
let contentTypes = [];
|
|
117
|
-
let accepts = ['application/json'];
|
|
118
|
-
let returnType = {
|
|
119
|
-
'String': Object
|
|
120
|
-
};
|
|
121
|
-
return this.apiClient.callApi('/prices/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Callback function to receive the result of the pricesIdGet operation.
|
|
126
|
-
* @callback module:api/PricesApi~pricesIdGetCallback
|
|
127
|
-
* @param {String} error Error message, if any.
|
|
128
|
-
* @param {module:model/DtoPriceResponse} data The data returned by the service call.
|
|
129
|
-
* @param {String} response The complete HTTP response.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Get a price by ID
|
|
134
|
-
* Get a price by ID
|
|
135
|
-
* @param {String} id Price ID
|
|
136
|
-
* @param {module:api/PricesApi~pricesIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
137
|
-
* data is of type: {@link module:model/DtoPriceResponse}
|
|
138
|
-
*/
|
|
139
|
-
pricesIdGet(id, callback) {
|
|
140
|
-
let postBody = null;
|
|
141
|
-
// verify the required parameter 'id' is set
|
|
142
|
-
if (id === undefined || id === null) {
|
|
143
|
-
throw new Error("Missing the required parameter 'id' when calling pricesIdGet");
|
|
144
|
-
}
|
|
145
|
-
let pathParams = {
|
|
146
|
-
'id': id
|
|
147
|
-
};
|
|
148
|
-
let queryParams = {};
|
|
149
|
-
let headerParams = {};
|
|
150
|
-
let formParams = {};
|
|
151
|
-
let authNames = ['ApiKeyAuth'];
|
|
152
|
-
let contentTypes = [];
|
|
153
|
-
let accepts = ['application/json'];
|
|
154
|
-
let returnType = DtoPriceResponse;
|
|
155
|
-
return this.apiClient.callApi('/prices/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Callback function to receive the result of the pricesIdPut operation.
|
|
160
|
-
* @callback module:api/PricesApi~pricesIdPutCallback
|
|
161
|
-
* @param {String} error Error message, if any.
|
|
162
|
-
* @param {module:model/DtoPriceResponse} data The data returned by the service call.
|
|
163
|
-
* @param {String} response The complete HTTP response.
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Update a price
|
|
168
|
-
* Update a price with the specified configuration
|
|
169
|
-
* @param {String} id Price ID
|
|
170
|
-
* @param {module:model/DtoUpdatePriceRequest} price Price configuration
|
|
171
|
-
* @param {module:api/PricesApi~pricesIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
172
|
-
* data is of type: {@link module:model/DtoPriceResponse}
|
|
173
|
-
*/
|
|
174
|
-
pricesIdPut(id, price, callback) {
|
|
175
|
-
let postBody = price;
|
|
176
|
-
// verify the required parameter 'id' is set
|
|
177
|
-
if (id === undefined || id === null) {
|
|
178
|
-
throw new Error("Missing the required parameter 'id' when calling pricesIdPut");
|
|
179
|
-
}
|
|
180
|
-
// verify the required parameter 'price' is set
|
|
181
|
-
if (price === undefined || price === null) {
|
|
182
|
-
throw new Error("Missing the required parameter 'price' when calling pricesIdPut");
|
|
183
|
-
}
|
|
184
|
-
let pathParams = {
|
|
185
|
-
'id': id
|
|
186
|
-
};
|
|
187
|
-
let queryParams = {};
|
|
188
|
-
let headerParams = {};
|
|
189
|
-
let formParams = {};
|
|
190
|
-
let authNames = ['ApiKeyAuth'];
|
|
191
|
-
let contentTypes = ['application/json'];
|
|
192
|
-
let accepts = ['application/json'];
|
|
193
|
-
let returnType = DtoPriceResponse;
|
|
194
|
-
return this.apiClient.callApi('/prices/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Callback function to receive the result of the pricesPost operation.
|
|
199
|
-
* @callback module:api/PricesApi~pricesPostCallback
|
|
200
|
-
* @param {String} error Error message, if any.
|
|
201
|
-
* @param {module:model/DtoPriceResponse} data The data returned by the service call.
|
|
202
|
-
* @param {String} response The complete HTTP response.
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Create a new price
|
|
207
|
-
* Create a new price with the specified configuration
|
|
208
|
-
* @param {module:model/DtoCreatePriceRequest} price Price configuration
|
|
209
|
-
* @param {module:api/PricesApi~pricesPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
210
|
-
* data is of type: {@link module:model/DtoPriceResponse}
|
|
211
|
-
*/
|
|
212
|
-
pricesPost(price, callback) {
|
|
213
|
-
let postBody = price;
|
|
214
|
-
// verify the required parameter 'price' is set
|
|
215
|
-
if (price === undefined || price === null) {
|
|
216
|
-
throw new Error("Missing the required parameter 'price' when calling pricesPost");
|
|
217
|
-
}
|
|
218
|
-
let pathParams = {};
|
|
219
|
-
let queryParams = {};
|
|
220
|
-
let headerParams = {};
|
|
221
|
-
let formParams = {};
|
|
222
|
-
let authNames = ['ApiKeyAuth'];
|
|
223
|
-
let contentTypes = ['application/json'];
|
|
224
|
-
let accepts = ['application/json'];
|
|
225
|
-
let returnType = DtoPriceResponse;
|
|
226
|
-
return this.apiClient.callApi('/prices', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
227
|
-
}
|
|
228
|
-
}
|
package/dist/api/SecretsApi.js
DELETED
|
@@ -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 DtoCreateAPIKeyRequest from '../model/DtoCreateAPIKeyRequest';
|
|
16
|
-
import DtoCreateAPIKeyResponse from '../model/DtoCreateAPIKeyResponse';
|
|
17
|
-
import DtoListSecretsResponse from '../model/DtoListSecretsResponse';
|
|
18
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Secrets service.
|
|
22
|
-
* @module api/SecretsApi
|
|
23
|
-
* @version 1.0
|
|
24
|
-
*/
|
|
25
|
-
export default class SecretsApi {
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new SecretsApi.
|
|
28
|
-
* @alias module:api/SecretsApi
|
|
29
|
-
* @class
|
|
30
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
-
*/
|
|
33
|
-
constructor(apiClient) {
|
|
34
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Callback function to receive the result of the secretsApiKeysGet operation.
|
|
39
|
-
* @callback module:api/SecretsApi~secretsApiKeysGetCallback
|
|
40
|
-
* @param {String} error Error message, if any.
|
|
41
|
-
* @param {module:model/DtoListSecretsResponse} data The data returned by the service call.
|
|
42
|
-
* @param {String} response The complete HTTP response.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* List API keys
|
|
47
|
-
* Get a paginated list of API keys
|
|
48
|
-
* @param {Object} opts Optional parameters
|
|
49
|
-
* @param {Number} [limit] Limit
|
|
50
|
-
* @param {Number} [offset] Offset
|
|
51
|
-
* @param {String} [status] Status (published/archived)
|
|
52
|
-
* @param {module:api/SecretsApi~secretsApiKeysGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
53
|
-
* data is of type: {@link module:model/DtoListSecretsResponse}
|
|
54
|
-
*/
|
|
55
|
-
secretsApiKeysGet(opts, callback) {
|
|
56
|
-
opts = opts || {};
|
|
57
|
-
let postBody = null;
|
|
58
|
-
let pathParams = {};
|
|
59
|
-
let queryParams = {
|
|
60
|
-
'limit': opts['limit'],
|
|
61
|
-
'offset': opts['offset'],
|
|
62
|
-
'status': opts['status']
|
|
63
|
-
};
|
|
64
|
-
let headerParams = {};
|
|
65
|
-
let formParams = {};
|
|
66
|
-
let authNames = [];
|
|
67
|
-
let contentTypes = [];
|
|
68
|
-
let accepts = ['application/json'];
|
|
69
|
-
let returnType = DtoListSecretsResponse;
|
|
70
|
-
return this.apiClient.callApi('/secrets/api/keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Callback function to receive the result of the secretsApiKeysIdDelete operation.
|
|
75
|
-
* @callback module:api/SecretsApi~secretsApiKeysIdDeleteCallback
|
|
76
|
-
* @param {String} error Error message, if any.
|
|
77
|
-
* @param data This operation does not return a value.
|
|
78
|
-
* @param {String} response The complete HTTP response.
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Delete an API key
|
|
83
|
-
* Delete an API key by ID
|
|
84
|
-
* @param {String} id API key ID
|
|
85
|
-
* @param {module:api/SecretsApi~secretsApiKeysIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
86
|
-
*/
|
|
87
|
-
secretsApiKeysIdDelete(id, callback) {
|
|
88
|
-
let postBody = null;
|
|
89
|
-
// verify the required parameter 'id' is set
|
|
90
|
-
if (id === undefined || id === null) {
|
|
91
|
-
throw new Error("Missing the required parameter 'id' when calling secretsApiKeysIdDelete");
|
|
92
|
-
}
|
|
93
|
-
let pathParams = {
|
|
94
|
-
'id': id
|
|
95
|
-
};
|
|
96
|
-
let queryParams = {};
|
|
97
|
-
let headerParams = {};
|
|
98
|
-
let formParams = {};
|
|
99
|
-
let authNames = [];
|
|
100
|
-
let contentTypes = [];
|
|
101
|
-
let accepts = ['application/json'];
|
|
102
|
-
let returnType = null;
|
|
103
|
-
return this.apiClient.callApi('/secrets/api/keys/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Callback function to receive the result of the secretsApiKeysPost operation.
|
|
108
|
-
* @callback module:api/SecretsApi~secretsApiKeysPostCallback
|
|
109
|
-
* @param {String} error Error message, if any.
|
|
110
|
-
* @param {module:model/DtoCreateAPIKeyResponse} data The data returned by the service call.
|
|
111
|
-
* @param {String} response The complete HTTP response.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Create a new API key
|
|
116
|
-
* Create a new API key with the specified type and permissions
|
|
117
|
-
* @param {module:model/DtoCreateAPIKeyRequest} request API key creation request
|
|
118
|
-
* @param {module:api/SecretsApi~secretsApiKeysPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
119
|
-
* data is of type: {@link module:model/DtoCreateAPIKeyResponse}
|
|
120
|
-
*/
|
|
121
|
-
secretsApiKeysPost(request, callback) {
|
|
122
|
-
let postBody = request;
|
|
123
|
-
// verify the required parameter 'request' is set
|
|
124
|
-
if (request === undefined || request === null) {
|
|
125
|
-
throw new Error("Missing the required parameter 'request' when calling secretsApiKeysPost");
|
|
126
|
-
}
|
|
127
|
-
let pathParams = {};
|
|
128
|
-
let queryParams = {};
|
|
129
|
-
let headerParams = {};
|
|
130
|
-
let formParams = {};
|
|
131
|
-
let authNames = [];
|
|
132
|
-
let contentTypes = ['application/json'];
|
|
133
|
-
let accepts = ['application/json'];
|
|
134
|
-
let returnType = DtoCreateAPIKeyResponse;
|
|
135
|
-
return this.apiClient.callApi('/secrets/api/keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
136
|
-
}
|
|
137
|
-
}
|