Properties
Optional active
active: boolean
Optional additional_info
additional_info: string
assets
assets: { barcode: { id: string; url: string }; qr: { id: string; url: string } }
Type declaration
-
barcode: { id: string; url: string }
-
qr: { id: string; url: string }
Optional camapign_id
camapign_id: string
Optional campaign
campaign: string
Optional category_id
category_id: string
created_at
created_at: string
Optional expiration_date
expiration_date: string
Optional gift
gift: { amount: number; balance: number; effect: string }
Type declaration
-
amount: number
-
balance: number
-
effect: string
Optional holder_id
holder_id: string
is_referral_code
is_referral_code: boolean
Optional loyalty_card
loyalty_card: { balance: number; next_expiration_date?: string; next_expiration_points?: number; points: number }
Type declaration
-
balance: number
-
Optional next_expiration_date?: string
-
Optional next_expiration_points?: number
-
points: number
Optional metadata
metadata: Record<string, any>
Optional publish
publish: { count: number; object: "list"; url: string }
Type declaration
-
count: number
-
object: "list"
-
url: string
Optional redemption
redemption: { object: "list"; quantity?: number; redeemed_points?: number; redeemed_quantity: number; url: string }
Type declaration
-
object: "list"
-
Optional quantity?: number
-
Optional redeemed_points?: number
-
redeemed_quantity: number
-
url: string
Optional start_date
start_date: string
type
type: "GIFT_VOUCHER" | "DISCOUNT_VOUCHER" | "LOYALTY_CARD"
Optional updated_at
updated_at: string
Optional validity_day_of_week
validity_day_of_week: number[]
Optional validity_timeframe
validity_timeframe: { duration: string; interval: string }
Type declaration
-
duration: string
-
interval: string