@teemill/platform 0.12.3 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/platform@0.12.3
1
+ ## @teemill/platform@0.14.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/platform@0.12.3 --save
39
+ npm install @teemill/platform@0.14.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
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.3
7
+ * The version of the OpenAPI document: 0.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -153,6 +153,19 @@ export interface ApplicationTechnology {
153
153
  */
154
154
  'ref'?: string;
155
155
  }
156
+ /**
157
+ *
158
+ * @export
159
+ * @interface AuthorizeStripe200Response
160
+ */
161
+ export interface AuthorizeStripe200Response {
162
+ /**
163
+ * The URL to redirect to
164
+ * @type {string}
165
+ * @memberof AuthorizeStripe200Response
166
+ */
167
+ 'redirect_url': string;
168
+ }
156
169
  /**
157
170
  * Order recipient contact information, used only for courier tracking/updates.
158
171
  * @export
@@ -978,6 +991,38 @@ export interface OutputPadding {
978
991
  */
979
992
  'left': number;
980
993
  }
994
+ /**
995
+ *
996
+ * @export
997
+ * @interface PaymentAccount
998
+ */
999
+ export interface PaymentAccount {
1000
+ /**
1001
+ * The name of the payment account
1002
+ * @type {string}
1003
+ * @memberof PaymentAccount
1004
+ */
1005
+ 'name': string;
1006
+ /**
1007
+ * The payment method
1008
+ * @type {string}
1009
+ * @memberof PaymentAccount
1010
+ */
1011
+ 'method': PaymentAccountMethodEnum;
1012
+ /**
1013
+ * The configuration for the payment account
1014
+ * @type {{ [key: string]: string; }}
1015
+ * @memberof PaymentAccount
1016
+ */
1017
+ 'config': { [key: string]: string; };
1018
+ }
1019
+
1020
+ export const PaymentAccountMethodEnum = {
1021
+ Stripe: 'stripe'
1022
+ } as const;
1023
+
1024
+ export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
1025
+
981
1026
  /**
982
1027
  *
983
1028
  * @export
@@ -1748,13 +1793,14 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1748
1793
  * @param {string} project Project unique identifier
1749
1794
  * @param {string} platformId The platform identifier
1750
1795
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1796
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1751
1797
  * @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
1798
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1753
1799
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1754
1800
  * @param {*} [options] Override http request option.
1755
1801
  * @throws {RequiredError}
1756
1802
  */
