Models
-
See moreVoucher
is the model that encompases all components of a ‘gift’. This class is immutable. UseMutableVoucher
if you need to change values.Declaration
Objective-C
@interface Voucher : NSObject <NSCoding>
Swift
class Voucher : NSObject, NSCoding
-
See moreUser
model for the VouchrSDK. Users are used to identify the logged in user and typically gifts are sent to aUser
(s).Declaration
Objective-C
@interface User : NSObject <NSCoding, NSCopying>
Swift
class User : NSObject, NSCoding, NSCopying
-
See moreActivityFeedVoucher
is a light version of theVoucher
containing only information relevant to the activity feed.ActivityFeedVoucher
is intended to be used to display in a list of cells.Declaration
Objective-C
@interface ActivityFeedVoucher : NSObject
Swift
class ActivityFeedVoucher : NSObject
-
See moreVoucherMedia
is the model for all Media items inside of aVoucher
. It represents all of the different Media types: Image - Any kind of photo (eg. png, jpg). Animation - Any kind of animated photo (eg. gif). Sound - Any kind of sound (eg. mp3). Youtube - A youtube video. Video - Any kind of video (eg. m4a). Note - Any kind of text.Declaration
Objective-C
@interface VoucherMedia : NSObject <NSCoding>
Swift
class VoucherMedia : NSObject, NSCoding
-
See moreVoucherPayment
contains all payment information including source, destination, and redemption information. EachUser
requesting aVoucher
will receive differentVoucherPayment
information depending on their association of the Voucher.Declaration
Objective-C
@interface VoucherPayment : NSObject
Swift
class VoucherPayment : NSObject
-
See moreUserNetwork
is a model to represent the different networks a user has connected with.Declaration
Objective-C
@interface UserNetwork : NSObject
Swift
class UserNetwork : NSObject
-
See moreMerchant
s represent a personalization type that is of monetary value (eg. Gift cards, Money Transfers).Declaration
Objective-C
@interface Merchant : NSObject <NSCoding>
Swift
class Merchant : NSObject, NSCoding
-
See morePaymentInfo
contains data related to a part of the payment process.Declaration
Objective-C
@interface PaymentInfo : NSObject
Swift
class PaymentInfo : NSObject
-
VouchrError
will be returned inside the userInfo of an NSError on errors from the VouchrServer when using theNetworkManager
to make network calls.It can be accessed from the NSError:
See moreVouchrError *vouchrError = error.userInfo[@"message"];
Declaration
Objective-C
@interface VouchrError : NSObject
Swift
class VouchrError : NSObject
-
A
See moreWrappingPaperMedia
contains the data to show a wrapping on anEnvelopeView
.Declaration
Objective-C
@interface WrappingPaperMedia : ImageMedia
Swift
class WrappingPaperMedia : ImageMedia
-
See moreWrappingPaperCategory
is the model for representing a collection of likeWrappingPaper
s.Declaration
Objective-C
@interface WrappingPaperCategory : NSObject
Swift
class WrappingPaperCategory : NSObject
-
See moreNoteMedia
is aVouchrMedia
for text based media.
-
See moreImageMedia
is aVouchrMedia
for photos and animated photos.
-
See moreVideoMedia
is aVouchrMedia
for videos.