Home > @vsf-enterprise/epcc-api > Order
# Order interface
Order model extends Elastic Path order. TODO: delete overridings after moltin updates type definitions. See task VSEE-221
Signature:
export interface Order extends Omit<EPOrder, 'shipping_address' | 'billing_address' | 'relationships'>
Extends: Omit<EPOrder, 'shipping_address' | 'billing_address' | 'relationships'>
# Properties
Property | Type | Description |
---|---|---|
billing_address | SetOptional<EPOrder['billing_address'], 'type' | 'name' | 'phone_number' | 'instructions'> | |
meta | EPOrder['meta'] & { display_price: EPOrder['meta']['display_price'] & { discount?: EPFormattedPrice; }; } | |
relationships? | Omit<EPOrder['relationships'], 'items'> & { items?: RelationshipToMany<'item' | 'product'>; } | (Optional) |
shipping_address | SetOptional<EPOrder['shipping_address'], 'type' | 'name'> |