1757
- exportCustomers: async (project: string, platformId: string, totalOrderCount?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1803
+ exportCustomers: async (project: string, platformId: string, totalOrderCount?: number, lifetimeValue?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1758
1804
  // verify required parameter 'project' is not null or undefined
1759
1805
  assertParamExists('exportCustomers', 'project', project)
1760
1806
  // verify required parameter 'platformId' is not null or undefined
@@ -1787,6 +1833,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1787
1833
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
1788
1834
  }
1789
1835
 
1836
+ if (lifetimeValue !== undefined) {
1837
+ localVarQueryParameter['lifetimeValue'] = lifetimeValue;
1838
+ }
1839
+
1790
1840
  if (sortBy) {
1791
1841
  localVarQueryParameter['sortBy'] = sortBy;
1792
1842
  }
@@ -1874,12 +1924,13 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1874
1924
  * @param {string} [search] Search term to filter based on order reference, customer name and email
1875
1925
  * @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
1926
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
1927
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1877
1928
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1878
1929
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1879
1930
  * @param {*} [options] Override http request option.
1880
1931
  * @throws {RequiredError}
1881
1932
  */
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> => {
1933
+ listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1883
1934
  // verify required parameter 'project' is not null or undefined
1884
1935
  assertParamExists('listCustomers', 'project', project)
1885
1936
  // verify required parameter 'platformId' is not null or undefined
@@ -1928,6 +1979,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
1928
1979
  localVarQueryParameter['totalOrderCount'] = totalOrderCount;
1929
1980
  }
1930
1981
 
1982
+ if (lifetimeValue !== undefined) {
1983
+ localVarQueryParameter['lifetimeValue'] = lifetimeValue;
1984
+ }
1985
+
1931
1986
  if (lastPurchasedStart !== undefined) {
1932
1987
  localVarQueryParameter['lastPurchasedStart'] = (lastPurchasedStart as any instanceof Date) ?
1933
1988
  (lastPurchasedStart as any).toISOString() :
@@ -1965,14 +2020,15 @@ export const CustomersApiFp = function(configuration?: Configuration) {
1965
2020
  * @param {string} project Project unique identifier
1966
2021
  * @param {string} platformId The platform identifier
1967
2022
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
2023
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
1968
2024
  * @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
2025
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
1970
2026
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
1971
2027
  * @param {*} [options] Override http request option.
1972
2028
  * @throws {RequiredError}
1973
2029
  */
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);
2030
+ async exportCustomers(project: string, platformId: string, totalOrderCount?: number, lifetimeValue?: number, sortBy?: Array<ExportCustomersSortByEnum>, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
2031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, totalOrderCount, lifetimeValue, sortBy, lastPurchasedStart, lastPurchasedEnd, options);
1976
2032
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1977
2033
  const localVarOperationServerBasePath = operationServerMap['CustomersApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
1978
2034
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2002,13 +2058,14 @@ export const CustomersApiFp = function(configuration?: Configuration) {
2002
2058
  * @param {string} [search] Search term to filter based on order reference, customer name and email
2003
2059
  * @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
2060
  * @param {number} [totalOrderCount] Filter customers by total order count equal to the value provided
2061
+ * @param {number} [lifetimeValue] Filter customers by lifetime value less than or equal to the value provided
2005
2062
  * @param {string} [lastPurchasedStart] Start of date range to filter customers by last purchase date
2006
2063
  * @param {string} [lastPurchasedEnd] End of date range to filter customers by last purchase date
2007
2064
  * @param {*} [options] Override http request option.
2008
2065
  * @throws {RequiredError}
2009
2066
  */
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);
2067
+ async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, totalOrderCount?: number, lifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
2068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, sortBy, totalOrderCount, lifetimeValue, lastPurchasedStart, lastPurchasedEnd, options);
2012
2069
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2013
2070
  const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomers']?.[localVarOperationServerIndex]?.url;
2014
2071
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2031,7 +2088,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
2031
2088
  * @throws {RequiredError}
2032
2089
  */
2033
2090
  exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
2034
- return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
2091
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
2035
2092
  },
2036
2093
  /**
2037
2094
  * Get a customer for a platform by a given customer ID.
@@ -2051,7 +2108,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
2051
2108
  * @throws {RequiredError}
2052
2109
  */
2053
2110
  listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
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));
2111
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(axios, basePath));
2055
2112
  },
2056
2113
  };
2057
2114
  };
@@ -2083,6 +2140,13 @@ export interface CustomersApiExportCustomersRequest {
2083
2140
  */
2084
2141
  readonly totalOrderCount?: number
2085
2142
 
2143
+ /**
2144
+ * Filter customers by lifetime value less than or equal to the value provided
2145
+ * @type {number}
2146
+ * @memberof CustomersApiExportCustomers
2147
+ */
2148
+ readonly lifetimeValue?: number
2149
+
2086
2150
  /**
2087
2151
  * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
2088
2152
  * @type {Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>}
@@ -2188,6 +2252,13 @@ export interface CustomersApiListCustomersRequest {
2188
2252
  */
2189
2253
  readonly totalOrderCount?: number
2190
2254
 
2255
+ /**
2256
+ * Filter customers by lifetime value less than or equal to the value provided
2257
+ * @type {number}
2258
+ * @memberof CustomersApiListCustomers
2259
+ */
2260
+ readonly lifetimeValue?: number
2261
+
2191
2262
  /**
2192
2263
  * Start of date range to filter customers by last purchase date
2193
2264
  * @type {string}
@@ -2219,7 +2290,7 @@ export class CustomersApi extends BaseAPI {
2219
2290
  * @memberof CustomersApi
2220
2291
  */
2221
2292
  public exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
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));
2293
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.sortBy, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
2223
2294
  }
