Interface IOfferCollection
- All Superinterfaces:
IPartnerComponent<String>,IPartnerComponentString
- All Known Implementing Classes:
OfferCollectionOperations
public interface IOfferCollection extends IPartnerComponentString
Encapsulates the basic offers behavior.
-
Method Summary
Modifier and Type Method Description ICategoryOffersCollectionbyCategory(String categoryId)Retrieves the operations that can be applied on offers that belong to an offer category.IOfferbyId(String offerId)Retrieves the operations tied with a specific offer.ResourceCollection<Offer>get()Retrieves all the offers for the provided country.ResourceCollection<Offer>get(int offset, int size)Retrieves all the offers for the provided country.Methods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Method Details
-
byId
Retrieves the operations tied with a specific offer.- Parameters:
offerId- The offer id.- Returns:
- The offer operations.
-
get
ResourceCollection<Offer> get()Retrieves all the offers for the provided country.- Returns:
- The offers for the provided country.
-
get
Retrieves all the offers for the provided country.- Parameters:
offset- The starting indexsize- The maximum number of offers to return.- Returns:
- The requested segment of the offers for the given country.
-
byCategory
Retrieves the operations that can be applied on offers that belong to an offer category.- Parameters:
categoryId- The offer category identifier.- Returns:
- The category offers operations.
-