Home Reference Source

Typedef

Static Public Summary
public

An address

public

A customer

public

An item which is part of an order

public

An order

public

A product

Static Public

public address: Object source

An address

Properties:

NameTypeAttributeDescription
streetNumber number

the alphanumeric indicator for a property

streetName string

the name of the street on which the customer's property is

city string

the city in which the customer's property is

postcode number

the government postal code for the area in which the customer's property resides

public customer: Object source

A customer

Properties:

NameTypeAttributeDescription
firstName string

the first given name of the customer

lastName string

the surname of the customer

address address

the customer's address for billing and delivery purposes

orders order[]

an array of orders the customer has made

customerNotes string

a string containing any notes about the customer

public item: Object source

An item which is part of an order

Properties:

NameTypeAttributeDescription
productId number

a unique numeric id for a product

quantity number

a number representing the quantity of the product for the order

public order: Object source

An order

Properties:

NameTypeAttributeDescription
id number

a unique id number for the order

status string

an indicator of the status of the delivery such as delivered, processing, cancelled

items item[]

an array of items

notes string

an arbitrary note from the customer regarding delivery of the order

public product: Object source

A product

Properties:

NameTypeAttributeDescription
id number

an unique id number for the product

title string

the name of a product

price number

the price of a product in AUD to two decimal places