import type { Campaign } from './Campaign'; import type { Schedule } from './Schedule'; import type { Promotion } from './Promotion'; /** * @type PromotionCampaignAssignment: Document representing a promotion campaign assignment. * * @property campaign: The campaign. * * @property campaignId: The ID of the campaign. * - **Min Length:** 1 * - **Max Length:** 256 * * @property coupons: The sorted array of assigned coupon IDs. * * @property customerGroups: The sorted array of assigned customer groups. * * @property description: The description of the promotion campaign assignment. * - **Max Length:** 4000 * * @property enabled: True if the assignment resource is enabled. * * @property promotion: The promotion. * * @property promotionId: The ID of the promotion. * - **Min Length:** 1 * - **Max Length:** 256 * * @property rank: The rank of promotion campaign assignment. * * @property schedule: The schedule of the assignment resource. * * @property sourceCodeGroups: The sorted array of assigned source code groups. * */ export type PromotionCampaignAssignment = { campaign: Campaign; campaignId: string; coupons: Array; customerGroups: Array; description: string; enabled: boolean; promotion: Promotion; promotionId: string; rank: number; schedule: Schedule; sourceCodeGroups: Array; } & { [key: string]: any; };