com.chargebee.models
Class Customer

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

public class Customer
extends Resource<Customer>


Nested Class Summary
static class Customer.AddAccountCreditsRequest
           
static class Customer.BillingAddress
           
static class Customer.CardStatus
          Deprecated. 
static class Customer.CreateRequest
           
static class Customer.DeductAccountCreditsRequest
           
static class Customer.PaymentMethod
           
static class Customer.SetAccountCreditsRequest
           
static class Customer.UpdateBillingInfoRequest
           
static class Customer.UpdatePaymentMethodRequest
           
static class Customer.UpdateRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Customer(org.json.JSONObject jsonObj)
           
Customer(String jsonStr)
           
 
Method Summary
 Integer accountCredits()
           
static Customer.AddAccountCreditsRequest addAccountCredits(String id)
           
 AutoCollection autoCollection()
           
 Customer.BillingAddress billingAddress()
           
 Customer.CardStatus cardStatus()
          Deprecated. 
 String company()
           
static Customer.CreateRequest create()
           
 Timestamp createdAt()
           
 String createdFromIp()
           
static Customer.DeductAccountCreditsRequest deductAccountCredits(String id)
           
 String email()
           
 String firstName()
           
 String id()
           
 String invoiceNotes()
           
 String lastName()
           
static ListRequest list()
           
 Customer.PaymentMethod paymentMethod()
           
 String phone()
           
static Request retrieve(String id)
           
static Customer.SetAccountCreditsRequest setAccountCredits(String id)
           
 Taxability taxability()
           
static Customer.UpdateRequest update(String id)
           
static Customer.UpdateBillingInfoRequest updateBillingInfo(String id)
           
static Customer.UpdatePaymentMethodRequest updatePaymentMethod(String id)
           
 String vatNumber()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Customer

public Customer(String jsonStr)

Customer

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

id

public String id()

firstName

public String firstName()

lastName

public String lastName()

email

public String email()

phone

public String phone()

company

public String company()

vatNumber

public String vatNumber()

autoCollection

public AutoCollection autoCollection()

createdAt

public Timestamp createdAt()

createdFromIp

public String createdFromIp()

taxability

public Taxability taxability()

cardStatus

@Deprecated
public Customer.CardStatus cardStatus()
Deprecated. 


billingAddress

public Customer.BillingAddress billingAddress()

paymentMethod

public Customer.PaymentMethod paymentMethod()

invoiceNotes

public String invoiceNotes()

accountCredits

public Integer accountCredits()

create

public static Customer.CreateRequest create()
                                     throws IOException
Throws:
IOException

list

public static ListRequest list()
                        throws IOException
Throws:
IOException

retrieve

public static Request retrieve(String id)
                        throws IOException
Throws:
IOException

update

public static Customer.UpdateRequest update(String id)
                                     throws IOException
Throws:
IOException

updatePaymentMethod

public static Customer.UpdatePaymentMethodRequest updatePaymentMethod(String id)
                                                               throws IOException
Throws:
IOException

updateBillingInfo

public static Customer.UpdateBillingInfoRequest updateBillingInfo(String id)
                                                           throws IOException
Throws:
IOException

addAccountCredits

public static Customer.AddAccountCreditsRequest addAccountCredits(String id)
                                                           throws IOException
Throws:
IOException

deductAccountCredits

public static Customer.DeductAccountCreditsRequest deductAccountCredits(String id)
                                                                 throws IOException
Throws:
IOException

setAccountCredits

public static Customer.SetAccountCreditsRequest setAccountCredits(String id)
                                                           throws IOException
Throws:
IOException


Copyright © 2015 ChargeBee. All Rights Reserved.