SubscriptionCollectionOperations Class

Implements

public class SubscriptionCollectionOperations extends BasePartnerComponentString implements ISubscriptionCollection

The customer subscriptions implementation.

Constructor Summary

Constructor Description
SubscriptionCollectionOperations(IPartner rootPartnerOperations, String customerId)

Initializes a new instance of the SubscriptionCollectionOperations class.

Method Summary

Modifier and Type Method and Description
ISubscription byId(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.

ISubscriptionMonthlyUsageRecordCollection getUsageRecords()

Obtains the subscription usage records behavior for the customer.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

SubscriptionCollectionOperations

public SubscriptionCollectionOperations(IPartner rootPartnerOperations, String customerId)

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

byId

public ISubscription byId(String subscriptionId)

Retrieves a specific customer subscription behavior.

Parameters:

subscriptionId - The subscription identifier

Returns:

The customer subscription.

byOrder

public IEntireEntityCollectionRetrievalOperations> byOrder(String orderId)

Groups customer subscriptions by an order.

Parameters:

orderId - The order id.

Returns:

The order subscriptions operations.

byPartner

public IEntireEntityCollectionRetrievalOperations> byPartner(String partnerId)

Groups customer subscriptions by a partner.

Parameters:

partnerId - The partner id.

Returns:

The partner subscriptions operations.

get

public ResourceCollection get()

Retrieves all subscriptions.

Returns:

The subscriptions.

getUsageRecords

public ISubscriptionMonthlyUsageRecordCollection getUsageRecords()

Obtains the subscription usage records behavior for the customer.

Returns:

The customer subscription usage records.

Applies to