Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationsValidateVoucherResponse

Hierarchy

  • ValidationsValidateVoucherResponse

Index

Properties

Optional applicable_to

applicable_to: ApplicableToResultList

Optional campaign

campaign: string

Optional campaign_id

campaign_id: string

Optional code

code: string

Optional discount

Optional error

error: ValidationError

Optional expiration_date

expiration_date: string

Optional gift

gift: { amount: number; balance: number }

Type declaration

  • amount: number
  • balance: number

Optional inapplicable_to

inapplicable_to: ApplicableToResultList

Optional loyalty

loyalty: { points_cost: number }

Type declaration

  • points_cost: number

Optional metadata

metadata: Record<string, any>

Optional order

order: { amount: number; applied_discount_amount?: number; discount_amount: number; initial_amount?: number; items?: OrdersItem[]; items_applied_discount_amount?: number; items_discount_amount?: number; metadata?: Record<string, any>; total_amount: number; total_applied_discount_amount?: number; total_discount_amount: number }

Type declaration

  • amount: number
  • Optional applied_discount_amount?: number
  • discount_amount: number
  • Optional initial_amount?: number
  • Optional items?: OrdersItem[]
  • Optional items_applied_discount_amount?: number
  • Optional items_discount_amount?: number
  • Optional metadata?: Record<string, any>
  • total_amount: number
  • Optional total_applied_discount_amount?: number
  • total_discount_amount: number

Optional session

Optional start_date

start_date: string

tracking_id

tracking_id: string

Optional valid

valid: boolean