@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.
@@ -4,10 +4,69 @@ All URIs are relative to *https://api.localhost:8080*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**authorizePayPal**](#authorizepaypal) | **GET** /v1/website/payment/paypal/authorize | Authorize PayPal|
7
8
  |[**authorizeStripe**](#authorizestripe) | **GET** /v1/website/payment/stripe/authorize | Authorize Stripe|
9
+ |[**deauthorizePayPal**](#deauthorizepaypal) | **DELETE** /v1/website/payment/paypal/deauthorize | Deauthorize PayPal|
8
10
  |[**deauthorizeStripe**](#deauthorizestripe) | **DELETE** /v1/website/payment/stripe/deauthorize | Deauthorize Stripe|
11
+ |[**getPayPalPaymentAccount**](#getpaypalpaymentaccount) | **GET** /v1/website/payment/paypal | Get PayPal Payment Account|
9
12
  |[**getStripePaymentAccount**](#getstripepaymentaccount) | **GET** /v1/website/payment/stripe | Get Stripe Payment Account|
10
13
 
14
+ # **authorizePayPal**
15
+ > InlineObject1 authorizePayPal()
16
+
17
+ Authorize a PayPal payment account
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ PaymentApi,
24
+ Configuration
25
+ } from '@teemill/website';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new PaymentApi(configuration);
29
+
30
+ let project: string; //What project it is (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.authorizePayPal(
33
+ project
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **project** | [**string**] | What project it is | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **InlineObject1**
47
+
48
+ ### Authorization
49
+
50
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**200** | Redirect to authorize PayPal | - |
62
+ |**400** | Failed validation | - |
63
+ |**401** | Not authorised to access this resource | - |
64
+ |**403** | Refuse to authorize | - |
65
+ |**404** | Resource not found | - |
66
+ |**500** | Unknown server error | - |
67
+
68
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
69
+
11
70
  # **authorizeStripe**
12
71
  > InlineObject1 authorizeStripe()
13
72
 
@@ -64,6 +123,62 @@ const { status, data } = await apiInstance.authorizeStripe(
64
123
 
65
124
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
66
125
 
126
+ # **deauthorizePayPal**
127
+ > deauthorizePayPal()
128
+
129
+ Deauthorize a PayPal payment account
130
+
131
+ ### Example
132
+
133
+ ```typescript
134
+ import {
135
+ PaymentApi,
136
+ Configuration
137
+ } from '@teemill/website';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new PaymentApi(configuration);
141
+
142
+ let project: string; //What project it is (default to undefined)
143
+
144
+ const { status, data } = await apiInstance.deauthorizePayPal(
145
+ project
146
+ );
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ |Name | Type | Description | Notes|
152
+ |------------- | ------------- | ------------- | -------------|
153
+ | **project** | [**string**] | What project it is | defaults to undefined|
154
+
155
+
156
+ ### Return type
157
+
158
+ void (empty response body)
159
+
160
+ ### Authorization
161
+
162
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: Not defined
167
+ - **Accept**: application/json
168
+
169
+
170
+ ### HTTP response details
171
+ | Status code | Description | Response headers |
172
+ |-------------|-------------|------------------|
173
+ |**204** | Successfully deauthorized PayPal payment account | - |
174
+ |**400** | Failed validation | - |
175
+ |**401** | Not authorised to access this resource | - |
176
+ |**403** | Refuse to authorize | - |
177
+ |**404** | Resource not found | - |
178
+ |**500** | Unknown server error | - |
179
+
180
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
181
+
67
182
  # **deauthorizeStripe**
68
183
  > deauthorizeStripe()
69
184
 
@@ -120,6 +235,62 @@ void (empty response body)
120
235
 
121
236
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
122
237
 
238
+ # **getPayPalPaymentAccount**
239
+ > PaymentAccount getPayPalPaymentAccount()
240
+
241
+ Get the PayPal payment account information for the project
242
+
243
+ ### Example
244
+
245
+ ```typescript
246
+ import {
247
+ PaymentApi,
248
+ Configuration
249
+ } from '@teemill/website';
250
+
251
+ const configuration = new Configuration();
252
+ const apiInstance = new PaymentApi(configuration);
253
+
254
+ let project: string; //What project it is (default to undefined)
255
+
256
+ const { status, data } = await apiInstance.getPayPalPaymentAccount(
257
+ project
258
+ );
259
+ ```
260
+
261
+ ### Parameters
262
+
263
+ |Name | Type | Description | Notes|
264
+ |------------- | ------------- | ------------- | -------------|
265
+ | **project** | [**string**] | What project it is | defaults to undefined|
266
+
267
+
268
+ ### Return type
269
+
270
+ **PaymentAccount**
271
+
272
+ ### Authorization
273
+
274
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
275
+
276
+ ### HTTP request headers
277
+
278
+ - **Content-Type**: Not defined
279
+ - **Accept**: application/json
280
+
281
+
282
+ ### HTTP response details
283
+ | Status code | Description | Response headers |
284
+ |-------------|-------------|------------------|
285
+ |**200** | Successfully connected PayPal payment account | - |
286
+ |**400** | Failed validation | - |
287
+ |**401** | Not authorised to access this resource | - |
288
+ |**403** | Refuse to authorize | - |
289
+ |**404** | Resource not found | - |
290
+ |**500** | Unknown server error | - |
291
+
292
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
293
+
123
294
  # **getStripePaymentAccount**
124
295
  > PaymentAccount getStripePaymentAccount()
125
296
 
package/index.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.3
7
+ * The version of the OpenAPI document: 0.26.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/website",
3
- "version": "0.25.3",
3
+ "version": "0.26.1",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {