-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
,java.lang.Cloneable
public class MenigaMerchant implements Serializable, Parcelable, Cloneable
Represents a merchant in the Meniga system.
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
id
protected long
parentId
protected MenigaMerchant
parentMerchant
protected String
identifier
protected String
masterIdentifier
protected String
merchantCategoryIdentifier
protected String
publicIdentifier
protected String
name
protected String
parentName
protected MenigaMerchantLocation
address
protected List<MenigaCategoryScore>
categoryScores
protected List<MenigaMerchant>
childMerchants
protected List<MenigaCategoryScore>
detectedCategory
protected String
directoryLink
protected String
email
protected String
offersLink
protected String
telephone
protected String
webpage
protected MerchantAttribute
customAttributes
public final static Parcelable.Creator<MenigaMerchant>
CREATOR
-
Method Summary
Modifier and Type Method Description static void
setOperator(MenigaMerchantOperations operator)
Sets the api operator for doing api calls static Result<MenigaMerchant>
fetch(long id)
Gets a merchant by id static Result<List<MenigaMerchant>>
fetch(List<Long> ids)
Gets a merchant by ids int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
long
getId()
long
getParentId()
MenigaMerchant
getParentMerchant()
String
getIdentifier()
String
getMasterIdentifier()
String
getMerchantCategoryIdentifier()
String
getPublicIdentifier()
String
getName()
String
getParentName()
MenigaMerchantLocation
getAddress()
List<MenigaCategoryScore>
getCategoryScores()
List<MenigaMerchant>
getChildMerchants()
List<MenigaCategoryScore>
getDetectedCategory()
String
getDirectoryLink()
String
getEmail()
String
getOffersLink()
String
getTelephone()
String
getWebpage()
MerchantAttribute
getCustomAttributes()
-
-
Method Detail
-
setOperator
static void setOperator(MenigaMerchantOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator
- An object that implements the MenigaMerchantOperations interface for carrying out api operations on this class.
-
fetch
static Result<MenigaMerchant> fetch(long id)
Gets a merchant by id
- Parameters:
id
- The id of the merchant to retrieve
-
fetch
static Result<List<MenigaMerchant>> fetch(List<Long> ids)
Gets a merchant by ids
- Parameters:
ids
- List of ids of the merchants to retrieve
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
getId
long getId()
-
getParentId
long getParentId()
-
getParentMerchant
MenigaMerchant getParentMerchant()
-
getIdentifier
String getIdentifier()
-
getMasterIdentifier
String getMasterIdentifier()
-
getMerchantCategoryIdentifier
String getMerchantCategoryIdentifier()
-
getPublicIdentifier
String getPublicIdentifier()
-
getParentName
String getParentName()
-
getAddress
MenigaMerchantLocation getAddress()
-
getCategoryScores
List<MenigaCategoryScore> getCategoryScores()
-
getChildMerchants
List<MenigaMerchant> getChildMerchants()
-
getDetectedCategory
List<MenigaCategoryScore> getDetectedCategory()
-
getDirectoryLink
String getDirectoryLink()
-
getOffersLink
String getOffersLink()
-
getTelephone
String getTelephone()
-
getWebpage
String getWebpage()
-
getCustomAttributes
MerchantAttribute getCustomAttributes()
-
-
-
-