C# Class Recurly.Invoice

Afficher le fichier Open project: recurly/recurly-client-net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Invoice ( XmlTextReader reader ) : System
ReadXml ( XmlTextReader reader ) : void
WriteXml ( XmlTextWriter xmlWriter ) : void
memberUrl ( ) : string

Method Details

Create() public méthode

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

Equals() public méthode

public Equals ( Invoice invoice ) : bool
invoice Invoice
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetOriginalInvoice() public méthode

public GetOriginalInvoice ( ) : Invoice
Résultat Invoice

GetPdf() public méthode

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

GetRedemption() public méthode

Returns the active coupon redemption on this invoice
public GetRedemption ( ) : CouponRedemption
Résultat CouponRedemption

GetRedemptions() public méthode

public GetRedemptions ( ) : RecurlyList
Résultat RecurlyList

Invoice() public méthode

public Invoice ( ) : System
Résultat System

InvoiceNumberWithPrefix() public méthode

public InvoiceNumberWithPrefix ( ) : string
Résultat string

MarkFailed() public méthode

Marks an invoice as failed collection
public MarkFailed ( ) : void
Résultat void

MarkSuccessful() public méthode

Marks an invoice as paid successfully
public MarkSuccessful ( ) : void
Résultat void

OriginalInvoiceNumberWithPrefix() public méthode

public OriginalInvoiceNumberWithPrefix ( ) : string
Résultat string

Preview() public méthode

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

Refund() public méthode

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
Résultat Invoice

Refund() public méthode

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

RefundAmount() public méthode

public RefundAmount ( int amountInCents, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
amountInCents int
refundPriority RefundOrderPriority
Résultat Invoice

ToString() public méthode

public ToString ( ) : string
Résultat string