Files
medusa-store/packages/medusa/src/models/payment-provider.ts
Shahed Nasser 8a1aac028e chore(oas): improvements to examples and descriptions (#4545)
* improve curl examples in OAS

* update tags

* fix oas errors

* update tags and their descriptions

* updated oas of endpoints

* improved oas of all admin endpoints

* improved store OAS comments

* improved models OAS comments

* small change
2023-07-26 20:13:44 +03:00

31 lines
906 B
TypeScript

import { Column, Entity, PrimaryColumn } from "typeorm"
@Entity()
export class PaymentProvider {
@PrimaryColumn()
id: string
@Column({ default: true })
is_installed: boolean
}
/**
* @schema PaymentProvider
* title: "Payment Provider"
* description: "A payment provider represents a payment service installed in the Medusa backend, either through a plugin or backend customizations.
* It holds the payment service's installation status."
* type: object
* required:
* - id
* - is_installed
* properties:
* id:
* description: The ID of the payment provider as given by the payment service.
* type: string
* example: manual
* is_installed:
* description: Whether the payment service is installed in the current version. If a payment service is no longer installed, the `is_installed` attribute is set to `false`.
* type: boolean
* default: true
*/