Inherits from LUAPIModel : NSObject
Declared in LUOrder.h
LUOrder.m

Overview

LUOrder represents an order made using LevelUp.

Properties

UUID

The unique identifier for this order.

@property (nonatomic, copy, readonly) NSString *UUID

Discussion

The unique identifier for this order.

Declared In

LUOrder.h

balance

The amount of money that will be (or has been) charged to the user for this order.

@property (nonatomic, strong, readonly) LUMonetaryValue *balance

Discussion

The amount of money that will be (or has been) charged to the user for this order.

Declared In

LUOrder.h

bundleClosedDate

The date that this order’s bundle was closed. If this is nil, then this order hasn’t been closed.

@property (nonatomic, copy, readonly) NSDate *bundleClosedDate

Discussion

The date that this order’s bundle was closed. If this is nil, then this order hasn’t been closed.

Declared In

LUOrder.h

bundleDescriptor

The descriptor that will appear on the user’s statement, if this order has been closed.

@property (nonatomic, copy, readonly) NSString *bundleDescriptor

Discussion

The descriptor that will appear on the user’s statement, if this order has been closed.

Declared In

LUOrder.h

contribution

The contribution associated with this order (if one was made).

@property (nonatomic, strong, readonly) LUMonetaryValue *contribution

Discussion

The contribution associated with this order (if one was made).

Declared In

LUOrder.h

contributionTargetName

The name of the contribution associated with this order, if one was made.

@property (nonatomic, strong, readonly) NSString *contributionTargetName

Discussion

The name of the contribution associated with this order, if one was made.

Declared In

LUOrder.h

createdDate

The date that this order was created.

@property (nonatomic, copy, readonly) NSDate *createdDate

Discussion

The date that this order was created.

Declared In

LUOrder.h

credit

The amount of credit applied to this order.

@property (nonatomic, strong, readonly) LUMonetaryValue *credit

Discussion

The amount of credit applied to this order.

Declared In

LUOrder.h

earn

The amount of credit the user earned with this purchase.

@property (nonatomic, strong, readonly) LUMonetaryValue *earn

Discussion

The amount of credit the user earned with this purchase.

Declared In

LUOrder.h

identifierFromMerchant

An optional identifier from the merchant at which the order was placed.

@property (nonatomic, copy, readonly) NSString *identifierFromMerchant

Discussion

An optional identifier from the merchant at which the order was placed.

Declared In

LUOrder.h

items

An optional array of LUOrderItem instances.

@property (nonatomic, strong, readonly) NSArray *items

Discussion

An optional array of LUOrderItem instances.

Declared In

LUOrder.h

locationExtendedAddress

An optional “extended” address for the location at which this order was made. An example would be an apartment number.

@property (nonatomic, copy, readonly) NSString *locationExtendedAddress

Discussion

An optional “extended” address for the location at which this order was made. An example would be an apartment number.

Declared In

LUOrder.h

locationID

The ID of the location at which this order was made.

@property (nonatomic, copy, readonly) NSNumber *locationID

Discussion

The ID of the location at which this order was made.

Declared In

LUOrder.h

locationLocality

The town or city of the location at which this order was made.

@property (nonatomic, copy, readonly) NSString *locationLocality

Discussion

The town or city of the location at which this order was made.

Declared In

LUOrder.h

locationName

The name of the location at which this order was made.

@property (nonatomic, copy, readonly) NSString *locationName

Discussion

The name of the location at which this order was made.

Declared In

LUOrder.h

locationPostalCode

The postal code of the location at which this order was made.

@property (nonatomic, copy, readonly) NSString *locationPostalCode

Discussion

The postal code of the location at which this order was made.

Declared In

LUOrder.h

locationRegion

The region of the location at which this order was made.

@property (nonatomic, copy, readonly) NSString *locationRegion

Discussion

The region of the location at which this order was made.

Declared In

LUOrder.h

locationStreetAddress

The street address of the location at which this order was made.

@property (nonatomic, copy, readonly) NSString *locationStreetAddress

Discussion

The street address of the location at which this order was made.

Declared In

LUOrder.h

merchantID

The ID of the merchant at which this order was made.

@property (nonatomic, copy, readonly) NSNumber *merchantID

Discussion

The ID of the merchant at which this order was made.

Declared In

LUOrder.h

merchantName

The name of the merchant at which this order was made.

@property (nonatomic, copy, readonly) NSString *merchantName

Discussion

The name of the merchant at which this order was made.

Declared In

LUOrder.h

refundedDate

If this order has been refunded, the date that this order was refunded. If the order hasn’t been refunded, this will be nil.

@property (nonatomic, copy, readonly) NSDate *refundedDate

Discussion

If this order has been refunded, the date that this order was refunded. If the order hasn’t been refunded, this will be nil.

Declared In

LUOrder.h

spend

The amount the user spent for this order, not including tip.

@property (nonatomic, strong, readonly) LUMonetaryValue *spend

Discussion

The amount the user spent for this order, not including tip.

Declared In

LUOrder.h

tip

The tip made for this order.

@property (nonatomic, strong, readonly) LUMonetaryValue *tip

Discussion

The tip made for this order.

Declared In

LUOrder.h

total

The sum of spend and tip.

@property (nonatomic, strong, readonly) LUMonetaryValue *total

Discussion

The sum of spend and tip.

Declared In

LUOrder.h

transactedDate

The date that this order was transacted.

@property (nonatomic, copy, readonly) NSDate *transactedDate

Discussion

The date that this order was transacted.

Declared In

LUOrder.h

Instance Methods

closed

Specifies if an order is closed.

- (BOOL)closed

Discussion

Specifies if an order is closed.

Declared In

LUOrder.h

hasContribution

Specifies if a contribution was made on this order.

- (BOOL)hasContribution

Discussion

Specifies if a contribution was made on this order.

Declared In

LUOrder.h

hasEarnedCredit

Specifies if the user earned credit on this order.

- (BOOL)hasEarnedCredit

Discussion

Specifies if the user earned credit on this order.

Declared In

LUOrder.h

hasNonZeroBalance

Specifies if this order has a non-zero balance.

- (BOOL)hasNonZeroBalance

Discussion

Specifies if this order has a non-zero balance.

Declared In

LUOrder.h

hasTipApplied

Specifies if this order included a tip.

- (BOOL)hasTipApplied

Discussion

Specifies if this order included a tip.

Declared In

LUOrder.h

hasUsedCredit

Specifies if credit was used on this order.

- (BOOL)hasUsedCredit

Discussion

Specifies if credit was used on this order.

Declared In

LUOrder.h

imageURL

An associated image for the order’s location. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution is 320x212.

- (NSURL *)imageURL

Discussion

An associated image for the order’s location. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution is 320x212.

Declared In

LUOrder.h

singleLineAddress

A helper method which returns all the address fields in one line. The format is “, , ”. For example: “123 Main Street, Apt 2A, Boston, MA 01234”.

- (NSString *)singleLineAddress

Discussion

A helper method which returns all the address fields in one line. The format is “, , ”. For example: “123 Main Street, Apt 2A, Boston, MA 01234”.

Declared In

LUOrder.h

wasRefunded

Specifies if this order has been refunded.

- (BOOL)wasRefunded

Discussion

Specifies if this order has been refunded.

Declared In

LUOrder.h