File

src/app/core/models/order.ts

Properties

additional_tax_total
additional_tax_total: string
adjustment_total
adjustment_total: string
bill_address
bill_address: [Address]
canceler_id
canceler_id: string
channel
channel: string
completed_at
completed_at: string
considered_risky
considered_risky: boolean
created_at
created_at: string
currency
currency: string
display_additional_tax_total
display_additional_tax_total: string
display_included_tax_total
display_included_tax_total: string
email
email: string
id
id: number
included_tax_total
included_tax_total: string
item_total
item_total: string
line_items
line_items: [LineItem]
number
number: string
payment_state
payment_state: string
payment_total
payment_total: string
payments
payments: [Payment]
ship_address
ship_address: [Address]
ship_total
ship_total: string
shipment_state
shipment_state: string
special_instructions
special_instructions: string
state
state: string
tax_total
tax_total: string
token
token: string
total
total: string
total_quantity
total_quantity: string
updated_at
updated_at: string
user_id
user_id: string
import { LineItem } from './line_item';
import { Address } from './address';
import { Payment } from './payment';

export class Order {
  id: number;
  number: string;
  item_total: string;
  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;
  channel: string;
  included_tax_total: string;
  additional_tax_total: string;
  display_included_tax_total: string;
  display_additional_tax_total: string;
  tax_total: string;
  currency: string;
  considered_risky: boolean;
  canceler_id: string;
  total_quantity: string;
  token: string;
  bill_address: [Address];
  ship_address: [Address];
  line_items: [LineItem];
  payments: [Payment];
}

// 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 ""