LUOrderRequestFactory Class Reference
Inherits from | NSObject |
Declared in | LUOrderRequestFactory.h LUOrderRequestFactory.m |
Class Methods
requestForOrderWithUUID:
Builds a request to retrieve an order.
+ (LUAPIRequest *)requestForOrderWithUUID:(NSString *)UUID
Parameters
- UUID
The UUID of the order to retrieve.
Discussion
Builds a request to retrieve an order.
On success, this request will return an LUOrder
instance.
Warning: This request requires an access token with the LUPermissionReadUserOrders
permission.
Declared In
LUOrderRequestFactory.h
requestForOrders
Builds a request to retrieve orders that the current user has made at merchants associated with the app.
+ (LUAPIRequest *)requestForOrders
Discussion
Builds a request to retrieve orders that the current user has made at merchants associated with the app.
On success, this request will return an array of LUOrder
instances. The response will include a
URL for the next page of results. This URL can be used with requestForOrdersOnPage:
to retrieve
the next page of orders.
Warning: This request requires an access token with the LUPermissionReadUserOrders
permission.
Declared In
LUOrderRequestFactory.h
requestForOrdersOnPage:
Builds a request to retrieve the given page of orders.
+ (LUAPIRequest *)requestForOrdersOnPage:(NSURL *)pageURL
Parameters
- pageURL
The next page of orders to request.
Discussion
Builds a request to retrieve the given page of orders.
On success, this request will return an array of LUOrder
instances. If this page doesn’t include
any orders, the response will be empty with a status code of 204 (No Content).
Warning: This request requires an access token with the LUPermissionReadUserOrders
permission.
Declared In
LUOrderRequestFactory.h