Updating documentation
This commit is contained in:
parent
6662ce651b
commit
c7d628ee62
|
@ -2612,6 +2612,11 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- OneTimeDonations
|
- OneTimeDonations
|
||||||
|
summary: Create a Stripe payment intent
|
||||||
|
description: |
|
||||||
|
Create a Stripe PaymentIntent and return a client secret that can be used to complete the payment.
|
||||||
|
|
||||||
|
Once the payment is complete, the paymentIntentId can be used at /v1/subscriptions/receipt_credentials
|
||||||
operationId: createBoostPaymentIntent
|
operationId: createBoostPaymentIntent
|
||||||
parameters:
|
parameters:
|
||||||
- name: User-Agent
|
- name: User-Agent
|
||||||
|
@ -2625,22 +2630,36 @@ paths:
|
||||||
$ref: '#/components/schemas/CreateBoostRequest'
|
$ref: '#/components/schemas/CreateBoostRequest'
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
default:
|
"200":
|
||||||
description: default response
|
description: Payment Intent created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/CreateBoostResponse'
|
||||||
|
"403":
|
||||||
|
description: The request was made on an authenticated channel
|
||||||
|
"400":
|
||||||
|
description: |
|
||||||
|
Invalid argument. The response body may include an error code with more specific information. If the error code
|
||||||
|
is `amount_below_currency_minimum` the body will also include the `minimum` field indicating the minimum amount
|
||||||
|
for the currency. If the error code is `amount_above_sepa_limit` the body will also include the `maximum`
|
||||||
|
field indicating the maximum amount for a SEPA transaction.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
completedExceptionally:
|
error:
|
||||||
type: boolean
|
type: string
|
||||||
numberOfDependents:
|
"409":
|
||||||
type: integer
|
description: Provided level does not match the currency/amount combination
|
||||||
format: int32
|
content:
|
||||||
done:
|
application/json:
|
||||||
type: boolean
|
schema:
|
||||||
cancelled:
|
type: object
|
||||||
type: boolean
|
properties:
|
||||||
|
error:
|
||||||
|
type: string
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -5280,6 +5299,7 @@ components:
|
||||||
format: uuid
|
format: uuid
|
||||||
ConfirmPayPalBoostRequest:
|
ConfirmPayPalBoostRequest:
|
||||||
required:
|
required:
|
||||||
|
- amount
|
||||||
- currency
|
- currency
|
||||||
- payerId
|
- payerId
|
||||||
- paymentId
|
- paymentId
|
||||||
|
@ -5287,16 +5307,23 @@ components:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
currency:
|
currency:
|
||||||
|
maxLength: 3
|
||||||
|
minLength: 3
|
||||||
type: string
|
type: string
|
||||||
amount:
|
amount:
|
||||||
minimum: 1
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
|
description: "The amount to pay in the [currency's minor unit](https://docs.stripe.com/currencies#minor-units)"
|
||||||
format: int64
|
format: int64
|
||||||
level:
|
level:
|
||||||
type: integer
|
type: integer
|
||||||
|
description: The level for the boost payment. Assumed to be the boost level
|
||||||
|
if missing
|
||||||
format: int64
|
format: int64
|
||||||
paymentMethod:
|
paymentMethod:
|
||||||
type: string
|
type: string
|
||||||
|
description: The payment method
|
||||||
|
default: CARD
|
||||||
enum:
|
enum:
|
||||||
- UNKNOWN
|
- UNKNOWN
|
||||||
- CARD
|
- CARD
|
||||||
|
@ -5311,22 +5338,36 @@ components:
|
||||||
type: string
|
type: string
|
||||||
paymentToken:
|
paymentToken:
|
||||||
type: string
|
type: string
|
||||||
|
CreateBoostResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
clientSecret:
|
||||||
|
type: string
|
||||||
|
description: A client secret that can be used to complete a stripe PaymentIntent
|
||||||
CreateBoostRequest:
|
CreateBoostRequest:
|
||||||
required:
|
required:
|
||||||
|
- amount
|
||||||
- currency
|
- currency
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
currency:
|
currency:
|
||||||
|
maxLength: 3
|
||||||
|
minLength: 3
|
||||||
type: string
|
type: string
|
||||||
amount:
|
amount:
|
||||||
minimum: 1
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
|
description: "The amount to pay in the [currency's minor unit](https://docs.stripe.com/currencies#minor-units)"
|
||||||
format: int64
|
format: int64
|
||||||
level:
|
level:
|
||||||
type: integer
|
type: integer
|
||||||
|
description: The level for the boost payment. Assumed to be the boost level
|
||||||
|
if missing
|
||||||
format: int64
|
format: int64
|
||||||
paymentMethod:
|
paymentMethod:
|
||||||
type: string
|
type: string
|
||||||
|
description: The payment method
|
||||||
|
default: CARD
|
||||||
enum:
|
enum:
|
||||||
- UNKNOWN
|
- UNKNOWN
|
||||||
- CARD
|
- CARD
|
||||||
|
@ -5356,22 +5397,30 @@ components:
|
||||||
- APPLE_APP_STORE
|
- APPLE_APP_STORE
|
||||||
CreatePayPalBoostRequest:
|
CreatePayPalBoostRequest:
|
||||||
required:
|
required:
|
||||||
|
- amount
|
||||||
- cancelUrl
|
- cancelUrl
|
||||||
- currency
|
- currency
|
||||||
- returnUrl
|
- returnUrl
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
currency:
|
currency:
|
||||||
|
maxLength: 3
|
||||||
|
minLength: 3
|
||||||
type: string
|
type: string
|
||||||
amount:
|
amount:
|
||||||
minimum: 1
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
|
description: "The amount to pay in the [currency's minor unit](https://docs.stripe.com/currencies#minor-units)"
|
||||||
format: int64
|
format: int64
|
||||||
level:
|
level:
|
||||||
type: integer
|
type: integer
|
||||||
|
description: The level for the boost payment. Assumed to be the boost level
|
||||||
|
if missing
|
||||||
format: int64
|
format: int64
|
||||||
paymentMethod:
|
paymentMethod:
|
||||||
type: string
|
type: string
|
||||||
|
description: The payment method
|
||||||
|
default: CARD
|
||||||
enum:
|
enum:
|
||||||
- UNKNOWN
|
- UNKNOWN
|
||||||
- CARD
|
- CARD
|
||||||
|
|
Loading…
Reference in New Issue