-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add search payments providers endpoint
- Loading branch information
1 parent
d93c669
commit 860df2d
Showing
26 changed files
with
421 additions
and
14 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
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/truelayer/java/paymentsproviders/entities/AisConsent.java
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,12 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import java.util.List; | ||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class AisConsent { | ||
private List<Scope> scopes; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/truelayer/java/paymentsproviders/entities/AuthorizationFlow.java
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 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class AuthorizationFlow { | ||
private Configuration configuration; | ||
} |
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
7 changes: 5 additions & 2 deletions
7
src/main/java/com/truelayer/java/paymentsproviders/entities/Capabilities.java
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
17 changes: 17 additions & 0 deletions
17
src/main/java/com/truelayer/java/paymentsproviders/entities/Configuration.java
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,17 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Configuration { | ||
private ProviderSelection providerSelection; | ||
|
||
private Redirect redirect; | ||
|
||
private Form form; | ||
|
||
private Consent consent; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/truelayer/java/paymentsproviders/entities/Consent.java
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 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Consent { | ||
private Requirements requirements; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/truelayer/java/paymentsproviders/entities/Form.java
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,12 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import java.util.List; | ||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Form { | ||
private List<InputType> inputTypes; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/truelayer/java/paymentsproviders/entities/Icon.java
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 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Icon { | ||
private IconType type; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/truelayer/java/paymentsproviders/entities/IconType.java
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,18 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
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; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/truelayer/java/paymentsproviders/entities/InputType.java
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,16 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
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; | ||
} |
7 changes: 5 additions & 2 deletions
7
src/main/java/com/truelayer/java/paymentsproviders/entities/MandatesCapabilities.java
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
7 changes: 5 additions & 2 deletions
7
src/main/java/com/truelayer/java/paymentsproviders/entities/PaymentsCapabilities.java
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.Value; | ||
import lombok.*; | ||
|
||
@Value | ||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class PaymentsCapabilities { | ||
BankTransferCapabilities bankTransfer; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/truelayer/java/paymentsproviders/entities/PisConsent.java
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,9 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class PisConsent {} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/truelayer/java/paymentsproviders/entities/ProviderSelection.java
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 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class ProviderSelection { | ||
private Icon icon; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/truelayer/java/paymentsproviders/entities/Redirect.java
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,9 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Redirect {} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/truelayer/java/paymentsproviders/entities/Requirements.java
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,13 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Requirements { | ||
private PisConsent pis; | ||
|
||
private AisConsent ais; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/truelayer/java/paymentsproviders/entities/Scope.java
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 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
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; | ||
} |
29 changes: 29 additions & 0 deletions
29
...ain/java/com/truelayer/java/paymentsproviders/entities/SearchPaymentProvidersRequest.java
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,29 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
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; | ||
|
||
private AuthorizationFlow authorizationFlow; | ||
} |
9 changes: 9 additions & 0 deletions
9
...in/java/com/truelayer/java/paymentsproviders/entities/SearchPaymentProvidersResponse.java
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,9 @@ | ||
package com.truelayer.java.paymentsproviders.entities; | ||
|
||
import java.util.List; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class SearchPaymentProvidersResponse { | ||
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
Oops, something went wrong.