@teemill/platform 0.12.1 → 0.12.3

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/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.12.1
7
+ * The version of the OpenAPI document: 0.12.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -195,13 +195,31 @@ export interface Customer {
195
195
  * @type {string}
196
196
  * @memberof Customer
197
197
  */
198
- 'firstName'?: string;
198
+ 'firstName': string;
199
199
  /**
200
200
  *
201
201
  * @type {string}
202
202
  * @memberof Customer
203
203
  */
204
- 'lastName'?: string;
204
+ 'lastName': string;
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof Customer
209
+ */
210
+ 'gender': string | null;
211
+ /**
212
+ *
213
+ * @type {string}
214
+ * @memberof Customer
215
+ */
216
+ 'country': string | null;
217
+ /**
218
+ *
219
+ * @type {Statistics}
220
+ * @memberof Customer
221
+ */
222
+ 'statistics': Statistics;
205
223
  }
206
224
  /**
207
225
  *
@@ -1351,6 +1369,31 @@ export interface ShippingMethod {
1351
1369
  */
1352
1370
  'discountPrice'?: Price;
1353
1371
  }
1372
+ /**
1373
+ *
1374
+ * @export
1375
+ * @interface Statistics
1376
+ */
1377
+ export interface Statistics {
1378
+ /**
1379
+ *
1380
+ * @type {number}
1381
+ * @memberof Statistics
1382
+ */
1383
+ 'lifetimeValue': number;
1384
+ /**
1385
+ *
1386
+ * @type {number}
1387
+ * @memberof Statistics
1388
+ */
1389
+ 'totalOrderCount': number;
1390
+ /**
1391
+ *
1392
+ * @type {string}
1393
+ * @memberof Statistics
1394
+ */
1395
+ 'lastPurchased': string | null;
1396
+ }
1354
1397
  /**
1355
1398
  *
1356
1399
  * @export
@@ -1491,12 +1534,6 @@ export interface ValidationError {
1491
1534
  * @memberof ValidationError
1492
1535
  */
1493
1536
  'message': string;
1494
- /**
1495
- *
1496
- * @type {{ [key: string]: Array<string>; }}
1497
- * @memberof ValidationError
1498
- */
1499
- 'errors': { [key: string]: Array<string>; };
1500
1537
  }
1501
1538
  /**
1502
1539
  *
@@ -1710,10 +1747,14 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1710
1747
  * @summary Export customers
1711
1748
  * @param {string} project Project unique identifier
1712
1749
  * @param {string} platformId The platform identifier
1750
+ * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1751
+ * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1752
+ * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1753
+ * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1713
1754
  * @param {*} [options] Override http request option.
1714
1755
  * @throws {RequiredError}
1715
1756
  */
1716
- exportCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1757
+ exportCustomers: async (project: string, platformId: string, totalOrderCount?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1717
1758
  // verify required parameter 'project' is not null or undefined
1718
1759
  assertParamExists('exportCustomers', 'project', project)
1719
1760
  // verify required parameter 'platformId' is not null or undefined
@@ -1742,6 +1783,24 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1742
1783
  localVarQueryParameter['project'] = project;
1743
1784
  }
1744
1785
 
1786
+ if (totalOrderCount !== undefined) {
1787
+ localVarQueryParameter['totalOrderCount'] = totalOrderCount;
1788
+ }
1789
+
1790
+ if (sortBy) {
1791
+ localVarQueryParameter['sortBy'] = sortBy;
1792
+ }
1793
+
1794
+ if (lastPurchasedStart !== undefined) {
1795
+ localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart as any instanceof Date) ?
1796
+ (lastPurchasedStart as any).toISOString() :
1797
+ lastPurchasedStart;
1798
+ }
1799
+
1800
+ if (lastPurchasedEnd !== undefined) {
1801
+ localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
1802
+ }
1803
+
1745
1804
 
1746
1805
 
1747
1806
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1813,10 +1872,14 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1813
1872
  * @param {number} [pageToken] Page reference token
1814
1873
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1815
1874
  * @param {string} [search] Search term to filter based on order reference, customer name and email
1875
+ * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1876
+ * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1877
+ * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1878
+ * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1816
1879
  * @param {*} [options] Override http request option.
1817
1880
  * @throws {RequiredError}
1818
1881
  */
1819
- listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1882
+ listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1820
1883
  // verify required parameter 'project' is not null or undefined
1821
1884
  assertParamExists('listCustomers', 'project', project)
1822
1885
  // verify required parameter 'platformId' is not null or undefined
@@ -1857,6 +1920,24 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1857
1920
  localVarQueryParameter['search'] = search;
1858
1921
  }
1859
1922
 
1923
+ if (sortBy) {
1924
+ localVarQueryParameter['sortBy'] = sortBy;
1925
+ }
1926
+
1927
+ if (totalOrderCount !== undefined) {
1928
+ localVarQueryParameter['totalOrderCount'] = totalOrderCount;
1929
+ }
1930
+
1931
+ if (lastPurchasedStart !== undefined) {
1932
+ localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart as any instanceof Date) ?
1933
+ (lastPurchasedStart as any).toISOString() :
1934
+ lastPurchasedStart;
1935
+ }
1936
+
1937
+ if (lastPurchasedEnd !== undefined) {
1938
+ localVarQueryParameter['lastPurchasedEnd'] = lastPurchasedEnd;
1939
+ }
1940
+
1860
1941
 
1861
1942
 
1862
1943
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1883,11 +1964,15 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1883
1964
  * @summary Export customers
1884
1965
  * @param {string} project Project unique identifier
1885
1966
  * @param {string} platformId The platform identifier
1967
+ * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1968
+ * @param {Array<ExportCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
1969
+ * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1970
+ * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1886
1971
  * @param {*} [options] Override http request option.
1887
1972
  * @throws {RequiredError}
1888
1973
  */
1889
- async exportCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
1890
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, options);
1974
+ async exportCustomers(project: string, platformId: string, totalOrderCount?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
1975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
1891
1976
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1892
1977
  const localVarOperationServerBasePath = operationServerMap['CustomersApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
1893
1978
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1915,11 +2000,15 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1915
2000
  * @param {number} [pageToken] Page reference token
1916
2001
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1917
2002
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2003
+ * @param {Array<ListCustomersSortByEnum>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
2004
+ * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
2005
+ * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
2006
+ * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1918
2007
  * @param {*} [options] Override http request option.
1919
2008
  * @throws {RequiredError}
1920
2009
  */
1921
- async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
1922
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
2010
+ async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
2011
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lastPurchasedStart, lastPurchasedEnd, options);
1923
2012
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1924
2013
  const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomers']?.[localVarOperationServerIndex]?.url;
1925
2014
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1942,7 +2031,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1942
2031
  * @throws {RequiredError}
1943
2032
  */
1944
2033
  exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
1945
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
2034
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
1946
2035
  },
1947
2036
  /**
1948
2037
  * Get a customer for a platform by a given customer ID.
@@ -1962,7 +2051,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
1962
2051
  * @throws {RequiredError}
1963
2052
  */
1964
2053
  listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
1965
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2054
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
1966
2055
  },
1967
2056
  };
1968
2057
  };
@@ -1986,6 +2075,34 @@ export interface CustomersApiExportCustomersRequest {
1986
2075
  * @memberof CustomersApiExportCustomers
1987
2076
  */
1988
2077
  readonly platformId: string
2078
+
2079
+ /**
2080
+ * Filter customers by total order count equal to the value provided
2081
+ * @type {number}
2082
+ * @memberof CustomersApiExportCustomers
2083
+ */
2084
+ readonly totalOrderCount?: number
2085
+
2086
+ /**
2087
+ * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
2088
+ * @type {Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>}
2089
+ * @memberof CustomersApiExportCustomers
2090
+ */
2091
+ readonly sortBy?: Array<ExportCustomersSortByEnum>
2092
+
2093
+ /**
2094
+ * Start of date range to filter customers by last purchase date
2095
+ * @type {string}
2096
+ * @memberof CustomersApiExportCustomers
2097
+ */
2098
+ readonly lastPurchasedStart?: string
2099
+
2100
+ /**
2101
+ * End of date range to filter customers by last purchase date
2102
+ * @type {string}
2103
+ * @memberof CustomersApiExportCustomers
2104
+ */
2105
+ readonly lastPurchasedEnd?: string
1989
2106
  }
1990
2107
 
1991
2108
  /**
@@ -2056,6 +2173,34 @@ export interface CustomersApiListCustomersRequest {
2056
2173
  * @memberof CustomersApiListCustomers
2057
2174
  */
2058
2175
  readonly search?: string
