@teemill/website 0.25.1 → 0.26.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/website@0.25.1
1
+ ## @teemill/website@0.26.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/website@0.25.1 --save
39
+ npm install @teemill/website@0.26.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -78,8 +78,11 @@ Class | Method | HTTP request | Description
78
78
  *PagesApi* | [**seoOptimisePages**](docs/PagesApi.md#seooptimisepages) | **POST** /v1/website/pages/ai-seo-optimise | AI SEO optimise pages
79
79
  *PagesApi* | [**updatePage**](docs/PagesApi.md#updatepage) | **PATCH** /v1/website/pages/{pageId} | Update website page
80
80
  *PagesApi* | [**updatePages**](docs/PagesApi.md#updatepages) | **PATCH** /v1/website/pages | Update website pages
81
+ *PaymentApi* | [**authorizePayPal**](docs/PaymentApi.md#authorizepaypal) | **GET** /v1/website/payment/paypal/authorize | Authorize PayPal
81
82
  *PaymentApi* | [**authorizeStripe**](docs/PaymentApi.md#authorizestripe) | **GET** /v1/website/payment/stripe/authorize | Authorize Stripe
83
+ *PaymentApi* | [**deauthorizePayPal**](docs/PaymentApi.md#deauthorizepaypal) | **DELETE** /v1/website/payment/paypal/deauthorize | Deauthorize PayPal
82
84
  *PaymentApi* | [**deauthorizeStripe**](docs/PaymentApi.md#deauthorizestripe) | **DELETE** /v1/website/payment/stripe/deauthorize | Deauthorize Stripe
85
+ *PaymentApi* | [**getPayPalPaymentAccount**](docs/PaymentApi.md#getpaypalpaymentaccount) | **GET** /v1/website/payment/paypal | Get PayPal Payment Account
83
86
  *PaymentApi* | [**getStripePaymentAccount**](docs/PaymentApi.md#getstripepaymentaccount) | **GET** /v1/website/payment/stripe | Get Stripe Payment Account
84
87
  *ReviewsApi* | [**exportReviews**](docs/ReviewsApi.md#exportreviews) | **GET** /v1/website/reviews/export | Export reviews
85
88
  *ReviewsApi* | [**getReview**](docs/ReviewsApi.md#getreview) | **GET** /v1/website/reviews/{reviewId} | Get review
@@ -94,6 +97,7 @@ Class | Method | HTTP request | Description
94
97
  *WebsiteApi* | [**createDomain**](docs/WebsiteApi.md#createdomain) | **POST** /v1/website/domains | Create a website domain
95
98
  *WebsiteApi* | [**deleteDomain**](docs/WebsiteApi.md#deletedomain) | **DELETE** /v1/website/domains/{domain} | Delete a website domain
96
99
  *WebsiteApi* | [**listDomains**](docs/WebsiteApi.md#listdomains) | **GET** /v1/website/domains | List website domains
100
+ *WebsiteApi* | [**updateBaseDomain**](docs/WebsiteApi.md#updatebasedomain) | **PUT** /v1/website/domains/base | Update base domain
97
101
 
98
102
 
99
103
  ### Documentation For Models
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.1
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -827,13 +827,13 @@ export interface InlineObject {
827
827
  * @type {Array<Domain>}
828
828
  * @memberof InlineObject
829
829
  */
830
- 'domains'?: Array<Domain>;
830
+ 'domains': Array<Domain>;
831
831
  /**
832
832
  *
833
833
  * @type {number}
834
834
  * @memberof InlineObject
835
835
  */
836
- 'nextPageToken'?: number;
836
+ 'nextPageToken': number;
837
837
  }
838
838
  /**
839
839
  *
@@ -6573,6 +6573,50 @@ export class PagesApi extends BaseAPI {
6573
6573
  */
6574
6574
  export const PaymentApiAxiosParamCreator = function (configuration?: Configuration) {
6575
6575
  return {
6576
+ /**
6577
+ * Authorize a PayPal payment account
6578
+ * @summary Authorize PayPal
6579
+ * @param {string} project What project it is
6580
+ * @param {*} [options] Override http request option.
6581
+ * @throws {RequiredError}
6582
+ */
6583
+ authorizePayPal: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6584
+ // verify required parameter 'project' is not null or undefined
6585
+ assertParamExists('authorizePayPal', 'project', project)
6586
+ const localVarPath = `/v1/website/payment/paypal/authorize`;
6587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6589
+ let baseOptions;
6590
+ if (configuration) {
6591
+ baseOptions = configuration.baseOptions;
6592
+ }
6593
+
6594
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6595
+ const localVarHeaderParameter = {} as any;
6596
+ const localVarQueryParameter = {} as any;
6597
+
6598
+ // authentication session-oauth required
6599
+ // oauth required
6600
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6601
+
6602
+ // authentication api-key required
6603
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6604
+
6605
+ if (project !== undefined) {
6606
+ localVarQueryParameter['project'] = project;
6607
+ }
6608
+
6609
+
6610
+
6611
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6613
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6614
+
6615
+ return {
6616
+ url: toPathString(localVarUrlObj),
6617
+ options: localVarRequestOptions,
6618
+ };
6619
+ },
6576
6620
  /**
6577
6621
  * Authorize a Stripe payment account
6578
6622
  * @summary Authorize Stripe
@@ -6608,6 +6652,50 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
6608
6652
 
6609
6653
 
6610
6654
 
6655
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6656
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6657
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6658
+
6659
+ return {
6660
+ url: toPathString(localVarUrlObj),
6661
+ options: localVarRequestOptions,
6662
+ };
6663
+ },
6664
+ /**
6665
+ * Deauthorize a PayPal payment account
6666
+ * @summary Deauthorize PayPal
6667
+ * @param {string} project What project it is
6668
+ * @param {*} [options] Override http request option.
6669
+ * @throws {RequiredError}
6670
+ */
6671
+ deauthorizePayPal: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6672
+ // verify required parameter 'project' is not null or undefined
6673
+ assertParamExists('deauthorizePayPal', 'project', project)
6674
+ const localVarPath = `/v1/website/payment/paypal/deauthorize`;
6675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6676
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6677
+ let baseOptions;
6678
+ if (configuration) {
6679
+ baseOptions = configuration.baseOptions;
6680
+ }
6681
+
6682
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
6683
+ const localVarHeaderParameter = {} as any;
6684
+ const localVarQueryParameter = {} as any;
6685
+
6686
+ // authentication session-oauth required
6687
+ // oauth required
6688
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6689
+
6690
+ // authentication api-key required
6691
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6692
+
6693
+ if (project !== undefined) {
6694
+ localVarQueryParameter['project'] = project;
6695
+ }
6696
+
6697
+
6698
+
6611
6699
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6612
6700
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6613
6701
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6652,6 +6740,50 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
6652
6740
 
6653
6741
 
6654
6742
 
6743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6745
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6746
+
6747
+ return {
6748
+ url: toPathString(localVarUrlObj),
6749
+ options: localVarRequestOptions,
6750
+ };
6751
+ },
6752
+ /**
6753
+ * Get the PayPal payment account information for the project
6754
+ * @summary Get PayPal Payment Account
6755
+ * @param {string} project What project it is
6756
+ * @param {*} [options] Override http request option.
6757
+ * @throws {RequiredError}
6758
+ */
6759
+ getPayPalPaymentAccount: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6760
+ // verify required parameter 'project' is not null or undefined
6761
+ assertParamExists('getPayPalPaymentAccount', 'project', project)
6762
+ const localVarPath = `/v1/website/payment/paypal`;
6763
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6764
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6765
+ let baseOptions;
6766
+ if (configuration) {
6767
+ baseOptions = configuration.baseOptions;
6768
+ }
6769
+
6770
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6771
+ const localVarHeaderParameter = {} as any;
6772
+ const localVarQueryParameter = {} as any;
6773
+
6774
+ // authentication session-oauth required
6775
+ // oauth required
6776
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
6777
+
6778
+ // authentication api-key required
6779
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6780
+
6781
+ if (project !== undefined) {
6782
+ localVarQueryParameter['project'] = project;
6783
+ }
6784
+
6785
+
6786
+
6655
6787
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6656
6788
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6657
6789
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6715,6 +6847,19 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
6715
6847
  export const PaymentApiFp = function(configuration?: Configuration) {
6716
6848
  const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration)
6717
6849
  return {
6850
+ /**
6851
+ * Authorize a PayPal payment account
6852
+ * @summary Authorize PayPal
6853
+ * @param {string} project What project it is
6854
+ * @param {*} [options] Override http request option.
6855
+ * @throws {RequiredError}
6856
+ */
6857
+ async authorizePayPal(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
6858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorizePayPal(project, options);
6859
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6860
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizePayPal']?.[localVarOperationServerIndex]?.url;
6861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6862
+ },
6718
6863
  /**
6719
6864
  * Authorize a Stripe payment account
6720
6865
  * @summary Authorize Stripe
@@ -6728,6 +6873,19 @@ export const PaymentApiFp = function(configuration?: Configuration) {
6728
6873
  const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
6729
6874
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6730
6875
  },
6876
+ /**
6877
+ * Deauthorize a PayPal payment account
6878
+ * @summary Deauthorize PayPal
6879
+ * @param {string} project What project it is
6880
+ * @param {*} [options] Override http request option.
6881
+ * @throws {RequiredError}
6882
+ */
6883
+ async deauthorizePayPal(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deauthorizePayPal(project, options);
6885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6886
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.deauthorizePayPal']?.[localVarOperationServerIndex]?.url;
6887
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6888
+ },
6731
6889
  /**
6732
6890
  * Deauthorize a Stripe payment account
6733
6891
  * @summary Deauthorize Stripe
@@ -6741,6 +6899,19 @@ export const PaymentApiFp = function(configuration?: Configuration) {
6741
6899
  const localVarOperationServerBasePath = operationServerMap['PaymentApi.deauthorizeStripe']?.[localVarOperationServerIndex]?.url;
6742
6900
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6743
6901
  },
6902
+ /**
6903
+ * Get the PayPal payment account information for the project
6904
+ * @summary Get PayPal Payment Account
6905
+ * @param {string} project What project it is
6906
+ * @param {*} [options] Override http request option.
6907
+ * @throws {RequiredError}
6908
+ */
6909
+ async getPayPalPaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>> {
6910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPayPalPaymentAccount(project, options);
6911
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6912
+ const localVarOperationServerBasePath = operationServerMap['PaymentApi.getPayPalPaymentAccount']?.[localVarOperationServerIndex]?.url;
6913
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6914
+ },
6744
6915
  /**
6745
6916
  * Get the Stripe payment account for the project
6746
6917
  * @summary Get Stripe Payment Account
@@ -6764,6 +6935,16 @@ export const PaymentApiFp = function(configuration?: Configuration) {
6764
6935
  export const PaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6765
6936
  const localVarFp = PaymentApiFp(configuration)
6766
6937
  return {
6938
+ /**
6939
+ * Authorize a PayPal payment account
6940
+ * @summary Authorize PayPal
6941
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
6942
+ * @param {*} [options] Override http request option.
6943
+ * @throws {RequiredError}
6944
+ */
6945
+ authorizePayPal(requestParameters: PaymentApiAuthorizePayPalRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
6946
+ return localVarFp.authorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
6947
+ },
6767
6948
  /**
6768
6949
  * Authorize a Stripe payment account
6769
6950
  * @summary Authorize Stripe
@@ -6774,6 +6955,16 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
6774
6955
  authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
6775
6956
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6776
6957
  },
6958
+ /**
6959
+ * Deauthorize a PayPal payment account
6960
+ * @summary Deauthorize PayPal
6961
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
6962
+ * @param {*} [options] Override http request option.
6963
+ * @throws {RequiredError}
6964
+ */
6965
+ deauthorizePayPal(requestParameters: PaymentApiDeauthorizePayPalRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6966
+ return localVarFp.deauthorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
6967
+ },
6777
6968
  /**
6778
6969
  * Deauthorize a Stripe payment account
6779
6970
  * @summary Deauthorize Stripe
@@ -6784,6 +6975,16 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
6784
6975
  deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6785
6976
  return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
6786
6977
  },
6978
+ /**
6979
+ * Get the PayPal payment account information for the project
6980
+ * @summary Get PayPal Payment Account
6981
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
6982
+ * @param {*} [options] Override http request option.
6983
+ * @throws {RequiredError}
6984
+ */
6985
+ getPayPalPaymentAccount(requestParameters: PaymentApiGetPayPalPaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount> {
6986
+ return localVarFp.getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
6987
+ },
6787
6988
  /**
6788
6989
  * Get the Stripe payment account for the project
6789
6990
  * @summary Get Stripe Payment Account
@@ -6797,6 +6998,20 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
6797
6998
  };
6798
6999
  };
6799
7000
 
7001
+ /**
7002
+ * Request parameters for authorizePayPal operation in PaymentApi.
7003
+ * @export
7004
+ * @interface PaymentApiAuthorizePayPalRequest
7005
+ */
7006
+ export interface PaymentApiAuthorizePayPalRequest {
7007
+ /**
7008
+ * What project it is
7009
+ * @type {string}
7010
+ * @memberof PaymentApiAuthorizePayPal
7011
+ */
7012
+ readonly project: string
7013
+ }
7014
+
6800
7015
  /**
6801
7016
  * Request parameters for authorizeStripe operation in PaymentApi.
6802
7017
  * @export
@@ -6811,6 +7026,20 @@ export interface PaymentApiAuthorizeStripeRequest {
6811
7026
  readonly project: string
6812
7027
  }
6813
7028
 
7029
+ /**
7030
+ * Request parameters for deauthorizePayPal operation in PaymentApi.
7031
+ * @export
7032
+ * @interface PaymentApiDeauthorizePayPalRequest
7033
+ */
7034
+ export interface PaymentApiDeauthorizePayPalRequest {
7035
+ /**
7036
+ * What project it is
7037
+ * @type {string}
7038
+ * @memberof PaymentApiDeauthorizePayPal
7039
+ */
7040
+ readonly project: string
7041
+ }
7042
+
6814
7043
  /**
6815
7044
  * Request parameters for deauthorizeStripe operation in PaymentApi.
6816
7045
  * @export
@@ -6825,6 +7054,20 @@ export interface PaymentApiDeauthorizeStripeRequest {
6825
7054
  readonly project: string
6826
7055
  }
6827
7056
 
7057
+ /**
7058
+ * Request parameters for getPayPalPaymentAccount operation in PaymentApi.
7059
+ * @export
7060
+ * @interface PaymentApiGetPayPalPaymentAccountRequest
7061
+ */
7062
+ export interface PaymentApiGetPayPalPaymentAccountRequest {
7063
+ /**
7064
+ * What project it is
7065
+ * @type {string}
7066
+ * @memberof PaymentApiGetPayPalPaymentAccount
7067
+ */
7068
+ readonly project: string
7069
+ }
7070
+
6828
7071
  /**
6829
7072
  * Request parameters for getStripePaymentAccount operation in PaymentApi.
6830
7073
  * @export
@@ -6846,6 +7089,18 @@ export interface PaymentApiGetStripePaymentAccountRequest {
6846
7089
  * @extends {BaseAPI}
6847
7090
  */
6848
7091
  export class PaymentApi extends BaseAPI {
7092
+ /**
7093
+ * Authorize a PayPal payment account
7094
+ * @summary Authorize PayPal
7095
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
7096
+ * @param {*} [options] Override http request option.
7097
+ * @throws {RequiredError}
7098
+ * @memberof PaymentApi
7099
+ */
7100
+ public authorizePayPal(requestParameters: PaymentApiAuthorizePayPalRequest, options?: RawAxiosRequestConfig) {
7101
+ return PaymentApiFp(this.configuration).authorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
7102
+ }
7103
+
6849
7104
  /**
6850
7105
  * Authorize a Stripe payment account
6851
7106
  * @summary Authorize Stripe
@@ -6858,6 +7113,18 @@ export class PaymentApi extends BaseAPI {
6858
7113
  return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6859
7114
  }
6860
7115
 
7116
+ /**
7117
+ * Deauthorize a PayPal payment account
7118
+ * @summary Deauthorize PayPal
7119
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
7120
+ * @param {*} [options] Override http request option.
7121
+ * @throws {RequiredError}
7122
+ * @memberof PaymentApi
7123
+ */
7124
+ public deauthorizePayPal(requestParameters: PaymentApiDeauthorizePayPalRequest, options?: RawAxiosRequestConfig) {
7125
+ return PaymentApiFp(this.configuration).deauthorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
7126
+ }
7127
+
6861
7128
  /**
6862
7129
  * Deauthorize a Stripe payment account
6863
7130
  * @summary Deauthorize Stripe
@@ -6870,6 +7137,18 @@ export class PaymentApi extends BaseAPI {
6870
7137
  return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
6871
7138
  }
6872
7139
 
7140
+ /**
7141
+ * Get the PayPal payment account information for the project
7142
+ * @summary Get PayPal Payment Account
7143
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
7144
+ * @param {*} [options] Override http request option.
7145
+ * @throws {RequiredError}
7146
+ * @memberof PaymentApi
7147
+ */
7148
+ public getPayPalPaymentAccount(requestParameters: PaymentApiGetPayPalPaymentAccountRequest, options?: RawAxiosRequestConfig) {
7149
+ return PaymentApiFp(this.configuration).getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
7150
+ }
7151
+
6873
7152
  /**
6874
7153
  * Get the Stripe payment account for the project
6875
7154
  * @summary Get Stripe Payment Account
@@ -8398,6 +8677,54 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
8398
8677
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8399
8678
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8400
8679
 
8680
+ return {
8681
+ url: toPathString(localVarUrlObj),
8682
+ options: localVarRequestOptions,
8683
+ };
8684
+ },
8685
+ /**
8686
+ * Updated a websites base domain
8687
+ * @summary Update base domain
8688
+ * @param {string} project What project it is
8689
+ * @param {CreateDomainRequest} [createDomainRequest]
8690
+ * @param {*} [options] Override http request option.
8691
+ * @throws {RequiredError}
8692
+ */
8693
+ updateBaseDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8694
+ // verify required parameter 'project' is not null or undefined
8695
+ assertParamExists('updateBaseDomain', 'project', project)
8696
+ const localVarPath = `/v1/website/domains/base`;
8697
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8698
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8699
+ let baseOptions;
8700
+ if (configuration) {
8701
+ baseOptions = configuration.baseOptions;
8702
+ }
8703
+
8704
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
8705
+ const localVarHeaderParameter = {} as any;
8706
+ const localVarQueryParameter = {} as any;
8707
+
8708
+ // authentication session-oauth required
8709
+ // oauth required
8710
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
8711
+
8712
+ // authentication api-key required
8713
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
8714
+
8715
+ if (project !== undefined) {
8716
+ localVarQueryParameter['project'] = project;
8717
+ }
8718
+
8719
+
8720
+
8721
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8722
+
8723
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8724
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8725
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8726
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
8727
+
8401
8728
  return {
8402
8729
  url: toPathString(localVarUrlObj),
8403
8730
  options: localVarRequestOptions,
@@ -8454,6 +8781,20 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
8454
8781
  const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
8455
8782
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8456
8783
  },
8784
+ /**
8785
+ * Updated a websites base domain
8786
+ * @summary Update base domain
8787
+ * @param {string} project What project it is
8788
+ * @param {CreateDomainRequest} [createDomainRequest]
8789
+ * @param {*} [options] Override http request option.
8790
+ * @throws {RequiredError}
8791
+ */
8792
+ async updateBaseDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
8794
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8795
+ const localVarOperationServerBasePath = operationServerMap['WebsiteApi.updateBaseDomain']?.[localVarOperationServerIndex]?.url;
8796
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8797
+ },
8457
8798
  }
8458
8799
  };
8459
8800
 
@@ -8494,6 +8835,16 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
8494
8835
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
8495
8836
  return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
8496
8837
  },
8838
+ /**
8839
+ * Updated a websites base domain
8840
+ * @summary Update base domain
8841
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
8842
+ * @param {*} [options] Override http request option.
8843
+ * @throws {RequiredError}
8844
+ */
8845
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
8846
+ return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
8847
+ },
8497
8848
  };
8498
8849
  };
8499
8850
 
@@ -8553,6 +8904,27 @@ export interface WebsiteApiListDomainsRequest {
8553
8904
  readonly project: string
8554
8905
  }
8555
8906
 
8907
+ /**
8908
+ * Request parameters for updateBaseDomain operation in WebsiteApi.
8909
+ * @export
8910
+ * @interface WebsiteApiUpdateBaseDomainRequest
8911
+ */
8912
+ export interface WebsiteApiUpdateBaseDomainRequest {
8913
+ /**
8914
+ * What project it is
8915
+ * @type {string}
8916
+ * @memberof WebsiteApiUpdateBaseDomain
8917
+ */
8918
+ readonly project: string
8919
+
8920
+ /**
8921
+ *
8922
+ * @type {CreateDomainRequest}
8923
+ * @memberof WebsiteApiUpdateBaseDomain
8924
+ */
8925
+ readonly createDomainRequest?: CreateDomainRequest
8926
+ }
8927
+
8556
8928
  /**
8557
8929
  * WebsiteApi - object-oriented interface
8558
8930
  * @export
@@ -8595,6 +8967,18 @@ export class WebsiteApi extends BaseAPI {
8595
8967
  public listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig) {
8596
8968
  return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
8597
8969
  }
8970
+
8971
+ /**
8972
+ * Updated a websites base domain
8973
+ * @summary Update base domain
8974
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
8975
+ * @param {*} [options] Override http request option.
8976
+ * @throws {RequiredError}
8977
+ * @memberof WebsiteApi
8978
+ */
8979
+ public updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig) {
8980
+ return WebsiteApiFp(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
8981
+ }
8598
8982
  }
8599
8983
 
8600
8984
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.1
7
+ * The version of the OpenAPI document: 0.26.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
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.1
7
+ * The version of the OpenAPI document: 0.26.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
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.1
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).