C# Class Recurly.Invoice

Datei anzeigen Open project: recurly/recurly-client-net Class Usage Examples

Public Methods

Method Description
Create ( string accountCode ) : void

Post an invoice on an account using it's pending charges

Equals ( Invoice invoice ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetOriginalInvoice ( ) : Invoice
GetPdf ( string acceptLanguage = "en-US" ) : byte[]

Returns a PDF representation of an invoice

GetRedemption ( ) : CouponRedemption

Returns the active coupon redemption on this invoice

GetRedemptions ( ) : RecurlyList
Invoice ( ) : System
InvoiceNumberWithPrefix ( ) : string
MarkFailed ( ) : void

Marks an invoice as failed collection

MarkSuccessful ( ) : void

Marks an invoice as paid successfully

OriginalInvoiceNumberWithPrefix ( ) : string
Preview ( string accountCode ) : void

Preview an invoice on an account using it's pending charges

Refund ( Adjustment adjustment, bool prorate = false, int quantity, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice

If enabled, allows specific line items and/or quantities to be refunded.

Refund ( IEnumerable adjustments, bool prorate = false, int quantity, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
RefundAmount ( int amountInCents, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
ToString ( ) : string

Private Methods

Method Description
Invoice ( XmlTextReader reader ) : System
ReadXml ( XmlTextReader reader ) : void
WriteXml ( XmlTextWriter xmlWriter ) : void
memberUrl ( ) : string

Method Details

Create() public method

Post an invoice on an account using it's pending charges
public Create ( string accountCode ) : void
accountCode string
return void

Equals() public method

public Equals ( Invoice invoice ) : bool
invoice Invoice
return bool

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetOriginalInvoice() public method

public GetOriginalInvoice ( ) : Invoice
return Invoice

GetPdf() public method

Returns a PDF representation of an invoice
public GetPdf ( string acceptLanguage = "en-US" ) : byte[]
acceptLanguage string Language for invoice, defaults to en-US.
return byte[]

GetRedemption() public method

Returns the active coupon redemption on this invoice
public GetRedemption ( ) : CouponRedemption
return CouponRedemption

GetRedemptions() public method

public GetRedemptions ( ) : RecurlyList
return RecurlyList

Invoice() public method

public Invoice ( ) : System
return System

InvoiceNumberWithPrefix() public method

public InvoiceNumberWithPrefix ( ) : string
return string

MarkFailed() public method

Marks an invoice as failed collection
public MarkFailed ( ) : void
return void

MarkSuccessful() public method

Marks an invoice as paid successfully
public MarkSuccessful ( ) : void
return void

OriginalInvoiceNumberWithPrefix() public method

public OriginalInvoiceNumberWithPrefix ( ) : string
return string

Preview() public method

Preview an invoice on an account using it's pending charges
public Preview ( string accountCode ) : void
accountCode string
return void

Refund() public method

If enabled, allows specific line items and/or quantities to be refunded.
public Refund ( Adjustment adjustment, bool prorate = false, int quantity, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
adjustment Adjustment
prorate bool
quantity int
refundPriority RefundOrderPriority
return Invoice

Refund() public method

public Refund ( IEnumerable adjustments, bool prorate = false, int quantity, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
adjustments IEnumerable
prorate bool
quantity int
refundPriority RefundOrderPriority
return Invoice

RefundAmount() public method

public RefundAmount ( int amountInCents, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
amountInCents int
refundPriority RefundOrderPriority
return Invoice

ToString() public method

public ToString ( ) : string
return string