2176
+
2177
+ /**
2178
+ * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
2179
+ * @type {Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>}
2180
+ * @memberof CustomersApiListCustomers
2181
+ */
2182
+ readonly sortBy?: Array<ListCustomersSortByEnum>
2183
+
2184
+ /**
2185
+ * Filter customers by total order count equal to the value provided
2186
+ * @type {number}
2187
+ * @memberof CustomersApiListCustomers
2188
+ */
2189
+ readonly totalOrderCount?: number
2190
+
2191
+ /**
2192
+ * Start of date range to filter customers by last purchase date
2193
+ * @type {string}
2194
+ * @memberof CustomersApiListCustomers
2195
+ */
2196
+ readonly lastPurchasedStart?: string
2197
+
2198
+ /**
2199
+ * End of date range to filter customers by last purchase date
2200
+ * @type {string}
2201
+ * @memberof CustomersApiListCustomers
2202
+ */
2203
+ readonly lastPurchasedEnd?: string
2059
2204
  }
2060
2205
 
2061
2206
  /**
@@ -2074,7 +2219,7 @@ export class CustomersApi extends BaseAPI {
2074
2219
  * @memberof CustomersApi
2075
2220
  */
2076
2221
  public exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
2077
- return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2222
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
2078
2223
  }
2079
2224
 
2080
2225
  /**
@@ -2098,10 +2243,34 @@ export class CustomersApi extends BaseAPI {
2098
2243
  * @memberof CustomersApi
2099
2244
  */
2100
2245
  public listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig) {
2101
- return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2246
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
2102
2247
  }
2103
2248
  }
2104
2249
 
2250
+ /**
2251
+ * @export
2252
+ */
2253
+ export const ExportCustomersSortByEnum = {
2254
+ LifetimeValue: '+lifetimeValue',
2255
+ LifetimeValue2: '-lifetimeValue',
2256
+ TotalOrderCount: '+totalOrderCount',
2257
+ TotalOrderCount2: '-totalOrderCount',
2258
+ LastPurchased: '+lastPurchased',
2259
+ LastPurchased2: '-lastPurchased'
2260
+ } as const;
2261
+ export type ExportCustomersSortByEnum = typeof ExportCustomersSortByEnum[keyof typeof ExportCustomersSortByEnum];
2262
+ /**
2263
+ * @export
2264
+ */
2265
+ export const ListCustomersSortByEnum = {
2266
+ LifetimeValue: '+lifetimeValue',
2267
+ LifetimeValue2: '-lifetimeValue',
2268
+ TotalOrderCount: '+totalOrderCount',
2269
+ TotalOrderCount2: '-totalOrderCount',
2270
+ LastPurchased: '+lastPurchased',
2271
+ LastPurchased2: '-lastPurchased'
2272
+ } as const;
2273
+ export type ListCustomersSortByEnum = typeof ListCustomersSortByEnum[keyof typeof ListCustomersSortByEnum];
2105
2274
 
2106
2275
 
2107
2276
  /**
@@ -2116,7 +2285,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
2116
2285
  * @param {string} project Project unique identifier
2117
2286
  * @param {string} platformId The platform identifier
2118
2287
  * @param {string} start Start of date range to filter by when orders were placed
2119
- * @param {string} [end] End of date range to filter by when orders were placed
2288
+ * @param {string} [end] End of date range to filter when orders were placed
2120
2289
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2121
2290
  * @param {*} [options] Override http request option.
2122
2291
  * @throws {RequiredError}
@@ -2343,8 +2512,8 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
2343
2512
  * @param {number} [pageToken] Page reference token
2344
2513
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2345
2514
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2346
- * @param {string} [start] Start of date range to filter by when orders were placed
2347
- * @param {string} [end] End of date range to filter by when orders were placed
2515
+ * @param {string} [start] Start of date range to filter when orders were placed
2516
+ * @param {string} [end] End of date range to filter when orders were placed
2348
2517
  * @param {*} [options] Override http request option.
2349
2518
  * @throws {RequiredError}
2350
2519
  */
@@ -2486,7 +2655,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
2486
2655
  * @param {string} project Project unique identifier
2487
2656
  * @param {string} platformId The platform identifier
2488
2657
  * @param {string} start Start of date range to filter by when orders were placed
2489
- * @param {string} [end] End of date range to filter by when orders were placed
2658
+ * @param {string} [end] End of date range to filter when orders were placed
2490
2659
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2491
2660
  * @param {*} [options] Override http request option.
2492
2661
  * @throws {RequiredError}
