commerce_inventory.InventoryCheckItemAvailability
Constructors
global InventoryCheckItemAvailability(Double onHand, Double availableToFulfill, Double availableToOrder, Double quantityToCheck, String inventoryDimension, String productId, String locationSourceId, String locationSourceType)
Constructor for InventoryCheckItemAvailability.
Parameters
| Param | Description |
|---|
onHand | - on hand |
availableToFulfill | - available to fulfill |
availableToOrder | - available to order |
quantityToCheck | - quantity to check |
inventoryDimension | - inventory dimension |
productId | - product id |
locationSourceId | - location source id |
locationSourceType | - location source type |
Methods
global ID getProductId()
Gets product id.
Returns
| Type | Description |
|---|
ID | product id |
global Double getOnHand()
Gets on hand.
Returns
| Type | Description |
|---|
Double | the on hand |
global Double getAvailableToFulfill()
Gets available to fulfill.
Returns
| Type | Description |
|---|
Double | available to fulfill |
global Double getAvailableToOrder()
Gets available to order.
Returns
| Type | Description |
|---|
Double | available to order |
global ID getLocationSourceId()
Gets location source id.
Returns
| Type | Description |
|---|
ID | location source id. |
global String getLocationSourceType()
Gets inventory source type Possibles values LOCATION or LOCATION_GROUP otherwise an error will be return
Returns
| Type | Description |
|---|
String | location source id |
global Double getQuantityToCheck()
Gets quantity to check
Returns
| Type | Description |
|---|
Double | quantity to check. |
global String getInventoryDimension()
Gets inventory dimension Possibles values ON_HAND, AVAILABLE_TO_FULFILL, AVAILABLE_TO_ORDER otherwise an error will be return
Returns
| Type | Description |
|---|
String | inventory dimension |
global Boolean isAvailable()
Gets is available.
Returns
| Type | Description |
|---|
Boolean | is available. |
global void setAvailable(Boolean available)
Sets Is Available
Parameters
| Param | Description |
|---|
Is | Available |
global String getErrorMessage()
Gets error message
Returns
| Type | Description |
|---|
String | error message. |
global void setErrorMessage(String errorMessage)
Sets error message
Parameters
| Param | Description |
|---|
error | message |
public Integer hashCode()
public Boolean equals(Object other)