IReceiptRegistrationService

public interface IReceiptRegistrationService implements IInterface

An interface for registering components that wish to add additional data to customer receipts. Developers that wish to add additional data to customer receipts should call the register method to register the URI of a content provider that will provide receipt data. Said content provider must conform to the ReceiptContract contract. The ReceiptRegistration service is a bound AIDL service. Bind to this service as follows,


Intent serviceIntent = new Intent(PrinterIntent.ACTION_RECEIPT_REGISTRATION);
serviceIntent.putExtra(PrinterIntent.EXTRA_ACCOUNT, CloverAccount.getAccount(context));
serviceIntent.putExtra(PrinterIntent.EXTRA_VERSION, 1);
context.bindService(serviceIntent);
For more information about bound services, refer to the Android documentation: Bound Services . You may also interact with the receipt registration service through the com.clover.sdk.v1.printer.ReceiptRegistrationConnector class, which handles binding and asynchronous invocation of service methods.

See also

Inheritors

Types

Link copied to clipboard
public class _Parcel
Link copied to clipboard
public class Default implements IReceiptRegistrationService
Default implementation for IReceiptRegistrationService.
Link copied to clipboard
public abstract class Stub extends Binder implements IReceiptRegistrationService
Local-side IPC implementation stub class.

Functions

Link copied to clipboard
public abstract IBinder asBinder()
Link copied to clipboard
public abstract List<ReceiptRegistration> getRegistrations(ResultStatus resultStatus)
Link copied to clipboard
public abstract void register(Uri uri, ResultStatus resultStatus)
Link copied to clipboard
public abstract void unregister(Uri uri, ResultStatus resultStatus)