Skip to content

Commit 327cfab

Browse files
committed
V.2.53.0
1 parent fa88f1a commit 327cfab

18 files changed

Lines changed: 143 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
66
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 2.53.0 - 2022-9-13
9+
### Add
10+
- GetTransactions with type filter: Enriched, Categorized, Default
11+
812
## 2.52.1 - 2022-9-13
913
### Update
1014
- send SDK version to the dapi APIs

DapiConnect.xcframework/Info.plist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_i386_x86_64-simulator</string>
9+
<string>ios-arm64_armv7</string>
1010
<key>LibraryPath</key>
1111
<string>DapiConnect.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>i386</string>
16-
<string>x86_64</string>
15+
<string>armv7</string>
1716
</array>
1817
<key>SupportedPlatform</key>
1918
<string>ios</string>
20-
<key>SupportedPlatformVariant</key>
21-
<string>simulator</string>
2219
</dict>
2320
<dict>
2421
<key>LibraryIdentifier</key>
25-
<string>ios-arm64_armv7</string>
22+
<string>ios-arm64_i386_x86_64-simulator</string>
2623
<key>LibraryPath</key>
2724
<string>DapiConnect.framework</string>
2825
<key>SupportedArchitectures</key>
2926
<array>
3027
<string>arm64</string>
31-
<string>armv7</string>
28+
<string>i386</string>
29+
<string>x86_64</string>
3230
</array>
3331
<key>SupportedPlatform</key>
3432
<string>ios</string>
33+
<key>SupportedPlatformVariant</key>
34+
<string>simulator</string>
3535
</dict>
3636
</array>
3737
<key>CFBundlePackageType</key>
Binary file not shown.

DapiConnect.xcframework/ios-arm64_armv7/DapiConnect.framework/Headers/DPCAutoFlow.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ NS_SWIFT_NAME(DapiAutoFlow)
7575
DPCTransferResult *__nullable transferResult))completion;
7676

7777

78-
79-
78+
- (instancetype)initWithConnection:(DPCBankConnection *)connection
79+
completionWithSelectedAccount:(void (^ __nullable)(DPCAccount * __nullable account, NSError * __nullable error))completion;
8080

8181

8282
- (instancetype)init __attribute__((unavailable("use initWithClientUserID:account:amount:beneficiary:completion:")));

DapiConnect.xcframework/ios-arm64_armv7/DapiConnect.framework/Headers/DPCBankConnection.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ typedef void (^TransferBlockWithTransferResult)(DPCAccount *__nullable account,
3131
NSError *__nullable error,
3232
DPCTransferResult *__nullable transferResult);
3333

