-
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 + statement reference to merch…
…ant account (#330)
- Loading branch information
1 parent
a23875c
commit 653cd57
Showing
38 changed files
with
499 additions
and
15 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
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/searchproviders/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.searchproviders; | ||
|
||
import java.util.List; | ||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class AisConsent { | ||
private List<Scope> scopes; | ||
} |
11 changes: 11 additions & 0 deletions
11
...java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.searchproviders; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class AuthorizationFlow { | ||
private Configuration configuration; | ||
} |
6 changes: 6 additions & 0 deletions
6
...m/truelayer/java/paymentsproviders/entities/searchproviders/BankTransferCapabilities.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,6 @@ | ||
package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class BankTransferCapabilities {} |
16 changes: 16 additions & 0 deletions
16
...main/java/com/truelayer/java/paymentsproviders/entities/searchproviders/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
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; | ||
} |
17 changes: 17 additions & 0 deletions
17
...ain/java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.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; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.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; | ||
} |
16 changes: 16 additions & 0 deletions
16
...a/com/truelayer/java/paymentsproviders/entities/searchproviders/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
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; | ||
} |
14 changes: 14 additions & 0 deletions
14
...a/com/truelayer/java/paymentsproviders/entities/searchproviders/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 |
---|---|---|
@@ -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; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.searchproviders; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class PisConsent {} |
11 changes: 11 additions & 0 deletions
11
...java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.searchproviders; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class Redirect {} |
13 changes: 13 additions & 0 deletions
13
...main/java/com/truelayer/java/paymentsproviders/entities/searchproviders/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.searchproviders; | ||
|
||
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/searchproviders/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.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; | ||
} |
29 changes: 29 additions & 0 deletions
29
...elayer/java/paymentsproviders/entities/searchproviders/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.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; | ||
|
||
private AuthorizationFlow authorizationFlow; | ||
} |
10 changes: 10 additions & 0 deletions
10
...layer/java/paymentsproviders/entities/searchproviders/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,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; | ||
} |
6 changes: 6 additions & 0 deletions
6
.../truelayer/java/paymentsproviders/entities/searchproviders/VrpCommercialCapabilities.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,6 @@ | ||
package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class VrpCommercialCapabilities {} |
6 changes: 6 additions & 0 deletions
6
...om/truelayer/java/paymentsproviders/entities/searchproviders/VrpSweepingCapabilities.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,6 @@ | ||
package com.truelayer.java.paymentsproviders.entities.searchproviders; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class VrpSweepingCapabilities {} |
Oops, something went wrong.