Package com.imc.iss.groovy.order
Class OrderItem
java.lang.Object
com.imc.iss.groovy.order.OrderItem
OrderItem class
- Since:
- 2102
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the discount of this line itemgetOrderItemDataAttributeValue(String attributeURI) To get the value of a orderItem data attribute by attribute URI.getOrderItemRelationAttributeErpId(String attributeURI) To get the ERPID of a orderItem relation attribute by attribute URI.getOrderItemRelationAttributeObjectId(String attributeURI) To get the object Id of a orderItem relation attribute by attribute URI.getOrderItemRelationAttributeObjectName(String attributeURI) To get the object name of a orderItem relation attribute by attribute URI.getOrderItemRelationAttributeURI(String attributeURI) To get the URI of a orderItem relation attribute by attribute URI.To get the URI of a orderItemgetPriceItemByTypeName(String name) To get the price Item data by name.To get the price Item data by price item type URI.getPriceItemByUri(String uri) To get the price Item data by price item URI.To get all the price Item data by the name of the price item type.To get all the price Item data by the URI of the price item type .getPriceItemsJustified(String justificationURI) To get all justified price Item data.Retrieves the ERP ID of this line itemRetrieves the product name of this line itemRetrieves the product type ERPID of this line itemRetrieves the product type URI of this line itemRetrieves the product URI of this line itemRetrieves the quantity of this line itemRetrieves the URI of linked salesitem of this order itemsetDataAttribute(String attributeURI, Object value) To set a value for the order item data attribute.setRelationAttribute(String attributeURI, String valueURI) To set a value for the order item relation attribute.
-
Constructor Details
-
OrderItem
public OrderItem()
-
-
Method Details
-
getDiscount
Retrieves the discount of this line item- Returns:
- The discount of this line item
- Throws:
IMCException- the platform exception
-
getOrderItemDataAttributeValue
To get the value of a orderItem data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the orderItem data attribute.- Returns:
- the value of the orderItem data attribute as Object.
- Throws:
IMCException- the platform exception
-
getOrderItemRelationAttributeErpId
To get the ERPID of a orderItem relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the orderItem relation attribute.- Returns:
- the ERPId of the orderItem relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderItemRelationAttributeObjectId
To get the object Id of a orderItem relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the orderItem relation attribute.- Returns:
- the objectId of the orderItem relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderItemRelationAttributeObjectName
To get the object name of a orderItem relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the orderItem relation attribute.- Returns:
- the object name of the orderItem relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderItemRelationAttributeURI
To get the URI of a orderItem relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the orderItem relation attribute.- Returns:
- the object URI of the orderItem relation attribute as String.
- Throws:
IMCException- the platform exception
-
getOrderItemURI
To get the URI of a orderItem- Returns:
- the URI of the orderItem as String.
-
getPriceItemByTypeName
To get the price Item data by name.PriceItemData- Parameters:
name- as String the name of the price item.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemByTypeUri
To get the price Item data by price item type URI.PriceItemData- Parameters:
uri- as String the uri of the price item type.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemByUri
To get the price Item data by price item URI.PriceItemData- Parameters:
uri- as String the uri of the price item.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemsByTypeName
To get all the price Item data by the name of the price item type.PriceItemData- Parameters:
name- as String the name of the price item type.- Returns:
PriceItemData.- Throws:
IMCException- the platform exception
-
getPriceItemsByTypeUri
To get all the price Item data by the URI of the price item type .PriceItemData- Parameters:
uri- as String the URI of the price item type.- Returns:
PriceItemDatain List- Throws:
IMCException- the platform exception
-
getPriceItemsJustified
To get all justified price Item data.PriceItemData- Parameters:
justificationURI- as String- Returns:
PriceItemDatain List- Throws:
IMCException- the platform exception
-
getProductErpId
Retrieves the ERP ID of this line item- Returns:
- The ERP ID of this line item
-
getProductObjectName
Retrieves the product name of this line item- Returns:
- The full path of the product name of this line item
-
getProductTypeErpId
Retrieves the product type ERPID of this line item- Returns:
- The product type URI of this line item
- Throws:
IMCException- the platform exception
-
getProductTypeURI
Retrieves the product type URI of this line item- Returns:
- The product type URI of this line item
-
getProductURI
Retrieves the product URI of this line item- Returns:
- The full path of the product URI of this line item
-
getQuantity
Retrieves the quantity of this line item- Returns:
- The quantity of this line item
- Throws:
IMCException- the platform exception
-
getSalesItemURI
Retrieves the URI of linked salesitem of this order item- Returns:
- the URI of linked salesitem of this order item as String. Returns
nullfor commerce order - Throws:
IMCException- the platform exception
-
setDataAttribute
To set a value for the order item data attribute.- Parameters:
attributeURI- as String. The URI of the order item data attribute.value- as Object. The value for the order item data attribute.- Returns:
- The
OrderItem - Throws:
IMCException- the platform exception
-
setRelationAttribute
To set a value for the order item relation attribute.- Parameters:
attributeURI- as String. The URI of the order item relation attribute.valueURI- as Object. The value for the order item relation attribute.- Returns:
- The
OrderItem - Throws:
IMCException- the platform exception
-