virtual commerce_inventory.CommerceInventoryService
Methods
global virtual UpsertReservationResponse upsertReservation(UpsertReservationRequest upsertReservationRequest, InventoryReservation currentReservation, String reservationChangeType)
The Upsert Inventory Reservation is a wrapper for the inventory service which can create or update a reservation.
Parameters
| Param | Description |
|---|
upsertReservationRequest | The reservation request. |
currentReservation | The current state of the inventory reservation. |
reservationChangeType | The type of change that will be made on the reservation. Possibles values are ALL, HEADER, ITEMS (otherwise an error will be sent). |
Returns
| Type | Description |
|---|
UpsertReservationResponse | UpsertReservationResponse object representing response. |
GovernorLimits (limits = GovernorLimits.LimitType.READONLY)
global virtual DeleteReservationResponse deleteReservation(String reservationId, InventoryReservation currentReservation)
The deleteReservation is a wrapper for the inventory service to delete the inventory reservation.
Parameters
| Param | Description |
|---|
reservationIdentifier | The identifier for the reservation record. |
currentReservation | The current state of the inventory reservation. |
Returns
| Type | Description |
|---|
DeleteReservationResponse | DeleteReservationResponse object representing response of the deletion. |
GovernorLimits (limits = GovernorLimits.LimitType.READONLY)
global virtual InventoryReservation getReservation(String reservationId)
The get reservation is a wrapper to get the reservation information from the inventory provider.
Parameters
| Param | Description |
|---|
reservationIdentifier | The identifier for the reservation. |
Returns
| Type | Description |
|---|
InventoryReservation | InventoryReservation object representing the reservation. |
GovernorLimits (limits = GovernorLimits.LimitType.READONLY)
global virtual InventoryCheckAvailability checkInventory(InventoryCheckAvailability request)
The check inventory is a wrapper to determine if a set of products and quantity are available.
Parameters
| Param | Description |
|---|
request | The inventory check request. |
GovernorLimits (limits = GovernorLimits.LimitType.READONLY)
global virtual InventoryLevelsResponse getInventoryLevel(InventoryLevelsRequest request)
The check inventory is a wrapper to determine if a set of products and quantity are available.
Parameters
| Param | Description |
|---|
request | The inventory check request. |
GovernorLimits (limits = GovernorLimits.LimitType.READONLY)