C# Класс Recurly.Invoice

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
Invoice ( XmlTextReader reader ) : System
ReadXml ( XmlTextReader reader ) : void
WriteXml ( XmlTextWriter xmlWriter ) : void
memberUrl ( ) : string

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

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

Post an invoice on an account using it's pending charges
public Create ( string accountCode ) : void
accountCode string
Результат void

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

public Equals ( Invoice invoice ) : bool
invoice Invoice
Результат bool

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

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

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

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

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

public GetOriginalInvoice ( ) : Invoice
Результат Invoice

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

Returns a PDF representation of an invoice
public GetPdf ( string acceptLanguage = "en-US" ) : byte[]
acceptLanguage string Language for invoice, defaults to en-US.
Результат byte[]

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

Returns the active coupon redemption on this invoice
public GetRedemption ( ) : CouponRedemption
Результат CouponRedemption

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

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

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

public Invoice ( ) : System
Результат System

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

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

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

Marks an invoice as failed collection
public MarkFailed ( ) : void
Результат void

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

Marks an invoice as paid successfully
public MarkSuccessful ( ) : void
Результат void

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

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

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

Preview an invoice on an account using it's pending charges
public Preview ( string accountCode ) : void
accountCode string
Результат void

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

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
Результат Invoice

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

public Refund ( IEnumerable adjustments, bool prorate = false, int quantity, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
adjustments IEnumerable
prorate bool
quantity int
refundPriority RefundOrderPriority
Результат Invoice

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

public RefundAmount ( int amountInCents, RefundOrderPriority refundPriority = RefundOrderPriority.Credit ) : Invoice
amountInCents int
refundPriority RefundOrderPriority
Результат Invoice

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

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