OSID Logo
OSID Specifications
inventory shipment package
Version 3.1.0
Interfaceosid.inventory.shipment.Shipment
Implementsosid.OsidObject
osid.Aggregateable
Used Byosid.inventory.shipment.ShipmentAdminSession
osid.inventory.shipment.ShipmentList
osid.inventory.shipment.ShipmentLookupSession
Description

A Shipment represents data associated to a resource representing a shipment. Contact information for this object can be managed in the Contact OSID.

MethodgetSourceId
Description

Gets the resource Id representing the shipment.

Returnosid.id.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetSource
Description

Gets the resource.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasOrder
Description

Tests if this shipment has a related order.

Returnboolean true if this shipment relates to an odrer, false otherwise
Compliancemandatory This method must be implemented.
MethodgetOrderId
Description

Gets the order Id associated with this shipment.

Returnosid.id.Id the order Id
ErrorsILLEGAL_STATE hasOrder() is false
Compliancemandatory This method must be implemented.
MethodgetOrder
Description

Gets the order associated with this shipment.

Returnosid.ordering.Order the order
ErrorsILLEGAL_STATE hasOrder() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetDate
Description

Gets the date this shipment was received.

Returnosid.calendaring.DateTime the received date
Compliancemandatory This method must be implemented.
MethodgetEntryIds
Description

Gets the entry Ids of this shipment.

Returnosid.id.IdList the entry Ids
Compliancemandatory This method must be implemented.
MethodgetEntries
Description

Gets the entries of this shipment.

Returnosid.inventory.shipment.EntryList the entries
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetShipmentRecord
Description

Gets the shipment record corresponding to the given Shipment record Type.This method is used to retrieve an object implementing the requested record. The shipmentRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(shipmentRecordType) is true.

Parametersosid.type.TypeshipmentRecordType the type of shipment record to retrieve
Returnosid.inventory.shipment.records.ShipmentRecord the shipment record
ErrorsNULL_ARGUMENT shipmentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(shipmentRecordType) is false
Compliancemandatory This method must be implemented.