MppConsumerInformation

Objective-C

@interface MppConsumerInformation : NSObject

Swift

class MppConsumerInformation : NSObject

Consumer information used for Click To Pay push provisioning.

MppConsumerInformation properties

  • 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 }
  • Phones.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSArray<MppPhone *> *phones;

    Swift

    var phones: [MppPhone] { get }
  • Emails.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) 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 }

MppConsumerInformation methods

  • 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 *_Nonnull)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

    externalConsumerId

    External consumer id.

    firstName

    First name.

    middleName

    Middle name.

    lastName

    Last name.

    phone

    Phone.

    email

    Email.

    locale

    Locale.

    countryCode

    Country code.

  • Creates consumer information object from dictionary.

    Declaration

    Objective-C

    + (instancetype _Nullable)consumerInformationWithDictionary:
        (NSDictionary *_Nonnull)dictionary;

    Swift

    convenience init?(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    Dictionary.

  • 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() -> Bool

    Return Value

    true value if consumer information is valid.