public interface ITenderService extends IInterface
Intent serviceIntent = new Intent(TenderIntent.ACTION_TENDER_SERVICE);
serviceIntent.putExtra(Intents.EXTRA_ACCOUNT, CloverAccount.getAccount(context));
serviceIntent.putExtra(Intents.EXTRA_VERSION, 1);
context.bindService(serviceIntent);
For more information about bound services, refer to
the Android documentation:
Bound Services
.
TenderConnector
class, which handles binding and
asynchronous invocation of service methods.
A tender is a method of payment allowed by the Merchant such as Credit Card, Cash or Check. Merchants may support custom tenders to allow customers to pay via special reward programs for example. Some tenders are built-in and cannot be deleted or modified, these are called system tenders.
TenderIntent
,
CloverAccount
,
TenderConnector
Modifier and Type | Interface and Description |
---|---|
static class |
ITenderService.Default
Default implementation for ITenderService.
|
static class |
ITenderService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
asBinder
List<Tender> getTenders(ResultStatus resultStatus) throws RemoteException
RemoteException
Tender checkAndCreateTender(String label, String labelKey, boolean enabled, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
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
Tender setEnabled(String tenderId, boolean enabled, ResultStatus resultStatus) throws RemoteException
RemoteException
void delete(String tenderId, ResultStatus resultStatus) throws RemoteException
RemoteException
void setOpensCashDrawer(String tenderId, boolean opensCashDrawer, ResultStatus resultStatus) throws RemoteException
RemoteException
void setLabel(String tenderId, String tenderLable, ResultStatus resultStatus) throws RemoteException
RemoteException