public static class ITenderService.Default extends Object implements ITenderService
ITenderService.Default, ITenderService.Stub
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
IBinder |
asBinder() |
Tender |
checkAndCreateTender(String label,
String labelKey,
boolean enabled,
boolean opensCashDrawer,
ResultStatus resultStatus)
Create a new tender with the given label and seetings.
|
void |
delete(String tenderId,
ResultStatus resultStatus)
Delete the tender for the given id.
|
List<Tender> |
getTenders(ResultStatus resultStatus)
Get all the tenders for this merchant.
|
Tender |
setEnabled(String tenderId,
boolean enabled,
ResultStatus resultStatus)
Enabling or disabling a tender causes the tender to either be shown in or hidden by the Clover
Register and Sale apps.
|
void |
setLabel(String tenderId,
String tenderLable,
ResultStatus resultStatus)
Change the label for the given tender id.
|
void |
setOpensCashDrawer(String tenderId,
boolean opensCashDrawer,
ResultStatus resultStatus)
When a payment is made with this tender the cash drawer can be made to automatically open or
not.
|
public List<Tender> getTenders(ResultStatus resultStatus) throws RemoteException
getTenders
in interface ITenderService
RemoteException
public Tender checkAndCreateTender(String label, String labelKey, boolean enabled, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
checkAndCreateTender
in interface ITenderService
label
- String shown to merchant for this TenderlabelKey
- The package name of your application, unless you are com.clover.*
enabled
- true if you want the Tender to appear to the MerchantopensCashDrawer
- true if you want the cash drawer to open when a payment with this tender
is takenRemoteException
public Tender setEnabled(String tenderId, boolean enabled, ResultStatus resultStatus) throws RemoteException
setEnabled
in interface ITenderService
RemoteException
public void delete(String tenderId, ResultStatus resultStatus) throws RemoteException
delete
in interface ITenderService
RemoteException
public void setOpensCashDrawer(String tenderId, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
setOpensCashDrawer
in interface ITenderService
RemoteException
public void setLabel(String tenderId, String tenderLable, ResultStatus resultStatus) throws RemoteException
setLabel
in interface ITenderService
RemoteException
public IBinder asBinder()
asBinder
in interface IInterface