C# Class Recurly.CouponRedemption

Represents an instance where a coupon has been redeemed for a subscription
Datei anzeigen Open project: recurly/recurly-client-net Class Usage Examples

Public Methods

Method Description
Delete ( ) : void

Removes a coupon from an account

Equals ( CouponRedemption coupon ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string

Private Methods

Method Description
CouponRedemption ( ) : System
CouponRedemption ( XmlTextReader reader ) : System
ReadXml ( XmlTextReader reader ) : void
Redeem ( string accountCode, string couponCode, string currency, string subscriptionUuid = null ) : CouponRedemption

Redeem an active coupon for an account

WriteXml ( XmlTextWriter xmlWriter ) : void

Method Details

Delete() public method

Removes a coupon from an account
public Delete ( ) : void
return void

Equals() public method

public Equals ( CouponRedemption coupon ) : bool
coupon CouponRedemption
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToString() public method

public ToString ( ) : string
return string