@emilgroup/customer-sdk-node 1.41.0 → 1.42.0
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/claims-api.ts +28 -28
- package/api/customers-api.ts +28 -28
- package/api/documents-api.ts +51 -34
- package/api/invoices-api.ts +28 -28
- package/api/leads-api.ts +32 -32
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +1 -0
- package/dist/api/claims-api.d.ts +20 -20
- package/dist/api/claims-api.js +18 -18
- package/dist/api/customers-api.d.ts +20 -20
- package/dist/api/customers-api.js +18 -18
- package/dist/api/documents-api.d.ts +33 -23
- package/dist/api/documents-api.js +31 -24
- package/dist/api/invoices-api.d.ts +20 -20
- package/dist/api/invoices-api.js +18 -18
- package/dist/api/leads-api.d.ts +24 -24
- package/dist/api/leads-api.js +22 -22
- package/dist/api/policies-api.d.ts +20 -20
- package/dist/api/policies-api.js +18 -18
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/base.d.ts +1 -0
- package/dist/base.js +1 -0
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/create-account-request-dto.d.ts +2 -8
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/customer-product-class.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
- package/dist/models/upload-account-documents-request-dto.js +19 -0
- package/models/account-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/create-account-request-dto.ts +2 -8
- package/models/customer-product-class.ts +2 -2
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
package/api/products-api.ts
CHANGED
|
@@ -83,18 +83,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
83
83
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
84
84
|
* @summary List available products
|
|
85
85
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
86
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
86
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
87
87
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
88
88
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
89
|
-
* @param {any} [
|
|
90
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
89
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
91
90
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
92
91
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
92
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
93
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
94
|
* @param {*} [options] Override http request option.
|
|
95
95
|
* @throws {RequiredError}
|
|
96
96
|
*/
|
|
97
|
-
listProducts: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
97
|
+
listProducts: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
98
|
// verify required parameter 'customerCode' is not null or undefined
|
|
99
99
|
assertParamExists('listProducts', 'customerCode', customerCode)
|
|
100
100
|
const localVarPath = `/v1/customers/{customerCode}/products`
|
|
@@ -124,10 +124,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
124
124
|
localVarQueryParameter['filter'] = filter;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
if (filters !== undefined) {
|
|
128
|
-
localVarQueryParameter['filters'] = filters;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
127
|
if (search !== undefined) {
|
|
132
128
|
localVarQueryParameter['search'] = search;
|
|
133
129
|
}
|
|
@@ -140,6 +136,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
140
136
|
localVarQueryParameter['expand'] = expand;
|
|
141
137
|
}
|
|
142
138
|
|
|
139
|
+
if (filters !== undefined) {
|
|
140
|
+
localVarQueryParameter['filters'] = filters;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
143
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
144
144
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
145
|
}
|
|
@@ -182,19 +182,19 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
182
182
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
183
183
|
* @summary List available products
|
|
184
184
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
185
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
185
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
186
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
187
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
188
|
-
* @param {any} [
|
|
189
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
188
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
189
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
191
190
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
191
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
async listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
197
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter,
|
|
196
|
+
async listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
|
|
198
198
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
199
|
},
|
|
200
200
|
}
|
|
@@ -223,19 +223,19 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
223
223
|
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
224
224
|
* @summary List available products
|
|
225
225
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
226
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
226
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
227
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
228
228
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
229
|
-
* @param {any} [
|
|
230
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
229
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
231
230
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
232
231
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
232
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
233
233
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
234
234
|
* @param {*} [options] Override http request option.
|
|
235
235
|
* @throws {RequiredError}
|
|
236
236
|
*/
|
|
237
|
-
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
238
|
-
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter,
|
|
237
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
238
|
+
return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
|
|
239
239
|
},
|
|
240
240
|
};
|
|
241
241
|
};
|
|
@@ -282,7 +282,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
282
282
|
readonly customerCode: string
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
285
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
286
286
|
* @type {any}
|
|
287
287
|
* @memberof ProductsApiListProducts
|
|
288
288
|
*/
|
|
@@ -303,14 +303,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
303
303
|
readonly filter?: any
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
307
|
-
* @type {any}
|
|
308
|
-
* @memberof ProductsApiListProducts
|
|
309
|
-
*/
|
|
310
|
-
readonly filters?: any
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
306
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
314
307
|
* @type {any}
|
|
315
308
|
* @memberof ProductsApiListProducts
|
|
316
309
|
*/
|
|
@@ -330,6 +323,13 @@ export interface ProductsApiListProductsRequest {
|
|
|
330
323
|
*/
|
|
331
324
|
readonly expand?: any
|
|
332
325
|
|
|
326
|
+
/**
|
|
327
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
328
|
+
* @type {any}
|
|
329
|
+
* @memberof ProductsApiListProducts
|
|
330
|
+
*/
|
|
331
|
+
readonly filters?: any
|
|
332
|
+
|
|
333
333
|
/**
|
|
334
334
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
335
335
|
* @type {string}
|
|
@@ -366,6 +366,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
366
366
|
* @memberof ProductsApi
|
|
367
367
|
*/
|
|
368
368
|
public listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig) {
|
|
369
|
-
return ProductsApiFp(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
369
|
+
return ProductsApiFp(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
370
370
|
}
|
|
371
371
|
}
|
package/base.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface LoginClass {
|
|
|
48
48
|
export enum Environment {
|
|
49
49
|
Production = 'https://apiv2.emil.de',
|
|
50
50
|
Test = 'https://apiv2-test.emil.de',
|
|
51
|
+
Staging = 'https://apiv2-staging.emil.de',
|
|
51
52
|
Development = 'https://apiv2-dev.emil.de',
|
|
52
53
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
53
54
|
}
|
package/dist/api/claims-api.d.ts
CHANGED
|
@@ -50,17 +50,17 @@ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
50
50
|
* @summary List claims
|
|
51
51
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
52
52
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
53
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
54
54
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
55
55
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
56
|
-
* @param {any} [
|
|
57
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
56
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
58
57
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
59
58
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
59
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
|
-
listCustomerClaims: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
63
|
+
listCustomerClaims: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
64
|
/**
|
|
65
65
|
* Update claim for customer.
|
|
66
66
|
* @summary Update claim
|
|
@@ -114,17 +114,17 @@ export declare const ClaimsApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
* @summary List claims
|
|
115
115
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
116
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
118
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
119
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
-
* @param {any} [
|
|
121
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
120
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
122
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
123
122
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
123
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
127
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>>;
|
|
128
128
|
/**
|
|
129
129
|
* Update claim for customer.
|
|
130
130
|
* @summary Update claim
|
|
@@ -178,17 +178,17 @@ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?
|
|
|
178
178
|
* @summary List claims
|
|
179
179
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
180
180
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
181
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
182
182
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
183
183
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
184
|
-
* @param {any} [
|
|
185
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
184
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
186
185
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
187
186
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
187
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
188
188
|
* @param {*} [options] Override http request option.
|
|
189
189
|
* @throws {RequiredError}
|
|
190
190
|
*/
|
|
191
|
-
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
191
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass>;
|
|
192
192
|
/**
|
|
193
193
|
* Update claim for customer.
|
|
194
194
|
* @summary Update claim
|
|
@@ -281,7 +281,7 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
281
281
|
*/
|
|
282
282
|
readonly authorization?: string;
|
|
283
283
|
/**
|
|
284
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
284
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
285
285
|
* @type {any}
|
|
286
286
|
* @memberof ClaimsApiListCustomerClaims
|
|
287
287
|
*/
|
|
@@ -299,13 +299,7 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
299
299
|
*/
|
|
300
300
|
readonly filter?: any;
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
303
|
-
* @type {any}
|
|
304
|
-
* @memberof ClaimsApiListCustomerClaims
|
|
305
|
-
*/
|
|
306
|
-
readonly filters?: any;
|
|
307
|
-
/**
|
|
308
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
302
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
309
303
|
* @type {any}
|
|
310
304
|
* @memberof ClaimsApiListCustomerClaims
|
|
311
305
|
*/
|
|
@@ -322,6 +316,12 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
322
316
|
* @memberof ClaimsApiListCustomerClaims
|
|
323
317
|
*/
|
|
324
318
|
readonly expand?: any;
|
|
319
|
+
/**
|
|
320
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
321
|
+
* @type {any}
|
|
322
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
323
|
+
*/
|
|
324
|
+
readonly filters?: any;
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Request parameters for updateCustomerClaim operation in ClaimsApi.
|
package/dist/api/claims-api.js
CHANGED
|
@@ -206,17 +206,17 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
206
206
|
* @summary List claims
|
|
207
207
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
208
208
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
209
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
209
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
210
210
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
211
211
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
212
|
-
* @param {any} [
|
|
213
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
212
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
214
213
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
215
214
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
215
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
217
217
|
* @throws {RequiredError}
|
|
218
218
|
*/
|
|
219
|
-
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
219
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
220
220
|
if (options === void 0) { options = {}; }
|
|
221
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
222
222
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -251,9 +251,6 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
251
251
|
if (filter !== undefined) {
|
|
252
252
|
localVarQueryParameter['filter'] = filter;
|
|
253
253
|
}
|
|
254
|
-
if (filters !== undefined) {
|
|
255
|
-
localVarQueryParameter['filters'] = filters;
|
|
256
|
-
}
|
|
257
254
|
if (search !== undefined) {
|
|
258
255
|
localVarQueryParameter['search'] = search;
|
|
259
256
|
}
|
|
@@ -263,6 +260,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
263
260
|
if (expand !== undefined) {
|
|
264
261
|
localVarQueryParameter['expand'] = expand;
|
|
265
262
|
}
|
|
263
|
+
if (filters !== undefined) {
|
|
264
|
+
localVarQueryParameter['filters'] = filters;
|
|
265
|
+
}
|
|
266
266
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
267
267
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
268
|
}
|
|
@@ -450,22 +450,22 @@ var ClaimsApiFp = function (configuration) {
|
|
|
450
450
|
* @summary List claims
|
|
451
451
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
452
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
453
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
454
454
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
455
455
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
456
|
-
* @param {any} [
|
|
457
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
456
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
458
457
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
459
458
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
459
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
460
460
|
* @param {*} [options] Override http request option.
|
|
461
461
|
* @throws {RequiredError}
|
|
462
462
|
*/
|
|
463
|
-
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
463
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
464
464
|
return __awaiter(this, void 0, void 0, function () {
|
|
465
465
|
var localVarAxiosArgs;
|
|
466
466
|
return __generator(this, function (_a) {
|
|
467
467
|
switch (_a.label) {
|
|
468
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter,
|
|
468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
469
469
|
case 1:
|
|
470
470
|
localVarAxiosArgs = _a.sent();
|
|
471
471
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -558,18 +558,18 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
558
558
|
* @summary List claims
|
|
559
559
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
560
560
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
561
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
562
562
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
563
563
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
564
|
-
* @param {any} [
|
|
565
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
564
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
566
565
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
567
566
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
567
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
568
568
|
* @param {*} [options] Override http request option.
|
|
569
569
|
* @throws {RequiredError}
|
|
570
570
|
*/
|
|
571
|
-
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter,
|
|
572
|
-
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter,
|
|
571
|
+
listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
572
|
+
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
573
573
|
},
|
|
574
574
|
/**
|
|
575
575
|
* Update claim for customer.
|
|
@@ -645,7 +645,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
645
645
|
*/
|
|
646
646
|
ClaimsApi.prototype.listCustomerClaims = function (requestParameters, options) {
|
|
647
647
|
var _this = this;
|
|
648
|
-
return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
648
|
+
return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
649
649
|
};
|
|
650
650
|
/**
|
|
651
651
|
* Update claim for customer.
|
|
@@ -46,18 +46,18 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
46
46
|
/**
|
|
47
47
|
* Get customer list.
|
|
48
48
|
* @summary Get customers list
|
|
49
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
50
50
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
51
51
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
|
-
* @param {any} [
|
|
53
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
52
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
54
53
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
55
54
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
55
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
56
56
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
57
|
* @param {*} [options] Override http request option.
|
|
58
58
|
* @throws {RequiredError}
|
|
59
59
|
*/
|
|
60
|
-
listCustomers: (pageSize?: any, pageToken?: any, filter?: any,
|
|
60
|
+
listCustomers: (pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
61
|
/**
|
|
62
62
|
* Request a token to change the email address for the customer.
|
|
63
63
|
* @summary Request customer email change
|
|
@@ -114,18 +114,18 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
/**
|
|
115
115
|
* Get customer list.
|
|
116
116
|
* @summary Get customers list
|
|
117
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
118
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
119
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
-
* @param {any} [
|
|
121
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
120
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
122
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
123
122
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
123
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
124
124
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
listCustomers(pageSize?: any, pageToken?: any, filter?: any,
|
|
128
|
+
listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
129
129
|
/**
|
|
130
130
|
* Request a token to change the email address for the customer.
|
|
131
131
|
* @summary Request customer email change
|
|
@@ -182,18 +182,18 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
182
182
|
/**
|
|
183
183
|
* Get customer list.
|
|
184
184
|
* @summary Get customers list
|
|
185
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
185
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
186
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
187
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
188
|
-
* @param {any} [
|
|
189
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
188
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
189
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
191
190
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
191
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
listCustomers(pageSize?: any, pageToken?: any, filter?: any,
|
|
196
|
+
listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<object>;
|
|
197
197
|
/**
|
|
198
198
|
* Request a token to change the email address for the customer.
|
|
199
199
|
* @summary Request customer email change
|
|
@@ -269,7 +269,7 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
269
269
|
*/
|
|
270
270
|
export interface CustomersApiListCustomersRequest {
|
|
271
271
|
/**
|
|
272
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
272
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
273
273
|
* @type {any}
|
|
274
274
|
* @memberof CustomersApiListCustomers
|
|
275
275
|
*/
|
|
@@ -287,13 +287,7 @@ export interface CustomersApiListCustomersRequest {
|
|
|
287
287
|
*/
|
|
288
288
|
readonly filter?: any;
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
291
|
-
* @type {any}
|
|
292
|
-
* @memberof CustomersApiListCustomers
|
|
293
|
-
*/
|
|
294
|
-
readonly filters?: any;
|
|
295
|
-
/**
|
|
296
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
290
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
297
291
|
* @type {any}
|
|
298
292
|
* @memberof CustomersApiListCustomers
|
|
299
293
|
*/
|
|
@@ -310,6 +304,12 @@ export interface CustomersApiListCustomersRequest {
|
|
|
310
304
|
* @memberof CustomersApiListCustomers
|
|
311
305
|
*/
|
|
312
306
|
readonly expand?: any;
|
|
307
|
+
/**
|
|
308
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
309
|
+
* @type {any}
|
|
310
|
+
* @memberof CustomersApiListCustomers
|
|
311
|
+
*/
|
|
312
|
+
readonly filters?: any;
|
|
313
313
|
/**
|
|
314
314
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
315
|
* @type {string}
|
|
@@ -176,18 +176,18 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
176
176
|
/**
|
|
177
177
|
* Get customer list.
|
|
178
178
|
* @summary Get customers list
|
|
179
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
179
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
180
180
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
181
181
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
182
|
-
* @param {any} [
|
|
183
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
182
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
184
183
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
185
184
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
185
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
186
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
190
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
191
191
|
if (options === void 0) { options = {}; }
|
|
192
192
|
return __awaiter(_this, void 0, void 0, function () {
|
|
193
193
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -210,9 +210,6 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
if (filter !== undefined) {
|
|
211
211
|
localVarQueryParameter['filter'] = filter;
|
|
212
212
|
}
|
|
213
|
-
if (filters !== undefined) {
|
|
214
|
-
localVarQueryParameter['filters'] = filters;
|
|
215
|
-
}
|
|
216
213
|
if (search !== undefined) {
|
|
217
214
|
localVarQueryParameter['search'] = search;
|
|
218
215
|
}
|
|
@@ -222,6 +219,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
222
219
|
if (expand !== undefined) {
|
|
223
220
|
localVarQueryParameter['expand'] = expand;
|
|
224
221
|
}
|
|
222
|
+
if (filters !== undefined) {
|
|
223
|
+
localVarQueryParameter['filters'] = filters;
|
|
224
|
+
}
|
|
225
225
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
226
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
227
|
}
|
|
@@ -415,23 +415,23 @@ var CustomersApiFp = function (configuration) {
|
|
|
415
415
|
/**
|
|
416
416
|
* Get customer list.
|
|
417
417
|
* @summary Get customers list
|
|
418
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
418
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
419
419
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
420
420
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
421
|
-
* @param {any} [
|
|
422
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
421
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
423
422
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
424
423
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
424
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
429
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
429
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
430
430
|
return __awaiter(this, void 0, void 0, function () {
|
|
431
431
|
var localVarAxiosArgs;
|
|
432
432
|
return __generator(this, function (_a) {
|
|
433
433
|
switch (_a.label) {
|
|
434
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter,
|
|
434
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
435
435
|
case 1:
|
|
436
436
|
localVarAxiosArgs = _a.sent();
|
|
437
437
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -539,19 +539,19 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
539
539
|
/**
|
|
540
540
|
* Get customer list.
|
|
541
541
|
* @summary Get customers list
|
|
542
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
542
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
543
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
544
544
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
545
|
-
* @param {any} [
|
|
546
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
545
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
547
546
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
548
547
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
548
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
549
549
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
550
550
|
* @param {*} [options] Override http request option.
|
|
551
551
|
* @throws {RequiredError}
|
|
552
552
|
*/
|
|
553
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
554
|
-
return localVarFp.listCustomers(pageSize, pageToken, filter,
|
|
553
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
554
|
+
return localVarFp.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
555
555
|
},
|
|
556
556
|
/**
|
|
557
557
|
* Request a token to change the email address for the customer.
|
|
@@ -637,7 +637,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
637
637
|
CustomersApi.prototype.listCustomers = function (requestParameters, options) {
|
|
638
638
|
var _this = this;
|
|
639
639
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
640
|
-
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
640
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
641
641
|
};
|
|
642
642
|
/**
|
|
643
643
|
* Request a token to change the email address for the customer.
|