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.AddContactRequest
           
static class Customer.AddPromotionalCreditsRequest
           
static class Customer.AssignPaymentRoleRequest
           
static class Customer.BillingAddress
           
static class Customer.CardStatus
          Deprecated. 
static class Customer.Contact
           
static class Customer.CreateRequest
           
static class Customer.CustomerListRequest
           
static class Customer.DeductPromotionalCreditsRequest
           
static class Customer.DeleteContactRequest
           
static class Customer.DeleteRequest
           
static class Customer.FraudFlag
           
static class Customer.MoveRequest
           
static class Customer.PaymentMethod
           
static class Customer.RecordExcessPaymentRequest
           
static class Customer.ReferralUrl
           
static class Customer.SetPromotionalCreditsRequest
           
static class Customer.UpdateBillingInfoRequest
           
static class Customer.UpdateContactRequest
           
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
static Customer.AddContactRequest addContact(String id)
           
static Customer.AddPromotionalCreditsRequest addPromotionalCredits(String id)
           
 Boolean allowDirectDebit()
           
static Customer.AssignPaymentRoleRequest assignPaymentRole(String id)
           
 AutoCollection autoCollection()
           
 String backupPaymentSourceId()
           
 Customer.BillingAddress billingAddress()
           
 Customer.CardStatus cardStatus()
          Deprecated. 
 String company()
           
 Boolean consolidatedInvoicing()
           
 List<Customer.Contact> contacts()
           
static Customer.CreateRequest create()
           
 Timestamp createdAt()
           
 String createdFromIp()
           
static Customer.DeductPromotionalCreditsRequest deductPromotionalCredits(String id)
           
static Customer.DeleteRequest delete(String id)
           
static Customer.DeleteContactRequest deleteContact(String id)
           
 Boolean deleted()
           
 String email()
           
 EntityCode entityCode()
           
 Integer excessPayments()
           
 String exemptNumber()
           
 String firstName()
           
 Customer.FraudFlag fraudFlag()
           
 String id()
           
 String invoiceNotes()
           
 String lastName()
           
static Customer.CustomerListRequest list()
           
 String locale()
           
 org.json.JSONObject metaData()
           
static Customer.MoveRequest move()
           
 Integer netTermDays()
           
 Customer.PaymentMethod paymentMethod()
           
 String phone()
           
 String preferredCurrencyCode()
           
 String primaryPaymentSourceId()
           
 Integer promotionalCredits()
           
static Customer.RecordExcessPaymentRequest recordExcessPayment(String id)
           
 List<Customer.ReferralUrl> referralUrls()
           
 Integer refundableCredits()
           
 Long resourceVersion()
           
static Request retrieve(String id)
           
static Customer.SetPromotionalCreditsRequest setPromotionalCredits(String id)
           
 Taxability taxability()
           
static Customer.UpdateRequest update(String id)
           
static Customer.UpdateBillingInfoRequest updateBillingInfo(String id)
           
static Customer.UpdateContactRequest updateContact(String id)
           
 Timestamp updatedAt()
           
static Customer.UpdatePaymentMethodRequest updatePaymentMethod(String id)
           
 String vatNumber()
           
 
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

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

netTermDays

public Integer netTermDays()

allowDirectDebit

public Boolean allowDirectDebit()

createdAt

public Timestamp createdAt()

createdFromIp

public String createdFromIp()

taxability

public Taxability taxability()

entityCode

public EntityCode entityCode()

exemptNumber

public String exemptNumber()

resourceVersion

public Long resourceVersion()

updatedAt

public Timestamp updatedAt()

locale

public String locale()

consolidatedInvoicing

public Boolean consolidatedInvoicing()

cardStatus

@Deprecated
public Customer.CardStatus cardStatus()
Deprecated. 


fraudFlag

public Customer.FraudFlag fraudFlag()

primaryPaymentSourceId

public String primaryPaymentSourceId()

backupPaymentSourceId

public String backupPaymentSourceId()

billingAddress

public Customer.BillingAddress billingAddress()

referralUrls

public List<Customer.ReferralUrl> referralUrls()

contacts

public List<Customer.Contact> contacts()

paymentMethod

public Customer.PaymentMethod paymentMethod()

invoiceNotes

public String invoiceNotes()

preferredCurrencyCode

public String preferredCurrencyCode()

promotionalCredits

public Integer promotionalCredits()

refundableCredits

public Integer refundableCredits()

excessPayments

public Integer excessPayments()

metaData

public org.json.JSONObject metaData()

deleted

public Boolean deleted()

create

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

list

public static Customer.CustomerListRequest 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

assignPaymentRole

public static Customer.AssignPaymentRoleRequest assignPaymentRole(String id)
                                                           throws IOException
Throws:
IOException

addContact

public static Customer.AddContactRequest addContact(String id)
                                             throws IOException
Throws:
IOException

updateContact

public static Customer.UpdateContactRequest updateContact(String id)
                                                   throws IOException
Throws:
IOException

deleteContact

public static Customer.DeleteContactRequest deleteContact(String id)
                                                   throws IOException
Throws:
IOException

addPromotionalCredits

public static Customer.AddPromotionalCreditsRequest addPromotionalCredits(String id)
                                                                   throws IOException
Throws:
IOException

deductPromotionalCredits

public static Customer.DeductPromotionalCreditsRequest deductPromotionalCredits(String id)
                                                                         throws IOException
Throws:
IOException

setPromotionalCredits

public static Customer.SetPromotionalCreditsRequest setPromotionalCredits(String id)
                                                                   throws IOException
Throws:
IOException

recordExcessPayment

public static Customer.RecordExcessPaymentRequest recordExcessPayment(String id)
                                                               throws IOException
Throws:
IOException

delete

public static Customer.DeleteRequest delete(String id)
                                     throws IOException
Throws:
IOException

move

public static Customer.MoveRequest move()
                                 throws IOException
Throws:
IOException


Copyright © 2017 ChargeBee. All Rights Reserved.