SubscriptionHelperCalculateNextRenewalDate Method |
Calculates the next renewal date.
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static DateTime CalculateNextRenewalDate(
DateTime startDate,
int renewalPeriod,
string renewalPeriodUnit
)
Public Shared Function CalculateNextRenewalDate (
startDate As DateTime,
renewalPeriod As Integer,
renewalPeriodUnit As String
) As DateTime
public:
static DateTime CalculateNextRenewalDate(
DateTime startDate,
int renewalPeriod,
String^ renewalPeriodUnit
)
static member CalculateNextRenewalDate :
startDate : DateTime *
renewalPeriod : int *
renewalPeriodUnit : string -> DateTime
Parameters
- startDate
- Type: SystemDateTime
The start date. - renewalPeriod
- Type: SystemInt32
The renewal period. - renewalPeriodUnit
- Type: SystemString
The renewal period unit.
Return Value
Type:
DateTimeThe next renewal date.
See Also