Files
medusa-store/www/utils/generated/oas-output/schemas/StorePaymentCollection.ts
Shahed Nasser 1e144e9c08 chore(oas): clean up oas (#9354)
* clean up generated oas

* fix issues in docs-util

* more fixes

* align max level

* validation fix

* add missing summaries

* fix validation

* fix exchanges route
2024-10-02 10:27:02 +03:00

87 lines
2.5 KiB
TypeScript

/**
* @schema StorePaymentCollection
* type: object
* description: The payment collection's details.
* x-schemaName: StorePaymentCollection
* required:
* - payment_providers
* - id
* - currency_code
* - region_id
* - amount
* - status
* properties:
* id:
* type: string
* title: id
* description: The payment collection's ID.
* currency_code:
* type: string
* title: currency_code
* description: The payment collection's currency code.
* region_id:
* type: string
* title: region_id
* description: The ID of the region this payment collection is associated with.
* amount:
* type: number
* title: amount
* description: The total amount to be paid.
* authorized_amount:
* type: number
* title: authorized_amount
* description: The total authorized amount of the collection's payments.
* captured_amount:
* type: number
* title: captured_amount
* description: The total captured amount of the collection's payments.
* refunded_amount:
* type: number
* title: refunded_amount
* description: The total refunded amount of the collection's payments.
* completed_at:
* type: string
* format: date-time
* title: completed_at
* description: The date the payment collection was completed.
* created_at:
* type: string
* format: date-time
* title: created_at
* description: The date the payment collection was created.
* updated_at:
* type: string
* format: date-time
* title: updated_at
* description: The date the payment collection was updated.
* metadata:
* type: object
* description: The payment collection's metadata, can hold custom key-value pairs.
* status:
* type: string
* description: The payment collection's status.
* enum:
* - canceled
* - not_paid
* - awaiting
* - authorized
* - partially_authorized
* payment_providers:
* type: array
* description: The payment provider used to process the collection's payments and sessions.
* items:
* $ref: "#/components/schemas/StorePaymentProvider"
* payment_sessions:
* type: array
* description: The payment collection's payment sessions.
* items:
* $ref: "#/components/schemas/StorePaymentSession"
* payments:
* type: array
* description: The payment collection's payments.
* items:
* $ref: "#/components/schemas/BasePayment"
*
*/