BRAccountLinkingConnection

Objective-C

@interface BRAccountLinkingConnection : NSObject

@property (nonatomic, readonly) BRAccountLinkingRetailer retailer;
@property (nonatomic, copy, readonly, nullable) NSString *username;
@property (nonatomic, readonly) NSTimeInterval lastExecutionTime;
@property (nonatomic, readonly) NSUInteger lastExecutionCode;

/**
 *  Set this property to YES, if you want users to authenticate with merchant's webpage directly
 *
 *  Default: YES
 */
@property (nonatomic) BOOL webviewAuthEnabled;

// A configuration object that defines the behavior when searching for new orders
@property (nonatomic, strong, nonnull) BRAccountLinkingConfiguration *configuration;


- (instancetype)init NS_UNAVAILABLE;

- (instancetype)initWithRetailer:(BRAccountLinkingRetailer)retailer;

- (instancetype)initWithRetailer:(BRAccountLinkingRetailer)retailer username:(NSString * _Nullable)username password:(NSString * _Nullable)password;

@end

Swift

class BRAccountLinkingConnection : NSObject