GiftCard
public struct GiftCard : Codable, Equatable
Struct representing Gift Card related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Number of gift card, serves as the unique identifier.
Declaration
Swift
public var cardNumber: String
-
An alphanumeric string needed to perform certain Gift Card transactions, such as linking a Gift Card to a member.
Declaration
Swift
public var pin: String
-
Unique name for the Gift Card.
Declaration
Swift
public var name: String
-
Brief description of gift card.
Declaration
Swift
public var desc: String
-
Remaining balance of gift card.
Declaration
Swift
public var balance: String
-
Gift card’s usage start date.
Declaration
Swift
public var usageStartDate: String
-
Gift card’s usage expiration.
Declaration
Swift
public var usageEndDate: String
-
The amount that triggers an auto reload.
Declaration
Swift
public var reloadThreshold: String
-
The amount to add to the Gift Card when performing an Auto Reload.
Declaration
Swift
public var reloadAmount: String
-
One-time-use token that references a payment method. This is generated by BrainTreeUI.
Declaration
Swift
public var paymentMethodNonce: String
-
Indicates if auto reloading is allowed.
Declaration
Swift
public var autoReload: Bool
-
Type of gift card.
Declaration
Swift
public var cardType: GiftCard.GiftCardType?
-
init(id:
cardNumber: pin: name: desc: balance: usageStartDate: usageEndDate: reloadThreshold: reloadAmount: paymentMethodNonce: autoReload: cardType: ) Undocumented
Declaration
Swift
public init(id: Int, cardNumber: String, pin: String, name: String, desc: String, balance: String, usageStartDate: String, usageEndDate: String, reloadThreshold: String, reloadAmount: String, paymentMethodNonce: String, autoReload: Bool, cardType: GiftCard.GiftCardType?)
-
Enumeration of transaction types.
See moreDeclaration
Swift
public enum TransactionType : String, Codable
-
Struct representing Gift Card Transaction related values.
See moreDeclaration
Swift
public struct Transaction : Codable, Equatable
-
Struct representing Gift Card Type related values.
See moreDeclaration
Swift
public struct GiftCardType : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws