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, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, 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()
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()
subTotal
public Integer subTotal()
tax
public Integer tax()
firstInvoice
public Boolean firstInvoice()
lineItems
public List<Invoice.LineItem> lineItems()
discounts
public List<Invoice.Discount> discounts()
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()
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
@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 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
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
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 © 2016 ChargeBee. All Rights Reserved.