CustomerAvailabilityCollectionOperations Class

Implements

public class CustomerAvailabilityCollectionOperations extends BasePartnerComponent<TripletTuple<String,String,String>> implements IAvailabilityCollection

Holds operations that can be performed on products that apply to a given customer.

Constructor Summary

Constructor Description
CustomerAvailabilityCollectionOperations(IPartner rootPartnerOperations, String customerId, String productId, String skuId)

Initializes a new instance of the CustomerAvailabilityCollectionOperations class.

Method Summary

Modifier and Type Method and Description
IAvailability byId(String availabilityId)

Retrieves the operations tied with a specific availability.

IAvailabilityCollectionByTargetSegment byTargetSegment(String targetSegment)

Retrieves the operations that can be applied on availabilities filtered by a specific target segment.

ResourceCollection<Availability> get()

Retrieves all the availabilities for the provided SKU.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

CustomerAvailabilityCollectionOperations

public CustomerAvailabilityCollectionOperations(IPartner rootPartnerOperations, String customerId, String productId, String skuId)

Initializes a new instance of the CustomerAvailabilityCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - Identifier for the customer.
productId - Identifier for the product.
skuId - Identifier for the SKU.

Method Details

byId

public IAvailability byId(String availabilityId)

Retrieves the operations tied with a specific availability.

Parameters:

availabilityId - Identifier for the availability.

Returns:

The availability operations.

byTargetSegment

public IAvailabilityCollectionByTargetSegment byTargetSegment(String targetSegment)

Retrieves the operations that can be applied on availabilities filtered by a specific target segment.

Parameters:

targetSegment - The availability segment filter.

Returns:

The availability collection operations by target segment.

get

public ResourceCollection get()

Retrieves all the availabilities for the provided SKU.

Returns:

The availabilities for the provided SKU.

Applies to