com.chargebee.models
Class Invoice

java.lang.Object
  extended by com.chargebee.internal.Resource<Invoice>
      extended by com.chargebee.models.Invoice

public class Invoice
extends Resource<Invoice>


Nested Class Summary
static class Invoice.AddAddonChargeRequest
           
static class Invoice.AddChargeRequest
           
static class Invoice.BillingAddress
           
static class Invoice.ChargeAddonRequest
           
static class Invoice.ChargeRequest
           
static class Invoice.CreateRequest
           
static class Invoice.DeleteRequest
           
static class Invoice.Discount
           
static class Invoice.DunningStatus
           
static class Invoice.InvoiceListRequest
           
static class Invoice.LineItem
           
static class Invoice.LinkedOrder
           
static class Invoice.LinkedTransaction
           
static class Invoice.Note
           
static class Invoice.PriceType
           
static class Invoice.RecordRefundRequest
           
static class Invoice.RefundRequest
           
static class Invoice.ShippingAddress
           
static class Invoice.Status
           
static class Invoice.Tax
           
static class Invoice.VoidInvoiceRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Invoice(org.json.JSONObject jsonObj)
           
Invoice(String jsonStr)
           
 
Method Summary
static Invoice.AddAddonChargeRequest addAddonCharge(String id)
           
static Invoice.AddChargeRequest addCharge(String id)
           
 Integer amount()
           
 Integer amountDue()
           
 Invoice.BillingAddress billingAddress()
           
static Invoice.ChargeRequest charge()
           
static Invoice.ChargeAddonRequest chargeAddon()
           
static Request collect(String id)
           
static Request collectPayment(String id)
           
static Invoice.CreateRequest create()
           
 String currencyCode()
           
 String customerId()
           
static Invoice.DeleteRequest delete(String id)
           
 List<Invoice.Discount> discounts()
           
 Invoice.DunningStatus dunningStatus()
           
 Timestamp endDate()
           
 Boolean firstInvoice()
           
 String id()
           
static ListRequest invoicesForCustomer(String id)
           
static ListRequest invoicesForSubscription(String id)
           
 List<Invoice.LineItem> lineItems()
           
 List<Invoice.LinkedOrder> linkedOrders()
           
 List<Invoice.LinkedTransaction> linkedTransactions()
           
static Invoice.InvoiceListRequest list()
           
 Timestamp nextRetry()
           
 List<Invoice.Note> notes()
           
 Timestamp paidOn()
           
static Request pdf(String id)
           
 String poNumber()
           
 Invoice.PriceType priceType()
           
static Invoice.RecordRefundRequest recordRefund(String id)
           
 Boolean recurring()
           
static Invoice.RefundRequest refund(String id)
           
static Request retrieve(String id)
           
 Invoice.ShippingAddress shippingAddress()
           
 Timestamp startDate()
           
 Invoice.Status status()
           
static Request stopDunning(String id)
           
 String subscriptionId()
           
 Integer subTotal()
           
 Integer tax()
           
 List<Invoice.Tax> taxes()
           
 String vatNumber()
           
static Invoice.VoidInvoiceRequest voidInvoice(String id)
           
 
Methods inherited from class com.chargebee.internal.Resource
nullCheck, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONObject, reqList, reqLong, reqString, reqSubResource, reqTimestamp, toJson, toString, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invoice

public Invoice(String jsonStr)

Invoice

public Invoice(org.json.JSONObject jsonObj)
Method Detail

id

public String id()

poNumber

public String poNumber()

customerId

public String customerId()

subscriptionId

public String subscriptionId()

recurring

public Boolean recurring()

status

public Invoice.Status status()

vatNumber

public String vatNumber()

priceType

public Invoice.PriceType priceType()

startDate

public Timestamp startDate()

endDate

public Timestamp endDate()

amount

public Integer amount()

amountDue

public Integer amountDue()

paidOn

public Timestamp paidOn()

dunningStatus

public Invoice.DunningStatus dunningStatus()

nextRetry

public Timestamp nextRetry()

subTotal

public Integer subTotal()

tax

public Integer tax()

firstInvoice

public Boolean firstInvoice()

currencyCode

public String currencyCode()

lineItems

public List<Invoice.LineItem> lineItems()

discounts

public List<Invoice.Discount> discounts()

taxes

public List<Invoice.Tax> taxes()

linkedTransactions

public List<Invoice.LinkedTransaction> linkedTransactions()

linkedOrders

public List<Invoice.LinkedOrder> linkedOrders()

notes

public List<Invoice.Note> notes()

shippingAddress

public Invoice.ShippingAddress shippingAddress()

billingAddress

public Invoice.BillingAddress billingAddress()

create

public static Invoice.CreateRequest create()
                                    throws IOException
Throws:
IOException

charge

public static Invoice.ChargeRequest charge()
                                    throws IOException
Throws:
IOException

chargeAddon

public static Invoice.ChargeAddonRequest chargeAddon()
                                              throws IOException
Throws:
IOException

stopDunning

public static Request stopDunning(String id)
                           throws IOException
Throws:
IOException

list

public static Invoice.InvoiceListRequest list()
                                       throws IOException
Throws:
IOException

invoicesForCustomer

public static ListRequest invoicesForCustomer(String id)
                                       throws IOException
Throws:
IOException

invoicesForSubscription

public static ListRequest invoicesForSubscription(String id)
                                           throws IOException
Throws:
IOException

retrieve

public static Request retrieve(String id)
                        throws IOException
Throws:
IOException

pdf

public static Request pdf(String id)
                   throws IOException
Throws:
IOException

addCharge

public static Invoice.AddChargeRequest addCharge(String id)
                                          throws IOException
Throws:
IOException

addAddonCharge

public static Invoice.AddAddonChargeRequest addAddonCharge(String id)
                                                    throws IOException
Throws:
IOException

collect

public static Request collect(String id)
                       throws IOException
Throws:
IOException

collectPayment

public static Request collectPayment(String id)
                              throws IOException
Throws:
IOException

refund

public static Invoice.RefundRequest refund(String id)
                                    throws IOException
Throws:
IOException

recordRefund

public static Invoice.RecordRefundRequest recordRefund(String id)
                                                throws IOException
Throws:
IOException

voidInvoice

public static Invoice.VoidInvoiceRequest voidInvoice(String id)
                                              throws IOException
Throws:
IOException

delete

public static Invoice.DeleteRequest delete(String id)
                                    throws IOException
Throws:
IOException


Copyright © 2015 ChargeBee. All Rights Reserved.