SensibillTransactionMatcher
Objective-C
@interface SensibillTransactionMatcher : NSObject
Swift
class SensibillTransactionMatcher : NSObject
Protocol outlining the functionality of SensibillTransactionMatcher
-
Returns shared instance of SensibillTransactionMatcher
Declaration
Objective-C
+ (instancetype _Nonnull)sharedInstance;
Swift
class func sharedInstance() -> Self
Return Value
SensibillTransactionMatcher
-
Matches Receipts to Banking Account Transactions
Declaration
Objective-C
- (void)receiptsForTransactions: (NSArray<SBExternalAccountTransaction *> *_Nonnull)transactions completion: (void (^_Nonnull)(NSDictionary *_Nullable, NSError *_Nullable))completion;
Swift
func receipts(for transactions: [SBExternalAccountTransaction]) async throws -> [AnyHashable : Any]
Parameters
transactions
array of External Account Transactions to match receipts against
completion
callback that will be called when matching has been completed
-
Matches Receipts to Banking Account Transactions with the option to force SDK to perform checks regardless of date range of transactions
Declaration
Objective-C
- (void)receiptsForTransactions: (NSArray<SBExternalAccountTransaction *> *_Nonnull)transactions ignoringDateRangeRestriction:(BOOL)ignoreDateRangeRestriction completion: (void (^_Nonnull)(NSDictionary *_Nullable, NSError *_Nullable))completion;
Swift
func receipts(for transactions: [SBExternalAccountTransaction], ignoringDateRangeRestriction ignoreDateRangeRestriction: Bool) async throws -> [AnyHashable : Any]
Parameters
transactions
array of External Account Transactions to match receipts against
ignoreDateRangeRestriction
boolean passed to determine if data range should be considered. True will ignore date restrictions, false will consider data restrictions
completion
callback that will be called when matching has been completed