All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.store.partnercenter.offers.IOfferCollection Maven / Gradle / Ivy

There is a newer version: 1.15.3
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.

package com.microsoft.store.partnercenter.offers;

import com.microsoft.store.partnercenter.IPartnerComponentString;
import com.microsoft.store.partnercenter.models.ResourceCollection;
import com.microsoft.store.partnercenter.models.offers.Offer;

/**
 * Encapsulates the basic offers behavior.
 */
public interface IOfferCollection
    extends IPartnerComponentString
{

    /**
     * Retrieves the operations tied with a specific offer.
     * 
     * @param offerId The offer id.
     * @return The offer operations.
     */
    IOffer byId(String offerId);

    /**
     * Retrieves all the offers for the provided country.
     * 
     * @return The offers for the provided country.
     */
    ResourceCollection get();

    /**
     * Retrieves all the offers for the provided country.
     * 
     * @param offset The starting index
     * @param size The maximum number of offers to return.
     * @return The requested segment of the offers for the given country.
     */
    ResourceCollection get(int offset, int size);

    /**
     * Retrieves the operations that can be applied on offers that belong to an offer category.
     * 
     * @param categoryId The offer category identifier.
     * 
     * @return The category offers operations.
     */
    ICategoryOffersCollection byCategory(String categoryId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy