Package com.clover.sdk.v1.merchant
Class MerchantIntent
- java.lang.Object
-
- com.clover.sdk.v1.merchant.MerchantIntent
-
public class MerchantIntent extends Object
Definition of actions and extras for communicating withIMerchantService
.- See Also:
IMerchantService
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_MERCHANT_CHANGED
Broadcast action: the merchant has changed.static String
ACTION_MERCHANT_SERVICE
Service action: bind to the merchant service.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Account
getAccount(Intent intent)
static String
getMerchantId(Intent intent)
Extract the merchant ID from the given intent's extrasBundle
.static int
getVersion(Intent intent)
Extract the version from the given intent's extrasBundle
.
-
-
-
Field Detail
-
ACTION_MERCHANT_SERVICE
public static final String ACTION_MERCHANT_SERVICE
Service action: bind to the merchant service.- See Also:
- Constant Field Values
-
ACTION_MERCHANT_CHANGED
public static final String ACTION_MERCHANT_CHANGED
Broadcast action: the merchant has changed. Intents received with this action will contain extraIntents.EXTRA_ACCOUNT
andIntents.EXTRA_MERCHANT_ID
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccount
public static Account getAccount(Intent intent)
- Parameters:
intent
- An intent.- Returns:
- An
Account
, ornull
if the account extra is not present.
-
getVersion
public static int getVersion(Intent intent)
Extract the version from the given intent's extrasBundle
.- Parameters:
intent
- An intent.- Returns:
- An
int
, or1
if the version extra is not present.
-
-