SubscriptionUpgradeCollectionOperations Class

Implements

public class SubscriptionUpgradeCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ISubscriptionUpgradeCollection

The customer subscription upgrade implementation.

Constructor Summary

Constructor Description
SubscriptionUpgradeCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)

Initializes a new instance of the SubscriptionUpgradeCollectionOperations class.

Method Summary

Modifier and Type Method and Description
UpgradeResult create(Upgrade subscriptionUpgrade)

Performs a subscription upgrade.

ResourceCollection<Upgrade> get()

Retrieves all subscription upgrades.

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

SubscriptionUpgradeCollectionOperations

public SubscriptionUpgradeCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)

Initializes a new instance of the SubscriptionUpgradeCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - The customer Id to whom the subscriptions belong.
subscriptionId - The subscription Id where the upgrade is occurring.

Method Details

create

public UpgradeResult create(Upgrade subscriptionUpgrade)

Performs a subscription upgrade.

Parameters:

subscriptionUpgrade - The subscription upgrade to perform.

Returns:

The subscription upgrade result.

get

public ResourceCollection get()

Retrieves all subscription upgrades.

Returns:

The subscription upgrades.

Applies to