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.Discount
           
static class Invoice.LineItem
           
static class Invoice.Status
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Invoice(org.json.JSONObject jsonObj)
           
Invoice(String jsonStr)
           
 
Method Summary
 Integer amount()
           
 List<Invoice.Discount> discounts()
           
 Timestamp endDate()
           
 String id()
           
static ListRequest invoicesForSubscription(String id)
           
 List<Invoice.LineItem> lineItems()
           
static ListRequest list()
           
 Timestamp nextRetry()
           
 Timestamp paidOn()
           
static Request retrieve(String id)
           
 Timestamp startDate()
           
 Invoice.Status status()
           
 String subscriptionId()
           
 Integer subTotal()
           
 
Methods inherited from class com.chargebee.internal.Resource
nullCheck, optEnum, optInteger, optJSONObject, optList, optLong, optString, optTimestamp, reqEnum, reqInteger, reqJSONObject, reqList, reqLong, reqString, reqTimestamp, toJson, toString, url, url
 
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()

subscriptionId

public String subscriptionId()

status

public Invoice.Status status()

startDate

public Timestamp startDate()

endDate

public Timestamp endDate()

amount

public Integer amount()

paidOn

public Timestamp paidOn()

nextRetry

public Timestamp nextRetry()

subTotal

public Integer subTotal()

lineItems

public List<Invoice.LineItem> lineItems()

discounts

public List<Invoice.Discount> discounts()

list

public static ListRequest list()
                        throws IOException
Throws:
IOException

retrieve

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

invoicesForSubscription

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


Copyright © 2012 ChargeBee. All Rights Reserved.