@@ -2550,8 +2719,8 @@ export const OrdersApiFp = function(configuration?: Configuration) {
2550
2719
  * @param {number} [pageToken] Page reference token
2551
2720
  * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2552
2721
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2553
- * @param {string} [start] Start of date range to filter by when orders were placed
2554
- * @param {string} [end] End of date range to filter by when orders were placed
2722
+ * @param {string} [start] Start of date range to filter when orders were placed
2723
+ * @param {string} [end] End of date range to filter when orders were placed
2555
2724
  * @param {*} [options] Override http request option.
2556
2725
  * @throws {RequiredError}
2557
2726
  */
@@ -2678,7 +2847,7 @@ export interface OrdersApiExportOrdersRequest {
2678
2847
  readonly start: string
2679
2848
 
2680
2849
  /**
2681
- * End of date range to filter by when orders were placed
2850
+ * End of date range to filter when orders were placed
2682
2851
  * @type {string}
2683
2852
  * @memberof OrdersApiExportOrders
2684
2853
  */
@@ -2818,14 +2987,14 @@ export interface OrdersApiListOrdersRequest {
2818
2987
  readonly search?: string
2819
2988
 
2820
2989
  /**
2821
- * Start of date range to filter by when orders were placed
2990
+ * Start of date range to filter when orders were placed
2822
2991
  * @type {string}
2823
2992
  * @memberof OrdersApiListOrders
2824
2993
  */
2825
2994
  readonly start?: string
2826
2995
 
2827
2996
  /**
2828
- * End of date range to filter by when orders were placed
2997
+ * End of date range to filter when orders were placed
2829
2998
  * @type {string}
2830
2999
  * @memberof OrdersApiListOrders
2831
3000
  */
@@ -2956,20 +3125,16 @@ export class OrdersApi extends BaseAPI {
2956
3125
  export const PlatformApiAxiosParamCreator = function (configuration?: Configuration) {
2957
3126
  return {
2958
3127
  /**
2959
- * Export customers as a CSV file
2960
- * @summary Export customers
3128
+ *
3129
+ * @summary Get platform details
2961
3130
  * @param {string} project Project unique identifier
2962
- * @param {string} platformId The platform identifier
2963
3131
  * @param {*} [options] Override http request option.
2964
3132
  * @throws {RequiredError}
2965
3133
  */
2966
- exportCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3134
+ getPlatform: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2967
3135
  // verify required parameter 'project' is not null or undefined
2968
- assertParamExists('exportCustomers', 'project', project)
2969
- // verify required parameter 'platformId' is not null or undefined
2970
- assertParamExists('exportCustomers', 'platformId', platformId)
2971
- const localVarPath = `/v1/platform/{platformId}/customers/export`
2972
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3136
+ assertParamExists('getPlatform', 'project', project)
3137
+ const localVarPath = `/v1/platform`;
2973
3138
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2974
3139
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2975
3140
  let baseOptions;
@@ -3004,25 +3169,19 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3004
3169
  };
3005
3170
  },
3006
3171
  /**
3007
- * Export orders as a CSV file
3008
- * @summary Export orders
3172
+ *
3173
+ * @summary Update platform
3009
3174
  * @param {string} project Project unique identifier
3010
- * @param {string} platformId The platform identifier
3011
- * @param {string} start Start of date range to filter by when orders were placed
3012
- * @param {string} [end] End of date range to filter by when orders were placed
3013
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3175
+ * @param {UpdatePlatformRequest} updatePlatformRequest
3014
3176
  * @param {*} [options] Override http request option.
3015
3177
  * @throws {RequiredError}
3016
3178
  */
3017
- exportOrders: async (project: string, platformId: string, start: string, end?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3179
+ updatePlatform: async (project: string, updatePlatformRequest: UpdatePlatformRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3018
3180
  // verify required parameter 'project' is not null or undefined
3019
- assertParamExists('exportOrders', 'project', project)
3020
- // verify required parameter 'platformId' is not null or undefined
3021
- assertParamExists('exportOrders', 'platformId', platformId)
3022
- // verify required parameter 'start' is not null or undefined
3023
- assertParamExists('exportOrders', 'start', start)
3024
- const localVarPath = `/v1/platform/{platformId}/orders/export`
3025
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3181
+ assertParamExists('updatePlatform', 'project', project)
3182
+ // verify required parameter 'updatePlatformRequest' is not null or undefined
3183
+ assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest)
3184
+ const localVarPath = `/v1/platform`;
3026
3185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3027
3186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3028
3187
  let baseOptions;
@@ -3030,7 +3189,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3030
3189
  baseOptions = configuration.baseOptions;
3031
3190
  }
3032
3191
 
3033
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3192
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3034
3193
  const localVarHeaderParameter = {} as any;
3035
3194
  const localVarQueryParameter = {} as any;
3036
3195
 
@@ -3045,1324 +3204,102 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
3045
3204
  localVarQueryParameter['project'] = project;
3046
3205
  }
3047
3206
 
3048
- if (start !== undefined) {
3049
- localVarQueryParameter['start'] = (start as any instanceof Date) ?
3050
- (start as any).toISOString() :
3051
- start;
3052
- }
3053
-
3054
- if (end !== undefined) {
3055
- localVarQueryParameter['end'] = (end as any instanceof Date) ?
3056
- (end as any).toISOString() :
3057
- end;
3058
- }
3059
-
3060
- if (search !== undefined) {
3061
- localVarQueryParameter['search'] = search;
3062
- }
3063
-
3064
3207
 
3065
3208
 
3209
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3210
+
3066
3211
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3067
3212
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3068
3213
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3214
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
3069
3215
 
3070
3216
  return {
3071
3217
  url: toPathString(localVarUrlObj),
3072
3218
  options: localVarRequestOptions,
3073
3219
  };
3074
3220
  },
3221
+ }
3222
+ };
3223
+
3224
+ /**
3225
+ * PlatformApi - functional programming interface
3226
+ * @export
3227
+ */
3228
+ export const PlatformApiFp = function(configuration?: Configuration) {
3229
+ const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
3230
+ return {
3075
3231
  /**
3076
- * Get a customer for a platform by a given customer ID.
3077
- * @summary Get customer
3232
+ *
3233
+ * @summary Get platform details
3078
3234
  * @param {string} project Project unique identifier
3079
- * @param {string} platformId The platform identifier
3080
- * @param {string} customerId The customer identifier
3081
3235
  * @param {*} [options] Override http request option.
3082
3236
  * @throws {RequiredError}
3083
3237
  */
3084
- getCustomer: async (project: string, platformId: string, customerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3085
- // verify required parameter 'project' is not null or undefined
3086
- assertParamExists('getCustomer', 'project', project)
3087
- // verify required parameter 'platformId' is not null or undefined
3088
- assertParamExists('getCustomer', 'platformId', platformId)
3089
- // verify required parameter 'customerId' is not null or undefined
3090
- assertParamExists('getCustomer', 'customerId', customerId)
3091
- const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
3092
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3093
- .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
3094
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3095
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3096
- let baseOptions;
3097
- if (configuration) {
3098
- baseOptions = configuration.baseOptions;
3099
- }
3100
-
3101
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3102
- const localVarHeaderParameter = {} as any;
3103
- const localVarQueryParameter = {} as any;
3104
-
3105
- // authentication session-oauth required
3106
- // oauth required
3107
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3108
-
3109
- // authentication api-key required
3110
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3111
-
3112
- if (project !== undefined) {
3113
- localVarQueryParameter['project'] = project;
3114
- }
3115
-
3116
-
3117
-
3118
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3119
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3120
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3121
-
3122
- return {
3123
- url: toPathString(localVarUrlObj),
3124
- options: localVarRequestOptions,
3125
- };
3238
+ async getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
3239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlatform(project, options);
3240
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3241
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
3242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3126
3243
  },
3127
3244
  /**
3128
- * Get a fulfillment for a platform by a given fulfillment ID.
3129
- * @summary Get fulfillment
3245
+ *
3246
+ * @summary Update platform
3130
3247
  * @param {string} project Project unique identifier
3131
- * @param {string} platformId The platform identifier
3132
- * @param {string} fulfillmentId The fulfillment identifier
3248
+ * @param {UpdatePlatformRequest} updatePlatformRequest
3133
3249
  * @param {*} [options] Override http request option.
3134
3250
  * @throws {RequiredError}
3135
3251
  */
3136
- getFulfillment: async (project: string, platformId: string, fulfillmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3137
- // verify required parameter 'project' is not null or undefined
3138
- assertParamExists('getFulfillment', 'project', project)
3139
- // verify required parameter 'platformId' is not null or undefined
3140
- assertParamExists('getFulfillment', 'platformId', platformId)
3141
- // verify required parameter 'fulfillmentId' is not null or undefined
3142
- assertParamExists('getFulfillment', 'fulfillmentId', fulfillmentId)
3143
- const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
3144
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3145
- .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
3146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3147
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3148
- let baseOptions;
3149
- if (configuration) {
3150
- baseOptions = configuration.baseOptions;
3151
- }
3152
-
3153
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3154
- const localVarHeaderParameter = {} as any;
3155
- const localVarQueryParameter = {} as any;
3156
-
3157
- // authentication session-oauth required
3158
- // oauth required
3159
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3160
-
3161
- // authentication api-key required
3162
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3163
-
3164
- if (project !== undefined) {
3165
- localVarQueryParameter['project'] = project;
3166
- }
3167
-
3168
-
3169
-
3170
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3171
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3172
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3173
-
3174
- return {
3175
- url: toPathString(localVarUrlObj),
3176
- options: localVarRequestOptions,
3177
- };
3178
- },
3179
- /**
3180
- * Get an order for a platform by a given order ID.
3181
- * @summary Get order
3182
- * @param {string} project Project unique identifier
3183
- * @param {string} platformId The platform identifier
3184
- * @param {string} orderId The order identifier
3185
- * @param {*} [options] Override http request option.
3186
- * @throws {RequiredError}
3187
- */
3188
- getOrder: async (project: string, platformId: string, orderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3189
- // verify required parameter 'project' is not null or undefined
3190
- assertParamExists('getOrder', 'project', project)
3191
- // verify required parameter 'platformId' is not null or undefined
3192
- assertParamExists('getOrder', 'platformId', platformId)
3193
- // verify required parameter 'orderId' is not null or undefined
3194
- assertParamExists('getOrder', 'orderId', orderId)
3195
- const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
3196
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3197
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
3198
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3199
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3200
- let baseOptions;
3201
- if (configuration) {
3202
- baseOptions = configuration.baseOptions;
3203
- }
3204
-
3205
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3206
- const localVarHeaderParameter = {} as any;
3207
- const localVarQueryParameter = {} as any;
3208
-
3209
- // authentication session-oauth required
3210
- // oauth required
3211
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3212
-
3213
- // authentication api-key required
3214
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3215
-
3216
- if (project !== undefined) {
3217
- localVarQueryParameter['project'] = project;
3218
- }
3219
-
3220
-
3221
-
3222
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3223
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3224
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3225
-
3226
- return {
3227
- url: toPathString(localVarUrlObj),
3228
- options: localVarRequestOptions,
3229
- };
3230
- },
3231
- /**
3232
- *
3233
- * @summary Get platform details
3234
- * @param {string} project Project unique identifier
3235
- * @param {*} [options] Override http request option.
3236
- * @throws {RequiredError}
3237
- */
3238
- getPlatform: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3239
- // verify required parameter 'project' is not null or undefined
3240
- assertParamExists('getPlatform', 'project', project)
3241
- const localVarPath = `/v1/platform`;
3242
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3243
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3244
- let baseOptions;
3245
- if (configuration) {
3246
- baseOptions = configuration.baseOptions;
3247
- }
3248
-
3249
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3250
- const localVarHeaderParameter = {} as any;
3251
- const localVarQueryParameter = {} as any;
3252
-
3253
- // authentication session-oauth required
3254
- // oauth required
3255
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3256
-
3257
- // authentication api-key required
3258
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3259
-
3260
- if (project !== undefined) {
3261
- localVarQueryParameter['project'] = project;
3262
- }
3263
-
3264
-
3265
-
3266
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3267
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3268
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3269
-
3270
- return {
3271
- url: toPathString(localVarUrlObj),
3272
- options: localVarRequestOptions,
3273
- };
3274
- },
3275
- /**
3276
- * List available fulfillers for a given fulfillment
3277
- * @summary List available fulfillers
3278
- * @param {string} project Project unique identifier
3279
- * @param {string} platformId The platform identifier
3280
- * @param {string} fulfillmentId The fulfillment identifier
3281
- * @param {*} [options] Override http request option.
3282
- * @throws {RequiredError}
3283
- */
3284
- listAvailableFulfillers: async (project: string, platformId: string, fulfillmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3285
- // verify required parameter 'project' is not null or undefined
3286
- assertParamExists('listAvailableFulfillers', 'project', project)
3287
- // verify required parameter 'platformId' is not null or undefined
3288
- assertParamExists('listAvailableFulfillers', 'platformId', platformId)
3289
- // verify required parameter 'fulfillmentId' is not null or undefined
3290
- assertParamExists('listAvailableFulfillers', 'fulfillmentId', fulfillmentId)
3291
- const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
3292
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3293
- .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
3294
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3295
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3296
- let baseOptions;
3297
- if (configuration) {
3298
- baseOptions = configuration.baseOptions;
3299
- }
3300
-
3301
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3302
- const localVarHeaderParameter = {} as any;
3303
- const localVarQueryParameter = {} as any;
3304
-
3305
- // authentication session-oauth required
3306
- // oauth required
3307
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3308
-
3309
- // authentication api-key required
3310
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3311
-
3312
- if (project !== undefined) {
3313
- localVarQueryParameter['project'] = project;
3314
- }
3315
-
3316
-
3317
-
3318
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3319
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3320
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3321
-
3322
- return {
3323
- url: toPathString(localVarUrlObj),
3324
- options: localVarRequestOptions,
3325
- };
3326
- },
3327
- /**
3328
- * List customers for a platform
3329
- * @summary List customers
3330
- * @param {string} project Project unique identifier
3331
- * @param {string} platformId The platform identifier
3332
- * @param {number} [pageToken] Page reference token
3333
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3334
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3335
- * @param {*} [options] Override http request option.
3336
- * @throws {RequiredError}
3337
- */
3338
- listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3339
- // verify required parameter 'project' is not null or undefined
3340
- assertParamExists('listCustomers', 'project', project)
3341
- // verify required parameter 'platformId' is not null or undefined
3342
- assertParamExists('listCustomers', 'platformId', platformId)
3343
- const localVarPath = `/v1/platform/{platformId}/customers`
3344
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3345
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3346
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3347
- let baseOptions;
3348
- if (configuration) {
3349
- baseOptions = configuration.baseOptions;
3350
- }
3351
-
3352
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3353
- const localVarHeaderParameter = {} as any;
3354
- const localVarQueryParameter = {} as any;
3355
-
3356
- // authentication session-oauth required
3357
- // oauth required
3358
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3359
-
3360
- // authentication api-key required
3361
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3362
-
3363
- if (project !== undefined) {
3364
- localVarQueryParameter['project'] = project;
3365
- }
3366
-
3367
- if (pageToken !== undefined) {
3368
- localVarQueryParameter['pageToken'] = pageToken;
3369
- }
3370
-
3371
- if (pageSize !== undefined) {
3372
- localVarQueryParameter['pageSize'] = pageSize;
3373
- }
3374
-
3375
- if (search !== undefined) {
3376
- localVarQueryParameter['search'] = search;
3377
- }
3378
-
3379
-
3380
-
3381
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3382
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3383
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3384
-
3385
- return {
3386
- url: toPathString(localVarUrlObj),
3387
- options: localVarRequestOptions,
3388
- };
3389
- },
3390
- /**
3391
- * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
3392
- * @summary List orders
3393
- * @param {string} project Project unique identifier
3394
- * @param {string} platformId The platform identifier
3395
- * @param {number} [pageToken] Page reference token
3396
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3397
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3398
- * @param {string} [start] Start of date range to filter by when orders were placed
3399
- * @param {string} [end] End of date range to filter by when orders were placed
3400
- * @param {*} [options] Override http request option.
3401
- * @throws {RequiredError}
3402
- */
3403
- listOrders: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3404
- // verify required parameter 'project' is not null or undefined
3405
- assertParamExists('listOrders', 'project', project)
3406
- // verify required parameter 'platformId' is not null or undefined
3407
- assertParamExists('listOrders', 'platformId', platformId)
3408
- const localVarPath = `/v1/platform/{platformId}/orders`
3409
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
3410
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3411
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3412
- let baseOptions;
3413
- if (configuration) {
3414
- baseOptions = configuration.baseOptions;
3415
- }
3416
-
3417
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3418
- const localVarHeaderParameter = {} as any;
3419
- const localVarQueryParameter = {} as any;
3420
-
3421
- // authentication session-oauth required
3422
- // oauth required
3423
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3424
-
3425
- // authentication api-key required
3426
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3427
-
3428
- if (project !== undefined) {
3429
- localVarQueryParameter['project'] = project;
3430
- }
3431
-
3432
- if (pageToken !== undefined) {
3433
- localVarQueryParameter['pageToken'] = pageToken;
3434
- }
3435
-
3436
- if (pageSize !== undefined) {
3437
- localVarQueryParameter['pageSize'] = pageSize;
3438
- }
3439
-
3440
- if (search !== undefined) {
3441
- localVarQueryParameter['search'] = search;
3442
- }
3443
-
3444
- if (start !== undefined) {
3445
- localVarQueryParameter['start'] = (start as any instanceof Date) ?
3446
- (start as any).toISOString() :
3447
- start;
3448
- }
3449
-
3450
- if (end !== undefined) {
3451
- localVarQueryParameter['end'] = (end as any instanceof Date) ?
3452
- (end as any).toISOString() :
3453
- end;
3454
- }
3455
-
3456
-
3457
-
3458
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3459
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3460
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3461
-
3462
- return {
3463
- url: toPathString(localVarUrlObj),
3464
- options: localVarRequestOptions,
3465
- };
3466
- },
3467
- /**
3468
- * Update a fulfillment that belongs to an order placed through the platform
3469
- * @summary Update fulfillment
3470
- * @param {string} project Project unique identifier
3471
- * @param {string} platformId The platform identifier
3472
- * @param {string} fulfillmentId The fulfillment identifier
3473
- * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
3474
- * @param {*} [options] Override http request option.
3475
- * @throws {RequiredError}
3476
- */
3477
- updateFulfillment: async (project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3478
- // verify required parameter 'project' is not null or undefined
3479
- assertParamExists('updateFulfillment', 'project', project)
3480
- // verify required parameter 'platformId' is not null or undefined
3481
- assertParamExists('updateFulfillment', 'platformId', platformId)
3482
- // verify required parameter 'fulfillmentId' is not null or undefined
3483
- assertParamExists('updateFulfillment', 'fulfillmentId', fulfillmentId)
3484
- // verify required parameter 'updateFulfillmentRequest' is not null or undefined
3485
- assertParamExists('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest)
3486
- const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
3487
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3488
- .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
3489
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3490
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3491
- let baseOptions;
3492
- if (configuration) {
3493
- baseOptions = configuration.baseOptions;
3494
- }
3495
-
3496
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3497
- const localVarHeaderParameter = {} as any;
3498
- const localVarQueryParameter = {} as any;
3499
-
3500
- // authentication session-oauth required
3501
- // oauth required
3502
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3503
-
3504
- // authentication api-key required
3505
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3506
-
3507
- if (project !== undefined) {
3508
- localVarQueryParameter['project'] = project;
3509
- }
3510
-
3511
-
3512
-
3513
- localVarHeaderParameter['Content-Type'] = 'application/json';
3514
-
3515
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3516
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3517
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3518
- localVarRequestOptions.data = serializeDataIfNeeded(updateFulfillmentRequest, localVarRequestOptions, configuration)
3519
-
3520
- return {
3521
- url: toPathString(localVarUrlObj),
3522
- options: localVarRequestOptions,
3523
- };
3524
- },
3525
- /**
3526
- *
3527
- * @summary Update platform
3528
- * @param {string} project Project unique identifier
3529
- * @param {UpdatePlatformRequest} updatePlatformRequest
3530
- * @param {*} [options] Override http request option.
3531
- * @throws {RequiredError}
3532
- */
3533
- updatePlatform: async (project: string, updatePlatformRequest: UpdatePlatformRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3534
- // verify required parameter 'project' is not null or undefined
3535
- assertParamExists('updatePlatform', 'project', project)
3536
- // verify required parameter 'updatePlatformRequest' is not null or undefined
3537
- assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest)
3538
- const localVarPath = `/v1/platform`;
3539
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3540
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3541
- let baseOptions;
3542
- if (configuration) {
3543
- baseOptions = configuration.baseOptions;
3544
- }
3545
-
3546
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3547
- const localVarHeaderParameter = {} as any;
3548
- const localVarQueryParameter = {} as any;
3549
-
3550
- // authentication session-oauth required
3551
- // oauth required
3552
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3553
-
3554
- // authentication api-key required
3555
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3556
-
3557
- if (project !== undefined) {
3558
- localVarQueryParameter['project'] = project;
3559
- }
3560
-
3561
-
3562
-
3563
- localVarHeaderParameter['Content-Type'] = 'application/json';
3564
-
3565
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3566
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3567
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3568
- localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
3569
-
3570
- return {
3571
- url: toPathString(localVarUrlObj),
3572
- options: localVarRequestOptions,
3573
- };
3574
- },
3575
- /**
3576
- * Updates the warehouse product and its variants
3577
- * @summary Update warehouse product
3578
- * @param {string} project Project unique identifier
3579
- * @param {string} platformId The platform identifier
3580
- * @param {string} productId Products unique identifier
3581
- * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
3582
- * @param {*} [options] Override http request option.
3583
- * @throws {RequiredError}
3584
- */
3585
- updateProduct: async (project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3586
- // verify required parameter 'project' is not null or undefined
3587
- assertParamExists('updateProduct', 'project', project)
3588
- // verify required parameter 'platformId' is not null or undefined
3589
- assertParamExists('updateProduct', 'platformId', platformId)
3590
- // verify required parameter 'productId' is not null or undefined
3591
- assertParamExists('updateProduct', 'productId', productId)
3592
- // verify required parameter 'updateProductRequest' is not null or undefined
3593
- assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest)
3594
- const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
3595
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3596
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
3597
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3598
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3599
- let baseOptions;
3600
- if (configuration) {
3601
- baseOptions = configuration.baseOptions;
3602
- }
3603
-
3604
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3605
- const localVarHeaderParameter = {} as any;
3606
- const localVarQueryParameter = {} as any;
3607
-
3608
- // authentication session-oauth required
3609
- // oauth required
3610
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3611
-
3612
- // authentication api-key required
3613
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3614
-
3615
- if (project !== undefined) {
3616
- localVarQueryParameter['project'] = project;
3617
- }
3618
-
3619
-
3620
-
3621
- localVarHeaderParameter['Content-Type'] = 'application/json';
3622
-
3623
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3624
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3625
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3626
- localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
3627
-
3628
- return {
3629
- url: toPathString(localVarUrlObj),
3630
- options: localVarRequestOptions,
3631
- };
3632
- },
3633
- /**
3634
- * Updates the warehouse variant
3635
- * @summary Update warehouse variant
3636
- * @param {string} project Project unique identifier
3637
- * @param {string} platformId The platform identifier
3638
- * @param {string} variantId Variants unique identifier
3639
- * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
3640
- * @param {*} [options] Override http request option.
3641
- * @throws {RequiredError}
3642
- */
3643
- updateVariant: async (project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3644
- // verify required parameter 'project' is not null or undefined
3645
- assertParamExists('updateVariant', 'project', project)
3646
- // verify required parameter 'platformId' is not null or undefined
3647
- assertParamExists('updateVariant', 'platformId', platformId)
3648
- // verify required parameter 'variantId' is not null or undefined
3649
- assertParamExists('updateVariant', 'variantId', variantId)
3650
- // verify required parameter 'updateVariantRequest' is not null or undefined
3651
- assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest)
3652
- const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
3653
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3654
- .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
3655
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3656
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3657
- let baseOptions;
3658
- if (configuration) {
3659
- baseOptions = configuration.baseOptions;
3660
- }
3661
-
3662
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3663
- const localVarHeaderParameter = {} as any;
3664
- const localVarQueryParameter = {} as any;
3665
-
3666
- // authentication session-oauth required
3667
- // oauth required
3668
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3669
-
3670
- // authentication api-key required
3671
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3672
-
3673
- if (project !== undefined) {
3674
- localVarQueryParameter['project'] = project;
3675
- }
3676
-
3677
-
3678
-
3679
- localVarHeaderParameter['Content-Type'] = 'application/json';
3680
-
3681
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3682
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3683
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3684
- localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration)
3685
-
3686
- return {
3687
- url: toPathString(localVarUrlObj),
3688
- options: localVarRequestOptions,
3689
- };
3690
- },
3691
- }
3692
- };
3693
-
3694
- /**
3695
- * PlatformApi - functional programming interface
3696
- * @export
3697
- */
3698
- export const PlatformApiFp = function(configuration?: Configuration) {
3699
- const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
3700
- return {
3701
- /**
3702
- * Export customers as a CSV file
3703
- * @summary Export customers
3704
- * @param {string} project Project unique identifier
3705
- * @param {string} platformId The platform identifier
3706
- * @param {*} [options] Override http request option.
3707
- * @throws {RequiredError}
3708
- */
3709
- async exportCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
3710
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, options);
3711
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3712
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
3713
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3714
- },
3715
- /**
3716
- * Export orders as a CSV file
3717
- * @summary Export orders
3718
- * @param {string} project Project unique identifier
3719
- * @param {string} platformId The platform identifier
3720
- * @param {string} start Start of date range to filter by when orders were placed
3721
- * @param {string} [end] End of date range to filter by when orders were placed
3722
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3723
- * @param {*} [options] Override http request option.
3724
- * @throws {RequiredError}
3725
- */
3726
- async exportOrders(project: string, platformId: string, start: string, end?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
3727
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportOrders(project, platformId, start, end, search, options);
3728
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3729
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.exportOrders']?.[localVarOperationServerIndex]?.url;
3730
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3731
- },
3732
- /**
3733
- * Get a customer for a platform by a given customer ID.
3734
- * @summary Get customer
3735
- * @param {string} project Project unique identifier
3736
- * @param {string} platformId The platform identifier
3737
- * @param {string} customerId The customer identifier
3738
- * @param {*} [options] Override http request option.
3739
- * @throws {RequiredError}
3740
- */
3741
- async getCustomer(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>> {
3742
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
3743
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3744
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.getCustomer']?.[localVarOperationServerIndex]?.url;
3745
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3746
- },
3747
- /**
3748
- * Get a fulfillment for a platform by a given fulfillment ID.
3749
- * @summary Get fulfillment
3750
- * @param {string} project Project unique identifier
3751
- * @param {string} platformId The platform identifier
3752
- * @param {string} fulfillmentId The fulfillment identifier
3753
- * @param {*} [options] Override http request option.
3754
- * @throws {RequiredError}
3755
- */
3756
- async getFulfillment(project: string, platformId: string, fulfillmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Fulfillment>> {
3757
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
3758
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3759
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.getFulfillment']?.[localVarOperationServerIndex]?.url;
3760
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3761
- },
3762
- /**
3763
- * Get an order for a platform by a given order ID.
3764
- * @summary Get order
3765
- * @param {string} project Project unique identifier
3766
- * @param {string} platformId The platform identifier
3767
- * @param {string} orderId The order identifier
3768
- * @param {*} [options] Override http request option.
3769
- * @throws {RequiredError}
3770
- */
3771
- async getOrder(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
3772
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
3773
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3774
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.getOrder']?.[localVarOperationServerIndex]?.url;
3775
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3776
- },
3777
- /**
3778
- *
3779
- * @summary Get platform details
3780
- * @param {string} project Project unique identifier
3781
- * @param {*} [options] Override http request option.
3782
- * @throws {RequiredError}
3783
- */
3784
- async getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
3785
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPlatform(project, options);
3786
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3787
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
3788
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3789
- },
3790
- /**
3791
- * List available fulfillers for a given fulfillment
3792
- * @summary List available fulfillers
3793
- * @param {string} project Project unique identifier
3794
- * @param {string} platformId The platform identifier
3795
- * @param {string} fulfillmentId The fulfillment identifier
3796
- * @param {*} [options] Override http request option.
3797
- * @throws {RequiredError}
3798
- */
3799
- async listAvailableFulfillers(project: string, platformId: string, fulfillmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FulfillersResponse>> {
3800
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
3801
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3802
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.listAvailableFulfillers']?.[localVarOperationServerIndex]?.url;
3803
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3804
- },
3805
- /**
3806
- * List customers for a platform
3807
- * @summary List customers
3808
- * @param {string} project Project unique identifier
3809
- * @param {string} platformId The platform identifier
3810
- * @param {number} [pageToken] Page reference token
3811
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3812
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3813
- * @param {*} [options] Override http request option.
3814
- * @throws {RequiredError}
3815
- */
3816
- async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
3817
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
3818
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3819
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.listCustomers']?.[localVarOperationServerIndex]?.url;
3820
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3821
- },
3822
- /**
3823
- * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
3824
- * @summary List orders
3825
- * @param {string} project Project unique identifier
3826
- * @param {string} platformId The platform identifier
3827
- * @param {number} [pageToken] Page reference token
3828
- * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
3829
- * @param {string} [search] Search term to filter based on order reference, customer name and email
3830
- * @param {string} [start] Start of date range to filter by when orders were placed
3831
- * @param {string} [end] End of date range to filter by when orders were placed
3832
- * @param {*} [options] Override http request option.
3833
- * @throws {RequiredError}
3834
- */
3835
- async listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>> {
3836
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(project, platformId, pageToken, pageSize, search, start, end, options);
3837
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3838
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.listOrders']?.[localVarOperationServerIndex]?.url;
3839
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3840
- },
3841
- /**
3842
- * Update a fulfillment that belongs to an order placed through the platform
3843
- * @summary Update fulfillment
3844
- * @param {string} project Project unique identifier
3845
- * @param {string} platformId The platform identifier
3846
- * @param {string} fulfillmentId The fulfillment identifier
3847
- * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
3848
- * @param {*} [options] Override http request option.
3849
- * @throws {RequiredError}
3850
- */
3851
- async updateFulfillment(project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Fulfillment>> {
3852
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
3853
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3854
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateFulfillment']?.[localVarOperationServerIndex]?.url;
3855
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3856
- },
3857
- /**
3858
- *
3859
- * @summary Update platform
3860
- * @param {string} project Project unique identifier
3861
- * @param {UpdatePlatformRequest} updatePlatformRequest
3862
- * @param {*} [options] Override http request option.
3863
- * @throws {RequiredError}
3864
- */
3865
- async updatePlatform(project: string, updatePlatformRequest: UpdatePlatformRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
3866
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
3867
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3868
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
3869
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3870
- },
3871
- /**
3872
- * Updates the warehouse product and its variants
3873
- * @summary Update warehouse product
3874
- * @param {string} project Project unique identifier
3875
- * @param {string} platformId The platform identifier
3876
- * @param {string} productId Products unique identifier
3877
- * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
3878
- * @param {*} [options] Override http request option.
3879
- * @throws {RequiredError}
3880
- */
3881
- async updateProduct(project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
3882
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
3883
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3884
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateProduct']?.[localVarOperationServerIndex]?.url;
3885
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3886
- },
3887
- /**
3888
- * Updates the warehouse variant
3889
- * @summary Update warehouse variant
3890
- * @param {string} project Project unique identifier
3891
- * @param {string} platformId The platform identifier
3892
- * @param {string} variantId Variants unique identifier
3893
- * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
3894
- * @param {*} [options] Override http request option.
3895
- * @throws {RequiredError}
3896
- */
3897
- async updateVariant(project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
3898
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
3899
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3900
- const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateVariant']?.[localVarOperationServerIndex]?.url;
3901
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3902
- },
3903
- }
3904
- };
3905
-
3906
- /**
3907
- * PlatformApi - factory interface
3908
- * @export
3909
- */
3910
- export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3911
- const localVarFp = PlatformApiFp(configuration)
3912
- return {
3913
- /**
3914
- * Export customers as a CSV file
3915
- * @summary Export customers
3916
- * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
3917
- * @param {*} [options] Override http request option.
3918
- * @throws {RequiredError}
3919
- */
3920
- exportCustomers(requestParameters: PlatformApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
3921
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
3922
- },
3923
- /**
3924
- * Export orders as a CSV file
3925
- * @summary Export orders
3926
- * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
3927
- * @param {*} [options] Override http request option.
3928
- * @throws {RequiredError}
3929
- */
3930
- exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
3931
- return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
3932
- },
3933
- /**
3934
- * Get a customer for a platform by a given customer ID.
3935
- * @summary Get customer
3936
- * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
3937
- * @param {*} [options] Override http request option.
3938
- * @throws {RequiredError}
3939
- */
3940
- getCustomer(requestParameters: PlatformApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
3941
- return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
3942
- },
3943
- /**
3944
- * Get a fulfillment for a platform by a given fulfillment ID.
3945
- * @summary Get fulfillment
3946
- * @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
3947
- * @param {*} [options] Override http request option.
3948
- * @throws {RequiredError}
3949
- */
3950
- getFulfillment(requestParameters: PlatformApiGetFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment> {
3951
- return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
3952
- },
3953
- /**
3954
- * Get an order for a platform by a given order ID.
3955
- * @summary Get order
3956
- * @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
3957
- * @param {*} [options] Override http request option.
3958
- * @throws {RequiredError}
3959
- */
3960
- getOrder(requestParameters: PlatformApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
3961
- return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
3962
- },
3963
- /**
3964
- *
3965
- * @summary Get platform details
3966
- * @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
3967
- * @param {*} [options] Override http request option.
3968
- * @throws {RequiredError}
3969
- */
3970
- getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
3971
- return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
3972
- },
3973
- /**
3974
- * List available fulfillers for a given fulfillment
3975
- * @summary List available fulfillers
3976
- * @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
3977
- * @param {*} [options] Override http request option.
3978
- * @throws {RequiredError}
3979
- */
3980
- listAvailableFulfillers(requestParameters: PlatformApiListAvailableFulfillersRequest, options?: RawAxiosRequestConfig): AxiosPromise<FulfillersResponse> {
3981
- return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
3982
- },
3983
- /**
3984
- * List customers for a platform
3985
- * @summary List customers
3986
- * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
3987
- * @param {*} [options] Override http request option.
3988
- * @throws {RequiredError}
3989
- */
3990
- listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
3991
- return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
3992
- },
3993
- /**
3994
- * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
3995
- * @summary List orders
3996
- * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
3997
- * @param {*} [options] Override http request option.
3998
- * @throws {RequiredError}
3999
- */
4000
- listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
4001
- return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
4002
- },
4003
- /**
4004
- * Update a fulfillment that belongs to an order placed through the platform
4005
- * @summary Update fulfillment
4006
- * @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
4007
- * @param {*} [options] Override http request option.
4008
- * @throws {RequiredError}
4009
- */
4010
- updateFulfillment(requestParameters: PlatformApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment> {
4011
- return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
4012
- },
4013
- /**
4014
- *
4015
- * @summary Update platform
4016
- * @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
4017
- * @param {*} [options] Override http request option.
4018
- * @throws {RequiredError}
4019
- */
4020
- updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
4021
- return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
4022
- },
4023
- /**
4024
- * Updates the warehouse product and its variants
4025
- * @summary Update warehouse product
4026
- * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
4027
- * @param {*} [options] Override http request option.
4028
- * @throws {RequiredError}
4029
- */
4030
- updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
4031
- return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
4032
- },
4033
- /**
4034
- * Updates the warehouse variant
4035
- * @summary Update warehouse variant
4036
- * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
4037
- * @param {*} [options] Override http request option.
4038
- * @throws {RequiredError}
4039
- */
4040
- updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant> {
4041
- return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
4042
- },
4043
- };
4044
- };
4045
-
4046
- /**
4047
- * Request parameters for exportCustomers operation in PlatformApi.
4048
- * @export
4049
- * @interface PlatformApiExportCustomersRequest
4050
- */
4051
- export interface PlatformApiExportCustomersRequest {
4052
- /**
4053
- * Project unique identifier
4054
- * @type {string}
4055
- * @memberof PlatformApiExportCustomers
4056
- */
4057
- readonly project: string
4058
-
4059
- /**
4060
- * The platform identifier
4061
- * @type {string}
4062
- * @memberof PlatformApiExportCustomers
4063
- */
4064
- readonly platformId: string
4065
- }
4066
-
4067
- /**
4068
- * Request parameters for exportOrders operation in PlatformApi.
4069
- * @export
4070
- * @interface PlatformApiExportOrdersRequest
4071
- */
4072
- export interface PlatformApiExportOrdersRequest {
4073
- /**
4074
- * Project unique identifier
4075
- * @type {string}
4076
- * @memberof PlatformApiExportOrders
4077
- */
4078
- readonly project: string
4079
-
4080
- /**
4081
- * The platform identifier
4082
- * @type {string}
4083
- * @memberof PlatformApiExportOrders
4084
- */
4085
- readonly platformId: string
4086
-
4087
- /**
4088
- * Start of date range to filter by when orders were placed
4089
- * @type {string}
4090
- * @memberof PlatformApiExportOrders
4091
- */
4092
- readonly start: string
4093
-
4094
- /**
4095
- * End of date range to filter by when orders were placed
4096
- * @type {string}
4097
- * @memberof PlatformApiExportOrders
4098
- */
4099
- readonly end?: string
4100
-
4101
- /**
4102
- * Search term to filter based on order reference, customer name and email
4103
- * @type {string}
4104
- * @memberof PlatformApiExportOrders
4105
- */
4106
- readonly search?: string
4107
- }
4108
-
4109
- /**
4110
- * Request parameters for getCustomer operation in PlatformApi.
4111
- * @export
4112
- * @interface PlatformApiGetCustomerRequest
4113
- */
4114
- export interface PlatformApiGetCustomerRequest {
4115
- /**
4116
- * Project unique identifier
4117
- * @type {string}
4118
- * @memberof PlatformApiGetCustomer
4119
- */
4120
- readonly project: string
4121
-
4122
- /**
4123
- * The platform identifier
4124
- * @type {string}
4125
- * @memberof PlatformApiGetCustomer
4126
- */
4127
- readonly platformId: string
4128
-
4129
- /**
4130
- * The customer identifier
4131
- * @type {string}
4132
- * @memberof PlatformApiGetCustomer
4133
- */
4134
- readonly customerId: string
4135
- }
4136
-
4137
- /**
4138
- * Request parameters for getFulfillment operation in PlatformApi.
4139
- * @export
4140
- * @interface PlatformApiGetFulfillmentRequest
4141
- */
4142
- export interface PlatformApiGetFulfillmentRequest {
4143
- /**
4144
- * Project unique identifier
4145
- * @type {string}
4146
- * @memberof PlatformApiGetFulfillment
4147
- */
4148
- readonly project: string
4149
-
4150
- /**
4151
- * The platform identifier
4152
- * @type {string}
4153
- * @memberof PlatformApiGetFulfillment
4154
- */
4155
- readonly platformId: string
4156
-
4157
- /**
4158
- * The fulfillment identifier
4159
- * @type {string}
4160
- * @memberof PlatformApiGetFulfillment
4161
- */
4162
- readonly fulfillmentId: string
4163
- }
4164
-
4165
- /**
4166
- * Request parameters for getOrder operation in PlatformApi.
4167
- * @export
4168
- * @interface PlatformApiGetOrderRequest
4169
- */
4170
- export interface PlatformApiGetOrderRequest {
4171
- /**
4172
- * Project unique identifier
4173
- * @type {string}
4174
- * @memberof PlatformApiGetOrder
4175
- */
4176
- readonly project: string
4177
-
4178
- /**
4179
- * The platform identifier
4180
- * @type {string}
4181
- * @memberof PlatformApiGetOrder
4182
- */
4183
- readonly platformId: string
4184
-
4185
- /**
4186
- * The order identifier
4187
- * @type {string}
4188
- * @memberof PlatformApiGetOrder
4189
- */
4190
- readonly orderId: string
4191
- }
4192
-
4193
- /**
4194
- * Request parameters for getPlatform operation in PlatformApi.
4195
- * @export
4196
- * @interface PlatformApiGetPlatformRequest
4197
- */
4198
- export interface PlatformApiGetPlatformRequest {
4199
- /**
4200
- * Project unique identifier
4201
- * @type {string}
4202
- * @memberof PlatformApiGetPlatform
4203
- */
4204
- readonly project: string
4205
- }
4206
-
4207
- /**
4208
- * Request parameters for listAvailableFulfillers operation in PlatformApi.
4209
- * @export
4210
- * @interface PlatformApiListAvailableFulfillersRequest
4211
- */
4212
- export interface PlatformApiListAvailableFulfillersRequest {
4213
- /**
4214
- * Project unique identifier
4215
- * @type {string}
4216
- * @memberof PlatformApiListAvailableFulfillers
4217
- */
4218
- readonly project: string
4219
-
4220
- /**
4221
- * The platform identifier
4222
- * @type {string}
4223
- * @memberof PlatformApiListAvailableFulfillers
4224
- */
4225
- readonly platformId: string
4226
-
4227
- /**
4228
- * The fulfillment identifier
4229
- * @type {string}
4230
- * @memberof PlatformApiListAvailableFulfillers
4231
- */
4232
- readonly fulfillmentId: string
4233
- }
4234
-
4235
- /**
4236
- * Request parameters for listCustomers operation in PlatformApi.
4237
- * @export
4238
- * @interface PlatformApiListCustomersRequest
4239
- */
4240
- export interface PlatformApiListCustomersRequest {
4241
- /**
4242
- * Project unique identifier
4243
- * @type {string}
4244
- * @memberof PlatformApiListCustomers
4245
- */
4246
- readonly project: string
4247
-
4248
- /**
4249
- * The platform identifier
4250
- * @type {string}
4251
- * @memberof PlatformApiListCustomers
4252
- */
4253
- readonly platformId: string
4254
-
4255
- /**
4256
- * Page reference token
4257
- * @type {number}
4258
- * @memberof PlatformApiListCustomers
4259
- */
4260
- readonly pageToken?: number
4261
-
4262
- /**
4263
- * Max page size. This is the maximum page size that will be returned, but it might be smaller.
4264
- * @type {number}
4265
- * @memberof PlatformApiListCustomers
4266
- */
4267
- readonly pageSize?: number
4268
-
4269
- /**
4270
- * Search term to filter based on order reference, customer name and email
4271
- * @type {string}
4272
- * @memberof PlatformApiListCustomers
4273
- */
4274
- readonly search?: string
4275
- }
3252
+ async updatePlatform(project: string, updatePlatformRequest: UpdatePlatformRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>> {
3253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlatform(project, updatePlatformRequest, options);
3254
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3255
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
3256
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3257
+ },
3258
+ }
3259
+ };
4276
3260
 
