Package com.clover.sdk.v1.merchant
Class IMerchantService.Default
- java.lang.Object
-
- com.clover.sdk.v1.merchant.IMerchantService.Default
-
- All Implemented Interfaces:
IInterface
,IMerchantService
- Enclosing interface:
- IMerchantService
public static class IMerchantService.Default extends Object implements IMerchantService
Default implementation for IMerchantService.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.clover.sdk.v1.merchant.IMerchantService
IMerchantService.Default, IMerchantService.Stub
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(IMerchantListener listener, ResultStatus resultStatus)
IBinder
asBinder()
Merchant
getMerchant(ResultStatus resultStatus)
Get theMerchant
object for this device's merchant.void
removeListener(IMerchantListener listener, ResultStatus resultStatus)
void
setAddress(MerchantAddress address, ResultStatus resultStatus)
Set the merchant's address.void
setPhoneNumber(String phoneNumber, ResultStatus resultStatus)
Set the merchant's phone number.void
setTrackStock(boolean trackStock, ResultStatus resultStatus)
Set to true if this merchant wants to keep track of stock.void
setUpdateStock(boolean updateStock, ResultStatus resultStatus)
Set to true if this merchant wants Clover to decrement the stock count when an item is sold.
-
-
-
Method Detail
-
getMerchant
public Merchant getMerchant(ResultStatus resultStatus) throws RemoteException
Get theMerchant
object for this device's merchant.- Specified by:
getMerchant
in interfaceIMerchantService
- Throws:
RemoteException
-
setAddress
public void setAddress(MerchantAddress address, ResultStatus resultStatus) throws RemoteException
Set the merchant's address.- Specified by:
setAddress
in interfaceIMerchantService
- Parameters:
address
- The address of the merchant- Throws:
RemoteException
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber, ResultStatus resultStatus) throws RemoteException
Set the merchant's phone number.- Specified by:
setPhoneNumber
in interfaceIMerchantService
- Parameters:
phoneNumber
- The phone number of the merchant- Throws:
RemoteException
-
addListener
public void addListener(IMerchantListener listener, ResultStatus resultStatus) throws RemoteException
- Specified by:
addListener
in interfaceIMerchantService
- Throws:
RemoteException
-
removeListener
public void removeListener(IMerchantListener listener, ResultStatus resultStatus) throws RemoteException
- Specified by:
removeListener
in interfaceIMerchantService
- Throws:
RemoteException
-
setUpdateStock
public void setUpdateStock(boolean updateStock, ResultStatus resultStatus) throws RemoteException
Set to true if this merchant wants Clover to decrement the stock count when an item is sold. This requires#setTrackStock(boolean)
be enabled. This should be false if a merchant is using a third party app to update their stock counts.- Specified by:
setUpdateStock
in interfaceIMerchantService
- Throws:
RemoteException
- See Also:
setTrackStock(boolean, com.clover.sdk.v1.ResultStatus)
-
setTrackStock
public void setTrackStock(boolean trackStock, ResultStatus resultStatus) throws RemoteException
Set to true if this merchant wants to keep track of stock. This will show stock counts and allow the counts to be updated and modified in various apps (such as Clover Inventory Android and web apps.- Specified by:
setTrackStock
in interfaceIMerchantService
- Throws:
RemoteException
- See Also:
setUpdateStock(boolean, com.clover.sdk.v1.ResultStatus)
-
asBinder
public IBinder asBinder()
- Specified by:
asBinder
in interfaceIInterface
-
-