@teemill/platform 0.33.0 → 0.34.1
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 +7 -2
- package/api.ts +320 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +226 -11
- package/dist/api.js +129 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +226 -11
- package/dist/esm/api.js +128 -11
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AmendOrderRequestAmendmentsInner.md +2 -0
- package/docs/AmendOrderRequestAmendmentsInnerReason.md +22 -0
- package/docs/CustomersApi.md +81 -0
- package/docs/InlineObject1.md +4 -2
- package/docs/InlineObject2.md +20 -0
- package/docs/PaymentApi.md +2 -2
- package/docs/ReturnOrderRequest.md +1 -1
- package/docs/ReturnOrderRequestReturnsInner.md +28 -0
- package/docs/ReturnOrderRequestReturnsInnerReason.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.34.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.34.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -53,6 +53,7 @@ Class | Method | HTTP request | Description
|
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
54
|
*CustomersApi* | [**exportCustomers**](docs/CustomersApi.md#exportcustomers) | **GET** /v1/platform/{platformId}/customers/export | Export customers
|
|
55
55
|
*CustomersApi* | [**getCustomer**](docs/CustomersApi.md#getcustomer) | **GET** /v1/platform/{platformId}/customers/{customerId} | Get customer
|
|
56
|
+
*CustomersApi* | [**listCustomerTags**](docs/CustomersApi.md#listcustomertags) | **GET** /v1/platform/{platformId}/customers/tags | List customer tags
|
|
56
57
|
*CustomersApi* | [**listCustomers**](docs/CustomersApi.md#listcustomers) | **GET** /v1/platform/{platformId}/customers | List customers
|
|
57
58
|
*DashboardApi* | [**getDashboard**](docs/DashboardApi.md#getdashboard) | **GET** /v1/platform/{platformId}/dashboard | Get the platform\'s dashboard
|
|
58
59
|
*DashboardApi* | [**saveDashboard**](docs/DashboardApi.md#savedashboard) | **PUT** /v1/platform/{platformId}/dashboard | Save the platform\'s dashboard
|
|
@@ -104,6 +105,7 @@ Class | Method | HTTP request | Description
|
|
|
104
105
|
- [Address](docs/Address.md)
|
|
105
106
|
- [AmendOrderRequest](docs/AmendOrderRequest.md)
|
|
106
107
|
- [AmendOrderRequestAmendmentsInner](docs/AmendOrderRequestAmendmentsInner.md)
|
|
108
|
+
- [AmendOrderRequestAmendmentsInnerReason](docs/AmendOrderRequestAmendmentsInnerReason.md)
|
|
107
109
|
- [AmendmentLog](docs/AmendmentLog.md)
|
|
108
110
|
- [ApiError](docs/ApiError.md)
|
|
109
111
|
- [BulkCreateReviewPayload](docs/BulkCreateReviewPayload.md)
|
|
@@ -143,6 +145,7 @@ Class | Method | HTTP request | Description
|
|
|
143
145
|
- [Image](docs/Image.md)
|
|
144
146
|
- [InlineObject](docs/InlineObject.md)
|
|
145
147
|
- [InlineObject1](docs/InlineObject1.md)
|
|
148
|
+
- [InlineObject2](docs/InlineObject2.md)
|
|
146
149
|
- [ListCustomerEnquiries200Response](docs/ListCustomerEnquiries200Response.md)
|
|
147
150
|
- [ListCustomerEnquiryLogs200Response](docs/ListCustomerEnquiryLogs200Response.md)
|
|
148
151
|
- [ListCustomerEnquiryLogs200ResponseLogsInner](docs/ListCustomerEnquiryLogs200ResponseLogsInner.md)
|
|
@@ -166,6 +169,8 @@ Class | Method | HTTP request | Description
|
|
|
166
169
|
- [Price](docs/Price.md)
|
|
167
170
|
- [Project](docs/Project.md)
|
|
168
171
|
- [ReturnOrderRequest](docs/ReturnOrderRequest.md)
|
|
172
|
+
- [ReturnOrderRequestReturnsInner](docs/ReturnOrderRequestReturnsInner.md)
|
|
173
|
+
- [ReturnOrderRequestReturnsInnerReason](docs/ReturnOrderRequestReturnsInnerReason.md)
|
|
169
174
|
- [Review](docs/Review.md)
|
|
170
175
|
- [ReviewAuthor](docs/ReviewAuthor.md)
|
|
171
176
|
- [ReviewImagesInner](docs/ReviewImagesInner.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.34.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -121,6 +121,12 @@ export interface AmendOrderRequestAmendmentsInner {
|
|
|
121
121
|
* @memberof AmendOrderRequestAmendmentsInner
|
|
122
122
|
*/
|
|
123
123
|
'newVariantRef'?: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {AmendOrderRequestAmendmentsInnerReason}
|
|
127
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
128
|
+
*/
|
|
129
|
+
'reason': AmendOrderRequestAmendmentsInnerReason;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
@@ -130,6 +136,25 @@ export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
|
130
136
|
|
|
131
137
|
export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
|
|
132
138
|
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @interface AmendOrderRequestAmendmentsInnerReason
|
|
143
|
+
*/
|
|
144
|
+
export interface AmendOrderRequestAmendmentsInnerReason {
|
|
145
|
+
/**
|
|
146
|
+
* A reference to the resource location
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AmendOrderRequestAmendmentsInnerReason
|
|
149
|
+
*/
|
|
150
|
+
'reasonRef': string;
|
|
151
|
+
/**
|
|
152
|
+
* Additional comments as to why the item is being returned or exchanged.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof AmendOrderRequestAmendmentsInnerReason
|
|
155
|
+
*/
|
|
156
|
+
'additionalComments'?: string | null;
|
|
157
|
+
}
|
|
133
158
|
/**
|
|
134
159
|
*
|
|
135
160
|
* @export
|
|
@@ -1121,10 +1146,29 @@ export interface InlineObject {
|
|
|
1121
1146
|
* @interface InlineObject1
|
|
1122
1147
|
*/
|
|
1123
1148
|
export interface InlineObject1 {
|
|
1149
|
+
/**
|
|
1150
|
+
*
|
|
1151
|
+
* @type {Array<string>}
|
|
1152
|
+
* @memberof InlineObject1
|
|
1153
|
+
*/
|
|
1154
|
+
'tags': Array<string>;
|
|
1155
|
+
/**
|
|
1156
|
+
*
|
|
1157
|
+
* @type {number}
|
|
1158
|
+
* @memberof InlineObject1
|
|
1159
|
+
*/
|
|
1160
|
+
'nextPageToken'?: number | null;
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
*
|
|
1164
|
+
* @export
|
|
1165
|
+
* @interface InlineObject2
|
|
1166
|
+
*/
|
|
1167
|
+
export interface InlineObject2 {
|
|
1124
1168
|
/**
|
|
1125
1169
|
* The URL to redirect to
|
|
1126
1170
|
* @type {string}
|
|
1127
|
-
* @memberof
|
|
1171
|
+
* @memberof InlineObject2
|
|
1128
1172
|
*/
|
|
1129
1173
|
'redirect_url': string;
|
|
1130
1174
|
}
|
|
@@ -1861,10 +1905,74 @@ export interface Project {
|
|
|
1861
1905
|
export interface ReturnOrderRequest {
|
|
1862
1906
|
/**
|
|
1863
1907
|
*
|
|
1864
|
-
* @type {Array<
|
|
1908
|
+
* @type {Array<ReturnOrderRequestReturnsInner>}
|
|
1865
1909
|
* @memberof ReturnOrderRequest
|
|
1866
1910
|
*/
|
|
1867
|
-
'returns': Array<
|
|
1911
|
+
'returns': Array<ReturnOrderRequestReturnsInner>;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
*
|
|
1915
|
+
* @export
|
|
1916
|
+
* @interface ReturnOrderRequestReturnsInner
|
|
1917
|
+
*/
|
|
1918
|
+
export interface ReturnOrderRequestReturnsInner {
|
|
1919
|
+
/**
|
|
1920
|
+
* Unique order item identifier
|
|
1921
|
+
* @type {string}
|
|
1922
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1923
|
+
*/
|
|
1924
|
+
'id': string;
|
|
1925
|
+
/**
|
|
1926
|
+
*
|
|
1927
|
+
* @type {string}
|
|
1928
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1929
|
+
*/
|
|
1930
|
+
'action': ReturnOrderRequestReturnsInnerActionEnum;
|
|
1931
|
+
/**
|
|
1932
|
+
* The quantity of the item to refund or exchange. This must be less than or equal to the quantity of the item in the order.
|
|
1933
|
+
* @type {number}
|
|
1934
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1935
|
+
*/
|
|
1936
|
+
'quantity': number;
|
|
1937
|
+
/**
|
|
1938
|
+
* A reference to the variant being ordered
|
|
1939
|
+
* @type {string}
|
|
1940
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1941
|
+
*/
|
|
1942
|
+
'newVariantRef'?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
*
|
|
1945
|
+
* @type {ReturnOrderRequestReturnsInnerReason}
|
|
1946
|
+
* @memberof ReturnOrderRequestReturnsInner
|
|
1947
|
+
*/
|
|
1948
|
+
'reason': ReturnOrderRequestReturnsInnerReason;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
export const ReturnOrderRequestReturnsInnerActionEnum = {
|
|
1952
|
+
Refund: 'refund',
|
|
1953
|
+
Exchange: 'exchange'
|
|
1954
|
+
} as const;
|
|
1955
|
+
|
|
1956
|
+
export type ReturnOrderRequestReturnsInnerActionEnum = typeof ReturnOrderRequestReturnsInnerActionEnum[keyof typeof ReturnOrderRequestReturnsInnerActionEnum];
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @export
|
|
1961
|
+
* @interface ReturnOrderRequestReturnsInnerReason
|
|
1962
|
+
*/
|
|
1963
|
+
export interface ReturnOrderRequestReturnsInnerReason {
|
|
1964
|
+
/**
|
|
1965
|
+
* A reference to the reason for the return or exchange.
|
|
1966
|
+
* @type {string}
|
|
1967
|
+
* @memberof ReturnOrderRequestReturnsInnerReason
|
|
1968
|
+
*/
|
|
1969
|
+
'reasonRef': string;
|
|
1970
|
+
/**
|
|
1971
|
+
* Additional comments as to why the item is being returned or exchanged.
|
|
1972
|
+
* @type {string}
|
|
1973
|
+
* @memberof ReturnOrderRequestReturnsInnerReason
|
|
1974
|
+
*/
|
|
1975
|
+
'additionalComments'?: string | null;
|
|
1868
1976
|
}
|
|
1869
1977
|
/**
|
|
1870
1978
|
*
|
|
@@ -2401,6 +2509,8 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2401
2509
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2402
2510
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2403
2511
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2512
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2513
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2404
2514
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2405
2515
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2406
2516
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2413,7 +2523,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2413
2523
|
* @param {*} [options] Override http request option.
|
|
2414
2524
|
* @throws {RequiredError}
|
|
2415
2525
|
*/
|
|
2416
|
-
exportCustomers: async (project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2526
|
+
exportCustomers: async (project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2417
2527
|
// verify required parameter 'project' is not null or undefined
|
|
2418
2528
|
assertParamExists('exportCustomers', 'project', project)
|
|
2419
2529
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -2462,6 +2572,14 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2462
2572
|
localVarQueryParameter['productTypes'] = productTypes;
|
|
2463
2573
|
}
|
|
2464
2574
|
|
|
2575
|
+
if (demographics) {
|
|
2576
|
+
localVarQueryParameter['demographics'] = demographics;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
if (tags) {
|
|
2580
|
+
localVarQueryParameter['tags'] = tags;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2465
2583
|
if (usedDiscount !== undefined) {
|
|
2466
2584
|
localVarQueryParameter['usedDiscount'] = usedDiscount;
|
|
2467
2585
|
}
|
|
@@ -2554,6 +2672,69 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2554
2672
|
|
|
2555
2673
|
|
|
2556
2674
|
|
|
2675
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2677
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2678
|
+
|
|
2679
|
+
return {
|
|
2680
|
+
url: toPathString(localVarUrlObj),
|
|
2681
|
+
options: localVarRequestOptions,
|
|
2682
|
+
};
|
|
2683
|
+
},
|
|
2684
|
+
/**
|
|
2685
|
+
* List customer tags
|
|
2686
|
+
* @summary List customer tags
|
|
2687
|
+
* @param {string} project Project unique identifier
|
|
2688
|
+
* @param {string} platformId The platform identifier
|
|
2689
|
+
* @param {number} [pageToken] Page reference token
|
|
2690
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2691
|
+
* @param {string} [search] Search term to filter results
|
|
2692
|
+
* @param {*} [options] Override http request option.
|
|
2693
|
+
* @throws {RequiredError}
|
|
2694
|
+
*/
|
|
2695
|
+
listCustomerTags: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2696
|
+
// verify required parameter 'project' is not null or undefined
|
|
2697
|
+
assertParamExists('listCustomerTags', 'project', project)
|
|
2698
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2699
|
+
assertParamExists('listCustomerTags', 'platformId', platformId)
|
|
2700
|
+
const localVarPath = `/v1/platform/{platformId}/customers/tags`
|
|
2701
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2702
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2704
|
+
let baseOptions;
|
|
2705
|
+
if (configuration) {
|
|
2706
|
+
baseOptions = configuration.baseOptions;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2710
|
+
const localVarHeaderParameter = {} as any;
|
|
2711
|
+
const localVarQueryParameter = {} as any;
|
|
2712
|
+
|
|
2713
|
+
// authentication session-oauth required
|
|
2714
|
+
// oauth required
|
|
2715
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2716
|
+
|
|
2717
|
+
// authentication api-key required
|
|
2718
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2719
|
+
|
|
2720
|
+
if (project !== undefined) {
|
|
2721
|
+
localVarQueryParameter['project'] = project;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
if (pageToken !== undefined) {
|
|
2725
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
if (pageSize !== undefined) {
|
|
2729
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
if (search !== undefined) {
|
|
2733
|
+
localVarQueryParameter['search'] = search;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2557
2738
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2558
2739
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2559
2740
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2576,6 +2757,8 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2576
2757
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2577
2758
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2578
2759
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2760
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2761
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2579
2762
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2580
2763
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2581
2764
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2588,7 +2771,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2588
2771
|
* @param {*} [options] Override http request option.
|
|
2589
2772
|
* @throws {RequiredError}
|
|
2590
2773
|
*/
|
|
2591
|
-
listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2774
|
+
listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2592
2775
|
// verify required parameter 'project' is not null or undefined
|
|
2593
2776
|
assertParamExists('listCustomers', 'project', project)
|
|
2594
2777
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -2649,6 +2832,14 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
2649
2832
|
localVarQueryParameter['productTypes'] = productTypes;
|
|
2650
2833
|
}
|
|
2651
2834
|
|
|
2835
|
+
if (demographics) {
|
|
2836
|
+
localVarQueryParameter['demographics'] = demographics;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
if (tags) {
|
|
2840
|
+
localVarQueryParameter['tags'] = tags;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2652
2843
|
if (usedDiscount !== undefined) {
|
|
2653
2844
|
localVarQueryParameter['usedDiscount'] = usedDiscount;
|
|
2654
2845
|
}
|
|
@@ -2718,6 +2909,8 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
2718
2909
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2719
2910
|
* @param {ExportCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2720
2911
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2912
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2913
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2721
2914
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2722
2915
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2723
2916
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2730,8 +2923,8 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
2730
2923
|
* @param {*} [options] Override http request option.
|
|
2731
2924
|
* @throws {RequiredError}
|
|
2732
2925
|
*/
|
|
2733
|
-
async exportCustomers(project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
2734
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
2926
|
+
async exportCustomers(project: string, platformId: string, sortBy?: Array<ExportCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ExportCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
2927
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
2735
2928
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2736
2929
|
const localVarOperationServerBasePath = operationServerMap['CustomersApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
|
|
2737
2930
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2751,6 +2944,23 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
2751
2944
|
const localVarOperationServerBasePath = operationServerMap['CustomersApi.getCustomer']?.[localVarOperationServerIndex]?.url;
|
|
2752
2945
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2753
2946
|
},
|
|
2947
|
+
/**
|
|
2948
|
+
* List customer tags
|
|
2949
|
+
* @summary List customer tags
|
|
2950
|
+
* @param {string} project Project unique identifier
|
|
2951
|
+
* @param {string} platformId The platform identifier
|
|
2952
|
+
* @param {number} [pageToken] Page reference token
|
|
2953
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2954
|
+
* @param {string} [search] Search term to filter results
|
|
2955
|
+
* @param {*} [options] Override http request option.
|
|
2956
|
+
* @throws {RequiredError}
|
|
2957
|
+
*/
|
|
2958
|
+
async listCustomerTags(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
|
|
2959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerTags(project, platformId, pageToken, pageSize, search, options);
|
|
2960
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2961
|
+
const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomerTags']?.[localVarOperationServerIndex]?.url;
|
|
2962
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2963
|
+
},
|
|
2754
2964
|
/**
|
|
2755
2965
|
* List customers for a platform
|
|
2756
2966
|
* @summary List customers
|
|
@@ -2764,6 +2974,8 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
2764
2974
|
* @param {Array<string>} [projects] Filter customers by project. In the absence of this field, all projects will be included in the export.
|
|
2765
2975
|
* @param {ListCustomersGenderEnum} [gender] Filter customers by gender equal to the value provided
|
|
2766
2976
|
* @param {Array<number>} [productTypes] Filter customers by purchased product types. In the absence of this field, all customers will be included in the export.
|
|
2977
|
+
* @param {Array<string>} [demographics] Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
2978
|
+
* @param {Array<string>} [tags] Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
2767
2979
|
* @param {boolean} [usedDiscount] Filter customers by whether they have used a discount
|
|
2768
2980
|
* @param {number} [minimumTotalOrderCount] Filter customers by total order count greater than or equal to the value provided
|
|
2769
2981
|
* @param {number} [maximumTotalOrderCount] Filter customers by total order count less than or equal to the value provided
|
|
@@ -2776,8 +2988,8 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
2776
2988
|
* @param {*} [options] Override http request option.
|
|
2777
2989
|
* @throws {RequiredError}
|
|
2778
2990
|
*/
|
|
2779
|
-
async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
2780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
2991
|
+
async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
2992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, countries, projects, gender, productTypes, demographics, tags, usedDiscount, minimumTotalOrderCount, maximumTotalOrderCount, minimumRefundedOrderCount, maximumRefundedOrderCount, minimumLifetimeValue, maximumLifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
|
|
2781
2993
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2782
2994
|
const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomers']?.[localVarOperationServerIndex]?.url;
|
|
2783
2995
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2800,7 +3012,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
2800
3012
|
* @throws {RequiredError}
|
|
2801
3013
|
*/
|
|
2802
3014
|
exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
2803
|
-
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
3015
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
2804
3016
|
},
|
|
2805
3017
|
/**
|
|
2806
3018
|
* Get a customer for a platform by a given customer ID.
|
|
@@ -2812,6 +3024,16 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
2812
3024
|
getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
|
|
2813
3025
|
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
2814
3026
|
},
|
|
3027
|
+
/**
|
|
3028
|
+
* List customer tags
|
|
3029
|
+
* @summary List customer tags
|
|
3030
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
3031
|
+
* @param {*} [options] Override http request option.
|
|
3032
|
+
* @throws {RequiredError}
|
|
3033
|
+
*/
|
|
3034
|
+
listCustomerTags(requestParameters: CustomersApiListCustomerTagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
|
|
3035
|
+
return localVarFp.listCustomerTags(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3036
|
+
},
|
|
2815
3037
|
/**
|
|
2816
3038
|
* List customers for a platform
|
|
2817
3039
|
* @summary List customers
|
|
@@ -2820,7 +3042,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
2820
3042
|
* @throws {RequiredError}
|
|
2821
3043
|
*/
|
|
2822
3044
|
listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
|
|
2823
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
3045
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
|
|
2824
3046
|
},
|
|
2825
3047
|
};
|
|
2826
3048
|
};
|
|
@@ -2880,6 +3102,20 @@ export interface CustomersApiExportCustomersRequest {
|
|
|
2880
3102
|
*/
|
|
2881
3103
|
readonly productTypes?: Array<number>
|
|
2882
3104
|
|
|
3105
|
+
/**
|
|
3106
|
+
* Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
3107
|
+
* @type {Array<string>}
|
|
3108
|
+
* @memberof CustomersApiExportCustomers
|
|
3109
|
+
*/
|
|
3110
|
+
readonly demographics?: Array<string>
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
3114
|
+
* @type {Array<string>}
|
|
3115
|
+
* @memberof CustomersApiExportCustomers
|
|
3116
|
+
*/
|
|
3117
|
+
readonly tags?: Array<string>
|
|
3118
|
+
|
|
2883
3119
|
/**
|
|
2884
3120
|
* Filter customers by whether they have used a discount
|
|
2885
3121
|
* @type {boolean}
|
|
@@ -2972,6 +3208,48 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
2972
3208
|
readonly customerId: string
|
|
2973
3209
|
}
|
|
2974
3210
|
|
|
3211
|
+
/**
|
|
3212
|
+
* Request parameters for listCustomerTags operation in CustomersApi.
|
|
3213
|
+
* @export
|
|
3214
|
+
* @interface CustomersApiListCustomerTagsRequest
|
|
3215
|
+
*/
|
|
3216
|
+
export interface CustomersApiListCustomerTagsRequest {
|
|
3217
|
+
/**
|
|
3218
|
+
* Project unique identifier
|
|
3219
|
+
* @type {string}
|
|
3220
|
+
* @memberof CustomersApiListCustomerTags
|
|
3221
|
+
*/
|
|
3222
|
+
readonly project: string
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* The platform identifier
|
|
3226
|
+
* @type {string}
|
|
3227
|
+
* @memberof CustomersApiListCustomerTags
|
|
3228
|
+
*/
|
|
3229
|
+
readonly platformId: string
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Page reference token
|
|
3233
|
+
* @type {number}
|
|
3234
|
+
* @memberof CustomersApiListCustomerTags
|
|
3235
|
+
*/
|
|
3236
|
+
readonly pageToken?: number
|
|
3237
|
+
|
|
3238
|
+
/**
|
|
3239
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3240
|
+
* @type {number}
|
|
3241
|
+
* @memberof CustomersApiListCustomerTags
|
|
3242
|
+
*/
|
|
3243
|
+
readonly pageSize?: number
|
|
3244
|
+
|
|
3245
|
+
/**
|
|
3246
|
+
* Search term to filter results
|
|
3247
|
+
* @type {string}
|
|
3248
|
+
* @memberof CustomersApiListCustomerTags
|
|
3249
|
+
*/
|
|
3250
|
+
readonly search?: string
|
|
3251
|
+
}
|
|
3252
|
+
|
|
2975
3253
|
/**
|
|
2976
3254
|
* Request parameters for listCustomers operation in CustomersApi.
|
|
2977
3255
|
* @export
|
|
@@ -3048,6 +3326,20 @@ export interface CustomersApiListCustomersRequest {
|
|
|
3048
3326
|
*/
|
|
3049
3327
|
readonly productTypes?: Array<number>
|
|
3050
3328
|
|
|
3329
|
+
/**
|
|
3330
|
+
* Filter customers by purchase demographics. In the absence of this field, all customers will be included in the export.
|
|
3331
|
+
* @type {Array<string>}
|
|
3332
|
+
* @memberof CustomersApiListCustomers
|
|
3333
|
+
*/
|
|
3334
|
+
readonly demographics?: Array<string>
|
|
3335
|
+
|
|
3336
|
+
/**
|
|
3337
|
+
* Filter customers by purchase tags. In the absence of this field, all customers will be included in the export.
|
|
3338
|
+
* @type {Array<string>}
|
|
3339
|
+
* @memberof CustomersApiListCustomers
|
|
3340
|
+
*/
|
|
3341
|
+
readonly tags?: Array<string>
|
|
3342
|
+
|
|
3051
3343
|
/**
|
|
3052
3344
|
* Filter customers by whether they have used a discount
|
|
3053
3345
|
* @type {boolean}
|
|
@@ -3128,7 +3420,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
3128
3420
|
* @memberof CustomersApi
|
|
3129
3421
|
*/
|
|
3130
3422
|
public exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
3131
|
-
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
3423
|
+
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
3132
3424
|
}
|
|
3133
3425
|
|
|
3134
3426
|
/**
|
|
@@ -3143,6 +3435,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
3143
3435
|
return CustomersApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
3144
3436
|
}
|
|
3145
3437
|
|
|
3438
|
+
/**
|
|
3439
|
+
* List customer tags
|
|
3440
|
+
* @summary List customer tags
|
|
3441
|
+
* @param {CustomersApiListCustomerTagsRequest} requestParameters Request parameters.
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
* @memberof CustomersApi
|
|
3445
|
+
*/
|
|
3446
|
+
public listCustomerTags(requestParameters: CustomersApiListCustomerTagsRequest, options?: RawAxiosRequestConfig) {
|
|
3447
|
+
return CustomersApiFp(this.configuration).listCustomerTags(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3146
3450
|
/**
|
|
3147
3451
|
* List customers for a platform
|
|
3148
3452
|
* @summary List customers
|
|
@@ -3152,7 +3456,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
3152
3456
|
* @memberof CustomersApi
|
|
3153
3457
|
*/
|
|
3154
3458
|
public listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
3155
|
-
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
3459
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.countries, requestParameters.projects, requestParameters.gender, requestParameters.productTypes, requestParameters.demographics, requestParameters.tags, requestParameters.usedDiscount, requestParameters.minimumTotalOrderCount, requestParameters.maximumTotalOrderCount, requestParameters.minimumRefundedOrderCount, requestParameters.maximumRefundedOrderCount, requestParameters.minimumLifetimeValue, requestParameters.maximumLifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
|
|
3156
3460
|
}
|
|
3157
3461
|
}
|
|
3158
3462
|
|
|
@@ -6075,7 +6379,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
6075
6379
|
* @param {*} [options] Override http request option.
|
|
6076
6380
|
* @throws {RequiredError}
|
|
6077
6381
|
*/
|
|
6078
|
-
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6382
|
+
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject2>> {
|
|
6079
6383
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
|
|
6080
6384
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6081
6385
|
const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6124,7 +6428,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
6124
6428
|
* @param {*} [options] Override http request option.
|
|
6125
6429
|
* @throws {RequiredError}
|
|
6126
6430
|
*/
|
|
6127
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6431
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject2> {
|
|
6128
6432
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
6129
6433
|
},
|
|
6130
6434
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED