Package com.fedapay.model
Class Customer
- java.lang.Object
-
- com.fedapay.model.FedaPayObject
-
- com.fedapay.model.Customer
-
public class Customer extends FedaPayObject
-
-
Field Summary
-
Fields inherited from class com.fedapay.model.FedaPayObject
rawJsonResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomerCollectionall()static Customercreate(Map<String,Object> customerDataMap)static Stringdelete(String customerId)StringgetEmail()StringgetFirstname()StringgetId()StringgetLastname()StringgetPhone()PhoneNumbergetPhoneNumber()static Customerretrieve(String customerId)Customersave()voidsetEmail(String email)voidsetFirstname(String firstname)voidsetId(String id)voidsetLastname(String lastname)voidsetPhone(String phone)voidsetPhoneNumber(PhoneNumber phoneNumber)Map<String,Object>toMap()static Customerupdate(String customerId, Map<String,Object> customerDataMap)-
Methods inherited from class com.fedapay.model.FedaPayObject
getRawJsonResponse, setRawJsonResponse
-
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getFirstname
public String getFirstname()
-
setFirstname
public void setFirstname(String firstname)
-
getLastname
public String getLastname()
-
setLastname
public void setLastname(String lastname)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getPhone
public String getPhone()
-
setPhone
public void setPhone(String phone)
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
-
setPhoneNumber
public void setPhoneNumber(PhoneNumber phoneNumber)
-
all
public static CustomerCollection all() throws Exception
- Throws:
Exception
-
create
public static Customer create(Map<String,Object> customerDataMap) throws Exception
- Throws:
Exception
-
update
public static Customer update(String customerId, Map<String,Object> customerDataMap) throws Exception
- Throws:
Exception
-
-