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
-
Declaration
Objective-C
@property (nonatomic, readonly) BRAccountLinkingRetailer retailerSwift
var retailer: BRAccountLinkingRetailer { get } -
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *usernameSwift
var username: String? { get } -
Declaration
Objective-C
@property (nonatomic, readonly) NSTimeInterval lastExecutionTimeSwift
var lastExecutionTime: TimeInterval { get } -
Declaration
Objective-C
@property (nonatomic, readonly) NSUInteger lastExecutionCodeSwift
var lastExecutionCode: UInt { get } -
Set this property to YES, if you want users to authenticate with merchant’s webpage directly
Default: YES
Declaration
Objective-C
@property (nonatomic) BOOL webviewAuthEnabled;Swift
var webviewAuthEnabled: Bool { get set } -
Declaration
Objective-C
@property (nonatomic, strong, nonnull) BRAccountLinkingConfiguration *configurationSwift
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?)
View on GitHub