4277
3261
  /**
4278
- * Request parameters for listOrders operation in PlatformApi.
3262
+ * PlatformApi - factory interface
4279
3263
  * @export
4280
- * @interface PlatformApiListOrdersRequest
4281
3264
  */
4282
- export interface PlatformApiListOrdersRequest {
4283
- /**
4284
- * Project unique identifier
4285
- * @type {string}
4286
- * @memberof PlatformApiListOrders
4287
- */
4288
- readonly project: string
4289
-
4290
- /**
4291
- * The platform identifier
4292
- * @type {string}
4293
- * @memberof PlatformApiListOrders
4294
- */
4295
- readonly platformId: string
4296
-
4297
- /**
4298
- * Page reference token
4299
- * @type {number}
4300
- * @memberof PlatformApiListOrders
4301
- */
4302
- readonly pageToken?: number
4303
-
4304
- /**
4305
- * Max page size. This is the maximum page size that will be returned, but it might be smaller.
4306
- * @type {number}
4307
- * @memberof PlatformApiListOrders
4308
- */
4309
- readonly pageSize?: number
4310
-
4311
- /**
4312
- * Search term to filter based on order reference, customer name and email
4313
- * @type {string}
4314
- * @memberof PlatformApiListOrders
4315
- */
4316
- readonly search?: string
4317
-
4318
- /**
4319
- * Start of date range to filter by when orders were placed
4320
- * @type {string}
4321
- * @memberof PlatformApiListOrders
4322
- */
4323
- readonly start?: string
4324
-
4325
- /**
4326
- * End of date range to filter by when orders were placed
4327
- * @type {string}
4328
- * @memberof PlatformApiListOrders
4329
- */
4330
- readonly end?: string
4331
- }
3265
+ export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3266
+ const localVarFp = PlatformApiFp(configuration)
3267
+ return {
3268
+ /**
3269
+ *
3270
+ * @summary Get platform details
3271
+ * @param {PlatformApiGetPlatformRequest} requestParameters Request parameters.
3272
+ * @param {*} [options] Override http request option.
3273
+ * @throws {RequiredError}
3274
+ */
3275
+ getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
3276
+ return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
3277
+ },
3278
+ /**
3279
+ *
3280
+ * @summary Update platform
3281
+ * @param {PlatformApiUpdatePlatformRequest} requestParameters Request parameters.
3282
+ * @param {*} [options] Override http request option.
3283
+ * @throws {RequiredError}
3284
+ */
3285
+ updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
3286
+ return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
3287
+ },
3288
+ };
3289
+ };
4332
3290
 
