@teemill/website 0.25.3 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.3
5
+ * The version of the OpenAPI document: 0.26.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4969,6 +4969,14 @@ export declare class PagesApi extends BaseAPI {
4969
4969
  * @export
4970
4970
  */
4971
4971
  export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
4972
+ /**
4973
+ * Authorize a PayPal payment account
4974
+ * @summary Authorize PayPal
4975
+ * @param {string} project What project it is
4976
+ * @param {*} [options] Override http request option.
4977
+ * @throws {RequiredError}
4978
+ */
4979
+ authorizePayPal: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4972
4980
  /**
4973
4981
  * Authorize a Stripe payment account
4974
4982
  * @summary Authorize Stripe
@@ -4977,6 +4985,14 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
4977
4985
  * @throws {RequiredError}
4978
4986
  */
4979
4987
  authorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4988
+ /**
4989
+ * Deauthorize a PayPal payment account
4990
+ * @summary Deauthorize PayPal
4991
+ * @param {string} project What project it is
4992
+ * @param {*} [options] Override http request option.
4993
+ * @throws {RequiredError}
4994
+ */
4995
+ deauthorizePayPal: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4980
4996
  /**
4981
4997
  * Deauthorize a Stripe payment account
4982
4998
  * @summary Deauthorize Stripe
@@ -4985,6 +5001,14 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
4985
5001
  * @throws {RequiredError}
4986
5002
  */
4987
5003
  deauthorizeStripe: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5004
+ /**
5005
+ * Get the PayPal payment account information for the project
5006
+ * @summary Get PayPal Payment Account
5007
+ * @param {string} project What project it is
5008
+ * @param {*} [options] Override http request option.
5009
+ * @throws {RequiredError}
5010
+ */
5011
+ getPayPalPaymentAccount: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4988
5012
  /**
4989
5013
  * Get the Stripe payment account for the project
4990
5014
  * @summary Get Stripe Payment Account
@@ -4999,6 +5023,14 @@ export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration
4999
5023
  * @export
5000
5024
  */
5001
5025
  export declare const PaymentApiFp: (configuration?: Configuration) => {
5026
+ /**
5027
+ * Authorize a PayPal payment account
5028
+ * @summary Authorize PayPal
5029
+ * @param {string} project What project it is
5030
+ * @param {*} [options] Override http request option.
5031
+ * @throws {RequiredError}
5032
+ */
5033
+ authorizePayPal(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>>;
5002
5034
  /**
5003
5035
  * Authorize a Stripe payment account
5004
5036
  * @summary Authorize Stripe
@@ -5007,6 +5039,14 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
5007
5039
  * @throws {RequiredError}
5008
5040
  */
5009
5041
  authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>>;
5042
+ /**
5043
+ * Deauthorize a PayPal payment account
5044
+ * @summary Deauthorize PayPal
5045
+ * @param {string} project What project it is
5046
+ * @param {*} [options] Override http request option.
5047
+ * @throws {RequiredError}
5048
+ */
5049
+ deauthorizePayPal(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5010
5050
  /**
5011
5051
  * Deauthorize a Stripe payment account
5012
5052
  * @summary Deauthorize Stripe
@@ -5015,6 +5055,14 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
5015
5055
  * @throws {RequiredError}
5016
5056
  */
5017
5057
  deauthorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5058
+ /**
5059
+ * Get the PayPal payment account information for the project
5060
+ * @summary Get PayPal Payment Account
5061
+ * @param {string} project What project it is
5062
+ * @param {*} [options] Override http request option.
5063
+ * @throws {RequiredError}
5064
+ */
5065
+ getPayPalPaymentAccount(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentAccount>>;
5018
5066
  /**
5019
5067
  * Get the Stripe payment account for the project
5020
5068
  * @summary Get Stripe Payment Account
@@ -5029,6 +5077,14 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
5029
5077
  * @export
5030
5078
  */
5031
5079
  export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5080
+ /**
5081
+ * Authorize a PayPal payment account
5082
+ * @summary Authorize PayPal
5083
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
5084
+ * @param {*} [options] Override http request option.
5085
+ * @throws {RequiredError}
5086
+ */
5087
+ authorizePayPal(requestParameters: PaymentApiAuthorizePayPalRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
5032
5088
  /**
5033
5089
  * Authorize a Stripe payment account
5034
5090
  * @summary Authorize Stripe
@@ -5037,6 +5093,14 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
5037
5093
  * @throws {RequiredError}
5038
5094
  */
5039
5095
  authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
5096
+ /**
5097
+ * Deauthorize a PayPal payment account
5098
+ * @summary Deauthorize PayPal
5099
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
5100
+ * @param {*} [options] Override http request option.
5101
+ * @throws {RequiredError}
5102
+ */
5103
+ deauthorizePayPal(requestParameters: PaymentApiDeauthorizePayPalRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5040
5104
  /**
5041
5105
  * Deauthorize a Stripe payment account
5042
5106
  * @summary Deauthorize Stripe
@@ -5045,6 +5109,14 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
5045
5109
  * @throws {RequiredError}
5046
5110
  */
5047
5111
  deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5112
+ /**
5113
+ * Get the PayPal payment account information for the project
5114
+ * @summary Get PayPal Payment Account
5115
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
5116
+ * @param {*} [options] Override http request option.
5117
+ * @throws {RequiredError}
5118
+ */
5119
+ getPayPalPaymentAccount(requestParameters: PaymentApiGetPayPalPaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
5048
5120
  /**
5049
5121
  * Get the Stripe payment account for the project
5050
5122
  * @summary Get Stripe Payment Account
@@ -5054,6 +5126,19 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
5054
5126
  */
5055
5127
  getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAccount>;
5056
5128
  };
5129
+ /**
5130
+ * Request parameters for authorizePayPal operation in PaymentApi.
5131
+ * @export
5132
+ * @interface PaymentApiAuthorizePayPalRequest
5133
+ */
5134
+ export interface PaymentApiAuthorizePayPalRequest {
5135
+ /**
5136
+ * What project it is
5137
+ * @type {string}
5138
+ * @memberof PaymentApiAuthorizePayPal
5139
+ */
5140
+ readonly project: string;
5141
+ }
5057
5142
  /**
5058
5143
  * Request parameters for authorizeStripe operation in PaymentApi.
5059
5144
  * @export
@@ -5067,6 +5152,19 @@ export interface PaymentApiAuthorizeStripeRequest {
5067
5152
  */
5068
5153
  readonly project: string;
5069
5154
  }
5155
+ /**
5156
+ * Request parameters for deauthorizePayPal operation in PaymentApi.
5157
+ * @export
5158
+ * @interface PaymentApiDeauthorizePayPalRequest
5159
+ */
5160
+ export interface PaymentApiDeauthorizePayPalRequest {
5161
+ /**
5162
+ * What project it is
5163
+ * @type {string}
5164
+ * @memberof PaymentApiDeauthorizePayPal
5165
+ */
5166
+ readonly project: string;
5167
+ }
5070
5168
  /**
5071
5169
  * Request parameters for deauthorizeStripe operation in PaymentApi.
5072
5170
  * @export
@@ -5080,6 +5178,19 @@ export interface PaymentApiDeauthorizeStripeRequest {
5080
5178
  */
5081
5179
  readonly project: string;
5082
5180
  }
5181
+ /**
5182
+ * Request parameters for getPayPalPaymentAccount operation in PaymentApi.
5183
+ * @export
5184
+ * @interface PaymentApiGetPayPalPaymentAccountRequest
5185
+ */
5186
+ export interface PaymentApiGetPayPalPaymentAccountRequest {
5187
+ /**
5188
+ * What project it is
5189
+ * @type {string}
5190
+ * @memberof PaymentApiGetPayPalPaymentAccount
5191
+ */
5192
+ readonly project: string;
5193
+ }
5083
5194
  /**
5084
5195
  * Request parameters for getStripePaymentAccount operation in PaymentApi.
5085
5196
  * @export
@@ -5100,6 +5211,15 @@ export interface PaymentApiGetStripePaymentAccountRequest {
5100
5211
  * @extends {BaseAPI}
5101
5212
  */
5102
5213
  export declare class PaymentApi extends BaseAPI {
5214
+ /**
5215
+ * Authorize a PayPal payment account
5216
+ * @summary Authorize PayPal
5217
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
5218
+ * @param {*} [options] Override http request option.
5219
+ * @throws {RequiredError}
5220
+ * @memberof PaymentApi
5221
+ */
5222
+ authorizePayPal(requestParameters: PaymentApiAuthorizePayPalRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
5103
5223
  /**
5104
5224
  * Authorize a Stripe payment account
5105
5225
  * @summary Authorize Stripe
@@ -5109,6 +5229,15 @@ export declare class PaymentApi extends BaseAPI {
5109
5229
  * @memberof PaymentApi
5110
5230
  */
5111
5231
  authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
5232
+ /**
5233
+ * Deauthorize a PayPal payment account
5234
+ * @summary Deauthorize PayPal
5235
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
5236
+ * @param {*} [options] Override http request option.
5237
+ * @throws {RequiredError}
5238
+ * @memberof PaymentApi
5239
+ */
5240
+ deauthorizePayPal(requestParameters: PaymentApiDeauthorizePayPalRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5112
5241
  /**
5113
5242
  * Deauthorize a Stripe payment account
5114
5243
  * @summary Deauthorize Stripe
@@ -5118,6 +5247,15 @@ export declare class PaymentApi extends BaseAPI {
5118
5247
  * @memberof PaymentApi
5119
5248
  */
5120
5249
  deauthorizeStripe(requestParameters: PaymentApiDeauthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5250
+ /**
5251
+ * Get the PayPal payment account information for the project
5252
+ * @summary Get PayPal Payment Account
5253
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
5254
+ * @param {*} [options] Override http request option.
5255
+ * @throws {RequiredError}
5256
+ * @memberof PaymentApi
5257
+ */
5258
+ getPayPalPaymentAccount(requestParameters: PaymentApiGetPayPalPaymentAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any>>;
5121
5259
  /**
5122
5260
  * Get the Stripe payment account for the project
5123
5261
  * @summary Get Stripe Payment Account
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.3
8
+ * The version of the OpenAPI document: 0.26.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2564,6 +2564,42 @@ exports.PagesApi = PagesApi;
2564
2564
  */
2565
2565
  const PaymentApiAxiosParamCreator = function (configuration) {
2566
2566
  return {
2567
+ /**
2568
+ * Authorize a PayPal payment account
2569
+ * @summary Authorize PayPal
2570
+ * @param {string} project What project it is
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ */
2574
+ authorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
2575
+ // verify required parameter 'project' is not null or undefined
2576
+ (0, common_1.assertParamExists)('authorizePayPal', 'project', project);
2577
+ const localVarPath = `/v1/website/payment/paypal/authorize`;
2578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2579
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2580
+ let baseOptions;
2581
+ if (configuration) {
2582
+ baseOptions = configuration.baseOptions;
2583
+ }
2584
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2585
+ const localVarHeaderParameter = {};
2586
+ const localVarQueryParameter = {};
2587
+ // authentication session-oauth required
2588
+ // oauth required
2589
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2590
+ // authentication api-key required
2591
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2592
+ if (project !== undefined) {
2593
+ localVarQueryParameter['project'] = project;
2594
+ }
2595
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2597
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2598
+ return {
2599
+ url: (0, common_1.toPathString)(localVarUrlObj),
2600
+ options: localVarRequestOptions,
2601
+ };
2602
+ }),
2567
2603
  /**
2568
2604
  * Authorize a Stripe payment account
2569
2605
  * @summary Authorize Stripe
@@ -2600,6 +2636,42 @@ const PaymentApiAxiosParamCreator = function (configuration) {
2600
2636
  options: localVarRequestOptions,
2601
2637
  };
2602
2638
  }),
2639
+ /**
2640
+ * Deauthorize a PayPal payment account
2641
+ * @summary Deauthorize PayPal
2642
+ * @param {string} project What project it is
2643
+ * @param {*} [options] Override http request option.
2644
+ * @throws {RequiredError}
2645
+ */
2646
+ deauthorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
2647
+ // verify required parameter 'project' is not null or undefined
2648
+ (0, common_1.assertParamExists)('deauthorizePayPal', 'project', project);
2649
+ const localVarPath = `/v1/website/payment/paypal/deauthorize`;
2650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2651
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2652
+ let baseOptions;
2653
+ if (configuration) {
2654
+ baseOptions = configuration.baseOptions;
2655
+ }
2656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2657
+ const localVarHeaderParameter = {};
2658
+ const localVarQueryParameter = {};
2659
+ // authentication session-oauth required
2660
+ // oauth required
2661
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2662
+ // authentication api-key required
2663
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2664
+ if (project !== undefined) {
2665
+ localVarQueryParameter['project'] = project;
2666
+ }
2667
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2668
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2669
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2670
+ return {
2671
+ url: (0, common_1.toPathString)(localVarUrlObj),
2672
+ options: localVarRequestOptions,
2673
+ };
2674
+ }),
2603
2675
  /**
2604
2676
  * Deauthorize a Stripe payment account
2605
2677
  * @summary Deauthorize Stripe
@@ -2636,6 +2708,42 @@ const PaymentApiAxiosParamCreator = function (configuration) {
2636
2708
  options: localVarRequestOptions,
2637
2709
  };
2638
2710
  }),
2711
+ /**
2712
+ * Get the PayPal payment account information for the project
2713
+ * @summary Get PayPal Payment Account
2714
+ * @param {string} project What project it is
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ getPayPalPaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
2719
+ // verify required parameter 'project' is not null or undefined
2720
+ (0, common_1.assertParamExists)('getPayPalPaymentAccount', 'project', project);
2721
+ const localVarPath = `/v1/website/payment/paypal`;
2722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2723
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2724
+ let baseOptions;
2725
+ if (configuration) {
2726
+ baseOptions = configuration.baseOptions;
2727
+ }
2728
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2729
+ const localVarHeaderParameter = {};
2730
+ const localVarQueryParameter = {};
2731
+ // authentication session-oauth required
2732
+ // oauth required
2733
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2734
+ // authentication api-key required
2735
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2736
+ if (project !== undefined) {
2737
+ localVarQueryParameter['project'] = project;
2738
+ }
2739
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2741
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2742
+ return {
2743
+ url: (0, common_1.toPathString)(localVarUrlObj),
2744
+ options: localVarRequestOptions,
2745
+ };
2746
+ }),
2639
2747
  /**
2640
2748
  * Get the Stripe payment account for the project
2641
2749
  * @summary Get Stripe Payment Account
@@ -2682,6 +2790,22 @@ exports.PaymentApiAxiosParamCreator = PaymentApiAxiosParamCreator;
2682
2790
  const PaymentApiFp = function (configuration) {
2683
2791
  const localVarAxiosParamCreator = (0, exports.PaymentApiAxiosParamCreator)(configuration);
2684
2792
  return {
2793
+ /**
2794
+ * Authorize a PayPal payment account
2795
+ * @summary Authorize PayPal
2796
+ * @param {string} project What project it is
2797
+ * @param {*} [options] Override http request option.
2798
+ * @throws {RequiredError}
2799
+ */
2800
+ authorizePayPal(project, options) {
2801
+ return __awaiter(this, void 0, void 0, function* () {
2802
+ var _a, _b, _c;
2803
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizePayPal(project, options);
2804
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2805
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.authorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2806
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2807
+ });
2808
+ },
2685
2809
  /**
2686
2810
  * Authorize a Stripe payment account
2687
2811
  * @summary Authorize Stripe
@@ -2698,6 +2822,22 @@ const PaymentApiFp = function (configuration) {
2698
2822
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2699
2823
  });
2700
2824
  },
2825
+ /**
2826
+ * Deauthorize a PayPal payment account
2827
+ * @summary Deauthorize PayPal
2828
+ * @param {string} project What project it is
2829
+ * @param {*} [options] Override http request option.
2830
+ * @throws {RequiredError}
2831
+ */
2832
+ deauthorizePayPal(project, options) {
2833
+ return __awaiter(this, void 0, void 0, function* () {
2834
+ var _a, _b, _c;
2835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizePayPal(project, options);
2836
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2837
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.deauthorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2838
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2839
+ });
2840
+ },
2701
2841
  /**
2702
2842
  * Deauthorize a Stripe payment account
2703
2843
  * @summary Deauthorize Stripe
@@ -2714,6 +2854,22 @@ const PaymentApiFp = function (configuration) {
2714
2854
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2715
2855
  });
2716
2856
  },
2857
+ /**
2858
+ * Get the PayPal payment account information for the project
2859
+ * @summary Get PayPal Payment Account
2860
+ * @param {string} project What project it is
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ */
2864
+ getPayPalPaymentAccount(project, options) {
2865
+ return __awaiter(this, void 0, void 0, function* () {
2866
+ var _a, _b, _c;
2867
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayPalPaymentAccount(project, options);
2868
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2869
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.getPayPalPaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2870
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2871
+ });
2872
+ },
2717
2873
  /**
2718
2874
  * Get the Stripe payment account for the project
2719
2875
  * @summary Get Stripe Payment Account
@@ -2740,6 +2896,16 @@ exports.PaymentApiFp = PaymentApiFp;
2740
2896
  const PaymentApiFactory = function (configuration, basePath, axios) {
2741
2897
  const localVarFp = (0, exports.PaymentApiFp)(configuration);
2742
2898
  return {
2899
+ /**
2900
+ * Authorize a PayPal payment account
2901
+ * @summary Authorize PayPal
2902
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
2903
+ * @param {*} [options] Override http request option.
2904
+ * @throws {RequiredError}
2905
+ */
2906
+ authorizePayPal(requestParameters, options) {
2907
+ return localVarFp.authorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
2908
+ },
2743
2909
  /**
2744
2910
  * Authorize a Stripe payment account
2745
2911
  * @summary Authorize Stripe
@@ -2750,6 +2916,16 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
2750
2916
  authorizeStripe(requestParameters, options) {
2751
2917
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
2752
2918
  },
2919
+ /**
2920
+ * Deauthorize a PayPal payment account
2921
+ * @summary Deauthorize PayPal
2922
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
2923
+ * @param {*} [options] Override http request option.
2924
+ * @throws {RequiredError}
2925
+ */
2926
+ deauthorizePayPal(requestParameters, options) {
2927
+ return localVarFp.deauthorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
2928
+ },
2753
2929
  /**
2754
2930
  * Deauthorize a Stripe payment account
2755
2931
  * @summary Deauthorize Stripe
@@ -2760,6 +2936,16 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
2760
2936
  deauthorizeStripe(requestParameters, options) {
2761
2937
  return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
2762
2938
  },
2939
+ /**
2940
+ * Get the PayPal payment account information for the project
2941
+ * @summary Get PayPal Payment Account
2942
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ */
2946
+ getPayPalPaymentAccount(requestParameters, options) {
2947
+ return localVarFp.getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
2948
+ },
2763
2949
  /**
2764
2950
  * Get the Stripe payment account for the project
2765
2951
  * @summary Get Stripe Payment Account
@@ -2780,6 +2966,17 @@ exports.PaymentApiFactory = PaymentApiFactory;
2780
2966
  * @extends {BaseAPI}
2781
2967
  */
2782
2968
  class PaymentApi extends base_1.BaseAPI {
2969
+ /**
2970
+ * Authorize a PayPal payment account
2971
+ * @summary Authorize PayPal
2972
+ * @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
2973
+ * @param {*} [options] Override http request option.
2974
+ * @throws {RequiredError}
2975
+ * @memberof PaymentApi
2976
+ */
2977
+ authorizePayPal(requestParameters, options) {
2978
+ return (0, exports.PaymentApiFp)(this.configuration).authorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2979
+ }
2783
2980
  /**
2784
2981
  * Authorize a Stripe payment account
2785
2982
  * @summary Authorize Stripe
@@ -2791,6 +2988,17 @@ class PaymentApi extends base_1.BaseAPI {
2791
2988
  authorizeStripe(requestParameters, options) {
2792
2989
  return (0, exports.PaymentApiFp)(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2793
2990
  }
2991
+ /**
2992
+ * Deauthorize a PayPal payment account
2993
+ * @summary Deauthorize PayPal
2994
+ * @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
2995
+ * @param {*} [options] Override http request option.
2996
+ * @throws {RequiredError}
2997
+ * @memberof PaymentApi
2998
+ */
2999
+ deauthorizePayPal(requestParameters, options) {
3000
+ return (0, exports.PaymentApiFp)(this.configuration).deauthorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3001
+ }
2794
3002
  /**
2795
3003
  * Deauthorize a Stripe payment account
2796
3004
  * @summary Deauthorize Stripe
@@ -2802,6 +3010,17 @@ class PaymentApi extends base_1.BaseAPI {
2802
3010
  deauthorizeStripe(requestParameters, options) {
2803
3011
  return (0, exports.PaymentApiFp)(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2804
3012
  }
3013
+ /**
3014
+ * Get the PayPal payment account information for the project
3015
+ * @summary Get PayPal Payment Account
3016
+ * @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
3017
+ * @param {*} [options] Override http request option.
3018
+ * @throws {RequiredError}
3019
+ * @memberof PaymentApi
3020
+ */
3021
+ getPayPalPaymentAccount(requestParameters, options) {
3022
+ return (0, exports.PaymentApiFp)(this.configuration).getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3023
+ }
2805
3024
  /**
2806
3025
  * Get the Stripe payment account for the project
2807
3026
  * @summary Get Stripe Payment Account
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.3
5
+ * The version of the OpenAPI document: 0.26.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.3
8
+ * The version of the OpenAPI document: 0.26.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.3
5
+ * The version of the OpenAPI document: 0.26.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.3
8
+ * The version of the OpenAPI document: 0.26.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.3
5
+ * The version of the OpenAPI document: 0.26.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.3
8
+ * The version of the OpenAPI document: 0.26.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).