Files
medusa-store/www/utils/generated/oas-output/schemas/AdminPromotion.ts
Shahed Nasser 89928dfdf3 chore(oas): [11/n] improve oas schemas (#9188)
Improve OAS schemas [11/n]
2024-09-19 14:24:54 +00:00

44 lines
1.1 KiB
TypeScript

/**
* @schema AdminPromotion
* type: object
* description: The promotion's details.
* x-schemaName: AdminPromotion
* required:
* - id
* properties:
* id:
* type: string
* title: id
* description: The promotion's ID.
* code:
* type: string
* title: code
* description: The promotion's code.
* example: OFF50
* type:
* type: string
* description: The promotion's type.
* enum:
* - standard
* - buyget
* is_automatic:
* type: boolean
* title: is_automatic
* description: Whether the promotion is applied on a cart automatically if it matches the promotion's rules.
* application_method:
* $ref: "#/components/schemas/BaseApplicationMethod"
* rules:
* type: array
* description: The promotion's rules.
* items:
* $ref: "#/components/schemas/BasePromotionRule"
* campaign_id:
* type: string
* title: campaign_id
* description: The ID of the campaign this promotion belongs to.
* campaign:
* $ref: "#/components/schemas/AdminCampaign"
*
*/