@@ -1632,7 +1632,7 @@ paths:
16321632 --data-binary "/path/to/image"
16331633 https://api.linode.com/v4/account/oauth-clients/edc6790ea9db4d224c5c/thumbnail
16341634 /account/payment-methods:
1635- x-linode-cli-command: account
1635+ x-linode-cli-command: payment-methods
16361636 get:
16371637 servers:
16381638 - url: https://api.linode.com/v4
@@ -1647,7 +1647,7 @@ paths:
16471647 description: |
16481648 Returns a paginated list of Payment Methods for this Account.
16491649 operationId: getPaymentMethods
1650- x-linode-cli-action: payment-methods- list
1650+ x-linode-cli-action: list
16511651 security:
16521652 - personalAccessToken: []
16531653 - oauth:
@@ -1679,7 +1679,7 @@ paths:
16791679 https://api.linode.com/v4/account/payment-methods
16801680 - lang: CLI
16811681 source: >
1682- linode-cli account payment-methods- list
1682+ linode-cli payment-methods list
16831683 post:
16841684 servers:
16851685 - url: https://api.linode.com/v4
@@ -1688,16 +1688,18 @@ paths:
16881688 - Account
16891689 summary: Payment Method Add
16901690 description: |
1691- Adds a Payment Method to your Account with the option to set it as the default method. Adding a default
1692- Payment Method removes the default status from any other Payment Method.
1691+ Adds a Payment Method to your Account with the option to set it as the default method.
16931692
1694- An Account can have up to 6 active Payment Methods .
1693+ * Adding a default Payment Method removes the default status from any other Payment Method .
16951694
1696- Prior to adding a Payment Method, ensure that your billing address information is up-to-date
1695+ * An Account can have up to 6 active Payment Methods.
1696+
1697+ * Prior to adding a Payment Method, ensure that your billing address information is up-to-date
16971698 with a valid `zip` by using the Account Update ([PUT /account](/docs/api/account/#account-update)) endpoint.
1699+
1700+ * A `payment_method_add` event is generated when a payment is successfully submitted.
16981701 operationId: createPaymentMethod
1699- x-linode-cli-action: payment-method-add
1700- x-linode-cli-skip: true
1702+ x-linode-cli-action: add
17011703 security:
17021704 - personalAccessToken: []
17031705 - oauth:
@@ -1720,7 +1722,16 @@ paths:
17201722 - cvv
17211723 properties:
17221724 type:
1723- $ref: '#/components/schemas/PaymentMethod/properties/type'
1725+ type: string
1726+ enum:
1727+ - credit_card
1728+ description: |
1729+ The type of Payment Method.
1730+
1731+ Alternative Payment Methods including Google Pay can be added using Linode Cloud Manager. See our
1732+ guide on [Managing Billing in the Cloud Manager](/docs/guides/manage-billing-in-cloud-manager/)
1733+ for details and instructions.
1734+ example: 'credit_card'
17241735 is_default:
17251736 $ref: '#/components/schemas/PaymentMethod/properties/is_default'
17261737 data:
@@ -1759,8 +1770,17 @@ paths:
17591770 }
17601771 }' \
17611772 https://api.linode.com/v4/account/payment-methods
1773+ - lang: CLI
1774+ source: >
1775+ linode-cli payment-methods add \
1776+ --type credit_card \
1777+ --is_default true \
1778+ --data.card_number 4111111111111111 \
1779+ --data.expiry_month 11 \
1780+ --data.expiry_year 2020 \
1781+ --data.cvv 111
17621782 /account/payment-methods/{paymentMethodId}:
1763- x-linode-cli-command: account
1783+ x-linode-cli-command: payment-methods
17641784 parameters:
17651785 - name: paymentMethodId
17661786 in: path
@@ -1778,7 +1798,7 @@ paths:
17781798 description: |
17791799 View the details of the specified Payment Method.
17801800 operationId: getPaymentMethod
1781- x-linode-cli-action: payment-method- view
1801+ x-linode-cli-action: view
17821802 security:
17831803 - personalAccessToken: []
17841804 - oauth:
@@ -1799,7 +1819,7 @@ paths:
17991819 https://api.linode.com/v4/account/payment-methods/123
18001820 - lang: CLI
18011821 source: >
1802- linode-cli account payment-method- view 123
1822+ linode-cli payment-methods view 123
18031823 delete:
18041824 x-linode-grant: read_write
18051825 tags:
@@ -1814,7 +1834,7 @@ paths:
18141834 ([POST /account/payment-methods/{paymentMethodId}/make-default](/docs/api/account/#payment-method-make-default))
18151835 endpoint.
18161836 operationId: deletePaymentMethod
1817- x-linode-cli-action: payment-method- delete
1837+ x-linode-cli-action: delete
18181838 security:
18191839 - personalAccessToken: []
18201840 - oauth:
@@ -1836,9 +1856,9 @@ paths:
18361856 https://api.linode.com/v4/account/payment-methods/123
18371857 - lang: CLI
18381858 source: >
1839- linode-cli account payment-method- delete 123
1859+ linode-cli payment-methods delete 123
18401860 /account/payment-methods/{paymentMethodId}/make-default:
1841- x-linode-cli-command: account
1861+ x-linode-cli-command: payment-methods
18421862 parameters:
18431863 - name: paymentMethodId
18441864 in: path
@@ -1858,7 +1878,7 @@ paths:
18581878
18591879 Removes the default status from any other Payment Method.
18601880 operationId: makePaymentMethodDefault
1861- x-linode-cli-action: payment-method-make- default
1881+ x-linode-cli-action: default
18621882 security:
18631883 - personalAccessToken: []
18641884 - oauth:
@@ -1880,7 +1900,7 @@ paths:
18801900 https://api.linode.com/v4/account/payment-methods/123/make-default
18811901 - lang: CLI
18821902 source: >
1883- linode-cli account payment-method-make- default 123
1903+ linode-cli payment-methods default 123
18841904 /account/payments:
18851905 x-linode-cli-command: account
18861906 get:
@@ -1932,9 +1952,12 @@ paths:
19321952 tags:
19331953 - Account
19341954 summary: Payment Make
1935- description: >
1936- Makes a Payment to your Account via credit card. This will charge your
1937- credit card the requested amount.
1955+ description: |
1956+ Makes a Payment to your Account.
1957+
1958+ * The requested amount is charged to the default Payment Method if no `payment_method_id` is specified.
1959+
1960+ * A `payment_submitted` event is generated when a payment is successfully submitted.
19381961 operationId: createPayment
19391962 x-linode-cli-action: payment-create
19401963 security:
@@ -1950,11 +1973,11 @@ paths:
19501973 $ref: '#/components/schemas/PaymentRequest'
19511974 responses:
19521975 '200':
1953- description: Payment made .
1976+ description: Payment submitted successfully .
19541977 content:
19551978 application/json:
19561979 schema:
1957- $ref: '#/components/schemas/Payment'
1980+ $ref: '#/components/schemas/Payment'
19581981 '202':
19591982 $ref: '#/components/responses/WarningResponse'
19601983 default:
@@ -1966,14 +1989,16 @@ paths:
19661989 -H "Authorization: Bearer $TOKEN" \
19671990 -X POST -d '{
19681991 "cvv": "123",
1969- "usd": "120.50"
1992+ "usd": "120.50",
1993+ "payment_method_id": 123
19701994 }' \
19711995 https://api.linode.com/v4/account/payments
19721996 - lang: CLI
19731997 source: >
19741998 linode-cli account payment-create \
19751999 --cvv 123 \
1976- --usd 120.50
2000+ --usd 120.50 \
2001+ --payment_method_id 123
19772002 /account/payments/{paymentId}:
19782003 x-linode-cli-command: account
19792004 parameters:
@@ -17003,6 +17028,7 @@ components:
1700317028 - oauth_client_secret_reset
1700417029 - oauth_client_update
1700517030 - password_reset
17031+ - payment_method_add
1700617032 - payment_submitted
1700717033 - profile_update
1700817034 - stackscript_create
@@ -21070,6 +21096,11 @@ components:
2107021096 The amount in US Dollars of the Payment. The maximum credit card
2107121097 payment that can be made is $50,000 dollars.
2107221098 example: '120.50'
21099+ payment_method_id:
21100+ type: integer
21101+ description: >
21102+ The ID of the Payment Method to apply to the Payment.
21103+ example: 123
2107321104 PayPal:
2107421105 type: object
2107521106 required:
0 commit comments