OIOrder Class Reference
Inherits from | NSObject |
Declared in | OIOrder.h OIOrder.m |
Tasks
-
orderID
Ordr.in’s reference number for that order.
property -
total
Ordr.in’s restaurant identifier.
property -
restaurantBase
Base informtion about restaurant.
property -
tip
Amount of tip in dollars and cents.
property -
date
Either ASAP or in the date format 2 digit month – 2 digit date (i.e. January 21 would be 01-21)
property -
items
Order items.
property -
+ createOrderWithRestaurantId:atAddress:withCard:date:orderItems:tip:usingBlock:
Create new order.
-
+ loadOrderHistoryUsingBlock:
Load all user orders.
-
+ loadOrderByID:usingBlock:
Load user order by its ID.
Properties
date
@property (nonatomic, readwrite, retain) NSDate *date
Discussion
Either ASAP or in the date format 2 digit month – 2 digit date (i.e. January 21 would be 01-21)
Declared In
OIOrder.h
items
Order items.
@property (nonatomic, readwrite, retain) NSArray *items
Discussion
Order items.
Declared In
OIOrder.h
orderID
Ordr.in’s reference number for that order.
@property (nonatomic, readwrite, copy) NSString *orderID
Discussion
Ordr.in’s reference number for that order.
Declared In
OIOrder.h
restaurantBase
Base informtion about restaurant.
@property (nonatomic, readwrite, retain) OIRestaurantBase *restaurantBase
Discussion
Base informtion about restaurant.
Declared In
OIOrder.h
Class Methods
createOrderWithRestaurantId:atAddress:withCard:date:orderItems:tip:usingBlock:
Create new order.
+ (void)createOrderWithRestaurantId:(NSString *)restaurantID atAddress:(OIAddress *)address withCard:(OICardInfo *)card date:(NSDate *)date orderItems:(NSString *)orderItems tip:(NSNumber *)tip usingBlock:(void ( ^ ) ( NSError *error ))block
Parameters
- restaurantID
Restaurant id.
- date
Delivery time.
- orderItems
Ordered items represented by (NSString).
- tip
Amount of tip in dollars and cents.
- Delivery
address (OIAddress).
- Payment
card (OICardInfo).
Return Value
block Return nil if request finished correctly.
Discussion
Create new order.
Declared In
OIOrder.h