Skip to content
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

Fix for the Make Payment endpoint #933

Merged
merged 3 commits into from
Apr 30, 2024
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
23 changes: 19 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,24 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequest'
properties:
usd:
type: string
pattern: ^\$?\d+\.\d{2}$
description: |
The amount in US Dollars of the Payment.

* Can begin with or without `$`.
* Commas (`,`) are not accepted.
* Must end with a decimal expression, such as `.00` or `.99`.
* Minimum: `$5.00` or the Account balance, whichever is lower.
* Maximum: `$2000.00` or the Account balance up to `$50000.00`, whichever is greater.
example: '$120.50'
payment_method_id:
type: integer
description: >
The ID of the Payment Method to apply to the Payment.
example: 123
responses:
'200':
description: Payment submitted successfully.
Expand All @@ -2274,15 +2291,13 @@ paths:
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"cvv": "123",
"usd": "120.50",
"payment_method_id": 123
}' \
https://api.linode.com/v4/account/payments
- lang: CLI
source: >
linode-cli account payment-create \
--cvv 123 \
--usd 120.50 \
--payment_method_id 123
/account/payments/{paymentId}:
Expand Down Expand Up @@ -6613,7 +6628,7 @@ paths:
"subnet_id": 101,
"ipv4": {
"vpc": "10.0.1.2",
"nat_1_1": "add"
"nat_1_1": "any"
}
}
],
Expand Down
Loading