VOMerchantProduct

@interface VOMerchantProduct : NSObject

VOMerchantProduct represents a product inside a VOMerchant. Eg. Xbox 3 month membership gift card.

  • A unique code associated with each VOMerchantProduct.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull code;

    Swift

    var code: String { get }
  • The cost of the product.

    Declaration

    Objective-C

    @property (readonly, nonatomic) double price;

    Swift

    var price: Double { get }
  • The name of the product.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *name;

    Swift

    var name: String? { get }
  • fee

    A fee associated with the product.

    Declaration

    Objective-C

    @property (readonly, nonatomic) double fee;

    Swift

    var fee: Double { get }
  • Default initializer for a VOMerchantProduct from a dictionary.

    Declaration

    Objective-C

    + (nonnull VOMerchantProduct *)productWithDictionary:
        (nonnull NSDictionary *)dictionary;

    Swift

    /*not inherited*/ init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    - dictionary form of a VOMerchantProduct.

    Return Value

    Instance of VOMerchantProduct.

  • Converts a VOMerchantProduct to an NSDictionary that can be used for caching or sending to the server.

    Declaration

    Objective-C

    - (nonnull NSDictionary *)dictionaryRepresentation;

    Swift

    func dictionaryRepresentation() -> [AnyHashable : Any]

    Return Value

    dictionary - Dictionary form of a VOMerchantProduct.