Click or drag to resize

UpgradeDowngradeHelperGetUpgradeDowngradeOptions Method

Gets the upgrade/downgrade options for subscription.

Namespace:  Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:  Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax
public IList<UpgradeGroupMember> GetUpgradeDowngradeOptions(
	Subscription subscription,
	IAtomiaBillingApi billingApi,
	UpgradeDowngradeOptions upgradeDowngradeOptions
)

Parameters

subscription
Type: Atomia.Billing.Core.Sdk.BusinessObjectsSubscription
The subscription.
billingApi
Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
IAtomiaBillingApi instance to use.
upgradeDowngradeOptions
Type: Atomia.Billing.Core.Sdk.ConfigurationUpgradeDowngradeOptions
The upgrade downgrade options.

Return Value

Type: IListUpgradeGroupMember
List of upgrade/downgrade options.
Remarks
If current subscription is invalid (i.e. missing packageId, state different from 'OK', invalid NextRenewalDate compared to DateTime.Now) method will return only one UpgradeGroupMember representing current subscription.
See Also