From ac929db5d2a11dc0201b3a3296c89f164758b993 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 5 Apr 2021 10:24:22 -0400 Subject: [PATCH 1/3] Add zip code requirements --- openapi.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 53fa84bbf..dccc86e32 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -550,12 +550,16 @@ paths: tags: - Account summary: Credit Card Add/Edit - description: > + description: | Adds/edit credit card information to your Account. Only one credit card can be associated with your Account, so using this endpoint will overwrite your currently active card information with the new credit card. + + To use this endpoint, you must have a valid `zip` entered for your Account. + Use the Account Update ([PUT /account](/docs/api/account/#account-update)) + endpoint to enter a new zip code. operationId: createCreditCard x-linode-cli-action: update-card security: @@ -15528,7 +15532,10 @@ components: example: E1AF5EEC-526F-487D-B317EBEB34C87D71 zip: type: string - description: The zip code of this Account's billing address. + description: | + The zip code of this Account's billing address. + + For successful credit card processing, the zip code may only consist of letters, numbers, spaces, and hyphens. maxLength: 16 example: 19102 AccountSettings: @@ -15741,7 +15748,7 @@ components: A list of the disks that are part of the Backup. CreditCard: type: object - description: > + description: | An object representing the credit card information you have on file with Linode to make Payments against your Account. required: From 23edc56ca87e17d83be0c4b0af229fc51c75919a Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 5 Apr 2021 10:39:23 -0400 Subject: [PATCH 2/3] Add restriction --- openapi.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index dccc86e32..ef7c1e5b9 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15533,10 +15533,10 @@ components: zip: type: string description: | - The zip code of this Account's billing address. + The zip code of this Account's billing address. The following restrictions apply: - For successful credit card processing, the zip code may only consist of letters, numbers, spaces, and hyphens. - maxLength: 16 + - May only consist of letters, numbers, spaces, and hyphens. + - Must not contain more than 9 letter or number characters. example: 19102 AccountSettings: type: object From 874ba5664f4e17c1af11299cc8d94e08bd7e761d Mon Sep 17 00:00:00 2001 From: Ben Bigger <25663044+bbiggerr@users.noreply.github.com> Date: Mon, 5 Apr 2021 13:49:21 -0400 Subject: [PATCH 3/3] Update zip code example Co-authored-by: alsaihn --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index ef7c1e5b9..f000978e7 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15537,7 +15537,7 @@ components: - May only consist of letters, numbers, spaces, and hyphens. - Must not contain more than 9 letter or number characters. - example: 19102 + example: 19102-1234 AccountSettings: type: object description: Account Settings object