Interface IEntitlementCollection
- All Superinterfaces:
IEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>>,IPartnerComponent<String>,IPartnerComponentString
- All Known Implementing Classes:
EntitlementCollectionOperations
public interface IEntitlementCollection extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>>
Represents the operations that can be performed on entitlements associated to the customer based on the logged in partner.
-
Method Summary
Modifier and Type Method Description IEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>>byEntitlementType(String entitlementType)Retrieves the operations that can be applied on entitlements with a given entitlement type.ResourceCollection<Entitlement>get(Boolean showExpiry)Gets the entitlements for a customer.Methods inherited from interface com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations
getMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Method Details
-
byEntitlementType
IEntireEntityCollectionRetrievalOperations<Entitlement,ResourceCollection<Entitlement>> byEntitlementType(String entitlementType)Retrieves the operations that can be applied on entitlements with a given entitlement type.- Parameters:
entitlementType- The type of entitlement.- Returns:
- The entitlement collection operations by entitlement type.
-
get
Gets the entitlements for a customer.- Parameters:
showExpiry- A flag to indicate if the expiry date is required to be returned along with the entitlement (if applicable).- Returns:
- The collection of entitlements for the customer.
-