src/app/core/models/order.ts
Properties |
| adjustment_total |
adjustment_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:18
|
| completed_at |
completed_at:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:22
|
| created_at |
created_at:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:20
|
| currency |
currency:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:29
|
| display_total |
display_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:34
|
email:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:26
|
| id |
id:
|
Type : number
|
|
Defined in src/app/core/models/order.ts:13
|
| item_count |
item_count:
|
Type : number
|
|
Defined in src/app/core/models/order.ts:35
|
| item_total |
item_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:15
|
| line_items |
line_items:
|
Type : [LineItem]
|
|
Defined in src/app/core/models/order.ts:32
|
| number |
number:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:14
|
| order_total_amount |
order_total_amount:
|
Type : Price
|
|
Defined in src/app/core/models/order.ts:36
|
| payment_state |
payment_state:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:25
|
| payment_total |
payment_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:23
|
| payments |
payments:
|
Type : [Payment]
|
|
Defined in src/app/core/models/order.ts:33
|
| ship_total |
ship_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:16
|
| shipment_state |
shipment_state:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:24
|
| shipping_address |
shipping_address:
|
Type : Address
|
|
Defined in src/app/core/models/order.ts:37
|
| special_instructions |
special_instructions:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:27
|
| state |
state:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:17
|
| tax_total |
tax_total:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:28
|
| token |
token:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:31
|
| total_quantity |
total_quantity:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:30
|
| updated_at |
updated_at:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:21
|
| user_id |
user_id:
|
Type : string
|
|
Defined in src/app/core/models/order.ts:19
|
import { LineItem } from './line_item';
import { Address } from './address';
import { Payment } from './payment';
import { Price } from './price';
export class Order {
id: number;
number: string;
item_total: string;
ship_total: string;
state: string;
adjustment_total: string;
user_id: string;
created_at: string;
updated_at: string;
completed_at: string;
payment_total: string;
shipment_state: string;
payment_state: string;
email: string;
special_instructions: string;
tax_total: string;
currency: string;
total_quantity: string;
token: string;
line_items: [LineItem];
payments: [Payment];
display_total: string;
item_count: number;
order_total_amount: Price;
shipping_address: Address;
}
// NOTE: This just mimics the serializer exposed in the API
// Not sure if it is required, review it in APRIL
export class LightOrder {
number: string;
payment_state: string;
completed_at: string;
state: string;
total: string;
shipment_state: string;
}