Class CustomerSkuCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.customers.products.CustomerSkuCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Sku,ResourceCollection<Sku>>,IEntitySelector<String,ISku>,IPartnerComponent<Tuple<String,String>>,ISkuCollection
public class CustomerSkuCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ISkuCollection
Implementation of customer sku collection operations.
-
Constructor Summary
Constructors Constructor Description CustomerSkuCollectionOperations(IPartner rootPartnerOperations, String customerId, String productId)Initializes a new instance of the CustomerSkuCollectionOperations 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
-
CustomerSkuCollectionOperations
public CustomerSkuCollectionOperations(IPartner rootPartnerOperations, String customerId, String productId)Initializes a new instance of the CustomerSkuCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- Identifier for the customer.productId- Identifier for 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.
-