Skip to content

[Update] Add PayPal Payment Method response data #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 67 additions & 23 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ paths:
description: |
The type of Payment Method.

Alternative Payment Methods including Google Pay can be added using Linode Cloud Manager. See our
Alternative Payment Methods including Google Pay and PayPal can be added using Linode Cloud Manager. See our
guide on [Managing Billing in the Cloud Manager](/docs/guides/manage-billing-in-cloud-manager/)
for details and instructions.
example: 'credit_card'
Expand Down Expand Up @@ -21158,6 +21158,7 @@ components:
enum:
- credit_card
- google_pay
- paypal
description: The type of Payment Method.
example: 'credit_card'
x-linode-cli-display: 2
Expand All @@ -21174,28 +21175,71 @@ components:
description: When the Payment Method was added to the Account.
example: '2018-01-15T00:01:01'
data:
type: object
description: Credit card information.
properties:
card_type:
type: string
readOnly: true
description: The type of credit card.
example: "Discover"
x-linode-cli-display: 8
last_four:
type: string
readOnly: true
description: The last four digits of the credit card number.
example: "1234"
x-linode-cli-display: 9
expiry:
type: string
readOnly: true
format: MM/YYYY
description: The expiration month and year of the credit card.
example: 06/2022
x-linode-cli-display: 10
x-linode-cli-format: json
x-linode-cli-display: 4
oneOf:
- x-linode-ref-name: "Credit Card"
$ref: '#/components/schemas/CreditCardData'
- x-linode-ref-name: "Google Pay"
$ref: '#/components/schemas/GooglePayData'
- x-linode-ref-name: "Paypal"
$ref: '#/components/schemas/PayPalData'
discriminator:
propertyName: type
CreditCardData:
type: object
description: Credit card information.
properties:
card_type:
type: string
readOnly: true
description: The type of credit card.
example: "Discover"
last_four:
type: string
readOnly: true
description: The last four digits of the credit card number.
example: "1234"
expiry:
type: string
readOnly: true
format: MM/YYYY
description: The expiration month and year of the credit card.
example: 06/2022
GooglePayData:
type: object
description: Google Pay information.
properties:
card_type:
type: string
readOnly: true
description: The type of credit card.
example: "Discover"
last_four:
type: string
readOnly: true
description: The last four digits of the credit card number.
example: "1234"
expiry:
type: string
readOnly: true
format: MM/YYYY
description: The expiration month and year of the credit card.
example: 06/2022
PayPalData:
type: object
description: PayPal information.
properties:
email:
type: string
readOnly: true
description: The email address associated with your PayPal account.
example: "[email protected]"
paypal_id:
type: string
readOnly: true
description: PayPal Merchant ID associated with your PayPal account.
example: "ABC1234567890"
PaymentRequest:
type: object
required:
Expand Down