-
Notifications
You must be signed in to change notification settings - Fork 10
Add search payments providers endpoint + statement reference to merchant account #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d93c669
860df2d
0ccfdd4
249524e
64bb881
9c656a2
797712a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import java.util.List; | ||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class AisConsent { | ||
| private List<Scope> scopes; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class AuthorizationFlow { | ||
| private Configuration configuration; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Value; | ||
|
|
||
| @Value | ||
| public class BankTransferCapabilities {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Builder; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Capabilities { | ||
| PaymentsCapabilities payments; | ||
|
|
||
| MandatesCapabilities mandates; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Configuration { | ||
| private ProviderSelection providerSelection; | ||
|
|
||
| private Redirect redirect; | ||
|
|
||
| private Form form; | ||
|
|
||
| private Consent consent; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Consent { | ||
| private Requirements requirements; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import java.util.List; | ||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Form { | ||
| private List<InputType> inputTypes; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Icon { | ||
| private IconType type; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue; | ||
| import lombok.Getter; | ||
| import lombok.RequiredArgsConstructor; | ||
|
|
||
| @RequiredArgsConstructor | ||
| @Getter | ||
| public enum IconType { | ||
| DEFAULT("default"), | ||
| EXTENDED("extended"), | ||
| EXTENDED_SMALL("extended_small"), | ||
| EXTENDED_MEDIUM("extended_medium"), | ||
| EXTENDED_LARGE("extended_large"); | ||
|
|
||
| @JsonValue | ||
| private final String iconType; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue; | ||
| import lombok.Getter; | ||
| import lombok.RequiredArgsConstructor; | ||
|
|
||
| @RequiredArgsConstructor | ||
| @Getter | ||
| public enum InputType { | ||
| TEXT("text"), | ||
| TEXT_WITH_IMAGE("text_with_image"), | ||
| SELECT("select"); | ||
|
|
||
| @JsonValue | ||
| private final String inputType; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Builder; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class MandatesCapabilities { | ||
| VrpSweepingCapabilities vrpSweeping; | ||
|
|
||
| VrpCommercialCapabilities vrpCommercial; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Builder; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class PaymentsCapabilities { | ||
| BankTransferCapabilities bankTransfer; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class PisConsent {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class ProviderSelection { | ||
| private Icon icon; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Redirect {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.*; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class Requirements { | ||
| private PisConsent pis; | ||
|
|
||
| private AisConsent ais; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue; | ||
| import lombok.Getter; | ||
| import lombok.RequiredArgsConstructor; | ||
|
|
||
| @RequiredArgsConstructor | ||
| @Getter | ||
| public enum Scope { | ||
| ACCOUNTS("accounts"), | ||
| BALANCE("balance"); | ||
|
|
||
| @JsonValue | ||
| private final String scope; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import com.truelayer.java.entities.CurrencyCode; | ||
| import com.truelayer.java.payments.entities.CountryCode; | ||
| import com.truelayer.java.payments.entities.CustomerSegment; | ||
| import com.truelayer.java.payments.entities.ReleaseChannel; | ||
| import java.util.List; | ||
| import lombok.Builder; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
|
|
||
| @Builder | ||
| @Getter | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class SearchPaymentProvidersRequest { | ||
| private List<CountryCode> countries; | ||
|
|
||
| private List<CurrencyCode> currencies; | ||
|
|
||
| private ReleaseChannel releaseChannel; | ||
|
|
||
| private List<CustomerSegment> customerSegments; | ||
|
|
||
| private Capabilities capabilities; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could not reuse the same I initially considered reusing the same objects anyway as adding additional properties in the request was not creating side effects in the APIs, but then I thought it might have led to confusion clients if they were expecting to use those additional properties for filtering out providers |
||
|
|
||
| private AuthorizationFlow authorizationFlow; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import com.truelayer.java.paymentsproviders.entities.PaymentsProvider; | ||
| import java.util.List; | ||
| import lombok.Value; | ||
|
|
||
| @Value | ||
| public class SearchPaymentProvidersResponse { | ||
| List<PaymentsProvider> items; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it expected that we're not adding BIN ranges to this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I actually missed that, I would add it to keep feature parity with the API, unless you think is really not needed?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's bring this to @federico1525 |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Value; | ||
|
|
||
| @Value | ||
| public class VrpCommercialCapabilities {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
|
||
| import lombok.Value; | ||
|
|
||
| @Value | ||
| public class VrpSweepingCapabilities {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed, right? Like, we don't have already a AuthFlow model with just the config object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct, we have another
AuthorizationFlowentity but it's different (it's a wrapper for anactionsobject and it's used in the start auth flow API response)