MppTokenRequestor

Objective-C

@interface MppTokenRequestor : NSObject

Swift

class MppTokenRequestor : NSObject

Token Requestor that is eligible for the account ranges in the request.

MppTokenRequestor properties

  • Returns identifier of the Token Requestor.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *tokenRequestorId;

    Swift

    var tokenRequestorId: String? { get }

    Return Value

    Identifier of the Token Requestor.

  • Returns legal name of the token requestor.

    Declaration

    Objective-C

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

    Swift

    var name: String? { get }

    Return Value

    The legal name of the token requestor.

  • Returns the name of the token requestor to be displayed to the account holder.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *consumerFacingEntityName;

    Swift

    var consumerFacingEntityName: String? { get }

    Return Value

    The name of the token requestor.

  • Returns image of the token requestor (for instance a logo). Provided as an Asset ID – use the Get Asset API to retrieve the actual asset.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *imageAssetId;

    Swift

    var imageAssetId: String? { get }

    Return Value

    The Asset ID of image of token requestor.

  • Returns the type of the token requestor.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *tokenRequestorType;

    Swift

    var tokenRequestorType: String? { get }

    Return Value

    The type of the token requestor as instance of MppTokenRequestorType object.

  • Returns the identifier of the Wallet Provider.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *walletId;

    Swift

    var walletId: String? { get }

    Return Value

    The identifier of the Wallet Provider.

  • Returns array of account range start numbers that are enabled for the token requestor. The start numbers will be 19 digits in length.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray *enabledAccountRanges;

    Swift

    var enabledAccountRanges: [Any]? { get }

    Return Value

    List of account range start numbers.

  • Returns array of the push methods supported by the token requestor.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray *supportedPushMethods;

    Swift

    var supportedPushMethods: [Any]? { get }

    Return Value

    Supported push methods as array of MppPushMethod objects.

  • Returns flag to indicate if token requestor supports multiple push receipts in a single request.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL supportsMultiplePushedCards;

    Swift

    var supportsMultiplePushedCards: Bool { get }

    Return Value

    true if token requestor supports multiple push receipts in a single request, false otherwise

MppTokenRequestor methods

  • Constructs Token Requestor from values passed in dictionary.

    Declaration

    Objective-C

    + (nonnull instancetype)tokenRequestorWithDictionary:
        (NSDictionary *_Nonnull)dictionary;

    Swift

    convenience init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    Dictionary containing values to create a Token Requestor.

    Return Value

    Token Requestor.

  • Verify if given Token Requestor is valid.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Bool

    Return Value

    Bool value if given Token Requestor is valid.