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: NO
*/
@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
-
Declaration
Objective-C
@property (nonatomic, readonly) BRAccountLinkingRetailer retailer
Swift
var retailer: BRAccountLinkingRetailer { get }
-
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *username
Swift
var username: String? { get }
-
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval lastExecutionTime
Swift
var lastExecutionTime: TimeInterval { get }
-
Declaration
Objective-C
@property (nonatomic, readonly) NSUInteger lastExecutionCode
Swift
var lastExecutionCode: UInt { get }
-
Set this property to YES, if you want users to authenticate with merchant’s webpage directly
Default: NO
Declaration
Objective-C
@property (nonatomic) BOOL webviewAuthEnabled;
Swift
var webviewAuthEnabled: Bool { get set }
-
Declaration
Objective-C
@property (nonatomic, strong, nonnull) BRAccountLinkingConfiguration *configuration
Swift
var configuration: BRAccountLinkingConfiguration { get set }
-
Unavailable
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Declaration
Objective-C
- (instancetype)initWithRetailer:(BRAccountLinkingRetailer)retailer;
Swift
init(retailer: BRAccountLinkingRetailer)
-
Declaration
Objective-C
- (instancetype)initWithRetailer:(BRAccountLinkingRetailer)retailer username:(NSString * _Nullable)username password:(NSString * _Nullable)password;
Swift
init(retailer: BRAccountLinkingRetailer, username: String?, password: String?)