voucher
voucher: { active: true; additional_info?: string; assets?: { barcode?: { id: string; url: string }; qr?: { id: string; url: string } }; campaign?: string; campaign_id?: string; category?: string; code?: string; created_at: string; expiration_date?: string; holder: { id: string; metadata?: Record<string, any>; object: "customer"; source_id: string }; holder_id: string; id: string; is_referral_code: boolean; loyalty_card?: { balance: number; points: number }; object?: "voucher"; publish: { count: number; object: "list"; url: string }; redemption: { object: "list"; quantity: number; redeemed_points: number; redeemed_quantity: number; url: string }; referrer_id: string; start_date?: string; type: "LOYALTY_CARD"; updated_at: string; validation_rules_assignments: { data?: { created_at: string; id: string; object: "validation_rules_assignment"; related_object_id?: string; related_object_type?: string; rule_id?: string }[]; data_ref: "data"; object: "list"; total: number }; validity_day_of_week?: number[]; validity_timeframe?: { duration?: string; interval?: string } }
Type declaration
-
active: true
-
Optional additional_info?: string
-
Optional assets?: { barcode?: { id: string; url: string }; qr?: { id: string; url: string } }
-
Optional barcode?: { id: string; url: string }
-
Optional qr?: { id: string; url: string }
-
Optional campaign?: string
-
Optional campaign_id?: string
-
Optional category?: string
-
Optional code?: string
-
created_at: string
-
Optional expiration_date?: string
-
holder: { id: string; metadata?: Record<string, any>; object: "customer"; source_id: string }
-
id: string
-
Optional metadata?: Record<string, any>
-
object: "customer"
-
source_id: string
-
holder_id: string
-
id: string
-
is_referral_code: boolean
-
Optional loyalty_card?: { balance: number; points: number }
-
balance: number
-
points: number
-
Optional object?: "voucher"
-
publish: { count: number; object: "list"; url: string }
-
count: number
-
object: "list"
-
url: string
-
redemption: { object: "list"; quantity: number; redeemed_points: number; redeemed_quantity: number; url: string }
-
object: "list"
-
quantity: number
-
redeemed_points: number
-
redeemed_quantity: number
-
url: string
-
referrer_id: string
-
Optional start_date?: string
-
type: "LOYALTY_CARD"
-
updated_at: string
-
validation_rules_assignments: { data?: { created_at: string; id: string; object: "validation_rules_assignment"; related_object_id?: string; related_object_type?: string; rule_id?: string }[]; data_ref: "data"; object: "list"; total: number }
-
Optional data?: { created_at: string; id: string; object: "validation_rules_assignment"; related_object_id?: string; related_object_type?: string; rule_id?: string }[]
-
data_ref: "data"
-
object: "list"
-
total: number
-
Optional validity_day_of_week?: number[]
-
Optional validity_timeframe?: { duration?: string; interval?: string }
-
Optional duration?: string
-
Optional interval?: string