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

Overview

Representation of a gift card order. Used with LUGiftCardRequestFactory to create a LevelUp gift card.

Gift cards can be global (they can be used at any LevelUp merchant) or can be for a specific merchant.

Properties

merchantID

The merchant ID for the gift card. If nil, the gift card can be used at any merchant.

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

Discussion

The merchant ID for the gift card. If nil, the gift card can be used at any merchant.

Declared In

LUGiftCardOrder.h

recipientEmail

The gift card recipient’s email.

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

Discussion

The gift card recipient’s email.

Declared In

LUGiftCardOrder.h

recipientMessage

A message to display to the gift card recipient when they receive the gift card.

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

Discussion

A message to display to the gift card recipient when they receive the gift card.

Declared In

LUGiftCardOrder.h

recipientName

The gift card recipient’s name.

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

Discussion

The gift card recipient’s name.

Declared In

LUGiftCardOrder.h

value

The gift card’s amount.

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

Discussion

The gift card’s amount.

Declared In

LUGiftCardOrder.h

Instance Methods

initWithMerchantID:recipientEmail:recipientMessage:recipientName:value:

Initializer for LUGiftCardOrder.

- (instancetype)initWithMerchantID:(NSNumber *)merchantID recipientEmail:(NSString *)recipientEmail recipientMessage:(NSString *)recipientMessage recipientName:(NSString *)recipientName value:(LUMonetaryValue *)value

Parameters

merchantID

The merchant ID for the gift card. If nil, the gift card can be used at any merchant.

recipientEmail

The gift card recipient’s email.

recipientMessage

A message to display to the gift card recipient when they receive the gift card.

recipientName

The gift card recipient’s name.

value

The gift card’s amount.

Discussion

Initializer for LUGiftCardOrder.

Declared In

LUGiftCardOrder.h