public class Customer extends FedaPayObject
rawJsonResponse| Constructor and Description |
|---|
Customer() |
Customer(String id,
String firstname,
String lastname,
String email,
String phone,
PhoneNumber phoneNumber) |
| Modifier and Type | Method and Description |
|---|---|
static CustomerCollection |
all() |
static Customer |
create(Map<String,Object> customerDataMap) |
static String |
delete(String customerId) |
String |
getEmail() |
String |
getFirstname() |
String |
getId() |
String |
getLastname() |
String |
getPhone() |
PhoneNumber |
getPhoneNumber() |
static Customer |
retrieve(String customerId) |
Customer |
save() |
void |
setEmail(String email) |
void |
setFirstname(String firstname) |
void |
setId(String id) |
void |
setLastname(String lastname) |
void |
setPhone(String phone) |
void |
setPhoneNumber(PhoneNumber phoneNumber) |
Map<String,Object> |
toMap() |
static Customer |
update(String customerId,
Map<String,Object> customerDataMap) |
getRawJsonResponse, setRawJsonResponsepublic Customer(String id, String firstname, String lastname, String email, String phone, PhoneNumber phoneNumber)
public Customer()
public String getId()
public void setId(String id)
public String getFirstname()
public void setFirstname(String firstname)
public String getLastname()
public void setLastname(String lastname)
public String getEmail()
public void setEmail(String email)
public String getPhone()
public void setPhone(String phone)
public PhoneNumber getPhoneNumber()
public void setPhoneNumber(PhoneNumber phoneNumber)
public static CustomerCollection all() throws Exception
Exceptionpublic static Customer create(Map<String,Object> customerDataMap) throws Exception
Exceptionpublic static Customer update(String customerId, Map<String,Object> customerDataMap) throws Exception
ExceptionCopyright © 2022. All rights reserved.