Class SubscriptionCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.subscriptions.SubscriptionCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>>,IPartnerComponent<String>,IPartnerComponentString,ISubscriptionCollection
public class SubscriptionCollectionOperations extends BasePartnerComponentString implements ISubscriptionCollection
The customer subscriptions implementation.
-
Constructor Summary
Constructors Constructor Description SubscriptionCollectionOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the SubscriptionCollectionOperations class. -
Method Summary
Modifier and Type Method Description ISubscriptionbyId(String subscriptionId)Retrieves a specific customer subscription behavior.IEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>>byOrder(String orderId)Groups customer subscriptions by an order.IEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>>byPartner(String partnerId)Groups customer subscriptions by a partner.ResourceCollection<Subscription>get()Retrieves all subscriptions.ISubscriptionMonthlyUsageRecordCollectiongetUsageRecords()Obtains the subscription usage records behavior for the customer.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
-
SubscriptionCollectionOperations
Initializes a new instance of the SubscriptionCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer Id to whom the subscriptions belong.
-
-
Method Details
-
getUsageRecords
Obtains the subscription usage records behavior for the customer.- Specified by:
getUsageRecordsin interfaceISubscriptionCollection- Returns:
- The customer subscription usage records.
-
byOrder
public IEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>> byOrder(String orderId)Groups customer subscriptions by an order.- Specified by:
byOrderin interfaceISubscriptionCollection- Parameters:
orderId- The order id.- Returns:
- The order subscriptions operations.
-
byPartner
public IEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>> byPartner(String partnerId)Groups customer subscriptions by a partner.- Specified by:
byPartnerin interfaceISubscriptionCollection- Parameters:
partnerId- The partner id.- Returns:
- The partner subscriptions operations.
-
byId
Retrieves a specific customer subscription behavior.- Specified by:
byIdin interfaceISubscriptionCollection- Parameters:
subscriptionId- The subscription identifier- Returns:
- The customer subscription.
-
get
Retrieves all subscriptions.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Subscription,ResourceCollection<Subscription>>- Specified by:
getin interfaceISubscriptionCollection- Returns:
- The subscriptions.
-