BRAccountLinkingConfiguration
Objective-C
@interface BRAccountLinkingConfiguration : NSObject
/**
* Set this property to control how far back in the user's history to search for orders
*
* Default: 15
*/
@property (nonatomic) NSInteger dayCutoff;
/**
* This property is an alternative to `dayCutoff` which allows you to set a specific date/time that serves as the boundary of how far back to search.
* If set, it will override `dayCutoff`
*
* Default: nil
*/
@property (nonatomic, strong, nullable) NSDate *dateCutoff;
/**
* When set to YES, the first scrape will attempt to retrieve orders back to the `dayCutoff` or `dateCutoff` but all subsequent scrapes will only go as far back as the last scrape date regardless of whether the first scrape completed
* When set to NO, subsequent scrapes will continue to fetch historical orders until `dayCutoff` or `dateCutoff` is reached, and after that, scrapes will only go back to the last scrape date
*
* Default: YES
*/
@property (nonatomic) BOOL returnLatestOrdersOnly;
/**
* Set this to a different country to access the correct version of the retailer's site, if it exists for that country (currently only supports Amazon UK)
*
* Default: @"US"
*/
@property (nonatomic, copy, nonnull) NSString *countryCode;
@end
Swift
class BRAccountLinkingConfiguration : NSObject
-
Set this property to control how far back in the user’s history to search for orders
Default: 15
Declaration
Objective-C
@property (nonatomic) NSInteger dayCutoff;
Swift
var dayCutoff: Int { get set }
-
This property is an alternative to
dayCutoff
which allows you to set a specific date/time that serves as the boundary of how far back to search. If set, it will overridedayCutoff
Default: nil
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSDate *dateCutoff;
Swift
var dateCutoff: Date? { get set }
-
When set to YES, the first scrape will attempt to retrieve orders back to the
dayCutoff
ordateCutoff
but all subsequent scrapes will only go as far back as the last scrape date regardless of whether the first scrape completed When set to NO, subsequent scrapes will continue to fetch historical orders untildayCutoff
ordateCutoff
is reached, and after that, scrapes will only go back to the last scrape dateDefault: YES
Declaration
Objective-C
@property (nonatomic) BOOL returnLatestOrdersOnly;
Swift
var returnLatestOrdersOnly: Bool { get set }
-
Set this to a different country to access the correct version of the retailer’s site, if it exists for that country (currently only supports Amazon UK)
Default: @“US”
Declaration
Objective-C
@property (nonatomic, copy, nonnull) NSString *countryCode;
Swift
var countryCode: String { get set }