Class AvailabilityCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<TripletTuple<String,String,String>>
com.microsoft.store.partnercenter.products.AvailabilityCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Availability,ResourceCollection<Availability>>,IEntitySelector<String,IAvailability>,IPartnerComponent<TripletTuple<String,String,String>>,IAvailabilityCollection
public class AvailabilityCollectionOperations extends BasePartnerComponent<TripletTuple<String,String,String>> implements IAvailabilityCollection
Availabilities implementation class
-
Constructor Summary
Constructors Constructor Description AvailabilityCollectionOperations(IPartner rootPartnerOperations, String productId, String skuId, String country)Initializes a new instance of the AvailabilityCollectionOperations class. -
Method Summary
Modifier and Type Method Description IAvailabilitybyId(String availabilityId)Retrieves the operations tied with a specific availability.IAvailabilityCollectionByTargetSegmentbyTargetSegment(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.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
AvailabilityCollectionOperations
public AvailabilityCollectionOperations(IPartner rootPartnerOperations, String productId, String skuId, String country)Initializes a new instance of the AvailabilityCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.productId- Identifier for the product.skuId- Identifier for the SKU.country- The country on which to base the product.
-
-
Method Details
-
byId
Retrieves the operations tied with a specific availability.- Specified by:
byIdin interfaceIAvailabilityCollection- Specified by:
byIdin interfaceIEntitySelector<String,IAvailability>- Parameters:
availabilityId- Identifier for the availability.- Returns:
- The availability operations.
-
byTargetSegment
Retrieves the operations that can be applied on availabilities filtered by a specific target segment.- Specified by:
byTargetSegmentin interfaceIAvailabilityCollection- Parameters:
targetSegment- The availability segment filter.- Returns:
- The availability collection operations by target segment.
-
get
Retrieves all the availabilities for the provided SKU.- Specified by:
getin interfaceIAvailabilityCollection- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Availability,ResourceCollection<Availability>>- Returns:
- The availabilities for the provided SKU.
-