com.chargebee.models
Class Invoice
java.lang.Object
com.chargebee.internal.Resource<Invoice>
com.chargebee.models.Invoice
public class Invoice
- extends Resource<Invoice>
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 |
Invoice
public Invoice(String jsonStr)
Invoice
public Invoice(org.json.JSONObject jsonObj)
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.