Module: Ontrac::WebServices::Definitions

Defined in:
lib/ontrac/web_services/definitions.rb

Defined Under Namespace

Classes: DefinitionBase

Constant Summary collapse

Shipper =
DefinitionBase.new(
  :Name,
  :Addr1,
  :City,
  :State,
  :Zip,
  :Contact,
  :Phone
)
Consignee =
DefinitionBase.new(
  :Name,
  :Addr1,
  :Addr2,
  :Addr3,
  :City,
  :State,
  :Zip,
  :Contact,
  :Phone
)
Dim =
DefinitionBase.new(
  :Length,
  :Width,
  :Height
)
ShipmentRequest =
DefinitionBase.new(
  :UID,
  :shipper,
  :consignee,
  :Service,
  :SignatureRequired,
  :Residential,
  :SaturdayDel,
  :Declared,
  :COD,
  :CODType,
  :Weight,
  :Letter,
  :BillTo,
  :Instructions,
  :Reference,
  :Reference2,
  :Reference3,
  :Tracking,
  :DIM,
  :LabelType,
  :ShipEmail,
  :DelEmail,
  :ShipDate,
  :CargoType
)
SERVICE_TYPE_GROUND =
"C"
SERVICE_TYPE_SUNRISE =
"S"
SERVICE_TYPE_SUNRISE_GOLD =
"G"
SERVICE_TYPE_PALLETIZED_FREIGHT =
"H"
LABEL_TYPE_NONE =
0
LABEL_TYPE_PDF =
1
LABEL_TYPE_EPL_4_X_5 =
6
LABEL_TYPE_ZPL_4_X_5 =
7
COD_TYPE_NONE =
"NONE"
COD_TYPE_UNSECURED =
"UNSECURED "
COD_TYPE_SECURED =
"SECURED"