Package com.clover.sdk.v1.tender
Class ITenderService.Default
- java.lang.Object
-
- com.clover.sdk.v1.tender.ITenderService.Default
-
- All Implemented Interfaces:
IInterface
,ITenderService
- Enclosing interface:
- ITenderService
public static class ITenderService.Default extends Object implements ITenderService
Default implementation for ITenderService.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.clover.sdk.v1.tender.ITenderService
ITenderService.Default, ITenderService.Stub
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getTenders
public List<Tender> getTenders(ResultStatus resultStatus) throws RemoteException
Get all the tenders for this merchant. Note that some tenders may not be enabled.- Specified by:
getTenders
in interfaceITenderService
- Throws:
RemoteException
-
checkAndCreateTender
public Tender checkAndCreateTender(String label, String labelKey, boolean enabled, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
Create a new tender with the given label and seetings. The label key must be the package name of your application.- Specified by:
checkAndCreateTender
in interfaceITenderService
- Parameters:
label
- String shown to merchant for this TenderlabelKey
- The package name of your application, unless you arecom.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 taken- Returns:
- null if the tender could not be created
- Throws:
RemoteException
-
setEnabled
public Tender setEnabled(String tenderId, boolean enabled, ResultStatus resultStatus) throws RemoteException
Enabling or disabling a tender causes the tender to either be shown in or hidden by the Clover Register and Sale apps.- Specified by:
setEnabled
in interfaceITenderService
- Throws:
RemoteException
-
delete
public void delete(String tenderId, ResultStatus resultStatus) throws RemoteException
Delete the tender for the given id.- Specified by:
delete
in interfaceITenderService
- Throws:
RemoteException
-
setOpensCashDrawer
public void setOpensCashDrawer(String tenderId, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
When a payment is made with this tender the cash drawer can be made to automatically open or not.- Specified by:
setOpensCashDrawer
in interfaceITenderService
- Throws:
RemoteException
-
setLabel
public void setLabel(String tenderId, String tenderLable, ResultStatus resultStatus) throws RemoteException
Change the label for the given tender id.- Specified by:
setLabel
in interfaceITenderService
- Throws:
RemoteException
-
asBinder
public IBinder asBinder()
- Specified by:
asBinder
in interfaceIInterface
-
-