import { array , boolean , lazy , object , optional , Schema , string , } from '../schema' ; import { CatalogQuickAmount , catalogQuickAmountSchema , } from './catalogQuickAmount' ; /** A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts. */ export interface CatalogQuickAmountsSettings { /** Determines a seller's option on Quick Amounts feature. */ option : string ; /**
     * Represents location's eligibility for auto amounts
     * The boolean should be consistent with whether there are AUTO amounts in the `amounts`.
     */ eligibleForAutoAmounts ? : boolean ; /** Represents a set of Quick Amounts at this location. */ amounts ? : CatalogQuickAmount [ ] ; } export const catalogQuickAmountsSettingsSchema = object ( { option : [ 'option' , string ( ) ] , eligibleForAutoAmounts : [ 'eligible_for_auto_amounts' , optional ( boolean ( ) ) ] , amounts : [ 'amounts' , optional ( array ( lazy ( ( ) => catalogQuickAmountSchema ) ) ) ] , } ) ;