com.chargebee.models
Class CreditNote
java.lang.Object
com.chargebee.internal.Resource<CreditNote>
com.chargebee.models.CreditNote
public class CreditNote
- extends Resource<CreditNote>
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 |
CreditNote
public CreditNote(String jsonStr)
CreditNote
public CreditNote(org.json.JSONObject jsonObj)
id
public String id()
customerId
public String customerId()
subscriptionId
public String subscriptionId()
referenceInvoiceId
public String referenceInvoiceId()
type
public CreditNote.Type type()
reasonCode
public CreditNote.ReasonCode reasonCode()
status
public CreditNote.Status status()
vatNumber
public String vatNumber()
date
public Timestamp date()
priceType
public PriceType priceType()
currencyCode
public String currencyCode()
total
public Integer total()
amountAllocated
public Integer amountAllocated()
amountRefunded
public Integer amountRefunded()
amountAvailable
public Integer amountAvailable()
refundedAt
public Timestamp refundedAt()
voidedAt
public Timestamp voidedAt()
resourceVersion
public Long resourceVersion()
updatedAt
public Timestamp updatedAt()
subTotal
public Integer subTotal()
roundOffAmount
public Integer roundOffAmount()
lineItems
public List<CreditNote.LineItem> lineItems()
discounts
public List<CreditNote.Discount> discounts()
lineItemDiscounts
public List<CreditNote.LineItemDiscount> lineItemDiscounts()
taxes
public List<CreditNote.Tax> taxes()
lineItemTaxes
public List<CreditNote.LineItemTax> lineItemTaxes()
linkedRefunds
public List<CreditNote.LinkedRefund> linkedRefunds()
allocations
public List<CreditNote.Allocation> allocations()
deleted
public Boolean deleted()
create
public static CreditNote.CreateRequest create()
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
recordRefund
public static CreditNote.RecordRefundRequest recordRefund(String id)
throws IOException
- Throws:
IOException
voidCreditNote
public static CreditNote.VoidCreditNoteRequest voidCreditNote(String id)
throws IOException
- Throws:
IOException
list
public static CreditNote.CreditNoteListRequest list()
throws IOException
- Throws:
IOException
creditNotesForCustomer
@Deprecated
public static ListRequest creditNotesForCustomer(String id)
throws IOException
- Deprecated.
- Throws:
IOException
delete
public static CreditNote.DeleteRequest delete(String id)
throws IOException
- Throws:
IOException
Copyright © 2018 ChargeBee. All Rights Reserved.