Package com.clover.sdk.v3.order
Class OrderContract
- java.lang.Object
-
- com.clover.sdk.v3.order.OrderContract
-
public final class OrderContract extends Object
The contract between the orders provider and apps. For more detailed information about orders please seeIOrderServiceV3_1
. The content provider for orders may be used directly by apps wishing to use aCursor
to navigate a large orders database. Specifically using the contract allows an app to discover all the recent orders (via query). Read Content provider basics for an overview of how to interact with a content provider. In this case only methods which read data such asContentResolver.query(Uri, String[], Bundle, CancellationSignal)
will work. Methods which write data will be rejected. Using this contract requires the client app havePermission.ORDERS_R
permission. To mutate orders use through the wrapper classOrderConnector
. The orders provider which fulfills this contract supplies only recent orders (seeOrderContract.OrderSummary
). Older orders can be fetched via the OrderConnector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OrderContract.OrderSummary
Provides order summaries for up to 100 days of recent orders.static interface
OrderContract.OrderSummaryColumns
The values in these columns correspond to the data found in anOrder
.static class
OrderContract.Summaries
Deprecated.OrderContract.OrderSummary
replaces this.static interface
OrderContract.SummaryColumns
-
Field Summary
Fields Modifier and Type Field Description static String
ACCOUNT_NAME_PARAM
static String
ACCOUNT_TYPE_PARAM
static String
ACTION_UPDATE_STATUS
static String
AUTH_TOKEN_PARAM
static String
AUTHORITY
The authority for the orders providerstatic Uri
AUTHORITY_URI
A content:// style uri to the authority for the contacts provider
-
Constructor Summary
Constructors Constructor Description OrderContract()
-
-
-
Field Detail
-
AUTHORITY
public static final String AUTHORITY
The authority for the orders provider- See Also:
- Constant Field Values
-
AUTHORITY_URI
public static final Uri AUTHORITY_URI
A content:// style uri to the authority for the contacts provider
-
ACTION_UPDATE_STATUS
public static final String ACTION_UPDATE_STATUS
- See Also:
- Constant Field Values
-
AUTH_TOKEN_PARAM
public static final String AUTH_TOKEN_PARAM
- See Also:
- Constant Field Values
-
ACCOUNT_NAME_PARAM
public static final String ACCOUNT_NAME_PARAM
- See Also:
- Constant Field Values
-
ACCOUNT_TYPE_PARAM
public static final String ACCOUNT_TYPE_PARAM
- See Also:
- Constant Field Values
-
-