import { lazy , object , optional , Schema , string } from '../schema' ; import { V1Money , v1MoneySchema } from './v1Money' ; /** V1PaymentModifier */ export interface V1PaymentModifier { /** The modifier option's name. */ name ? : string ; appliedMoney ? : V1Money ; /** The ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID. */ modifierOptionId ? : string ; } export const v1PaymentModifierSchema = object ( { name : [ 'name' , optional ( string ( ) ) ] , appliedMoney : [ 'applied_money' , optional ( lazy ( ( ) => v1MoneySchema ) ) ] , modifierOptionId : [ 'modifier_option_id' , optional ( string ( ) ) ] , } ) ;