Skip to content

Commit fd96ac9

Browse files
bbiggerralsaihn
andauthored
Add zip code requirements to Account schema and Credit Card Add/Edit (#416)
* Add zip code requirements Co-authored-by: alsaihn <[email protected]>
1 parent 1bc931c commit fd96ac9

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

openapi.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,12 +550,16 @@ paths:
550550
tags:
551551
- Account
552552
summary: Credit Card Add/Edit
553-
description: >
553+
description: |
554554
Adds/edit credit card information to your Account.
555555

556556
Only one credit card can be associated with your Account, so using this
557557
endpoint will overwrite your currently active card information with the
558558
new credit card.
559+
560+
To use this endpoint, you must have a valid `zip` entered for your Account.
561+
Use the Account Update ([PUT /account](/docs/api/account/#account-update))
562+
endpoint to enter a new zip code.
559563
operationId: createCreditCard
560564
x-linode-cli-action: update-card
561565
security:
@@ -15590,9 +15594,12 @@ components:
1559015594
example: E1AF5EEC-526F-487D-B317EBEB34C87D71
1559115595
zip:
1559215596
type: string
15593-
description: The zip code of this Account's billing address.
15594-
maxLength: 16
15595-
example: 19102
15597+
description: |
15598+
The zip code of this Account's billing address. The following restrictions apply:
15599+
15600+
- May only consist of letters, numbers, spaces, and hyphens.
15601+
- Must not contain more than 9 letter or number characters.
15602+
example: 19102-1234
1559615603
AccountSettings:
1559715604
type: object
1559815605
description: Account Settings object
@@ -15803,7 +15810,7 @@ components:
1580315810
A list of the disks that are part of the Backup.
1580415811
CreditCard:
1580515812
type: object
15806-
description: >
15813+
description: |
1580715814
An object representing the credit card information you have on file with
1580815815
Linode to make Payments against your Account.
1580915816
required:

0 commit comments

Comments
 (0)