C# Класс Recurly.Subscription

Represents subscriptions for accounts
Наследование: Recurly.RecurlyEntity
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ReadPlanXml void
ReadPreviewXml void
ReadXml void
Subscription System
Subscription System
WriteSubscriptionNotesXml Client.WriteXmlDelegate
WriteXml void

Открытые методы

Метод Описание
Cancel ( ) : void

Cancel an active subscription. The subscription will not renew, but will continue to be active through the remainder of the current term.

ChangeSubscription ( ) : void
ChangeSubscription ( ChangeTimeframe timeframe ) : void

Request that an update to a subscription take place

Create ( ) : void

Creates a new subscription on Recurly

Equals ( Subscription subscription ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetRedemptions ( ) : RecurlyList
Postpone ( System.DateTime nextRenewalDate, bool bulk = false ) : void

For an active subscription, this will pause the subscription until the specified date.

Preview ( ) : void
Preview ( ChangeTimeframe timeframe ) : void

Transforms this object into a preview Subscription applied to the account.

PreviewChange ( ) : Subscription
PreviewChange ( ChangeTimeframe timeframe ) : Subscription

Preview the changes associated with the current subscription

Reactivate ( ) : void

Reactivate a canceled subscription. The subscription will renew at the end of its current term.

Subscription ( Account account, Plan plan, string currency ) : System

Creates a new subscription object

Subscription ( Account account, Plan plan, string currency, string couponCode ) : System

Creates a new subscription object, with coupon

Terminate ( RefundType refund ) : void

Terminates the subscription immediately.

ToString ( ) : string
UpdateNotes ( string>.Dictionary notes ) : bool

Защищенные методы

Метод Описание
ReadPendingSubscription ( XmlTextReader reader ) : void
WriteChangeSubscriptionAtRenewalXml ( XmlTextWriter xmlWriter ) : void
WriteChangeSubscriptionNowXml ( XmlTextWriter xmlWriter ) : void
WriteChangeSubscriptionXml ( XmlTextWriter xmlWriter, ChangeTimeframe timeframe ) : void
WriteSubscriptionXml ( XmlTextWriter xmlWriter ) : void

Приватные методы

Метод Описание
ReadPlanXml ( XmlTextReader reader ) : void
ReadPreviewXml ( XmlTextReader reader ) : void
ReadXml ( XmlTextReader reader ) : void
Subscription ( ) : System
Subscription ( XmlTextReader reader ) : System
WriteSubscriptionNotesXml ( string>.Dictionary notes ) : Client.WriteXmlDelegate
WriteXml ( XmlTextWriter writer ) : void

Описание методов

Cancel() публичный Метод

Cancel an active subscription. The subscription will not renew, but will continue to be active through the remainder of the current term.
public Cancel ( ) : void
Результат void

ChangeSubscription() публичный Метод

public ChangeSubscription ( ) : void
Результат void

ChangeSubscription() публичный Метод

Request that an update to a subscription take place
public ChangeSubscription ( ChangeTimeframe timeframe ) : void
timeframe ChangeTimeframe when the update should occur: now (default) or at renewal
Результат void

Create() публичный Метод

Creates a new subscription on Recurly
public Create ( ) : void
Результат void

Equals() публичный Метод

public Equals ( Subscription subscription ) : bool
subscription Subscription
Результат bool

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetRedemptions() публичный Метод

public GetRedemptions ( ) : RecurlyList
Результат RecurlyList

Postpone() публичный Метод

For an active subscription, this will pause the subscription until the specified date.
public Postpone ( System.DateTime nextRenewalDate, bool bulk = false ) : void
nextRenewalDate System.DateTime The specified time the subscription will be postponed
bulk bool bulk = false (default) or true to bypass the 60 second wait while postponing
Результат void

Preview() публичный Метод

public Preview ( ) : void
Результат void

Preview() публичный Метод

Transforms this object into a preview Subscription applied to the account.
public Preview ( ChangeTimeframe timeframe ) : void
timeframe ChangeTimeframe ChangeTimeframe.Now (default) or at Renewal
Результат void

PreviewChange() публичный Метод

public PreviewChange ( ) : Subscription
Результат Subscription

PreviewChange() публичный Метод

Preview the changes associated with the current subscription
public PreviewChange ( ChangeTimeframe timeframe ) : Subscription
timeframe ChangeTimeframe ChangeTimeframe.Now (default) or at Renewal
Результат Subscription

Reactivate() публичный Метод

Reactivate a canceled subscription. The subscription will renew at the end of its current term.
public Reactivate ( ) : void
Результат void

ReadPendingSubscription() защищенный Метод

protected ReadPendingSubscription ( XmlTextReader reader ) : void
reader System.Xml.XmlTextReader
Результат void

Subscription() публичный Метод

Creates a new subscription object
public Subscription ( Account account, Plan plan, string currency ) : System
account Account
plan Plan
currency string
Результат System

Subscription() публичный Метод

Creates a new subscription object, with coupon
public Subscription ( Account account, Plan plan, string currency, string couponCode ) : System
account Account
plan Plan
currency string
couponCode string
Результат System

Terminate() публичный Метод

Terminates the subscription immediately.
public Terminate ( RefundType refund ) : void
refund RefundType
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

UpdateNotes() публичный Метод

public UpdateNotes ( string>.Dictionary notes ) : bool
notes string>.Dictionary
Результат bool

WriteChangeSubscriptionAtRenewalXml() защищенный Метод

protected WriteChangeSubscriptionAtRenewalXml ( XmlTextWriter xmlWriter ) : void
xmlWriter XmlTextWriter
Результат void

WriteChangeSubscriptionNowXml() защищенный Метод

protected WriteChangeSubscriptionNowXml ( XmlTextWriter xmlWriter ) : void
xmlWriter XmlTextWriter
Результат void

WriteChangeSubscriptionXml() защищенный Метод

protected WriteChangeSubscriptionXml ( XmlTextWriter xmlWriter, ChangeTimeframe timeframe ) : void
xmlWriter XmlTextWriter
timeframe ChangeTimeframe
Результат void

WriteSubscriptionXml() защищенный Метод

protected WriteSubscriptionXml ( XmlTextWriter xmlWriter ) : void
xmlWriter XmlTextWriter
Результат void