docs: fix OAS generator + generate OAS (#11584)
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
type: object
|
||||
description: The payment session's details.
|
||||
x-schemaName: BasePaymentSession
|
||||
required:
|
||||
- id
|
||||
- amount
|
||||
- currency_code
|
||||
- provider_id
|
||||
- data
|
||||
- status
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
@@ -26,7 +33,7 @@ properties:
|
||||
payment.
|
||||
externalDocs:
|
||||
url: >-
|
||||
https://docs.medusajs.com/v2/resources/commerce-modules/payment/payment-session#data-property
|
||||
https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property
|
||||
context:
|
||||
type: object
|
||||
description: The context around the payment, such as the customer's details.
|
||||
@@ -37,12 +44,12 @@ properties:
|
||||
type: string
|
||||
description: The payment session's status.
|
||||
enum:
|
||||
- error
|
||||
- authorized
|
||||
- captured
|
||||
- canceled
|
||||
- captured
|
||||
- pending
|
||||
- requires_more
|
||||
- error
|
||||
authorized_at:
|
||||
type: string
|
||||
title: authorized_at
|
||||
@@ -52,10 +59,3 @@ properties:
|
||||
type: object
|
||||
payment:
|
||||
$ref: ./BasePayment.yaml
|
||||
required:
|
||||
- id
|
||||
- amount
|
||||
- currency_code
|
||||
- provider_id
|
||||
- data
|
||||
- status
|
||||
|
||||
Reference in New Issue
Block a user