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 possible values: Location or LocationGroup. Returns an error if any other value is provided.
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 possible values: OnHand, AvailableToFulfill, AvailableToOrder. Returns an error if any other value is provided.
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)