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 

ParamDescription
upsertReservationRequestThe reservation request.
currentReservationThe current state of the inventory reservation.
reservationChangeTypeThe type of change that will be made on the reservation. Possibles values are ALL, HEADER, ITEMS (otherwise an error will be sent).

Returns 

TypeDescription
UpsertReservationResponseUpsertReservationResponse 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 

ParamDescription
reservationIdentifierThe identifier for the reservation record.
currentReservationThe current state of the inventory reservation.

Returns 

TypeDescription
DeleteReservationResponseDeleteReservationResponse 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 

ParamDescription
reservationIdentifierThe identifier for the reservation.

Returns 

TypeDescription
InventoryReservationInventoryReservation 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 

ParamDescription
requestThe 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 

ParamDescription
requestThe inventory check request.

GovernorLimits (limits = GovernorLimits.LimitType.READONLY)


Newer Version Available

This content describes an older version of this product. View Latest

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!