com.chargebee.models
Class CreditNote

java.lang.Object
  extended by com.chargebee.internal.Resource<CreditNote>
      extended by com.chargebee.models.CreditNote

public class CreditNote
extends Resource<CreditNote>


Nested Class Summary
static class CreditNote.Allocation
           
static class CreditNote.CreateRequest
           
static class CreditNote.CreditNoteListRequest
           
static class CreditNote.Discount
           
static class CreditNote.LineItem
           
static class CreditNote.LineItemDiscount
           
static class CreditNote.LineItemTax
           
static class CreditNote.LinkedRefund
           
static class CreditNote.ReasonCode
           
static class CreditNote.Status
           
static class CreditNote.Tax
           
static class CreditNote.Type
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
CreditNote(org.json.JSONObject jsonObj)
           
CreditNote(String jsonStr)
           
 
Method Summary
 List<CreditNote.Allocation> allocations()
           
 Integer amountAllocated()
           
 Integer amountAvailable()
           
 Integer amountRefunded()
           
static CreditNote.CreateRequest create()
           
static ListRequest creditNotesForCustomer(String id)
          Deprecated. 
 String currencyCode()
           
 String customerId()
           
 Timestamp date()
           
 Boolean deleted()
           
 List<CreditNote.Discount> discounts()
           
 String id()
           
 List<CreditNote.LineItemDiscount> lineItemDiscounts()
           
 List<CreditNote.LineItem> lineItems()
           
 List<CreditNote.LineItemTax> lineItemTaxes()
           
 List<CreditNote.LinkedRefund> linkedRefunds()
           
static CreditNote.CreditNoteListRequest list()
           
static Request pdf(String id)
           
 PriceType priceType()
           
 CreditNote.ReasonCode reasonCode()
           
 String referenceInvoiceId()
           
 Timestamp refundedAt()
           
 Long resourceVersion()
           
static Request retrieve(String id)
           
 CreditNote.Status status()
           
 String subscriptionId()
           
 Integer subTotal()
           
 List<CreditNote.Tax> taxes()
           
 Integer total()
           
 CreditNote.Type type()
           
 Timestamp updatedAt()
           
 String vatNumber()
           
 Timestamp voidedAt()
           
 
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

CreditNote

public CreditNote(String jsonStr)

CreditNote

public CreditNote(org.json.JSONObject jsonObj)
Method Detail

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()

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

list

public static CreditNote.CreditNoteListRequest list()
                                             throws IOException
Throws:
IOException

creditNotesForCustomer

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

Throws:
IOException


Copyright © 2017 ChargeBee. All Rights Reserved.