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.AdjustmentCreditNote
           
static class Invoice.AppliedCredit
           
static class Invoice.ApplyCreditsRequest
           
static class Invoice.ApplyPaymentsRequest
           
static class Invoice.BillingAddress
           
static class Invoice.ChargeAddonRequest
           
static class Invoice.ChargeRequest
           
static class Invoice.CollectPaymentRequest
           
static class Invoice.CreateRequest
           
static class Invoice.DeleteRequest
           
static class Invoice.Discount
           
static class Invoice.DunningStatus
           
static class Invoice.ImportInvoiceRequest
           
static class Invoice.InvoiceListRequest
           
static class Invoice.IssuedCreditNote
           
static class Invoice.LineItem
           
static class Invoice.LineItemDiscount
           
static class Invoice.LineItemTax
           
static class Invoice.LinkedOrder
           
static class Invoice.LinkedPayment
           
static class Invoice.Note
           
static class Invoice.PdfRequest
           
static class Invoice.RecordPaymentRequest
           
static class Invoice.RecordRefundRequest
           
static class Invoice.RefundRequest
           
static class Invoice.RemoveCreditNoteRequest
           
static class Invoice.RemovePaymentRequest
           
static class Invoice.ShippingAddress
           
static class Invoice.Status
           
static class Invoice.Tax
           
static class Invoice.UpdateDetailsRequest
           
static class Invoice.VoidInvoiceRequest
           
static class Invoice.WriteOffRequest
           
 
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)
           
 List<Invoice.AdjustmentCreditNote> adjustmentCreditNotes()
           
 Integer amountAdjusted()
           
 Integer amountDue()
           
 Integer amountPaid()
           
 Integer amountToCollect()
           
 List<Invoice.AppliedCredit> appliedCredits()
           
static Invoice.ApplyCreditsRequest applyCredits(String id)
           
static Invoice.ApplyPaymentsRequest applyPayments(String id)
           
 Invoice.BillingAddress billingAddress()
           
static Invoice.ChargeRequest charge()
           
static Invoice.ChargeAddonRequest chargeAddon()
           
static Request close(String id)
           
static Invoice.CollectPaymentRequest collectPayment(String id)
           
static Invoice.CreateRequest create()
           
 Integer creditsApplied()
           
 String currencyCode()
           
 String customerId()
           
 Timestamp date()
           
static Invoice.DeleteRequest delete(String id)
           
 Boolean deleted()
           
 List<Invoice.Discount> discounts()
           
 Timestamp dueDate()
           
 Invoice.DunningStatus dunningStatus()
           
 Timestamp expectedPaymentDate()
           
 Boolean firstInvoice()
           
 Boolean hasAdvanceCharges()
           
 String id()
           
static Invoice.ImportInvoiceRequest importInvoice()
           
static ListRequest invoicesForCustomer(String id)
          Deprecated. 
static ListRequest invoicesForSubscription(String id)
          Deprecated. 
 List<Invoice.IssuedCreditNote> issuedCreditNotes()
           
 List<Invoice.LineItemDiscount> lineItemDiscounts()
           
 List<Invoice.LineItem> lineItems()
           
 List<Invoice.LineItemTax> lineItemTaxes()
           
 List<Invoice.LinkedOrder> linkedOrders()
           
 List<Invoice.LinkedPayment> linkedPayments()
           
static Invoice.InvoiceListRequest list()
           
 Integer netTermDays()
           
 Timestamp nextRetryAt()
           
 List<Invoice.Note> notes()
           
 Timestamp paidAt()
           
static Invoice.PdfRequest pdf(String id)
           
 String poNumber()
           
 PriceType priceType()
           
static Invoice.RecordPaymentRequest recordPayment(String id)
           
static Invoice.RecordRefundRequest recordRefund(String id)
           
 Boolean recurring()
           
static Invoice.RefundRequest refund(String id)
           
static Invoice.RemoveCreditNoteRequest removeCreditNote(String id)
           
static Invoice.RemovePaymentRequest removePayment(String id)
           
 Long resourceVersion()
           
static Request retrieve(String id)
           
 Integer roundOffAmount()
           
 Invoice.ShippingAddress shippingAddress()
           
 Invoice.Status status()
           
