MNFMerchant

Objective-C

@interface MNFMerchant : MNFObject

Swift

class MNFMerchant : MNFObject

The MNFMerchant class represents all information of a merchant.

  • @abstract The address of the merchant represented in an MNFMerchantAddress object.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) MNFMerchantAddress *_Nonnull address;

    Swift

    var address: MNFMerchantAddress { get }
  • @abstract A list of category scores for the merchant represented in MNFCategoryScores objects.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<MNFCategoryScore *> *_Nonnull categoryScores;

    Swift

    var categoryScores: [MNFCategoryScore] { get }
  • @abstract A list of child merchants of this merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<MNFMerchant *> *_Nonnull childMerchants;

    Swift

    var childMerchants: [MNFMerchant] { get }
  • @abstract A list of detected categories and their scores for this merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<MNFCategoryScore *> *_Nonnull detectedCategory;

    Swift

    var detectedCategory: [MNFCategoryScore] { get }
  • @abstract The directory link of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull directoryLink;

    Swift

    var directoryLink: String { get }
  • @abstract The email of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull email;

    Swift

    var email: String { get }
  • @abstract The unique identifier of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull merchantIdentifier;

    Swift

    var merchantIdentifier: String { get }
  • @abstract The master identifier of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull masterIdentifier;

    Swift

    var masterIdentifier: String { get }
  • @abstract The merchant category identifier of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull merchantCategoryIdentifier;

    Swift

    var merchantCategoryIdentifier: String { get }
  • @abstract The name of the identifier.

    Declaration

    Objective-C

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

    Swift

    var name: String { get }
  • @abstract An offers link for the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull offersLink;

    Swift

    var offersLink: String { get }
  • @abstract The parent identifier of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSNumber *_Nonnull parentId;

    Swift

    var parentId: NSNumber { get }
  • @abstract The parent merchant of this merchant.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) MNFMerchant *_Nonnull parentMerchant;

    Swift

    var parent: MNFMerchant { get }
  • @abstract The name of the parent merchant of this merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull parentName;

    Swift

    var parentName: String { get }
  • @abstract The public identifier of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull publicIdentifier;

    Swift

    var publicIdentifier: String { get }
  • @abstract The telephone number of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull telephone;

    Swift

    var telephone: String { get }
  • @abstract The web page of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull webpage;

    Swift

    var webpage: String { get }
  • @abstract Custom attributes of the merchant.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSDictionary *_Nonnull customAttributes;

    Swift

    var customAttributes: [AnyHashable : Any] { get }
  • @abstract Fetches a merchant with a given identifier.

    Declaration

    Objective-C

    + (nonnull MNFJob *)fetchWithId:(nonnull NSNumber *)identifier
                         completion:
                             (nullable MNFMerchantCompletionHandler)completion;

    Swift

    class func fetch(withId identifier: NSNumber, completion: MNFMerchantCompletionHandler? = nil) -> MNFJob

    Parameters

    identifier

    The identifier of the merchant.

    completion

    A completion block returning a merchant and an error.

    Return Value

    An MNFJob containing a merchant and an error.

  • @abstract Fetches a list of merchants with a given identifiers.

    Declaration

    Objective-C

    + (nonnull MNFJob *)
        fetchMerchantsWithIds:(nonnull NSArray<NSNumber *> *)identifiers
                   completion:
                       (nullable MNFMultipleMerchantsCompletionHandler)completion;

    Swift

    class func fetchMerchants(withIds identifiers: [NSNumber], completion: MNFMultipleMerchantsCompletionHandler? = nil) -> MNFJob

    Parameters

    identifiers

    The identifiers of the merchants. Duplicate identifiers are filtered out.

    completion

    A completion block returning a list of merchants and an error.

    Return Value

    An MNFJob containing a list of merchants and an error.