4333
3291
  /**
4334
- * Request parameters for updateFulfillment operation in PlatformApi.
3292
+ * Request parameters for getPlatform operation in PlatformApi.
4335
3293
  * @export
4336
- * @interface PlatformApiUpdateFulfillmentRequest
3294
+ * @interface PlatformApiGetPlatformRequest
4337
3295
  */
4338
- export interface PlatformApiUpdateFulfillmentRequest {
3296
+ export interface PlatformApiGetPlatformRequest {
4339
3297
  /**
4340
3298
  * Project unique identifier
4341
3299
  * @type {string}
4342
- * @memberof PlatformApiUpdateFulfillment
3300
+ * @memberof PlatformApiGetPlatform
4343
3301
  */
4344
3302
  readonly project: string
4345
-
4346
- /**
4347
- * The platform identifier
4348
- * @type {string}
4349
- * @memberof PlatformApiUpdateFulfillment
4350
- */
4351
- readonly platformId: string
4352
-
4353
- /**
4354
- * The fulfillment identifier
4355
- * @type {string}
4356
- * @memberof PlatformApiUpdateFulfillment
4357
- */
4358
- readonly fulfillmentId: string
4359
-
4360
- /**
4361
- *
4362
- * @type {UpdateFulfillmentRequest}
4363
- * @memberof PlatformApiUpdateFulfillment
4364
- */
4365
- readonly updateFulfillmentRequest: UpdateFulfillmentRequest
4366
3303
  }
4367
3304
 
4368
3305
  /**
@@ -4386,76 +3323,6 @@ export interface PlatformApiUpdatePlatformRequest {
4386
3323
  readonly updatePlatformRequest: UpdatePlatformRequest
4387
3324
  }
4388
3325
 
4389
- /**
4390
- * Request parameters for updateProduct operation in PlatformApi.
4391
- * @export
4392
- * @interface PlatformApiUpdateProductRequest
4393
- */
4394
- export interface PlatformApiUpdateProductRequest {
4395
- /**
4396
- * Project unique identifier
4397
- * @type {string}
4398
- * @memberof PlatformApiUpdateProduct
4399
- */
4400
- readonly project: string
4401
-
4402
- /**
4403
- * The platform identifier
4404
- * @type {string}
4405
- * @memberof PlatformApiUpdateProduct
4406
- */
4407
- readonly platformId: string
4408
-
4409
- /**
4410
- * Products unique identifier
4411
- * @type {string}
4412
- * @memberof PlatformApiUpdateProduct
4413
- */
4414
- readonly productId: string
4415
-
4416
- /**
4417
- * Update a platform warehouse product
4418
- * @type {UpdateProductRequest}
4419
- * @memberof PlatformApiUpdateProduct
4420
- */
4421
- readonly updateProductRequest: UpdateProductRequest
4422
- }
4423
-
4424
- /**
4425
- * Request parameters for updateVariant operation in PlatformApi.
4426
- * @export
4427
- * @interface PlatformApiUpdateVariantRequest
4428
- */
4429
- export interface PlatformApiUpdateVariantRequest {
4430
- /**
4431
- * Project unique identifier
4432
- * @type {string}
4433
- * @memberof PlatformApiUpdateVariant
4434
- */
4435
- readonly project: string
4436
-
4437
- /**
4438
- * The platform identifier
4439
- * @type {string}
4440
- * @memberof PlatformApiUpdateVariant
4441
- */
4442
- readonly platformId: string
4443
-
4444
- /**
4445
- * Variants unique identifier
4446
- * @type {string}
4447
- * @memberof PlatformApiUpdateVariant
4448
- */
4449
- readonly variantId: string
4450
-
4451
- /**
4452
- * Update a platform warehouse variant
4453
- * @type {UpdateVariantRequest}
4454
- * @memberof PlatformApiUpdateVariant
4455
- */
4456
- readonly updateVariantRequest: UpdateVariantRequest
4457
- }
4458
-
4459
3326
  /**
4460
3327
  * PlatformApi - object-oriented interface
4461
3328
  * @export
@@ -4463,66 +3330,6 @@ export interface PlatformApiUpdateVariantRequest {
4463
3330
  * @extends {BaseAPI}
4464
3331
  */
4465
3332
  export class PlatformApi extends BaseAPI {
4466
- /**
4467
- * Export customers as a CSV file
4468
- * @summary Export customers
4469
- * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
4470
- * @param {*} [options] Override http request option.
4471
- * @throws {RequiredError}
4472
- * @memberof PlatformApi
4473
- */
4474
- public exportCustomers(requestParameters: PlatformApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
4475
- return PlatformApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
4476
- }
4477
-
4478
- /**
4479
- * Export orders as a CSV file
4480
- * @summary Export orders
4481
- * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
4482
- * @param {*} [options] Override http request option.
4483
- * @throws {RequiredError}
4484
- * @memberof PlatformApi
4485
- */
4486
- public exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig) {
4487
- return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
4488
- }
4489
-
4490
- /**
4491
- * Get a customer for a platform by a given customer ID.
4492
- * @summary Get customer
4493
- * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
4494
- * @param {*} [options] Override http request option.
4495
- * @throws {RequiredError}
4496
- * @memberof PlatformApi
4497
- */
4498
- public getCustomer(requestParameters: PlatformApiGetCustomerRequest, options?: RawAxiosRequestConfig) {
4499
- return PlatformApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
4500
- }
4501
-
4502
- /**
4503
- * Get a fulfillment for a platform by a given fulfillment ID.
4504
- * @summary Get fulfillment
4505
- * @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
4506
- * @param {*} [options] Override http request option.
4507
- * @throws {RequiredError}
4508
- * @memberof PlatformApi
4509
- */
4510
- public getFulfillment(requestParameters: PlatformApiGetFulfillmentRequest, options?: RawAxiosRequestConfig) {
4511
- return PlatformApiFp(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
4512
- }
4513
-
4514
- /**
4515
- * Get an order for a platform by a given order ID.
4516
- * @summary Get order
4517
- * @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
4518
- * @param {*} [options] Override http request option.
4519
- * @throws {RequiredError}
4520
- * @memberof PlatformApi
4521
- */
4522
- public getOrder(requestParameters: PlatformApiGetOrderRequest, options?: RawAxiosRequestConfig) {
4523
- return PlatformApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
4524
- }
4525
-
4526
3333
  /**
4527
3334
  *
4528
3335
  * @summary Get platform details
@@ -4535,54 +3342,6 @@ export class PlatformApi extends BaseAPI {
4535
3342
  return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4536
3343
  }
4537
3344
 
4538
- /**
4539
- * List available fulfillers for a given fulfillment
4540
- * @summary List available fulfillers
4541
- * @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
4542
- * @param {*} [options] Override http request option.
4543
- * @throws {RequiredError}
4544
- * @memberof PlatformApi
4545
- */
4546
- public listAvailableFulfillers(requestParameters: PlatformApiListAvailableFulfillersRequest, options?: RawAxiosRequestConfig) {
4547
- return PlatformApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
4548
- }
4549
-
4550
- /**
4551
- * List customers for a platform
4552
- * @summary List customers
4553
- * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
4554
- * @param {*} [options] Override http request option.
4555
- * @throws {RequiredError}
4556
- * @memberof PlatformApi
4557
- */
4558
- public listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig) {
4559
- return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
4560
- }
4561
-
4562
- /**
4563
- * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
4564
- * @summary List orders
4565
- * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
4566
- * @param {*} [options] Override http request option.
4567
- * @throws {RequiredError}
4568
- * @memberof PlatformApi
4569
- */
4570
- public listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig) {
4571
- return PlatformApiFp(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
4572
- }
4573
-
4574
- /**
4575
- * Update a fulfillment that belongs to an order placed through the platform
4576
- * @summary Update fulfillment
4577
- * @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
4578
- * @param {*} [options] Override http request option.
4579
- * @throws {RequiredError}
4580
- * @memberof PlatformApi
4581
- */
4582
- public updateFulfillment(requestParameters: PlatformApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig) {
4583
- return PlatformApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
4584
- }
4585
-
4586
3345
  /**
4587
3346
  *
4588
3347
  * @summary Update platform
@@ -4594,30 +3353,6 @@ export class PlatformApi extends BaseAPI {
4594
3353
  public updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig) {
4595
3354
  return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
4596
3355
  }
4597
-
4598
- /**
4599
- * Updates the warehouse product and its variants
4600
- * @summary Update warehouse product
4601
- * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
4602
- * @param {*} [options] Override http request option.
4603
- * @throws {RequiredError}
4604
- * @memberof PlatformApi
4605
- */
4606
- public updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
4607
- return PlatformApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
4608
- }
4609
-
4610
- /**
4611
- * Updates the warehouse variant
4612
- * @summary Update warehouse variant
4613
- * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
4614
- * @param {*} [options] Override http request option.
4615
- * @throws {RequiredError}
4616
- * @memberof PlatformApi
4617
- */
4618
- public updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig) {
4619
- return PlatformApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
4620
- }
4621
3356
  }
4622
3357
 
4623
3358