File

src/app/core/models/order.ts

Index

Properties

Properties

adjustment_total
adjustment_total: string
Type : string
completed_at
completed_at: string
Type : string
created_at
created_at: string
Type : string
currency
currency: string
Type : string
display_total
display_total: string
Type : string
email
email: string
Type : string
id
id: number
Type : number
item_count
item_count: number
Type : number
item_total
item_total: string
Type : string
line_items
line_items: [LineItem]
Type : [LineItem]
number
number: string
Type : string
order_total_amount
order_total_amount: Price
Type : Price
payment_state
payment_state: string
Type : string
payment_total
payment_total: string
Type : string
payments
payments: [Payment]
Type : [Payment]
ship_total
ship_total: string
Type : string
shipment_state
shipment_state: string
Type : string
shipping_address
shipping_address: Address
Type : Address
special_instructions
special_instructions: string
Type : string
state
state: string
Type : string
tax_total
tax_total: string
Type : string
token
token: string
Type : string
total_quantity
total_quantity: string
Type : string
updated_at
updated_at: string
Type : string
user_id
user_id: string
Type : string
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;
}

results matching ""

    No results matching ""