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
)
Public Function GetUpgradeDowngradeOptions (
subscription As Subscription,
billingApi As IAtomiaBillingApi,
upgradeDowngradeOptions As UpgradeDowngradeOptions
) As IList(Of UpgradeGroupMember)
public:
IList<UpgradeGroupMember^>^ GetUpgradeDowngradeOptions(
Subscription^ subscription,
IAtomiaBillingApi^ billingApi,
UpgradeDowngradeOptions^ upgradeDowngradeOptions
)
member GetUpgradeDowngradeOptions :
subscription : Subscription *
billingApi : IAtomiaBillingApi *
upgradeDowngradeOptions : UpgradeDowngradeOptions -> IList<UpgradeGroupMember>
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:
IListUpgradeGroupMemberList 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