Models
-
See moreVoucheris the model that encompases all components of a ‘gift’. This class is immutable. UseMutableVoucherif you need to change values.Declaration
Objective-C
@interface Voucher : NSObject <NSCoding>Swift
class Voucher : NSObject, NSCoding
-
See moreUsermodel 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 moreActivityFeedVoucheris a light version of theVouchercontaining only information relevant to the activity feed.ActivityFeedVoucheris intended to be used to display in a list of cells.Declaration
Objective-C
@interface ActivityFeedVoucher : NSObjectSwift
class ActivityFeedVoucher : NSObject
-
See moreVoucherMediais 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 moreVoucherPaymentcontains all payment information including source, destination, and redemption information. EachUserrequesting aVoucherwill receive differentVoucherPaymentinformation depending on their association of the Voucher.Declaration
Objective-C
@interface VoucherPayment : NSObjectSwift
class VoucherPayment : NSObject
-
See moreUserNetworkis a model to represent the different networks a user has connected with.Declaration
Objective-C
@interface UserNetwork : NSObjectSwift
class UserNetwork : NSObject
-
See moreMerchants 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 morePaymentInfocontains data related to a part of the payment process.Declaration
Objective-C
@interface PaymentInfo : NSObjectSwift
class PaymentInfo : NSObject
-
VouchrErrorwill be returned inside the userInfo of an NSError on errors from the VouchrServer when using theNetworkManagerto make network calls.It can be accessed from the NSError:
See moreVouchrError *vouchrError = error.userInfo[@"message"];Declaration
Objective-C
@interface VouchrError : NSObjectSwift
class VouchrError : NSObject
-
A
See moreWrappingPaperMediacontains the data to show a wrapping on anEnvelopeView.Declaration
Objective-C
@interface WrappingPaperMedia : ImageMediaSwift
class WrappingPaperMedia : ImageMedia
-
See moreWrappingPaperCategoryis the model for representing a collection of likeWrappingPapers.Declaration
Objective-C
@interface WrappingPaperCategory : NSObjectSwift
class WrappingPaperCategory : NSObject
-
See moreNoteMediais aVouchrMediafor text based media.
-
See moreImageMediais aVouchrMediafor photos and animated photos.
-
See moreVideoMediais aVouchrMediafor videos.
View on GitHub
Models Reference