import { number , object , optional , Schema } from '../schema' ; /** A whole number or unreduced fractional ratio. */ export interface QuantityRatio { /** The whole or fractional quantity as the numerator. */ quantity ? : number ; /**
     * The whole or fractional quantity as the denominator.
     * In the case of fractional quantity this field is the denominator and quantity is the numerator.
     * When unspecified, the value is `1`. For example, when `quantity=3` and `quantity_donominator` is unspecified,
     * the quantity ratio is `3` or `3/1`.
     */ quantityDenominator ? : number ; } export const quantityRatioSchema = object ( { quantity : [ 'quantity' , optional ( number ( ) ) ] , quantityDenominator : [ 'quantity_denominator' , optional ( number ( ) ) ] , } ) ;