-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from tink-ab/release-changes-1.8.0
Tink Core 1.8.0 release
- Loading branch information
Showing
35 changed files
with
529 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import Foundation | ||
|
||
/// The REST representation of the `Product` model which also contains the `.unknown` case used when the list of the products is empty. | ||
enum RESTProductName: String, Codable { | ||
case unknown = "PRODUCT_UNKNOWN" | ||
case realTimeBalance = "PRODUCT_REAL_TIME_BALANCE" | ||
case paymentInitiation = "PRODUCT_PAYMENT_INITIATION" | ||
case accountAggregation = "PRODUCT_ACCOUNT_AGGREGATION" | ||
case accountCheck = "PRODUCT_ACCOUNT_CHECK" | ||
case incomeCheck = "PRODUCT_INCOME_CHECK" | ||
case moneyManager = "PRODUCT_MONEY_MANAGER" | ||
case transactions = "PRODUCT_TRANSACTIONS" | ||
case businessTransactions = "PRODUCT_BUSINESS_TRANSACTIONS" | ||
case riskInsights = "PRODUCT_RISK_INSIGHTS" | ||
} | ||
|
||
extension Array where Element == Product { | ||
var productNames: [RESTProductName] { | ||
// In case if the list of the products is empty we are using `.unknown` case to represent it. | ||
if isEmpty { return [.unknown] } | ||
return map(\.productName) | ||
} | ||
} | ||
|
||
/// One-to-one mapping between `Product` and `RESTProductName` cases. | ||
extension Product { | ||
fileprivate var productName: RESTProductName { | ||
switch self { | ||
case .realTimeBalance: | ||
return .realTimeBalance | ||
case .paymentInitiation: | ||
return .paymentInitiation | ||
case .accountAggregation: | ||
return .accountAggregation | ||
case .accountCheck: | ||
return .accountCheck | ||
case .incomeCheck: | ||
return .incomeCheck | ||
case .moneyManager: | ||
return .moneyManager | ||
case .transactions: | ||
return .transactions | ||
case .businessTransactions: | ||
return .businessTransactions | ||
case .riskInsights: | ||
return .riskInsights | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Foundation | ||
|
||
/// The kind of the used product. | ||
public enum Product { | ||
case realTimeBalance | ||
case paymentInitiation | ||
case accountAggregation | ||
case accountCheck | ||
case incomeCheck | ||
case moneyManager | ||
case transactions | ||
case businessTransactions | ||
case riskInsights | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
TinkCore.xcframework/ios-arm64/TinkCore.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+1.97 KB
(100%)
...mework/ios-arm64/TinkCore.framework/Modules/TinkCore.swiftmodule/arm64-apple-ios.swiftdoc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.97 KB
(100%)
...Core.xcframework/ios-arm64/TinkCore.framework/Modules/TinkCore.swiftmodule/arm64.swiftdoc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
TinkCore.xcframework/ios-arm64_x86_64-simulator/TinkCore.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+1.97 KB
(100%)
...ulator/TinkCore.framework/Modules/TinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.97 KB
(100%)
...ios-arm64_x86_64-simulator/TinkCore.framework/Modules/TinkCore.swiftmodule/arm64.swiftdoc
Binary file not shown.
Oops, something went wrong.