static Request stopDunning(String id)
           
 String subscriptionId()
           
 Integer subTotal()
           
 Integer tax()
           
 List<Invoice.Tax> taxes()
           
 Integer total()
           
 Timestamp updatedAt()
           
static Invoice.UpdateDetailsRequest updateDetails(String id)
           
 String vatNumber()
           
 Timestamp voidedAt()
           
static Invoice.VoidInvoiceRequest voidInvoice(String id)
           
static Invoice.WriteOffRequest writeOff(String id)
           
 Integer writeOffAmount()
           
 
Methods inherited from class com.chargebee.internal.Resource
apiVersionCheck, nullCheck, optBigDecimal, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBigDecimal, 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 PriceType priceType()

date

public Timestamp date()

dueDate

public Timestamp dueDate()

netTermDays

public Integer netTermDays()

currencyCode

public String currencyCode()

total

public Integer total()

amountPaid

public Integer amountPaid()

amountAdjusted

public Integer amountAdjusted()

writeOffAmount

public Integer writeOffAmount()

creditsApplied

public Integer creditsApplied()

amountDue

public Integer amountDue()

paidAt

public Timestamp paidAt()

dunningStatus

public Invoice.DunningStatus dunningStatus()

nextRetryAt

public Timestamp nextRetryAt()

voidedAt

public Timestamp voidedAt()

resourceVersion

public Long resourceVersion()

updatedAt

public Timestamp updatedAt()

subTotal

public Integer subTotal()

tax

public Integer tax()

firstInvoice

public Boolean firstInvoice()

hasAdvanceCharges

public Boolean hasAdvanceCharges()

expectedPaymentDate

public Timestamp expectedPaymentDate()

amountToCollect

public Integer amountToCollect()

roundOffAmount

public Integer roundOffAmount()

lineItems

public List<Invoice.LineItem> lineItems()

discounts

public List<Invoice.Discount> discounts()

lineItemDiscounts

public List<Invoice.LineItemDiscount> lineItemDiscounts()

taxes

public List<Invoice.Tax> taxes()

lineItemTaxes

public List<Invoice.LineItemTax> lineItemTaxes()

linkedPayments

public List<Invoice.LinkedPayment> linkedPayments()

appliedCredits

public List<Invoice.AppliedCredit> appliedCredits()

adjustmentCreditNotes

public List<Invoice.AdjustmentCreditNote> adjustmentCreditNotes()

issuedCreditNotes

public List<Invoice.IssuedCreditNote> issuedCreditNotes()

linkedOrders

public List<Invoice.LinkedOrder> linkedOrders()

notes

public List<Invoice.Note> notes()

shippingAddress

public Invoice.ShippingAddress shippingAddress()

billingAddress

public Invoice.BillingAddress billingAddress()

deleted

public Boolean deleted()

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

importInvoice

public static Invoice.ImportInvoiceRequest importInvoice()
                                                  throws IOException
Throws:
IOException

applyPayments

public static Invoice.ApplyPaymentsRequest applyPayments(String id)
                                                  throws IOException
Throws:
IOException

applyCredits

public static Invoice.ApplyCreditsRequest applyCredits(String id)
                                                throws IOException
Throws:
IOException

list

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

invoicesForCustomer

@Deprecated
public static ListRequest invoicesForCustomer(String id)
                                       throws IOException
Deprecated. 

Throws:
IOException

invoicesForSubscription

@Deprecated
public static ListRequest invoicesForSubscription(String id)
                                           throws IOException
Deprecated. 

Throws:
IOException

retrieve

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

pdf

public static Invoice.PdfRequest 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

close

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

collectPayment

public static Invoice.CollectPaymentRequest collectPayment(String id)
                                                    throws IOException
Throws:
IOException

recordPayment

public static Invoice.RecordPaymentRequest recordPayment(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

removePayment

public static Invoice.RemovePaymentRequest removePayment(String id)
                                                  throws IOException
Throws:
IOException

removeCreditNote

public static Invoice.RemoveCreditNoteRequest removeCreditNote(String id)
                                                        throws IOException
Throws:
IOException

voidInvoice

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

writeOff

public static Invoice.WriteOffRequest writeOff(String id)
                                        throws IOException
Throws:
IOException

delete

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

updateDetails

public static Invoice.UpdateDetailsRequest updateDetails(String id)
                                                  throws IOException
Throws:
IOException


Copyright © 2018 ChargeBee. All Rights Reserved.