Created
August 18, 2022 17:55
-
-
Save gobengo/f456b5380b25afe1d7db576ff5ac5823 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: Account Payment API | |
version: "0" | |
servers: | |
- url: https://staging.web3.storage/api | |
tags: | |
- name: payment | |
description: Pay for things | |
paths: | |
/account/payment: | |
get: | |
tags: | |
- payment | |
summary: get payment settings | |
operationId: getPayment | |
responses: | |
'200': | |
description: Successful operation | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/PaymentSettings' | |
put: | |
summary: Update payment settings for an account | |
tags: | |
- payment | |
operationId: updateAccountPayment | |
requestBody: | |
$ref: '#/components/requestBodies/PaymentSettingsUpdate' | |
responses: | |
'202': | |
description: Successful operation | |
components: | |
examples: | |
stripePaymentMethodId: | |
value: pm_1LYC6JIfErzTm2rEeZ44St7k | |
schemas: | |
PaymentSettings: | |
type: object | |
properties: | |
method: | |
type: object | |
properties: | |
id: | |
type: string | |
example: | |
$ref: '#/components/examples/stripePaymentMethodId/value' | |
requestBodies: | |
PaymentSettingsUpdate: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/PaymentSettings' | |
required: true | |
description: New Payment Settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment