@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/AuthApi.js
DELETED
|
@@ -1,100 +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 DtoAuthResponse from '../model/DtoAuthResponse';
|
|
16
|
-
import DtoLoginRequest from '../model/DtoLoginRequest';
|
|
17
|
-
import DtoSignUpRequest from '../model/DtoSignUpRequest';
|
|
18
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Auth service.
|
|
22
|
-
* @module api/AuthApi
|
|
23
|
-
* @version 1.0
|
|
24
|
-
*/
|
|
25
|
-
export default class AuthApi {
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new AuthApi.
|
|
28
|
-
* @alias module:api/AuthApi
|
|
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 authLoginPost operation.
|
|
39
|
-
* @callback module:api/AuthApi~authLoginPostCallback
|
|
40
|
-
* @param {String} error Error message, if any.
|
|
41
|
-
* @param {module:model/DtoAuthResponse} data The data returned by the service call.
|
|
42
|
-
* @param {String} response The complete HTTP response.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Login
|
|
47
|
-
* Login a user
|
|
48
|
-
* @param {module:model/DtoLoginRequest} login Login request
|
|
49
|
-
* @param {module:api/AuthApi~authLoginPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
-
* data is of type: {@link module:model/DtoAuthResponse}
|
|
51
|
-
*/
|
|
52
|
-
authLoginPost(login, callback) {
|
|
53
|
-
let postBody = login;
|
|
54
|
-
// verify the required parameter 'login' is set
|
|
55
|
-
if (login === undefined || login === null) {
|
|
56
|
-
throw new Error("Missing the required parameter 'login' when calling authLoginPost");
|
|
57
|
-
}
|
|
58
|
-
let pathParams = {};
|
|
59
|
-
let queryParams = {};
|
|
60
|
-
let headerParams = {};
|
|
61
|
-
let formParams = {};
|
|
62
|
-
let authNames = [];
|
|
63
|
-
let contentTypes = ['application/json'];
|
|
64
|
-
let accepts = ['application/json'];
|
|
65
|
-
let returnType = DtoAuthResponse;
|
|
66
|
-
return this.apiClient.callApi('/auth/login', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Callback function to receive the result of the authSignupPost operation.
|
|
71
|
-
* @callback module:api/AuthApi~authSignupPostCallback
|
|
72
|
-
* @param {String} error Error message, if any.
|
|
73
|
-
* @param {module:model/DtoAuthResponse} data The data returned by the service call.
|
|
74
|
-
* @param {String} response The complete HTTP response.
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Sign up
|
|
79
|
-
* Sign up a new user
|
|
80
|
-
* @param {module:model/DtoSignUpRequest} signup Sign up request
|
|
81
|
-
* @param {module:api/AuthApi~authSignupPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
82
|
-
* data is of type: {@link module:model/DtoAuthResponse}
|
|
83
|
-
*/
|
|
84
|
-
authSignupPost(signup, callback) {
|
|
85
|
-
let postBody = signup;
|
|
86
|
-
// verify the required parameter 'signup' is set
|
|
87
|
-
if (signup === undefined || signup === null) {
|
|
88
|
-
throw new Error("Missing the required parameter 'signup' when calling authSignupPost");
|
|
89
|
-
}
|
|
90
|
-
let pathParams = {};
|
|
91
|
-
let queryParams = {};
|
|
92
|
-
let headerParams = {};
|
|
93
|
-
let formParams = {};
|
|
94
|
-
let authNames = [];
|
|
95
|
-
let contentTypes = ['application/json'];
|
|
96
|
-
let accepts = ['application/json'];
|
|
97
|
-
let returnType = DtoAuthResponse;
|
|
98
|
-
return this.apiClient.callApi('/auth/signup', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
99
|
-
}
|
|
100
|
-
}
|
package/dist/api/CustomersApi.js
DELETED
|
@@ -1,376 +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 DtoCreateCustomerRequest from '../model/DtoCreateCustomerRequest';
|
|
16
|
-
import DtoCustomerEntitlementsResponse from '../model/DtoCustomerEntitlementsResponse';
|
|
17
|
-
import DtoCustomerResponse from '../model/DtoCustomerResponse';
|
|
18
|
-
import DtoCustomerUsageSummaryResponse from '../model/DtoCustomerUsageSummaryResponse';
|
|
19
|
-
import DtoListCustomersResponse from '../model/DtoListCustomersResponse';
|
|
20
|
-
import DtoUpdateCustomerRequest from '../model/DtoUpdateCustomerRequest';
|
|
21
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
22
|
-
import TypesCustomerFilter from '../model/TypesCustomerFilter';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Customers service.
|
|
26
|
-
* @module api/CustomersApi
|
|
27
|
-
* @version 1.0
|
|
28
|
-
*/
|
|
29
|
-
export default class CustomersApi {
|
|
30
|
-
/**
|
|
31
|
-
* Constructs a new CustomersApi.
|
|
32
|
-
* @alias module:api/CustomersApi
|
|
33
|
-
* @class
|
|
34
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
35
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
36
|
-
*/
|
|
37
|
-
constructor(apiClient) {
|
|
38
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Callback function to receive the result of the customersGet operation.
|
|
43
|
-
* @callback module:api/CustomersApi~customersGetCallback
|
|
44
|
-
* @param {String} error Error message, if any.
|
|
45
|
-
* @param {module:model/DtoListCustomersResponse} data The data returned by the service call.
|
|
46
|
-
* @param {String} response The complete HTTP response.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Get customers
|
|
51
|
-
* Get customers
|
|
52
|
-
* @param {Object} opts Optional parameters
|
|
53
|
-
* @param {Array.<String>} [customerIds]
|
|
54
|
-
* @param {String} [email]
|
|
55
|
-
* @param {String} [endTime]
|
|
56
|
-
* @param {String} [expand]
|
|
57
|
-
* @param {String} [externalId]
|
|
58
|
-
* @param {Number} [limit]
|
|
59
|
-
* @param {Number} [offset]
|
|
60
|
-
* @param {module:model/String} [order]
|
|
61
|
-
* @param {String} [startTime]
|
|
62
|
-
* @param {module:model/String} [status]
|
|
63
|
-
* @param {module:api/CustomersApi~customersGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
64
|
-
* data is of type: {@link module:model/DtoListCustomersResponse}
|
|
65
|
-
*/
|
|
66
|
-
customersGet(opts, callback) {
|
|
67
|
-
opts = opts || {};
|
|
68
|
-
let postBody = null;
|
|
69
|
-
let pathParams = {};
|
|
70
|
-
let queryParams = {
|
|
71
|
-
'customer_ids': this.apiClient.buildCollectionParam(opts['customerIds'], 'csv'),
|
|
72
|
-
'email': opts['email'],
|
|
73
|
-
'end_time': opts['endTime'],
|
|
74
|
-
'expand': opts['expand'],
|
|
75
|
-
'external_id': opts['externalId'],
|
|
76
|
-
'limit': opts['limit'],
|
|
77
|
-
'offset': opts['offset'],
|
|
78
|
-
'order': opts['order'],
|
|
79
|
-
'start_time': opts['startTime'],
|
|
80
|
-
'status': opts['status']
|
|
81
|
-
};
|
|
82
|
-
let headerParams = {};
|
|
83
|
-
let formParams = {};
|
|
84
|
-
let authNames = ['ApiKeyAuth'];
|
|
85
|
-
let contentTypes = [];
|
|
86
|
-
let accepts = ['application/json'];
|
|
87
|
-
let returnType = DtoListCustomersResponse;
|
|
88
|
-
return this.apiClient.callApi('/customers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Callback function to receive the result of the customersIdDelete operation.
|
|
93
|
-
* @callback module:api/CustomersApi~customersIdDeleteCallback
|
|
94
|
-
* @param {String} error Error message, if any.
|
|
95
|
-
* @param data This operation does not return a value.
|
|
96
|
-
* @param {String} response The complete HTTP response.
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Delete a customer
|
|
101
|
-
* Delete a customer
|
|
102
|
-
* @param {String} id Customer ID
|
|
103
|
-
* @param {module:api/CustomersApi~customersIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
104
|
-
*/
|
|
105
|
-
customersIdDelete(id, callback) {
|
|
106
|
-
let postBody = null;
|
|
107
|
-
// verify the required parameter 'id' is set
|
|
108
|
-
if (id === undefined || id === null) {
|
|
109
|
-
throw new Error("Missing the required parameter 'id' when calling customersIdDelete");
|
|
110
|
-
}
|
|
111
|
-
let pathParams = {
|
|
112
|
-
'id': id
|
|
113
|
-
};
|
|
114
|
-
let queryParams = {};
|
|
115
|
-
let headerParams = {};
|
|
116
|
-
let formParams = {};
|
|
117
|
-
let authNames = ['ApiKeyAuth'];
|
|
118
|
-
let contentTypes = [];
|
|
119
|
-
let accepts = ['application/json'];
|
|
120
|
-
let returnType = null;
|
|
121
|
-
return this.apiClient.callApi('/customers/{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 customersIdEntitlementsGet operation.
|
|
126
|
-
* @callback module:api/CustomersApi~customersIdEntitlementsGetCallback
|
|
127
|
-
* @param {String} error Error message, if any.
|
|
128
|
-
* @param {module:model/DtoCustomerEntitlementsResponse} data The data returned by the service call.
|
|
129
|
-
* @param {String} response The complete HTTP response.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Get customer entitlements
|
|
134
|
-
* Get customer entitlements
|
|
135
|
-
* @param {String} id Customer ID
|
|
136
|
-
* @param {Object} opts Optional parameters
|
|
137
|
-
* @param {Array.<String>} [featureIds]
|
|
138
|
-
* @param {Array.<String>} [subscriptionIds]
|
|
139
|
-
* @param {module:api/CustomersApi~customersIdEntitlementsGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
140
|
-
* data is of type: {@link module:model/DtoCustomerEntitlementsResponse}
|
|
141
|
-
*/
|
|
142
|
-
customersIdEntitlementsGet(id, opts, callback) {
|
|
143
|
-
opts = opts || {};
|
|
144
|
-
let postBody = null;
|
|
145
|
-
// verify the required parameter 'id' is set
|
|
146
|
-
if (id === undefined || id === null) {
|
|
147
|
-
throw new Error("Missing the required parameter 'id' when calling customersIdEntitlementsGet");
|
|
148
|
-
}
|
|
149
|
-
let pathParams = {
|
|
150
|
-
'id': id
|
|
151
|
-
};
|
|
152
|
-
let queryParams = {
|
|
153
|
-
'feature_ids': this.apiClient.buildCollectionParam(opts['featureIds'], 'csv'),
|
|
154
|
-
'subscription_ids': this.apiClient.buildCollectionParam(opts['subscriptionIds'], 'csv')
|
|
155
|
-
};
|
|
156
|
-
let headerParams = {};
|
|
157
|
-
let formParams = {};
|
|
158
|
-
let authNames = ['ApiKeyAuth'];
|
|
159
|
-
let contentTypes = [];
|
|
160
|
-
let accepts = ['application/json'];
|
|
161
|
-
let returnType = DtoCustomerEntitlementsResponse;
|
|
162
|
-
return this.apiClient.callApi('/customers/{id}/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Callback function to receive the result of the customersIdGet operation.
|
|
167
|
-
* @callback module:api/CustomersApi~customersIdGetCallback
|
|
168
|
-
* @param {String} error Error message, if any.
|
|
169
|
-
* @param {module:model/DtoCustomerResponse} data The data returned by the service call.
|
|
170
|
-
* @param {String} response The complete HTTP response.
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Get a customer
|
|
175
|
-
* Get a customer
|
|
176
|
-
* @param {String} id Customer ID
|
|
177
|
-
* @param {module:api/CustomersApi~customersIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
178
|
-
* data is of type: {@link module:model/DtoCustomerResponse}
|
|
179
|
-
*/
|
|
180
|
-
customersIdGet(id, callback) {
|
|
181
|
-
let postBody = null;
|
|
182
|
-
// verify the required parameter 'id' is set
|
|
183
|
-
if (id === undefined || id === null) {
|
|
184
|
-
throw new Error("Missing the required parameter 'id' when calling customersIdGet");
|
|
185
|
-
}
|
|
186
|
-
let pathParams = {
|
|
187
|
-
'id': id
|
|
188
|
-
};
|
|
189
|
-
let queryParams = {};
|
|
190
|
-
let headerParams = {};
|
|
191
|
-
let formParams = {};
|
|
192
|
-
let authNames = ['ApiKeyAuth'];
|
|
193
|
-
let contentTypes = [];
|
|
194
|
-
let accepts = ['application/json'];
|
|
195
|
-
let returnType = DtoCustomerResponse;
|
|
196
|
-
return this.apiClient.callApi('/customers/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Callback function to receive the result of the customersIdPut operation.
|
|
201
|
-
* @callback module:api/CustomersApi~customersIdPutCallback
|
|
202
|
-
* @param {String} error Error message, if any.
|
|
203
|
-
* @param {module:model/DtoCustomerResponse} data The data returned by the service call.
|
|
204
|
-
* @param {String} response The complete HTTP response.
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Update a customer
|
|
209
|
-
* Update a customer
|
|
210
|
-
* @param {String} id Customer ID
|
|
211
|
-
* @param {module:model/DtoUpdateCustomerRequest} customer Customer
|
|
212
|
-
* @param {module:api/CustomersApi~customersIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
213
|
-
* data is of type: {@link module:model/DtoCustomerResponse}
|
|
214
|
-
*/
|
|
215
|
-
customersIdPut(id, customer, callback) {
|
|
216
|
-
let postBody = customer;
|
|
217
|
-
// verify the required parameter 'id' is set
|
|
218
|
-
if (id === undefined || id === null) {
|
|
219
|
-
throw new Error("Missing the required parameter 'id' when calling customersIdPut");
|
|
220
|
-
}
|
|
221
|
-
// verify the required parameter 'customer' is set
|
|
222
|
-
if (customer === undefined || customer === null) {
|
|
223
|
-
throw new Error("Missing the required parameter 'customer' when calling customersIdPut");
|
|
224
|
-
}
|
|
225
|
-
let pathParams = {
|
|
226
|
-
'id': id
|
|
227
|
-
};
|
|
228
|
-
let queryParams = {};
|
|
229
|
-
let headerParams = {};
|
|
230
|
-
let formParams = {};
|
|
231
|
-
let authNames = ['ApiKeyAuth'];
|
|
232
|
-
let contentTypes = ['application/json'];
|
|
233
|
-
let accepts = ['application/json'];
|
|
234
|
-
let returnType = DtoCustomerResponse;
|
|
235
|
-
return this.apiClient.callApi('/customers/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Callback function to receive the result of the customersIdUsageGet operation.
|
|
240
|
-
* @callback module:api/CustomersApi~customersIdUsageGetCallback
|
|
241
|
-
* @param {String} error Error message, if any.
|
|
242
|
-
* @param {module:model/DtoCustomerUsageSummaryResponse} data The data returned by the service call.
|
|
243
|
-
* @param {String} response The complete HTTP response.
|
|
244
|
-
*/
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Get customer usage summary
|
|
248
|
-
* Get customer usage summary
|
|
249
|
-
* @param {String} id Customer ID
|
|
250
|
-
* @param {Object} opts Optional parameters
|
|
251
|
-
* @param {Array.<String>} [featureIds]
|
|
252
|
-
* @param {Array.<String>} [subscriptionIds]
|
|
253
|
-
* @param {module:api/CustomersApi~customersIdUsageGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
254
|
-
* data is of type: {@link module:model/DtoCustomerUsageSummaryResponse}
|
|
255
|
-
*/
|
|
256
|
-
customersIdUsageGet(id, opts, callback) {
|
|
257
|
-
opts = opts || {};
|
|
258
|
-
let postBody = null;
|
|
259
|
-
// verify the required parameter 'id' is set
|
|
260
|
-
if (id === undefined || id === null) {
|
|
261
|
-
throw new Error("Missing the required parameter 'id' when calling customersIdUsageGet");
|
|
262
|
-
}
|
|
263
|
-
let pathParams = {
|
|
264
|
-
'id': id
|
|
265
|
-
};
|
|
266
|
-
let queryParams = {
|
|
267
|
-
'feature_ids': this.apiClient.buildCollectionParam(opts['featureIds'], 'csv'),
|
|
268
|
-
'subscription_ids': this.apiClient.buildCollectionParam(opts['subscriptionIds'], 'csv')
|
|
269
|
-
};
|
|
270
|
-
let headerParams = {};
|
|
271
|
-
let formParams = {};
|
|
272
|
-
let authNames = ['ApiKeyAuth'];
|
|
273
|
-
let contentTypes = [];
|
|
274
|
-
let accepts = ['application/json'];
|
|
275
|
-
let returnType = DtoCustomerUsageSummaryResponse;
|
|
276
|
-
return this.apiClient.callApi('/customers/{id}/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Callback function to receive the result of the customersLookupLookupKeyGet operation.
|
|
281
|
-
* @callback module:api/CustomersApi~customersLookupLookupKeyGetCallback
|
|
282
|
-
* @param {String} error Error message, if any.
|
|
283
|
-
* @param {module:model/DtoCustomerResponse} data The data returned by the service call.
|
|
284
|
-
* @param {String} response The complete HTTP response.
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Get a customer by lookup key
|
|
289
|
-
* Get a customer by lookup key (external_id)
|
|
290
|
-
* @param {String} lookupKey Customer Lookup Key (external_id)
|
|
291
|
-
* @param {module:api/CustomersApi~customersLookupLookupKeyGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
292
|
-
* data is of type: {@link module:model/DtoCustomerResponse}
|
|
293
|
-
*/
|
|
294
|
-
customersLookupLookupKeyGet(lookupKey, callback) {
|
|
295
|
-
let postBody = null;
|
|
296
|
-
// verify the required parameter 'lookupKey' is set
|
|
297
|
-
if (lookupKey === undefined || lookupKey === null) {
|
|
298
|
-
throw new Error("Missing the required parameter 'lookupKey' when calling customersLookupLookupKeyGet");
|
|
299
|
-
}
|
|
300
|
-
let pathParams = {
|
|
301
|
-
'lookup_key': lookupKey
|
|
302
|
-
};
|
|
303
|
-
let queryParams = {};
|
|
304
|
-
let headerParams = {};
|
|
305
|
-
let formParams = {};
|
|
306
|
-
let authNames = ['ApiKeyAuth'];
|
|
307
|
-
let contentTypes = [];
|
|
308
|
-
let accepts = ['application/json'];
|
|
309
|
-
let returnType = DtoCustomerResponse;
|
|
310
|
-
return this.apiClient.callApi('/customers/lookup/{lookup_key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Callback function to receive the result of the customersPost operation.
|
|
315
|
-
* @callback module:api/CustomersApi~customersPostCallback
|
|
316
|
-
* @param {String} error Error message, if any.
|
|
317
|
-
* @param {module:model/DtoCustomerResponse} data The data returned by the service call.
|
|
318
|
-
* @param {String} response The complete HTTP response.
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Create a customer
|
|
323
|
-
* Create a customer
|
|
324
|
-
* @param {module:model/DtoCreateCustomerRequest} customer Customer
|
|
325
|
-
* @param {module:api/CustomersApi~customersPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
326
|
-
* data is of type: {@link module:model/DtoCustomerResponse}
|
|
327
|
-
*/
|
|
328
|
-
customersPost(customer, callback) {
|
|
329
|
-
let postBody = customer;
|
|
330
|
-
// verify the required parameter 'customer' is set
|
|
331
|
-
if (customer === undefined || customer === null) {
|
|
332
|
-
throw new Error("Missing the required parameter 'customer' when calling customersPost");
|
|
333
|
-
}
|
|
334
|
-
let pathParams = {};
|
|
335
|
-
let queryParams = {};
|
|
336
|
-
let headerParams = {};
|
|
337
|
-
let formParams = {};
|
|
338
|
-
let authNames = ['ApiKeyAuth'];
|
|
339
|
-
let contentTypes = ['application/json'];
|
|
340
|
-
let accepts = ['application/json'];
|
|
341
|
-
let returnType = DtoCustomerResponse;
|
|
342
|
-
return this.apiClient.callApi('/customers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Callback function to receive the result of the customersSearchPost operation.
|
|
347
|
-
* @callback module:api/CustomersApi~customersSearchPostCallback
|
|
348
|
-
* @param {String} error Error message, if any.
|
|
349
|
-
* @param {module:model/DtoListCustomersResponse} data The data returned by the service call.
|
|
350
|
-
* @param {String} response The complete HTTP response.
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* List customers by filter
|
|
355
|
-
* List customers by filter
|
|
356
|
-
* @param {module:model/TypesCustomerFilter} filter Filter
|
|
357
|
-
* @param {module:api/CustomersApi~customersSearchPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
358
|
-
* data is of type: {@link module:model/DtoListCustomersResponse}
|
|
359
|
-
*/
|
|
360
|
-
customersSearchPost(filter, callback) {
|
|
361
|
-
let postBody = filter;
|
|
362
|
-
// verify the required parameter 'filter' is set
|
|
363
|
-
if (filter === undefined || filter === null) {
|
|
364
|
-
throw new Error("Missing the required parameter 'filter' when calling customersSearchPost");
|
|
365
|
-
}
|
|
366
|
-
let pathParams = {};
|
|
367
|
-
let queryParams = {};
|
|
368
|
-
let headerParams = {};
|
|
369
|
-
let formParams = {};
|
|
370
|
-
let authNames = ['ApiKeyAuth'];
|
|
371
|
-
let contentTypes = ['application/json'];
|
|
372
|
-
let accepts = ['application/json'];
|
|
373
|
-
let returnType = DtoListCustomersResponse;
|
|
374
|
-
return this.apiClient.callApi('/customers/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
375
|
-
}
|
|
376
|
-
}
|