Interface IOrderService

  • All Superinterfaces:
    IInterface
    All Known Implementing Classes:
    IOrderService.Default, IOrderService.Stub

    public interface IOrderService
    extends IInterface
    Deprecated.
    Please use the IOrderServiceV3_1 via OrderConnector instead, it offers all the same functionality but is designed to handle large orders (over 1MB) that cause this API to fail. New methods may not be added to this class going forward.
    An interface for interacting with the Clover order service. The order service is a bound AIDL service. Bind to this service as follows:
     
     Intent serviceIntent = new Intent(OrderIntent.ACTION_ORDER_SERVICE_V3);
     serviceIntent.putExtra(Intents.EXTRA_ACCOUNT, CloverAccount.getAccount(context));
     serviceIntent.putExtra(Intents.EXTRA_VERSION, 3);
     context.bindService(serviceIntent);
     
     
    For more information about bound services, refer to the Android documentation: Bound Services .

    You may also interact with this service through the OrderConnector class, which handles binding and asynchronous invocation of service methods.

    This service is backed by a local database which is synced to cloud. Thus changes made by calling methods here will be reflected on all of a merchant's devices and on the web.

    Most methods require ORDERS_R and/or ORDERS_W permission.