File tree Expand file tree Collapse file tree
src/main/java/com/truelayer/java/payments/entities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77
88## [ 18.0.0] - 2025-x-x
99### Added
10- * icon object to ProviderSelection in authorization flow requests
10+ * New Icon object to ProviderSelection in authorization flow requests
11+ * New Consent type properties within the authorization flow request
1112
1213### Changed
1314* ⚠️ Breaking: replaced the ` withProviderSelection() ` flag on authorization flow request builder with a ` providerSelection(...) ` utility
14- that helps to set the provider icon object if needed.
15+ that helps to set the provider icon object if needed
1516* Various dependency updates
1617
1718## [ 17.5.1] - 2025-10-31
Original file line number Diff line number Diff line change @@ -45,4 +45,8 @@ public class CreatePaymentRequest {
4545 * Optional field for configuring the authorization flow
4646 */
4747 private StartAuthorizationFlowRequest authorizationFlow ;
48+
49+ // TODO: hosted page
50+
51+ // TODO: user consent
4852}
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public class StartAuthorizationFlowRequest {
2323
2424 private final Form form ;
2525
26+ private final Map <String , String > userAccountSelection ;
27+
2628 @ Builder
2729 @ ToString
2830 @ EqualsAndHashCode
@@ -34,7 +36,7 @@ public static class ProviderSelection {
3436 @ EqualsAndHashCode
3537 @ ToString
3638 public static class Icon {
37- IconType type ;
39+ private IconType type ;
3840
3941 @ RequiredArgsConstructor
4042 @ Getter
@@ -56,15 +58,52 @@ public enum IconType {
5658 @ ToString
5759 @ EqualsAndHashCode
5860 public static class Redirect {
59- URI returnUri ;
61+ private final URI returnUri ;
6062
61- URI directReturnUri ;
63+ private final URI directReturnUri ;
6264 }
6365
6466 @ Builder
6567 @ ToString
6668 @ EqualsAndHashCode
67- public static class Consent {}
69+ public static class Consent {
70+ private final ActionType actionType ;
71+ private final Requirements requirements ;
72+
73+ @ RequiredArgsConstructor
74+ @ Getter
75+ public enum ActionType {
76+ EXPLICIT ("explicit" ),
77+ ADJACENT ("adjacent" );
78+
79+ @ JsonValue
80+ private final String type ;
81+ }
82+
83+ @ ToString
84+ @ EqualsAndHashCode
85+ @ Builder
86+ public static class Requirements {
87+ private final Map <String , String > pis ;
88+
89+ @ Builder
90+ @ ToString
91+ @ EqualsAndHashCode
92+ public static class AisRequirements {
93+
94+ @ RequiredArgsConstructor
95+ @ Getter
96+ public enum Scope {
97+ ACCOUNTS ("accounts" ),
98+ BALANCE ("balance" ),
99+ ;
100+
101+ @ JsonValue
102+ private final String value ;
103+ }
104+ }
105+ }
106+ }
68107
69108 @ Builder
70109 @ Getter
You can’t perform that action at this time.
0 commit comments