Class CisOrder
- java.lang.Object
-
- com.hybris.cis.client.shared.models.CisOrder
-
- All Implemented Interfaces:
Identifiable
public class CisOrder extends java.lang.Object implements Identifiable
An order containing addresses and line items and may represent an order, a shipment or a return depending on the context.
-
-
Constructor Summary
Constructors Constructor Description CisOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CisAddressgetAddressByType(CisAddressType type)Returns the first address of the given type.java.util.List<CisAddress>getAddresses()java.lang.StringgetCurrency()java.util.DategetDate()java.lang.StringgetId()java.util.List<CisLineItem>getLineItems()AnnotationHashMapgetVendorParameters()voidsetAddresses(java.util.List<CisAddress> shipments)voidsetCurrency(java.lang.String currency)voidsetDate(java.util.Date date)voidsetId(java.lang.String id)voidsetLineItems(java.util.List<CisLineItem> lineItems)voidsetVendorParameters(AnnotationHashMap vendorParameters)java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceIdentifiable
-
setId
public void setId(java.lang.String id)
- Specified by:
setIdin interfaceIdentifiable
-
getDate
public java.util.Date getDate()
-
setDate
public void setDate(java.util.Date date)
-
getAddresses
public java.util.List<CisAddress> getAddresses()
-
setAddresses
public void setAddresses(java.util.List<CisAddress> shipments)
-
getLineItems
public java.util.List<CisLineItem> getLineItems()
-
setLineItems
public void setLineItems(java.util.List<CisLineItem> lineItems)
-
getCurrency
public java.lang.String getCurrency()
-
setCurrency
public void setCurrency(java.lang.String currency)
-
getAddressByType
public CisAddress getAddressByType(CisAddressType type)
Returns the first address of the given type.- Parameters:
type- The type you're interested in- Returns:
- An address or null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getVendorParameters
public AnnotationHashMap getVendorParameters()
-
setVendorParameters
public void setVendorParameters(AnnotationHashMap vendorParameters)
-
-