Skip to content

Commit b58183a

Browse files
authored
Merge pull request #570 from bbiggerr/299-warning-response
[Deprecated] PayPal Payment Stage; Staged/Approved PayPal Payment Execute
2 parents 787cc7f + f5b6010 commit b58183a

File tree

1 file changed

+43
-12
lines changed

1 file changed

+43
-12
lines changed

openapi.yaml

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ info:
156156
| 200 OK | The request was successful. |
157157
| 202 Accepted | The request was successful, but processing has not been completed. The response body includes a "warnings" array containing the details of incomplete processes. |
158158
| 204 No Content | The server successfully fulfilled the request and there is no additional content to send. |
159+
| 299 Deprecated | The request was successful, but involved a deprecated endpoint. The response body includes a "warnings" array containing warning messages. |
159160
| 400 Bad Request | You submitted an invalid request (missing parameters, etc.). |
160161
| 401 Unauthorized | You failed to authenticate for this resource. |
161162
| 403 Forbidden | You are authenticated, but don't have permission to do this. |
@@ -1956,7 +1957,7 @@ paths:
19561957
schema:
19571958
$ref: '#/components/schemas/Payment'
19581959
'202':
1959-
$ref: '#/components/responses/WarningResponse'
1960+
$ref: '#/components/responses/AcceptedResponse'
19601961
default:
19611962
$ref: '#/components/responses/ErrorResponse'
19621963
x-code-samples:
@@ -2019,15 +2020,21 @@ paths:
20192020
x-linode-cli-command: account
20202021
post:
20212022
x-linode-grant: read_only
2023+
deprecated: true
2024+
x-linode-cli-skip: true
20222025
tags:
20232026
- Account
20242027
summary: PayPal Payment Stage
2025-
description: >
2028+
description: |
20262029
This begins the process of submitting a Payment via PayPal. After calling
20272030
this endpoint, you must take the resulting `payment_id` along with
20282031
the `payer_id` from your PayPal account and
20292032
[POST /account/payments/paypal-execute](/docs/api/account/#stagedapproved-paypal-payment-execute)
20302033
to complete the Payment.
2034+
2035+
**Note**: This endpoint is deprecated and may be removed in a future release. PayPal can now be
2036+
designated as a Payment Method for automated payments using
2037+
[Cloud Manager](/docs/guides/manage-billing-in-cloud-manager/#adding-a-new-payment-method).
20312038
operationId: createPayPalPayment
20322039
x-linode-cli-action: paypal-start
20332040
security:
@@ -2062,6 +2069,8 @@ paths:
20622069
The checkout token generated for this Payment.
20632070
example: EC-1A2B3C4D5E6F7G8H9
20642071
readOnly: true
2072+
'299':
2073+
$ref: '#/components/responses/DeprecatedResponse'
20652074
default:
20662075
$ref: '#/components/responses/ErrorResponse'
20672076
x-code-samples:
@@ -2085,13 +2094,19 @@ paths:
20852094
x-linode-cli-command: account
20862095
post:
20872096
x-linode-grant: read_write
2097+
deprecated: true
2098+
x-linode-cli-skip: true
20882099
tags:
20892100
- Account
20902101
summary: Staged/Approved PayPal Payment Execute
2091-
description: >
2102+
description: |
20922103
Given a PaymentID and PayerID - as generated by PayPal during the
20932104
transaction authorization process - this endpoint executes the Payment
20942105
to capture the funds and credit your Linode Account.
2106+
2107+
**Note**: This endpoint is deprecated and may be removed in a future release. PayPal can now be
2108+
designated as a Payment Method for automated or manual payments using
2109+
[Cloud Manager](/docs/guides/manage-billing-in-cloud-manager/#adding-a-new-payment-method).
20952110
operationId: executePayPalPayment
20962111
x-linode-cli-action: paypal-execute
20972112
security:
@@ -2114,7 +2129,9 @@ paths:
21142129
schema:
21152130
type: object
21162131
'202':
2117-
$ref: '#/components/responses/WarningResponse'
2132+
$ref: '#/components/responses/AcceptedResponse'
2133+
'299':
2134+
$ref: '#/components/responses/DeprecatedResponse'
21182135
default:
21192136
$ref: '#/components/responses/ErrorResponse'
21202137
x-code-samples:
@@ -16012,22 +16029,25 @@ components:
1601216029
'volumes:read_only': Allows access to GET your Volumes.
1601316030
'volumes:read_write': Allows access to all endpoints related to your Volumes.
1601416031
responses:
16015-
ErrorResponse:
16016-
description: Error
16032+
AcceptedResponse:
16033+
description: |
16034+
Accepted with warning.
16035+
16036+
A warnings array is included with the standard 200 response body.
1601716037
content:
1601816038
application/json:
1601916039
schema:
1602016040
type: object
1602116041
properties:
16022-
errors:
16042+
warnings:
1602316043
type: array
1602416044
items:
16025-
$ref: '#/components/schemas/ErrorObject'
16026-
WarningResponse:
16045+
$ref: '#/components/schemas/WarningObject'
16046+
DeprecatedResponse:
1602716047
description: |
16028-
Accepted with warning.
16048+
Request successful. This endpoint is deprecated and may be removed in a future release.
1602916049

16030-
A warning object is included with the standard 200 response.
16050+
A warnings array is included with the standard 200 response body.
1603116051
content:
1603216052
application/json:
1603316053
schema:
@@ -16037,6 +16057,17 @@ components:
1603716057
type: array
1603816058
items:
1603916059
$ref: '#/components/schemas/WarningObject'
16060+
ErrorResponse:
16061+
description: Error
16062+
content:
16063+
application/json:
16064+
schema:
16065+
type: object
16066+
properties:
16067+
errors:
16068+
type: array
16069+
items:
16070+
$ref: '#/components/schemas/ErrorObject'
1604016071
parameters:
1604116072
pageOffset:
1604216073
name: page
@@ -22630,7 +22661,7 @@ components:
2263022661
WarningObject:
2263122662
type: object
2263222663
description: >
22633-
An object for describing a single warning for incomplete processing associated with an accepted request.
22664+
An object for describing a single warning associated with a response.
2263422665
properties:
2263522666
title:
2263622667
type: string

0 commit comments

Comments
 (0)