/** * Innertickets API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { EventVM } from './eventVM'; import { PromotionMemberVM } from './promotionMemberVM'; import { PromotionStatsVM } from './promotionStatsVM'; import { TicketReleaseVM } from './ticketReleaseVM'; export interface PromotionVM { id?: number; name: string; event_id?: number; event?: EventVM; promotion_code?: string; discount_type: PromotionVM.DiscountTypeEnum; discount_amount: number; fee_type: PromotionVM.FeeTypeEnum; fee_amount: number; promotion_type: PromotionVM.PromotionTypeEnum; apply_per: PromotionVM.ApplyPerEnum; max_qty?: number; qty_per_customer?: number; release_id?: string; active?: boolean; sales_count?: number; statistics?: PromotionStatsVM; member_count: number; payout_amount?: number; sales_value?: number; promotionMembers?: Array; ticketRelease?: TicketReleaseVM; can_update?: boolean; can_delete?: boolean; } export namespace PromotionVM { export type DiscountTypeEnum = 1 | 2; export const DiscountTypeEnum = { NUMBER_1: 1 as DiscountTypeEnum, NUMBER_2: 2 as DiscountTypeEnum } export type FeeTypeEnum = 1 | 2; export const FeeTypeEnum = { NUMBER_1: 1 as FeeTypeEnum, NUMBER_2: 2 as FeeTypeEnum } export type PromotionTypeEnum = 0 | 1 | 2; export const PromotionTypeEnum = { NUMBER_0: 0 as PromotionTypeEnum, NUMBER_1: 1 as PromotionTypeEnum, NUMBER_2: 2 as PromotionTypeEnum } export type ApplyPerEnum = 1 | 2; export const ApplyPerEnum = { NUMBER_1: 1 as ApplyPerEnum, NUMBER_2: 2 as ApplyPerEnum } }