com.microsoft.store.partnercenter.customers.ICustomerCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partnercenter Show documentation
Show all versions of partnercenter Show documentation
SDK for accessing Microsoft Partner Center API.
// 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.customers;
import com.microsoft.store.partnercenter.IPartnerComponentString;
import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations;
import com.microsoft.store.partnercenter.genericoperations.IEntityCreateOperations;
import com.microsoft.store.partnercenter.models.SeekBasedResourceCollection;
import com.microsoft.store.partnercenter.models.customers.Customer;
import com.microsoft.store.partnercenter.models.query.IQuery;
import com.microsoft.store.partnercenter.relationshiprequests.ICustomerRelationshipRequest;
import com.microsoft.store.partnercenter.usage.ICustomerUsageRecordCollection;
/**
* Represents the behavior of the partner customers.
*/
public interface ICustomerCollection
extends IPartnerComponentString, IEntityCreateOperations,
IEntireEntityCollectionRetrievalOperations>
{
/**
* Gets the customer usage record operations.
*
* @return The customer usage record operations.
*/
ICustomerUsageRecordCollection getUsageRecords();
/**
* Gets the customer relationship request operations.
*
* @return The customer relationship request operations.
*/
ICustomerRelationshipRequest getRelationshipRequests();
/**
* Gets a single customer operations.
*
* @param customerId The customer identifier.
* @return The customer operations.
*/
ICustomer byId(String customerId);
/**
* Retrieves all the partner's customers.
*
* @return The partner's customers.
*/
SeekBasedResourceCollection get();
/**
* Queries customers associated to the partner. - Count queries are not supported by this operation. - You can set
* the page size or filter or do both at the same time. - Sort is not supported. - You can navigate to other pages
* by specifying a seek query with the seek operation and the continuation token sent by the previous operation.
*
* @param customersQuery A query to apply onto customers. Check {@link com.microsoft.store.partnercenter.models.query.QueryFactory} to see how to build queries.
* @return The requested customers.
*/
SeekBasedResourceCollection query(IQuery customersQuery);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy