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 |
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 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.