import { UbContextType } from '../enums/ub-menu'; import { UbDayOfWeek, UbLocationType } from '../enums/ub-utils'; export interface UbMultiLanguageText { /** key: 'en_us' (locale codes) */ translations: { [key: string]: string; }; } export interface UbServiceAvailability { day_of_week: UbDayOfWeek; time_periods: UbTimePeriod[]; } export interface UbTimePeriod { /** HH:MM '00:00' - '23:59' */ start_time: string; /** HH:MM '00:00' - '23:59' */ end_time: string; } export interface UbOverride { context_type: UbContextType; /** context ID */ context_value: string; } export interface UbHoursOfWeek { day_of_week: UbDayOfWeek; time_periods: UbTimePeriod; } export interface UbLocation { type: UbLocationType; street_address?: string; latitude?: number; longitude?: number; google_place_id?: string; unit_number?: string; } export interface UbMoney { amount: number; /** ISO 4217 code */ currency_code: string; formatted_amount: string; }