-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EWT-563] Implement payments-providers/search (#199)
- Loading branch information
Showing
6 changed files
with
86 additions
and
1 deletion.
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
15 changes: 15 additions & 0 deletions
15
src/TrueLayer/PaymentsProviders/Model/AuthorizationFlow.cs
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,15 @@ | ||
using System.Collections.Generic; | ||
using TrueLayer.Models; | ||
|
||
namespace TrueLayer.PaymentsProviders.Model; | ||
|
||
public record AuthorizationFlow(AuthorizationFlowConfiguration Configuration); | ||
|
||
public record AuthorizationFlowConfiguration(Dictionary<string, string>? Redirect = null, Form? Form = null, | ||
Consent? Consent = null); | ||
|
||
public record Form(List<string> InputTypes); | ||
|
||
public record Consent(ConsentRequirements Requirements); | ||
|
||
public record ConsentRequirements(Dictionary<string, string> Pis, Dictionary<string, string>? Ais = null); |
11 changes: 11 additions & 0 deletions
11
src/TrueLayer/PaymentsProviders/Model/SearchPaymentsProvidersRequest.cs
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,11 @@ | ||
using System.Collections.Generic; | ||
using TrueLayer.Models; | ||
|
||
namespace TrueLayer.PaymentsProviders.Model; | ||
|
||
public record SearchPaymentsProvidersRequest(AuthorizationFlow AuthorizationFlow, | ||
List<string>? Countries = null, | ||
List<string>? Currencies = null, | ||
List<string>? ReleaseChannels = null, | ||
List<string>? CustomerSegments = null, | ||
Capabilities? Capabilities = null); |
5 changes: 5 additions & 0 deletions
5
src/TrueLayer/PaymentsProviders/Model/SearchPaymentsProvidersResponse.cs
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,5 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace TrueLayer.PaymentsProviders.Model; | ||
|
||
public record SearchPaymentsProvidersResponse(List<PaymentsProvider> Items); |
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