-
Notifications
You must be signed in to change notification settings - Fork 997
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 #1536 from stripe-ios/kg-copyfrombackend
Financial Connections: Implemented Consent From Backend (Synchronized API)
- Loading branch information
Showing
20 changed files
with
369 additions
and
289 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ | |
6A2318D428B3C36000F2A7D8 /* AccountPickerSelectionListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A2318D328B3C36000F2A7D8 /* AccountPickerSelectionListView.swift */; }; | ||
6A2318D728B571E000F2A7D8 /* ManualEntryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A2318D628B571E000F2A7D8 /* ManualEntryViewController.swift */; }; | ||
6A2318D928B57E5100F2A7D8 /* ManualEntryTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A2318D828B57E5100F2A7D8 /* ManualEntryTextField.swift */; }; | ||
6A370F322901CA2C00A6DB9B /* FinancialConnectionsSynchronize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A370F312901CA2C00A6DB9B /* FinancialConnectionsSynchronize.swift */; }; | ||
6A4FA13928E11B3D00F07D42 /* CloseConfirmationAlertHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A4FA13828E11B3D00F07D42 /* CloseConfirmationAlertHandler.swift */; }; | ||
6A4FA13B28E3340B00F07D42 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 6A4FA13A28E3340B00F07D42 /* [email protected] */; }; | ||
6A4FA13D28E346E600F07D42 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 6A4FA13C28E346E600F07D42 /* [email protected] */; }; | ||
|
@@ -122,7 +123,6 @@ | |
6A8B4B0328CFC7C600128356 /* PaneLayoutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A8B4B0228CFC7C600128356 /* PaneLayoutView.swift */; }; | ||
6A8B4B0528CFD31800128356 /* PaneWithHeaderLayoutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A8B4B0428CFD31800128356 /* PaneWithHeaderLayoutView.swift */; }; | ||
6A8B4B0728D0BE4600128356 /* ConsentDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A8B4B0628D0BE4600128356 /* ConsentDataSource.swift */; }; | ||
6A9117E5287CA2A5007633D4 /* ConsentModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9117E4287CA2A5007633D4 /* ConsentModel.swift */; }; | ||
6A9117E7287CB20D007633D4 /* String+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9117E6287CB20D007633D4 /* String+Extensions.swift */; }; | ||
6A9117EC287F4D87007633D4 /* DataAccessNoticeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9117EB287F4D87007633D4 /* DataAccessNoticeViewController.swift */; }; | ||
6A9117EE287F535C007633D4 /* DataAccessNoticeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A9117ED287F535C007633D4 /* DataAccessNoticeView.swift */; }; | ||
|
@@ -295,6 +295,7 @@ | |
6A2318D328B3C36000F2A7D8 /* AccountPickerSelectionListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountPickerSelectionListView.swift; sourceTree = "<group>"; }; | ||
6A2318D628B571E000F2A7D8 /* ManualEntryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManualEntryViewController.swift; sourceTree = "<group>"; }; | ||
6A2318D828B57E5100F2A7D8 /* ManualEntryTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManualEntryTextField.swift; sourceTree = "<group>"; }; | ||
6A370F312901CA2C00A6DB9B /* FinancialConnectionsSynchronize.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinancialConnectionsSynchronize.swift; sourceTree = "<group>"; }; | ||
6A4FA13828E11B3D00F07D42 /* CloseConfirmationAlertHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CloseConfirmationAlertHandler.swift; sourceTree = "<group>"; }; | ||
6A4FA13A28E3340B00F07D42 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
6A4FA13C28E346E600F07D42 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | ||
|
@@ -337,7 +338,6 @@ | |
6A8B4B0228CFC7C600128356 /* PaneLayoutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaneLayoutView.swift; sourceTree = "<group>"; }; | ||
6A8B4B0428CFD31800128356 /* PaneWithHeaderLayoutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaneWithHeaderLayoutView.swift; sourceTree = "<group>"; }; | ||
6A8B4B0628D0BE4600128356 /* ConsentDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentDataSource.swift; sourceTree = "<group>"; }; | ||
6A9117E4287CA2A5007633D4 /* ConsentModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentModel.swift; sourceTree = "<group>"; }; | ||
6A9117E6287CB20D007633D4 /* String+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Extensions.swift"; sourceTree = "<group>"; }; | ||
6A9117EB287F4D87007633D4 /* DataAccessNoticeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataAccessNoticeViewController.swift; sourceTree = "<group>"; }; | ||
6A9117ED287F535C007633D4 /* DataAccessNoticeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataAccessNoticeView.swift; sourceTree = "<group>"; }; | ||
|
@@ -527,6 +527,7 @@ | |
3C34E0E82798EB33002618E4 /* FinancialConnectionsSession.swift */, | ||
3C3ADCB92800C1E0008C24EF /* BankAccountToken.swift */, | ||
3CAD99BA284E381100B163EB /* FinancialConnectionsInstitution.swift */, | ||
6A370F312901CA2C00A6DB9B /* FinancialConnectionsSynchronize.swift */, | ||
); | ||
path = Models; | ||
sourceTree = "<group>"; | ||
|
@@ -689,7 +690,6 @@ | |
children = ( | ||
6A8B4B0628D0BE4600128356 /* ConsentDataSource.swift */, | ||
6A1BA4AB2858D5F100759697 /* ConsentViewController.swift */, | ||
6A9117E4287CA2A5007633D4 /* ConsentModel.swift */, | ||
6ABE2D03285A2DEF0064B3A4 /* ConsentBodyView.swift */, | ||
6A1BA4AD2858D76800759697 /* ConsentFooterView.swift */, | ||
); | ||
|
@@ -1003,7 +1003,6 @@ | |
6A4FA14D28E477EA00F07D42 /* SpinnerIconView.swift in Sources */, | ||
6AE2E5B528DE132300623523 /* AccountPickerAccountLoadErrorView.swift in Sources */, | ||
6A7C861728D273940025B8DF /* SuccessIconView.swift in Sources */, | ||
6A9117E5287CA2A5007633D4 /* ConsentModel.swift in Sources */, | ||
6A1E299E289DB83E00F99E9D /* AccountPickerDataSource.swift in Sources */, | ||
6A99EF6628E708D200C76293 /* Button+Extensions.swift in Sources */, | ||
6AD448B928C25F85002CABB0 /* ResetFlowDataSource.swift in Sources */, | ||
|
@@ -1074,6 +1073,7 @@ | |
6A2318D428B3C36000F2A7D8 /* AccountPickerSelectionListView.swift in Sources */, | ||
6A1E29A228A1BB9100F99E9D /* PartnerAuthDataSource.swift in Sources */, | ||
3C2432F3275AB8140031E9B9 /* StripeCore+Import.swift in Sources */, | ||
6A370F322901CA2C00A6DB9B /* FinancialConnectionsSynchronize.swift in Sources */, | ||
6ABE2D06285B72A30064B3A4 /* ClickableLabel.swift in Sources */, | ||
3CAD99C7285032E600B163EB /* InstitutionPicker.swift in Sources */, | ||
6AE2E5AD28DB916E00623523 /* MerchantDataAccessView.swift in Sources */, | ||
|
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
55 changes: 55 additions & 0 deletions
55
...ripeFinancialConnections/Source/API Bindings/Models/FinancialConnectionsSynchronize.swift
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,55 @@ | ||
// | ||
// FinancialConnectionsSynchronize.swift | ||
// StripeFinancialConnections | ||
// | ||
// Created by Krisjanis Gaidis on 10/20/22. | ||
// | ||
|
||
import Foundation | ||
|
||
struct FinancialConnectionsSynchronize: Decodable { | ||
|
||
let manifest: FinancialConnectionsSessionManifest | ||
let text: Text | ||
|
||
struct Text: Decodable { | ||
let consentPane: FinancialConnectionsConsent | ||
} | ||
} | ||
|
||
struct FinancialConnectionsConsent: Decodable { | ||
|
||
let title: String | ||
let body: Body | ||
let aboveCta: String | ||
let cta: String | ||
let belowCta: String? | ||
|
||
let dataAccessNotice: FinancialConnectionsDataAccessNotice | ||
|
||
struct Body: Decodable { | ||
let bullets: [BulletItem] | ||
|
||
struct BulletItem: Decodable { | ||
let icon: String | ||
let content: String | ||
} | ||
} | ||
} | ||
|
||
struct FinancialConnectionsDataAccessNotice: Decodable { | ||
let title: String | ||
let body: Body | ||
let learnMore: String | ||
let cta: String | ||
|
||
struct Body: Decodable { | ||
let bullets: [BulletItem] | ||
|
||
struct BulletItem: Decodable { | ||
let icon: String | ||
let title: String? | ||
let content: String | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.