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.DeleteRequest
           
static class CreditNote.Discount
           
static class CreditNote.LineItem
           
static class CreditNote.LineItemDiscount
           
static class CreditNote.LineItemTax
           
static class CreditNote.LineItemTier
           
static class CreditNote.LinkedRefund
           
static class CreditNote.PdfRequest
           
static class CreditNote.ReasonCode
           
static class CreditNote.RecordRefundRequest
           
static class CreditNote.Status
           
static class CreditNote.Tax
           
static class CreditNote.Type
           
static class CreditNote.VoidCreditNoteRequest
           
 
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()
           
static CreditNote.DeleteRequest delete(String id)
           
 Boolean deleted()
           
 List<CreditNote.Discount> discounts()
           
 Integer fractionalCorrection()
           
 String id()
           
 List<CreditNote.LineItemDiscount> lineItemDiscounts()
           
 List<CreditNote.LineItem> lineItems()
           
 List<CreditNote.LineItemTax> lineItemTaxes()
           
 List<CreditNote.LineItemTier> lineItemTiers()
           
 List<CreditNote.LinkedRefund> linkedRefunds()
           
static CreditNote.CreditNoteListRequest list()
           
 String localCurrencyCode()
           
static CreditNote.PdfRequest pdf(String id)
           
 PriceType priceType()
           
 CreditNote.ReasonCode reasonCode()
           
static CreditNote.RecordRefundRequest recordRefund(String id)
           
 String referenceInvoiceId()
           
 Timestamp refundedAt()
           
 Long resourceVersion()
           
static Request retrieve(String id)
           
 Integer roundOffAmount()
           
 CreditNote.Status status()
           
 String subscriptionId()
           
 Integer subTotal()
           
 Integer subTotalInLocalCurrency()
           
 List<CreditNote.Tax> taxes()
           
 Integer total()
           
 Integer totalInLocalCurrency()
           
 CreditNote.Type type()
           
 Timestamp updatedAt()
           
 String vatNumber()
           
static CreditNote.VoidCreditNoteRequest voidCreditNote(String id)
           
 Timestamp voidedAt()
           
 
Methods inherited from class com.chargebee.internal.Resource
apiVersionCheck, nullCheck, optBigDecimal, optBoolean, optDouble, optEnum, optInteger, optJSONArray, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBigDecimal, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONArray, 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()

subTotalInLocalCurrency

public Integer subTotalInLocalCurrency()

totalInLocalCurrency

public Integer totalInLocalCurrency()

localCurrencyCode

public String localCurrencyCode()

roundOffAmount

public Integer roundOffAmount()

fractionalCorrection

public Integer fractionalCorrection()

lineItems

public List<CreditNote.LineItem> lineItems()

discounts

public List<CreditNote.Discount> discounts()

lineItemDiscounts

public List<CreditNote.LineItemDiscount> lineItemDiscounts()

lineItemTiers

public List<CreditNote.LineItemTier> lineItemTiers()

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

retrieve

public static Request retrieve(String id)

pdf

public static CreditNote.PdfRequest pdf(String id)

recordRefund

public static CreditNote.RecordRefundRequest recordRefund(String id)

voidCreditNote

public static CreditNote.VoidCreditNoteRequest voidCreditNote(String id)

list

public static CreditNote.CreditNoteListRequest list()

creditNotesForCustomer

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


delete

public static CreditNote.DeleteRequest delete(String id)


Copyright © 2020 ChargeBee. All Rights Reserved.