You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UserOrderGetters

UserOrderGetters interface

Signature:

export interface UserOrderGetters<ORDER, ORDER_ITEM> 

Properties

Property Modifiers Type Description
getDate (order: ORDER) => string
getFormattedPrice (price: number) => string
getId (order: ORDER) => string
getItemName (item: ORDER_ITEM) => string
getItemPrice (item: ORDER_ITEM) => number
getItemQty (item: ORDER_ITEM) => number
getItems (order: ORDER) => ORDER_ITEM[]
getItemSku (item: ORDER_ITEM) => string
getOrdersTotal (orders: { offset: number; count: number; total: number; results: Array<ORDER>; }) => number
getPrice (order: ORDER) => number
getStatus (order: ORDER) => string