C# 클래스 Recurly.Subscription

Represents subscriptions for accounts
상속: Recurly.RecurlyEntity
파일 보기 프로젝트 열기: recurly/recurly-client-net 1 사용 예제들

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