Package com.clover.sdk.v1.customer
Class Customer
- java.lang.Object
-
- com.clover.sdk.v1.customer.Customer
-
- All Implemented Interfaces:
Parcelable
public class Customer extends Object implements Parcelable
A class representing a customer. Instances of this object are returned by theICustomerService.createCustomer(String firstName, String lastName, boolean marketingAllowed, ResultStatus resultStatus)
,ICustomerService.getCustomer(String customerId, ResultStatus resultStatus)
orICustomerService.getCustomers(String query, ResultStatus resultStatus)
methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Customer>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description Customer(JSONObject data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
List<Address>
getAddresses()
List<Card>
getCards()
List<EmailAddress>
getEmailAddresses()
String
getFirstName()
String
getId()
String
getLastName()
boolean
getMarketingAllowed()
List<Order>
getOrders()
List<PhoneNumber>
getPhoneNumbers()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Customer> CREATOR
-
-
Constructor Detail
-
Customer
public Customer(JSONObject data)
-
-
Method Detail
-
getId
public String getId()
-
getFirstName
public String getFirstName()
-
getLastName
public String getLastName()
-
getMarketingAllowed
public boolean getMarketingAllowed()
-
getPhoneNumbers
public List<PhoneNumber> getPhoneNumbers()
-
getEmailAddresses
public List<EmailAddress> getEmailAddresses()
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-