34+
typedef NSString *DPCTransactionsType NS_TYPED_EXTENSIBLE_ENUM;
35+
36+
extern DPCTransactionsType const DPCTransactionsTypeDefault;
37+
extern DPCTransactionsType const DPCTransactionsTypeCategorized;
38+
extern DPCTransactionsType const DPCTransactionsTypeEnriched;
39+
3440
@property (nonnull, nonatomic, copy, readonly) NSString *userID;
3541
@property (nonnull, nonatomic, copy, readonly) NSString *clientUserID;
3642
@property (nonnull, nonatomic, copy, readonly) NSString *bankID;
@@ -66,6 +72,18 @@ typedef void (^TransferBlockWithTransferResult)(DPCAccount *__nullable account,
6672
toDate:(NSDate *)toDate
6773
completion:(void (^ __nullable)(NSArray<DPCTransaction *> *__nullable transactions, NSError *__nullable error, NSString*__nullable operationID))completion;
6874

75+
- (void)getTransactionsForAccount:(DPCAccount *)account
76+
fromDate:(NSDate *)fromDate
77+
toDate:(NSDate *)toDate
78+
type:(DPCTransactionsType _Nullable)type
79+
completion:(void (^ __nullable)(NSArray<DPCTransaction *> *__nullable transactions, NSError *__nullable error, NSString*__nullable operationID))completion;
80+
81+
- (void)getTransactionsForCard:(DPCCard *)card
82+
fromDate:(NSDate *)fromDate
83+
toDate:(NSDate *)toDate
84+
type:(DPCTransactionsType _Nullable)type
85+
completion:(void (^ __nullable)(NSArray<DPCTransaction *> *__nullable transactions, NSError *__nullable error, NSString*__nullable operationID))completion;
86+
6987

7088
- (void)getBeneficiaries:(void (^ __nullable)(NSArray<DPCBankBeneficiary *> *__nullable beneficiaries, NSError *__nullable error, NSString *__nullable operationID))completion;
7189

@@ -174,6 +192,8 @@ completionWithReferenceNumber:(TransferBlockWithReferenceNumber)completionWithRe
174192
completionWithTransferResult:(TransferBlockWithTransferResult)completionWithTransferResult
175193
remark:(NSString *__nullable)remark;
176194

195+
- (void)presentAccountSelectionWithCompletion:(void (^)(DPCAccount * __nullable account, NSError *__nullable error))completion;
196+
177197
- (void)delete:(void (^ __nullable)(DPCResult *__nullable result, NSError *__nullable error))completion;
178198

179199
- (void)getCards:(void (^ __nullable)(NSArray<DPCCard *> *__nullable result, NSError *__nullable error, NSString *__nullable operationID))completion;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// DPCBrandDetails.h
3+
// DapiConnect
4+
//
5+
// Created by Abdelrahman Rizq on 10/10/2022.
6+
// Copyright © 2022 Dapi. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
NS_SWIFT_NAME(DapiBrandDetails)
14+
@interface DPCBrandDetails : NSObject
15+
16+
@property (nonatomic, strong, nullable) NSString *logo;
17+
@property (nonatomic, strong, nullable) NSString *name;
18+
19+
- (instancetype)initWithDictionary:(NSDictionary<NSString *, id> *)dictionary;
20+
21+
@end
22+
23+
NS_ASSUME_NONNULL_END

DapiConnect.xcframework/ios-arm64_armv7/DapiConnect.framework/Headers/DPCConfigurations.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ extern DPCEndPoint const DPCEndPointGetAccounts;
1818
extern DPCEndPoint const DPCEndPointGetAccountMetadata;
1919
extern DPCEndPoint const DPCEndPointGetBalance;
2020
extern DPCEndPoint const DPCEndPointGetTransactions;
21+
extern DPCEndPoint const DPCEndPointGetCategorizedTransactions;
22+
extern DPCEndPoint const DPCEndPointGetEnrichedTransactions;
2123
extern DPCEndPoint const DPCEndPointGetBeneficiaries;
2224
extern DPCEndPoint const DPCEndPointGetWireBeneficiaries;
2325
extern DPCEndPoint const DPCEndPointCreateWireBeneficiaries;

DapiConnect.xcframework/ios-arm64_armv7/DapiConnect.framework/Headers/DPCTransaction.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import <Foundation/Foundation.h>
10+
#import "DPCBrandDetails.h"
1011
#import "DPCPair.h"
1112

1213
NS_ASSUME_NONNULL_BEGIN
@@ -22,6 +23,9 @@ NS_SWIFT_NAME(DapiTransaction)
2223
@property (nonatomic, copy, nullable) NSString *transactionDescription;
2324
@property (nonatomic, copy, nullable) NSString *details;
2425
@property (nonatomic, copy, nullable) NSString *type;
26+
@property (nonatomic, copy, nullable) NSString *category;
27+
@property (nonatomic, copy, nullable) NSString *reference;
28+
@property (nonatomic, strong, nullable) DPCBrandDetails *brandDetails;
2529

2630
- (instancetype)initWithDictionary:(NSDictionary<NSString *, id> *)dictionary;
2731

Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)