DocumentationAmertaThemeUtilitiesValidate guest orderInterfaces

Guest Order Validation Result

amerta


amerta / amerta/theme/utilities/validate-guest-order / GuestOrderValidationResult

Interface: GuestOrderValidationResult

Defined in: amerta/theme/utilities/validate-guest-order.ts:65

Properties

data?

optional data: { address: { address: string; apartment: string; building?: string; city: string; cityName?: string; country: string; countryName?: string; firstName: string; floor?: string; id: string; lastName: string; phone: string | number; phoneCountryCode: string; postalCode?: string; state?: string; street: string; }; cartTotal: number; deliveryMethodId: string; email: string; paymentMethodId: string; }

Defined in: amerta/theme/utilities/validate-guest-order.ts:69

address

address: { address: string; apartment: string; building?: string; city: string; cityName?: string; country: string; countryName?: string; firstName: string; floor?: string; id: string; lastName: string; phone: string | number; phoneCountryCode: string; postalCode?: string; state?: string; street: string; }

address.address

address: string

address.apartment

apartment: string

address.building?

optional building: string

address.city

city: string

address.cityName?

optional cityName: string

address.country

country: string

address.countryName?

optional countryName: string

address.firstName

firstName: string

address.floor?

optional floor: string

address.id

id: string

address.lastName

lastName: string

address.phone

phone: string | number

address.phoneCountryCode

phoneCountryCode: string

address.postalCode?

optional postalCode: string

address.state?

optional state: string

address.street

street: string

cartTotal

cartTotal: number

deliveryMethodId

deliveryMethodId: string

email

email: string

paymentMethodId

paymentMethodId: string


errors?

optional errors: {[x: string]: string; }

Defined in: amerta/theme/utilities/validate-guest-order.ts:67

Index Signature

[x: string]: string


message?

optional message: string

Defined in: amerta/theme/utilities/validate-guest-order.ts:68


success

success: boolean

Defined in: amerta/theme/utilities/validate-guest-order.ts:66