SubscriptionHelperDelayTermination Method |
Checks whether conditions are met for delayed termination.
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 bool DelayTermination(
Guid subscriptionId,
string terminationReason,
out int delayPeriod,
IGracePeriod gracePeriod = null,
INoticePeriod noticePeriod = null
)
Public Shared Function DelayTermination (
subscriptionId As Guid,
terminationReason As String,
<OutAttribute> ByRef delayPeriod As Integer,
Optional gracePeriod As IGracePeriod = Nothing,
Optional noticePeriod As INoticePeriod = Nothing
) As Boolean
public:
static bool DelayTermination(
Guid subscriptionId,
String^ terminationReason,
[OutAttribute] int% delayPeriod,
IGracePeriod^ gracePeriod = nullptr,
INoticePeriod^ noticePeriod = nullptr
)
static member DelayTermination :
subscriptionId : Guid *
terminationReason : string *
delayPeriod : int byref *
?gracePeriod : IGracePeriod *
?noticePeriod : INoticePeriod
(* Defaults:
let _gracePeriod = defaultArg gracePeriod null
let _noticePeriod = defaultArg noticePeriod null
*)
-> bool
Parameters
- subscriptionId
- Type: SystemGuid
The subscription identifier. - terminationReason
- Type: SystemString
The termination reason. - delayPeriod
- Type: SystemInt32
[Missing <param name="delayPeriod"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.SubscriptionHelper.DelayTermination(System.Guid,System.String,System.Int32@,Atomia.Billing.Core.Sdk.BusinessLogic.IGracePeriod,Atomia.Billing.Core.Sdk.BusinessLogic.INoticePeriod)"]
- gracePeriod (Optional)
- Type: Atomia.Billing.Core.Sdk.BusinessLogicIGracePeriod
Grace period business logic model - noticePeriod (Optional)
- Type: Atomia.Billing.Core.Sdk.BusinessLogicINoticePeriod
Notice period business logic model.
Return Value
Type:
Booleantrue if termination should be delayed, otherwise
false.
See Also