MppConsumerInformation
Objective-C
@interface MppConsumerInformation : NSObject
Swift
class MppConsumerInformation : NSObject
Consumer information used for Click To Pay push provisioning.
-
External consumer id.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *externalConsumerId;Swift
var externalConsumerId: String? { get } -
First name.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *firstName;Swift
var firstName: String { get } -
Middle name.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *middleName;Swift
var middleName: String? { get } -
Last name.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *lastName;Swift
var lastName: String { get } -
Emails.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *emails;Swift
var emails: [String]? { get } -
Locale.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *locale;Swift
var locale: String { get } -
Country Code
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *countryCode;Swift
var countryCode: String { get }
-
+consumerInformationWithExternalConsumerId:firstName: middleName: lastname: phone: email: locale: countryCode: Creates consumer information object.
Declaration
Objective-C
+ (instancetype _Nullable) consumerInformationWithExternalConsumerId: (NSString *_Nullable)externalConsumerId firstName:(NSString *_Nonnull)firstName middleName:(NSString *_Nullable)middleName lastname:(NSString *_Nonnull)lastName phone:(MppPhone *_Nonnull)phone email:(NSString *_Nullable)email locale:(NSString *_Nonnull)locale countryCode:(NSString *_Nonnull)countryCode;Swift
convenience init?(externalConsumerId: String?, firstName: String, middleName: String?, lastname lastName: String, phone: MppPhone, email: String?, locale: String, countryCode: String)Parameters
externalConsumerIdExternal consumer id.
firstNameFirst name.
middleNameMiddle name.
lastNameLast name.
phonePhone.
emailEmail.
localeLocale.
countryCodeCountry code.
-
Creates consumer information object from dictionary.
Declaration
Objective-C
+ (instancetype _Nullable)consumerInformationWithDictionary: (NSDictionary *_Nonnull)dictionary;Swift
convenience init?(dictionary: [AnyHashable : Any])Parameters
dictionaryDictionary.
-
Dictionary representing consumer information.
Declaration
Objective-C
- (NSDictionary *_Nonnull)toDictionary;Swift
func toDictionary() -> [AnyHashable : Any]Return Value
Dictionary representing consumer information.
-
Verify if consumer information is valid.
Declaration
Objective-C
- (BOOL)isValid;Swift
func isValid() -> BoolReturn Value
truevalue if consumer information is valid. -
Verify if consumer information is valid.
Declaration
Objective-C
- (NSError *_Nullable)validate;Swift
func validate() -> (any Error)?Return Value
error if consumer information is invalid,
nilotherwise.
MppConsumerInformation Class Reference