OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.Order
Implementsosid.OsidObject
osid.Aggregateable
Used Byosid.inventory.shipment.Shipment
osid.ordering.Item
osid.ordering.OrderAdminSession
osid.ordering.OrderList
osid.ordering.OrderLookupSession
Description

An Order.

MethodgetCustomerId
Description

Gets the Id of the customer.

Returnosid.id.Id the customer Id
Compliancemandatory This method must be implemented.
MethodgetCustomer
Description

Gets the customer.

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

Gets the Ids of the items.

Returnosid.id.IdList the item Ids
Compliancemandatory This method must be implemented.
MethodgetItems
Description

Gets the items.

Returnosid.ordering.ItemList the items
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetTotalCost
Description

Gets the total cost for this order.

Returnosid.financials.Currency the total cost
Compliancemandatory This method must be implemented.
MethodisAtomic
Description

Tests if all the items are processed atomically.

Returnboolean true if the order is atomic, false otherwise
Compliancemandatory This method must be implemented.
MethodisSubmitted
Description

Tests if all this order has been submitted.

Returnboolean true if the order has been submitted, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSubmitDate
Description

Gets the date submitted.

Returnosid.calendaring.DateTime the date submitted
ErrorsILLEGAL_STATE isSubmitted() is false
Compliancemandatory This method must be implemented.
MethodgetSubmitterId
Description

Gets the resource Id who submitted the order.

Returnosid.id.Id the submitting resource Id
ErrorsILLEGAL_STATE isSubmitted() is false
Compliancemandatory This method must be implemented.
MethodgetSubmitter
Description

Gets the agent who submitted the order.

Returnosid.resource.Resource the submitting resource
ErrorsILLEGAL_STATE isSubmitted() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSubmittingAgentId
Description

Gets the agent Id who submitted the order.

Returnosid.id.Id the submitting agent Id
ErrorsILLEGAL_STATE isSubmitted() is false
Compliancemandatory This method must be implemented.
MethodgetSubmittingAgent
Description

Gets the agent who submitted the order.

Returnosid.authentication.Agent the submitting agent
ErrorsILLEGAL_STATE isSubmitted() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisClosed
Description

Tests if all this order is closed or canceled.

Returnboolean true if the order is closed, false otherwise
Compliancemandatory This method must be implemented.
MethodgetClosedDate
Description

Gets the date this order has been closed.

Returnosid.calendaring.DateTime the date closed
ErrorsILLEGAL_STATE isClosed() is false
Compliancemandatory This method must be implemented.
MethodgetCloserId
Description

Gets the resource Id who closed the order.

Returnosid.id.Id the closing resource Id
ErrorsILLEGAL_STATE isClosed() is false
Compliancemandatory This method must be implemented.
MethodgetCloser
Description

Gets the resource who closed the order.

Returnosid.resource.Resource the closing resource
ErrorsILLEGAL_STATE isClosed() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetClosingAgentId
Description

Gets the agent Id who closed the order.

Returnosid.id.Id the closing agent Id
ErrorsILLEGAL_STATE isClosed() is false
Compliancemandatory This method must be implemented.
MethodgetClosingAgent
Description

Gets the agent who closed the order.

Returnosid.authentication.Agent the closing agent
ErrorsILLEGAL_STATE isClosed() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetOrderRecord
Description

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

Parametersosid.type.TypeorderRecordType the type of order record to retrieve
Returnosid.ordering.records.OrderRecord the order record
ErrorsNULL_ARGUMENT orderRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(orderRecordType) is false
Compliancemandatory This method must be implemented.