Class SkuCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.products.SkuCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Sku,ResourceCollection<Sku>>,IEntitySelector<String,ISku>,IPartnerComponent<Tuple<String,String>>,ISkuCollection
public class SkuCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ISkuCollection
SKU Collection operations implementation.
-
Constructor Summary
Constructors Constructor Description SkuCollectionOperations(IPartner rootPartnerOperations, String productId, String country)Initializes a new instance of the SkuCollectionOperations class. -
Method Summary
Modifier and Type Method Description ISkubyId(String skuId)Retrieves the operations tied with a specific SKU.ISkuCollectionByTargetSegmentbyTargetSegment(String targetSegment)Retrieves the operations that can be applied on SKUs that belong to a segment.ResourceCollection<Sku>get()Retrieves all the SKUs for the provided product.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
-
SkuCollectionOperations
Initializes a new instance of the SkuCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.productId- Identifier for the product.country- The country on which to base the product.
-
-
Method Details
-
byId
Retrieves the operations tied with a specific SKU.- Specified by:
byIdin interfaceIEntitySelector<String,ISku>- Specified by:
byIdin interfaceISkuCollection- Parameters:
skuId- Identifier for the SKU.- Returns:
- The available SKU operations.
-
byTargetSegment
Retrieves the operations that can be applied on SKUs that belong to a segment.- Specified by:
byTargetSegmentin interfaceISkuCollection- Parameters:
targetSegment- The SKU segment filter.- Returns:
- The SKU collection operations by target segment.
-
get
Retrieves all the SKUs for the provided product.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Sku,ResourceCollection<Sku>>- Specified by:
getin interfaceISkuCollection- Returns:
- The SKUs for the provided product.
-