Skip to content

Commit 369bce9

Browse files
authored
Fix for the Make Payment endpoint (#933)
* Fix for the make payment enpoint * CVV removal only applies to make-payment endpoint * Minor fix
1 parent afd4d08 commit 369bce9

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

openapi.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,24 @@ paths:
22562256
content:
22572257
application/json:
22582258
schema:
2259-
$ref: '#/components/schemas/PaymentRequest'
2259+
properties:
2260+
usd:
2261+
type: string
2262+
pattern: ^\$?\d+\.\d{2}$
2263+
description: |
2264+
The amount in US Dollars of the Payment.
2265+
2266+
* Can begin with or without `$`.
2267+
* Commas (`,`) are not accepted.
2268+
* Must end with a decimal expression, such as `.00` or `.99`.
2269+
* Minimum: `$5.00` or the Account balance, whichever is lower.
2270+
* Maximum: `$2000.00` or the Account balance up to `$50000.00`, whichever is greater.
2271+
example: '$120.50'
2272+
payment_method_id:
2273+
type: integer
2274+
description: >
2275+
The ID of the Payment Method to apply to the Payment.
2276+
example: 123
22602277
responses:
22612278
'200':
22622279
description: Payment submitted successfully.
@@ -2274,15 +2291,13 @@ paths:
22742291
curl -H "Content-Type: application/json" \
22752292
-H "Authorization: Bearer $TOKEN" \
22762293
-X POST -d '{
2277-
"cvv": "123",
22782294
"usd": "120.50",
22792295
"payment_method_id": 123
22802296
}' \
22812297
https://api.linode.com/v4/account/payments
22822298
- lang: CLI
22832299
source: >
22842300
linode-cli account payment-create \
2285-
--cvv 123 \
22862301
--usd 120.50 \
22872302
--payment_method_id 123
22882303
/account/payments/{paymentId}:
@@ -6613,7 +6628,7 @@ paths:
66136628
"subnet_id": 101,
66146629
"ipv4": {
66156630
"vpc": "10.0.1.2",
6616-
"nat_1_1": "add"
6631+
"nat_1_1": "any"
66176632
}
66186633
}
66196634
],

0 commit comments

Comments
 (0)