2224
2295
 
2225
2296
  /**
@@ -2243,7 +2314,7 @@ export class CustomersApi extends BaseAPI {
2243
2314
  * @memberof CustomersApi
2244
2315
  */
2245
2316
  public listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig) {
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));
2317
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.totalOrderCount, requestParameters.lifetimeValue, requestParameters.lastPurchasedStart, requestParameters.lastPurchasedEnd, options).then((request) => request(this.axios, this.basePath));
2247
2318
  }
2248
2319
  }
2249
2320
 
@@ -3118,6 +3189,324 @@ export class OrdersApi extends BaseAPI {
3118
3189
 
3119
3190
 
3120
3191
 
3192
+ /**
3193
+ * PaymentApi - axios parameter creator
3194
+ * @export
3195
+ */
3196
+ export const PaymentApiAxiosParamCreator = function (configuration?: Configuration) {
3197
+ return {
3198
+ /**
3199
+ * Authorize a Stripe payment account
3200
+ * @summary Authorize Stripe
3201
+ * @param {string} project Project unique identifier
3202
+ * @param {*} [options] Override http request option.
3203
+ * @throws {RequiredError}
3204
+ */
3205
+ authorizeStripe: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3206
+ // verify required parameter 'project' is not null or undefined
3207
+ assertParamExists('authorizeStripe', 'project', project)
3208
+ const localVarPath = `/v1/platform/payment/stripe/authorize`;
3209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3211
+ let baseOptions;
3212
+ if (configuration) {
3213
+ baseOptions = configuration.baseOptions;
3214
+ }
3215
+
3216
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3217
+ const localVarHeaderParameter = {} as any;
3218
+ const localVarQueryParameter = {} as any;
3219
+
3220
+ // authentication session-oauth required
3221
+ // oauth required
3222
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3223
+
3224
+ // authentication api-key required
3225
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3226
+
3227
+ if (project !== undefined) {
3228
+ localVarQueryParameter['project'] = project;
3229
+ }
3230
+
3231
+
3232
+
3233
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3234
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3235
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3236
+
3237
+ return {
3238
+ url: toPathString(localVarUrlObj),
3239
+ options: localVarRequestOptions,
3240
+ };
3241
+ },
3242
+ /**
3243
+ * Deauthorize a Stripe payment account
3244
+ * @summary Deauthorize Stripe
3245
+ * @param {string} project Project unique identifier
3246
+ * @param {*} [options] Override http request option.
3247
+ * @throws {RequiredError}
3248
+ */
3249
+ deauthorizeStripe: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3250
+ // verify required parameter 'project' is not null or undefined
3251
+ assertParamExists('deauthorizeStripe', 'project', project)
3252
+ const localVarPath = `/v1/platform/payment/stripe/deauthorize`;
3253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3255
+ let baseOptions;
3256
+ if (configuration) {
3257
+ baseOptions = configuration.baseOptions;
3258
+ }
3259
+
3260
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3261
+ const localVarHeaderParameter = {} as any;
3262
+ const localVarQueryParameter = {} as any;
3263
+
3264
+ // authentication session-oauth required
3265
+ // oauth required
3266
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3267
+
3268
+ // authentication api-key required
3269
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3270
+
3271
+ if (project !== undefined) {
3272
+ localVarQueryParameter['project'] = project;
3273
+ }
3274
+
3275
+
3276
+
3277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3279
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3280
+
3281
+ return {
3282
+ url: toPathString(localVarUrlObj),
3283
+ options: localVarRequestOptions,
3284
+ };
3285
+ },
3286
+ /**
3287
+ * Get the Stripe payment account for the project
3288
+ * @summary Get Stripe Payment Account
3289
+ * @param {string} project Project unique identifier
3290
+ * @param {*} [options] Override http request option.
3291
+ * @throws {RequiredError}
3292
+ */
3293
+ getStripePaymentAccount: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3294
+ // verify required parameter 'project' is not null or undefined
3295
+ assertParamExists('getStripePaymentAccount', 'project', project)
3296
+ const localVarPath = `/v1/platform/payment/stripe`;
3297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3298
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3299
+ let baseOptions;
3300
+ if (configuration) {
3301
+ baseOptions = configuration.baseOptions;
3302
+ }
3303
+
3304
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3305
+ const localVarHeaderParameter = {} as any;
3306
+ const localVarQueryParameter = {} as any;
3307
+
3308
+ // authentication session-oauth required
3309
+ // oauth required
3310
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3311
+
3312
+ // authentication api-key required
3313
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3314
+
3315
+ if (project !== undefined) {
3316
+ localVarQueryParameter['project'] = project;
3317
+ }
3318
+
3319
+
3320
+
3321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3323
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3324
+
3325
+ return {
3326
+ url: toPathString(localVarUrlObj),
3327
+ options: localVarRequestOptions,
3328
+ };
3329
+ },
3330
+ }
3331
+ };
3332
+
3333
+ /**
3334
+ * PaymentApi - functional programming interface
3335
+ * @export
3336
+ */
3337
+ export const PaymentApiFp = function(configuration?: Configuration) {
3338
+ const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration)
3339
+ return {
3340
+ /**
3341
+ * Authorize a Stripe payment account
3342
+ * @summary Authorize Stripe
3343
+ * @param {string} project Project unique identifier
3344
+ * @param {*} [options] Override http request option.
3345
+ * @throws {RequiredError}
3346
+ */
3347
+ async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>> {
3348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
3349
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3350
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
3351
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3352
+ },
3353
+ /**
3354
+ * Deauthorize a Stripe payment account
3355
+ * @summary Deauthorize Stripe
3356
+ * @param {string} project Project unique identifier
3357
+ * @param {*} [options] Override http request option.
3358
+ * @throws {RequiredError}
3359
+ */
3360
+ async deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3361
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deauthorizeStripe(project, options);
3362
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3363
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.deauthorizeStripe']?.[localVarOperationServerIndex]?.url;
3364
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3365
+ },
3366
+ /**
3367
+ * Get the Stripe payment account for the project
3368
+ * @summary Get Stripe Payment Account
3369
+ * @param {string} project Project unique identifier
3370
+ * @param {*} [options] Override http request option.
3371
+ * @throws {RequiredError}
3372
+ */
3373
+ async getStripePaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>> {
3374
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStripePaymentAccount(project, options);
3375
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3376
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.getStripePaymentAccount']?.[localVarOperationServerIndex]?.url;
3377
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3378
+ },
3379
+ }
3380
+ };
3381
+
3382
+ /**
3383
+ * PaymentApi - factory interface
3384
+ * @export
3385
+ */
3386
+ export const PaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3387
+ const localVarFp = PaymentApiFp(configuration)
3388
+ return {
3389
+ /**
3390
+ * Authorize a Stripe payment account
3391
+ * @summary Authorize Stripe
3392
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
3393
+ * @param {*} [options] Override http request option.
3394
+ * @throws {RequiredError}
3395
+ */
3396
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response> {
3397
+ return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
3398
+ },
3399
+ /**
3400
+ * Deauthorize a Stripe payment account
3401
+ * @summary Deauthorize Stripe
3402
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
3403
+ * @param {*} [options] Override http request option.
3404
+ * @throws {RequiredError}
3405
+ */
3406
+ deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3407
+ return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
3408
+ },
3409
+ /**
3410
+ * Get the Stripe payment account for the project
3411
+ * @summary Get Stripe Payment Account
3412
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
3413
+ * @param {*} [options] Override http request option.
3414
+ * @throws {RequiredError}
3415
+ */
3416
+ getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount> {
3417
+ return localVarFp.getStripePaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
3418
+ },
3419
+ };
3420
+ };
3421
+
3422
+ /**
3423
+ * Request parameters for authorizeStripe operation in PaymentApi.
3424
+ * @export
3425
+ * @interface PaymentApiAuthorizeStripeRequest
3426
+ */
3427
+ export interface PaymentApiAuthorizeStripeRequest {
3428
+ /**
3429
+ * Project unique identifier
3430
+ * @type {string}
3431
+ * @memberof PaymentApiAuthorizeStripe
3432
+ */
3433
+ readonly project: string
3434
+ }
3435
+
3436
+ /**
3437
+ * Request parameters for deauthorizeStripe operation in PaymentApi.
3438
+ * @export
3439
+ * @interface PaymentApiDeauthorizeStripeRequest
3440
+ */
3441
+ export interface PaymentApiDeauthorizeStripeRequest {
3442
+ /**
3443
+ * Project unique identifier
3444
+ * @type {string}
3445
+ * @memberof PaymentApiDeauthorizeStripe
3446
+ */
3447
+ readonly project: string
3448
+ }
3449
+
3450
+ /**
3451
+ * Request parameters for getStripePaymentAccount operation in PaymentApi.
3452
+ * @export
3453
+ * @interface PaymentApiGetStripePaymentAccountRequest
3454
+ */
3455
+ export interface PaymentApiGetStripePaymentAccountRequest {
3456
+ /**
3457
+ * Project unique identifier
3458
+ * @type {string}
3459
+ * @memberof PaymentApiGetStripePaymentAccount
3460
+ */
3461
+ readonly project: string
3462
+ }
3463
+
3464
+ /**
3465
+ * PaymentApi - object-oriented interface
3466
+ * @export
3467
+ * @class PaymentApi
3468
+ * @extends {BaseAPI}
3469
+ */
3470
+ export class PaymentApi extends BaseAPI {
3471
+ /**
3472
+ * Authorize a Stripe payment account
3473
+ * @summary Authorize Stripe
3474
+ * @param {PaymentApiAuthorizeStripeRequest} requestParameters Request parameters.
3475
+ * @param {*} [options] Override http request option.
3476
+ * @throws {RequiredError}
3477
+ * @memberof PaymentApi
3478
+ */
3479
+ public authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig) {
3480
+ return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3481
+ }
3482
+
3483
+ /**
3484
+ * Deauthorize a Stripe payment account
3485
+ * @summary Deauthorize Stripe
3486
+ * @param {PaymentApiDeauthorizeStripeRequest} requestParameters Request parameters.
3487
+ * @param {*} [options] Override http request option.
3488
+ * @throws {RequiredError}
3489
+ * @memberof PaymentApi
3490
+ */
3491
+ public deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig) {
3492
+ return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3493
+ }
3494
+
3495
+ /**
3496
+ * Get the Stripe payment account for the project
3497
+ * @summary Get Stripe Payment Account
3498
+ * @param {PaymentApiGetStripePaymentAccountRequest} requestParameters Request parameters.
3499
+ * @param {*} [options] Override http request option.
3500
+ * @throws {RequiredError}
3501
+ * @memberof PaymentApi
3502
+ */
3503
+ public getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig) {
3504
+ return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3505
+ }
3506
+ }
3507
+
3508
+
3509
+
3121
3510
  /**
3122
3511
  * PlatformApi - axios parameter creator
3123
3512
  * @export
package/base.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.3
7
+ * The version of the OpenAPI document: 0.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.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.3
7
+ * The version of the OpenAPI document: 0.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.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.3
7
+ * The version of the OpenAPI document: 0.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,7 +92,7 @@ export class Configuration {
92
92
  this.baseOptions = {
93
93
  headers: {
94
94
  ...param.baseOptions?.headers,
95
- 'User-Agent': "OpenAPI-Generator/0.12.3/typescript-axios"
95
+ 'User-Agent': "OpenAPI-Generator/0.14.0/typescript-axios"
96
96
  },
97
97
  ...param.baseOptions
98
98
  };