diff --git a/.github/workflows/javaci.yml b/.github/workflows/javaci.yml index 9f79ac99b..7047fe472 100644 --- a/.github/workflows/javaci.yml +++ b/.github/workflows/javaci.yml @@ -48,7 +48,7 @@ jobs: strategy: matrix: - java: [ '11', '17', '21', '25' ] + java: [ '17', '21', '25' ] steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 49843787b..3aeae603e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 with: distribution: 'temurin' - java-version: '11' + java-version: '17' - name: Build with Maven run: mvn -B package --file pom.xml @@ -26,7 +26,7 @@ jobs: uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' - java-version: '11' + java-version: '17' server-id: central # Value of the central-publishing-maven-plugin publishingServerId in pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy diff --git a/README.md b/README.md index 85eb4f538..5a9b14bfb 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ the [API Explorer](https://docs.adyen.com/api-explorer/). * An [Adyen account](https://docs.adyen.com/get-started-with-adyen) * An [API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). -* Java 11 or later +* Java 17 or later ## Installation diff --git a/pom.xml b/pom.xml index 0296ef4e6..c9f1d10c0 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ - 11 + 17 UTF-8 UTF-8 adyen @@ -35,8 +35,9 @@ - 2.22.1 - 2.22 + 3.1.5 + + 2.21 2.14.0 1.22.1 1.6.16 @@ -246,15 +247,24 @@ ${maven-enforcer-version} - enforce-jakarta-compliance + enforce-runtime-baseline enforce + + [17,) + javax.xml.bind:jaxb-api + com.fasterxml.jackson.core:jackson-core + com.fasterxml.jackson.core:jackson-databind + com.fasterxml.jackson.datatype:* + com.fasterxml.jackson.dataformat:* + com.fasterxml.jackson.module:* + com.fasterxml.jackson.jaxrs:* javax.servlet:servlet-api @@ -265,7 +275,7 @@ javax.inject:javax.inject - STOP! A legacy javax.* dependency was detected + STOP! An unsupported legacy dependency was detected @@ -293,25 +303,20 @@ - com.fasterxml.jackson.core + tools.jackson.core jackson-databind - ${com.fasterxml.jackson-version} + ${tools.jackson-version} - com.fasterxml.jackson.core + tools.jackson.core jackson-core - ${com.fasterxml.jackson-version} + ${tools.jackson-version} com.fasterxml.jackson.core jackson-annotations ${com.fasterxml.jackson-annotations-version} - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - ${com.fasterxml.jackson-version} - com.google.code.gson gson diff --git a/src/main/java/com/adyen/model/ApiError.java b/src/main/java/com/adyen/model/ApiError.java index 9243598f5..8a0102ba5 100644 --- a/src/main/java/com/adyen/model/ApiError.java +++ b/src/main/java/com/adyen/model/ApiError.java @@ -21,9 +21,9 @@ import com.adyen.model.checkout.JSON; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.*; +import tools.jackson.core.JacksonException; /** * Class that defines the API error model returned when an error (401. 403, 422, etc..) is returned @@ -339,9 +339,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ApiError fromJson(String jsonString) throws JsonProcessingException { + public static ApiError fromJson(String jsonString) throws JacksonException { if (jsonString == null) { return null; } @@ -353,7 +353,7 @@ public static ApiError fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/InvalidField.java b/src/main/java/com/adyen/model/InvalidField.java index 1449625a5..6d1deacb4 100644 --- a/src/main/java/com/adyen/model/InvalidField.java +++ b/src/main/java/com/adyen/model/InvalidField.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -152,9 +152,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -163,7 +163,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/Amount.java b/src/main/java/com/adyen/model/acswebhooks/Amount.java index d732861aa..fa1dc8f90 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Amount.java +++ b/src/main/java/com/adyen/model/acswebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java index 78d30b6d5..9248ba05f 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationDecision.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthenticationDecision */ @JsonPropertyOrder({AuthenticationDecision.JSON_PROPERTY_STATUS}) @@ -161,10 +161,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthenticationDecision - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationDecision + * @throws JacksonException if the JSON string is invalid with respect to AuthenticationDecision */ - public static AuthenticationDecision fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationDecision fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationDecision.class); } @@ -173,7 +172,7 @@ public static AuthenticationDecision fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java index 612f7db9c..06aaa9ea6 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationInfo.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthenticationInfo */ @JsonPropertyOrder({ @@ -1238,10 +1238,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationInfo + * @throws JacksonException if the JSON string is invalid with respect to AuthenticationInfo */ - public static AuthenticationInfo fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationInfo.class); } @@ -1250,7 +1249,7 @@ public static AuthenticationInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java index d7acf3076..31358c6a3 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthenticationNotificationData */ @JsonPropertyOrder({ @@ -358,11 +358,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthenticationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationNotificationData */ - public static AuthenticationNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationData.class); } @@ -371,7 +370,7 @@ public static AuthenticationNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java index 076294fdf..bd49826cf 100644 --- a/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthenticationNotificationRequest */ @JsonPropertyOrder({ @@ -272,11 +272,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthenticationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationNotificationRequest */ public static AuthenticationNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationNotificationRequest.class); } @@ -285,7 +285,7 @@ public static AuthenticationNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java index 88b15bd90..b75862635 100644 --- a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java index 65f350b04..0b3620440 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/ChallengeInfo.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ChallengeInfo */ @JsonPropertyOrder({ @@ -461,9 +461,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ChallengeInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ChallengeInfo + * @throws JacksonException if the JSON string is invalid with respect to ChallengeInfo */ - public static ChallengeInfo fromJson(String jsonString) throws JsonProcessingException { + public static ChallengeInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ChallengeInfo.class); } @@ -472,7 +472,7 @@ public static ChallengeInfo fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/JSON.java b/src/main/java/com/adyen/model/acswebhooks/JSON.java index 5b711524c..73b82d9eb 100644 --- a/src/main/java/com/adyen/model/acswebhooks/JSON.java +++ b/src/main/java/com/adyen/model/acswebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/acswebhooks/Purchase.java b/src/main/java/com/adyen/model/acswebhooks/Purchase.java index f3d4e8ca9..796a76b52 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Purchase.java +++ b/src/main/java/com/adyen/model/acswebhooks/Purchase.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Purchase */ @JsonPropertyOrder({ @@ -181,9 +181,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Purchase - * @throws JsonProcessingException if the JSON string is invalid with respect to Purchase + * @throws JacksonException if the JSON string is invalid with respect to Purchase */ - public static Purchase fromJson(String jsonString) throws JsonProcessingException { + public static Purchase fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Purchase.class); } @@ -192,7 +192,7 @@ public static Purchase fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java index 640bb6338..c8cb4a0ed 100644 --- a/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java +++ b/src/main/java/com/adyen/model/acswebhooks/PurchaseInfo.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PurchaseInfo */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PurchaseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PurchaseInfo + * @throws JacksonException if the JSON string is invalid with respect to PurchaseInfo */ - public static PurchaseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PurchaseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PurchaseInfo.class); } @@ -191,7 +191,7 @@ public static PurchaseInfo fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java index 87f6ce555..c0efabfd1 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RelayedAuthenticationRequest */ @JsonPropertyOrder({ @@ -409,11 +409,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthenticationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RelayedAuthenticationRequest */ - public static RelayedAuthenticationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthenticationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationRequest.class); } @@ -422,7 +421,7 @@ public static RelayedAuthenticationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java index edb1533bf..71e2fdcf9 100644 --- a/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/RelayedAuthenticationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RelayedAuthenticationResponse */ @JsonPropertyOrder({RelayedAuthenticationResponse.JSON_PROPERTY_AUTHENTICATION_DECISION}) @@ -105,11 +105,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthenticationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RelayedAuthenticationResponse */ - public static RelayedAuthenticationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthenticationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthenticationResponse.class); } @@ -118,7 +117,7 @@ public static RelayedAuthenticationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/Resource.java b/src/main/java/com/adyen/model/acswebhooks/Resource.java index 37bb6def5..56de72067 100644 --- a/src/main/java/com/adyen/model/acswebhooks/Resource.java +++ b/src/main/java/com/adyen/model/acswebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java index d70fd8386..3d61f9b44 100644 --- a/src/main/java/com/adyen/model/acswebhooks/ServiceError.java +++ b/src/main/java/com/adyen/model/acswebhooks/ServiceError.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -258,9 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -269,7 +269,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancecontrol/Amount.java b/src/main/java/com/adyen/model/balancecontrol/Amount.java index 15861353f..8e67022a7 100644 --- a/src/main/java/com/adyen/model/balancecontrol/Amount.java +++ b/src/main/java/com/adyen/model/balancecontrol/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java index 7f48b42b3..4a7c57afb 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceTransferRequest */ @JsonPropertyOrder({ @@ -495,10 +495,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceTransferRequest + * @throws JacksonException if the JSON string is invalid with respect to BalanceTransferRequest */ - public static BalanceTransferRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceTransferRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceTransferRequest.class); } @@ -507,7 +506,7 @@ public static BalanceTransferRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java index 417920aaf..6b044b72b 100644 --- a/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java +++ b/src/main/java/com/adyen/model/balancecontrol/BalanceTransferResponse.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceTransferResponse */ @JsonPropertyOrder({ @@ -703,10 +703,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceTransferResponse + * @throws JacksonException if the JSON string is invalid with respect to BalanceTransferResponse */ - public static BalanceTransferResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalanceTransferResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceTransferResponse.class); } @@ -715,7 +714,7 @@ public static BalanceTransferResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancecontrol/JSON.java b/src/main/java/com/adyen/model/balancecontrol/JSON.java index a93acd72f..455a62a34 100644 --- a/src/main/java/com/adyen/model/balancecontrol/JSON.java +++ b/src/main/java/com/adyen/model/balancecontrol/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java index 601c79492..5bfe962e0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AULocalAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } @@ -318,7 +317,7 @@ public static AULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java index 25b217341..955a7c5e6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolder.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolder */ @JsonPropertyOrder({ @@ -920,9 +920,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountHolder - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolder + * @throws JacksonException if the JSON string is invalid with respect to AccountHolder */ - public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolder fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } @@ -931,7 +931,7 @@ public static AccountHolder fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java index 9ed3f6d6c..6e89ff570 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderCapability.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolderCapability */ @JsonPropertyOrder({ @@ -714,10 +714,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderCapability + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderCapability */ - public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderCapability fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } @@ -726,7 +725,7 @@ public static AccountHolderCapability fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java index 1dd88c077..54a9860f3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderInfo.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** AccountHolderInfo */ @JsonPropertyOrder({ @@ -659,9 +659,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountHolderInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolderInfo + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderInfo */ - public static AccountHolderInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderInfo.class); } @@ -670,7 +670,7 @@ public static AccountHolderInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java index 658088db6..2da6db9b5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountHolderUpdateRequest.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolderUpdateRequest */ @JsonPropertyOrder({ @@ -832,11 +832,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountHolderUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderUpdateRequest */ - public static AccountHolderUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderUpdateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderUpdateRequest.class); } @@ -845,7 +844,7 @@ public static AccountHolderUpdateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java index 65d5a76b5..bcfc3f9ef 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/balanceplatform/AccountSupportingEntityCapability.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountSupportingEntityCapability */ @JsonPropertyOrder({ @@ -587,11 +587,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountSupportingEntityCapability */ public static AccountSupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } @@ -600,7 +600,7 @@ public static AccountSupportingEntityCapability fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java index a734d3852..4b39eafe5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ActiveNetworkTokensRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ActiveNetworkTokensRestriction */ @JsonPropertyOrder({ @@ -211,11 +211,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ActiveNetworkTokensRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ActiveNetworkTokensRestriction */ - public static ActiveNetworkTokensRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static ActiveNetworkTokensRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ActiveNetworkTokensRestriction.class); } @@ -224,7 +223,7 @@ public static ActiveNetworkTokensRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java index d0bb46c93..a401e3791 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentification */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } @@ -335,7 +334,7 @@ public static AdditionalBankIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java index c6803afe5..9fa1a93bb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AdditionalBankIdentificationRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentificationRequirement */ @JsonPropertyOrder({ @@ -434,11 +434,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentificationRequirement */ public static AdditionalBankIdentificationRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentificationRequirement.class); } @@ -447,7 +447,7 @@ public static AdditionalBankIdentificationRequirement fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Address.java b/src/main/java/com/adyen/model/balanceplatform/Address.java index 063df1e62..376ef0141 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Address.java +++ b/src/main/java/com/adyen/model/balanceplatform/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -456,7 +456,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java index 4dfbd3bfa..1375ae401 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AddressRequirement.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AddressRequirement */ @JsonPropertyOrder({ @@ -367,10 +367,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AddressRequirement + * @throws JacksonException if the JSON string is invalid with respect to AddressRequirement */ - public static AddressRequirement fromJson(String jsonString) throws JsonProcessingException { + public static AddressRequirement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AddressRequirement.class); } @@ -379,7 +378,7 @@ public static AddressRequirement fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Amount.java b/src/main/java/com/adyen/model/balanceplatform/Amount.java index 036f981be..a967582f1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Amount.java +++ b/src/main/java/com/adyen/model/balanceplatform/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java index 00a9f1cf2..a68a7031c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountMinMaxRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmountMinMaxRequirement */ @JsonPropertyOrder({ @@ -348,10 +348,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmountMinMaxRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AmountMinMaxRequirement + * @throws JacksonException if the JSON string is invalid with respect to AmountMinMaxRequirement */ - public static AmountMinMaxRequirement fromJson(String jsonString) throws JsonProcessingException { + public static AmountMinMaxRequirement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountMinMaxRequirement.class); } @@ -360,7 +359,7 @@ public static AmountMinMaxRequirement fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java index 2871cb3f1..33ed395b3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/AmountNonZeroDecimalsRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmountNonZeroDecimalsRequirement */ @JsonPropertyOrder({ @@ -263,11 +263,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmountNonZeroDecimalsRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AmountNonZeroDecimalsRequirement */ public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountNonZeroDecimalsRequirement.class); } @@ -276,7 +276,7 @@ public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java index e43028328..cd6ec0df1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApproveAssociationRequest */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApproveAssociationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ApproveAssociationRequest */ - public static ApproveAssociationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ApproveAssociationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApproveAssociationRequest.class); } @@ -335,7 +334,7 @@ public static ApproveAssociationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java index 993cd6c21..4af828a6b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ApproveAssociationResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApproveAssociationResponse */ @JsonPropertyOrder({ApproveAssociationResponse.JSON_PROPERTY_SCA_ASSOCIATIONS}) @@ -169,11 +169,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApproveAssociationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ApproveAssociationResponse */ - public static ApproveAssociationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ApproveAssociationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApproveAssociationResponse.class); } @@ -182,7 +181,7 @@ public static ApproveAssociationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ApproveTransferLimitRequest.java b/src/main/java/com/adyen/model/balanceplatform/ApproveTransferLimitRequest.java index f19fc61cd..5359e54c8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ApproveTransferLimitRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/ApproveTransferLimitRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApproveTransferLimitRequest */ @JsonPropertyOrder({ApproveTransferLimitRequest.JSON_PROPERTY_TRANSFER_LIMIT_IDS}) @@ -175,11 +175,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApproveTransferLimitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ApproveTransferLimitRequest */ - public static ApproveTransferLimitRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ApproveTransferLimitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApproveTransferLimitRequest.class); } @@ -188,7 +187,7 @@ public static ApproveTransferLimitRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Association.java b/src/main/java/com/adyen/model/balanceplatform/Association.java index 32d097347..ff8a1633f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Association.java +++ b/src/main/java/com/adyen/model/balanceplatform/Association.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Association */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Association - * @throws JsonProcessingException if the JSON string is invalid with respect to Association + * @throws JacksonException if the JSON string is invalid with respect to Association */ - public static Association fromJson(String jsonString) throws JsonProcessingException { + public static Association fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Association.class); } @@ -323,7 +323,7 @@ public static Association fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java index 4d1772fdf..2da556979 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationDelegatedAuthenticationData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AssociationDelegatedAuthenticationData */ @JsonPropertyOrder({AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) @@ -167,11 +167,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationDelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AssociationDelegatedAuthenticationData */ public static AssociationDelegatedAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationDelegatedAuthenticationData.class); } @@ -180,7 +180,7 @@ public static AssociationDelegatedAuthenticationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java index 9680b82a8..489e5185a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AssociationFinaliseRequest */ @JsonPropertyOrder({ @@ -340,11 +340,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationFinaliseRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AssociationFinaliseRequest */ - public static AssociationFinaliseRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationFinaliseRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseRequest.class); } @@ -353,7 +352,7 @@ public static AssociationFinaliseRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java index cb6c13034..bb2115831 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationFinaliseResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AssociationFinaliseResponse */ @JsonPropertyOrder({ @@ -312,11 +312,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationFinaliseResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AssociationFinaliseResponse */ - public static AssociationFinaliseResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationFinaliseResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationFinaliseResponse.class); } @@ -325,7 +324,7 @@ public static AssociationFinaliseResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java index ebf1b4e82..7b572ccab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AssociationInitiateRequest */ @JsonPropertyOrder({ @@ -276,11 +276,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationInitiateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AssociationInitiateRequest */ - public static AssociationInitiateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationInitiateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationInitiateRequest.class); } @@ -289,7 +288,7 @@ public static AssociationInitiateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java index 34015dca8..6e78210c0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationInitiateResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AssociationInitiateResponse */ @JsonPropertyOrder({AssociationInitiateResponse.JSON_PROPERTY_SDK_INPUT}) @@ -161,11 +161,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationInitiateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AssociationInitiateResponse */ - public static AssociationInitiateResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AssociationInitiateResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationInitiateResponse.class); } @@ -174,7 +173,7 @@ public static AssociationInitiateResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java b/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java index 013bcf05d..2fb011f18 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java +++ b/src/main/java/com/adyen/model/balanceplatform/AssociationListing.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** AssociationListing */ @JsonPropertyOrder({ @@ -463,10 +463,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociationListing - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociationListing + * @throws JacksonException if the JSON string is invalid with respect to AssociationListing */ - public static AssociationListing fromJson(String jsonString) throws JsonProcessingException { + public static AssociationListing fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociationListing.class); } @@ -475,7 +474,7 @@ public static AssociationListing fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Authentication.java b/src/main/java/com/adyen/model/balanceplatform/Authentication.java index ef95f1e58..42276912c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Authentication.java +++ b/src/main/java/com/adyen/model/balanceplatform/Authentication.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Authentication */ @JsonPropertyOrder({ @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Authentication - * @throws JsonProcessingException if the JSON string is invalid with respect to Authentication + * @throws JacksonException if the JSON string is invalid with respect to Authentication */ - public static Authentication fromJson(String jsonString) throws JsonProcessingException { + public static Authentication fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Authentication.class); } @@ -285,7 +285,7 @@ public static Authentication fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java index 956333ef0..356c49374 100644 --- a/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java +++ b/src/main/java/com/adyen/model/balanceplatform/AuthorisedCardUsers.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AuthorisedCardUsers */ @JsonPropertyOrder({AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS}) @@ -171,10 +171,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthorisedCardUsers - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthorisedCardUsers + * @throws JacksonException if the JSON string is invalid with respect to AuthorisedCardUsers */ - public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcessingException { + public static AuthorisedCardUsers fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthorisedCardUsers.class); } @@ -183,7 +182,7 @@ public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java index a58459332..6c482db9f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BRLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BRLocalAccountIdentification */ @JsonPropertyOrder({ @@ -405,11 +405,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } @@ -418,7 +417,7 @@ public static BRLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Balance.java b/src/main/java/com/adyen/model/balanceplatform/Balance.java index 04cbbf3af..6e3f0b9c9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Balance.java +++ b/src/main/java/com/adyen/model/balanceplatform/Balance.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Balance */ @JsonPropertyOrder({ @@ -433,9 +433,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Balance - * @throws JsonProcessingException if the JSON string is invalid with respect to Balance + * @throws JacksonException if the JSON string is invalid with respect to Balance */ - public static Balance fromJson(String jsonString) throws JsonProcessingException { + public static Balance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Balance.class); } @@ -444,7 +444,7 @@ public static Balance fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java index 5719ab3c7..1aaeec89e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccount.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccount */ @JsonPropertyOrder({ @@ -803,9 +803,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccount + * @throws JacksonException if the JSON string is invalid with respect to BalanceAccount */ - public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } @@ -814,7 +814,7 @@ public static BalanceAccount fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java index 3005a86a2..1dc7dd9ea 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountBase.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountBase */ @JsonPropertyOrder({ @@ -745,10 +745,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountBase - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountBase + * @throws JacksonException if the JSON string is invalid with respect to BalanceAccountBase */ - public static BalanceAccountBase fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountBase fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountBase.class); } @@ -757,7 +756,7 @@ public static BalanceAccountBase fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfiguration.java index c6c300b5e..f813c0f33 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfiguration.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** BalanceAccountConfiguration */ @JsonPropertyOrder({ @@ -1131,11 +1131,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountConfiguration */ - public static BalanceAccountConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountConfiguration.class); } @@ -1144,7 +1143,7 @@ public static BalanceAccountConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationRequest.java index e18cabb62..af6d0f2df 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountConfigurationRequest */ @JsonPropertyOrder({ @@ -1016,11 +1016,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountConfigurationRequest */ public static BalanceAccountConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountConfigurationRequest.class); } @@ -1029,7 +1029,7 @@ public static BalanceAccountConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationUpdate.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationUpdate.java index 04dafb4a8..1d205e695 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurationUpdate.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountConfigurationUpdate */ @JsonPropertyOrder({ @@ -888,11 +888,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountConfigurationUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountConfigurationUpdate */ public static BalanceAccountConfigurationUpdate fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountConfigurationUpdate.class); } @@ -901,7 +901,7 @@ public static BalanceAccountConfigurationUpdate fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurations.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurations.java index ce294232e..5e47511b6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurations.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountConfigurations.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BalanceAccountConfigurations */ @JsonPropertyOrder({ @@ -232,11 +232,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountConfigurations - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountConfigurations */ - public static BalanceAccountConfigurations fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountConfigurations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountConfigurations.class); } @@ -245,7 +244,7 @@ public static BalanceAccountConfigurations fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java index bec32cc39..bd8728564 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountInfo.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** BalanceAccountInfo */ @JsonPropertyOrder({ @@ -597,10 +597,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceAccountInfo + * @throws JacksonException if the JSON string is invalid with respect to BalanceAccountInfo */ - public static BalanceAccountInfo fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccountInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountInfo.class); } @@ -609,7 +608,7 @@ public static BalanceAccountInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java index 4f806a8cf..580041e36 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceAccountUpdateRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountUpdateRequest */ @JsonPropertyOrder({ @@ -596,11 +596,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceAccountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountUpdateRequest */ - public static BalanceAccountUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountUpdateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountUpdateRequest.class); } @@ -609,7 +608,7 @@ public static BalanceAccountUpdateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java index fa01f7b00..9ef9a1d9d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalancePlatform.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatform */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalancePlatform - * @throws JsonProcessingException if the JSON string is invalid with respect to BalancePlatform + * @throws JacksonException if the JSON string is invalid with respect to BalancePlatform */ - public static BalancePlatform fromJson(String jsonString) throws JsonProcessingException { + public static BalancePlatform fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatform.class); } @@ -273,7 +273,7 @@ public static BalancePlatform fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfiguration.java index c103c0c63..4398330fb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfiguration.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformConfiguration */ @JsonPropertyOrder({ @@ -1279,11 +1279,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalancePlatformConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformConfiguration */ - public static BalancePlatformConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformConfiguration.class); } @@ -1292,7 +1291,7 @@ public static BalancePlatformConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfigurations.java b/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfigurations.java index 515f76952..e930adb12 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfigurations.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalancePlatformConfigurations.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BalancePlatformConfigurations */ @JsonPropertyOrder({BalancePlatformConfigurations.JSON_PROPERTY_BALANCE_PLATFORM_PAYOUT_SCHEDULES}) @@ -185,11 +185,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalancePlatformConfigurations - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformConfigurations */ - public static BalancePlatformConfigurations fromJson(String jsonString) - throws JsonProcessingException { + public static BalancePlatformConfigurations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformConfigurations.class); } @@ -198,7 +197,7 @@ public static BalancePlatformConfigurations fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java index e45c4f5e6..6fb155126 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceSweepConfigurationsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BalanceSweepConfigurationsResponse */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceSweepConfigurationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceSweepConfigurationsResponse */ public static BalanceSweepConfigurationsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceSweepConfigurationsResponse.class); } @@ -284,7 +284,7 @@ public static BalanceSweepConfigurationsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java index 5ebd77aeb..35a4b4bfa 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSetting.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BalanceWebhookSetting */ @JsonPropertyOrder({BalanceWebhookSetting.JSON_PROPERTY_CONDITIONS}) @@ -196,10 +196,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceWebhookSetting - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceWebhookSetting + * @throws JacksonException if the JSON string is invalid with respect to BalanceWebhookSetting */ - public static BalanceWebhookSetting fromJson(String jsonString) throws JsonProcessingException { + public static BalanceWebhookSetting fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSetting.class); } @@ -208,7 +207,7 @@ public static BalanceWebhookSetting fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java index 3ed252cdc..40f78f96c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfo.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceWebhookSettingInfo */ @JsonPropertyOrder({ @@ -481,11 +481,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceWebhookSettingInfo */ - public static BalanceWebhookSettingInfo fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceWebhookSettingInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfo.class); } @@ -494,7 +493,7 @@ public static BalanceWebhookSettingInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java index 7ccc72ab9..a55d79cf3 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingInfoUpdate.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceWebhookSettingInfoUpdate */ @JsonPropertyOrder({ @@ -487,11 +487,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceWebhookSettingInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceWebhookSettingInfoUpdate */ public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceWebhookSettingInfoUpdate.class); } @@ -500,7 +500,7 @@ public static BalanceWebhookSettingInfoUpdate fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java index 4a61daf41..9aef4d490 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccount */ @JsonPropertyOrder({BankAccount.JSON_PROPERTY_ACCOUNT_IDENTIFICATION}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccount + * @throws JacksonException if the JSON string is invalid with respect to BankAccount */ - public static BankAccount fromJson(String jsonString) throws JsonProcessingException { + public static BankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } @@ -171,7 +171,7 @@ public static BankAccount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java index 6243bb486..3dbbde537 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountAccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = BankAccountAccountIdentification.BankAccountAccountIdentificationDeserializer.class) @@ -53,9 +52,9 @@ public BankAccountAccountIdentificationSerializer() { @Override public void serialize( - BankAccountAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + BankAccountAccountIdentification value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -71,12 +70,11 @@ public BankAccountAccountIdentificationDeserializer(Class vc) { @Override public BankAccountAccountIdentification deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AULocalAccountIdentification try { boolean attemptParsing = true; @@ -90,8 +88,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, AULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -117,8 +114,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, BRLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -144,8 +140,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CALocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -171,8 +166,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -198,8 +192,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, DKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -225,8 +218,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -252,8 +244,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -279,8 +270,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -306,8 +296,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NOLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -333,8 +322,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -360,8 +348,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NumberAndBicAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -388,8 +375,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, PLLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -415,8 +401,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SELocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -442,8 +427,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SGLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -469,8 +453,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -496,8 +479,7 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, USLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -515,7 +497,8 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for BankAccountAccountIdentification: %d classes match result, expected 1", match)); @@ -524,9 +507,8 @@ public BankAccountAccountIdentification deserialize(JsonParser jp, Deserializati /** Handle deserialization of the 'null' value. */ @Override public BankAccountAccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountAccountIdentification cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "BankAccountAccountIdentification cannot be null"); } } @@ -994,7 +976,7 @@ public static BankAccountAccountIdentification fromJson(String jsonString) throw * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java index b11b07c2b..b545f61bb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountDetails */ @JsonPropertyOrder({ @@ -563,10 +563,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountDetails + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetails */ - public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } @@ -575,7 +574,7 @@ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java index 0fb3cbf6a..9746b074e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationTypeRequirement.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankAccountIdentificationTypeRequirement */ @JsonPropertyOrder({ @@ -426,11 +426,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountIdentificationTypeRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BankAccountIdentificationTypeRequirement */ public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationTypeRequirement.class); } @@ -439,7 +439,7 @@ public static BankAccountIdentificationTypeRequirement fromJson(String jsonStrin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java index 52be84a73..43417e088 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountIdentificationValidationRequest */ @JsonPropertyOrder({ @@ -171,11 +171,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountIdentificationValidationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BankAccountIdentificationValidationRequest */ public static BankAccountIdentificationValidationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountIdentificationValidationRequest.class); } @@ -184,7 +184,7 @@ public static BankAccountIdentificationValidationRequest fromJson(String jsonStr * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java index 8229fda5e..4d2478431 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountIdentificationValidationRequestAccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -62,9 +61,9 @@ public BankAccountIdentificationValidationRequestAccountIdentificationSerializer public void serialize( BankAccountIdentificationValidationRequestAccountIdentification value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -81,12 +80,11 @@ public BankAccountIdentificationValidationRequestAccountIdentificationDeserializ @Override public BankAccountIdentificationValidationRequestAccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AULocalAccountIdentification try { boolean attemptParsing = true; @@ -100,8 +98,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, AULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -127,8 +124,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, BRLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -154,8 +150,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CALocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -181,8 +176,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -208,8 +202,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, DKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -235,8 +228,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -262,8 +254,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -289,8 +280,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -316,8 +306,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NOLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -343,8 +332,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -370,8 +358,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NumberAndBicAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -398,8 +385,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, PLLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -425,8 +411,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SELocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -452,8 +437,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SGLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -479,8 +463,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -506,8 +489,7 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, USLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -526,7 +508,8 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for BankAccountIdentificationValidationRequestAccountIdentification: %d classes match result, expected 1", match)); @@ -535,10 +518,9 @@ public BankAccountIdentificationValidationRequestAccountIdentification deseriali /** Handle deserialization of the 'null' value. */ @Override public BankAccountIdentificationValidationRequestAccountIdentification getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); + DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from( + ctxt, "BankAccountIdentificationValidationRequestAccountIdentification cannot be null"); } } @@ -1031,7 +1013,7 @@ public static BankAccountIdentificationValidationRequestAccountIdentification fr * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java index 03675d15d..e69c39a06 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankAccountModel.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankAccountModel */ @JsonPropertyOrder({BankAccountModel.JSON_PROPERTY_FORM_FACTOR}) @@ -242,9 +242,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountModel - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountModel + * @throws JacksonException if the JSON string is invalid with respect to BankAccountModel */ - public static BankAccountModel fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountModel fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountModel.class); } @@ -253,7 +253,7 @@ public static BankAccountModel fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java index 3fc8f7e68..1cd1a6955 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/BankIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankIdentification */ @JsonPropertyOrder({ @@ -326,10 +326,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankIdentification + * @throws JacksonException if the JSON string is invalid with respect to BankIdentification */ - public static BankIdentification fromJson(String jsonString) throws JsonProcessingException { + public static BankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankIdentification.class); } @@ -338,7 +337,7 @@ public static BankIdentification fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java index 0f44c63cb..06fdea07f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BeginScaDeviceRegistrationRequest */ @JsonPropertyOrder({ @@ -223,11 +223,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BeginScaDeviceRegistrationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BeginScaDeviceRegistrationRequest */ public static BeginScaDeviceRegistrationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BeginScaDeviceRegistrationRequest.class); } @@ -236,7 +236,7 @@ public static BeginScaDeviceRegistrationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java index 4336c96b7..097cb0c38 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/BeginScaDeviceRegistrationResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BeginScaDeviceRegistrationResponse */ @JsonPropertyOrder({ @@ -217,11 +217,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BeginScaDeviceRegistrationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BeginScaDeviceRegistrationResponse */ public static BeginScaDeviceRegistrationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BeginScaDeviceRegistrationResponse.class); } @@ -230,7 +230,7 @@ public static BeginScaDeviceRegistrationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java index 5b030e5ec..dd38ac4fc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/BrandVariantsRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BrandVariantsRestriction */ @JsonPropertyOrder({ @@ -248,11 +248,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BrandVariantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BrandVariantsRestriction + * @throws JacksonException if the JSON string is invalid with respect to BrandVariantsRestriction */ - public static BrandVariantsRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static BrandVariantsRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BrandVariantsRestriction.class); } @@ -261,7 +259,7 @@ public static BrandVariantsRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java index c52773053..8eb0a2172 100644 --- a/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/BulkAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BulkAddress */ @JsonPropertyOrder({ @@ -783,9 +783,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BulkAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to BulkAddress + * @throws JacksonException if the JSON string is invalid with respect to BulkAddress */ - public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { + public static BulkAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } @@ -794,7 +794,7 @@ public static BulkAddress fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java index b8364bcd8..c99eb7889 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CALocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CALocalAccountIdentification */ @JsonPropertyOrder({ @@ -452,11 +452,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } @@ -465,7 +464,7 @@ public static CALocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java index e14ec2944..a4418e403 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/CZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -324,11 +324,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } @@ -337,7 +336,7 @@ public static CZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java index cfa2443c7..c330d3822 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblem.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapabilityProblem */ @JsonPropertyOrder({ @@ -218,9 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblem - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblem + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblem */ - public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } @@ -229,7 +229,7 @@ public static CapabilityProblem fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java index 40453f316..9a9096f44 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntity.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntity */ @JsonPropertyOrder({ @@ -367,10 +367,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblemEntity */ - public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } @@ -379,7 +378,7 @@ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java index fe84efebd..88a7ff014 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilityProblemEntityRecursive.java @@ -19,12 +19,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ @@ -325,11 +325,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CapabilityProblemEntityRecursive */ public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } @@ -338,7 +338,7 @@ public static CapabilityProblemEntityRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java index 0deff109f..604b4fa3a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapabilitySettings.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilitySettings */ @JsonPropertyOrder({ @@ -451,10 +451,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JacksonException if the JSON string is invalid with respect to CapabilitySettings */ - public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { + public static CapabilitySettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } @@ -463,7 +462,7 @@ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java index dbe54accb..4603a453b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalBalance.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CapitalBalance */ @JsonPropertyOrder({ @@ -311,9 +311,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalBalance - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalBalance + * @throws JacksonException if the JSON string is invalid with respect to CapitalBalance */ - public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { + public static CapitalBalance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } @@ -322,7 +322,7 @@ public static CapitalBalance fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java index 9349459e0..c51a5aa24 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/CapitalGrantAccount.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapitalGrantAccount */ @JsonPropertyOrder({ @@ -336,10 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalGrantAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapitalGrantAccount + * @throws JacksonException if the JSON string is invalid with respect to CapitalGrantAccount */ - public static CapitalGrantAccount fromJson(String jsonString) throws JsonProcessingException { + public static CapitalGrantAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalGrantAccount.class); } @@ -348,7 +347,7 @@ public static CapitalGrantAccount fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Card.java b/src/main/java/com/adyen/model/balanceplatform/Card.java index d3a233f9b..f818c1bff 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Card.java +++ b/src/main/java/com/adyen/model/balanceplatform/Card.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -882,9 +882,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -893,7 +893,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java index cc45f897d..ee6128b39 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardConfiguration.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardConfiguration */ @JsonPropertyOrder({ @@ -991,9 +991,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to CardConfiguration + * @throws JacksonException if the JSON string is invalid with respect to CardConfiguration */ - public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static CardConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } @@ -1002,7 +1002,7 @@ public static CardConfiguration fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java index 39884d7f4..55d60c093 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardInfo */ @JsonPropertyOrder({ @@ -642,9 +642,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CardInfo + * @throws JacksonException if the JSON string is invalid with respect to CardInfo */ - public static CardInfo fromJson(String jsonString) throws JsonProcessingException { + public static CardInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardInfo.class); } @@ -653,7 +653,7 @@ public static CardInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java index 817c4759b..ebf48ff32 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrder.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrder.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardOrder */ @JsonPropertyOrder({ @@ -575,9 +575,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardOrder - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrder + * @throws JacksonException if the JSON string is invalid with respect to CardOrder */ - public static CardOrder fromJson(String jsonString) throws JsonProcessingException { + public static CardOrder fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrder.class); } @@ -586,7 +586,7 @@ public static CardOrder fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java index 1cf2f441b..7cf667ea5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItem.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** CardOrderItem */ @JsonPropertyOrder({ @@ -507,9 +507,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardOrderItem - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItem + * @throws JacksonException if the JSON string is invalid with respect to CardOrderItem */ - public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { + public static CardOrderItem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } @@ -518,7 +518,7 @@ public static CardOrderItem fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java index e49b6f81f..c71ade68a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/balanceplatform/CardOrderItemDeliveryStatus.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardOrderItemDeliveryStatus */ @JsonPropertyOrder({ @@ -315,11 +315,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } @@ -328,7 +327,7 @@ public static CardOrderItemDeliveryStatus fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Condition.java b/src/main/java/com/adyen/model/balanceplatform/Condition.java index 7aaddf768..a5e845b41 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Condition.java +++ b/src/main/java/com/adyen/model/balanceplatform/Condition.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Condition */ @JsonPropertyOrder({ @@ -411,9 +411,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Condition - * @throws JsonProcessingException if the JSON string is invalid with respect to Condition + * @throws JacksonException if the JSON string is invalid with respect to Condition */ - public static Condition fromJson(String jsonString) throws JsonProcessingException { + public static Condition fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Condition.class); } @@ -422,7 +422,7 @@ public static Condition fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java index 2881226f5..f12ada931 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/ContactDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * ContactDetails @@ -310,9 +310,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ContactDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ContactDetails + * @throws JacksonException if the JSON string is invalid with respect to ContactDetails */ - public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { + public static ContactDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } @@ -321,7 +321,7 @@ public static ContactDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java index 098959974..6edc0735f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Counterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/Counterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Counterparty */ @JsonPropertyOrder({ @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Counterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to Counterparty + * @throws JacksonException if the JSON string is invalid with respect to Counterparty */ - public static Counterparty fromJson(String jsonString) throws JsonProcessingException { + public static Counterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Counterparty.class); } @@ -228,7 +228,7 @@ public static Counterparty fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java index 7ac2377d7..73cc568ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyBankRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CounterpartyBankRestriction */ @JsonPropertyOrder({ @@ -218,11 +218,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CounterpartyBankRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CounterpartyBankRestriction */ - public static CounterpartyBankRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static CounterpartyBankRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CounterpartyBankRestriction.class); } @@ -231,7 +230,7 @@ public static CounterpartyBankRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java index 980f9ef50..8950f37de 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CounterpartyTypesRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CounterpartyTypesRestriction */ @JsonPropertyOrder({ @@ -267,11 +267,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CounterpartyTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CounterpartyTypesRestriction */ - public static CounterpartyTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static CounterpartyTypesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CounterpartyTypesRestriction.class); } @@ -280,7 +279,7 @@ public static CounterpartyTypesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java index ec1c10e54..7b603c8e7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/CountriesRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CountriesRestriction */ @JsonPropertyOrder({ @@ -224,10 +224,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CountriesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CountriesRestriction + * @throws JacksonException if the JSON string is invalid with respect to CountriesRestriction */ - public static CountriesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static CountriesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CountriesRestriction.class); } @@ -236,7 +235,7 @@ public static CountriesRestriction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateScaInformation.java b/src/main/java/com/adyen/model/balanceplatform/CreateScaInformation.java index 07f4e890b..fe8a9f200 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateScaInformation.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateScaInformation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateScaInformation */ @JsonPropertyOrder({ @@ -226,10 +226,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateScaInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateScaInformation + * @throws JacksonException if the JSON string is invalid with respect to CreateScaInformation */ - public static CreateScaInformation fromJson(String jsonString) throws JsonProcessingException { + public static CreateScaInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateScaInformation.class); } @@ -238,7 +237,7 @@ public static CreateScaInformation fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java index a3b739f1e..ca6266024 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateSweepConfigurationV2 */ @JsonPropertyOrder({ @@ -1323,11 +1323,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateSweepConfigurationV2 */ - public static CreateSweepConfigurationV2 fromJson(String jsonString) - throws JsonProcessingException { + public static CreateSweepConfigurationV2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateSweepConfigurationV2.class); } @@ -1336,7 +1335,7 @@ public static CreateSweepConfigurationV2 fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateTransferLimitRequest.java b/src/main/java/com/adyen/model/balanceplatform/CreateTransferLimitRequest.java index 1927c1365..dcfcf33f4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateTransferLimitRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateTransferLimitRequest.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateTransferLimitRequest */ @JsonPropertyOrder({ @@ -487,11 +487,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateTransferLimitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateTransferLimitRequest */ - public static CreateTransferLimitRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateTransferLimitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateTransferLimitRequest.class); } @@ -500,7 +499,7 @@ public static CreateTransferLimitRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java index d1e36dbc4..1118cdfaf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/DKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -304,11 +304,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } @@ -317,7 +316,7 @@ public static DKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java index 4da42adaf..76afd1733 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DayOfWeekRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DayOfWeekRestriction */ @JsonPropertyOrder({ @@ -279,10 +279,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DayOfWeekRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DayOfWeekRestriction + * @throws JacksonException if the JSON string is invalid with respect to DayOfWeekRestriction */ - public static DayOfWeekRestriction fromJson(String jsonString) throws JsonProcessingException { + public static DayOfWeekRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DayOfWeekRestriction.class); } @@ -291,7 +290,7 @@ public static DayOfWeekRestriction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java index 042a5a486..e30b7ff87 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java index c201c5c12..877d21e86 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java +++ b/src/main/java/com/adyen/model/balanceplatform/DelegatedAuthenticationData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DelegatedAuthenticationData */ @JsonPropertyOrder({DelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DelegatedAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DelegatedAuthenticationData */ - public static DelegatedAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + public static DelegatedAuthenticationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DelegatedAuthenticationData.class); } @@ -177,7 +176,7 @@ public static DelegatedAuthenticationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java index 053520094..2bcaaadd7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryAddress */ @JsonPropertyOrder({ @@ -501,9 +501,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeliveryAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryAddress + * @throws JacksonException if the JSON string is invalid with respect to DeliveryAddress */ - public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } @@ -512,7 +512,7 @@ public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java index fa2d8dded..b82c9d4c5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryContact.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryContact */ @JsonPropertyOrder({ @@ -474,9 +474,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeliveryContact - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryContact + * @throws JacksonException if the JSON string is invalid with respect to DeliveryContact */ - public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } @@ -485,7 +485,7 @@ public static DeliveryContact fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Device.java b/src/main/java/com/adyen/model/balanceplatform/Device.java index 7aa367f7c..9ccb89e74 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Device.java +++ b/src/main/java/com/adyen/model/balanceplatform/Device.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Device */ @JsonPropertyOrder({ @@ -370,9 +370,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Device - * @throws JsonProcessingException if the JSON string is invalid with respect to Device + * @throws JacksonException if the JSON string is invalid with respect to Device */ - public static Device fromJson(String jsonString) throws JsonProcessingException { + public static Device fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Device.class); } @@ -381,7 +381,7 @@ public static Device fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java index 5c82521c9..49ae43a41 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeviceInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeviceInfo */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeviceInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceInfo + * @throws JacksonException if the JSON string is invalid with respect to DeviceInfo */ - public static DeviceInfo fromJson(String jsonString) throws JsonProcessingException { + public static DeviceInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeviceInfo.class); } @@ -267,7 +267,7 @@ public static DeviceInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java index 6aa1354e7..e61839577 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/DifferentCurrenciesRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DifferentCurrenciesRestriction */ @JsonPropertyOrder({ @@ -223,11 +223,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DifferentCurrenciesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DifferentCurrenciesRestriction */ - public static DifferentCurrenciesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static DifferentCurrenciesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DifferentCurrenciesRestriction.class); } @@ -236,7 +235,7 @@ public static DifferentCurrenciesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Duration.java b/src/main/java/com/adyen/model/balanceplatform/Duration.java index 9780c5784..b224814ab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Duration.java +++ b/src/main/java/com/adyen/model/balanceplatform/Duration.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Duration */ @JsonPropertyOrder({Duration.JSON_PROPERTY_UNIT, Duration.JSON_PROPERTY_VALUE}) @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Duration - * @throws JsonProcessingException if the JSON string is invalid with respect to Duration + * @throws JacksonException if the JSON string is invalid with respect to Duration */ - public static Duration fromJson(String jsonString) throws JsonProcessingException { + public static Duration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Duration.class); } @@ -285,7 +285,7 @@ public static Duration fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java index 3bf383c6d..8dc462ed1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/EntryModesRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EntryModesRestriction */ @JsonPropertyOrder({ @@ -283,10 +283,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EntryModesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EntryModesRestriction + * @throws JacksonException if the JSON string is invalid with respect to EntryModesRestriction */ - public static EntryModesRestriction fromJson(String jsonString) throws JsonProcessingException { + public static EntryModesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EntryModesRestriction.class); } @@ -295,7 +294,7 @@ public static EntryModesRestriction fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Expiry.java b/src/main/java/com/adyen/model/balanceplatform/Expiry.java index d7a1e7dcb..d550cf9c1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Expiry.java +++ b/src/main/java/com/adyen/model/balanceplatform/Expiry.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Expiry */ @JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Expiry - * @throws JsonProcessingException if the JSON string is invalid with respect to Expiry + * @throws JacksonException if the JSON string is invalid with respect to Expiry */ - public static Expiry fromJson(String jsonString) throws JsonProcessingException { + public static Expiry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Expiry.class); } @@ -216,7 +216,7 @@ public static Expiry fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Fee.java b/src/main/java/com/adyen/model/balanceplatform/Fee.java index 1c31e7b32..0690899a2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Fee.java +++ b/src/main/java/com/adyen/model/balanceplatform/Fee.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Fee */ @JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Fee - * @throws JsonProcessingException if the JSON string is invalid with respect to Fee + * @throws JacksonException if the JSON string is invalid with respect to Fee */ - public static Fee fromJson(String jsonString) throws JsonProcessingException { + public static Fee fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Fee.class); } @@ -169,7 +169,7 @@ public static Fee fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java index 56ca40cb0..c93da92d6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FinishScaDeviceRegistrationRequest */ @JsonPropertyOrder({FinishScaDeviceRegistrationRequest.JSON_PROPERTY_SDK_OUTPUT}) @@ -166,11 +166,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FinishScaDeviceRegistrationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * FinishScaDeviceRegistrationRequest */ public static FinishScaDeviceRegistrationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, FinishScaDeviceRegistrationRequest.class); } @@ -179,7 +179,7 @@ public static FinishScaDeviceRegistrationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java index 81ad85778..0a2ffcbb4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/FinishScaDeviceRegistrationResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FinishScaDeviceRegistrationResponse */ @JsonPropertyOrder({FinishScaDeviceRegistrationResponse.JSON_PROPERTY_SCA_DEVICE}) @@ -160,11 +160,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FinishScaDeviceRegistrationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * FinishScaDeviceRegistrationResponse */ public static FinishScaDeviceRegistrationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, FinishScaDeviceRegistrationResponse.class); } @@ -173,7 +173,7 @@ public static FinishScaDeviceRegistrationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java index a2aadc42b..d5aef8937 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetNetworkTokenResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GetNetworkTokenResponse */ @JsonPropertyOrder({GetNetworkTokenResponse.JSON_PROPERTY_TOKEN}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetNetworkTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetNetworkTokenResponse + * @throws JacksonException if the JSON string is invalid with respect to GetNetworkTokenResponse */ - public static GetNetworkTokenResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetNetworkTokenResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetNetworkTokenResponse.class); } @@ -170,7 +169,7 @@ public static GetNetworkTokenResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java index f8aafbb14..1f2af0e74 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/GetTaxFormResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GetTaxFormResponse */ @JsonPropertyOrder({ @@ -251,10 +251,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTaxFormResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTaxFormResponse + * @throws JacksonException if the JSON string is invalid with respect to GetTaxFormResponse */ - public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetTaxFormResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTaxFormResponse.class); } @@ -263,7 +262,7 @@ public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java index e35384f0e..dd0ae235c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantLimit.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantLimit */ @JsonPropertyOrder({GrantLimit.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantLimit - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantLimit + * @throws JacksonException if the JSON string is invalid with respect to GrantLimit */ - public static GrantLimit fromJson(String jsonString) throws JsonProcessingException { + public static GrantLimit fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantLimit.class); } @@ -169,7 +169,7 @@ public static GrantLimit fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java index a409257b5..5a8b90501 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffer.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GrantOffer */ @JsonPropertyOrder({ @@ -561,9 +561,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantOffer - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantOffer + * @throws JacksonException if the JSON string is invalid with respect to GrantOffer */ - public static GrantOffer fromJson(String jsonString) throws JsonProcessingException { + public static GrantOffer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantOffer.class); } @@ -572,7 +572,7 @@ public static GrantOffer fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java index 40cf0cb3b..9788f19d6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java +++ b/src/main/java/com/adyen/model/balanceplatform/GrantOffers.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GrantOffers */ @JsonPropertyOrder({GrantOffers.JSON_PROPERTY_GRANT_OFFERS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantOffers - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantOffers + * @throws JacksonException if the JSON string is invalid with respect to GrantOffers */ - public static GrantOffers fromJson(String jsonString) throws JsonProcessingException { + public static GrantOffers fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantOffers.class); } @@ -179,7 +179,7 @@ public static GrantOffers fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java index 7a8673188..d80faa7ac 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static HKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java index bf21550de..bdd1681f1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/HULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HULocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static HULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Href.java b/src/main/java/com/adyen/model/balanceplatform/Href.java index 07356733b..a5bbc3733 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Href.java +++ b/src/main/java/com/adyen/model/balanceplatform/Href.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Href */ @JsonPropertyOrder({Href.JSON_PROPERTY_HREF}) @@ -157,9 +157,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Href - * @throws JsonProcessingException if the JSON string is invalid with respect to Href + * @throws JacksonException if the JSON string is invalid with respect to Href */ - public static Href fromJson(String jsonString) throws JsonProcessingException { + public static Href fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Href.class); } @@ -168,7 +168,7 @@ public static Href fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java index b19c8c029..2825a061f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -318,7 +317,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java index 1f6ab3ca3..888baf11e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/IbanAccountIdentificationRequirement.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentificationRequirement */ @JsonPropertyOrder({ @@ -325,11 +325,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentificationRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentificationRequirement */ public static IbanAccountIdentificationRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentificationRequirement.class); } @@ -338,7 +338,7 @@ public static IbanAccountIdentificationRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java index 7fea9ed63..65d1b9640 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/InternationalTransactionRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InternationalTransactionRestriction */ @JsonPropertyOrder({ @@ -223,11 +223,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InternationalTransactionRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InternationalTransactionRestriction */ public static InternationalTransactionRestriction fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, InternationalTransactionRestriction.class); } @@ -236,7 +236,7 @@ public static InternationalTransactionRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java index fdbb00344..977762ea1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/InvalidField.java +++ b/src/main/java/com/adyen/model/balanceplatform/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/JSON.java b/src/main/java/com/adyen/model/balanceplatform/JSON.java index ee05bfaec..055f7078b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/JSON.java +++ b/src/main/java/com/adyen/model/balanceplatform/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/balanceplatform/Link.java b/src/main/java/com/adyen/model/balanceplatform/Link.java index 36394234c..25def2752 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Link.java +++ b/src/main/java/com/adyen/model/balanceplatform/Link.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Link */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Link - * @throws JsonProcessingException if the JSON string is invalid with respect to Link + * @throws JacksonException if the JSON string is invalid with respect to Link */ - public static Link fromJson(String jsonString) throws JsonProcessingException { + public static Link fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Link.class); } @@ -373,7 +373,7 @@ public static Link fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java index 90baf1e4c..748a71c3f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ListAssociationsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListAssociationsResponse */ @JsonPropertyOrder({ @@ -322,11 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListAssociationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListAssociationsResponse + * @throws JacksonException if the JSON string is invalid with respect to ListAssociationsResponse */ - public static ListAssociationsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListAssociationsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListAssociationsResponse.class); } @@ -335,7 +333,7 @@ public static ListAssociationsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ListMandatesResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListMandatesResponse.java index 076422a76..c9c248835 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ListMandatesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ListMandatesResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListMandatesResponse */ @JsonPropertyOrder({ @@ -218,10 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListMandatesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListMandatesResponse + * @throws JacksonException if the JSON string is invalid with respect to ListMandatesResponse */ - public static ListMandatesResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListMandatesResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListMandatesResponse.class); } @@ -230,7 +229,7 @@ public static ListMandatesResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java index 2917e83a6..bc57fac09 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/ListNetworkTokensResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListNetworkTokensResponse */ @JsonPropertyOrder({ListNetworkTokensResponse.JSON_PROPERTY_NETWORK_TOKENS}) @@ -168,11 +168,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListNetworkTokensResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListNetworkTokensResponse */ - public static ListNetworkTokensResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListNetworkTokensResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListNetworkTokensResponse.class); } @@ -181,7 +180,7 @@ public static ListNetworkTokensResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Mandate.java b/src/main/java/com/adyen/model/balanceplatform/Mandate.java index e38c5d46e..49d34dae4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Mandate.java +++ b/src/main/java/com/adyen/model/balanceplatform/Mandate.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Mandate */ @JsonPropertyOrder({ @@ -521,9 +521,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Mandate - * @throws JsonProcessingException if the JSON string is invalid with respect to Mandate + * @throws JacksonException if the JSON string is invalid with respect to Mandate */ - public static Mandate fromJson(String jsonString) throws JsonProcessingException { + public static Mandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Mandate.class); } @@ -532,7 +532,7 @@ public static Mandate fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MandateAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/MandateAccountIdentification.java index f1f902565..355914898 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MandateAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/MandateAccountIdentification.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandateAccountIdentification */ @JsonPropertyOrder({MandateAccountIdentification.JSON_PROPERTY_TYPE}) @@ -183,11 +183,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MandateAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MandateAccountIdentification */ - public static MandateAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static MandateAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateAccountIdentification.class); } @@ -196,7 +195,7 @@ public static MandateAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MandateBankAccount.java b/src/main/java/com/adyen/model/balanceplatform/MandateBankAccount.java index 77fc004c5..0f2c9de2a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MandateBankAccount.java +++ b/src/main/java/com/adyen/model/balanceplatform/MandateBankAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandateBankAccount */ @JsonPropertyOrder({ @@ -213,10 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MandateBankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MandateBankAccount + * @throws JacksonException if the JSON string is invalid with respect to MandateBankAccount */ - public static MandateBankAccount fromJson(String jsonString) throws JsonProcessingException { + public static MandateBankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateBankAccount.class); } @@ -225,7 +224,7 @@ public static MandateBankAccount fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MandatePartyIdentification.java b/src/main/java/com/adyen/model/balanceplatform/MandatePartyIdentification.java index 5569a0afb..08d2baea2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MandatePartyIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/MandatePartyIdentification.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandatePartyIdentification */ @JsonPropertyOrder({MandatePartyIdentification.JSON_PROPERTY_FULL_NAME}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MandatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MandatePartyIdentification */ - public static MandatePartyIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static MandatePartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandatePartyIdentification.class); } @@ -177,7 +176,7 @@ public static MandatePartyIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MandateUpdate.java b/src/main/java/com/adyen/model/balanceplatform/MandateUpdate.java index 1ceac99ba..f1013092f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MandateUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/MandateUpdate.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandateUpdate */ @JsonPropertyOrder({MandateUpdate.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID}) @@ -163,9 +163,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MandateUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to MandateUpdate + * @throws JacksonException if the JSON string is invalid with respect to MandateUpdate */ - public static MandateUpdate fromJson(String jsonString) throws JsonProcessingException { + public static MandateUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateUpdate.class); } @@ -174,7 +174,7 @@ public static MandateUpdate fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java index 84c4d79f6..fbbda9566 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingTransactionsRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MatchingTransactionsRestriction */ @JsonPropertyOrder({ @@ -211,11 +211,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MatchingTransactionsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MatchingTransactionsRestriction */ public static MatchingTransactionsRestriction fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, MatchingTransactionsRestriction.class); } @@ -224,7 +224,7 @@ public static MatchingTransactionsRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java index 2ee15eb15..7588bea47 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MatchingValuesRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MatchingValuesRestriction */ @JsonPropertyOrder({ @@ -269,11 +269,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MatchingValuesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MatchingValuesRestriction */ - public static MatchingValuesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static MatchingValuesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MatchingValuesRestriction.class); } @@ -282,7 +281,7 @@ public static MatchingValuesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java index 0271fd521..ffebf4c8e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MccsRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MccsRestriction */ @JsonPropertyOrder({MccsRestriction.JSON_PROPERTY_OPERATION, MccsRestriction.JSON_PROPERTY_VALUE}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MccsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to MccsRestriction + * @throws JacksonException if the JSON string is invalid with respect to MccsRestriction */ - public static MccsRestriction fromJson(String jsonString) throws JsonProcessingException { + public static MccsRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MccsRestriction.class); } @@ -226,7 +226,7 @@ public static MccsRestriction fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java index c54f83568..114984c3f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantAcquirerPair.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantAcquirerPair */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantAcquirerPair - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantAcquirerPair + * @throws JacksonException if the JSON string is invalid with respect to MerchantAcquirerPair */ - public static MerchantAcquirerPair fromJson(String jsonString) throws JsonProcessingException { + public static MerchantAcquirerPair fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantAcquirerPair.class); } @@ -220,7 +219,7 @@ public static MerchantAcquirerPair fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java index 53c99c9c8..46210c78b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantNamesRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MerchantNamesRestriction */ @JsonPropertyOrder({ @@ -218,11 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantNamesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantNamesRestriction + * @throws JacksonException if the JSON string is invalid with respect to MerchantNamesRestriction */ - public static MerchantNamesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static MerchantNamesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantNamesRestriction.class); } @@ -231,7 +229,7 @@ public static MerchantNamesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java index a3b81d472..6f3b835ba 100644 --- a/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/MerchantsRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MerchantsRestriction */ @JsonPropertyOrder({ @@ -218,10 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantsRestriction + * @throws JacksonException if the JSON string is invalid with respect to MerchantsRestriction */ - public static MerchantsRestriction fromJson(String jsonString) throws JsonProcessingException { + public static MerchantsRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantsRestriction.class); } @@ -230,7 +229,7 @@ public static MerchantsRestriction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ModelLocalTime.java b/src/main/java/com/adyen/model/balanceplatform/ModelLocalTime.java index 82e847105..6fa4c05d7 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ModelLocalTime.java +++ b/src/main/java/com/adyen/model/balanceplatform/ModelLocalTime.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ModelLocalTime */ @JsonPropertyOrder({ @@ -306,9 +306,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModelLocalTime - * @throws JsonProcessingException if the JSON string is invalid with respect to ModelLocalTime + * @throws JacksonException if the JSON string is invalid with respect to ModelLocalTime */ - public static ModelLocalTime fromJson(String jsonString) throws JsonProcessingException { + public static ModelLocalTime fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModelLocalTime.class); } @@ -317,7 +317,7 @@ public static ModelLocalTime fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java index 614e03f96..d9659c994 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NOLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NOLocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static NOLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java index 22a8d6342..11d1b9858 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static NZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Name.java b/src/main/java/com/adyen/model/balanceplatform/Name.java index 57565558a..ba00509bb 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Name.java +++ b/src/main/java/com/adyen/model/balanceplatform/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java index d0fb8c0fd..db043c3e8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkToken.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NetworkToken */ @JsonPropertyOrder({ @@ -644,9 +644,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NetworkToken - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkToken + * @throws JacksonException if the JSON string is invalid with respect to NetworkToken */ - public static NetworkToken fromJson(String jsonString) throws JsonProcessingException { + public static NetworkToken fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkToken.class); } @@ -655,7 +655,7 @@ public static NetworkToken fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java index 73a4f987f..47e60e014 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenActivationDataRequest */ @JsonPropertyOrder({NetworkTokenActivationDataRequest.JSON_PROPERTY_SDK_OUTPUT}) @@ -187,11 +187,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenActivationDataRequest */ public static NetworkTokenActivationDataRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataRequest.class); } @@ -200,7 +200,7 @@ public static NetworkTokenActivationDataRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java index b6c4a6441..40bf99c75 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenActivationDataResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenActivationDataResponse */ @JsonPropertyOrder({NetworkTokenActivationDataResponse.JSON_PROPERTY_SDK_INPUT}) @@ -190,11 +190,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NetworkTokenActivationDataResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenActivationDataResponse */ public static NetworkTokenActivationDataResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenActivationDataResponse.class); } @@ -203,7 +203,7 @@ public static NetworkTokenActivationDataResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java index 01c434496..66aff142e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/balanceplatform/NetworkTokenRequestor.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenRequestor */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRequestor + * @throws JacksonException if the JSON string is invalid with respect to NetworkTokenRequestor */ - public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenRequestor fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } @@ -220,7 +219,7 @@ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java index 93ea9109f..017c2b9e2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/NumberAndBicAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ @@ -377,11 +377,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NumberAndBicAccountIdentification */ public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } @@ -390,7 +390,7 @@ public static NumberAndBicAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java index 9defb22d5..40eadd17b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/PLLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PLLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static PLLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java index 77b9fbda7..b90b242fc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedAccountHoldersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaginatedAccountHoldersResponse */ @JsonPropertyOrder({ @@ -272,11 +272,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginatedAccountHoldersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaginatedAccountHoldersResponse */ public static PaginatedAccountHoldersResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginatedAccountHoldersResponse.class); } @@ -285,7 +285,7 @@ public static PaginatedAccountHoldersResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java index da55aeac9..fe3294edf 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedBalanceAccountsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaginatedBalanceAccountsResponse */ @JsonPropertyOrder({ @@ -279,11 +279,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginatedBalanceAccountsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaginatedBalanceAccountsResponse */ public static PaginatedBalanceAccountsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginatedBalanceAccountsResponse.class); } @@ -292,7 +292,7 @@ public static PaginatedBalanceAccountsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java index 119d7d61b..aaa098008 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderItemResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaginatedGetCardOrderItemResponse */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderItemResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaginatedGetCardOrderItemResponse */ public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderItemResponse.class); } @@ -284,7 +284,7 @@ public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java index 13be48603..5139761e6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedGetCardOrderResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaginatedGetCardOrderResponse */ @JsonPropertyOrder({ @@ -270,11 +270,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginatedGetCardOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaginatedGetCardOrderResponse */ - public static PaginatedGetCardOrderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaginatedGetCardOrderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginatedGetCardOrderResponse.class); } @@ -283,7 +282,7 @@ public static PaginatedGetCardOrderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java index e4ddf4a61..94e704bcd 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaginatedPaymentInstrumentsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaginatedPaymentInstrumentsResponse */ @JsonPropertyOrder({ @@ -282,11 +282,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginatedPaymentInstrumentsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaginatedPaymentInstrumentsResponse */ public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginatedPaymentInstrumentsResponse.class); } @@ -295,7 +295,7 @@ public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java index 94330cba6..09aec1e1c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrument.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -1178,9 +1178,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -1189,7 +1189,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index 4210965e5..389b0de46 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -11,19 +11,6 @@ package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -61,9 +60,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { public void serialize( PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -79,12 +78,11 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Cl @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize IbanAccountIdentification try { boolean attemptParsing = true; @@ -98,8 +96,7 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -118,7 +115,8 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); @@ -127,10 +125,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( /** Handle deserialization of the 'null' value. */ @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from( + ctxt, "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); } } @@ -226,7 +223,7 @@ public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJso * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java index 640d83ac9..50176d28f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroup.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** PaymentInstrumentGroup */ @JsonPropertyOrder({ @@ -434,10 +434,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentGroup + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrumentGroup */ - public static PaymentInstrumentGroup fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentGroup fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroup.class); } @@ -446,7 +445,7 @@ public static PaymentInstrumentGroup fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java index 23e71ea68..57b109bd9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentGroupInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** PaymentInstrumentGroupInfo */ @JsonPropertyOrder({ @@ -385,11 +385,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentGroupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentGroupInfo */ - public static PaymentInstrumentGroupInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentGroupInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentGroupInfo.class); } @@ -398,7 +397,7 @@ public static PaymentInstrumentGroupInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java index acca5c032..9f24b9f58 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrumentInfo */ @JsonPropertyOrder({ @@ -928,10 +928,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentInfo + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrumentInfo */ - public static PaymentInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentInfo.class); } @@ -940,7 +939,7 @@ public static PaymentInstrumentInfo fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java index e8fa9efac..37dbede32 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRequirement.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrumentRequirement */ @JsonPropertyOrder({ @@ -556,11 +556,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentRequirement */ - public static PaymentInstrumentRequirement fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRequirement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRequirement.class); } @@ -569,7 +568,7 @@ public static PaymentInstrumentRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java index c3af7942b..6c32dfa13 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrumentRevealInfo */ @JsonPropertyOrder({ @@ -256,11 +256,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentRevealInfo */ - public static PaymentInstrumentRevealInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRevealInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealInfo.class); } @@ -269,7 +268,7 @@ public static PaymentInstrumentRevealInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java index e0f6ce31a..d37e0587f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrumentRevealRequest */ @JsonPropertyOrder({ @@ -234,11 +234,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentRevealRequest */ - public static PaymentInstrumentRevealRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentRevealRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealRequest.class); } @@ -247,7 +246,7 @@ public static PaymentInstrumentRevealRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java index 711cebc1f..9ca6d9820 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentRevealResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrumentRevealResponse */ @JsonPropertyOrder({PaymentInstrumentRevealResponse.JSON_PROPERTY_ENCRYPTED_DATA}) @@ -161,11 +161,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentRevealResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentRevealResponse */ public static PaymentInstrumentRevealResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentRevealResponse.class); } @@ -174,7 +174,7 @@ public static PaymentInstrumentRevealResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java index 4f5b1ab35..b0c6eba91 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PaymentInstrumentUpdateRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrumentUpdateRequest */ @JsonPropertyOrder({ @@ -566,11 +566,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentUpdateRequest */ - public static PaymentInstrumentUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentUpdateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentUpdateRequest.class); } @@ -579,7 +578,7 @@ public static PaymentInstrumentUpdateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecution.java b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecution.java index e46eefc2b..3b9ffdfec 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecution.java +++ b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecution.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** PayoutScheduleExecution */ @JsonPropertyOrder({ @@ -313,10 +313,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutScheduleExecution - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutScheduleExecution + * @throws JacksonException if the JSON string is invalid with respect to PayoutScheduleExecution */ - public static PayoutScheduleExecution fromJson(String jsonString) throws JsonProcessingException { + public static PayoutScheduleExecution fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleExecution.class); } @@ -325,7 +324,7 @@ public static PayoutScheduleExecution fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutionDetails.java b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutionDetails.java index 21d30db4a..92f7c1167 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutionDetails.java +++ b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutionDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayoutScheduleExecutionDetails */ @JsonPropertyOrder({ @@ -261,11 +261,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutScheduleExecutionDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutScheduleExecutionDetails */ - public static PayoutScheduleExecutionDetails fromJson(String jsonString) - throws JsonProcessingException { + public static PayoutScheduleExecutionDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleExecutionDetails.class); } @@ -274,7 +273,7 @@ public static PayoutScheduleExecutionDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutions.java b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutions.java index 9ec2cdbcb..8ecb2a011 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutions.java +++ b/src/main/java/com/adyen/model/balanceplatform/PayoutScheduleExecutions.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PayoutScheduleExecutions */ @JsonPropertyOrder({PayoutScheduleExecutions.JSON_PROPERTY_PAYOUT_SCHEDULE_EXECUTIONS}) @@ -175,11 +175,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutScheduleExecutions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutScheduleExecutions + * @throws JacksonException if the JSON string is invalid with respect to PayoutScheduleExecutions */ - public static PayoutScheduleExecutions fromJson(String jsonString) - throws JsonProcessingException { + public static PayoutScheduleExecutions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleExecutions.class); } @@ -188,7 +186,7 @@ public static PayoutScheduleExecutions fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Phone.java b/src/main/java/com/adyen/model/balanceplatform/Phone.java index 2141baf8a..ff8521f24 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Phone.java +++ b/src/main/java/com/adyen/model/balanceplatform/Phone.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Phone */ @JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) @@ -259,9 +259,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Phone - * @throws JsonProcessingException if the JSON string is invalid with respect to Phone + * @throws JacksonException if the JSON string is invalid with respect to Phone */ - public static Phone fromJson(String jsonString) throws JsonProcessingException { + public static Phone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Phone.class); } @@ -270,7 +270,7 @@ public static Phone fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PhoneInfo.java b/src/main/java/com/adyen/model/balanceplatform/PhoneInfo.java index 16bbe582a..d8e050fbc 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PhoneInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/PhoneInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PhoneInfo */ @JsonPropertyOrder({ @@ -260,9 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PhoneInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PhoneInfo + * @throws JacksonException if the JSON string is invalid with respect to PhoneInfo */ - public static PhoneInfo fromJson(String jsonString) throws JsonProcessingException { + public static PhoneInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PhoneInfo.class); } @@ -271,7 +271,7 @@ public static PhoneInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java index 927bf9891..a5feb2c07 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java +++ b/src/main/java/com/adyen/model/balanceplatform/PhoneNumber.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PhoneNumber */ @JsonPropertyOrder({ @@ -323,9 +323,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PhoneNumber - * @throws JsonProcessingException if the JSON string is invalid with respect to PhoneNumber + * @throws JacksonException if the JSON string is invalid with respect to PhoneNumber */ - public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { + public static PhoneNumber fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } @@ -334,7 +334,7 @@ public static PhoneNumber fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java index 48da45b59..e350f26b8 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PinChangeRequest */ @JsonPropertyOrder({ @@ -335,9 +335,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PinChangeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PinChangeRequest + * @throws JacksonException if the JSON string is invalid with respect to PinChangeRequest */ - public static PinChangeRequest fromJson(String jsonString) throws JsonProcessingException { + public static PinChangeRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PinChangeRequest.class); } @@ -346,7 +346,7 @@ public static PinChangeRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java index 4cb2bc6d8..47c53e71a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PinChangeResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PinChangeResponse */ @JsonPropertyOrder({PinChangeResponse.JSON_PROPERTY_STATUS}) @@ -214,9 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PinChangeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PinChangeResponse + * @throws JacksonException if the JSON string is invalid with respect to PinChangeResponse */ - public static PinChangeResponse fromJson(String jsonString) throws JsonProcessingException { + public static PinChangeResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PinChangeResponse.class); } @@ -225,7 +225,7 @@ public static PinChangeResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java index 3df242092..f3ab93641 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/balanceplatform/PlatformPaymentConfiguration.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PlatformPaymentConfiguration */ @JsonPropertyOrder({ @@ -250,11 +250,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } @@ -263,7 +262,7 @@ public static PlatformPaymentConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java index 22137f670..2937b304e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/ProcessingTypesRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ProcessingTypesRestriction */ @JsonPropertyOrder({ @@ -281,11 +281,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ProcessingTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ProcessingTypesRestriction */ - public static ProcessingTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static ProcessingTypesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ProcessingTypesRestriction.class); } @@ -294,7 +293,7 @@ public static ProcessingTypesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java index c4c013f2d..3f24ccae9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/PublicKeyResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PublicKeyResponse */ @JsonPropertyOrder({ @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PublicKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PublicKeyResponse + * @throws JacksonException if the JSON string is invalid with respect to PublicKeyResponse */ - public static PublicKeyResponse fromJson(String jsonString) throws JsonProcessingException { + public static PublicKeyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PublicKeyResponse.class); } @@ -222,7 +222,7 @@ public static PublicKeyResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java index 5cec1aea6..eb5939a74 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAFinalResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RegisterSCAFinalResponse */ @JsonPropertyOrder({RegisterSCAFinalResponse.JSON_PROPERTY_SUCCESS}) @@ -158,11 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RegisterSCAFinalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCAFinalResponse + * @throws JacksonException if the JSON string is invalid with respect to RegisterSCAFinalResponse */ - public static RegisterSCAFinalResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RegisterSCAFinalResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RegisterSCAFinalResponse.class); } @@ -171,7 +169,7 @@ public static RegisterSCAFinalResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java index f48d0cffe..a6cbe7b41 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCARequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RegisterSCARequest */ @JsonPropertyOrder({ @@ -286,10 +286,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RegisterSCARequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCARequest + * @throws JacksonException if the JSON string is invalid with respect to RegisterSCARequest */ - public static RegisterSCARequest fromJson(String jsonString) throws JsonProcessingException { + public static RegisterSCARequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RegisterSCARequest.class); } @@ -298,7 +297,7 @@ public static RegisterSCARequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java index 4081d7985..97fe8a58f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RegisterSCAResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RegisterSCAResponse */ @JsonPropertyOrder({ @@ -324,10 +324,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RegisterSCAResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RegisterSCAResponse + * @throws JacksonException if the JSON string is invalid with respect to RegisterSCAResponse */ - public static RegisterSCAResponse fromJson(String jsonString) throws JsonProcessingException { + public static RegisterSCAResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RegisterSCAResponse.class); } @@ -336,7 +335,7 @@ public static RegisterSCAResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java index 133bd2c3f..a93fd7ee5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RemediatingAction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RemediatingAction */ @JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RemediatingAction - * @throws JsonProcessingException if the JSON string is invalid with respect to RemediatingAction + * @throws JacksonException if the JSON string is invalid with respect to RemediatingAction */ - public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { + public static RemediatingAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } @@ -216,7 +216,7 @@ public static RemediatingAction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java index 6bfba0503..84ab9d5ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RemoveAssociationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** RemoveAssociationRequest */ @JsonPropertyOrder({ @@ -267,11 +267,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RemoveAssociationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RemoveAssociationRequest + * @throws JacksonException if the JSON string is invalid with respect to RemoveAssociationRequest */ - public static RemoveAssociationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static RemoveAssociationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RemoveAssociationRequest.class); } @@ -280,7 +278,7 @@ public static RemoveAssociationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Repayment.java b/src/main/java/com/adyen/model/balanceplatform/Repayment.java index 0d7f6be12..fc770feae 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Repayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/Repayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Repayment */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Repayment - * @throws JsonProcessingException if the JSON string is invalid with respect to Repayment + * @throws JacksonException if the JSON string is invalid with respect to Repayment */ - public static Repayment fromJson(String jsonString) throws JsonProcessingException { + public static Repayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Repayment.class); } @@ -273,7 +273,7 @@ public static Repayment fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java index 6dea44ff5..6aad7c42c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/balanceplatform/RepaymentTerm.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RepaymentTerm */ @JsonPropertyOrder({ @@ -214,9 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RepaymentTerm - * @throws JsonProcessingException if the JSON string is invalid with respect to RepaymentTerm + * @throws JacksonException if the JSON string is invalid with respect to RepaymentTerm */ - public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { + public static RepaymentTerm fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } @@ -225,7 +225,7 @@ public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java index 1806c261f..8be7b9643 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java +++ b/src/main/java/com/adyen/model/balanceplatform/RestServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** RestServiceError */ @JsonPropertyOrder({ @@ -581,9 +581,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to RestServiceError + * @throws JacksonException if the JSON string is invalid with respect to RestServiceError */ - public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { + public static RestServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } @@ -592,7 +592,7 @@ public static RestServiceError fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java index 78c4b3470..a35be43aa 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RevealPinRequest */ @JsonPropertyOrder({ @@ -229,9 +229,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RevealPinRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to RevealPinRequest + * @throws JacksonException if the JSON string is invalid with respect to RevealPinRequest */ - public static RevealPinRequest fromJson(String jsonString) throws JsonProcessingException { + public static RevealPinRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RevealPinRequest.class); } @@ -240,7 +240,7 @@ public static RevealPinRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java index 46e0f9309..a518928f4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/RevealPinResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RevealPinResponse */ @JsonPropertyOrder({ @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RevealPinResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to RevealPinResponse + * @throws JacksonException if the JSON string is invalid with respect to RevealPinResponse */ - public static RevealPinResponse fromJson(String jsonString) throws JsonProcessingException { + public static RevealPinResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RevealPinResponse.class); } @@ -222,7 +222,7 @@ public static RevealPinResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java index b0967bc60..3ee6272c1 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScores.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScores.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RiskScores */ @JsonPropertyOrder({RiskScores.JSON_PROPERTY_MASTERCARD, RiskScores.JSON_PROPERTY_VISA}) @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RiskScores - * @throws JsonProcessingException if the JSON string is invalid with respect to RiskScores + * @throws JacksonException if the JSON string is invalid with respect to RiskScores */ - public static RiskScores fromJson(String jsonString) throws JsonProcessingException { + public static RiskScores fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RiskScores.class); } @@ -228,7 +228,7 @@ public static RiskScores fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java index a6b560f8d..90d9b572e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/RiskScoresRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RiskScoresRestriction */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RiskScoresRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RiskScoresRestriction + * @throws JacksonException if the JSON string is invalid with respect to RiskScoresRestriction */ - public static RiskScoresRestriction fromJson(String jsonString) throws JsonProcessingException { + public static RiskScoresRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RiskScoresRestriction.class); } @@ -220,7 +219,7 @@ public static RiskScoresRestriction fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java index a87a962d4..d0f2c4440 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SELocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SELocalAccountIdentification */ @JsonPropertyOrder({ @@ -325,11 +325,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } @@ -338,7 +337,7 @@ public static SELocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java index 282f2b448..a7c9ed7de 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/SGLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SGLocalAccountIdentification */ @JsonPropertyOrder({ @@ -299,11 +299,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } @@ -312,7 +311,7 @@ public static SGLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java index 1c8a56768..a3fed47c2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameAmountRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SameAmountRestriction */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SameAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SameAmountRestriction + * @throws JacksonException if the JSON string is invalid with respect to SameAmountRestriction */ - public static SameAmountRestriction fromJson(String jsonString) throws JsonProcessingException { + public static SameAmountRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SameAmountRestriction.class); } @@ -220,7 +219,7 @@ public static SameAmountRestriction fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java index 26bd1f4b1..d44ed702b 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SameCounterpartyRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SameCounterpartyRestriction */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SameCounterpartyRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SameCounterpartyRestriction */ - public static SameCounterpartyRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static SameCounterpartyRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SameCounterpartyRestriction.class); } @@ -221,7 +220,7 @@ public static SameCounterpartyRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java b/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java index 767e83ad4..58891c6c4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java +++ b/src/main/java/com/adyen/model/balanceplatform/ScaDevice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** A resource that contains information about a device, including its unique ID, name, and type. */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScaDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to ScaDevice + * @throws JacksonException if the JSON string is invalid with respect to ScaDevice */ - public static ScaDevice fromJson(String jsonString) throws JsonProcessingException { + public static ScaDevice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScaDevice.class); } @@ -273,7 +273,7 @@ public static ScaDevice fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java b/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java index ad4af5a42..0498fe196 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java +++ b/src/main/java/com/adyen/model/balanceplatform/ScaEntity.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ScaEntity */ @JsonPropertyOrder({ScaEntity.JSON_PROPERTY_ID, ScaEntity.JSON_PROPERTY_TYPE}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScaEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to ScaEntity + * @throws JacksonException if the JSON string is invalid with respect to ScaEntity */ - public static ScaEntity fromJson(String jsonString) throws JsonProcessingException { + public static ScaEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScaEntity.class); } @@ -216,7 +216,7 @@ public static ScaEntity fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ScaInformation.java b/src/main/java/com/adyen/model/balanceplatform/ScaInformation.java index e30a7ff0b..2d5e01b80 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ScaInformation.java +++ b/src/main/java/com/adyen/model/balanceplatform/ScaInformation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ScaInformation */ @JsonPropertyOrder({ScaInformation.JSON_PROPERTY_EXEMPTION, ScaInformation.JSON_PROPERTY_STATUS}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScaInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to ScaInformation + * @throws JacksonException if the JSON string is invalid with respect to ScaInformation */ - public static ScaInformation fromJson(String jsonString) throws JsonProcessingException { + public static ScaInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScaInformation.class); } @@ -216,7 +216,7 @@ public static ScaInformation fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java index 993fc432e..5cab5ecc2 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/SearchRegisteredDevicesResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SearchRegisteredDevicesResponse */ @JsonPropertyOrder({ @@ -320,11 +320,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SearchRegisteredDevicesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SearchRegisteredDevicesResponse */ public static SearchRegisteredDevicesResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SearchRegisteredDevicesResponse.class); } @@ -333,7 +333,7 @@ public static SearchRegisteredDevicesResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java index 770ca3e7c..8b671742f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/SourceAccountTypesRestriction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SourceAccountTypesRestriction */ @JsonPropertyOrder({ @@ -265,11 +265,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SourceAccountTypesRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SourceAccountTypesRestriction */ - public static SourceAccountTypesRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static SourceAccountTypesRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SourceAccountTypesRestriction.class); } @@ -278,7 +277,7 @@ public static SourceAccountTypesRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java index c1af0daf3..c7cca2e65 100644 --- a/src/main/java/com/adyen/model/balanceplatform/StringMatch.java +++ b/src/main/java/com/adyen/model/balanceplatform/StringMatch.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StringMatch */ @JsonPropertyOrder({StringMatch.JSON_PROPERTY_OPERATION, StringMatch.JSON_PROPERTY_VALUE}) @@ -263,9 +263,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StringMatch - * @throws JsonProcessingException if the JSON string is invalid with respect to StringMatch + * @throws JacksonException if the JSON string is invalid with respect to StringMatch */ - public static StringMatch fromJson(String jsonString) throws JsonProcessingException { + public static StringMatch fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StringMatch.class); } @@ -274,7 +274,7 @@ public static StringMatch fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java index f931746fa..aaa936e76 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SubmitScaAssociationRequest */ @JsonPropertyOrder({SubmitScaAssociationRequest.JSON_PROPERTY_ENTITIES}) @@ -168,11 +168,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubmitScaAssociationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SubmitScaAssociationRequest */ - public static SubmitScaAssociationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SubmitScaAssociationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubmitScaAssociationRequest.class); } @@ -181,7 +180,7 @@ public static SubmitScaAssociationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java index 901ded633..4afb11380 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/SubmitScaAssociationResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SubmitScaAssociationResponse */ @JsonPropertyOrder({SubmitScaAssociationResponse.JSON_PROPERTY_SCA_ASSOCIATIONS}) @@ -169,11 +169,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubmitScaAssociationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SubmitScaAssociationResponse */ - public static SubmitScaAssociationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SubmitScaAssociationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubmitScaAssociationResponse.class); } @@ -182,7 +181,7 @@ public static SubmitScaAssociationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Summary.java b/src/main/java/com/adyen/model/balanceplatform/Summary.java index 49159ddd7..265846e80 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Summary.java +++ b/src/main/java/com/adyen/model/balanceplatform/Summary.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Summary */ @JsonPropertyOrder({Summary.JSON_PROPERTY_LEGAL_ENTITY_ID, Summary.JSON_PROPERTY_TAX_YEARS}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Summary - * @throws JsonProcessingException if the JSON string is invalid with respect to Summary + * @throws JacksonException if the JSON string is invalid with respect to Summary */ - public static Summary fromJson(String jsonString) throws JsonProcessingException { + public static Summary fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Summary.class); } @@ -226,7 +226,7 @@ public static Summary fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java index ff9ba06a2..950c7b4a0 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SweepConfigurationV2 */ @JsonPropertyOrder({ @@ -1350,10 +1350,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationV2 + * @throws JacksonException if the JSON string is invalid with respect to SweepConfigurationV2 */ - public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { + public static SweepConfigurationV2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } @@ -1362,7 +1361,7 @@ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java index 6598df4c0..a735fab8a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SweepCounterparty */ @JsonPropertyOrder({ @@ -349,9 +349,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SweepCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepCounterparty + * @throws JacksonException if the JSON string is invalid with respect to SweepCounterparty */ - public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static SweepCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } @@ -360,7 +360,7 @@ public static SweepCounterparty fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java index aab20a93d..fc47e6b19 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepSchedule.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SweepSchedule */ @JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) @@ -331,9 +331,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SweepSchedule - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepSchedule + * @throws JacksonException if the JSON string is invalid with respect to SweepSchedule */ - public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { + public static SweepSchedule fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } @@ -342,7 +342,7 @@ public static SweepSchedule fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/Target.java b/src/main/java/com/adyen/model/balanceplatform/Target.java index 36c9ecfa4..a32eea295 100644 --- a/src/main/java/com/adyen/model/balanceplatform/Target.java +++ b/src/main/java/com/adyen/model/balanceplatform/Target.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Target */ @JsonPropertyOrder({Target.JSON_PROPERTY_ID, Target.JSON_PROPERTY_TYPE}) @@ -288,9 +288,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Target - * @throws JsonProcessingException if the JSON string is invalid with respect to Target + * @throws JacksonException if the JSON string is invalid with respect to Target */ - public static Target fromJson(String jsonString) throws JsonProcessingException { + public static Target fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Target.class); } @@ -299,7 +299,7 @@ public static Target fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java index c6b97257a..0079c8659 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java +++ b/src/main/java/com/adyen/model/balanceplatform/TargetUpdate.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TargetUpdate */ @JsonPropertyOrder({TargetUpdate.JSON_PROPERTY_ID, TargetUpdate.JSON_PROPERTY_TYPE}) @@ -288,9 +288,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TargetUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to TargetUpdate + * @throws JacksonException if the JSON string is invalid with respect to TargetUpdate */ - public static TargetUpdate fromJson(String jsonString) throws JsonProcessingException { + public static TargetUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TargetUpdate.class); } @@ -299,7 +299,7 @@ public static TargetUpdate fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TaxFormSummaryResponse.java b/src/main/java/com/adyen/model/balanceplatform/TaxFormSummaryResponse.java index f21782532..1d2807f21 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TaxFormSummaryResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TaxFormSummaryResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TaxFormSummaryResponse */ @JsonPropertyOrder({TaxFormSummaryResponse.JSON_PROPERTY_DATA}) @@ -174,10 +174,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TaxFormSummaryResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TaxFormSummaryResponse + * @throws JacksonException if the JSON string is invalid with respect to TaxFormSummaryResponse */ - public static TaxFormSummaryResponse fromJson(String jsonString) throws JsonProcessingException { + public static TaxFormSummaryResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TaxFormSummaryResponse.class); } @@ -186,7 +185,7 @@ public static TaxFormSummaryResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java index 6f1a40d2f..aeadba3ef 100644 --- a/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/balanceplatform/ThresholdRepayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThresholdRepayment */ @JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThresholdRepayment + * @throws JacksonException if the JSON string is invalid with respect to ThresholdRepayment */ - public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { + public static ThresholdRepayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } @@ -170,7 +169,7 @@ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java index 51ccf90ee..1bc89e7d6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDay.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TimeOfDay */ @JsonPropertyOrder({TimeOfDay.JSON_PROPERTY_END_TIME, TimeOfDay.JSON_PROPERTY_START_TIME}) @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TimeOfDay - * @throws JsonProcessingException if the JSON string is invalid with respect to TimeOfDay + * @throws JacksonException if the JSON string is invalid with respect to TimeOfDay */ - public static TimeOfDay fromJson(String jsonString) throws JsonProcessingException { + public static TimeOfDay fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TimeOfDay.class); } @@ -228,7 +228,7 @@ public static TimeOfDay fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java index 3f633c4d8..6e516d987 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TimeOfDayRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TimeOfDayRestriction */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TimeOfDayRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TimeOfDayRestriction + * @throws JacksonException if the JSON string is invalid with respect to TimeOfDayRestriction */ - public static TimeOfDayRestriction fromJson(String jsonString) throws JsonProcessingException { + public static TimeOfDayRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TimeOfDayRestriction.class); } @@ -220,7 +219,7 @@ public static TimeOfDayRestriction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java index ae53bd18e..d495e2826 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TokenRequestorsRestriction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TokenRequestorsRestriction */ @JsonPropertyOrder({ @@ -218,11 +218,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TokenRequestorsRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenRequestorsRestriction */ - public static TokenRequestorsRestriction fromJson(String jsonString) - throws JsonProcessingException { + public static TokenRequestorsRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TokenRequestorsRestriction.class); } @@ -231,7 +230,7 @@ public static TokenRequestorsRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java index 5f3985d78..0ba69ef0c 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/TotalAmountRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TotalAmountRestriction */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TotalAmountRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TotalAmountRestriction + * @throws JacksonException if the JSON string is invalid with respect to TotalAmountRestriction */ - public static TotalAmountRestriction fromJson(String jsonString) throws JsonProcessingException { + public static TotalAmountRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TotalAmountRestriction.class); } @@ -220,7 +219,7 @@ public static TotalAmountRestriction fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java index ab585e6ed..af3e4a3ab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRule.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionRule */ @JsonPropertyOrder({ @@ -1325,9 +1325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRule - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionRule + * @throws JacksonException if the JSON string is invalid with respect to TransactionRule */ - public static TransactionRule fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRule fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRule.class); } @@ -1336,7 +1336,7 @@ public static TransactionRule fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java index cc06828e4..b33ae06d9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleEntityKey.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleEntityKey */ @JsonPropertyOrder({ @@ -217,11 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleEntityKey - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleEntityKey + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleEntityKey */ - public static TransactionRuleEntityKey fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleEntityKey fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleEntityKey.class); } @@ -230,7 +228,7 @@ public static TransactionRuleEntityKey fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java index bc9931eb2..a51354237 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionRuleInfo */ @JsonPropertyOrder({ @@ -1275,10 +1275,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleInfo + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleInfo */ - public static TransactionRuleInfo fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleInfo.class); } @@ -1287,7 +1286,7 @@ public static TransactionRuleInfo fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java index cf7f7e7da..667fdf231 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleInterval.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionRuleInterval */ @JsonPropertyOrder({ @@ -633,10 +633,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleInterval - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleInterval + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleInterval */ - public static TransactionRuleInterval fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleInterval fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleInterval.class); } @@ -645,7 +644,7 @@ public static TransactionRuleInterval fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java index 1b870a338..c2ae2cc59 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleResponse */ @JsonPropertyOrder({TransactionRuleResponse.JSON_PROPERTY_TRANSACTION_RULE}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleResponse + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleResponse */ - public static TransactionRuleResponse fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleResponse.class); } @@ -170,7 +169,7 @@ public static TransactionRuleResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java index 5a02bffd1..6e8201c89 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleRestrictions */ @JsonPropertyOrder({ @@ -1427,11 +1427,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleRestrictions - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionRuleRestrictions */ - public static TransactionRuleRestrictions fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleRestrictions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleRestrictions.class); } @@ -1440,7 +1439,7 @@ public static TransactionRuleRestrictions fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java index a9bbd14f7..ad0453b4a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransactionRulesResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransactionRulesResponse */ @JsonPropertyOrder({TransactionRulesResponse.JSON_PROPERTY_TRANSACTION_RULES}) @@ -169,11 +169,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRulesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResponse + * @throws JacksonException if the JSON string is invalid with respect to TransactionRulesResponse */ - public static TransactionRulesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRulesResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRulesResponse.class); } @@ -182,7 +180,7 @@ public static TransactionRulesResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferLimit.java b/src/main/java/com/adyen/model/balanceplatform/TransferLimit.java index d44edd55f..631da5318 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferLimit.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferLimit.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** The transfer limit configured to regulate outgoing transfers. */ @JsonPropertyOrder({ @@ -587,9 +587,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferLimit - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferLimit + * @throws JacksonException if the JSON string is invalid with respect to TransferLimit */ - public static TransferLimit fromJson(String jsonString) throws JsonProcessingException { + public static TransferLimit fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferLimit.class); } @@ -598,7 +598,7 @@ public static TransferLimit fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferLimitListResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransferLimitListResponse.java index 1e22f8af8..217257282 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferLimitListResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferLimitListResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransferLimitListResponse */ @JsonPropertyOrder({TransferLimitListResponse.JSON_PROPERTY_TRANSFER_LIMITS}) @@ -168,11 +168,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferLimitListResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferLimitListResponse */ - public static TransferLimitListResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransferLimitListResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferLimitListResponse.class); } @@ -181,7 +180,7 @@ public static TransferLimitListResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java index 6c2dc67e9..1f174af0e 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRoute.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferRoute */ @JsonPropertyOrder({ @@ -593,9 +593,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferRoute - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRoute + * @throws JacksonException if the JSON string is invalid with respect to TransferRoute */ - public static TransferRoute fromJson(String jsonString) throws JsonProcessingException { + public static TransferRoute fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferRoute.class); } @@ -604,7 +604,7 @@ public static TransferRoute fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java index 8db420955..8034f3f11 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferRouteRequest */ @JsonPropertyOrder({ @@ -670,10 +670,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferRouteRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRouteRequest + * @throws JacksonException if the JSON string is invalid with respect to TransferRouteRequest */ - public static TransferRouteRequest fromJson(String jsonString) throws JsonProcessingException { + public static TransferRouteRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferRouteRequest.class); } @@ -682,7 +681,7 @@ public static TransferRouteRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java index 808a455ea..5f0d75fe9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java @@ -11,19 +11,6 @@ package com.adyen.model.balanceplatform; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = TransferRouteRequirementsInner.TransferRouteRequirementsInnerDeserializer.class) @@ -53,9 +52,9 @@ public TransferRouteRequirementsInnerSerializer() { @Override public void serialize( - TransferRouteRequirementsInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferRouteRequirementsInner value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -71,12 +70,11 @@ public TransferRouteRequirementsInnerDeserializer(Class vc) { @Override public TransferRouteRequirementsInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AdditionalBankIdentificationRequirement try { boolean attemptParsing = true; @@ -91,8 +89,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization if (typeMatch) { deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(AdditionalBankIdentificationRequirement.class); + ctxt.readTreeAsValue(tree, AdditionalBankIdentificationRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -122,7 +119,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AddressRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, AddressRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -148,7 +145,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmountMinMaxRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, AmountMinMaxRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -174,8 +171,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AmountNonZeroDecimalsRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, AmountNonZeroDecimalsRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -203,8 +199,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization if (typeMatch) { deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(BankAccountIdentificationTypeRequirement.class); + ctxt.readTreeAsValue(tree, BankAccountIdentificationTypeRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -235,9 +230,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(IbanAccountIdentificationRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentificationRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -267,8 +260,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PaymentInstrumentRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, PaymentInstrumentRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -294,8 +286,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USInstantPayoutAddressRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, USInstantPayoutAddressRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -322,9 +313,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(USInternationalAchAddressRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, USInternationalAchAddressRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -354,9 +343,7 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(USInternationalAchPriorityRequirement.class); + deserialized = ctxt.readTreeAsValue(tree, USInternationalAchPriorityRequirement.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -378,7 +365,8 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferRouteRequirementsInner: %d classes match result, expected 1", match)); @@ -387,9 +375,8 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization /** Handle deserialization of the 'null' value. */ @Override public TransferRouteRequirementsInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferRouteRequirementsInner cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferRouteRequirementsInner cannot be null"); } } @@ -738,7 +725,7 @@ public static TransferRouteRequirementsInner fromJson(String jsonString) throws * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java index 241006cb9..30ffb7d6d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransferRouteResponse */ @JsonPropertyOrder({TransferRouteResponse.JSON_PROPERTY_TRANSFER_ROUTES}) @@ -174,10 +174,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferRouteResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRouteResponse + * @throws JacksonException if the JSON string is invalid with respect to TransferRouteResponse */ - public static TransferRouteResponse fromJson(String jsonString) throws JsonProcessingException { + public static TransferRouteResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferRouteResponse.class); } @@ -186,7 +185,7 @@ public static TransferRouteResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java index 5f2c93fe6..fce921814 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/UKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static UKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/UKLocalMandateAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/UKLocalMandateAccountIdentification.java index 7f9633acd..78656c7ea 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UKLocalMandateAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/UKLocalMandateAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UKLocalMandateAccountIdentification */ @JsonPropertyOrder({ @@ -296,11 +296,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKLocalMandateAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalMandateAccountIdentification */ public static UKLocalMandateAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalMandateAccountIdentification.class); } @@ -309,7 +309,7 @@ public static UKLocalMandateAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java index 6f61688f6..627f274e5 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInstantPayoutAddressRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USInstantPayoutAddressRequirement */ @JsonPropertyOrder({ @@ -260,11 +260,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USInstantPayoutAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USInstantPayoutAddressRequirement */ public static USInstantPayoutAddressRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, USInstantPayoutAddressRequirement.class); } @@ -273,7 +273,7 @@ public static USInstantPayoutAddressRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java index e18a11f66..42e4b47ca 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchAddressRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USInternationalAchAddressRequirement */ @JsonPropertyOrder({ @@ -261,11 +261,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USInternationalAchAddressRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USInternationalAchAddressRequirement */ public static USInternationalAchAddressRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, USInternationalAchAddressRequirement.class); } @@ -274,7 +274,7 @@ public static USInternationalAchAddressRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java index 0e8b815d9..c57596bb4 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USInternationalAchPriorityRequirement */ @JsonPropertyOrder({ @@ -261,11 +261,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USInternationalAchPriorityRequirement - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USInternationalAchPriorityRequirement */ public static USInternationalAchPriorityRequirement fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, USInternationalAchPriorityRequirement.class); } @@ -274,7 +274,7 @@ public static USInternationalAchPriorityRequirement fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java index 58a343a12..1d4aa99b9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/balanceplatform/USLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USLocalAccountIdentification */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } @@ -423,7 +422,7 @@ public static USLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java index 0e2d01e3b..ce38d1612 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateNetworkTokenRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateNetworkTokenRequest */ @JsonPropertyOrder({UpdateNetworkTokenRequest.JSON_PROPERTY_STATUS}) @@ -214,11 +214,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateNetworkTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateNetworkTokenRequest */ - public static UpdateNetworkTokenRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateNetworkTokenRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateNetworkTokenRequest.class); } @@ -227,7 +226,7 @@ public static UpdateNetworkTokenRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java index 0eb06e4d9..35d035748 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdatePaymentInstrument.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdatePaymentInstrument */ @JsonPropertyOrder({ @@ -1181,10 +1181,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdatePaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to UpdatePaymentInstrument */ - public static UpdatePaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static UpdatePaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatePaymentInstrument.class); } @@ -1193,7 +1192,7 @@ public static UpdatePaymentInstrument fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java index f2c196d16..6e37ce360 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateSweepConfigurationV2 */ @JsonPropertyOrder({ @@ -1351,11 +1351,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateSweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateSweepConfigurationV2 */ - public static UpdateSweepConfigurationV2 fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateSweepConfigurationV2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateSweepConfigurationV2.class); } @@ -1364,7 +1363,7 @@ public static UpdateSweepConfigurationV2 fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java index 9e2289b4b..944b84e04 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationDeadline */ @JsonPropertyOrder({ @@ -361,10 +361,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JacksonException if the JSON string is invalid with respect to VerificationDeadline */ - public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { + public static VerificationDeadline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } @@ -373,7 +372,7 @@ public static VerificationDeadline fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java index 38d0b98e5..a0e536613 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationError.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationError.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationError */ @JsonPropertyOrder({ @@ -658,9 +658,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationError - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationError + * @throws JacksonException if the JSON string is invalid with respect to VerificationError */ - public static VerificationError fromJson(String jsonString) throws JsonProcessingException { + public static VerificationError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } @@ -669,7 +669,7 @@ public static VerificationError fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java index 04a3055ba..d9104646a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java @@ -19,12 +19,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationErrorRecursive */ @JsonPropertyOrder({ @@ -604,11 +604,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } @@ -617,7 +616,7 @@ public static VerificationErrorRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java index b4a1f2b6a..c977672a6 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderAccountScoreRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WalletProviderAccountScoreRestriction */ @JsonPropertyOrder({ @@ -211,11 +211,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WalletProviderAccountScoreRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * WalletProviderAccountScoreRestriction */ public static WalletProviderAccountScoreRestriction fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, WalletProviderAccountScoreRestriction.class); } @@ -224,7 +224,7 @@ public static WalletProviderAccountScoreRestriction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java index f4b40c5c6..e28bf503a 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceScore.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WalletProviderDeviceScore */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WalletProviderDeviceScore - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * WalletProviderDeviceScore */ - public static WalletProviderDeviceScore fromJson(String jsonString) - throws JsonProcessingException { + public static WalletProviderDeviceScore fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceScore.class); } @@ -221,7 +220,7 @@ public static WalletProviderDeviceScore fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java index c0dc1523f..04bc07745 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java +++ b/src/main/java/com/adyen/model/balanceplatform/WalletProviderDeviceType.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WalletProviderDeviceType */ @JsonPropertyOrder({ @@ -275,11 +275,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WalletProviderDeviceType - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WalletProviderDeviceType + * @throws JacksonException if the JSON string is invalid with respect to WalletProviderDeviceType */ - public static WalletProviderDeviceType fromJson(String jsonString) - throws JsonProcessingException { + public static WalletProviderDeviceType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WalletProviderDeviceType.class); } @@ -288,7 +286,7 @@ public static WalletProviderDeviceType fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java index 848a4b2f0..b78145e65 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSetting.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookSetting */ @JsonPropertyOrder({ @@ -393,9 +393,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WebhookSetting - * @throws JsonProcessingException if the JSON string is invalid with respect to WebhookSetting + * @throws JacksonException if the JSON string is invalid with respect to WebhookSetting */ - public static WebhookSetting fromJson(String jsonString) throws JsonProcessingException { + public static WebhookSetting fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookSetting.class); } @@ -404,7 +404,7 @@ public static WebhookSetting fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java index 1743e113a..e0618dc5f 100644 --- a/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java +++ b/src/main/java/com/adyen/model/balanceplatform/WebhookSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** WebhookSettings */ @JsonPropertyOrder({WebhookSettings.JSON_PROPERTY_WEBHOOK_SETTINGS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WebhookSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to WebhookSettings + * @throws JacksonException if the JSON string is invalid with respect to WebhookSettings */ - public static WebhookSettings fromJson(String jsonString) throws JsonProcessingException { + public static WebhookSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookSettings.class); } @@ -179,7 +179,7 @@ public static WebhookSettings fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/Amount.java b/src/main/java/com/adyen/model/balancewebhooks/Amount.java index c18d98158..b3b5c48c1 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/Amount.java +++ b/src/main/java/com/adyen/model/balancewebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java index 7d2e5378e..73c225cdb 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceAccountBalanceNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountBalanceNotificationRequest */ @JsonPropertyOrder({ @@ -272,11 +272,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceAccountBalanceNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountBalanceNotificationRequest */ public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountBalanceNotificationRequest.class); } @@ -285,7 +285,7 @@ public static BalanceAccountBalanceNotificationRequest fromJson(String jsonStrin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java index 61f6bab65..32b6d6905 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalanceNotificationData.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BalanceNotificationData */ @JsonPropertyOrder({ @@ -345,10 +345,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceNotificationData + * @throws JacksonException if the JSON string is invalid with respect to BalanceNotificationData */ - public static BalanceNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static BalanceNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceNotificationData.class); } @@ -357,7 +356,7 @@ public static BalanceNotificationData fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java index 535426b80..6253b4914 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/balancewebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/Balances.java b/src/main/java/com/adyen/model/balancewebhooks/Balances.java index 4ea9ac6e9..3b24d8050 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/Balances.java +++ b/src/main/java/com/adyen/model/balancewebhooks/Balances.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Balances */ @JsonPropertyOrder({ @@ -219,9 +219,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Balances - * @throws JsonProcessingException if the JSON string is invalid with respect to Balances + * @throws JacksonException if the JSON string is invalid with respect to Balances */ - public static Balances fromJson(String jsonString) throws JsonProcessingException { + public static Balances fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Balances.class); } @@ -230,7 +230,7 @@ public static Balances fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/JSON.java b/src/main/java/com/adyen/model/balancewebhooks/JSON.java index ae0cc024b..2d0b76c85 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/balancewebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/balancewebhooks/ReleaseBlockedBalanceNotificationData.java b/src/main/java/com/adyen/model/balancewebhooks/ReleaseBlockedBalanceNotificationData.java index 1862a7806..6ebea6483 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/ReleaseBlockedBalanceNotificationData.java +++ b/src/main/java/com/adyen/model/balancewebhooks/ReleaseBlockedBalanceNotificationData.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** ReleaseBlockedBalanceNotificationData */ @JsonPropertyOrder({ @@ -478,11 +478,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReleaseBlockedBalanceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReleaseBlockedBalanceNotificationData */ public static ReleaseBlockedBalanceNotificationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ReleaseBlockedBalanceNotificationData.class); } @@ -491,7 +491,7 @@ public static ReleaseBlockedBalanceNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/ReleasedBlockedBalanceNotificationRequest.java b/src/main/java/com/adyen/model/balancewebhooks/ReleasedBlockedBalanceNotificationRequest.java index 0a2b31ea3..4c1ff34b6 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/ReleasedBlockedBalanceNotificationRequest.java +++ b/src/main/java/com/adyen/model/balancewebhooks/ReleasedBlockedBalanceNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ReleasedBlockedBalanceNotificationRequest */ @JsonPropertyOrder({ @@ -273,11 +273,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReleasedBlockedBalanceNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReleasedBlockedBalanceNotificationRequest */ public static ReleasedBlockedBalanceNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ReleasedBlockedBalanceNotificationRequest.class); } @@ -286,7 +286,7 @@ public static ReleasedBlockedBalanceNotificationRequest fromJson(String jsonStri * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/balancewebhooks/ResourceReference.java b/src/main/java/com/adyen/model/balancewebhooks/ResourceReference.java index 450849788..8e609e880 100644 --- a/src/main/java/com/adyen/model/balancewebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/balancewebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/Amount.java b/src/main/java/com/adyen/model/binlookup/Amount.java index daf08e940..68e690322 100644 --- a/src/main/java/com/adyen/model/binlookup/Amount.java +++ b/src/main/java/com/adyen/model/binlookup/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/BinDetail.java b/src/main/java/com/adyen/model/binlookup/BinDetail.java index 90f0d04fb..1a7786905 100644 --- a/src/main/java/com/adyen/model/binlookup/BinDetail.java +++ b/src/main/java/com/adyen/model/binlookup/BinDetail.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BinDetail */ @JsonPropertyOrder({BinDetail.JSON_PROPERTY_ISSUER_COUNTRY}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BinDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to BinDetail + * @throws JacksonException if the JSON string is invalid with respect to BinDetail */ - public static BinDetail fromJson(String jsonString) throws JsonProcessingException { + public static BinDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BinDetail.class); } @@ -169,7 +169,7 @@ public static BinDetail fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/CardBin.java b/src/main/java/com/adyen/model/binlookup/CardBin.java index 396368570..273b79636 100644 --- a/src/main/java/com/adyen/model/binlookup/CardBin.java +++ b/src/main/java/com/adyen/model/binlookup/CardBin.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardBin */ @JsonPropertyOrder({ @@ -731,9 +731,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardBin - * @throws JsonProcessingException if the JSON string is invalid with respect to CardBin + * @throws JacksonException if the JSON string is invalid with respect to CardBin */ - public static CardBin fromJson(String jsonString) throws JsonProcessingException { + public static CardBin fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardBin.class); } @@ -742,7 +742,7 @@ public static CardBin fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java index 357af0f1c..e2e2ef478 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateAssumptions.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CostEstimateAssumptions */ @JsonPropertyOrder({ @@ -272,10 +272,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CostEstimateAssumptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateAssumptions + * @throws JacksonException if the JSON string is invalid with respect to CostEstimateAssumptions */ - public static CostEstimateAssumptions fromJson(String jsonString) throws JsonProcessingException { + public static CostEstimateAssumptions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CostEstimateAssumptions.class); } @@ -284,7 +283,7 @@ public static CostEstimateAssumptions fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java index 7778a0e7f..cc96684da 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CostEstimateRequest */ @JsonPropertyOrder({ @@ -813,10 +813,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CostEstimateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateRequest + * @throws JacksonException if the JSON string is invalid with respect to CostEstimateRequest */ - public static CostEstimateRequest fromJson(String jsonString) throws JsonProcessingException { + public static CostEstimateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CostEstimateRequest.class); } @@ -825,7 +824,7 @@ public static CostEstimateRequest fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java index 5ff67e434..8a24ec2e3 100644 --- a/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java +++ b/src/main/java/com/adyen/model/binlookup/CostEstimateResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CostEstimateResponse */ @JsonPropertyOrder({ @@ -316,10 +316,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CostEstimateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CostEstimateResponse + * @throws JacksonException if the JSON string is invalid with respect to CostEstimateResponse */ - public static CostEstimateResponse fromJson(String jsonString) throws JsonProcessingException { + public static CostEstimateResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CostEstimateResponse.class); } @@ -328,7 +327,7 @@ public static CostEstimateResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java index e8dc5d937..defa2192a 100644 --- a/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java +++ b/src/main/java/com/adyen/model/binlookup/DSPublicKeyDetail.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** DSPublicKeyDetail */ @JsonPropertyOrder({ @@ -387,9 +387,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DSPublicKeyDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to DSPublicKeyDetail + * @throws JacksonException if the JSON string is invalid with respect to DSPublicKeyDetail */ - public static DSPublicKeyDetail fromJson(String jsonString) throws JsonProcessingException { + public static DSPublicKeyDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DSPublicKeyDetail.class); } @@ -398,7 +398,7 @@ public static DSPublicKeyDetail fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/JSON.java b/src/main/java/com/adyen/model/binlookup/JSON.java index 275acb249..686dfbb86 100644 --- a/src/main/java/com/adyen/model/binlookup/JSON.java +++ b/src/main/java/com/adyen/model/binlookup/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java index a9f2eb90c..85a3a9052 100644 --- a/src/main/java/com/adyen/model/binlookup/MerchantDetails.java +++ b/src/main/java/com/adyen/model/binlookup/MerchantDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantDetails */ @JsonPropertyOrder({ @@ -284,9 +284,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantDetails + * @throws JacksonException if the JSON string is invalid with respect to MerchantDetails */ - public static MerchantDetails fromJson(String jsonString) throws JsonProcessingException { + public static MerchantDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantDetails.class); } @@ -295,7 +295,7 @@ public static MerchantDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/Recurring.java b/src/main/java/com/adyen/model/binlookup/Recurring.java index 5a25da1a8..780881191 100644 --- a/src/main/java/com/adyen/model/binlookup/Recurring.java +++ b/src/main/java/com/adyen/model/binlookup/Recurring.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Recurring */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Recurring - * @throws JsonProcessingException if the JSON string is invalid with respect to Recurring + * @throws JacksonException if the JSON string is invalid with respect to Recurring */ - public static Recurring fromJson(String jsonString) throws JsonProcessingException { + public static Recurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Recurring.class); } @@ -554,7 +554,7 @@ public static Recurring fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/ServiceError.java b/src/main/java/com/adyen/model/binlookup/ServiceError.java index 19cb1e408..b80208409 100644 --- a/src/main/java/com/adyen/model/binlookup/ServiceError.java +++ b/src/main/java/com/adyen/model/binlookup/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java index 8ec575594..e2b2acbb8 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDS2CardRangeDetail.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ThreeDS2CardRangeDetail */ @JsonPropertyOrder({ @@ -449,10 +449,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2CardRangeDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2CardRangeDetail + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2CardRangeDetail */ - public static ThreeDS2CardRangeDetail fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2CardRangeDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2CardRangeDetail.class); } @@ -461,7 +460,7 @@ public static ThreeDS2CardRangeDetail fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java index f7eea189b..344e768b8 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** ThreeDSAvailabilityRequest */ @JsonPropertyOrder({ @@ -454,11 +454,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSAvailabilityRequest */ - public static ThreeDSAvailabilityRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSAvailabilityRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityRequest.class); } @@ -467,7 +466,7 @@ public static ThreeDSAvailabilityRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java index 6ac1d589b..c80a3378c 100644 --- a/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java +++ b/src/main/java/com/adyen/model/binlookup/ThreeDSAvailabilityResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ThreeDSAvailabilityResponse */ @JsonPropertyOrder({ @@ -390,11 +390,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSAvailabilityResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSAvailabilityResponse */ - public static ThreeDSAvailabilityResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ThreeDSAvailabilityResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSAvailabilityResponse.class); } @@ -403,7 +402,7 @@ public static ThreeDSAvailabilityResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/AULocalAccountIdentification.java index 8a037ea04..86e513b0b 100644 --- a/src/main/java/com/adyen/model/capital/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/AULocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AULocalAccountIdentification */ @JsonPropertyOrder({ @@ -291,11 +291,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } @@ -304,7 +303,7 @@ public static AULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Action.java b/src/main/java/com/adyen/model/capital/Action.java index bd81b2681..31ebd456b 100644 --- a/src/main/java/com/adyen/model/capital/Action.java +++ b/src/main/java/com/adyen/model/capital/Action.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Action */ @JsonPropertyOrder({Action.JSON_PROPERTY_ACTION_CODE, Action.JSON_PROPERTY_RESOLVED}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Action - * @throws JsonProcessingException if the JSON string is invalid with respect to Action + * @throws JacksonException if the JSON string is invalid with respect to Action */ - public static Action fromJson(String jsonString) throws JsonProcessingException { + public static Action fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Action.class); } @@ -216,7 +216,7 @@ public static Action fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/capital/AdditionalBankIdentification.java index 89739d8ab..e8914cdbe 100644 --- a/src/main/java/com/adyen/model/capital/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/capital/AdditionalBankIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentification */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } @@ -335,7 +334,7 @@ public static AdditionalBankIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Amount.java b/src/main/java/com/adyen/model/capital/Amount.java index d7df3b1fd..76bc58c20 100644 --- a/src/main/java/com/adyen/model/capital/Amount.java +++ b/src/main/java/com/adyen/model/capital/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/BRLocalAccountIdentification.java index 8cb354381..f756c9f84 100644 --- a/src/main/java/com/adyen/model/capital/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/BRLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BRLocalAccountIdentification */ @JsonPropertyOrder({ @@ -385,11 +385,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } @@ -398,7 +397,7 @@ public static BRLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Balance.java b/src/main/java/com/adyen/model/capital/Balance.java index 7bbbed8f9..ebd2f2993 100644 --- a/src/main/java/com/adyen/model/capital/Balance.java +++ b/src/main/java/com/adyen/model/capital/Balance.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Balance */ @JsonPropertyOrder({ @@ -317,9 +317,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Balance - * @throws JsonProcessingException if the JSON string is invalid with respect to Balance + * @throws JacksonException if the JSON string is invalid with respect to Balance */ - public static Balance fromJson(String jsonString) throws JsonProcessingException { + public static Balance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Balance.class); } @@ -328,7 +328,7 @@ public static Balance fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/BankAccountIdentification.java b/src/main/java/com/adyen/model/capital/BankAccountIdentification.java index f5e7c0705..48cbc2462 100644 --- a/src/main/java/com/adyen/model/capital/BankAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/BankAccountIdentification.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountIdentification */ @JsonPropertyOrder({BankAccountIdentification.JSON_PROPERTY_TYPE}) @@ -219,11 +219,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BankAccountIdentification */ - public static BankAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BankAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountIdentification.class); } @@ -232,7 +231,7 @@ public static BankAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/CALocalAccountIdentification.java index a64b208d9..8e263e614 100644 --- a/src/main/java/com/adyen/model/capital/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/CALocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CALocalAccountIdentification */ @JsonPropertyOrder({ @@ -386,11 +386,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } @@ -399,7 +398,7 @@ public static CALocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/CZLocalAccountIdentification.java index 8df446b03..ede4f19b7 100644 --- a/src/main/java/com/adyen/model/capital/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/CZLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -309,11 +309,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } @@ -322,7 +321,7 @@ public static CZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/CalculateGrantOfferRequest.java b/src/main/java/com/adyen/model/capital/CalculateGrantOfferRequest.java index d007a4670..d8afeeec1 100644 --- a/src/main/java/com/adyen/model/capital/CalculateGrantOfferRequest.java +++ b/src/main/java/com/adyen/model/capital/CalculateGrantOfferRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CalculateGrantOfferRequest */ @JsonPropertyOrder({CalculateGrantOfferRequest.JSON_PROPERTY_AMOUNT}) @@ -158,11 +158,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CalculateGrantOfferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CalculateGrantOfferRequest */ - public static CalculateGrantOfferRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CalculateGrantOfferRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CalculateGrantOfferRequest.class); } @@ -171,7 +170,7 @@ public static CalculateGrantOfferRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/CalculatedGrantOffer.java b/src/main/java/com/adyen/model/capital/CalculatedGrantOffer.java index 7b161390b..7601df41c 100644 --- a/src/main/java/com/adyen/model/capital/CalculatedGrantOffer.java +++ b/src/main/java/com/adyen/model/capital/CalculatedGrantOffer.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CalculatedGrantOffer */ @JsonPropertyOrder({ @@ -514,10 +514,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CalculatedGrantOffer - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CalculatedGrantOffer + * @throws JacksonException if the JSON string is invalid with respect to CalculatedGrantOffer */ - public static CalculatedGrantOffer fromJson(String jsonString) throws JsonProcessingException { + public static CalculatedGrantOffer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CalculatedGrantOffer.class); } @@ -526,7 +525,7 @@ public static CalculatedGrantOffer fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/CreateGrantOfferRequest.java b/src/main/java/com/adyen/model/capital/CreateGrantOfferRequest.java index 1e4f07354..2ec5a5ad8 100644 --- a/src/main/java/com/adyen/model/capital/CreateGrantOfferRequest.java +++ b/src/main/java/com/adyen/model/capital/CreateGrantOfferRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateGrantOfferRequest */ @JsonPropertyOrder({CreateGrantOfferRequest.JSON_PROPERTY_AMOUNT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateGrantOfferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateGrantOfferRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateGrantOfferRequest */ - public static CreateGrantOfferRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateGrantOfferRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateGrantOfferRequest.class); } @@ -170,7 +169,7 @@ public static CreateGrantOfferRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/DKLocalAccountIdentification.java index 24ccb536c..b9424503d 100644 --- a/src/main/java/com/adyen/model/capital/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/DKLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -289,11 +289,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } @@ -302,7 +301,7 @@ public static DKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/capital/DefaultErrorResponseEntity.java index e19271877..d6df1f0b7 100644 --- a/src/main/java/com/adyen/model/capital/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/capital/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Disbursement.java b/src/main/java/com/adyen/model/capital/Disbursement.java index 27f37dd0b..8623b7338 100644 --- a/src/main/java/com/adyen/model/capital/Disbursement.java +++ b/src/main/java/com/adyen/model/capital/Disbursement.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Disbursement */ @JsonPropertyOrder({ @@ -581,9 +581,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Disbursement - * @throws JsonProcessingException if the JSON string is invalid with respect to Disbursement + * @throws JacksonException if the JSON string is invalid with respect to Disbursement */ - public static Disbursement fromJson(String jsonString) throws JsonProcessingException { + public static Disbursement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Disbursement.class); } @@ -592,7 +592,7 @@ public static Disbursement fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DisbursementInfoUpdate.java b/src/main/java/com/adyen/model/capital/DisbursementInfoUpdate.java index 440e8803c..2913624ac 100644 --- a/src/main/java/com/adyen/model/capital/DisbursementInfoUpdate.java +++ b/src/main/java/com/adyen/model/capital/DisbursementInfoUpdate.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisbursementInfoUpdate */ @JsonPropertyOrder({DisbursementInfoUpdate.JSON_PROPERTY_REPAYMENT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisbursementInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisbursementInfoUpdate + * @throws JacksonException if the JSON string is invalid with respect to DisbursementInfoUpdate */ - public static DisbursementInfoUpdate fromJson(String jsonString) throws JsonProcessingException { + public static DisbursementInfoUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisbursementInfoUpdate.class); } @@ -170,7 +169,7 @@ public static DisbursementInfoUpdate fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DisbursementRepayment.java b/src/main/java/com/adyen/model/capital/DisbursementRepayment.java index fb5ad25b3..67c9f07ca 100644 --- a/src/main/java/com/adyen/model/capital/DisbursementRepayment.java +++ b/src/main/java/com/adyen/model/capital/DisbursementRepayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisbursementRepayment */ @JsonPropertyOrder({ @@ -228,10 +228,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisbursementRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisbursementRepayment + * @throws JacksonException if the JSON string is invalid with respect to DisbursementRepayment */ - public static DisbursementRepayment fromJson(String jsonString) throws JsonProcessingException { + public static DisbursementRepayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisbursementRepayment.class); } @@ -240,7 +239,7 @@ public static DisbursementRepayment fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DisbursementRepaymentInfoUpdate.java b/src/main/java/com/adyen/model/capital/DisbursementRepaymentInfoUpdate.java index b88a2130d..41896fcf6 100644 --- a/src/main/java/com/adyen/model/capital/DisbursementRepaymentInfoUpdate.java +++ b/src/main/java/com/adyen/model/capital/DisbursementRepaymentInfoUpdate.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisbursementRepaymentInfoUpdate */ @JsonPropertyOrder({ @@ -231,11 +231,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisbursementRepaymentInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DisbursementRepaymentInfoUpdate */ public static DisbursementRepaymentInfoUpdate fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, DisbursementRepaymentInfoUpdate.class); } @@ -244,7 +244,7 @@ public static DisbursementRepaymentInfoUpdate fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Disbursements.java b/src/main/java/com/adyen/model/capital/Disbursements.java index 1b626f641..fc622d55b 100644 --- a/src/main/java/com/adyen/model/capital/Disbursements.java +++ b/src/main/java/com/adyen/model/capital/Disbursements.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Disbursements */ @JsonPropertyOrder({Disbursements.JSON_PROPERTY_DISBURSEMENTS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Disbursements - * @throws JsonProcessingException if the JSON string is invalid with respect to Disbursements + * @throws JacksonException if the JSON string is invalid with respect to Disbursements */ - public static Disbursements fromJson(String jsonString) throws JsonProcessingException { + public static Disbursements fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Disbursements.class); } @@ -179,7 +179,7 @@ public static Disbursements fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DynamicOffer.java b/src/main/java/com/adyen/model/capital/DynamicOffer.java index 480aaaac7..bf670c37e 100644 --- a/src/main/java/com/adyen/model/capital/DynamicOffer.java +++ b/src/main/java/com/adyen/model/capital/DynamicOffer.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DynamicOffer */ @JsonPropertyOrder({ @@ -614,9 +614,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DynamicOffer - * @throws JsonProcessingException if the JSON string is invalid with respect to DynamicOffer + * @throws JacksonException if the JSON string is invalid with respect to DynamicOffer */ - public static DynamicOffer fromJson(String jsonString) throws JsonProcessingException { + public static DynamicOffer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DynamicOffer.class); } @@ -625,7 +625,7 @@ public static DynamicOffer fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/DynamicOfferRepayment.java b/src/main/java/com/adyen/model/capital/DynamicOfferRepayment.java index b9aa1e107..34b0af8a3 100644 --- a/src/main/java/com/adyen/model/capital/DynamicOfferRepayment.java +++ b/src/main/java/com/adyen/model/capital/DynamicOfferRepayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DynamicOfferRepayment */ @JsonPropertyOrder({DynamicOfferRepayment.JSON_PROPERTY_TERM}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DynamicOfferRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DynamicOfferRepayment + * @throws JacksonException if the JSON string is invalid with respect to DynamicOfferRepayment */ - public static DynamicOfferRepayment fromJson(String jsonString) throws JsonProcessingException { + public static DynamicOfferRepayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DynamicOfferRepayment.class); } @@ -170,7 +169,7 @@ public static DynamicOfferRepayment fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Fee.java b/src/main/java/com/adyen/model/capital/Fee.java index d4457fac7..087e06f27 100644 --- a/src/main/java/com/adyen/model/capital/Fee.java +++ b/src/main/java/com/adyen/model/capital/Fee.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Fee */ @JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Fee - * @throws JsonProcessingException if the JSON string is invalid with respect to Fee + * @throws JacksonException if the JSON string is invalid with respect to Fee */ - public static Fee fromJson(String jsonString) throws JsonProcessingException { + public static Fee fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Fee.class); } @@ -169,7 +169,7 @@ public static Fee fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/FundsCollection.java b/src/main/java/com/adyen/model/capital/FundsCollection.java index 1a2ea9e70..f86b7d1b4 100644 --- a/src/main/java/com/adyen/model/capital/FundsCollection.java +++ b/src/main/java/com/adyen/model/capital/FundsCollection.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FundsCollection */ @JsonPropertyOrder({ @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundsCollection - * @throws JsonProcessingException if the JSON string is invalid with respect to FundsCollection + * @throws JacksonException if the JSON string is invalid with respect to FundsCollection */ - public static FundsCollection fromJson(String jsonString) throws JsonProcessingException { + public static FundsCollection fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundsCollection.class); } @@ -228,7 +228,7 @@ public static FundsCollection fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GetDynamicOffersResponse.java b/src/main/java/com/adyen/model/capital/GetDynamicOffersResponse.java index 9912374f2..35b98e692 100644 --- a/src/main/java/com/adyen/model/capital/GetDynamicOffersResponse.java +++ b/src/main/java/com/adyen/model/capital/GetDynamicOffersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GetDynamicOffersResponse */ @JsonPropertyOrder({GetDynamicOffersResponse.JSON_PROPERTY_DYNAMIC_OFFERS}) @@ -171,11 +171,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetDynamicOffersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetDynamicOffersResponse + * @throws JacksonException if the JSON string is invalid with respect to GetDynamicOffersResponse */ - public static GetDynamicOffersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetDynamicOffersResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetDynamicOffersResponse.class); } @@ -184,7 +182,7 @@ public static GetDynamicOffersResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Grant.java b/src/main/java/com/adyen/model/capital/Grant.java index 3fc842eb3..36b24f27c 100644 --- a/src/main/java/com/adyen/model/capital/Grant.java +++ b/src/main/java/com/adyen/model/capital/Grant.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Grant */ @JsonPropertyOrder({ @@ -418,9 +418,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Grant - * @throws JsonProcessingException if the JSON string is invalid with respect to Grant + * @throws JacksonException if the JSON string is invalid with respect to Grant */ - public static Grant fromJson(String jsonString) throws JsonProcessingException { + public static Grant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Grant.class); } @@ -429,7 +429,7 @@ public static Grant fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantAccount.java b/src/main/java/com/adyen/model/capital/GrantAccount.java index 963f71185..b4b85f036 100644 --- a/src/main/java/com/adyen/model/capital/GrantAccount.java +++ b/src/main/java/com/adyen/model/capital/GrantAccount.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GrantAccount */ @JsonPropertyOrder({ @@ -342,9 +342,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantAccount + * @throws JacksonException if the JSON string is invalid with respect to GrantAccount */ - public static GrantAccount fromJson(String jsonString) throws JsonProcessingException { + public static GrantAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantAccount.class); } @@ -353,7 +353,7 @@ public static GrantAccount fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantCounterparty.java b/src/main/java/com/adyen/model/capital/GrantCounterparty.java index b9d3904f0..f528f9d70 100644 --- a/src/main/java/com/adyen/model/capital/GrantCounterparty.java +++ b/src/main/java/com/adyen/model/capital/GrantCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantCounterparty */ @JsonPropertyOrder({ @@ -280,9 +280,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantCounterparty + * @throws JacksonException if the JSON string is invalid with respect to GrantCounterparty */ - public static GrantCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static GrantCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantCounterparty.class); } @@ -291,7 +291,7 @@ public static GrantCounterparty fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantInfo.java b/src/main/java/com/adyen/model/capital/GrantInfo.java index 36d682b43..d81b5e63a 100644 --- a/src/main/java/com/adyen/model/capital/GrantInfo.java +++ b/src/main/java/com/adyen/model/capital/GrantInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantInfo */ @JsonPropertyOrder({ @@ -268,9 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantInfo + * @throws JacksonException if the JSON string is invalid with respect to GrantInfo */ - public static GrantInfo fromJson(String jsonString) throws JsonProcessingException { + public static GrantInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantInfo.class); } @@ -279,7 +279,7 @@ public static GrantInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantInfoCounterparty.java b/src/main/java/com/adyen/model/capital/GrantInfoCounterparty.java index ccf4839a3..56287f65b 100644 --- a/src/main/java/com/adyen/model/capital/GrantInfoCounterparty.java +++ b/src/main/java/com/adyen/model/capital/GrantInfoCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantInfoCounterparty */ @JsonPropertyOrder({ @@ -227,10 +227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantInfoCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GrantInfoCounterparty + * @throws JacksonException if the JSON string is invalid with respect to GrantInfoCounterparty */ - public static GrantInfoCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static GrantInfoCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantInfoCounterparty.class); } @@ -239,7 +238,7 @@ public static GrantInfoCounterparty fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantLimit.java b/src/main/java/com/adyen/model/capital/GrantLimit.java index 288cdb098..644142c68 100644 --- a/src/main/java/com/adyen/model/capital/GrantLimit.java +++ b/src/main/java/com/adyen/model/capital/GrantLimit.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantLimit */ @JsonPropertyOrder({GrantLimit.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantLimit - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantLimit + * @throws JacksonException if the JSON string is invalid with respect to GrantLimit */ - public static GrantLimit fromJson(String jsonString) throws JsonProcessingException { + public static GrantLimit fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantLimit.class); } @@ -169,7 +169,7 @@ public static GrantLimit fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantOffer.java b/src/main/java/com/adyen/model/capital/GrantOffer.java index db9b41acf..f3c2f9ccc 100644 --- a/src/main/java/com/adyen/model/capital/GrantOffer.java +++ b/src/main/java/com/adyen/model/capital/GrantOffer.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GrantOffer */ @JsonPropertyOrder({ @@ -564,9 +564,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantOffer - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantOffer + * @throws JacksonException if the JSON string is invalid with respect to GrantOffer */ - public static GrantOffer fromJson(String jsonString) throws JsonProcessingException { + public static GrantOffer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantOffer.class); } @@ -575,7 +575,7 @@ public static GrantOffer fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantOfferFee.java b/src/main/java/com/adyen/model/capital/GrantOfferFee.java index e4a96af9d..3cfb58e9f 100644 --- a/src/main/java/com/adyen/model/capital/GrantOfferFee.java +++ b/src/main/java/com/adyen/model/capital/GrantOfferFee.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantOfferFee */ @JsonPropertyOrder({ @@ -214,9 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantOfferFee - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantOfferFee + * @throws JacksonException if the JSON string is invalid with respect to GrantOfferFee */ - public static GrantOfferFee fromJson(String jsonString) throws JsonProcessingException { + public static GrantOfferFee fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantOfferFee.class); } @@ -225,7 +225,7 @@ public static GrantOfferFee fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/GrantOffers.java b/src/main/java/com/adyen/model/capital/GrantOffers.java index ab491c022..57a95536d 100644 --- a/src/main/java/com/adyen/model/capital/GrantOffers.java +++ b/src/main/java/com/adyen/model/capital/GrantOffers.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GrantOffers */ @JsonPropertyOrder({GrantOffers.JSON_PROPERTY_GRANT_OFFERS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantOffers - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantOffers + * @throws JacksonException if the JSON string is invalid with respect to GrantOffers */ - public static GrantOffers fromJson(String jsonString) throws JsonProcessingException { + public static GrantOffers fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantOffers.class); } @@ -179,7 +179,7 @@ public static GrantOffers fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Grants.java b/src/main/java/com/adyen/model/capital/Grants.java index a677f9d12..18adcaf2b 100644 --- a/src/main/java/com/adyen/model/capital/Grants.java +++ b/src/main/java/com/adyen/model/capital/Grants.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Grants */ @JsonPropertyOrder({Grants.JSON_PROPERTY_GRANTS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Grants - * @throws JsonProcessingException if the JSON string is invalid with respect to Grants + * @throws JacksonException if the JSON string is invalid with respect to Grants */ - public static Grants fromJson(String jsonString) throws JsonProcessingException { + public static Grants fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Grants.class); } @@ -179,7 +179,7 @@ public static Grants fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/HKLocalAccountIdentification.java index 8ba49943a..2cdf4bb34 100644 --- a/src/main/java/com/adyen/model/capital/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/HKLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** HKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -291,11 +291,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } @@ -304,7 +303,7 @@ public static HKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/HULocalAccountIdentification.java index 79d21d14c..70ba1b581 100644 --- a/src/main/java/com/adyen/model/capital/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/HULocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** HULocalAccountIdentification */ @JsonPropertyOrder({ @@ -230,11 +230,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } @@ -243,7 +242,7 @@ public static HULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/IbanAccountIdentification.java b/src/main/java/com/adyen/model/capital/IbanAccountIdentification.java index 7f54349a9..cffa41817 100644 --- a/src/main/java/com/adyen/model/capital/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/IbanAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -284,11 +284,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -297,7 +296,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/InvalidField.java b/src/main/java/com/adyen/model/capital/InvalidField.java index b5d4b952d..95c9f86a7 100644 --- a/src/main/java/com/adyen/model/capital/InvalidField.java +++ b/src/main/java/com/adyen/model/capital/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/JSON.java b/src/main/java/com/adyen/model/capital/JSON.java index 3744084be..b2d8be909 100644 --- a/src/main/java/com/adyen/model/capital/JSON.java +++ b/src/main/java/com/adyen/model/capital/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/capital/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/NOLocalAccountIdentification.java index 8ccb59293..2b16a3e40 100644 --- a/src/main/java/com/adyen/model/capital/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/NOLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NOLocalAccountIdentification */ @JsonPropertyOrder({ @@ -230,11 +230,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } @@ -243,7 +242,7 @@ public static NOLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/NZLocalAccountIdentification.java index d2ea8e344..63f14e396 100644 --- a/src/main/java/com/adyen/model/capital/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/NZLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -242,11 +242,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } @@ -255,7 +254,7 @@ public static NZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/capital/NumberAndBicAccountIdentification.java index 980770d70..3f0cb803b 100644 --- a/src/main/java/com/adyen/model/capital/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/NumberAndBicAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ @@ -357,11 +357,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NumberAndBicAccountIdentification */ public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } @@ -370,7 +370,7 @@ public static NumberAndBicAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/PLLocalAccountIdentification.java index b38ce848d..55cb37d0b 100644 --- a/src/main/java/com/adyen/model/capital/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/PLLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PLLocalAccountIdentification */ @JsonPropertyOrder({ @@ -242,11 +242,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } @@ -255,7 +254,7 @@ public static PLLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Repayment.java b/src/main/java/com/adyen/model/capital/Repayment.java index 8871e65e3..1411fefe2 100644 --- a/src/main/java/com/adyen/model/capital/Repayment.java +++ b/src/main/java/com/adyen/model/capital/Repayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Repayment */ @JsonPropertyOrder({ @@ -268,9 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Repayment - * @throws JsonProcessingException if the JSON string is invalid with respect to Repayment + * @throws JacksonException if the JSON string is invalid with respect to Repayment */ - public static Repayment fromJson(String jsonString) throws JsonProcessingException { + public static Repayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Repayment.class); } @@ -279,7 +279,7 @@ public static Repayment fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/RepaymentTerm.java b/src/main/java/com/adyen/model/capital/RepaymentTerm.java index 696ffa3a4..a574f8c39 100644 --- a/src/main/java/com/adyen/model/capital/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/capital/RepaymentTerm.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RepaymentTerm */ @JsonPropertyOrder({ @@ -214,9 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RepaymentTerm - * @throws JsonProcessingException if the JSON string is invalid with respect to RepaymentTerm + * @throws JacksonException if the JSON string is invalid with respect to RepaymentTerm */ - public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { + public static RepaymentTerm fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } @@ -225,7 +225,7 @@ public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/SELocalAccountIdentification.java index afbc19f25..2039a11c8 100644 --- a/src/main/java/com/adyen/model/capital/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/SELocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SELocalAccountIdentification */ @JsonPropertyOrder({ @@ -310,11 +310,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } @@ -323,7 +322,7 @@ public static SELocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/SGLocalAccountIdentification.java index e1a399115..92ddc5a17 100644 --- a/src/main/java/com/adyen/model/capital/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/SGLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SGLocalAccountIdentification */ @JsonPropertyOrder({ @@ -279,11 +279,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } @@ -292,7 +291,7 @@ public static SGLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/Status.java b/src/main/java/com/adyen/model/capital/Status.java index f3e28379a..7eddf5a33 100644 --- a/src/main/java/com/adyen/model/capital/Status.java +++ b/src/main/java/com/adyen/model/capital/Status.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Status */ @JsonPropertyOrder({Status.JSON_PROPERTY_ACTIONS, Status.JSON_PROPERTY_CODE}) @@ -294,9 +294,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Status - * @throws JsonProcessingException if the JSON string is invalid with respect to Status + * @throws JacksonException if the JSON string is invalid with respect to Status */ - public static Status fromJson(String jsonString) throws JsonProcessingException { + public static Status fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Status.class); } @@ -305,7 +305,7 @@ public static Status fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/ThresholdRepayment.java b/src/main/java/com/adyen/model/capital/ThresholdRepayment.java index b8f33380a..b9fb3fd4e 100644 --- a/src/main/java/com/adyen/model/capital/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/capital/ThresholdRepayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThresholdRepayment */ @JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThresholdRepayment + * @throws JacksonException if the JSON string is invalid with respect to ThresholdRepayment */ - public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { + public static ThresholdRepayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } @@ -170,7 +169,7 @@ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/UKLocalAccountIdentification.java index 97be7bd49..e1aedead1 100644 --- a/src/main/java/com/adyen/model/capital/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/UKLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -291,11 +291,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } @@ -304,7 +303,7 @@ public static UKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/capital/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/capital/USLocalAccountIdentification.java index 342620704..d2127f9ee 100644 --- a/src/main/java/com/adyen/model/capital/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/capital/USLocalAccountIdentification.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** USLocalAccountIdentification */ @JsonPropertyOrder({ @@ -344,11 +344,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } @@ -357,7 +356,7 @@ public static USLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AccountInfo.java b/src/main/java/com/adyen/model/checkout/AccountInfo.java index d24d5d0d0..0ee71c368 100644 --- a/src/main/java/com/adyen/model/checkout/AccountInfo.java +++ b/src/main/java/com/adyen/model/checkout/AccountInfo.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountInfo */ @JsonPropertyOrder({ @@ -1480,9 +1480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountInfo + * @throws JacksonException if the JSON string is invalid with respect to AccountInfo */ - public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccountInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } @@ -1491,7 +1491,7 @@ public static AccountInfo fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AcctInfo.java b/src/main/java/com/adyen/model/checkout/AcctInfo.java index d90f33298..b58fd768a 100644 --- a/src/main/java/com/adyen/model/checkout/AcctInfo.java +++ b/src/main/java/com/adyen/model/checkout/AcctInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AcctInfo */ @JsonPropertyOrder({ @@ -1425,9 +1425,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcctInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AcctInfo + * @throws JacksonException if the JSON string is invalid with respect to AcctInfo */ - public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { + public static AcctInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } @@ -1436,7 +1436,7 @@ public static AcctInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AchDetails.java b/src/main/java/com/adyen/model/checkout/AchDetails.java index c7597e334..87101827a 100644 --- a/src/main/java/com/adyen/model/checkout/AchDetails.java +++ b/src/main/java/com/adyen/model/checkout/AchDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AchDetails */ @JsonPropertyOrder({ @@ -1000,9 +1000,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AchDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AchDetails + * @throws JacksonException if the JSON string is invalid with respect to AchDetails */ - public static AchDetails fromJson(String jsonString) throws JsonProcessingException { + public static AchDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AchDetails.class); } @@ -1011,7 +1011,7 @@ public static AchDetails fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java index d51e1feb3..0855538a2 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalData3DSecure.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalData3DSecure */ @JsonPropertyOrder({ @@ -661,10 +661,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalData3DSecure + * @throws JacksonException if the JSON string is invalid with respect to AdditionalData3DSecure */ - public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalData3DSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } @@ -673,7 +672,7 @@ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java index 7acccd3d0..5555d5ca4 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataAirline */ @JsonPropertyOrder({ @@ -2026,10 +2026,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataAirline + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataAirline */ - public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataAirline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } @@ -2038,7 +2037,7 @@ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java index cd2829f42..5affe6808 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCarRental.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataCarRental */ @JsonPropertyOrder({ @@ -1595,10 +1595,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCarRental + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataCarRental */ - public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataCarRental fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } @@ -1607,7 +1606,7 @@ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java index 97750e4c0..aebf2a92f 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataCommon.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalDataCommon */ @JsonPropertyOrder({ @@ -1765,10 +1765,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCommon + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataCommon */ - public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataCommon fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } @@ -1777,7 +1776,7 @@ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java index 721aac666..b0a3bb4a4 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLevel23.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataLevel23 */ @JsonPropertyOrder({ @@ -1465,10 +1465,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLevel23 + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataLevel23 */ - public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataLevel23 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } @@ -1477,7 +1476,7 @@ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java index 8b9225c04..94e6af14f 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataLodging */ @JsonPropertyOrder({ @@ -1207,10 +1207,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLodging + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataLodging */ - public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataLodging fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } @@ -1219,7 +1218,7 @@ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java index a018cf232..2b8106b5d 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpenInvoice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataOpenInvoice */ @JsonPropertyOrder({ @@ -1320,11 +1320,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } @@ -1333,7 +1332,7 @@ public static AdditionalDataOpenInvoice fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java index 1c877ada2..978b1c5ea 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataOpi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataOpi */ @JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) @@ -182,9 +182,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpi + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataOpi */ - public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataOpi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } @@ -193,7 +193,7 @@ public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java index 49c3ca462..e7a6c919a 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRatepay.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRatepay */ @JsonPropertyOrder({ @@ -549,10 +549,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRatepay + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRatepay */ - public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRatepay fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } @@ -561,7 +560,7 @@ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java index 157ccb761..0a80acd43 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRetry.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRetry */ @JsonPropertyOrder({ @@ -355,10 +355,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRetry + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRetry */ - public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRetry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } @@ -367,7 +366,7 @@ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java index 51a988c0e..1ad63eae8 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRisk.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRisk */ @JsonPropertyOrder({ @@ -1461,10 +1461,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRisk + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRisk */ - public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRisk fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } @@ -1473,7 +1472,7 @@ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java index a34841edd..868023091 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataRiskStandalone.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRiskStandalone */ @JsonPropertyOrder({ @@ -936,11 +936,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } @@ -949,7 +948,7 @@ public static AdditionalDataRiskStandalone fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java index 6a6e2c506..429750994 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataSubMerchant.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataSubMerchant */ @JsonPropertyOrder({ @@ -986,11 +986,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } @@ -999,7 +998,7 @@ public static AdditionalDataSubMerchant fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java index abc03934c..b598afb6e 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataTemporaryServices.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataTemporaryServices */ @JsonPropertyOrder({ @@ -725,11 +725,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataTemporaryServices */ public static AdditionalDataTemporaryServices fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } @@ -738,7 +738,7 @@ public static AdditionalDataTemporaryServices fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java index fb174e251..643bf0300 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataWallets.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataWallets */ @JsonPropertyOrder({ @@ -419,10 +419,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataWallets + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataWallets */ - public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataWallets fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } @@ -431,7 +430,7 @@ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Address.java b/src/main/java/com/adyen/model/checkout/Address.java index 5fe9e1532..29fba3e5c 100644 --- a/src/main/java/com/adyen/model/checkout/Address.java +++ b/src/main/java/com/adyen/model/checkout/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -456,7 +456,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AffirmDetails.java b/src/main/java/com/adyen/model/checkout/AffirmDetails.java index 8b8ac1864..65eb643d0 100644 --- a/src/main/java/com/adyen/model/checkout/AffirmDetails.java +++ b/src/main/java/com/adyen/model/checkout/AffirmDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AffirmDetails */ @JsonPropertyOrder({ @@ -301,9 +301,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AffirmDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AffirmDetails + * @throws JacksonException if the JSON string is invalid with respect to AffirmDetails */ - public static AffirmDetails fromJson(String jsonString) throws JsonProcessingException { + public static AffirmDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AffirmDetails.class); } @@ -312,7 +312,7 @@ public static AffirmDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java index 69b68087f..1c3e9e438 100644 --- a/src/main/java/com/adyen/model/checkout/AfterpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AfterpayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AfterpayDetails */ @JsonPropertyOrder({ @@ -587,9 +587,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AfterpayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AfterpayDetails + * @throws JacksonException if the JSON string is invalid with respect to AfterpayDetails */ - public static AfterpayDetails fromJson(String jsonString) throws JsonProcessingException { + public static AfterpayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AfterpayDetails.class); } @@ -598,7 +598,7 @@ public static AfterpayDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Agency.java b/src/main/java/com/adyen/model/checkout/Agency.java index 96251ebf5..050f4b95d 100644 --- a/src/main/java/com/adyen/model/checkout/Agency.java +++ b/src/main/java/com/adyen/model/checkout/Agency.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Agency */ @JsonPropertyOrder({Agency.JSON_PROPERTY_INVOICE_NUMBER, Agency.JSON_PROPERTY_PLAN_NAME}) @@ -226,9 +226,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Agency - * @throws JsonProcessingException if the JSON string is invalid with respect to Agency + * @throws JacksonException if the JSON string is invalid with respect to Agency */ - public static Agency fromJson(String jsonString) throws JsonProcessingException { + public static Agency fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Agency.class); } @@ -237,7 +237,7 @@ public static Agency fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Airline.java b/src/main/java/com/adyen/model/checkout/Airline.java index 0bfc68398..b6cbc9948 100644 --- a/src/main/java/com/adyen/model/checkout/Airline.java +++ b/src/main/java/com/adyen/model/checkout/Airline.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Airline */ @JsonPropertyOrder({ @@ -938,9 +938,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Airline - * @throws JsonProcessingException if the JSON string is invalid with respect to Airline + * @throws JacksonException if the JSON string is invalid with respect to Airline */ - public static Airline fromJson(String jsonString) throws JsonProcessingException { + public static Airline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Airline.class); } @@ -949,7 +949,7 @@ public static Airline fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AlmaDetails.java b/src/main/java/com/adyen/model/checkout/AlmaDetails.java index f7364daf9..f1c6f8578 100644 --- a/src/main/java/com/adyen/model/checkout/AlmaDetails.java +++ b/src/main/java/com/adyen/model/checkout/AlmaDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AlmaDetails */ @JsonPropertyOrder({ @@ -397,9 +397,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AlmaDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AlmaDetails + * @throws JacksonException if the JSON string is invalid with respect to AlmaDetails */ - public static AlmaDetails fromJson(String jsonString) throws JsonProcessingException { + public static AlmaDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AlmaDetails.class); } @@ -408,7 +408,7 @@ public static AlmaDetails fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java index a77072bb3..3b3f41313 100644 --- a/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AmazonPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmazonPayDetails */ @JsonPropertyOrder({ @@ -433,9 +433,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmazonPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AmazonPayDetails + * @throws JacksonException if the JSON string is invalid with respect to AmazonPayDetails */ - public static AmazonPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static AmazonPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmazonPayDetails.class); } @@ -444,7 +444,7 @@ public static AmazonPayDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Amount.java b/src/main/java/com/adyen/model/checkout/Amount.java index 0f03932a8..bded601b2 100644 --- a/src/main/java/com/adyen/model/checkout/Amount.java +++ b/src/main/java/com/adyen/model/checkout/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Amounts.java b/src/main/java/com/adyen/model/checkout/Amounts.java index 000f39b91..20c82be9b 100644 --- a/src/main/java/com/adyen/model/checkout/Amounts.java +++ b/src/main/java/com/adyen/model/checkout/Amounts.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Amounts */ @JsonPropertyOrder({Amounts.JSON_PROPERTY_CURRENCY, Amounts.JSON_PROPERTY_VALUES}) @@ -227,9 +227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amounts - * @throws JsonProcessingException if the JSON string is invalid with respect to Amounts + * @throws JacksonException if the JSON string is invalid with respect to Amounts */ - public static Amounts fromJson(String jsonString) throws JsonProcessingException { + public static Amounts fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amounts.class); } @@ -238,7 +238,7 @@ public static Amounts fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AncvDetails.java b/src/main/java/com/adyen/model/checkout/AncvDetails.java index a1ec57971..aec1274d5 100644 --- a/src/main/java/com/adyen/model/checkout/AncvDetails.java +++ b/src/main/java/com/adyen/model/checkout/AncvDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AncvDetails */ @JsonPropertyOrder({ @@ -480,9 +480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AncvDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AncvDetails + * @throws JacksonException if the JSON string is invalid with respect to AncvDetails */ - public static AncvDetails fromJson(String jsonString) throws JsonProcessingException { + public static AncvDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AncvDetails.class); } @@ -491,7 +491,7 @@ public static AncvDetails fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java index 2087bea2b..593e11ac2 100644 --- a/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AndroidPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AndroidPayDetails */ @JsonPropertyOrder({ @@ -301,9 +301,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidPayDetails + * @throws JacksonException if the JSON string is invalid with respect to AndroidPayDetails */ - public static AndroidPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static AndroidPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidPayDetails.class); } @@ -312,7 +312,7 @@ public static AndroidPayDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java b/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java index 5aafc9ae0..7ff2e6444 100644 --- a/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java +++ b/src/main/java/com/adyen/model/checkout/AppIdentifierInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AppIdentifierInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AppIdentifierInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AppIdentifierInfo + * @throws JacksonException if the JSON string is invalid with respect to AppIdentifierInfo */ - public static AppIdentifierInfo fromJson(String jsonString) throws JsonProcessingException { + public static AppIdentifierInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AppIdentifierInfo.class); } @@ -219,7 +219,7 @@ public static AppIdentifierInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java index 8dfb8516c..0a86a4f83 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ApplePayDetails */ @JsonPropertyOrder({ @@ -592,9 +592,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePayDetails + * @throws JacksonException if the JSON string is invalid with respect to ApplePayDetails */ - public static ApplePayDetails fromJson(String jsonString) throws JsonProcessingException { + public static ApplePayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePayDetails.class); } @@ -603,7 +603,7 @@ public static ApplePayDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java index 966ddd3fa..26f4ca472 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/ApplePayDonations.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ApplePayDonations */ @JsonPropertyOrder({ @@ -592,9 +592,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePayDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePayDonations + * @throws JacksonException if the JSON string is invalid with respect to ApplePayDonations */ - public static ApplePayDonations fromJson(String jsonString) throws JsonProcessingException { + public static ApplePayDonations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePayDonations.class); } @@ -603,7 +603,7 @@ public static ApplePayDonations fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java index 8959d0930..ca9e8e34e 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ApplePaySessionRequest */ @JsonPropertyOrder({ @@ -305,10 +305,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePaySessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApplePaySessionRequest + * @throws JacksonException if the JSON string is invalid with respect to ApplePaySessionRequest */ - public static ApplePaySessionRequest fromJson(String jsonString) throws JsonProcessingException { + public static ApplePaySessionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePaySessionRequest.class); } @@ -317,7 +316,7 @@ public static ApplePaySessionRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java index f05f9c2be..25a5ee553 100644 --- a/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/ApplePaySessionResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ApplePaySessionResponse */ @JsonPropertyOrder({ApplePaySessionResponse.JSON_PROPERTY_DATA}) @@ -164,10 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePaySessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApplePaySessionResponse + * @throws JacksonException if the JSON string is invalid with respect to ApplePaySessionResponse */ - public static ApplePaySessionResponse fromJson(String jsonString) throws JsonProcessingException { + public static ApplePaySessionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePaySessionResponse.class); } @@ -176,7 +175,7 @@ public static ApplePaySessionResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java index 6974fee41..5c5be47fd 100644 --- a/src/main/java/com/adyen/model/checkout/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ApplicationInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ApplicationInfo */ @JsonPropertyOrder({ @@ -418,9 +418,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplicationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplicationInfo + * @throws JacksonException if the JSON string is invalid with respect to ApplicationInfo */ - public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ApplicationInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } @@ -429,7 +429,7 @@ public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AuPayDetails.java b/src/main/java/com/adyen/model/checkout/AuPayDetails.java index a65512839..c91e318e8 100644 --- a/src/main/java/com/adyen/model/checkout/AuPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/AuPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuPayDetails */ @JsonPropertyOrder({ @@ -430,9 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to AuPayDetails + * @throws JacksonException if the JSON string is invalid with respect to AuPayDetails */ - public static AuPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static AuPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuPayDetails.class); } @@ -441,7 +441,7 @@ public static AuPayDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/AuthenticationData.java b/src/main/java/com/adyen/model/checkout/AuthenticationData.java index a5b59c8c2..9a49a4c04 100644 --- a/src/main/java/com/adyen/model/checkout/AuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/AuthenticationData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthenticationData */ @JsonPropertyOrder({ @@ -365,10 +365,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AuthenticationData + * @throws JacksonException if the JSON string is invalid with respect to AuthenticationData */ - public static AuthenticationData fromJson(String jsonString) throws JsonProcessingException { + public static AuthenticationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationData.class); } @@ -377,7 +376,7 @@ public static AuthenticationData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java index 3642a7c8b..371d6a3eb 100644 --- a/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/BacsDirectDebitDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BacsDirectDebitDetails */ @JsonPropertyOrder({ @@ -644,10 +644,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BacsDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BacsDirectDebitDetails + * @throws JacksonException if the JSON string is invalid with respect to BacsDirectDebitDetails */ - public static BacsDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { + public static BacsDirectDebitDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BacsDirectDebitDetails.class); } @@ -656,7 +655,7 @@ public static BacsDirectDebitDetails fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index 606210acc..686b52240 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceCheckRequest */ @JsonPropertyOrder({ @@ -3064,10 +3064,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceCheckRequest + * @throws JacksonException if the JSON string is invalid with respect to BalanceCheckRequest */ - public static BalanceCheckRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceCheckRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceCheckRequest.class); } @@ -3076,7 +3075,7 @@ public static BalanceCheckRequest fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java index 0af38bd7b..192d8b8f6 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceCheckResponse */ @JsonPropertyOrder({ @@ -589,10 +589,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceCheckResponse + * @throws JacksonException if the JSON string is invalid with respect to BalanceCheckResponse */ - public static BalanceCheckResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalanceCheckResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceCheckResponse.class); } @@ -601,7 +600,7 @@ public static BalanceCheckResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java index 6eb7ccd4f..ed4cd0a2b 100644 --- a/src/main/java/com/adyen/model/checkout/BillDeskDetails.java +++ b/src/main/java/com/adyen/model/checkout/BillDeskDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BillDeskDetails */ @JsonPropertyOrder({ @@ -358,9 +358,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BillDeskDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BillDeskDetails + * @throws JacksonException if the JSON string is invalid with respect to BillDeskDetails */ - public static BillDeskDetails fromJson(String jsonString) throws JsonProcessingException { + public static BillDeskDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BillDeskDetails.class); } @@ -369,7 +369,7 @@ public static BillDeskDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BillingAddress.java b/src/main/java/com/adyen/model/checkout/BillingAddress.java index 0d64b108d..977176d8b 100644 --- a/src/main/java/com/adyen/model/checkout/BillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/BillingAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BillingAddress */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to BillingAddress + * @throws JacksonException if the JSON string is invalid with respect to BillingAddress */ - public static BillingAddress fromJson(String jsonString) throws JsonProcessingException { + public static BillingAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BillingAddress.class); } @@ -456,7 +456,7 @@ public static BillingAddress fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BlikDetails.java b/src/main/java/com/adyen/model/checkout/BlikDetails.java index 38a107f63..2b2ed8ebb 100644 --- a/src/main/java/com/adyen/model/checkout/BlikDetails.java +++ b/src/main/java/com/adyen/model/checkout/BlikDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BlikDetails */ @JsonPropertyOrder({ @@ -480,9 +480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BlikDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BlikDetails + * @throws JacksonException if the JSON string is invalid with respect to BlikDetails */ - public static BlikDetails fromJson(String jsonString) throws JsonProcessingException { + public static BlikDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BlikDetails.class); } @@ -491,7 +491,7 @@ public static BlikDetails fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/BrowserInfo.java b/src/main/java/com/adyen/model/checkout/BrowserInfo.java index 7299278ea..d61a5dbe7 100644 --- a/src/main/java/com/adyen/model/checkout/BrowserInfo.java +++ b/src/main/java/com/adyen/model/checkout/BrowserInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BrowserInfo */ @JsonPropertyOrder({ @@ -592,9 +592,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BrowserInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BrowserInfo + * @throws JacksonException if the JSON string is invalid with respect to BrowserInfo */ - public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { + public static BrowserInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } @@ -603,7 +603,7 @@ public static BrowserInfo fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java index 56eca0604..3ddf60f9a 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CancelOrderRequest */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CancelOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrderRequest + * @throws JacksonException if the JSON string is invalid with respect to CancelOrderRequest */ - public static CancelOrderRequest fromJson(String jsonString) throws JsonProcessingException { + public static CancelOrderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CancelOrderRequest.class); } @@ -220,7 +219,7 @@ public static CancelOrderRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java index 878eefd9a..819fafffa 100644 --- a/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CancelOrderResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CancelOrderResponse */ @JsonPropertyOrder({ @@ -260,10 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CancelOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrderResponse + * @throws JacksonException if the JSON string is invalid with respect to CancelOrderResponse */ - public static CancelOrderResponse fromJson(String jsonString) throws JsonProcessingException { + public static CancelOrderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CancelOrderResponse.class); } @@ -272,7 +271,7 @@ public static CancelOrderResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CarRental.java b/src/main/java/com/adyen/model/checkout/CarRental.java index b74111471..a2102ce61 100644 --- a/src/main/java/com/adyen/model/checkout/CarRental.java +++ b/src/main/java/com/adyen/model/checkout/CarRental.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CarRental */ @JsonPropertyOrder({ @@ -866,9 +866,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to CarRental + * @throws JacksonException if the JSON string is invalid with respect to CarRental */ - public static CarRental fromJson(String jsonString) throws JsonProcessingException { + public static CarRental fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CarRental.class); } @@ -877,7 +877,7 @@ public static CarRental fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java index 16a58282f..0b88dd0d3 100644 --- a/src/main/java/com/adyen/model/checkout/CardBrandDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardBrandDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardBrandDetails */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardBrandDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to CardBrandDetails + * @throws JacksonException if the JSON string is invalid with respect to CardBrandDetails */ - public static CardBrandDetails fromJson(String jsonString) throws JsonProcessingException { + public static CardBrandDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardBrandDetails.class); } @@ -267,7 +267,7 @@ public static CardBrandDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 573fb0f65..84230f419 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardDetails */ @JsonPropertyOrder({ @@ -1751,9 +1751,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to CardDetails + * @throws JacksonException if the JSON string is invalid with respect to CardDetails */ - public static CardDetails fromJson(String jsonString) throws JsonProcessingException { + public static CardDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardDetails.class); } @@ -1762,7 +1762,7 @@ public static CardDetails fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java index e868c55ee..e49f586b2 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CardDetailsRequest */ @JsonPropertyOrder({ @@ -435,10 +435,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardDetailsRequest + * @throws JacksonException if the JSON string is invalid with respect to CardDetailsRequest */ - public static CardDetailsRequest fromJson(String jsonString) throws JsonProcessingException { + public static CardDetailsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardDetailsRequest.class); } @@ -447,7 +446,7 @@ public static CardDetailsRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java index a1fa81dcc..0dde29612 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CardDetailsResponse */ @JsonPropertyOrder({ @@ -333,10 +333,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardDetailsResponse + * @throws JacksonException if the JSON string is invalid with respect to CardDetailsResponse */ - public static CardDetailsResponse fromJson(String jsonString) throws JsonProcessingException { + public static CardDetailsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardDetailsResponse.class); } @@ -345,7 +344,7 @@ public static CardDetailsResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 34c411b04..1f202899c 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardDonations */ @JsonPropertyOrder({ @@ -1751,9 +1751,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to CardDonations + * @throws JacksonException if the JSON string is invalid with respect to CardDonations */ - public static CardDonations fromJson(String jsonString) throws JsonProcessingException { + public static CardDonations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardDonations.class); } @@ -1762,7 +1762,7 @@ public static CardDonations fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CashAppDetails.java b/src/main/java/com/adyen/model/checkout/CashAppDetails.java index 1b78e5b8f..d56c547d4 100644 --- a/src/main/java/com/adyen/model/checkout/CashAppDetails.java +++ b/src/main/java/com/adyen/model/checkout/CashAppDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CashAppDetails */ @JsonPropertyOrder({ @@ -731,9 +731,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to CashAppDetails + * @throws JacksonException if the JSON string is invalid with respect to CashAppDetails */ - public static CashAppDetails fromJson(String jsonString) throws JsonProcessingException { + public static CashAppDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashAppDetails.class); } @@ -742,7 +742,7 @@ public static CashAppDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CellulantDetails.java b/src/main/java/com/adyen/model/checkout/CellulantDetails.java index c5912b2b1..f3d5d8c7c 100644 --- a/src/main/java/com/adyen/model/checkout/CellulantDetails.java +++ b/src/main/java/com/adyen/model/checkout/CellulantDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CellulantDetails */ @JsonPropertyOrder({ @@ -356,9 +356,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CellulantDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to CellulantDetails + * @throws JacksonException if the JSON string is invalid with respect to CellulantDetails */ - public static CellulantDetails fromJson(String jsonString) throws JsonProcessingException { + public static CellulantDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CellulantDetails.class); } @@ -367,7 +367,7 @@ public static CellulantDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java index f6cf12e8d..352959e6d 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutAwaitAction.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutAwaitAction */ @JsonPropertyOrder({ @@ -355,10 +355,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutAwaitAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutAwaitAction + * @throws JacksonException if the JSON string is invalid with respect to CheckoutAwaitAction */ - public static CheckoutAwaitAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutAwaitAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutAwaitAction.class); } @@ -367,7 +366,7 @@ public static CheckoutAwaitAction fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java index 1e5e4b595..6ccd01feb 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankAccount.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutBankAccount */ @JsonPropertyOrder({ @@ -736,10 +736,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutBankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutBankAccount + * @throws JacksonException if the JSON string is invalid with respect to CheckoutBankAccount */ - public static CheckoutBankAccount fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutBankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutBankAccount.class); } @@ -748,7 +747,7 @@ public static CheckoutBankAccount fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java index a6f6a3dd5..69651293c 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutBankTransferAction */ @JsonPropertyOrder({ @@ -906,11 +906,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutBankTransferAction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutBankTransferAction */ - public static CheckoutBankTransferAction fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutBankTransferAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutBankTransferAction.class); } @@ -919,7 +918,7 @@ public static CheckoutBankTransferAction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java index fd92cef27..8eaef0a7f 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutDelegatedAuthenticationAction.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutDelegatedAuthenticationAction */ @JsonPropertyOrder({ @@ -469,11 +469,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutDelegatedAuthenticationAction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutDelegatedAuthenticationAction */ public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutDelegatedAuthenticationAction.class); } @@ -482,7 +482,7 @@ public static CheckoutDelegatedAuthenticationAction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutErrorResponseEntity.java b/src/main/java/com/adyen/model/checkout/CheckoutErrorResponseEntity.java index 799935e72..8581f78d6 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutErrorResponseEntity.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckoutErrorResponseEntity */ @JsonPropertyOrder({ @@ -362,11 +362,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutErrorResponseEntity */ - public static CheckoutErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutErrorResponseEntity.class); } @@ -375,7 +374,7 @@ public static CheckoutErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java index 4de3b2d79..b37f85d31 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckoutForwardRequest */ @JsonPropertyOrder({ @@ -596,10 +596,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutForwardRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutForwardRequest + * @throws JacksonException if the JSON string is invalid with respect to CheckoutForwardRequest */ - public static CheckoutForwardRequest fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutForwardRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutForwardRequest.class); } @@ -608,7 +607,7 @@ public static CheckoutForwardRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestCard.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestCard.java index c1fbbf1fe..987e3ab4e 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestCard.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestCard.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutForwardRequestCard */ @JsonPropertyOrder({ @@ -714,11 +714,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutForwardRequestCard - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutForwardRequestCard */ - public static CheckoutForwardRequestCard fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutForwardRequestCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutForwardRequestCard.class); } @@ -727,7 +726,7 @@ public static CheckoutForwardRequestCard fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestOptions.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestOptions.java index 516afe06f..5ad00dbdf 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestOptions.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardRequestOptions.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CheckoutForwardRequestOptions */ @JsonPropertyOrder({ @@ -479,11 +479,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutForwardRequestOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutForwardRequestOptions */ - public static CheckoutForwardRequestOptions fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutForwardRequestOptions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutForwardRequestOptions.class); } @@ -492,7 +491,7 @@ public static CheckoutForwardRequestOptions fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardResponse.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardResponse.java index d5cc91ada..439c4f88f 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardResponse.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckoutForwardResponse */ @JsonPropertyOrder({ @@ -325,10 +325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutForwardResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutForwardResponse + * @throws JacksonException if the JSON string is invalid with respect to CheckoutForwardResponse */ - public static CheckoutForwardResponse fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutForwardResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutForwardResponse.class); } @@ -337,7 +336,7 @@ public static CheckoutForwardResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutForwardResponseFromUrl.java b/src/main/java/com/adyen/model/checkout/CheckoutForwardResponseFromUrl.java index f2bbe909e..76119875c 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutForwardResponseFromUrl.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutForwardResponseFromUrl.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** CheckoutForwardResponseFromUrl */ @JsonPropertyOrder({ @@ -270,11 +270,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutForwardResponseFromUrl - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutForwardResponseFromUrl */ - public static CheckoutForwardResponseFromUrl fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutForwardResponseFromUrl fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutForwardResponseFromUrl.class); } @@ -283,7 +282,7 @@ public static CheckoutForwardResponseFromUrl fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java index ddec9137c..5ba005aff 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutNativeRedirectAction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutNativeRedirectAction */ @JsonPropertyOrder({ @@ -476,11 +476,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutNativeRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutNativeRedirectAction */ - public static CheckoutNativeRedirectAction fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutNativeRedirectAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutNativeRedirectAction.class); } @@ -489,7 +488,7 @@ public static CheckoutNativeRedirectAction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutNetworkTokenOption.java b/src/main/java/com/adyen/model/checkout/CheckoutNetworkTokenOption.java index 841dc59b0..cc25e0685 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutNetworkTokenOption.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutNetworkTokenOption.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckoutNetworkTokenOption */ @JsonPropertyOrder({ @@ -211,11 +211,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutNetworkTokenOption - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutNetworkTokenOption */ - public static CheckoutNetworkTokenOption fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutNetworkTokenOption fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutNetworkTokenOption.class); } @@ -224,7 +223,7 @@ public static CheckoutNetworkTokenOption fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java index dee54d608..8dd40f846 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutOrderResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckoutOrderResponse */ @JsonPropertyOrder({ @@ -412,10 +412,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutOrderResponse + * @throws JacksonException if the JSON string is invalid with respect to CheckoutOrderResponse */ - public static CheckoutOrderResponse fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutOrderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutOrderResponse.class); } @@ -424,7 +423,7 @@ public static CheckoutOrderResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutOutgoingForwardRequest.java b/src/main/java/com/adyen/model/checkout/CheckoutOutgoingForwardRequest.java index 861a39fc0..138a52e48 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutOutgoingForwardRequest.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutOutgoingForwardRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutOutgoingForwardRequest */ @JsonPropertyOrder({ @@ -494,11 +494,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutOutgoingForwardRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutOutgoingForwardRequest */ - public static CheckoutOutgoingForwardRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CheckoutOutgoingForwardRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutOutgoingForwardRequest.class); } @@ -507,7 +506,7 @@ public static CheckoutOutgoingForwardRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java index a391ab24b..ae442ea83 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutPaymentMethod.java @@ -11,19 +11,6 @@ package com.adyen.model.checkout; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodDeserializer.class) @JsonSerialize(using = CheckoutPaymentMethod.CheckoutPaymentMethodSerializer.class) @@ -49,9 +48,9 @@ public CheckoutPaymentMethodSerializer() { @Override public void serialize( - CheckoutPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + CheckoutPaymentMethod value, JsonGenerator jgen, SerializationContext provider) + throws JacksonException { + provider.writeValue(jgen, value.getActualInstance()); } } @@ -67,12 +66,11 @@ public CheckoutPaymentMethodDeserializer(Class vc) { @Override public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AchDetails try { boolean attemptParsing = true; @@ -86,7 +84,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AchDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AchDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -112,7 +110,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AffirmDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AffirmDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -138,7 +136,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AfterpayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AfterpayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -164,7 +162,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AlmaDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AlmaDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -190,7 +188,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AmazonPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AmazonPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -216,7 +214,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AncvDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AncvDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -242,7 +240,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AndroidPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AndroidPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -268,7 +266,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, ApplePayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -294,7 +292,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(AuPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, AuPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -320,7 +318,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BacsDirectDebitDetails.class); + deserialized = ctxt.readTreeAsValue(tree, BacsDirectDebitDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -346,7 +344,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BillDeskDetails.class); + deserialized = ctxt.readTreeAsValue(tree, BillDeskDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -372,7 +370,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BlikDetails.class); + deserialized = ctxt.readTreeAsValue(tree, BlikDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -398,7 +396,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDetails.class); + deserialized = ctxt.readTreeAsValue(tree, CardDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -424,7 +422,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CashAppDetails.class); + deserialized = ctxt.readTreeAsValue(tree, CashAppDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -450,7 +448,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CellulantDetails.class); + deserialized = ctxt.readTreeAsValue(tree, CellulantDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -476,7 +474,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DBaraiDetails.class); + deserialized = ctxt.readTreeAsValue(tree, DBaraiDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -502,7 +500,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DirectDebitAuDetails.class); + deserialized = ctxt.readTreeAsValue(tree, DirectDebitAuDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -528,7 +526,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DokuDetails.class); + deserialized = ctxt.readTreeAsValue(tree, DokuDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -554,7 +552,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(DragonpayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, DragonpayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -580,7 +578,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EBankingFinlandDetails.class); + deserialized = ctxt.readTreeAsValue(tree, EBankingFinlandDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -606,7 +604,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EcontextVoucherDetails.class); + deserialized = ctxt.readTreeAsValue(tree, EcontextVoucherDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -632,7 +630,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EftDetails.class); + deserialized = ctxt.readTreeAsValue(tree, EftDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -658,7 +656,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ExternalTokenDetails.class); + deserialized = ctxt.readTreeAsValue(tree, ExternalTokenDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -684,7 +682,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(FastlaneDetails.class); + deserialized = ctxt.readTreeAsValue(tree, FastlaneDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -710,8 +708,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(GenericIssuerPaymentMethodDetails.class); + deserialized = ctxt.readTreeAsValue(tree, GenericIssuerPaymentMethodDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -738,7 +735,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, GooglePayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -764,7 +761,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDetails.class); + deserialized = ctxt.readTreeAsValue(tree, IdealDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -790,7 +787,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaDetails.class); + deserialized = ctxt.readTreeAsValue(tree, KlarnaDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -816,7 +813,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(KlarnaNetworkDetails.class); + deserialized = ctxt.readTreeAsValue(tree, KlarnaNetworkDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -842,7 +839,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MasterpassDetails.class); + deserialized = ctxt.readTreeAsValue(tree, MasterpassDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -868,7 +865,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MbwayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, MbwayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -894,7 +891,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MobilePayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, MobilePayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -920,7 +917,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MolPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, MolPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -946,7 +943,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(OpenInvoiceDetails.class); + deserialized = ctxt.readTreeAsValue(tree, OpenInvoiceDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -972,8 +969,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PayByBankAISDirectDebitDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayByBankAISDirectDebitDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1000,7 +996,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayByBankDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayByBankDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1026,7 +1022,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPalDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayPalDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1052,7 +1048,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1078,7 +1074,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayToDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayToDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1104,7 +1100,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayUUpiDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayUUpiDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1130,7 +1126,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PayWithGoogleDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1156,7 +1152,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PaymentDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PaymentDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1182,7 +1178,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PixDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PixDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1208,7 +1204,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PixPayByBankDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PixPayByBankDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1234,7 +1230,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PseDetails.class); + deserialized = ctxt.readTreeAsValue(tree, PseDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1260,7 +1256,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RakutenPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, RakutenPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1286,7 +1282,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RatepayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, RatepayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1312,7 +1308,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(RivertyDetails.class); + deserialized = ctxt.readTreeAsValue(tree, RivertyDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1338,7 +1334,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SamsungPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, SamsungPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1364,7 +1360,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(SepaDirectDebitDetails.class); + deserialized = ctxt.readTreeAsValue(tree, SepaDirectDebitDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1390,8 +1386,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(StoredPaymentMethodDetails.class); + deserialized = ctxt.readTreeAsValue(tree, StoredPaymentMethodDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1417,7 +1412,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TwintDetails.class); + deserialized = ctxt.readTreeAsValue(tree, TwintDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1443,7 +1438,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiCollectDetails.class); + deserialized = ctxt.readTreeAsValue(tree, UpiCollectDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1469,7 +1464,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiIntentDetails.class); + deserialized = ctxt.readTreeAsValue(tree, UpiIntentDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1495,7 +1490,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpiQrDetails.class); + deserialized = ctxt.readTreeAsValue(tree, UpiQrDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1521,7 +1516,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VippsDetails.class); + deserialized = ctxt.readTreeAsValue(tree, VippsDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1547,7 +1542,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(VisaCheckoutDetails.class); + deserialized = ctxt.readTreeAsValue(tree, VisaCheckoutDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1573,7 +1568,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(WeChatPayDetails.class); + deserialized = ctxt.readTreeAsValue(tree, WeChatPayDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1599,8 +1594,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(WeChatPayMiniProgramDetails.class); + deserialized = ctxt.readTreeAsValue(tree, WeChatPayMiniProgramDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1626,7 +1620,7 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ZipDetails.class); + deserialized = ctxt.readTreeAsValue(tree, ZipDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -1644,7 +1638,8 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for CheckoutPaymentMethod: %d classes match result, expected 1", match)); @@ -1653,8 +1648,8 @@ public CheckoutPaymentMethod deserialize(JsonParser jp, DeserializationContext c /** Handle deserialization of the 'null' value. */ @Override public CheckoutPaymentMethod getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "CheckoutPaymentMethod cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "CheckoutPaymentMethod cannot be null"); } } @@ -3380,7 +3375,7 @@ public static CheckoutPaymentMethod fromJson(String jsonString) throws IOExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java index 7fac73953..d48978e64 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutQrCodeAction.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutQrCodeAction */ @JsonPropertyOrder({ @@ -455,10 +455,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutQrCodeAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutQrCodeAction + * @throws JacksonException if the JSON string is invalid with respect to CheckoutQrCodeAction */ - public static CheckoutQrCodeAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutQrCodeAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutQrCodeAction.class); } @@ -467,7 +466,7 @@ public static CheckoutQrCodeAction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java index 4ed303eda..6bf497046 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutRedirectAction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutRedirectAction */ @JsonPropertyOrder({ @@ -419,10 +419,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutRedirectAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutRedirectAction + * @throws JacksonException if the JSON string is invalid with respect to CheckoutRedirectAction */ - public static CheckoutRedirectAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutRedirectAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutRedirectAction.class); } @@ -431,7 +430,7 @@ public static CheckoutRedirectAction fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java index e12039357..99a8aaa65 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSDKAction.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutSDKAction */ @JsonPropertyOrder({ @@ -417,9 +417,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutSDKAction - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSDKAction + * @throws JacksonException if the JSON string is invalid with respect to CheckoutSDKAction */ - public static CheckoutSDKAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutSDKAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutSDKAction.class); } @@ -428,7 +428,7 @@ public static CheckoutSDKAction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java index 3be157758..36814c2b1 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionInstallmentOption.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutSessionInstallmentOption */ @JsonPropertyOrder({ @@ -365,11 +365,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutSessionInstallmentOption - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutSessionInstallmentOption */ public static CheckoutSessionInstallmentOption fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutSessionInstallmentOption.class); } @@ -378,7 +378,7 @@ public static CheckoutSessionInstallmentOption fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java index cd373e770..e73af955f 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutSessionThreeDS2RequestData */ @JsonPropertyOrder({ @@ -410,11 +410,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutSessionThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckoutSessionThreeDS2RequestData */ public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutSessionThreeDS2RequestData.class); } @@ -423,7 +423,7 @@ public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java index e252997e3..77d40a38b 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutThreeDS2Action.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutThreeDS2Action */ @JsonPropertyOrder({ @@ -507,10 +507,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutThreeDS2Action - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutThreeDS2Action + * @throws JacksonException if the JSON string is invalid with respect to CheckoutThreeDS2Action */ - public static CheckoutThreeDS2Action fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutThreeDS2Action fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutThreeDS2Action.class); } @@ -519,7 +518,7 @@ public static CheckoutThreeDS2Action fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java index 4624b05bb..e47167e4c 100644 --- a/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java +++ b/src/main/java/com/adyen/model/checkout/CheckoutVoucherAction.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CheckoutVoucherAction */ @JsonPropertyOrder({ @@ -1227,10 +1227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckoutVoucherAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CheckoutVoucherAction + * @throws JacksonException if the JSON string is invalid with respect to CheckoutVoucherAction */ - public static CheckoutVoucherAction fromJson(String jsonString) throws JsonProcessingException { + public static CheckoutVoucherAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckoutVoucherAction.class); } @@ -1239,7 +1238,7 @@ public static CheckoutVoucherAction fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CommonField.java b/src/main/java/com/adyen/model/checkout/CommonField.java index f98309b36..a0479c016 100644 --- a/src/main/java/com/adyen/model/checkout/CommonField.java +++ b/src/main/java/com/adyen/model/checkout/CommonField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CommonField */ @JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CommonField - * @throws JsonProcessingException if the JSON string is invalid with respect to CommonField + * @throws JacksonException if the JSON string is invalid with respect to CommonField */ - public static CommonField fromJson(String jsonString) throws JsonProcessingException { + public static CommonField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CommonField.class); } @@ -216,7 +216,7 @@ public static CommonField fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Company.java b/src/main/java/com/adyen/model/checkout/Company.java index d6e18fabc..f0ff514dc 100644 --- a/src/main/java/com/adyen/model/checkout/Company.java +++ b/src/main/java/com/adyen/model/checkout/Company.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Company */ @JsonPropertyOrder({ @@ -412,9 +412,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Company - * @throws JsonProcessingException if the JSON string is invalid with respect to Company + * @throws JacksonException if the JSON string is invalid with respect to Company */ - public static Company fromJson(String jsonString) throws JsonProcessingException { + public static Company fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Company.class); } @@ -423,7 +423,7 @@ public static Company fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ConfidenceScore.java b/src/main/java/com/adyen/model/checkout/ConfidenceScore.java index ff87ccd5a..cbe357576 100644 --- a/src/main/java/com/adyen/model/checkout/ConfidenceScore.java +++ b/src/main/java/com/adyen/model/checkout/ConfidenceScore.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ConfidenceScore */ @JsonPropertyOrder({ConfidenceScore.JSON_PROPERTY_ERRORS, ConfidenceScore.JSON_PROPERTY_SCORE}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ConfidenceScore - * @throws JsonProcessingException if the JSON string is invalid with respect to ConfidenceScore + * @throws JacksonException if the JSON string is invalid with respect to ConfidenceScore */ - public static ConfidenceScore fromJson(String jsonString) throws JsonProcessingException { + public static ConfidenceScore fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ConfidenceScore.class); } @@ -226,7 +226,7 @@ public static ConfidenceScore fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index ef16be34f..d4c983bbc 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateCheckoutSessionRequest */ @JsonPropertyOrder({ @@ -4497,11 +4497,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCheckoutSessionRequest */ - public static CreateCheckoutSessionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCheckoutSessionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionRequest.class); } @@ -4510,7 +4509,7 @@ public static CreateCheckoutSessionRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index f92b61552..e3261ab3c 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; @@ -27,6 +26,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateCheckoutSessionResponse */ @JsonPropertyOrder({ @@ -4625,11 +4625,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCheckoutSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCheckoutSessionResponse */ - public static CreateCheckoutSessionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCheckoutSessionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionResponse.class); } @@ -4638,7 +4637,7 @@ public static CreateCheckoutSessionResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java index c5ab5c1b6..985d0916b 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateOrderRequest */ @JsonPropertyOrder({ @@ -327,10 +327,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateOrderRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateOrderRequest */ - public static CreateOrderRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateOrderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateOrderRequest.class); } @@ -339,7 +338,7 @@ public static CreateOrderRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java index 017bc1869..0011ac8a3 100644 --- a/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateOrderResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateOrderResponse */ @JsonPropertyOrder({ @@ -708,10 +708,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateOrderResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateOrderResponse */ - public static CreateOrderResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateOrderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateOrderResponse.class); } @@ -720,7 +719,7 @@ public static CreateOrderResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DBaraiDetails.java b/src/main/java/com/adyen/model/checkout/DBaraiDetails.java index 85663768f..45606774a 100644 --- a/src/main/java/com/adyen/model/checkout/DBaraiDetails.java +++ b/src/main/java/com/adyen/model/checkout/DBaraiDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DBaraiDetails */ @JsonPropertyOrder({ @@ -430,9 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DBaraiDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to DBaraiDetails + * @throws JacksonException if the JSON string is invalid with respect to DBaraiDetails */ - public static DBaraiDetails fromJson(String jsonString) throws JsonProcessingException { + public static DBaraiDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DBaraiDetails.class); } @@ -441,7 +441,7 @@ public static DBaraiDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java index 9a532304e..952aa6b08 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryAddress */ @JsonPropertyOrder({ @@ -545,9 +545,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeliveryAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryAddress + * @throws JacksonException if the JSON string is invalid with respect to DeliveryAddress */ - public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } @@ -556,7 +556,7 @@ public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java index 41b71d9ea..3118d3d4a 100644 --- a/src/main/java/com/adyen/model/checkout/DeliveryMethod.java +++ b/src/main/java/com/adyen/model/checkout/DeliveryMethod.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DeliveryMethod */ @JsonPropertyOrder({ @@ -411,9 +411,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeliveryMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryMethod + * @throws JacksonException if the JSON string is invalid with respect to DeliveryMethod */ - public static DeliveryMethod fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryMethod.class); } @@ -422,7 +422,7 @@ public static DeliveryMethod fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Destination.java b/src/main/java/com/adyen/model/checkout/Destination.java index 2a8ab6509..ee25cefc8 100644 --- a/src/main/java/com/adyen/model/checkout/Destination.java +++ b/src/main/java/com/adyen/model/checkout/Destination.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Destination */ @JsonPropertyOrder({ @@ -319,9 +319,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Destination - * @throws JsonProcessingException if the JSON string is invalid with respect to Destination + * @throws JacksonException if the JSON string is invalid with respect to Destination */ - public static Destination fromJson(String jsonString) throws JsonProcessingException { + public static Destination fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Destination.class); } @@ -330,7 +330,7 @@ public static Destination fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java index 5b7e9977c..3c7d9f95d 100644 --- a/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java +++ b/src/main/java/com/adyen/model/checkout/DetailsRequestAuthenticationData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DetailsRequestAuthenticationData */ @JsonPropertyOrder({DetailsRequestAuthenticationData.JSON_PROPERTY_AUTHENTICATION_ONLY}) @@ -180,11 +180,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DetailsRequestAuthenticationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DetailsRequestAuthenticationData */ public static DetailsRequestAuthenticationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, DetailsRequestAuthenticationData.class); } @@ -193,7 +193,7 @@ public static DetailsRequestAuthenticationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java index 97468b678..a178ebc27 100644 --- a/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/checkout/DeviceRenderOptions.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DeviceRenderOptions */ @JsonPropertyOrder({ @@ -318,10 +318,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeviceRenderOptions + * @throws JacksonException if the JSON string is invalid with respect to DeviceRenderOptions */ - public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { + public static DeviceRenderOptions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } @@ -330,7 +329,7 @@ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java b/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java index fbb340ca9..72e3e2199 100644 --- a/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java +++ b/src/main/java/com/adyen/model/checkout/DirectDebitAuDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DirectDebitAuDetails */ @JsonPropertyOrder({ @@ -585,10 +585,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DirectDebitAuDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DirectDebitAuDetails + * @throws JacksonException if the JSON string is invalid with respect to DirectDebitAuDetails */ - public static DirectDebitAuDetails fromJson(String jsonString) throws JsonProcessingException { + public static DirectDebitAuDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DirectDebitAuDetails.class); } @@ -597,7 +596,7 @@ public static DirectDebitAuDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DokuDetails.java b/src/main/java/com/adyen/model/checkout/DokuDetails.java index 73295f073..f0991ed9a 100644 --- a/src/main/java/com/adyen/model/checkout/DokuDetails.java +++ b/src/main/java/com/adyen/model/checkout/DokuDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DokuDetails */ @JsonPropertyOrder({ @@ -476,9 +476,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DokuDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to DokuDetails + * @throws JacksonException if the JSON string is invalid with respect to DokuDetails */ - public static DokuDetails fromJson(String jsonString) throws JsonProcessingException { + public static DokuDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DokuDetails.class); } @@ -487,7 +487,7 @@ public static DokuDetails fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Donation.java b/src/main/java/com/adyen/model/checkout/Donation.java index e4af18d37..b6705d5b9 100644 --- a/src/main/java/com/adyen/model/checkout/Donation.java +++ b/src/main/java/com/adyen/model/checkout/Donation.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Donation */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Donation - * @throws JsonProcessingException if the JSON string is invalid with respect to Donation + * @throws JacksonException if the JSON string is invalid with respect to Donation */ - public static Donation fromJson(String jsonString) throws JsonProcessingException { + public static Donation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Donation.class); } @@ -456,7 +456,7 @@ public static Donation fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaign.java b/src/main/java/com/adyen/model/checkout/DonationCampaign.java index f26450d9f..5888ed6ee 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaign.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaign.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DonationCampaign */ @JsonPropertyOrder({ @@ -671,9 +671,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaign - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaign + * @throws JacksonException if the JSON string is invalid with respect to DonationCampaign */ - public static DonationCampaign fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaign fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaign.class); } @@ -682,7 +682,7 @@ public static DonationCampaign fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java index d30749f5a..94de06f3d 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DonationCampaignsRequest */ @JsonPropertyOrder({ @@ -357,11 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaignsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationCampaignsRequest + * @throws JacksonException if the JSON string is invalid with respect to DonationCampaignsRequest */ - public static DonationCampaignsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DonationCampaignsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaignsRequest.class); } @@ -370,7 +368,7 @@ public static DonationCampaignsRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java index 6678a8d22..a3b5e8b2d 100644 --- a/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationCampaignsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationCampaignsResponse */ @JsonPropertyOrder({DonationCampaignsResponse.JSON_PROPERTY_DONATION_CAMPAIGNS}) @@ -170,11 +170,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaignsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DonationCampaignsResponse */ - public static DonationCampaignsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DonationCampaignsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaignsResponse.class); } @@ -183,7 +182,7 @@ public static DonationCampaignsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java index df1c19b50..92e47db76 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentMethod.java @@ -11,19 +11,6 @@ package com.adyen.model.checkout; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = DonationPaymentMethod.DonationPaymentMethodDeserializer.class) @JsonSerialize(using = DonationPaymentMethod.DonationPaymentMethodSerializer.class) @@ -49,9 +48,9 @@ public DonationPaymentMethodSerializer() { @Override public void serialize( - DonationPaymentMethod value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + DonationPaymentMethod value, JsonGenerator jgen, SerializationContext provider) + throws JacksonException { + provider.writeValue(jgen, value.getActualInstance()); } } @@ -67,12 +66,11 @@ public DonationPaymentMethodDeserializer(Class vc) { @Override public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ApplePayDonations try { boolean attemptParsing = true; @@ -86,7 +84,7 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ApplePayDonations.class); + deserialized = ctxt.readTreeAsValue(tree, ApplePayDonations.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -112,7 +110,7 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CardDonations.class); + deserialized = ctxt.readTreeAsValue(tree, CardDonations.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -138,7 +136,7 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(GooglePayDonations.class); + deserialized = ctxt.readTreeAsValue(tree, GooglePayDonations.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -164,7 +162,7 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IdealDonations.class); + deserialized = ctxt.readTreeAsValue(tree, IdealDonations.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -190,7 +188,7 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PayWithGoogleDonations.class); + deserialized = ctxt.readTreeAsValue(tree, PayWithGoogleDonations.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -208,7 +206,8 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for DonationPaymentMethod: %d classes match result, expected 1", match)); @@ -217,8 +216,8 @@ public DonationPaymentMethod deserialize(JsonParser jp, DeserializationContext c /** Handle deserialization of the 'null' value. */ @Override public DonationPaymentMethod getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "DonationPaymentMethod cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "DonationPaymentMethod cannot be null"); } } @@ -406,7 +405,7 @@ public static DonationPaymentMethod fromJson(String jsonString) throws IOExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index 3067cb020..e7fbf04a3 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; @@ -27,6 +26,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DonationPaymentRequest */ @JsonPropertyOrder({ @@ -2756,10 +2756,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationPaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationPaymentRequest + * @throws JacksonException if the JSON string is invalid with respect to DonationPaymentRequest */ - public static DonationPaymentRequest fromJson(String jsonString) throws JsonProcessingException { + public static DonationPaymentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationPaymentRequest.class); } @@ -2768,7 +2767,7 @@ public static DonationPaymentRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java index dbc6b2f01..7dff17db1 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DonationPaymentResponse */ @JsonPropertyOrder({ @@ -551,10 +551,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationPaymentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationPaymentResponse + * @throws JacksonException if the JSON string is invalid with respect to DonationPaymentResponse */ - public static DonationPaymentResponse fromJson(String jsonString) throws JsonProcessingException { + public static DonationPaymentResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationPaymentResponse.class); } @@ -563,7 +562,7 @@ public static DonationPaymentResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java index 79428a147..37089eaa5 100644 --- a/src/main/java/com/adyen/model/checkout/DragonpayDetails.java +++ b/src/main/java/com/adyen/model/checkout/DragonpayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DragonpayDetails */ @JsonPropertyOrder({ @@ -418,9 +418,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DragonpayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to DragonpayDetails + * @throws JacksonException if the JSON string is invalid with respect to DragonpayDetails */ - public static DragonpayDetails fromJson(String jsonString) throws JsonProcessingException { + public static DragonpayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DragonpayDetails.class); } @@ -429,7 +429,7 @@ public static DragonpayDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java index dbe203e76..d938a0537 100644 --- a/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java +++ b/src/main/java/com/adyen/model/checkout/EBankingFinlandDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EBankingFinlandDetails */ @JsonPropertyOrder({ @@ -357,10 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EBankingFinlandDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EBankingFinlandDetails + * @throws JacksonException if the JSON string is invalid with respect to EBankingFinlandDetails */ - public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProcessingException { + public static EBankingFinlandDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EBankingFinlandDetails.class); } @@ -369,7 +368,7 @@ public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java index c68861bb6..21baf95c5 100644 --- a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java +++ b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EcontextVoucherDetails */ @JsonPropertyOrder({ @@ -527,10 +527,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EcontextVoucherDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EcontextVoucherDetails + * @throws JacksonException if the JSON string is invalid with respect to EcontextVoucherDetails */ - public static EcontextVoucherDetails fromJson(String jsonString) throws JsonProcessingException { + public static EcontextVoucherDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EcontextVoucherDetails.class); } @@ -539,7 +538,7 @@ public static EcontextVoucherDetails fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/EftDetails.java b/src/main/java/com/adyen/model/checkout/EftDetails.java index 96cb1ce7c..c9e0e1f4a 100644 --- a/src/main/java/com/adyen/model/checkout/EftDetails.java +++ b/src/main/java/com/adyen/model/checkout/EftDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EftDetails */ @JsonPropertyOrder({ @@ -678,9 +678,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EftDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to EftDetails + * @throws JacksonException if the JSON string is invalid with respect to EftDetails */ - public static EftDetails fromJson(String jsonString) throws JsonProcessingException { + public static EftDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EftDetails.class); } @@ -689,7 +689,7 @@ public static EftDetails fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java index abd3bd7e8..1e1c0bece 100644 --- a/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java +++ b/src/main/java/com/adyen/model/checkout/EncryptedOrderData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EncryptedOrderData */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EncryptedOrderData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EncryptedOrderData + * @throws JacksonException if the JSON string is invalid with respect to EncryptedOrderData */ - public static EncryptedOrderData fromJson(String jsonString) throws JsonProcessingException { + public static EncryptedOrderData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EncryptedOrderData.class); } @@ -220,7 +219,7 @@ public static EncryptedOrderData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java index 55eb0b828..3cead797f 100644 --- a/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java +++ b/src/main/java/com/adyen/model/checkout/EnhancedSchemeData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EnhancedSchemeData */ @JsonPropertyOrder({ @@ -412,10 +412,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EnhancedSchemeData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EnhancedSchemeData + * @throws JacksonException if the JSON string is invalid with respect to EnhancedSchemeData */ - public static EnhancedSchemeData fromJson(String jsonString) throws JsonProcessingException { + public static EnhancedSchemeData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EnhancedSchemeData.class); } @@ -424,7 +423,7 @@ public static EnhancedSchemeData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java index 030db60ae..94da5da5f 100644 --- a/src/main/java/com/adyen/model/checkout/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/checkout/ExternalPlatform.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ExternalPlatform */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExternalPlatform - * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalPlatform + * @throws JacksonException if the JSON string is invalid with respect to ExternalPlatform */ - public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { + public static ExternalPlatform fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } @@ -267,7 +267,7 @@ public static ExternalPlatform fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ExternalTokenDetails.java b/src/main/java/com/adyen/model/checkout/ExternalTokenDetails.java index c39a37b7e..4cc09e1ef 100644 --- a/src/main/java/com/adyen/model/checkout/ExternalTokenDetails.java +++ b/src/main/java/com/adyen/model/checkout/ExternalTokenDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ExternalTokenDetails */ @JsonPropertyOrder({ @@ -624,10 +624,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExternalTokenDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ExternalTokenDetails + * @throws JacksonException if the JSON string is invalid with respect to ExternalTokenDetails */ - public static ExternalTokenDetails fromJson(String jsonString) throws JsonProcessingException { + public static ExternalTokenDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalTokenDetails.class); } @@ -636,7 +635,7 @@ public static ExternalTokenDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java index 6aaaea26a..afcb5afa7 100644 --- a/src/main/java/com/adyen/model/checkout/FastlaneDetails.java +++ b/src/main/java/com/adyen/model/checkout/FastlaneDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** FastlaneDetails */ @JsonPropertyOrder({ @@ -481,9 +481,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FastlaneDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to FastlaneDetails + * @throws JacksonException if the JSON string is invalid with respect to FastlaneDetails */ - public static FastlaneDetails fromJson(String jsonString) throws JsonProcessingException { + public static FastlaneDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FastlaneDetails.class); } @@ -492,7 +492,7 @@ public static FastlaneDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Folio.java b/src/main/java/com/adyen/model/checkout/Folio.java index d11074770..0d0abf0cf 100644 --- a/src/main/java/com/adyen/model/checkout/Folio.java +++ b/src/main/java/com/adyen/model/checkout/Folio.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Folio */ @JsonPropertyOrder({Folio.JSON_PROPERTY_CASH_ADVANCES, Folio.JSON_PROPERTY_NUMBER}) @@ -238,9 +238,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Folio - * @throws JsonProcessingException if the JSON string is invalid with respect to Folio + * @throws JacksonException if the JSON string is invalid with respect to Folio */ - public static Folio fromJson(String jsonString) throws JsonProcessingException { + public static Folio fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Folio.class); } @@ -249,7 +249,7 @@ public static Folio fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ForexQuote.java b/src/main/java/com/adyen/model/checkout/ForexQuote.java index 17b25942d..57c1c0f3d 100644 --- a/src/main/java/com/adyen/model/checkout/ForexQuote.java +++ b/src/main/java/com/adyen/model/checkout/ForexQuote.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** ForexQuote */ @JsonPropertyOrder({ @@ -713,9 +713,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ForexQuote - * @throws JsonProcessingException if the JSON string is invalid with respect to ForexQuote + * @throws JacksonException if the JSON string is invalid with respect to ForexQuote */ - public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { + public static ForexQuote fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } @@ -724,7 +724,7 @@ public static ForexQuote fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java index f9e92cb1f..4ec88f64b 100644 --- a/src/main/java/com/adyen/model/checkout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudCheckResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FraudCheckResult */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResult + * @throws JacksonException if the JSON string is invalid with respect to FraudCheckResult */ - public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } @@ -267,7 +267,7 @@ public static FraudCheckResult fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/FraudResult.java b/src/main/java/com/adyen/model/checkout/FraudResult.java index 0fdc79501..12f38cdcb 100644 --- a/src/main/java/com/adyen/model/checkout/FraudResult.java +++ b/src/main/java/com/adyen/model/checkout/FraudResult.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** FraudResult */ @JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudResult + * @throws JacksonException if the JSON string is invalid with respect to FraudResult */ - public static FraudResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } @@ -226,7 +226,7 @@ public static FraudResult fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/FundOrigin.java b/src/main/java/com/adyen/model/checkout/FundOrigin.java index 7bff9788b..1869c1d95 100644 --- a/src/main/java/com/adyen/model/checkout/FundOrigin.java +++ b/src/main/java/com/adyen/model/checkout/FundOrigin.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FundOrigin */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundOrigin - * @throws JsonProcessingException if the JSON string is invalid with respect to FundOrigin + * @throws JacksonException if the JSON string is invalid with respect to FundOrigin */ - public static FundOrigin fromJson(String jsonString) throws JsonProcessingException { + public static FundOrigin fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundOrigin.class); } @@ -373,7 +373,7 @@ public static FundOrigin fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/FundRecipient.java b/src/main/java/com/adyen/model/checkout/FundRecipient.java index 84184d8a8..1b7d3f21a 100644 --- a/src/main/java/com/adyen/model/checkout/FundRecipient.java +++ b/src/main/java/com/adyen/model/checkout/FundRecipient.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** FundRecipient */ @JsonPropertyOrder({ @@ -795,9 +795,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundRecipient - * @throws JsonProcessingException if the JSON string is invalid with respect to FundRecipient + * @throws JacksonException if the JSON string is invalid with respect to FundRecipient */ - public static FundRecipient fromJson(String jsonString) throws JsonProcessingException { + public static FundRecipient fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundRecipient.class); } @@ -806,7 +806,7 @@ public static FundRecipient fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java index 34b96c19c..90443197d 100644 --- a/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/GenericIssuerPaymentMethodDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GenericIssuerPaymentMethodDetails */ @JsonPropertyOrder({ @@ -504,11 +504,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenericIssuerPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GenericIssuerPaymentMethodDetails */ public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GenericIssuerPaymentMethodDetails.class); } @@ -517,7 +517,7 @@ public static GenericIssuerPaymentMethodDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java index 6c328a9ec..265939ff8 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GooglePayDetails */ @JsonPropertyOrder({ @@ -704,9 +704,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GooglePayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to GooglePayDetails + * @throws JacksonException if the JSON string is invalid with respect to GooglePayDetails */ - public static GooglePayDetails fromJson(String jsonString) throws JsonProcessingException { + public static GooglePayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GooglePayDetails.class); } @@ -715,7 +715,7 @@ public static GooglePayDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java index e37e98f16..72bd4102a 100644 --- a/src/main/java/com/adyen/model/checkout/GooglePayDonations.java +++ b/src/main/java/com/adyen/model/checkout/GooglePayDonations.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GooglePayDonations */ @JsonPropertyOrder({ @@ -705,10 +705,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GooglePayDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GooglePayDonations + * @throws JacksonException if the JSON string is invalid with respect to GooglePayDonations */ - public static GooglePayDonations fromJson(String jsonString) throws JsonProcessingException { + public static GooglePayDonations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GooglePayDonations.class); } @@ -717,7 +716,7 @@ public static GooglePayDonations fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Healthcare.java b/src/main/java/com/adyen/model/checkout/Healthcare.java index d3f85a2d0..8a75aadd3 100644 --- a/src/main/java/com/adyen/model/checkout/Healthcare.java +++ b/src/main/java/com/adyen/model/checkout/Healthcare.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Healthcare */ @JsonPropertyOrder({ @@ -427,9 +427,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Healthcare - * @throws JsonProcessingException if the JSON string is invalid with respect to Healthcare + * @throws JacksonException if the JSON string is invalid with respect to Healthcare */ - public static Healthcare fromJson(String jsonString) throws JsonProcessingException { + public static Healthcare fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Healthcare.class); } @@ -438,7 +438,7 @@ public static Healthcare fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/IdealDetails.java b/src/main/java/com/adyen/model/checkout/IdealDetails.java index fc601f70a..726d1085f 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDetails.java +++ b/src/main/java/com/adyen/model/checkout/IdealDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IdealDetails */ @JsonPropertyOrder({ @@ -486,9 +486,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IdealDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to IdealDetails + * @throws JacksonException if the JSON string is invalid with respect to IdealDetails */ - public static IdealDetails fromJson(String jsonString) throws JsonProcessingException { + public static IdealDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IdealDetails.class); } @@ -497,7 +497,7 @@ public static IdealDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/IdealDonations.java b/src/main/java/com/adyen/model/checkout/IdealDonations.java index 199d38444..7745be353 100644 --- a/src/main/java/com/adyen/model/checkout/IdealDonations.java +++ b/src/main/java/com/adyen/model/checkout/IdealDonations.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IdealDonations */ @JsonPropertyOrder({ @@ -487,9 +487,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IdealDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to IdealDonations + * @throws JacksonException if the JSON string is invalid with respect to IdealDonations */ - public static IdealDonations fromJson(String jsonString) throws JsonProcessingException { + public static IdealDonations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IdealDonations.class); } @@ -498,7 +498,7 @@ public static IdealDonations fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/InputDetail.java b/src/main/java/com/adyen/model/checkout/InputDetail.java index 975365976..1348888c4 100644 --- a/src/main/java/com/adyen/model/checkout/InputDetail.java +++ b/src/main/java/com/adyen/model/checkout/InputDetail.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** InputDetail */ @JsonPropertyOrder({ @@ -605,9 +605,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to InputDetail + * @throws JacksonException if the JSON string is invalid with respect to InputDetail */ - public static InputDetail fromJson(String jsonString) throws JsonProcessingException { + public static InputDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputDetail.class); } @@ -616,7 +616,7 @@ public static InputDetail fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/InstallmentOption.java b/src/main/java/com/adyen/model/checkout/InstallmentOption.java index 34f5b4603..60e3f2b7a 100644 --- a/src/main/java/com/adyen/model/checkout/InstallmentOption.java +++ b/src/main/java/com/adyen/model/checkout/InstallmentOption.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InstallmentOption */ @JsonPropertyOrder({ @@ -403,9 +403,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InstallmentOption - * @throws JsonProcessingException if the JSON string is invalid with respect to InstallmentOption + * @throws JacksonException if the JSON string is invalid with respect to InstallmentOption */ - public static InstallmentOption fromJson(String jsonString) throws JsonProcessingException { + public static InstallmentOption fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InstallmentOption.class); } @@ -414,7 +414,7 @@ public static InstallmentOption fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Installments.java b/src/main/java/com/adyen/model/checkout/Installments.java index 683278f93..4ca3dfcf2 100644 --- a/src/main/java/com/adyen/model/checkout/Installments.java +++ b/src/main/java/com/adyen/model/checkout/Installments.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Installments */ @JsonPropertyOrder({ @@ -377,9 +377,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Installments - * @throws JsonProcessingException if the JSON string is invalid with respect to Installments + * @throws JacksonException if the JSON string is invalid with respect to Installments */ - public static Installments fromJson(String jsonString) throws JsonProcessingException { + public static Installments fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Installments.class); } @@ -388,7 +388,7 @@ public static Installments fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Item.java b/src/main/java/com/adyen/model/checkout/Item.java index e02dad0e4..768a38793 100644 --- a/src/main/java/com/adyen/model/checkout/Item.java +++ b/src/main/java/com/adyen/model/checkout/Item.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Item */ @JsonPropertyOrder({Item.JSON_PROPERTY_ID, Item.JSON_PROPERTY_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Item - * @throws JsonProcessingException if the JSON string is invalid with respect to Item + * @throws JacksonException if the JSON string is invalid with respect to Item */ - public static Item fromJson(String jsonString) throws JsonProcessingException { + public static Item fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Item.class); } @@ -216,7 +216,7 @@ public static Item fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ItemDetailLine.java b/src/main/java/com/adyen/model/checkout/ItemDetailLine.java index 4277367ab..5d2a54121 100644 --- a/src/main/java/com/adyen/model/checkout/ItemDetailLine.java +++ b/src/main/java/com/adyen/model/checkout/ItemDetailLine.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ItemDetailLine */ @JsonPropertyOrder({ @@ -692,9 +692,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ItemDetailLine - * @throws JsonProcessingException if the JSON string is invalid with respect to ItemDetailLine + * @throws JacksonException if the JSON string is invalid with respect to ItemDetailLine */ - public static ItemDetailLine fromJson(String jsonString) throws JsonProcessingException { + public static ItemDetailLine fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ItemDetailLine.class); } @@ -703,7 +703,7 @@ public static ItemDetailLine fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/JSON.java b/src/main/java/com/adyen/model/checkout/JSON.java index 80cec4f24..fbefdabed 100644 --- a/src/main/java/com/adyen/model/checkout/JSON.java +++ b/src/main/java/com/adyen/model/checkout/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java index beedcec6c..2f2cac4f0 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** KlarnaDetails */ @JsonPropertyOrder({ @@ -695,9 +695,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of KlarnaDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to KlarnaDetails + * @throws JacksonException if the JSON string is invalid with respect to KlarnaDetails */ - public static KlarnaDetails fromJson(String jsonString) throws JsonProcessingException { + public static KlarnaDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KlarnaDetails.class); } @@ -706,7 +706,7 @@ public static KlarnaDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java b/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java index ae88bf134..983b5e30d 100644 --- a/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java +++ b/src/main/java/com/adyen/model/checkout/KlarnaNetworkDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** KlarnaNetworkDetails */ @JsonPropertyOrder({ @@ -547,10 +547,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of KlarnaNetworkDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KlarnaNetworkDetails + * @throws JacksonException if the JSON string is invalid with respect to KlarnaNetworkDetails */ - public static KlarnaNetworkDetails fromJson(String jsonString) throws JsonProcessingException { + public static KlarnaNetworkDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KlarnaNetworkDetails.class); } @@ -559,7 +558,7 @@ public static KlarnaNetworkDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Leg.java b/src/main/java/com/adyen/model/checkout/Leg.java index b0d5ddad3..572563398 100644 --- a/src/main/java/com/adyen/model/checkout/Leg.java +++ b/src/main/java/com/adyen/model/checkout/Leg.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Leg */ @JsonPropertyOrder({ @@ -738,9 +738,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Leg - * @throws JsonProcessingException if the JSON string is invalid with respect to Leg + * @throws JacksonException if the JSON string is invalid with respect to Leg */ - public static Leg fromJson(String jsonString) throws JsonProcessingException { + public static Leg fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Leg.class); } @@ -749,7 +749,7 @@ public static Leg fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/LevelTwoThree.java b/src/main/java/com/adyen/model/checkout/LevelTwoThree.java index 05a016b86..cacb7d7b6 100644 --- a/src/main/java/com/adyen/model/checkout/LevelTwoThree.java +++ b/src/main/java/com/adyen/model/checkout/LevelTwoThree.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** LevelTwoThree */ @JsonPropertyOrder({ @@ -640,9 +640,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LevelTwoThree - * @throws JsonProcessingException if the JSON string is invalid with respect to LevelTwoThree + * @throws JacksonException if the JSON string is invalid with respect to LevelTwoThree */ - public static LevelTwoThree fromJson(String jsonString) throws JsonProcessingException { + public static LevelTwoThree fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LevelTwoThree.class); } @@ -651,7 +651,7 @@ public static LevelTwoThree fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/LineItem.java b/src/main/java/com/adyen/model/checkout/LineItem.java index f9ba85b3a..5e51689db 100644 --- a/src/main/java/com/adyen/model/checkout/LineItem.java +++ b/src/main/java/com/adyen/model/checkout/LineItem.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LineItem */ @JsonPropertyOrder({ @@ -1401,9 +1401,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LineItem - * @throws JsonProcessingException if the JSON string is invalid with respect to LineItem + * @throws JacksonException if the JSON string is invalid with respect to LineItem */ - public static LineItem fromJson(String jsonString) throws JsonProcessingException { + public static LineItem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LineItem.class); } @@ -1412,7 +1412,7 @@ public static LineItem fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java index f30b432b7..3ca383907 100644 --- a/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/ListStoredPaymentMethodsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListStoredPaymentMethodsResponse */ @JsonPropertyOrder({ @@ -297,11 +297,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListStoredPaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListStoredPaymentMethodsResponse */ public static ListStoredPaymentMethodsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ListStoredPaymentMethodsResponse.class); } @@ -310,7 +310,7 @@ public static ListStoredPaymentMethodsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Lodging.java b/src/main/java/com/adyen/model/checkout/Lodging.java index 4d464ee85..483c155da 100644 --- a/src/main/java/com/adyen/model/checkout/Lodging.java +++ b/src/main/java/com/adyen/model/checkout/Lodging.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Lodging */ @JsonPropertyOrder({ @@ -1046,9 +1046,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Lodging - * @throws JsonProcessingException if the JSON string is invalid with respect to Lodging + * @throws JacksonException if the JSON string is invalid with respect to Lodging */ - public static Lodging fromJson(String jsonString) throws JsonProcessingException { + public static Lodging fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Lodging.class); } @@ -1057,7 +1057,7 @@ public static Lodging fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Mandate.java b/src/main/java/com/adyen/model/checkout/Mandate.java index a904e7a78..286ad7a51 100644 --- a/src/main/java/com/adyen/model/checkout/Mandate.java +++ b/src/main/java/com/adyen/model/checkout/Mandate.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Mandate */ @JsonPropertyOrder({ @@ -767,9 +767,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Mandate - * @throws JsonProcessingException if the JSON string is invalid with respect to Mandate + * @throws JacksonException if the JSON string is invalid with respect to Mandate */ - public static Mandate fromJson(String jsonString) throws JsonProcessingException { + public static Mandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Mandate.class); } @@ -778,7 +778,7 @@ public static Mandate fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java index f26162db7..127868d31 100644 --- a/src/main/java/com/adyen/model/checkout/MasterpassDetails.java +++ b/src/main/java/com/adyen/model/checkout/MasterpassDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MasterpassDetails */ @JsonPropertyOrder({ @@ -464,9 +464,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MasterpassDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to MasterpassDetails + * @throws JacksonException if the JSON string is invalid with respect to MasterpassDetails */ - public static MasterpassDetails fromJson(String jsonString) throws JsonProcessingException { + public static MasterpassDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MasterpassDetails.class); } @@ -475,7 +475,7 @@ public static MasterpassDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MbwayDetails.java b/src/main/java/com/adyen/model/checkout/MbwayDetails.java index 6535d4d62..80f335761 100644 --- a/src/main/java/com/adyen/model/checkout/MbwayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MbwayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MbwayDetails */ @JsonPropertyOrder({ @@ -394,9 +394,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MbwayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to MbwayDetails + * @throws JacksonException if the JSON string is invalid with respect to MbwayDetails */ - public static MbwayDetails fromJson(String jsonString) throws JsonProcessingException { + public static MbwayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MbwayDetails.class); } @@ -405,7 +405,7 @@ public static MbwayDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MerchantDevice.java b/src/main/java/com/adyen/model/checkout/MerchantDevice.java index f14518df7..58bb7ca12 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantDevice.java +++ b/src/main/java/com/adyen/model/checkout/MerchantDevice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantDevice */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantDevice + * @throws JacksonException if the JSON string is invalid with respect to MerchantDevice */ - public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { + public static MerchantDevice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } @@ -267,7 +267,7 @@ public static MerchantDevice fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java index 30b725b67..228480321 100644 --- a/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/checkout/MerchantRiskIndicator.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantRiskIndicator */ @JsonPropertyOrder({ @@ -1009,10 +1009,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantRiskIndicator + * @throws JacksonException if the JSON string is invalid with respect to MerchantRiskIndicator */ - public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { + public static MerchantRiskIndicator fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } @@ -1021,7 +1020,7 @@ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java index df982b847..2a4c43ad9 100644 --- a/src/main/java/com/adyen/model/checkout/MobilePayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MobilePayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MobilePayDetails */ @JsonPropertyOrder({ @@ -301,9 +301,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MobilePayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to MobilePayDetails + * @throws JacksonException if the JSON string is invalid with respect to MobilePayDetails */ - public static MobilePayDetails fromJson(String jsonString) throws JsonProcessingException { + public static MobilePayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MobilePayDetails.class); } @@ -312,7 +312,7 @@ public static MobilePayDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/MolPayDetails.java b/src/main/java/com/adyen/model/checkout/MolPayDetails.java index c1c559730..e4a4e09eb 100644 --- a/src/main/java/com/adyen/model/checkout/MolPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/MolPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MolPayDetails */ @JsonPropertyOrder({ @@ -361,9 +361,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MolPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to MolPayDetails + * @throws JacksonException if the JSON string is invalid with respect to MolPayDetails */ - public static MolPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static MolPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MolPayDetails.class); } @@ -372,7 +372,7 @@ public static MolPayDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Name.java b/src/main/java/com/adyen/model/checkout/Name.java index 2e8867423..d35414cae 100644 --- a/src/main/java/com/adyen/model/checkout/Name.java +++ b/src/main/java/com/adyen/model/checkout/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java index 2834e4f7f..990e508c8 100644 --- a/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java +++ b/src/main/java/com/adyen/model/checkout/OpenInvoiceDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** OpenInvoiceDetails */ @JsonPropertyOrder({ @@ -586,10 +586,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OpenInvoiceDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OpenInvoiceDetails + * @throws JacksonException if the JSON string is invalid with respect to OpenInvoiceDetails */ - public static OpenInvoiceDetails fromJson(String jsonString) throws JsonProcessingException { + public static OpenInvoiceDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OpenInvoiceDetails.class); } @@ -598,7 +597,7 @@ public static OpenInvoiceDetails fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Passenger.java b/src/main/java/com/adyen/model/checkout/Passenger.java index c7a9cbc97..31567c7b5 100644 --- a/src/main/java/com/adyen/model/checkout/Passenger.java +++ b/src/main/java/com/adyen/model/checkout/Passenger.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** Passenger */ @JsonPropertyOrder({ @@ -423,9 +423,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Passenger - * @throws JsonProcessingException if the JSON string is invalid with respect to Passenger + * @throws JacksonException if the JSON string is invalid with respect to Passenger */ - public static Passenger fromJson(String jsonString) throws JsonProcessingException { + public static Passenger fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Passenger.class); } @@ -434,7 +434,7 @@ public static Passenger fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java index 8e8335c36..81bde441a 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankAISDirectDebitDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayByBankAISDirectDebitDetails */ @JsonPropertyOrder({ @@ -442,11 +442,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayByBankAISDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayByBankAISDirectDebitDetails */ - public static PayByBankAISDirectDebitDetails fromJson(String jsonString) - throws JsonProcessingException { + public static PayByBankAISDirectDebitDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayByBankAISDirectDebitDetails.class); } @@ -455,7 +454,7 @@ public static PayByBankAISDirectDebitDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java index fce829161..e2a5872d7 100644 --- a/src/main/java/com/adyen/model/checkout/PayByBankDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayByBankDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayByBankDetails */ @JsonPropertyOrder({ @@ -356,9 +356,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayByBankDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayByBankDetails + * @throws JacksonException if the JSON string is invalid with respect to PayByBankDetails */ - public static PayByBankDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayByBankDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayByBankDetails.class); } @@ -367,7 +367,7 @@ public static PayByBankDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayPalDetails.java b/src/main/java/com/adyen/model/checkout/PayPalDetails.java index 7f585e265..bd0910405 100644 --- a/src/main/java/com/adyen/model/checkout/PayPalDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPalDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayPalDetails */ @JsonPropertyOrder({ @@ -723,9 +723,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayPalDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayPalDetails + * @throws JacksonException if the JSON string is invalid with respect to PayPalDetails */ - public static PayPalDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayPalDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayPalDetails.class); } @@ -734,7 +734,7 @@ public static PayPalDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayPayDetails.java b/src/main/java/com/adyen/model/checkout/PayPayDetails.java index e9a2d131e..00cfcf6a3 100644 --- a/src/main/java/com/adyen/model/checkout/PayPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayPayDetails */ @JsonPropertyOrder({ @@ -430,9 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayPayDetails + * @throws JacksonException if the JSON string is invalid with respect to PayPayDetails */ - public static PayPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayPayDetails.class); } @@ -441,7 +441,7 @@ public static PayPayDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayToDetails.java b/src/main/java/com/adyen/model/checkout/PayToDetails.java index a21513fd0..59f9238fa 100644 --- a/src/main/java/com/adyen/model/checkout/PayToDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayToDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayToDetails */ @JsonPropertyOrder({ @@ -486,9 +486,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayToDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayToDetails + * @throws JacksonException if the JSON string is invalid with respect to PayToDetails */ - public static PayToDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayToDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayToDetails.class); } @@ -497,7 +497,7 @@ public static PayToDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java index 6c63f5fb8..bda304f51 100644 --- a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayToPaymentMethod */ @JsonPropertyOrder({PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE}) @@ -180,10 +180,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayToPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayToPaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to PayToPaymentMethod */ - public static PayToPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static PayToPaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayToPaymentMethod.class); } @@ -192,7 +191,7 @@ public static PayToPaymentMethod fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java index 5410ce5d9..5d48be00b 100644 --- a/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayUUpiDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayUUpiDetails */ @JsonPropertyOrder({ @@ -547,9 +547,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayUUpiDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PayUUpiDetails + * @throws JacksonException if the JSON string is invalid with respect to PayUUpiDetails */ - public static PayUUpiDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayUUpiDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayUUpiDetails.class); } @@ -558,7 +558,7 @@ public static PayUUpiDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java index b4e38e034..e21ae89cf 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayWithGoogleDetails */ @JsonPropertyOrder({ @@ -653,10 +653,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayWithGoogleDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayWithGoogleDetails + * @throws JacksonException if the JSON string is invalid with respect to PayWithGoogleDetails */ - public static PayWithGoogleDetails fromJson(String jsonString) throws JsonProcessingException { + public static PayWithGoogleDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDetails.class); } @@ -665,7 +664,7 @@ public static PayWithGoogleDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java index f969bf7b8..7a0a3ec1c 100644 --- a/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java +++ b/src/main/java/com/adyen/model/checkout/PayWithGoogleDonations.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayWithGoogleDonations */ @JsonPropertyOrder({ @@ -655,10 +655,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayWithGoogleDonations - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayWithGoogleDonations + * @throws JacksonException if the JSON string is invalid with respect to PayWithGoogleDonations */ - public static PayWithGoogleDonations fromJson(String jsonString) throws JsonProcessingException { + public static PayWithGoogleDonations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayWithGoogleDonations.class); } @@ -667,7 +666,7 @@ public static PayWithGoogleDonations fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Payment.java b/src/main/java/com/adyen/model/checkout/Payment.java index e1782d617..b0dc14435 100644 --- a/src/main/java/com/adyen/model/checkout/Payment.java +++ b/src/main/java/com/adyen/model/checkout/Payment.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Payment */ @JsonPropertyOrder({ @@ -419,9 +419,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Payment - * @throws JsonProcessingException if the JSON string is invalid with respect to Payment + * @throws JacksonException if the JSON string is invalid with respect to Payment */ - public static Payment fromJson(String jsonString) throws JsonProcessingException { + public static Payment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Payment.class); } @@ -430,7 +430,7 @@ public static Payment fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java index 4033a02f3..527b74a97 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentAmountUpdateRequest */ @JsonPropertyOrder({ @@ -791,11 +791,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentAmountUpdateRequest */ - public static PaymentAmountUpdateRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentAmountUpdateRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateRequest.class); } @@ -804,7 +803,7 @@ public static PaymentAmountUpdateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java index f23503aa9..123e17964 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentAmountUpdateResponse */ @JsonPropertyOrder({ @@ -811,11 +811,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentAmountUpdateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentAmountUpdateResponse */ - public static PaymentAmountUpdateResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentAmountUpdateResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentAmountUpdateResponse.class); } @@ -824,7 +823,7 @@ public static PaymentAmountUpdateResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java index 959630bbf..ff9350752 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentCancelRequest */ @JsonPropertyOrder({ @@ -262,10 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCancelRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentCancelRequest */ - public static PaymentCancelRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentCancelRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentCancelRequest.class); } @@ -274,7 +273,7 @@ public static PaymentCancelRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java index 7d2748bb5..13ee2acb5 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentCancelResponse */ @JsonPropertyOrder({ @@ -420,10 +420,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCancelResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentCancelResponse */ - public static PaymentCancelResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentCancelResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentCancelResponse.class); } @@ -432,7 +431,7 @@ public static PaymentCancelResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java index 8a14a50c9..b46edd6b6 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaymentCaptureRequest */ @JsonPropertyOrder({ @@ -630,10 +630,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentCaptureRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCaptureRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentCaptureRequest */ - public static PaymentCaptureRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentCaptureRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentCaptureRequest.class); } @@ -642,7 +641,7 @@ public static PaymentCaptureRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java index 74e257f8d..5af6594db 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentCaptureResponse */ @JsonPropertyOrder({ @@ -737,10 +737,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentCaptureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCaptureResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentCaptureResponse */ - public static PaymentCaptureResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentCaptureResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentCaptureResponse.class); } @@ -749,7 +748,7 @@ public static PaymentCaptureResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java index b2da52895..d331ba298 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentCompletionDetails */ @JsonPropertyOrder({ @@ -1167,11 +1167,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentCompletionDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentCompletionDetails + * @throws JacksonException if the JSON string is invalid with respect to PaymentCompletionDetails */ - public static PaymentCompletionDetails fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentCompletionDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentCompletionDetails.class); } @@ -1180,7 +1178,7 @@ public static PaymentCompletionDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index 6ade94348..29c196af6 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentDetails */ @JsonPropertyOrder({ @@ -471,9 +471,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentDetails + * @throws JacksonException if the JSON string is invalid with respect to PaymentDetails */ - public static PaymentDetails fromJson(String jsonString) throws JsonProcessingException { + public static PaymentDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentDetails.class); } @@ -482,7 +482,7 @@ public static PaymentDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java index 325233766..6c41e001f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentDetailsRequest */ @JsonPropertyOrder({ @@ -369,10 +369,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentDetailsRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentDetailsRequest */ - public static PaymentDetailsRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentDetailsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentDetailsRequest.class); } @@ -381,7 +380,7 @@ public static PaymentDetailsRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java index 4e9de5bb6..5607965e7 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentDetailsResponse */ @JsonPropertyOrder({ @@ -1292,10 +1292,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentDetailsResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentDetailsResponse */ - public static PaymentDetailsResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentDetailsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentDetailsResponse.class); } @@ -1304,7 +1303,7 @@ public static PaymentDetailsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java index 9df3c85f7..a8f92167a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetailsResponseAction.java @@ -11,19 +11,6 @@ package com.adyen.model.checkout; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = PaymentDetailsResponseAction.PaymentDetailsResponseActionDeserializer.class) @@ -51,9 +50,9 @@ public PaymentDetailsResponseActionSerializer() { @Override public void serialize( - PaymentDetailsResponseAction value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + PaymentDetailsResponseAction value, JsonGenerator jgen, SerializationContext provider) + throws JacksonException { + provider.writeValue(jgen, value.getActualInstance()); } } @@ -69,12 +68,11 @@ public PaymentDetailsResponseActionDeserializer(Class vc) { @Override public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize CheckoutThreeDS2Action try { boolean attemptParsing = true; @@ -88,7 +86,7 @@ public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutThreeDS2Action.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -106,7 +104,8 @@ public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationCo ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for PaymentDetailsResponseAction: %d classes match result, expected 1", match)); @@ -115,9 +114,8 @@ public PaymentDetailsResponseAction deserialize(JsonParser jp, DeserializationCo /** Handle deserialization of the 'null' value. */ @Override public PaymentDetailsResponseAction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "PaymentDetailsResponseAction cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "PaymentDetailsResponseAction cannot be null"); } } @@ -204,7 +202,7 @@ public static PaymentDetailsResponseAction fromJson(String jsonString) throws IO * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java index 2e278678d..6ae925b04 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentLinkRequest */ @JsonPropertyOrder({ @@ -2906,10 +2906,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentLinkRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentLinkRequest */ - public static PaymentLinkRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentLinkRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentLinkRequest.class); } @@ -2918,7 +2917,7 @@ public static PaymentLinkRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java index 7aeb8ae51..9e7af33a9 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentLinkResponse */ @JsonPropertyOrder({ @@ -3155,10 +3155,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentLinkResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentLinkResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentLinkResponse */ - public static PaymentLinkResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentLinkResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentLinkResponse.class); } @@ -3167,7 +3166,7 @@ public static PaymentLinkResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethod.java b/src/main/java/com/adyen/model/checkout/PaymentMethod.java index 96fa05e9a..bbe91ea73 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethod.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethod */ @JsonPropertyOrder({ @@ -763,9 +763,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethod */ - public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } @@ -774,7 +774,7 @@ public static PaymentMethod fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java index 43467f954..67d49677f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodGroup.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentMethodGroup */ @JsonPropertyOrder({ @@ -260,10 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodGroup - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodGroup + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodGroup */ - public static PaymentMethodGroup fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodGroup fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodGroup.class); } @@ -272,7 +271,7 @@ public static PaymentMethodGroup fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java index 48d811ee0..cee7c53c8 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodIssuer.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentMethodIssuer */ @JsonPropertyOrder({ @@ -262,10 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodIssuer - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodIssuer + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodIssuer */ - public static PaymentMethodIssuer fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodIssuer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodIssuer.class); } @@ -274,7 +273,7 @@ public static PaymentMethodIssuer fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java index 6187e7ffa..db21fd8cd 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentMethodToStore */ @JsonPropertyOrder({ @@ -748,10 +748,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodToStore - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodToStore + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodToStore */ - public static PaymentMethodToStore fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodToStore fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodToStore.class); } @@ -760,7 +759,7 @@ public static PaymentMethodToStore fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java index af153177f..b828c7c54 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentMethodUPIApps */ @JsonPropertyOrder({ @@ -256,10 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodUPIApps - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodUPIApps + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodUPIApps */ - public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodUPIApps fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodUPIApps.class); } @@ -268,7 +267,7 @@ public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java index 7301a968b..91be792ca 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodsRequest */ @JsonPropertyOrder({ @@ -1410,10 +1410,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodsRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodsRequest */ - public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodsRequest.class); } @@ -1422,7 +1421,7 @@ public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java index dbbeb4b59..3a4a12b14 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaymentMethodsResponse */ @JsonPropertyOrder({ @@ -232,10 +232,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodsResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodsResponse */ - public static PaymentMethodsResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodsResponse.class); } @@ -244,7 +243,7 @@ public static PaymentMethodsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java index d3d11df86..8c742c907 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRefundRequest */ @JsonPropertyOrder({ @@ -763,10 +763,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRefundRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentRefundRequest */ - public static PaymentRefundRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRefundRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRefundRequest.class); } @@ -775,7 +774,7 @@ public static PaymentRefundRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java index 976e1abf9..1ab2cf411 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRefundResponse */ @JsonPropertyOrder({ @@ -857,10 +857,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRefundResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRefundResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentRefundResponse */ - public static PaymentRefundResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRefundResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRefundResponse.class); } @@ -869,7 +868,7 @@ public static PaymentRefundResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 0d59de3a5..c0755c9db 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; @@ -27,6 +26,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRequest */ @JsonPropertyOrder({ @@ -4954,9 +4954,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentRequest */ - public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } @@ -4965,7 +4965,7 @@ public static PaymentRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponse.java b/src/main/java/com/adyen/model/checkout/PaymentResponse.java index a8a00ed15..21abb4a1a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentResponse */ @JsonPropertyOrder({ @@ -1267,9 +1267,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentResponse */ - public static PaymentResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentResponse.class); } @@ -1278,7 +1278,7 @@ public static PaymentResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java index 375f6d2b7..874808505 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java +++ b/src/main/java/com/adyen/model/checkout/PaymentResponseAction.java @@ -11,19 +11,6 @@ package com.adyen.model.checkout; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -34,6 +21,18 @@ import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = PaymentResponseAction.PaymentResponseActionDeserializer.class) @JsonSerialize(using = PaymentResponseAction.PaymentResponseActionSerializer.class) @@ -51,9 +50,9 @@ public PaymentResponseActionSerializer() { @Override public void serialize( - PaymentResponseAction value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + PaymentResponseAction value, JsonGenerator jgen, SerializationContext provider) + throws JacksonException { + provider.writeValue(jgen, value.getActualInstance()); } } @@ -69,12 +68,11 @@ public PaymentResponseActionDeserializer(Class vc) { @Override public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize CheckoutAwaitAction try { boolean attemptParsing = true; @@ -88,7 +86,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutAwaitAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutAwaitAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -114,8 +112,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CheckoutBankTransferAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutBankTransferAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -141,9 +138,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()) - .readValueAs(CheckoutDelegatedAuthenticationAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutDelegatedAuthenticationAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -173,8 +168,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CheckoutNativeRedirectAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutNativeRedirectAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -200,7 +194,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutQrCodeAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutQrCodeAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -226,7 +220,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutRedirectAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutRedirectAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -252,7 +246,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutSDKAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutSDKAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -278,7 +272,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutThreeDS2Action.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutThreeDS2Action.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -304,7 +298,7 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(CheckoutVoucherAction.class); + deserialized = ctxt.readTreeAsValue(tree, CheckoutVoucherAction.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -322,7 +316,8 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for PaymentResponseAction: %d classes match result, expected 1", match)); @@ -331,8 +326,8 @@ public PaymentResponseAction deserialize(JsonParser jp, DeserializationContext c /** Handle deserialization of the 'null' value. */ @Override public PaymentResponseAction getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "PaymentResponseAction cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "PaymentResponseAction cannot be null"); } } @@ -623,7 +618,7 @@ public static PaymentResponseAction fromJson(String jsonString) throws IOExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java index 3a1c17f19..b8c9e109a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentReversalRequest */ @JsonPropertyOrder({ @@ -262,10 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentReversalRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentReversalRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentReversalRequest */ - public static PaymentReversalRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentReversalRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentReversalRequest.class); } @@ -274,7 +273,7 @@ public static PaymentReversalRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java index a2bbe515c..518aef313 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentReversalResponse */ @JsonPropertyOrder({ @@ -420,10 +420,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentReversalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentReversalResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentReversalResponse */ - public static PaymentReversalResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentReversalResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentReversalResponse.class); } @@ -432,7 +431,7 @@ public static PaymentReversalResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidations.java b/src/main/java/com/adyen/model/checkout/PaymentValidations.java index 98a975726..c7293dd95 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidations.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidations.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentValidations */ @JsonPropertyOrder({PaymentValidations.JSON_PROPERTY_NAME}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidations - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentValidations + * @throws JacksonException if the JSON string is invalid with respect to PaymentValidations */ - public static PaymentValidations fromJson(String jsonString) throws JsonProcessingException { + public static PaymentValidations fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidations.class); } @@ -170,7 +169,7 @@ public static PaymentValidations fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameRequest.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameRequest.java index bd430ee77..8b500c5b9 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentValidationsNameRequest */ @JsonPropertyOrder({PaymentValidationsNameRequest.JSON_PROPERTY_STATUS}) @@ -177,11 +177,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidationsNameRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentValidationsNameRequest */ - public static PaymentValidationsNameRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentValidationsNameRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidationsNameRequest.class); } @@ -190,7 +189,7 @@ public static PaymentValidationsNameRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java index b7b1eb6d9..9b3e207d4 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentValidationsNameResponse */ @JsonPropertyOrder({ @@ -317,11 +317,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidationsNameResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentValidationsNameResponse */ - public static PaymentValidationsNameResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentValidationsNameResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResponse.class); } @@ -330,7 +329,7 @@ public static PaymentValidationsNameResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java index ccdbff33b..e6733b1cc 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultRawResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentValidationsNameResultRawResponse */ @JsonPropertyOrder({ @@ -400,11 +400,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidationsNameResultRawResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentValidationsNameResultRawResponse */ public static PaymentValidationsNameResultRawResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResultRawResponse.class); } @@ -413,7 +413,7 @@ public static PaymentValidationsNameResultRawResponse fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java index f9d223747..e71963a3f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsNameResultResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentValidationsNameResultResponse */ @JsonPropertyOrder({ @@ -366,11 +366,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidationsNameResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentValidationsNameResultResponse */ public static PaymentValidationsNameResultResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidationsNameResultResponse.class); } @@ -379,7 +379,7 @@ public static PaymentValidationsNameResultResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java b/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java index 53e66d79a..2de7bd3d9 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentValidationsResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentValidationsResponse */ @JsonPropertyOrder({PaymentValidationsResponse.JSON_PROPERTY_NAME}) @@ -158,11 +158,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentValidationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentValidationsResponse */ - public static PaymentValidationsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentValidationsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentValidationsResponse.class); } @@ -171,7 +170,7 @@ public static PaymentValidationsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java index bb7f86fd7..198f74b93 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaypalUpdateOrderRequest */ @JsonPropertyOrder({ @@ -581,11 +581,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaypalUpdateOrderRequest + * @throws JacksonException if the JSON string is invalid with respect to PaypalUpdateOrderRequest */ - public static PaypalUpdateOrderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaypalUpdateOrderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderRequest.class); } @@ -594,7 +592,7 @@ public static PaypalUpdateOrderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java index 761c57f2d..78c880931 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaypalUpdateOrderResponse */ @JsonPropertyOrder({ @@ -262,11 +262,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaypalUpdateOrderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaypalUpdateOrderResponse */ - public static PaypalUpdateOrderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PaypalUpdateOrderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaypalUpdateOrderResponse.class); } @@ -275,7 +274,7 @@ public static PaypalUpdateOrderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Phone.java b/src/main/java/com/adyen/model/checkout/Phone.java index ad82b7167..9dd3105df 100644 --- a/src/main/java/com/adyen/model/checkout/Phone.java +++ b/src/main/java/com/adyen/model/checkout/Phone.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Phone */ @JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Phone - * @throws JsonProcessingException if the JSON string is invalid with respect to Phone + * @throws JacksonException if the JSON string is invalid with respect to Phone */ - public static Phone fromJson(String jsonString) throws JsonProcessingException { + public static Phone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Phone.class); } @@ -216,7 +216,7 @@ public static Phone fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PickupInfo.java b/src/main/java/com/adyen/model/checkout/PickupInfo.java index 21903c82c..077c4b3d6 100644 --- a/src/main/java/com/adyen/model/checkout/PickupInfo.java +++ b/src/main/java/com/adyen/model/checkout/PickupInfo.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** PickupInfo */ @JsonPropertyOrder({ @@ -358,9 +358,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PickupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PickupInfo + * @throws JacksonException if the JSON string is invalid with respect to PickupInfo */ - public static PickupInfo fromJson(String jsonString) throws JsonProcessingException { + public static PickupInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PickupInfo.class); } @@ -369,7 +369,7 @@ public static PickupInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PixDetails.java b/src/main/java/com/adyen/model/checkout/PixDetails.java index 35a2e6595..d48a99a6b 100644 --- a/src/main/java/com/adyen/model/checkout/PixDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PixDetails */ @JsonPropertyOrder({ @@ -480,9 +480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PixDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PixDetails + * @throws JacksonException if the JSON string is invalid with respect to PixDetails */ - public static PixDetails fromJson(String jsonString) throws JsonProcessingException { + public static PixDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PixDetails.class); } @@ -491,7 +491,7 @@ public static PixDetails fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java b/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java index 22bc901ef..e9081c45d 100644 --- a/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java +++ b/src/main/java/com/adyen/model/checkout/PixPayByBankDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PixPayByBankDetails */ @JsonPropertyOrder({ @@ -582,10 +582,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PixPayByBankDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PixPayByBankDetails + * @throws JacksonException if the JSON string is invalid with respect to PixPayByBankDetails */ - public static PixPayByBankDetails fromJson(String jsonString) throws JsonProcessingException { + public static PixPayByBankDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PixPayByBankDetails.class); } @@ -594,7 +593,7 @@ public static PixPayByBankDetails fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java b/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java index 4bb46a931..d128e6dc5 100644 --- a/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java +++ b/src/main/java/com/adyen/model/checkout/PixPayByBankRiskSignals.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PixPayByBankRiskSignals */ @JsonPropertyOrder({ @@ -516,10 +516,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PixPayByBankRiskSignals - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PixPayByBankRiskSignals + * @throws JacksonException if the JSON string is invalid with respect to PixPayByBankRiskSignals */ - public static PixPayByBankRiskSignals fromJson(String jsonString) throws JsonProcessingException { + public static PixPayByBankRiskSignals fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PixPayByBankRiskSignals.class); } @@ -528,7 +527,7 @@ public static PixPayByBankRiskSignals fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PixRecurring.java b/src/main/java/com/adyen/model/checkout/PixRecurring.java index 4462ed3a1..d6f966ea6 100644 --- a/src/main/java/com/adyen/model/checkout/PixRecurring.java +++ b/src/main/java/com/adyen/model/checkout/PixRecurring.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PixRecurring */ @JsonPropertyOrder({ @@ -708,9 +708,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PixRecurring - * @throws JsonProcessingException if the JSON string is invalid with respect to PixRecurring + * @throws JacksonException if the JSON string is invalid with respect to PixRecurring */ - public static PixRecurring fromJson(String jsonString) throws JsonProcessingException { + public static PixRecurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PixRecurring.class); } @@ -719,7 +719,7 @@ public static PixRecurring fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java index 0b730a7e1..6560e2604 100644 --- a/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/checkout/PlatformChargebackLogic.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PlatformChargebackLogic */ @JsonPropertyOrder({ @@ -339,10 +339,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformChargebackLogic + * @throws JacksonException if the JSON string is invalid with respect to PlatformChargebackLogic */ - public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { + public static PlatformChargebackLogic fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } @@ -351,7 +350,7 @@ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/PseDetails.java b/src/main/java/com/adyen/model/checkout/PseDetails.java index 1971ebd63..bed840814 100644 --- a/src/main/java/com/adyen/model/checkout/PseDetails.java +++ b/src/main/java/com/adyen/model/checkout/PseDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PseDetails */ @JsonPropertyOrder({ @@ -506,9 +506,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PseDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to PseDetails + * @throws JacksonException if the JSON string is invalid with respect to PseDetails */ - public static PseDetails fromJson(String jsonString) throws JsonProcessingException { + public static PseDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PseDetails.class); } @@ -517,7 +517,7 @@ public static PseDetails fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java index 0f139bf61..955c9f0d8 100644 --- a/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RakutenPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RakutenPayDetails */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RakutenPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to RakutenPayDetails + * @throws JacksonException if the JSON string is invalid with respect to RakutenPayDetails */ - public static RakutenPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static RakutenPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RakutenPayDetails.class); } @@ -442,7 +442,7 @@ public static RakutenPayDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/RatepayDetails.java b/src/main/java/com/adyen/model/checkout/RatepayDetails.java index e4b341043..6e243a368 100644 --- a/src/main/java/com/adyen/model/checkout/RatepayDetails.java +++ b/src/main/java/com/adyen/model/checkout/RatepayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RatepayDetails */ @JsonPropertyOrder({ @@ -583,9 +583,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RatepayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to RatepayDetails + * @throws JacksonException if the JSON string is invalid with respect to RatepayDetails */ - public static RatepayDetails fromJson(String jsonString) throws JsonProcessingException { + public static RatepayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RatepayDetails.class); } @@ -594,7 +594,7 @@ public static RatepayDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Recurring.java b/src/main/java/com/adyen/model/checkout/Recurring.java index 21fa2e03c..7cfb7226b 100644 --- a/src/main/java/com/adyen/model/checkout/Recurring.java +++ b/src/main/java/com/adyen/model/checkout/Recurring.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Recurring */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Recurring - * @throws JsonProcessingException if the JSON string is invalid with respect to Recurring + * @throws JacksonException if the JSON string is invalid with respect to Recurring */ - public static Recurring fromJson(String jsonString) throws JsonProcessingException { + public static Recurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Recurring.class); } @@ -554,7 +554,7 @@ public static Recurring fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/RentalSurcharges.java b/src/main/java/com/adyen/model/checkout/RentalSurcharges.java index a23608d29..6367b8175 100644 --- a/src/main/java/com/adyen/model/checkout/RentalSurcharges.java +++ b/src/main/java/com/adyen/model/checkout/RentalSurcharges.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RentalSurcharges */ @JsonPropertyOrder({ @@ -311,9 +311,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RentalSurcharges - * @throws JsonProcessingException if the JSON string is invalid with respect to RentalSurcharges + * @throws JacksonException if the JSON string is invalid with respect to RentalSurcharges */ - public static RentalSurcharges fromJson(String jsonString) throws JsonProcessingException { + public static RentalSurcharges fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RentalSurcharges.class); } @@ -322,7 +322,7 @@ public static RentalSurcharges fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java index 96c70b3a2..08cbc7571 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalData3DSecure.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } @@ -423,7 +422,7 @@ public static ResponseAdditionalData3DSecure fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java index 8022e27ca..1b38c6380 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataBillingAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ @@ -474,11 +474,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataBillingAddress */ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } @@ -487,7 +487,7 @@ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java index 7c0e07849..77bcfc1fd 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCard.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCard */ @JsonPropertyOrder({ @@ -709,11 +709,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } @@ -722,7 +721,7 @@ public static ResponseAdditionalDataCard fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java index b05891f11..32ee62f0b 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataCommon.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ @@ -4167,11 +4167,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } @@ -4180,7 +4179,7 @@ public static ResponseAdditionalDataCommon fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java index e59cd76fc..7f81b4c8f 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataDomesticError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ @@ -239,11 +239,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataDomesticError */ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } @@ -252,7 +252,7 @@ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java index 42625bf11..81815500c 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataInstallments.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ @@ -945,11 +945,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataInstallments */ public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } @@ -958,7 +958,7 @@ public static ResponseAdditionalDataInstallments fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java index 6b59876cb..30ee8e480 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataNetworkTokens.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ @@ -289,11 +289,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataNetworkTokens */ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } @@ -302,7 +302,7 @@ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java index 20d6d032d..ef0f4783a 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataOpi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataOpi */ @JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) @@ -182,11 +182,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } @@ -195,7 +194,7 @@ public static ResponseAdditionalDataOpi fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java index d3b1fe064..81411a6a0 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSepa.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ @@ -382,11 +382,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } @@ -395,7 +394,7 @@ public static ResponseAdditionalDataSepa fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java index 665a30603..be667474a 100644 --- a/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java +++ b/src/main/java/com/adyen/model/checkout/ResponseAdditionalDataSwish.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSwish */ @JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS}) @@ -159,11 +159,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSwish - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSwish */ - public static ResponseAdditionalDataSwish fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSwish fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class); } @@ -172,7 +171,7 @@ public static ResponseAdditionalDataSwish fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java index 81922c726..3aadd22a2 100644 --- a/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ResponsePaymentMethod.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponsePaymentMethod */ @JsonPropertyOrder({ @@ -214,10 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponsePaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ResponsePaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to ResponsePaymentMethod */ - public static ResponsePaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static ResponsePaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponsePaymentMethod.class); } @@ -226,7 +225,7 @@ public static ResponsePaymentMethod fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ReturnInfo.java b/src/main/java/com/adyen/model/checkout/ReturnInfo.java index 7128f62b5..0d295cb09 100644 --- a/src/main/java/com/adyen/model/checkout/ReturnInfo.java +++ b/src/main/java/com/adyen/model/checkout/ReturnInfo.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** ReturnInfo */ @JsonPropertyOrder({ @@ -423,9 +423,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReturnInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ReturnInfo + * @throws JacksonException if the JSON string is invalid with respect to ReturnInfo */ - public static ReturnInfo fromJson(String jsonString) throws JsonProcessingException { + public static ReturnInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReturnInfo.class); } @@ -434,7 +434,7 @@ public static ReturnInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/RiskData.java b/src/main/java/com/adyen/model/checkout/RiskData.java index 8342eadfe..7c120521b 100644 --- a/src/main/java/com/adyen/model/checkout/RiskData.java +++ b/src/main/java/com/adyen/model/checkout/RiskData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** RiskData */ @JsonPropertyOrder({ @@ -337,9 +337,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RiskData - * @throws JsonProcessingException if the JSON string is invalid with respect to RiskData + * @throws JacksonException if the JSON string is invalid with respect to RiskData */ - public static RiskData fromJson(String jsonString) throws JsonProcessingException { + public static RiskData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RiskData.class); } @@ -348,7 +348,7 @@ public static RiskData fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index cc7c01332..e9620a01f 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RivertyDetails */ @JsonPropertyOrder({ @@ -799,9 +799,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RivertyDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to RivertyDetails + * @throws JacksonException if the JSON string is invalid with respect to RivertyDetails */ - public static RivertyDetails fromJson(String jsonString) throws JsonProcessingException { + public static RivertyDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RivertyDetails.class); } @@ -810,7 +810,7 @@ public static RivertyDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Room.java b/src/main/java/com/adyen/model/checkout/Room.java index 33332cdbd..6bd1d1586 100644 --- a/src/main/java/com/adyen/model/checkout/Room.java +++ b/src/main/java/com/adyen/model/checkout/Room.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Room */ @JsonPropertyOrder({Room.JSON_PROPERTY_NUMBER_OF_NIGHTS, Room.JSON_PROPERTY_RATE}) @@ -232,9 +232,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Room - * @throws JsonProcessingException if the JSON string is invalid with respect to Room + * @throws JacksonException if the JSON string is invalid with respect to Room */ - public static Room fromJson(String jsonString) throws JsonProcessingException { + public static Room fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Room.class); } @@ -243,7 +243,7 @@ public static Room fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java index e70918e8b..5f93b1b73 100644 --- a/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/checkout/SDKEphemPubKey.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SDKEphemPubKey */ @JsonPropertyOrder({ @@ -304,9 +304,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SDKEphemPubKey - * @throws JsonProcessingException if the JSON string is invalid with respect to SDKEphemPubKey + * @throws JacksonException if the JSON string is invalid with respect to SDKEphemPubKey */ - public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { + public static SDKEphemPubKey fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } @@ -315,7 +315,7 @@ public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java index 222453b68..e32da8201 100644 --- a/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/SamsungPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SamsungPayDetails */ @JsonPropertyOrder({ @@ -586,9 +586,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SamsungPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to SamsungPayDetails + * @throws JacksonException if the JSON string is invalid with respect to SamsungPayDetails */ - public static SamsungPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static SamsungPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SamsungPayDetails.class); } @@ -597,7 +597,7 @@ public static SamsungPayDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ScreenDimensions.java b/src/main/java/com/adyen/model/checkout/ScreenDimensions.java index 38e06c907..10acbd137 100644 --- a/src/main/java/com/adyen/model/checkout/ScreenDimensions.java +++ b/src/main/java/com/adyen/model/checkout/ScreenDimensions.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ScreenDimensions */ @JsonPropertyOrder({ScreenDimensions.JSON_PROPERTY_HEIGHT, ScreenDimensions.JSON_PROPERTY_WIDTH}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScreenDimensions - * @throws JsonProcessingException if the JSON string is invalid with respect to ScreenDimensions + * @throws JacksonException if the JSON string is invalid with respect to ScreenDimensions */ - public static ScreenDimensions fromJson(String jsonString) throws JsonProcessingException { + public static ScreenDimensions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScreenDimensions.class); } @@ -216,7 +216,7 @@ public static ScreenDimensions fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java index 0bea9605d..369ee2d38 100644 --- a/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java +++ b/src/main/java/com/adyen/model/checkout/SepaDirectDebitDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SepaDirectDebitDetails */ @JsonPropertyOrder({ @@ -645,10 +645,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SepaDirectDebitDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SepaDirectDebitDetails + * @throws JacksonException if the JSON string is invalid with respect to SepaDirectDebitDetails */ - public static SepaDirectDebitDetails fromJson(String jsonString) throws JsonProcessingException { + public static SepaDirectDebitDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitDetails.class); } @@ -657,7 +656,7 @@ public static SepaDirectDebitDetails fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ServiceError.java b/src/main/java/com/adyen/model/checkout/ServiceError.java index 94ba09d2a..a3a05b75f 100644 --- a/src/main/java/com/adyen/model/checkout/ServiceError.java +++ b/src/main/java/com/adyen/model/checkout/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java index 477d2d7ec..215d9f353 100644 --- a/src/main/java/com/adyen/model/checkout/SessionResultResponse.java +++ b/src/main/java/com/adyen/model/checkout/SessionResultResponse.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SessionResultResponse */ @JsonPropertyOrder({ @@ -521,10 +521,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SessionResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SessionResultResponse + * @throws JacksonException if the JSON string is invalid with respect to SessionResultResponse */ - public static SessionResultResponse fromJson(String jsonString) throws JsonProcessingException { + public static SessionResultResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SessionResultResponse.class); } @@ -533,7 +532,7 @@ public static SessionResultResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java index b40c9c539..7112fe631 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShopperIdPaymentMethod */ @JsonPropertyOrder({ShopperIdPaymentMethod.JSON_PROPERTY_TYPE}) @@ -185,10 +185,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShopperIdPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperIdPaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to ShopperIdPaymentMethod */ - public static ShopperIdPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static ShopperIdPaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShopperIdPaymentMethod.class); } @@ -197,7 +196,7 @@ public static ShopperIdPaymentMethod fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java index 6a6b25729..614227f82 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/checkout/ShopperInteractionDevice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShopperInteractionDevice */ @JsonPropertyOrder({ @@ -256,11 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperInteractionDevice + * @throws JacksonException if the JSON string is invalid with respect to ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) - throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } @@ -269,7 +267,7 @@ public static ShopperInteractionDevice fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ShopperName.java b/src/main/java/com/adyen/model/checkout/ShopperName.java index d844c8b22..7b9657cb6 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperName.java +++ b/src/main/java/com/adyen/model/checkout/ShopperName.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShopperName */ @JsonPropertyOrder({ShopperName.JSON_PROPERTY_FIRST_NAME, ShopperName.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShopperName - * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperName + * @throws JacksonException if the JSON string is invalid with respect to ShopperName */ - public static ShopperName fromJson(String jsonString) throws JsonProcessingException { + public static ShopperName fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShopperName.class); } @@ -216,7 +216,7 @@ public static ShopperName fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java b/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java index 71a6f76df..1c227c085 100644 --- a/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java +++ b/src/main/java/com/adyen/model/checkout/ShopperTaxInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShopperTaxInfo */ @JsonPropertyOrder({ @@ -227,9 +227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShopperTaxInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ShopperTaxInfo + * @throws JacksonException if the JSON string is invalid with respect to ShopperTaxInfo */ - public static ShopperTaxInfo fromJson(String jsonString) throws JsonProcessingException { + public static ShopperTaxInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShopperTaxInfo.class); } @@ -238,7 +238,7 @@ public static ShopperTaxInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Split.java b/src/main/java/com/adyen/model/checkout/Split.java index bb76996f7..6a7a3cfe8 100644 --- a/src/main/java/com/adyen/model/checkout/Split.java +++ b/src/main/java/com/adyen/model/checkout/Split.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Split */ @JsonPropertyOrder({ @@ -673,9 +673,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Split - * @throws JsonProcessingException if the JSON string is invalid with respect to Split + * @throws JacksonException if the JSON string is invalid with respect to Split */ - public static Split fromJson(String jsonString) throws JsonProcessingException { + public static Split fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Split.class); } @@ -684,7 +684,7 @@ public static Split fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SplitAmount.java b/src/main/java/com/adyen/model/checkout/SplitAmount.java index 9dea93a43..d18bd7d59 100644 --- a/src/main/java/com/adyen/model/checkout/SplitAmount.java +++ b/src/main/java/com/adyen/model/checkout/SplitAmount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SplitAmount */ @JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitAmount + * @throws JacksonException if the JSON string is invalid with respect to SplitAmount */ - public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { + public static SplitAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } @@ -234,7 +234,7 @@ public static SplitAmount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java index c1d6499b3..4734a8dc4 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StandalonePaymentCancelRequest */ @JsonPropertyOrder({ @@ -332,11 +332,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StandalonePaymentCancelRequest */ - public static StandalonePaymentCancelRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StandalonePaymentCancelRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelRequest.class); } @@ -345,7 +344,7 @@ public static StandalonePaymentCancelRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java index aa27a3c71..d5461cbea 100644 --- a/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/StandalonePaymentCancelResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StandalonePaymentCancelResponse */ @JsonPropertyOrder({ @@ -425,11 +425,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StandalonePaymentCancelResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StandalonePaymentCancelResponse */ public static StandalonePaymentCancelResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, StandalonePaymentCancelResponse.class); } @@ -438,7 +438,7 @@ public static StandalonePaymentCancelResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java index a0302e925..841df2316 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethod.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** StoredPaymentMethod */ @JsonPropertyOrder({ @@ -1132,10 +1132,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredPaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to StoredPaymentMethod */ - public static StoredPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static StoredPaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethod.class); } @@ -1144,7 +1143,7 @@ public static StoredPaymentMethod fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java index ba1c3c5af..2265adb10 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredPaymentMethodDetails */ @JsonPropertyOrder({ @@ -493,11 +493,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredPaymentMethodDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredPaymentMethodDetails */ - public static StoredPaymentMethodDetails fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodDetails.class); } @@ -506,7 +505,7 @@ public static StoredPaymentMethodDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java index 6855c8a98..0ca3cdd11 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredPaymentMethodRequest */ @JsonPropertyOrder({ @@ -538,11 +538,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredPaymentMethodRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredPaymentMethodRequest */ - public static StoredPaymentMethodRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodRequest.class); } @@ -551,7 +550,7 @@ public static StoredPaymentMethodRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java index 3636ebf18..8b3ab917e 100644 --- a/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java +++ b/src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** StoredPaymentMethodResource */ @JsonPropertyOrder({ @@ -1447,11 +1447,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredPaymentMethodResource - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredPaymentMethodResource */ - public static StoredPaymentMethodResource fromJson(String jsonString) - throws JsonProcessingException { + public static StoredPaymentMethodResource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredPaymentMethodResource.class); } @@ -1460,7 +1459,7 @@ public static StoredPaymentMethodResource fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SubInputDetail.java b/src/main/java/com/adyen/model/checkout/SubInputDetail.java index ce47f39e7..fb7e89c02 100644 --- a/src/main/java/com/adyen/model/checkout/SubInputDetail.java +++ b/src/main/java/com/adyen/model/checkout/SubInputDetail.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** SubInputDetail */ @JsonPropertyOrder({ @@ -432,9 +432,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubInputDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to SubInputDetail + * @throws JacksonException if the JSON string is invalid with respect to SubInputDetail */ - public static SubInputDetail fromJson(String jsonString) throws JsonProcessingException { + public static SubInputDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubInputDetail.class); } @@ -443,7 +443,7 @@ public static SubInputDetail fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchant.java b/src/main/java/com/adyen/model/checkout/SubMerchant.java index 21f919b00..b20df002d 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchant.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchant.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SubMerchant */ @JsonPropertyOrder({ @@ -395,9 +395,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to SubMerchant + * @throws JacksonException if the JSON string is invalid with respect to SubMerchant */ - public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { + public static SubMerchant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } @@ -406,7 +406,7 @@ public static SubMerchant fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java index fbd13b9e9..6abd822f0 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SubMerchantInfo */ @JsonPropertyOrder({ @@ -681,9 +681,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubMerchantInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SubMerchantInfo + * @throws JacksonException if the JSON string is invalid with respect to SubMerchantInfo */ - public static SubMerchantInfo fromJson(String jsonString) throws JsonProcessingException { + public static SubMerchantInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubMerchantInfo.class); } @@ -692,7 +692,7 @@ public static SubMerchantInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Surcharge.java b/src/main/java/com/adyen/model/checkout/Surcharge.java index a2f3bb5d3..007bce5ee 100644 --- a/src/main/java/com/adyen/model/checkout/Surcharge.java +++ b/src/main/java/com/adyen/model/checkout/Surcharge.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Surcharge */ @JsonPropertyOrder({Surcharge.JSON_PROPERTY_VALUE}) @@ -191,9 +191,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Surcharge - * @throws JsonProcessingException if the JSON string is invalid with respect to Surcharge + * @throws JacksonException if the JSON string is invalid with respect to Surcharge */ - public static Surcharge fromJson(String jsonString) throws JsonProcessingException { + public static Surcharge fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } @@ -202,7 +202,7 @@ public static Surcharge fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/TaxTotal.java b/src/main/java/com/adyen/model/checkout/TaxTotal.java index ae7bc9995..2692a5c4b 100644 --- a/src/main/java/com/adyen/model/checkout/TaxTotal.java +++ b/src/main/java/com/adyen/model/checkout/TaxTotal.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TaxTotal */ @JsonPropertyOrder({TaxTotal.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TaxTotal - * @throws JsonProcessingException if the JSON string is invalid with respect to TaxTotal + * @throws JacksonException if the JSON string is invalid with respect to TaxTotal */ - public static TaxTotal fromJson(String jsonString) throws JsonProcessingException { + public static TaxTotal fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TaxTotal.class); } @@ -169,7 +169,7 @@ public static TaxTotal fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/TemporaryServices.java b/src/main/java/com/adyen/model/checkout/TemporaryServices.java index aa948e6fd..7c639367c 100644 --- a/src/main/java/com/adyen/model/checkout/TemporaryServices.java +++ b/src/main/java/com/adyen/model/checkout/TemporaryServices.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** TemporaryServices */ @JsonPropertyOrder({ @@ -541,9 +541,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to TemporaryServices + * @throws JacksonException if the JSON string is invalid with respect to TemporaryServices */ - public static TemporaryServices fromJson(String jsonString) throws JsonProcessingException { + public static TemporaryServices fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TemporaryServices.class); } @@ -552,7 +552,7 @@ public static TemporaryServices fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThirdPartyTokenRedundancyInfo.java b/src/main/java/com/adyen/model/checkout/ThirdPartyTokenRedundancyInfo.java index dde016e66..b879af01b 100644 --- a/src/main/java/com/adyen/model/checkout/ThirdPartyTokenRedundancyInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThirdPartyTokenRedundancyInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ThirdPartyTokenRedundancyInfo */ @JsonPropertyOrder({ @@ -242,11 +242,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThirdPartyTokenRedundancyInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThirdPartyTokenRedundancyInfo */ - public static ThirdPartyTokenRedundancyInfo fromJson(String jsonString) - throws JsonProcessingException { + public static ThirdPartyTokenRedundancyInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThirdPartyTokenRedundancyInfo.class); } @@ -255,7 +254,7 @@ public static ThirdPartyTokenRedundancyInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java index 2d7078f83..178a5b597 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDS2RequestData */ @JsonPropertyOrder({ @@ -2741,10 +2741,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2RequestData */ - public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2RequestData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } @@ -2753,7 +2752,7 @@ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java index d590d2531..d65a40631 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2RequestFields.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDS2RequestFields */ @JsonPropertyOrder({ @@ -2578,10 +2578,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2RequestFields - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestFields + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2RequestFields */ - public static ThreeDS2RequestFields fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2RequestFields fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestFields.class); } @@ -2590,7 +2589,7 @@ public static ThreeDS2RequestFields fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java index 8b3ea5acb..95fe8b0bb 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2ResponseData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDS2ResponseData */ @JsonPropertyOrder({ @@ -1072,10 +1072,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2ResponseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResponseData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2ResponseData */ - public static ThreeDS2ResponseData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2ResponseData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResponseData.class); } @@ -1084,7 +1083,7 @@ public static ThreeDS2ResponseData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java index ad7384fa7..1e629ae92 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDS2Result.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDS2Result */ @JsonPropertyOrder({ @@ -1074,9 +1074,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2Result - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2Result + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2Result */ - public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2Result fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } @@ -1085,7 +1085,7 @@ public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java index 8d04775ad..518fe5d31 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSRequestData */ @JsonPropertyOrder({ @@ -559,10 +559,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSRequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDSRequestData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSRequestData */ - public static ThreeDSRequestData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSRequestData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestData.class); } @@ -571,7 +570,7 @@ public static ThreeDSRequestData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java index ee0fd3862..4ae4c947c 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorAuthenticationInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSRequestorAuthenticationInfo */ @JsonPropertyOrder({ @@ -395,11 +395,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSRequestorAuthenticationInfo */ public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } @@ -408,7 +408,7 @@ public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java index 6ac2901a9..265de8005 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSRequestorPriorAuthenticationInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSRequestorPriorAuthenticationInfo */ @JsonPropertyOrder({ @@ -442,11 +442,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSRequestorPriorAuthenticationInfo */ public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } @@ -455,7 +455,7 @@ public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java index 1f84d7079..10dcccef9 100644 --- a/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/checkout/ThreeDSecureData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSecureData */ @JsonPropertyOrder({ @@ -941,9 +941,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSecureData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecureData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecureData */ - public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecureData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } @@ -952,7 +952,7 @@ public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/Ticket.java b/src/main/java/com/adyen/model/checkout/Ticket.java index 17d73f6c4..7d65873e3 100644 --- a/src/main/java/com/adyen/model/checkout/Ticket.java +++ b/src/main/java/com/adyen/model/checkout/Ticket.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** Ticket */ @JsonPropertyOrder({ @@ -294,9 +294,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Ticket - * @throws JsonProcessingException if the JSON string is invalid with respect to Ticket + * @throws JacksonException if the JSON string is invalid with respect to Ticket */ - public static Ticket fromJson(String jsonString) throws JsonProcessingException { + public static Ticket fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Ticket.class); } @@ -305,7 +305,7 @@ public static Ticket fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/TokenMandate.java b/src/main/java/com/adyen/model/checkout/TokenMandate.java index 85292fb02..7631488ee 100644 --- a/src/main/java/com/adyen/model/checkout/TokenMandate.java +++ b/src/main/java/com/adyen/model/checkout/TokenMandate.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TokenMandate */ @JsonPropertyOrder({ @@ -1397,9 +1397,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TokenMandate - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenMandate + * @throws JacksonException if the JSON string is invalid with respect to TokenMandate */ - public static TokenMandate fromJson(String jsonString) throws JsonProcessingException { + public static TokenMandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TokenMandate.class); } @@ -1408,7 +1408,7 @@ public static TokenMandate fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/TravelAgency.java b/src/main/java/com/adyen/model/checkout/TravelAgency.java index 0db715b4a..73ae029a7 100644 --- a/src/main/java/com/adyen/model/checkout/TravelAgency.java +++ b/src/main/java/com/adyen/model/checkout/TravelAgency.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TravelAgency */ @JsonPropertyOrder({TravelAgency.JSON_PROPERTY_CODE, TravelAgency.JSON_PROPERTY_NAME}) @@ -235,9 +235,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TravelAgency - * @throws JsonProcessingException if the JSON string is invalid with respect to TravelAgency + * @throws JacksonException if the JSON string is invalid with respect to TravelAgency */ - public static TravelAgency fromJson(String jsonString) throws JsonProcessingException { + public static TravelAgency fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TravelAgency.class); } @@ -246,7 +246,7 @@ public static TravelAgency fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/TwintDetails.java b/src/main/java/com/adyen/model/checkout/TwintDetails.java index eab481a2c..006652c0c 100644 --- a/src/main/java/com/adyen/model/checkout/TwintDetails.java +++ b/src/main/java/com/adyen/model/checkout/TwintDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TwintDetails */ @JsonPropertyOrder({ @@ -480,9 +480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TwintDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to TwintDetails + * @throws JacksonException if the JSON string is invalid with respect to TwintDetails */ - public static TwintDetails fromJson(String jsonString) throws JsonProcessingException { + public static TwintDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TwintDetails.class); } @@ -491,7 +491,7 @@ public static TwintDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java index 021992123..b07d5b013 100644 --- a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UPIPaymentMethod */ @JsonPropertyOrder({UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS}) @@ -183,9 +183,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UPIPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to UPIPaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to UPIPaymentMethod */ - public static UPIPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static UPIPaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UPIPaymentMethod.class); } @@ -194,7 +194,7 @@ public static UPIPaymentMethod fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java index c499dba71..4209aafe5 100644 --- a/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/UpdatePaymentLinkRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdatePaymentLinkRequest */ @JsonPropertyOrder({UpdatePaymentLinkRequest.JSON_PROPERTY_STATUS}) @@ -201,11 +201,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdatePaymentLinkRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentLinkRequest + * @throws JacksonException if the JSON string is invalid with respect to UpdatePaymentLinkRequest */ - public static UpdatePaymentLinkRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdatePaymentLinkRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatePaymentLinkRequest.class); } @@ -214,7 +212,7 @@ public static UpdatePaymentLinkRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java index b206c01fd..baa0647de 100644 --- a/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiCollectDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpiCollectDetails */ @JsonPropertyOrder({ @@ -609,9 +609,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpiCollectDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to UpiCollectDetails + * @throws JacksonException if the JSON string is invalid with respect to UpiCollectDetails */ - public static UpiCollectDetails fromJson(String jsonString) throws JsonProcessingException { + public static UpiCollectDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpiCollectDetails.class); } @@ -620,7 +620,7 @@ public static UpiCollectDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java index f3991a381..831cf39c8 100644 --- a/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiIntentDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpiIntentDetails */ @JsonPropertyOrder({ @@ -606,9 +606,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpiIntentDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to UpiIntentDetails + * @throws JacksonException if the JSON string is invalid with respect to UpiIntentDetails */ - public static UpiIntentDetails fromJson(String jsonString) throws JsonProcessingException { + public static UpiIntentDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpiIntentDetails.class); } @@ -617,7 +617,7 @@ public static UpiIntentDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java index c6024148d..734c0d0f8 100644 --- a/src/main/java/com/adyen/model/checkout/UpiQrDetails.java +++ b/src/main/java/com/adyen/model/checkout/UpiQrDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpiQrDetails */ @JsonPropertyOrder({ @@ -553,9 +553,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpiQrDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to UpiQrDetails + * @throws JacksonException if the JSON string is invalid with respect to UpiQrDetails */ - public static UpiQrDetails fromJson(String jsonString) throws JsonProcessingException { + public static UpiQrDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpiQrDetails.class); } @@ -564,7 +564,7 @@ public static UpiQrDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UtilityRequest.java b/src/main/java/com/adyen/model/checkout/UtilityRequest.java index 56f96f7a4..ed4387d5b 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityRequest.java +++ b/src/main/java/com/adyen/model/checkout/UtilityRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UtilityRequest */ @JsonPropertyOrder({UtilityRequest.JSON_PROPERTY_ORIGIN_DOMAINS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UtilityRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to UtilityRequest + * @throws JacksonException if the JSON string is invalid with respect to UtilityRequest */ - public static UtilityRequest fromJson(String jsonString) throws JsonProcessingException { + public static UtilityRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UtilityRequest.class); } @@ -179,7 +179,7 @@ public static UtilityRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/UtilityResponse.java b/src/main/java/com/adyen/model/checkout/UtilityResponse.java index 31fa2aad0..4866a3581 100644 --- a/src/main/java/com/adyen/model/checkout/UtilityResponse.java +++ b/src/main/java/com/adyen/model/checkout/UtilityResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** UtilityResponse */ @JsonPropertyOrder({UtilityResponse.JSON_PROPERTY_ORIGIN_KEYS}) @@ -174,9 +174,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UtilityResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to UtilityResponse + * @throws JacksonException if the JSON string is invalid with respect to UtilityResponse */ - public static UtilityResponse fromJson(String jsonString) throws JsonProcessingException { + public static UtilityResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UtilityResponse.class); } @@ -185,7 +185,7 @@ public static UtilityResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java index 0fcf6581e..a7b6fedfb 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ValidateShopperIdRequest */ @JsonPropertyOrder({ @@ -366,11 +366,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ValidateShopperIdRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ValidateShopperIdRequest + * @throws JacksonException if the JSON string is invalid with respect to ValidateShopperIdRequest */ - public static ValidateShopperIdRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ValidateShopperIdRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdRequest.class); } @@ -379,7 +377,7 @@ public static ValidateShopperIdRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java index 818c6311c..b7d96313a 100644 --- a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ValidateShopperIdResponse */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ValidateShopperIdResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ValidateShopperIdResponse */ - public static ValidateShopperIdResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ValidateShopperIdResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValidateShopperIdResponse.class); } @@ -221,7 +220,7 @@ public static ValidateShopperIdResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/VippsDetails.java b/src/main/java/com/adyen/model/checkout/VippsDetails.java index 914275e39..cae8f61e4 100644 --- a/src/main/java/com/adyen/model/checkout/VippsDetails.java +++ b/src/main/java/com/adyen/model/checkout/VippsDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VippsDetails */ @JsonPropertyOrder({ @@ -474,9 +474,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VippsDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to VippsDetails + * @throws JacksonException if the JSON string is invalid with respect to VippsDetails */ - public static VippsDetails fromJson(String jsonString) throws JsonProcessingException { + public static VippsDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VippsDetails.class); } @@ -485,7 +485,7 @@ public static VippsDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java index 2f438a61c..81410021f 100644 --- a/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java +++ b/src/main/java/com/adyen/model/checkout/VisaCheckoutDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VisaCheckoutDetails */ @JsonPropertyOrder({ @@ -471,10 +471,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VisaCheckoutDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VisaCheckoutDetails + * @throws JacksonException if the JSON string is invalid with respect to VisaCheckoutDetails */ - public static VisaCheckoutDetails fromJson(String jsonString) throws JsonProcessingException { + public static VisaCheckoutDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VisaCheckoutDetails.class); } @@ -483,7 +482,7 @@ public static VisaCheckoutDetails fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java index 0f3430a57..e0b72e1d9 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WeChatPayDetails */ @JsonPropertyOrder({ @@ -303,9 +303,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayDetails + * @throws JacksonException if the JSON string is invalid with respect to WeChatPayDetails */ - public static WeChatPayDetails fromJson(String jsonString) throws JsonProcessingException { + public static WeChatPayDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayDetails.class); } @@ -314,7 +314,7 @@ public static WeChatPayDetails fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java index b1ce51086..9773e1f86 100644 --- a/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java +++ b/src/main/java/com/adyen/model/checkout/WeChatPayMiniProgramDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WeChatPayMiniProgramDetails */ @JsonPropertyOrder({ @@ -535,11 +535,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayMiniProgramDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * WeChatPayMiniProgramDetails */ - public static WeChatPayMiniProgramDetails fromJson(String jsonString) - throws JsonProcessingException { + public static WeChatPayMiniProgramDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayMiniProgramDetails.class); } @@ -548,7 +547,7 @@ public static WeChatPayMiniProgramDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/checkout/ZipDetails.java b/src/main/java/com/adyen/model/checkout/ZipDetails.java index 6c5b06bb4..864bfb4af 100644 --- a/src/main/java/com/adyen/model/checkout/ZipDetails.java +++ b/src/main/java/com/adyen/model/checkout/ZipDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ZipDetails */ @JsonPropertyOrder({ @@ -488,9 +488,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ZipDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ZipDetails + * @throws JacksonException if the JSON string is invalid with respect to ZipDetails */ - public static ZipDetails fromJson(String jsonString) throws JsonProcessingException { + public static ZipDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ZipDetails.class); } @@ -499,7 +499,7 @@ public static ZipDetails fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiAsyncResponse.java b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiAsyncResponse.java index df75367cb..98d26e714 100644 --- a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiAsyncResponse.java +++ b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiAsyncResponse.java @@ -23,8 +23,8 @@ import com.adyen.model.tapi.JSON; import com.adyen.model.tapi.SaleToPOIRequest; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** * Response of the /async endpoint. When successful the `results` contains `ok` In case of failure @@ -81,11 +81,10 @@ public boolean equals(Object o) { * * @param jsonString JSON string * @return An instance of CloudDeviceApiAsyncResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CloudDeviceApiAsyncResponse */ - public static CloudDeviceApiAsyncResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CloudDeviceApiAsyncResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloudDeviceApiAsyncResponse.class); } @@ -94,7 +93,7 @@ public static CloudDeviceApiAsyncResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiRequest.java b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiRequest.java index 77149199c..be7bb79c3 100644 --- a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiRequest.java +++ b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiRequest.java @@ -23,8 +23,8 @@ import com.adyen.model.tapi.JSON; import com.adyen.model.tapi.SaleToPOIRequest; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloudDeviceApiRequest */ public class CloudDeviceApiRequest { @@ -66,10 +66,9 @@ public boolean equals(Object o) { * * @param jsonString JSON string * @return An instance of CloudDeviceApiRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloudDeviceApiRequest + * @throws JacksonException if the JSON string is invalid with respect to CloudDeviceApiRequest */ - public static CloudDeviceApiRequest fromJson(String jsonString) throws JsonProcessingException { + public static CloudDeviceApiRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloudDeviceApiRequest.class); } @@ -78,7 +77,7 @@ public static CloudDeviceApiRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiResponse.java b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiResponse.java index 392342d58..6ea8a2618 100644 --- a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiResponse.java +++ b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiResponse.java @@ -24,8 +24,8 @@ import com.adyen.model.tapi.SaleToPOIRequest; import com.adyen.model.tapi.SaleToPOIResponse; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloudDeviceApiResponse */ public class CloudDeviceApiResponse { @@ -76,10 +76,9 @@ public void setSaleToPOIResponse(SaleToPOIResponse saleToPOIResponse) { * * @param jsonString JSON string * @return An instance of CloudDeviceApiResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloudDeviceApiResponse + * @throws JacksonException if the JSON string is invalid with respect to CloudDeviceApiResponse */ - public static CloudDeviceApiResponse fromJson(String jsonString) throws JsonProcessingException { + public static CloudDeviceApiResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloudDeviceApiResponse.class); } @@ -88,7 +87,7 @@ public static CloudDeviceApiResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredRequest.java b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredRequest.java index a4115bde2..1b40ca0ee 100644 --- a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredRequest.java +++ b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredRequest.java @@ -22,8 +22,8 @@ import com.adyen.model.tapi.JSON; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Terminal API Secured Request */ public class CloudDeviceApiSecuredRequest { @@ -53,11 +53,10 @@ public void setSaleToPOIRequest(SaleToPOISecuredMessage saleToPOIRequest) { * * @param jsonString JSON string * @return An instance of CloudDeviceApiSecuredRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CloudDeviceApiSecuredRequest */ - public static CloudDeviceApiSecuredRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CloudDeviceApiSecuredRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloudDeviceApiSecuredRequest.class); } @@ -66,7 +65,7 @@ public static CloudDeviceApiSecuredRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredResponse.java b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredResponse.java index 7a059eeac..2b591ed03 100644 --- a/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredResponse.java +++ b/src/main/java/com/adyen/model/clouddevice/CloudDeviceApiSecuredResponse.java @@ -22,8 +22,8 @@ import com.adyen.model.tapi.JSON; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Terminal API Secured Response */ public class CloudDeviceApiSecuredResponse { @@ -53,11 +53,10 @@ public void setSaleToPOIResponse(SaleToPOISecuredMessage saleToPOIResponse) { * * @param jsonString JSON string * @return An instance of CloudDeviceApiSecuredResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CloudDeviceApiSecuredResponse */ - public static CloudDeviceApiSecuredResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CloudDeviceApiSecuredResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloudDeviceApiSecuredResponse.class); } @@ -66,7 +65,7 @@ public static CloudDeviceApiSecuredResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/ConnectedDevicesResponse.java b/src/main/java/com/adyen/model/clouddevice/ConnectedDevicesResponse.java index 5331abf17..097586ba0 100644 --- a/src/main/java/com/adyen/model/clouddevice/ConnectedDevicesResponse.java +++ b/src/main/java/com/adyen/model/clouddevice/ConnectedDevicesResponse.java @@ -22,9 +22,9 @@ import com.adyen.model.tapi.JSON; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ConnectedDevicesResponse */ public class ConnectedDevicesResponse { @@ -44,11 +44,9 @@ public void setUniqueDeviceIds(List uniqueDeviceIds) { * * @param jsonString JSON string * @return An instance of ConnectedDevicesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ConnectedDevicesResponse + * @throws JacksonException if the JSON string is invalid with respect to ConnectedDevicesResponse */ - public static ConnectedDevicesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ConnectedDevicesResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ConnectedDevicesResponse.class); } @@ -57,7 +55,7 @@ public static ConnectedDevicesResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/DeviceStatusResponse.java b/src/main/java/com/adyen/model/clouddevice/DeviceStatusResponse.java index 86fe878e6..7c71cf6ed 100644 --- a/src/main/java/com/adyen/model/clouddevice/DeviceStatusResponse.java +++ b/src/main/java/com/adyen/model/clouddevice/DeviceStatusResponse.java @@ -22,8 +22,8 @@ import com.adyen.model.tapi.JSON; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeviceStatusResponse */ public class DeviceStatusResponse { @@ -54,9 +54,9 @@ public void setStatus(DeviceStatus status) { * * @param jsonString JSON string * @return An instance of DeviceStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to DeviceStatus + * @throws JacksonException if the JSON string is invalid with respect to DeviceStatus */ - public static DeviceStatusResponse fromJson(String jsonString) throws JsonProcessingException { + public static DeviceStatusResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeviceStatusResponse.class); } @@ -65,7 +65,7 @@ public static DeviceStatusResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/clouddevice/SaleToPOISecuredMessage.java b/src/main/java/com/adyen/model/clouddevice/SaleToPOISecuredMessage.java index bf4de03b6..e1e0098a6 100644 --- a/src/main/java/com/adyen/model/clouddevice/SaleToPOISecuredMessage.java +++ b/src/main/java/com/adyen/model/clouddevice/SaleToPOISecuredMessage.java @@ -25,8 +25,8 @@ import com.adyen.model.tapi.JSON; import com.adyen.model.tapi.MessageHeader; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Objects; +import tools.jackson.core.JacksonException; public class SaleToPOISecuredMessage { @JsonProperty("MessageHeader") @@ -67,10 +67,9 @@ public void setSecurityTrailer(SecurityTrailer securityTrailer) { * * @param jsonString JSON string * @return An instance of SaleToPOISecuredMessage - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SaleToPOISecuredMessage + * @throws JacksonException if the JSON string is invalid with respect to SaleToPOISecuredMessage */ - public static SaleToPOISecuredMessage fromJson(String jsonString) throws JsonProcessingException { + public static SaleToPOISecuredMessage fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleToPOISecuredMessage.class); } @@ -79,7 +78,7 @@ public static SaleToPOISecuredMessage fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java index 0a27c5493..5b266a447 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolder.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -24,6 +23,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolder */ @JsonPropertyOrder({ @@ -815,9 +815,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolder - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountHolder + * @throws JacksonException if the JSON string is invalid with respect to AccountHolder */ - public static AccountHolder fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolder fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolder.class); } @@ -826,7 +826,7 @@ public static AccountHolder fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java index f4919a926..87dd6a1f2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderCapability.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolderCapability */ @JsonPropertyOrder({ @@ -711,10 +711,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderCapability + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderCapability */ - public static AccountHolderCapability fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderCapability fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderCapability.class); } @@ -723,7 +722,7 @@ public static AccountHolderCapability fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java index d85544171..a2160958b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountHolderNotificationData */ @JsonPropertyOrder({ @@ -143,11 +143,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderNotificationData */ - public static AccountHolderNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationData.class); } @@ -156,7 +155,7 @@ public static AccountHolderNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java index 437fb8cb1..a92a73a85 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountHolderNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountHolderNotificationRequest */ @JsonPropertyOrder({ @@ -273,11 +273,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderNotificationRequest */ public static AccountHolderNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderNotificationRequest.class); } @@ -286,7 +286,7 @@ public static AccountHolderNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationNotificationRequest.java index 0c7a07957..f912a0556 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountPayoutAutoApplicationNotificationRequest */ @JsonPropertyOrder({ @@ -275,11 +275,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountPayoutAutoApplicationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountPayoutAutoApplicationNotificationRequest */ public static AccountPayoutAutoApplicationNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountPayoutAutoApplicationNotificationRequest.class); } @@ -289,7 +289,7 @@ public static AccountPayoutAutoApplicationNotificationRequest fromJson(String js * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationWebhookData.java index a9060676d..48654ccf4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutAutoApplicationWebhookData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountPayoutAutoApplicationWebhookData */ @JsonPropertyOrder({ @@ -302,11 +302,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountPayoutAutoApplicationWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountPayoutAutoApplicationWebhookData */ public static AccountPayoutAutoApplicationWebhookData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountPayoutAutoApplicationWebhookData.class); } @@ -315,7 +315,7 @@ public static AccountPayoutAutoApplicationWebhookData fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutConfigWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutConfigWebhookData.java index 3d65d515a..05b6e18ff 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutConfigWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountPayoutConfigWebhookData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountPayoutConfigWebhookData */ @JsonPropertyOrder({ @@ -802,11 +802,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountPayoutConfigWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountPayoutConfigWebhookData */ - public static AccountPayoutConfigWebhookData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountPayoutConfigWebhookData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountPayoutConfigWebhookData.class); } @@ -815,7 +814,7 @@ public static AccountPayoutConfigWebhookData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java index a433c3279..1b8cbf0a7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/AccountSupportingEntityCapability.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountSupportingEntityCapability */ @JsonPropertyOrder({ @@ -572,11 +572,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountSupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountSupportingEntityCapability */ public static AccountSupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountSupportingEntityCapability.class); } @@ -585,7 +585,7 @@ public static AccountSupportingEntityCapability fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Address.java b/src/main/java/com/adyen/model/configurationwebhooks/Address.java index 5acb96d00..3ff016c1c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Address.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Address.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -330,9 +330,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -341,7 +341,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java index 35f0c4c76..a0d547dbd 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java index 940164259..868c6825f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Authentication.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Authentication */ @JsonPropertyOrder({ @@ -198,9 +198,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Authentication - * @throws JsonProcessingException if the JSON string is invalid with respect to Authentication + * @throws JacksonException if the JSON string is invalid with respect to Authentication */ - public static Authentication fromJson(String jsonString) throws JsonProcessingException { + public static Authentication fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Authentication.class); } @@ -209,7 +209,7 @@ public static Authentication fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java index 146ff6ffb..fae4477ab 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Balance.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Balance.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Balance */ @JsonPropertyOrder({ @@ -318,9 +318,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Balance - * @throws JsonProcessingException if the JSON string is invalid with respect to Balance + * @throws JacksonException if the JSON string is invalid with respect to Balance */ - public static Balance fromJson(String jsonString) throws JsonProcessingException { + public static Balance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Balance.class); } @@ -329,7 +329,7 @@ public static Balance fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java index fe5eb468f..c9a717af0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccount.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -24,6 +23,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccount */ @JsonPropertyOrder({ @@ -660,9 +660,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceAccount + * @throws JacksonException if the JSON string is invalid with respect to BalanceAccount */ - public static BalanceAccount fromJson(String jsonString) throws JsonProcessingException { + public static BalanceAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccount.class); } @@ -671,7 +671,7 @@ public static BalanceAccount fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java index 98f88d5a1..e9776dec8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalanceAccountNotificationData */ @JsonPropertyOrder({ @@ -144,11 +144,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountNotificationData */ - public static BalanceAccountNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static BalanceAccountNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationData.class); } @@ -157,7 +156,7 @@ public static BalanceAccountNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java index 36906dadb..fd8ea44a0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalanceAccountNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BalanceAccountNotificationRequest */ @JsonPropertyOrder({ @@ -275,11 +275,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceAccountNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalanceAccountNotificationRequest */ public static BalanceAccountNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceAccountNotificationRequest.class); } @@ -288,7 +288,7 @@ public static BalanceAccountNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java index c004a6522..c54281177 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java index a23641709..20748c3a7 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankAccountDetails.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountDetails */ @JsonPropertyOrder({ @@ -427,10 +427,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountDetails + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetails */ - public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } @@ -439,7 +438,7 @@ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java index 51cabd168..576dfffd1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BankScoreSignalTriggeredData.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BankScoreSignalTriggeredData */ @JsonPropertyOrder({ @@ -466,11 +466,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankScoreSignalTriggeredData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BankScoreSignalTriggeredData */ - public static BankScoreSignalTriggeredData fromJson(String jsonString) - throws JsonProcessingException { + public static BankScoreSignalTriggeredData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankScoreSignalTriggeredData.class); } @@ -479,7 +478,7 @@ public static BankScoreSignalTriggeredData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java index 2c7962a33..938a77144 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/BulkAddress.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BulkAddress */ @JsonPropertyOrder({ @@ -604,9 +604,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BulkAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to BulkAddress + * @throws JacksonException if the JSON string is invalid with respect to BulkAddress */ - public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { + public static BulkAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } @@ -615,7 +615,7 @@ public static BulkAddress fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java index 405a147aa..0fb88ff62 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblem.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapabilityProblem */ @JsonPropertyOrder({ @@ -151,9 +151,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblem - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblem + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblem */ - public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } @@ -162,7 +162,7 @@ public static CapabilityProblem fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java index 9e69b916a..e3fbab7a0 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntity.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntity */ @JsonPropertyOrder({ @@ -282,10 +282,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblemEntity */ - public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } @@ -294,7 +293,7 @@ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java index f553e8278..6cf10f5d5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilityProblemEntityRecursive.java @@ -17,12 +17,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ @@ -249,11 +249,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CapabilityProblemEntityRecursive */ public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } @@ -262,7 +262,7 @@ public static CapabilityProblemEntityRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java index 816edc10c..3e2495526 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CapabilitySettings.java @@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -24,6 +23,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilitySettings */ @JsonPropertyOrder({ @@ -346,10 +346,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JacksonException if the JSON string is invalid with respect to CapabilitySettings */ - public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { + public static CapabilitySettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } @@ -358,7 +357,7 @@ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Card.java b/src/main/java/com/adyen/model/configurationwebhooks/Card.java index e2086496b..4353de05c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Card.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Card.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -715,9 +715,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -726,7 +726,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java index 07b7e5700..528c5451f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardConfiguration.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardConfiguration */ @JsonPropertyOrder({ @@ -791,9 +791,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to CardConfiguration + * @throws JacksonException if the JSON string is invalid with respect to CardConfiguration */ - public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static CardConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } @@ -802,7 +802,7 @@ public static CardConfiguration fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java index 6b607b4d7..444033eff 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItem.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** CardOrderItem */ @JsonPropertyOrder({ @@ -395,9 +395,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardOrderItem - * @throws JsonProcessingException if the JSON string is invalid with respect to CardOrderItem + * @throws JacksonException if the JSON string is invalid with respect to CardOrderItem */ - public static CardOrderItem fromJson(String jsonString) throws JsonProcessingException { + public static CardOrderItem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrderItem.class); } @@ -406,7 +406,7 @@ public static CardOrderItem fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java index 23c35058f..7e8a4e3f5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderItemDeliveryStatus.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardOrderItemDeliveryStatus */ @JsonPropertyOrder({ @@ -237,11 +237,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardOrderItemDeliveryStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CardOrderItemDeliveryStatus */ - public static CardOrderItemDeliveryStatus fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderItemDeliveryStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrderItemDeliveryStatus.class); } @@ -250,7 +249,7 @@ public static CardOrderItemDeliveryStatus fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java index 28b6962e0..3db9c43e4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/CardOrderNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardOrderNotificationRequest */ @JsonPropertyOrder({ @@ -268,11 +268,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardOrderNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CardOrderNotificationRequest */ - public static CardOrderNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CardOrderNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardOrderNotificationRequest.class); } @@ -281,7 +280,7 @@ public static CardOrderNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java index c938ba416..365872d7f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ContactDetails.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * ContactDetails @@ -224,9 +224,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ContactDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ContactDetails + * @throws JacksonException if the JSON string is invalid with respect to ContactDetails */ - public static ContactDetails fromJson(String jsonString) throws JsonProcessingException { + public static ContactDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ContactDetails.class); } @@ -235,7 +235,7 @@ public static ContactDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java index 7a23d99ef..c2568bb38 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryAddress */ @JsonPropertyOrder({ @@ -375,9 +375,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeliveryAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryAddress + * @throws JacksonException if the JSON string is invalid with respect to DeliveryAddress */ - public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } @@ -386,7 +386,7 @@ public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java index 4e9478cbc..4bb3f7778 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryContact.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryContact */ @JsonPropertyOrder({ @@ -348,9 +348,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeliveryContact - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryContact + * @throws JacksonException if the JSON string is invalid with respect to DeliveryContact */ - public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } @@ -359,7 +359,7 @@ public static DeliveryContact fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Device.java b/src/main/java/com/adyen/model/configurationwebhooks/Device.java index abcac2738..ca357628e 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Device.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Device.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Device */ @JsonPropertyOrder({ @@ -186,9 +186,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Device - * @throws JsonProcessingException if the JSON string is invalid with respect to Device + * @throws JacksonException if the JSON string is invalid with respect to Device */ - public static Device fromJson(String jsonString) throws JsonProcessingException { + public static Device fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Device.class); } @@ -197,7 +197,7 @@ public static Device fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java index eeaac49df..8e65df7a3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Expiry.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Expiry */ @JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) @@ -137,9 +137,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Expiry - * @throws JsonProcessingException if the JSON string is invalid with respect to Expiry + * @throws JacksonException if the JSON string is invalid with respect to Expiry */ - public static Expiry fromJson(String jsonString) throws JsonProcessingException { + public static Expiry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Expiry.class); } @@ -148,7 +148,7 @@ public static Expiry fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java index e3cb0a175..3c6f60c25 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/IbanAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -242,7 +241,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java index a7359241d..dfab7e12b 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java b/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java index 03a1c3772..472eb48b2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Mandate.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Mandate */ @JsonPropertyOrder({ @@ -481,9 +481,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Mandate - * @throws JsonProcessingException if the JSON string is invalid with respect to Mandate + * @throws JacksonException if the JSON string is invalid with respect to Mandate */ - public static Mandate fromJson(String jsonString) throws JsonProcessingException { + public static Mandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Mandate.class); } @@ -492,7 +492,7 @@ public static Mandate fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccount.java b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccount.java index 045dca480..08d17c2d8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandateBankAccount */ @JsonPropertyOrder({ @@ -145,10 +145,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MandateBankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MandateBankAccount + * @throws JacksonException if the JSON string is invalid with respect to MandateBankAccount */ - public static MandateBankAccount fromJson(String jsonString) throws JsonProcessingException { + public static MandateBankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateBankAccount.class); } @@ -157,7 +156,7 @@ public static MandateBankAccount fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java index bf95a3302..bcc66dd13 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandateBankAccountAccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -60,9 +59,9 @@ public MandateBankAccountAccountIdentificationSerializer() { public void serialize( MandateBankAccountAccountIdentification value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -78,12 +77,11 @@ public MandateBankAccountAccountIdentificationDeserializer(Class vc) { @Override public MandateBankAccountAccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize UKLocalMandateAccountIdentification try { boolean attemptParsing = true; @@ -97,8 +95,7 @@ public MandateBankAccountAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalMandateAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalMandateAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -119,7 +116,8 @@ public MandateBankAccountAccountIdentification deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for MandateBankAccountAccountIdentification: %d classes match result, expected 1", match)); @@ -128,9 +126,8 @@ public MandateBankAccountAccountIdentification deserialize( /** Handle deserialization of the 'null' value. */ @Override public MandateBankAccountAccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "MandateBankAccountAccountIdentification cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "MandateBankAccountAccountIdentification cannot be null"); } } @@ -224,7 +221,7 @@ public static MandateBankAccountAccountIdentification fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationData.java index bd9356d43..3e1caedfb 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandateNotificationData */ @JsonPropertyOrder({ @@ -141,10 +141,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MandateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MandateNotificationData + * @throws JacksonException if the JSON string is invalid with respect to MandateNotificationData */ - public static MandateNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static MandateNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateNotificationData.class); } @@ -153,7 +152,7 @@ public static MandateNotificationData fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationRequest.java index 2dd43a5fb..4a496fa66 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandateNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MandateNotificationRequest */ @JsonPropertyOrder({ @@ -268,11 +268,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MandateNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MandateNotificationRequest */ - public static MandateNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static MandateNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandateNotificationRequest.class); } @@ -281,7 +280,7 @@ public static MandateNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/MandatePartyIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/MandatePartyIdentification.java index 8441041f7..c994a2179 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/MandatePartyIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/MandatePartyIdentification.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MandatePartyIdentification */ @JsonPropertyOrder({MandatePartyIdentification.JSON_PROPERTY_FULL_NAME}) @@ -106,11 +106,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MandatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MandatePartyIdentification */ - public static MandatePartyIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static MandatePartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MandatePartyIdentification.class); } @@ -119,7 +118,7 @@ public static MandatePartyIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Name.java b/src/main/java/com/adyen/model/configurationwebhooks/Name.java index ce1fdf421..36fa84730 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Name.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Name.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -149,7 +149,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java index 7b908f52e..689b64f85 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationDataV2.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** NetworkTokenNotificationDataV2 */ @JsonPropertyOrder({ @@ -695,11 +695,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationDataV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenNotificationDataV2 */ - public static NetworkTokenNotificationDataV2 fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenNotificationDataV2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationDataV2.class); } @@ -708,7 +707,7 @@ public static NetworkTokenNotificationDataV2 fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java index e17f650ab..90df41c11 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NetworkTokenNotificationRequest */ @JsonPropertyOrder({ @@ -273,11 +273,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenNotificationRequest */ public static NetworkTokenNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenNotificationRequest.class); } @@ -286,7 +286,7 @@ public static NetworkTokenNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java index 60aa90363..61db2736d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRequestor.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenRequestor */ @JsonPropertyOrder({ @@ -141,10 +141,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenRequestor - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRequestor + * @throws JacksonException if the JSON string is invalid with respect to NetworkTokenRequestor */ - public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProcessingException { + public static NetworkTokenRequestor fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenRequestor.class); } @@ -153,7 +152,7 @@ public static NetworkTokenRequestor fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java index 6cb95aa83..592b22e06 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenRiskRuleData */ @JsonPropertyOrder({ @@ -258,11 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NetworkTokenRiskRuleData + * @throws JacksonException if the JSON string is invalid with respect to NetworkTokenRiskRuleData */ - public static NetworkTokenRiskRuleData fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenRiskRuleData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleData.class); } @@ -271,7 +269,7 @@ public static NetworkTokenRiskRuleData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java index 4a5f85e4f..d21178d5d 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenRiskRuleSource.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenRiskRuleSource */ @JsonPropertyOrder({ @@ -159,11 +159,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenRiskRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenRiskRuleSource */ - public static NetworkTokenRiskRuleSource fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenRiskRuleSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenRiskRuleSource.class); } @@ -172,7 +171,7 @@ public static NetworkTokenRiskRuleSource fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java index 3a6444eeb..015920fe2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTransactionRulesResult.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** NetworkTokenTransactionRulesResult */ @JsonPropertyOrder({ @@ -253,11 +253,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenTransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenTransactionRulesResult */ public static NetworkTokenTransactionRulesResult fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenTransactionRulesResult.class); } @@ -266,7 +266,7 @@ public static NetworkTokenTransactionRulesResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java index b9e7c9203..c9592bab3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/NetworkTokenTriggeredRiskRule.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NetworkTokenTriggeredRiskRule */ @JsonPropertyOrder({ @@ -187,11 +187,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkTokenTriggeredRiskRule - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NetworkTokenTriggeredRiskRule */ - public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) - throws JsonProcessingException { + public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkTokenTriggeredRiskRule.class); } @@ -200,7 +199,7 @@ public static NetworkTokenTriggeredRiskRule fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java index 576c8b070..2447769e4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrument.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -973,9 +973,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -984,7 +984,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index f97c3213d..45992bffe 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -11,19 +11,6 @@ package com.adyen.model.configurationwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -61,9 +60,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { public void serialize( PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -79,12 +78,11 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Cl @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize IbanAccountIdentification try { boolean attemptParsing = true; @@ -98,8 +96,7 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -118,7 +115,8 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); @@ -127,10 +125,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( /** Handle deserialization of the 'null' value. */ @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from( + ctxt, "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); } } @@ -226,7 +223,7 @@ public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJso * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java index 3d37771ab..49ba076f9 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentInstrumentNotificationData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrumentNotificationData */ @JsonPropertyOrder({ @@ -145,11 +145,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentNotificationData */ public static PaymentInstrumentNotificationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentNotificationData.class); } @@ -158,7 +158,7 @@ public static PaymentInstrumentNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java index 09d8479b5..04dbd8577 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PaymentNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentNotificationRequest */ @JsonPropertyOrder({ @@ -270,11 +270,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentNotificationRequest */ - public static PaymentNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentNotificationRequest.class); } @@ -283,7 +282,7 @@ public static PaymentNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBANotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBANotificationRequest.java index 41c694f4e..19beb7076 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBANotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBANotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutScheduleBANotificationRequest */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutScheduleBANotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutScheduleBANotificationRequest */ public static PayoutScheduleBANotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleBANotificationRequest.class); } @@ -291,7 +291,7 @@ public static PayoutScheduleBANotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBPNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBPNotificationRequest.java index 2fd1d4f83..48c4fe8e5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBPNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleBPNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutScheduleBPNotificationRequest */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutScheduleBPNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutScheduleBPNotificationRequest */ public static PayoutScheduleBPNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleBPNotificationRequest.class); } @@ -291,7 +291,7 @@ public static PayoutScheduleBPNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleStateNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleStateNotificationRequest.java index 2d26f563a..781edeca3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleStateNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PayoutScheduleStateNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutScheduleStateNotificationRequest */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutScheduleStateNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutScheduleStateNotificationRequest */ public static PayoutScheduleStateNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleStateNotificationRequest.class); } @@ -291,7 +291,7 @@ public static PayoutScheduleStateNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PayoutStateWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/PayoutStateWebhookData.java index 904668564..7e0aa31f8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PayoutStateWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PayoutStateWebhookData.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutStateWebhookData */ @JsonPropertyOrder({ @@ -360,10 +360,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutStateWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutStateWebhookData + * @throws JacksonException if the JSON string is invalid with respect to PayoutStateWebhookData */ - public static PayoutStateWebhookData fromJson(String jsonString) throws JsonProcessingException { + public static PayoutStateWebhookData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutStateWebhookData.class); } @@ -372,7 +371,7 @@ public static PayoutStateWebhookData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java index 08460eb12..2162ca5f1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Phone.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Phone.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Phone */ @JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) @@ -191,9 +191,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Phone - * @throws JsonProcessingException if the JSON string is invalid with respect to Phone + * @throws JacksonException if the JSON string is invalid with respect to Phone */ - public static Phone fromJson(String jsonString) throws JsonProcessingException { + public static Phone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Phone.class); } @@ -202,7 +202,7 @@ public static Phone fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java index d746ec95a..533b6d90f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PhoneNumber.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PhoneNumber */ @JsonPropertyOrder({ @@ -241,9 +241,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PhoneNumber - * @throws JsonProcessingException if the JSON string is invalid with respect to PhoneNumber + * @throws JacksonException if the JSON string is invalid with respect to PhoneNumber */ - public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { + public static PhoneNumber fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } @@ -252,7 +252,7 @@ public static PhoneNumber fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java index 3fb41e70d..85f852488 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPaymentConfiguration.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PlatformPaymentConfiguration */ @JsonPropertyOrder({ @@ -177,11 +177,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PlatformPaymentConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PlatformPaymentConfiguration */ - public static PlatformPaymentConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static PlatformPaymentConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPaymentConfiguration.class); } @@ -190,7 +189,7 @@ public static PlatformPaymentConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPayoutConfigWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPayoutConfigWebhookData.java index 058413abd..8539d411e 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/PlatformPayoutConfigWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/PlatformPayoutConfigWebhookData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PlatformPayoutConfigWebhookData */ @JsonPropertyOrder({ @@ -665,11 +665,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PlatformPayoutConfigWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PlatformPayoutConfigWebhookData */ public static PlatformPayoutConfigWebhookData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPayoutConfigWebhookData.class); } @@ -678,7 +678,7 @@ public static PlatformPayoutConfigWebhookData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java index 92f4cef85..3662570f2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/RemediatingAction.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RemediatingAction */ @JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RemediatingAction - * @throws JsonProcessingException if the JSON string is invalid with respect to RemediatingAction + * @throws JacksonException if the JSON string is invalid with respect to RemediatingAction */ - public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { + public static RemediatingAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } @@ -149,7 +149,7 @@ public static RemediatingAction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java index 90f36aea5..82dd421d2 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java index a015a573b..53850d4d9 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ResultDetails.java b/src/main/java/com/adyen/model/configurationwebhooks/ResultDetails.java index d037d3875..0c6c01af1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ResultDetails.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ResultDetails.java @@ -15,8 +15,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResultDetails */ @JsonPropertyOrder({ @@ -182,9 +182,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResultDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to ResultDetails + * @throws JacksonException if the JSON string is invalid with respect to ResultDetails */ - public static ResultDetails fromJson(String jsonString) throws JsonProcessingException { + public static ResultDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResultDetails.class); } @@ -193,7 +193,7 @@ public static ResultDetails fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java index e25fb7b3e..e79c9ffb3 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ScoreNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ScoreNotificationRequest */ @JsonPropertyOrder({ @@ -266,11 +266,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ScoreNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ScoreNotificationRequest + * @throws JacksonException if the JSON string is invalid with respect to ScoreNotificationRequest */ - public static ScoreNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScoreNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScoreNotificationRequest.class); } @@ -279,7 +277,7 @@ public static ScoreNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java index 55bcb7120..587457a80 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SweepConfigurationNotificationData */ @JsonPropertyOrder({ @@ -187,11 +187,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SweepConfigurationNotificationData */ public static SweepConfigurationNotificationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationData.class); } @@ -200,7 +200,7 @@ public static SweepConfigurationNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java index fe3140ab2..e1b000c1c 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SweepConfigurationNotificationRequest */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SweepConfigurationNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SweepConfigurationNotificationRequest */ public static SweepConfigurationNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepConfigurationNotificationRequest.class); } @@ -291,7 +291,7 @@ public static SweepConfigurationNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java index 56b9b42ae..9eb4b6ca5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SweepConfigurationV2 */ @JsonPropertyOrder({ @@ -1201,10 +1201,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SweepConfigurationV2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SweepConfigurationV2 + * @throws JacksonException if the JSON string is invalid with respect to SweepConfigurationV2 */ - public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException { + public static SweepConfigurationV2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepConfigurationV2.class); } @@ -1213,7 +1212,7 @@ public static SweepConfigurationV2 fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java index 3334d36cb..bdca48aaa 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepCounterparty.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SweepCounterparty */ @JsonPropertyOrder({ @@ -266,9 +266,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SweepCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepCounterparty + * @throws JacksonException if the JSON string is invalid with respect to SweepCounterparty */ - public static SweepCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static SweepCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepCounterparty.class); } @@ -277,7 +277,7 @@ public static SweepCounterparty fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java index 34cb25fa4..12479a395 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepSchedule.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SweepSchedule */ @JsonPropertyOrder({SweepSchedule.JSON_PROPERTY_CRON_EXPRESSION, SweepSchedule.JSON_PROPERTY_TYPE}) @@ -264,9 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SweepSchedule - * @throws JsonProcessingException if the JSON string is invalid with respect to SweepSchedule + * @throws JacksonException if the JSON string is invalid with respect to SweepSchedule */ - public static SweepSchedule fromJson(String jsonString) throws JsonProcessingException { + public static SweepSchedule fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SweepSchedule.class); } @@ -275,7 +275,7 @@ public static SweepSchedule fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java index e5ec7a521..6a94e3e29 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TokenAuthentication.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TokenAuthentication */ @JsonPropertyOrder({ @@ -147,10 +147,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenAuthentication - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TokenAuthentication + * @throws JacksonException if the JSON string is invalid with respect to TokenAuthentication */ - public static TokenAuthentication fromJson(String jsonString) throws JsonProcessingException { + public static TokenAuthentication fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TokenAuthentication.class); } @@ -159,7 +158,7 @@ public static TokenAuthentication fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationEventRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationEventRequest.java index bf7eacdfa..5f404fda4 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationEventRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationEventRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TopUpConfigurationEventRequest */ @JsonPropertyOrder({ @@ -275,11 +275,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TopUpConfigurationEventRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TopUpConfigurationEventRequest */ - public static TopUpConfigurationEventRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TopUpConfigurationEventRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TopUpConfigurationEventRequest.class); } @@ -288,7 +287,7 @@ public static TopUpConfigurationEventRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationUpdatedEventRequest.java b/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationUpdatedEventRequest.java index 755ee378d..560853597 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationUpdatedEventRequest.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TopUpConfigurationUpdatedEventRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TopUpConfigurationUpdatedEventRequest */ @JsonPropertyOrder({ @@ -272,11 +272,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TopUpConfigurationUpdatedEventRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TopUpConfigurationUpdatedEventRequest */ public static TopUpConfigurationUpdatedEventRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TopUpConfigurationUpdatedEventRequest.class); } @@ -285,7 +285,7 @@ public static TopUpConfigurationUpdatedEventRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TopUpUpdatedWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/TopUpUpdatedWebhookData.java index 8687ad64f..24c5b9f87 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TopUpUpdatedWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TopUpUpdatedWebhookData.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** TopUpUpdatedWebhookData */ @JsonPropertyOrder({ @@ -274,10 +274,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TopUpUpdatedWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TopUpUpdatedWebhookData + * @throws JacksonException if the JSON string is invalid with respect to TopUpUpdatedWebhookData */ - public static TopUpUpdatedWebhookData fromJson(String jsonString) throws JsonProcessingException { + public static TopUpUpdatedWebhookData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TopUpUpdatedWebhookData.class); } @@ -286,7 +285,7 @@ public static TopUpUpdatedWebhookData fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/TopUpWebhookData.java b/src/main/java/com/adyen/model/configurationwebhooks/TopUpWebhookData.java index a9668cb0b..e6d5e6b38 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/TopUpWebhookData.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/TopUpWebhookData.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** TopUpWebhookData */ @JsonPropertyOrder({ @@ -273,9 +273,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TopUpWebhookData - * @throws JsonProcessingException if the JSON string is invalid with respect to TopUpWebhookData + * @throws JacksonException if the JSON string is invalid with respect to TopUpWebhookData */ - public static TopUpWebhookData fromJson(String jsonString) throws JsonProcessingException { + public static TopUpWebhookData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TopUpWebhookData.class); } @@ -284,7 +284,7 @@ public static TopUpWebhookData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/UKLocalMandateAccountIdentification.java b/src/main/java/com/adyen/model/configurationwebhooks/UKLocalMandateAccountIdentification.java index b1ffc579a..69ffc1c3f 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/UKLocalMandateAccountIdentification.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/UKLocalMandateAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKLocalMandateAccountIdentification */ @JsonPropertyOrder({ @@ -233,11 +233,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UKLocalMandateAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalMandateAccountIdentification */ public static UKLocalMandateAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalMandateAccountIdentification.class); } @@ -246,7 +246,7 @@ public static UKLocalMandateAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java index 6d65ae64c..fb7a630b8 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/ValidationFacts.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ValidationFacts */ @JsonPropertyOrder({ @@ -260,9 +260,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ValidationFacts - * @throws JsonProcessingException if the JSON string is invalid with respect to ValidationFacts + * @throws JacksonException if the JSON string is invalid with respect to ValidationFacts */ - public static ValidationFacts fromJson(String jsonString) throws JsonProcessingException { + public static ValidationFacts fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValidationFacts.class); } @@ -271,7 +271,7 @@ public static ValidationFacts fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java index 1c116b82e..9dc3f13b1 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationDeadline.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationDeadline */ @JsonPropertyOrder({ @@ -362,10 +362,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JacksonException if the JSON string is invalid with respect to VerificationDeadline */ - public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { + public static VerificationDeadline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } @@ -374,7 +373,7 @@ public static VerificationDeadline fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java index 8089e1975..aef6dcc94 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationError.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationError */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerificationError - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationError + * @throws JacksonException if the JSON string is invalid with respect to VerificationError */ - public static VerificationError fromJson(String jsonString) throws JsonProcessingException { + public static VerificationError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } @@ -554,7 +554,7 @@ public static VerificationError fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java index 111126f9f..7a9c40ac5 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/VerificationErrorRecursive.java @@ -17,12 +17,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationErrorRecursive */ @JsonPropertyOrder({ @@ -499,11 +499,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } @@ -512,7 +511,7 @@ public static VerificationErrorRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java index f94bfe949..ccab53040 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Wallet */ @JsonPropertyOrder({ @@ -519,9 +519,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Wallet - * @throws JsonProcessingException if the JSON string is invalid with respect to Wallet + * @throws JacksonException if the JSON string is invalid with respect to Wallet */ - public static Wallet fromJson(String jsonString) throws JsonProcessingException { + public static Wallet fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Wallet.class); } @@ -530,7 +530,7 @@ public static Wallet fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookAmount.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookAmount.java index 6c9757d66..d241338be 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookAmount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookAmount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookAmount */ @JsonPropertyOrder({WebhookAmount.JSON_PROPERTY_CURRENCY, WebhookAmount.JSON_PROPERTY_VALUE}) @@ -147,9 +147,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to WebhookAmount + * @throws JacksonException if the JSON string is invalid with respect to WebhookAmount */ - public static WebhookAmount fromJson(String jsonString) throws JsonProcessingException { + public static WebhookAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookAmount.class); } @@ -158,7 +158,7 @@ public static WebhookAmount fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpAmount.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpAmount.java index bc1ceb8bb..f69dfdb9a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpAmount.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpAmount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookTopUpAmount */ @JsonPropertyOrder({ @@ -141,10 +141,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WebhookTopUpAmount + * @throws JacksonException if the JSON string is invalid with respect to WebhookTopUpAmount */ - public static WebhookTopUpAmount fromJson(String jsonString) throws JsonProcessingException { + public static WebhookTopUpAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpAmount.class); } @@ -153,7 +152,7 @@ public static WebhookTopUpAmount fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfiguration.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfiguration.java index 7bce3eac6..971ff1e26 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfiguration.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfiguration.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WebhookTopUpConfiguration */ @JsonPropertyOrder({ @@ -470,11 +470,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * WebhookTopUpConfiguration */ - public static WebhookTopUpConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static WebhookTopUpConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpConfiguration.class); } @@ -483,7 +482,7 @@ public static WebhookTopUpConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfigurationUpdated.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfigurationUpdated.java index 61fa2d720..dd07d671a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfigurationUpdated.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpConfigurationUpdated.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WebhookTopUpConfigurationUpdated */ @JsonPropertyOrder({ @@ -601,11 +601,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpConfigurationUpdated - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * WebhookTopUpConfigurationUpdated */ public static WebhookTopUpConfigurationUpdated fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpConfigurationUpdated.class); } @@ -614,7 +614,7 @@ public static WebhookTopUpConfigurationUpdated fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpCounterparty.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpCounterparty.java index db6bfa186..7e22683b6 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpCounterparty.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpCounterparty.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookTopUpCounterparty */ @JsonPropertyOrder({WebhookTopUpCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID}) @@ -105,11 +105,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WebhookTopUpCounterparty + * @throws JacksonException if the JSON string is invalid with respect to WebhookTopUpCounterparty */ - public static WebhookTopUpCounterparty fromJson(String jsonString) - throws JsonProcessingException { + public static WebhookTopUpCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpCounterparty.class); } @@ -118,7 +116,7 @@ public static WebhookTopUpCounterparty fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpMandate.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpMandate.java index 62fd29d4c..e3a030370 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpMandate.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpMandate.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookTopUpMandate */ @JsonPropertyOrder({ @@ -148,10 +148,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpMandate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WebhookTopUpMandate + * @throws JacksonException if the JSON string is invalid with respect to WebhookTopUpMandate */ - public static WebhookTopUpMandate fromJson(String jsonString) throws JsonProcessingException { + public static WebhookTopUpMandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpMandate.class); } @@ -160,7 +159,7 @@ public static WebhookTopUpMandate fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpTrigger.java b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpTrigger.java index 5f26fedf2..7d065dedf 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpTrigger.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/WebhookTopUpTrigger.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WebhookTopUpTrigger */ @JsonPropertyOrder({ @@ -207,10 +207,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of WebhookTopUpTrigger - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WebhookTopUpTrigger + * @throws JacksonException if the JSON string is invalid with respect to WebhookTopUpTrigger */ - public static WebhookTopUpTrigger fromJson(String jsonString) throws JsonProcessingException { + public static WebhookTopUpTrigger fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookTopUpTrigger.class); } @@ -219,7 +218,7 @@ public static WebhookTopUpTrigger fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/dataprotection/JSON.java b/src/main/java/com/adyen/model/dataprotection/JSON.java index 225bdcf07..3c1b7372a 100644 --- a/src/main/java/com/adyen/model/dataprotection/JSON.java +++ b/src/main/java/com/adyen/model/dataprotection/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/dataprotection/ServiceError.java b/src/main/java/com/adyen/model/dataprotection/ServiceError.java index 2f11aa96e..ec150c9d7 100644 --- a/src/main/java/com/adyen/model/dataprotection/ServiceError.java +++ b/src/main/java/com/adyen/model/dataprotection/ServiceError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -373,7 +373,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java index 444c22a5b..98e824164 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureByPspReferenceRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SubjectErasureByPspReferenceRequest */ @JsonPropertyOrder({ @@ -284,11 +284,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubjectErasureByPspReferenceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SubjectErasureByPspReferenceRequest */ public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SubjectErasureByPspReferenceRequest.class); } @@ -297,7 +297,7 @@ public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java index 273121417..33e59c062 100644 --- a/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java +++ b/src/main/java/com/adyen/model/dataprotection/SubjectErasureResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SubjectErasureResponse */ @JsonPropertyOrder({SubjectErasureResponse.JSON_PROPERTY_RESULT}) @@ -207,10 +207,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubjectErasureResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SubjectErasureResponse + * @throws JacksonException if the JSON string is invalid with respect to SubjectErasureResponse */ - public static SubjectErasureResponse fromJson(String jsonString) throws JsonProcessingException { + public static SubjectErasureResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubjectErasureResponse.class); } @@ -219,7 +218,7 @@ public static SubjectErasureResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java index 3a420ffe0..0a22a60fc 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AcceptDisputeRequest */ @JsonPropertyOrder({ @@ -221,10 +221,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcceptDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptDisputeRequest + * @throws JacksonException if the JSON string is invalid with respect to AcceptDisputeRequest */ - public static AcceptDisputeRequest fromJson(String jsonString) throws JsonProcessingException { + public static AcceptDisputeRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcceptDisputeRequest.class); } @@ -233,7 +232,7 @@ public static AcceptDisputeRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java index 5e24ec4ad..d9238428a 100644 --- a/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/AcceptDisputeResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AcceptDisputeResponse */ @JsonPropertyOrder({AcceptDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) @@ -161,10 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcceptDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AcceptDisputeResponse + * @throws JacksonException if the JSON string is invalid with respect to AcceptDisputeResponse */ - public static AcceptDisputeResponse fromJson(String jsonString) throws JsonProcessingException { + public static AcceptDisputeResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcceptDisputeResponse.class); } @@ -173,7 +172,7 @@ public static AcceptDisputeResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java index 6b8af4b17..a8d582150 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DefendDisputeRequest */ @JsonPropertyOrder({ @@ -271,10 +271,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefendDisputeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefendDisputeRequest + * @throws JacksonException if the JSON string is invalid with respect to DefendDisputeRequest */ - public static DefendDisputeRequest fromJson(String jsonString) throws JsonProcessingException { + public static DefendDisputeRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefendDisputeRequest.class); } @@ -283,7 +282,7 @@ public static DefendDisputeRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java index e3e627320..e09edfa29 100644 --- a/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefendDisputeResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DefendDisputeResponse */ @JsonPropertyOrder({DefendDisputeResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) @@ -161,10 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefendDisputeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefendDisputeResponse + * @throws JacksonException if the JSON string is invalid with respect to DefendDisputeResponse */ - public static DefendDisputeResponse fromJson(String jsonString) throws JsonProcessingException { + public static DefendDisputeResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefendDisputeResponse.class); } @@ -173,7 +172,7 @@ public static DefendDisputeResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocument.java b/src/main/java/com/adyen/model/disputes/DefenseDocument.java index 5474f2d5a..8e7d6f2ed 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocument.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocument.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** DefenseDocument */ @JsonPropertyOrder({ @@ -266,9 +266,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefenseDocument - * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseDocument + * @throws JacksonException if the JSON string is invalid with respect to DefenseDocument */ - public static DefenseDocument fromJson(String jsonString) throws JsonProcessingException { + public static DefenseDocument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefenseDocument.class); } @@ -277,7 +277,7 @@ public static DefenseDocument fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java index 5de454a81..64b46200f 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java +++ b/src/main/java/com/adyen/model/disputes/DefenseDocumentType.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DefenseDocumentType */ @JsonPropertyOrder({ @@ -301,10 +301,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefenseDocumentType - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseDocumentType + * @throws JacksonException if the JSON string is invalid with respect to DefenseDocumentType */ - public static DefenseDocumentType fromJson(String jsonString) throws JsonProcessingException { + public static DefenseDocumentType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefenseDocumentType.class); } @@ -313,7 +312,7 @@ public static DefenseDocumentType fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReason.java b/src/main/java/com/adyen/model/disputes/DefenseReason.java index 5b738594c..96fc19679 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReason.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReason.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DefenseReason */ @JsonPropertyOrder({ @@ -283,9 +283,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefenseReason - * @throws JsonProcessingException if the JSON string is invalid with respect to DefenseReason + * @throws JacksonException if the JSON string is invalid with respect to DefenseReason */ - public static DefenseReason fromJson(String jsonString) throws JsonProcessingException { + public static DefenseReason fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefenseReason.class); } @@ -294,7 +294,7 @@ public static DefenseReason fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java index d24e3af7c..4355930c2 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DefenseReasonsRequest */ @JsonPropertyOrder({ @@ -221,10 +221,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefenseReasonsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseReasonsRequest + * @throws JacksonException if the JSON string is invalid with respect to DefenseReasonsRequest */ - public static DefenseReasonsRequest fromJson(String jsonString) throws JsonProcessingException { + public static DefenseReasonsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefenseReasonsRequest.class); } @@ -233,7 +232,7 @@ public static DefenseReasonsRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java index d398208b4..2c697fd80 100644 --- a/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java +++ b/src/main/java/com/adyen/model/disputes/DefenseReasonsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DefenseReasonsResponse */ @JsonPropertyOrder({ @@ -222,10 +222,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefenseReasonsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DefenseReasonsResponse + * @throws JacksonException if the JSON string is invalid with respect to DefenseReasonsResponse */ - public static DefenseReasonsResponse fromJson(String jsonString) throws JsonProcessingException { + public static DefenseReasonsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefenseReasonsResponse.class); } @@ -234,7 +233,7 @@ public static DefenseReasonsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java index efc94985f..9d7793884 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeleteDefenseDocumentRequest */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DeleteDefenseDocumentRequest */ - public static DeleteDefenseDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteDefenseDocumentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentRequest.class); } @@ -290,7 +289,7 @@ public static DeleteDefenseDocumentRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java index 770d3bbc0..db252078c 100644 --- a/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/DeleteDefenseDocumentResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeleteDefenseDocumentResponse */ @JsonPropertyOrder({DeleteDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) @@ -165,11 +165,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeleteDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DeleteDefenseDocumentResponse */ - public static DeleteDefenseDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteDefenseDocumentResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteDefenseDocumentResponse.class); } @@ -178,7 +177,7 @@ public static DeleteDefenseDocumentResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java index a6de2b17b..6627d2e3b 100644 --- a/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java +++ b/src/main/java/com/adyen/model/disputes/DisputeServiceResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisputeServiceResult */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisputeServiceResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisputeServiceResult + * @throws JacksonException if the JSON string is invalid with respect to DisputeServiceResult */ - public static DisputeServiceResult fromJson(String jsonString) throws JsonProcessingException { + public static DisputeServiceResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisputeServiceResult.class); } @@ -220,7 +219,7 @@ public static DisputeServiceResult fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/JSON.java b/src/main/java/com/adyen/model/disputes/JSON.java index 7b749e401..73e2b3c4a 100644 --- a/src/main/java/com/adyen/model/disputes/JSON.java +++ b/src/main/java/com/adyen/model/disputes/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/disputes/ServiceError.java b/src/main/java/com/adyen/model/disputes/ServiceError.java index 3cf347c9d..dcc5737d8 100644 --- a/src/main/java/com/adyen/model/disputes/ServiceError.java +++ b/src/main/java/com/adyen/model/disputes/ServiceError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -373,7 +373,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java index c970cc853..a35c997d1 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SupplyDefenseDocumentRequest */ @JsonPropertyOrder({ @@ -285,11 +285,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SupplyDefenseDocumentRequest */ - public static SupplyDefenseDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SupplyDefenseDocumentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentRequest.class); } @@ -298,7 +297,7 @@ public static SupplyDefenseDocumentRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java index b755b48ec..3eb500a46 100644 --- a/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java +++ b/src/main/java/com/adyen/model/disputes/SupplyDefenseDocumentResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SupplyDefenseDocumentResponse */ @JsonPropertyOrder({SupplyDefenseDocumentResponse.JSON_PROPERTY_DISPUTE_SERVICE_RESULT}) @@ -165,11 +165,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SupplyDefenseDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SupplyDefenseDocumentResponse */ - public static SupplyDefenseDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SupplyDefenseDocumentResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SupplyDefenseDocumentResponse.class); } @@ -178,7 +177,7 @@ public static SupplyDefenseDocumentResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputewebhooks/Amount.java b/src/main/java/com/adyen/model/disputewebhooks/Amount.java index 9abc3c693..ad9fc0b08 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/Amount.java +++ b/src/main/java/com/adyen/model/disputewebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java index 0efc4d399..af2239411 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/disputewebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java index ec90f9371..36de2d834 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeEventNotification.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DisputeEventNotification */ @JsonPropertyOrder({ @@ -528,11 +528,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DisputeEventNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisputeEventNotification + * @throws JacksonException if the JSON string is invalid with respect to DisputeEventNotification */ - public static DisputeEventNotification fromJson(String jsonString) - throws JsonProcessingException { + public static DisputeEventNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisputeEventNotification.class); } @@ -541,7 +539,7 @@ public static DisputeEventNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java index f3ce75be5..613920320 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java +++ b/src/main/java/com/adyen/model/disputewebhooks/DisputeNotificationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DisputeNotificationRequest */ @JsonPropertyOrder({ @@ -186,11 +186,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DisputeNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DisputeNotificationRequest */ - public static DisputeNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DisputeNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisputeNotificationRequest.class); } @@ -199,7 +198,7 @@ public static DisputeNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/disputewebhooks/JSON.java b/src/main/java/com/adyen/model/disputewebhooks/JSON.java index b144e9daa..473922caa 100644 --- a/src/main/java/com/adyen/model/disputewebhooks/JSON.java +++ b/src/main/java/com/adyen/model/disputewebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java index 6e284481f..98d459b0f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AULocalAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } @@ -318,7 +317,7 @@ public static AULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java index 22748c8da..6d4b961e7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AcceptTermsOfServiceRequest */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AcceptTermsOfServiceRequest */ - public static AcceptTermsOfServiceRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AcceptTermsOfServiceRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceRequest.class); } @@ -242,7 +241,7 @@ public static AcceptTermsOfServiceRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java index acf2696a2..530100d4f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AcceptTermsOfServiceResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AcceptTermsOfServiceResponse */ @JsonPropertyOrder({ @@ -519,11 +519,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcceptTermsOfServiceResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AcceptTermsOfServiceResponse */ - public static AcceptTermsOfServiceResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AcceptTermsOfServiceResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcceptTermsOfServiceResponse.class); } @@ -532,7 +531,7 @@ public static AcceptTermsOfServiceResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java index d2e3813de..6a3a8cdb6 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/AdditionalBankIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentification */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } @@ -335,7 +334,7 @@ public static AdditionalBankIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Address.java b/src/main/java/com/adyen/model/legalentitymanagement/Address.java index bf418f961..3b2fecdad 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Address.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -454,9 +454,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -465,7 +465,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java index cb60945b2..21f719835 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Amount.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -216,7 +216,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java index feb1b3bf5..b58303bd9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Attachment.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** Attachment */ @JsonPropertyOrder({ @@ -401,9 +401,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Attachment - * @throws JsonProcessingException if the JSON string is invalid with respect to Attachment + * @throws JacksonException if the JSON string is invalid with respect to Attachment */ - public static Attachment fromJson(String jsonString) throws JsonProcessingException { + public static Attachment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Attachment.class); } @@ -412,7 +412,7 @@ public static Attachment fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java index 5c1c4a3eb..1b527e176 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountInfo */ @JsonPropertyOrder({ @@ -367,9 +367,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountInfo + * @throws JacksonException if the JSON string is invalid with respect to BankAccountInfo */ - public static BankAccountInfo fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountInfo.class); } @@ -378,7 +378,7 @@ public static BankAccountInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java index 9c2096508..7cb2bdf71 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfoAccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.legalentitymanagement; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -56,9 +55,11 @@ public BankAccountInfoAccountIdentificationSerializer() { @Override public void serialize( - BankAccountInfoAccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + BankAccountInfoAccountIdentification value, + JsonGenerator jgen, + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -74,12 +75,11 @@ public BankAccountInfoAccountIdentificationDeserializer(Class vc) { @Override public BankAccountInfoAccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AULocalAccountIdentification try { boolean attemptParsing = true; @@ -93,8 +93,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, AULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -120,8 +119,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CALocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -147,8 +145,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -174,8 +171,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, DKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -201,8 +197,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -228,8 +223,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -255,8 +249,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -282,8 +275,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NOLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -309,8 +301,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -336,8 +327,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NumberAndBicAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -364,8 +354,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, PLLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -391,8 +380,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SELocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -418,8 +406,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SGLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -445,8 +432,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -472,8 +458,7 @@ public BankAccountInfoAccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, USLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -491,7 +476,8 @@ public BankAccountInfoAccountIdentification deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for BankAccountInfoAccountIdentification: %d classes match result, expected 1", match)); @@ -500,9 +486,8 @@ public BankAccountInfoAccountIdentification deserialize( /** Handle deserialization of the 'null' value. */ @Override public BankAccountInfoAccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountInfoAccountIdentification cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "BankAccountInfoAccountIdentification cannot be null"); } } @@ -912,7 +897,7 @@ public static BankAccountInfoAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java index 1ec6270ce..0b63d46ab 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BirthData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BirthData */ @JsonPropertyOrder({BirthData.JSON_PROPERTY_DATE_OF_BIRTH}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BirthData - * @throws JsonProcessingException if the JSON string is invalid with respect to BirthData + * @throws JacksonException if the JSON string is invalid with respect to BirthData */ - public static BirthData fromJson(String jsonString) throws JsonProcessingException { + public static BirthData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BirthData.class); } @@ -169,7 +169,7 @@ public static BirthData fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java index ff9f4fb89..111296b0e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BusinessLine */ @JsonPropertyOrder({ @@ -718,9 +718,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BusinessLine - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLine + * @throws JacksonException if the JSON string is invalid with respect to BusinessLine */ - public static BusinessLine fromJson(String jsonString) throws JsonProcessingException { + public static BusinessLine fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessLine.class); } @@ -729,7 +729,7 @@ public static BusinessLine fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java index a22f260a9..9545e0dd9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfo.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BusinessLineInfo */ @JsonPropertyOrder({ @@ -632,9 +632,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BusinessLineInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLineInfo + * @throws JacksonException if the JSON string is invalid with respect to BusinessLineInfo */ - public static BusinessLineInfo fromJson(String jsonString) throws JsonProcessingException { + public static BusinessLineInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessLineInfo.class); } @@ -643,7 +643,7 @@ public static BusinessLineInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java index ff07383d7..5b7e1fce1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLineInfoUpdate.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BusinessLineInfoUpdate */ @JsonPropertyOrder({ @@ -448,10 +448,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BusinessLineInfoUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BusinessLineInfoUpdate + * @throws JacksonException if the JSON string is invalid with respect to BusinessLineInfoUpdate */ - public static BusinessLineInfoUpdate fromJson(String jsonString) throws JsonProcessingException { + public static BusinessLineInfoUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessLineInfoUpdate.class); } @@ -460,7 +459,7 @@ public static BusinessLineInfoUpdate fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java index 16bbc32e6..25a23dab3 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/BusinessLines.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BusinessLines */ @JsonPropertyOrder({BusinessLines.JSON_PROPERTY_BUSINESS_LINES}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BusinessLines - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessLines + * @throws JacksonException if the JSON string is invalid with respect to BusinessLines */ - public static BusinessLines fromJson(String jsonString) throws JsonProcessingException { + public static BusinessLines fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessLines.class); } @@ -179,7 +179,7 @@ public static BusinessLines fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java index abc2e92f5..108a7957e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CALocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CALocalAccountIdentification */ @JsonPropertyOrder({ @@ -452,11 +452,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } @@ -465,7 +464,7 @@ public static CALocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java index 54f503156..5fe7afdc9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -324,11 +324,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } @@ -337,7 +336,7 @@ public static CZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java index d27b2a6e8..8b517ef8c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CalculatePciStatusRequest */ @JsonPropertyOrder({CalculatePciStatusRequest.JSON_PROPERTY_ADDITIONAL_SALES_CHANNELS}) @@ -249,11 +249,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CalculatePciStatusRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CalculatePciStatusRequest */ - public static CalculatePciStatusRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CalculatePciStatusRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusRequest.class); } @@ -262,7 +261,7 @@ public static CalculatePciStatusRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java index ecead0c7c..f64060e95 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculatePciStatusResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CalculatePciStatusResponse */ @JsonPropertyOrder({CalculatePciStatusResponse.JSON_PROPERTY_SIGNING_REQUIRED}) @@ -165,11 +165,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CalculatePciStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CalculatePciStatusResponse */ - public static CalculatePciStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CalculatePciStatusResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CalculatePciStatusResponse.class); } @@ -178,7 +177,7 @@ public static CalculatePciStatusResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java index 90e4575fa..ceff143b1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CalculateTermsOfServiceStatusResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CalculateTermsOfServiceStatusResponse */ @JsonPropertyOrder({CalculateTermsOfServiceStatusResponse.JSON_PROPERTY_TERMS_OF_SERVICE_TYPES}) @@ -244,11 +244,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CalculateTermsOfServiceStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CalculateTermsOfServiceStatusResponse */ public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CalculateTermsOfServiceStatusResponse.class); } @@ -257,7 +257,7 @@ public static CalculateTermsOfServiceStatusResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java index 6b08c7961..d93b75cfa 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblem.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapabilityProblem */ @JsonPropertyOrder({ @@ -218,9 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblem - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblem + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblem */ - public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } @@ -229,7 +229,7 @@ public static CapabilityProblem fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java index e732310e7..9978b3ae1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntity.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntity */ @JsonPropertyOrder({ @@ -366,10 +366,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblemEntity */ - public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } @@ -378,7 +377,7 @@ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java index bf999277b..45df4d4d0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilityProblemEntityRecursive.java @@ -19,12 +19,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ @@ -324,11 +324,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CapabilityProblemEntityRecursive */ public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } @@ -337,7 +337,7 @@ public static CapabilityProblemEntityRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java index 23e1a2999..72d7dee06 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CapabilitySettings.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilitySettings */ @JsonPropertyOrder({ @@ -475,10 +475,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapabilitySettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilitySettings + * @throws JacksonException if the JSON string is invalid with respect to CapabilitySettings */ - public static CapabilitySettings fromJson(String jsonString) throws JsonProcessingException { + public static CapabilitySettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilitySettings.class); } @@ -487,7 +486,7 @@ public static CapabilitySettings fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java index 91a891e7e..144da95da 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/CheckTaxElectronicDeliveryConsentResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CheckTaxElectronicDeliveryConsentResponse */ @JsonPropertyOrder({CheckTaxElectronicDeliveryConsentResponse.JSON_PROPERTY_US1099K}) @@ -161,11 +161,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckTaxElectronicDeliveryConsentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CheckTaxElectronicDeliveryConsentResponse */ public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckTaxElectronicDeliveryConsentResponse.class); } @@ -174,7 +174,7 @@ public static CheckTaxElectronicDeliveryConsentResponse fromJson(String jsonStri * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java index 854c782d5..498a59833 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -304,11 +304,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } @@ -317,7 +316,7 @@ public static DKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java index 9597b3bbd..c014a9027 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DataReviewConfirmationResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DataReviewConfirmationResponse */ @JsonPropertyOrder({DataReviewConfirmationResponse.JSON_PROPERTY_DATA_REVIEWED_AT}) @@ -161,11 +161,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DataReviewConfirmationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DataReviewConfirmationResponse */ - public static DataReviewConfirmationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DataReviewConfirmationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DataReviewConfirmationResponse.class); } @@ -174,7 +173,7 @@ public static DataReviewConfirmationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Document.java b/src/main/java/com/adyen/model/legalentitymanagement/Document.java index 68e4db228..cd49ad311 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Document.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Document.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Document */ @JsonPropertyOrder({ @@ -918,9 +918,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Document - * @throws JsonProcessingException if the JSON string is invalid with respect to Document + * @throws JacksonException if the JSON string is invalid with respect to Document */ - public static Document fromJson(String jsonString) throws JsonProcessingException { + public static Document fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Document.class); } @@ -929,7 +929,7 @@ public static Document fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java index 81359027b..725a35d08 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentPage.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DocumentPage */ @JsonPropertyOrder({ @@ -303,9 +303,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DocumentPage - * @throws JsonProcessingException if the JSON string is invalid with respect to DocumentPage + * @throws JacksonException if the JSON string is invalid with respect to DocumentPage */ - public static DocumentPage fromJson(String jsonString) throws JsonProcessingException { + public static DocumentPage fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DocumentPage.class); } @@ -314,7 +314,7 @@ public static DocumentPage fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java index 58c1a1f7f..543d84cfb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/DocumentReference.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DocumentReference */ @JsonPropertyOrder({ @@ -473,9 +473,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DocumentReference - * @throws JsonProcessingException if the JSON string is invalid with respect to DocumentReference + * @throws JacksonException if the JSON string is invalid with respect to DocumentReference */ - public static DocumentReference fromJson(String jsonString) throws JsonProcessingException { + public static DocumentReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DocumentReference.class); } @@ -484,7 +484,7 @@ public static DocumentReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java index 6a67b37db..dca90cb60 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/EntityReference.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EntityReference */ @JsonPropertyOrder({EntityReference.JSON_PROPERTY_ID}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EntityReference - * @throws JsonProcessingException if the JSON string is invalid with respect to EntityReference + * @throws JacksonException if the JSON string is invalid with respect to EntityReference */ - public static EntityReference fromJson(String jsonString) throws JsonProcessingException { + public static EntityReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EntityReference.class); } @@ -169,7 +169,7 @@ public static EntityReference fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java index 8710ccc6f..e93249697 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/FinancialReport.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FinancialReport */ @JsonPropertyOrder({ @@ -420,9 +420,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FinancialReport - * @throws JsonProcessingException if the JSON string is invalid with respect to FinancialReport + * @throws JacksonException if the JSON string is invalid with respect to FinancialReport */ - public static FinancialReport fromJson(String jsonString) throws JsonProcessingException { + public static FinancialReport fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FinancialReport.class); } @@ -431,7 +431,7 @@ public static FinancialReport fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Financier.java b/src/main/java/com/adyen/model/legalentitymanagement/Financier.java index 9766502b3..6c3652e06 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Financier.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Financier.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Financier */ @JsonPropertyOrder({ @@ -315,9 +315,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Financier - * @throws JsonProcessingException if the JSON string is invalid with respect to Financier + * @throws JacksonException if the JSON string is invalid with respect to Financier */ - public static Financier fromJson(String jsonString) throws JsonProcessingException { + public static Financier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Financier.class); } @@ -326,7 +326,7 @@ public static Financier fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java index bbde086cb..631ee0632 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GeneratePciDescriptionRequest */ @JsonPropertyOrder({ @@ -308,11 +308,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GeneratePciDescriptionRequest */ - public static GeneratePciDescriptionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GeneratePciDescriptionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionRequest.class); } @@ -321,7 +320,7 @@ public static GeneratePciDescriptionRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java index 638fa62e4..fdaf97632 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GeneratePciDescriptionResponse.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** GeneratePciDescriptionResponse */ @JsonPropertyOrder({ @@ -298,11 +298,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GeneratePciDescriptionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GeneratePciDescriptionResponse */ - public static GeneratePciDescriptionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GeneratePciDescriptionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GeneratePciDescriptionResponse.class); } @@ -311,7 +310,7 @@ public static GeneratePciDescriptionResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java index e9adc212e..9060733d3 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetAcceptedTermsOfServiceDocumentResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GetAcceptedTermsOfServiceDocumentResponse */ @JsonPropertyOrder({ @@ -396,11 +396,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetAcceptedTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetAcceptedTermsOfServiceDocumentResponse */ public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetAcceptedTermsOfServiceDocumentResponse.class); } @@ -409,7 +409,7 @@ public static GetAcceptedTermsOfServiceDocumentResponse fromJson(String jsonStri * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java index d14ddfecc..3a02a7bf0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireInfosResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GetPciQuestionnaireInfosResponse */ @JsonPropertyOrder({GetPciQuestionnaireInfosResponse.JSON_PROPERTY_DATA}) @@ -170,11 +170,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetPciQuestionnaireInfosResponse */ public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireInfosResponse.class); } @@ -183,7 +183,7 @@ public static GetPciQuestionnaireInfosResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java index b8fa6c079..37bf9c289 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetPciQuestionnaireResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** GetPciQuestionnaireResponse */ @JsonPropertyOrder({ @@ -326,11 +326,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetPciQuestionnaireResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetPciQuestionnaireResponse */ - public static GetPciQuestionnaireResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetPciQuestionnaireResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetPciQuestionnaireResponse.class); } @@ -339,7 +338,7 @@ public static GetPciQuestionnaireResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java index f216e0ab9..859f89bd1 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceAcceptanceInfosResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** GetTermsOfServiceAcceptanceInfosResponse */ @JsonPropertyOrder({GetTermsOfServiceAcceptanceInfosResponse.JSON_PROPERTY_DATA}) @@ -171,11 +171,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTermsOfServiceAcceptanceInfosResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTermsOfServiceAcceptanceInfosResponse */ public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceAcceptanceInfosResponse.class); } @@ -184,7 +184,7 @@ public static GetTermsOfServiceAcceptanceInfosResponse fromJson(String jsonStrin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java index fc94ecc87..30b72f541 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GetTermsOfServiceDocumentRequest */ @JsonPropertyOrder({ @@ -370,11 +370,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTermsOfServiceDocumentRequest */ public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentRequest.class); } @@ -383,7 +383,7 @@ public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java index 91963886b..4b62fbbf4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/GetTermsOfServiceDocumentResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GetTermsOfServiceDocumentResponse */ @JsonPropertyOrder({ @@ -537,11 +537,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTermsOfServiceDocumentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTermsOfServiceDocumentResponse */ public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTermsOfServiceDocumentResponse.class); } @@ -550,7 +550,7 @@ public static GetTermsOfServiceDocumentResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java index 93a7a2de0..9d398b5ca 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static HKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java index 9d574c4d5..a34a9beee 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/HULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HULocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static HULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java index a633d8079..839a3e3fd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IbanAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -318,7 +317,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java index 1ad31a8a9..9eedb0548 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IdentificationData */ @JsonPropertyOrder({ @@ -576,10 +576,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IdentificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IdentificationData + * @throws JacksonException if the JSON string is invalid with respect to IdentificationData */ - public static IdentificationData fromJson(String jsonString) throws JsonProcessingException { + public static IdentificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IdentificationData.class); } @@ -588,7 +587,7 @@ public static IdentificationData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java index 10aeb3f14..86f520ac4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Individual.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Individual.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Individual */ @JsonPropertyOrder({ @@ -622,9 +622,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Individual - * @throws JsonProcessingException if the JSON string is invalid with respect to Individual + * @throws JacksonException if the JSON string is invalid with respect to Individual */ - public static Individual fromJson(String jsonString) throws JsonProcessingException { + public static Individual fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Individual.class); } @@ -633,7 +633,7 @@ public static Individual fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java index 8d3432cd1..ec4265e60 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/JSON.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java index ef8c97522..004f888bb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntity.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** LegalEntity */ @JsonPropertyOrder({ @@ -1013,9 +1013,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntity + * @throws JacksonException if the JSON string is invalid with respect to LegalEntity */ - public static LegalEntity fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntity.class); } @@ -1024,7 +1024,7 @@ public static LegalEntity fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java index edc48202b..b515f3580 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** LegalEntityAssociation */ @JsonPropertyOrder({ @@ -707,10 +707,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntityAssociation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityAssociation + * @throws JacksonException if the JSON string is invalid with respect to LegalEntityAssociation */ - public static LegalEntityAssociation fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntityAssociation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntityAssociation.class); } @@ -719,7 +718,7 @@ public static LegalEntityAssociation fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java index 887265432..0d9e664b4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityCapability.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** LegalEntityCapability */ @JsonPropertyOrder({ @@ -515,10 +515,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityCapability + * @throws JacksonException if the JSON string is invalid with respect to LegalEntityCapability */ - public static LegalEntityCapability fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntityCapability fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntityCapability.class); } @@ -527,7 +526,7 @@ public static LegalEntityCapability fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java index c4cb76007..c1ca92765 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfo.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** LegalEntityInfo */ @JsonPropertyOrder({ @@ -735,9 +735,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntityInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to LegalEntityInfo + * @throws JacksonException if the JSON string is invalid with respect to LegalEntityInfo */ - public static LegalEntityInfo fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntityInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntityInfo.class); } @@ -746,7 +746,7 @@ public static LegalEntityInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java index 2f6d354e7..29bb70c81 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityInfoRequiredType.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** LegalEntityInfoRequiredType */ @JsonPropertyOrder({ @@ -743,11 +743,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntityInfoRequiredType - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * LegalEntityInfoRequiredType */ - public static LegalEntityInfoRequiredType fromJson(String jsonString) - throws JsonProcessingException { + public static LegalEntityInfoRequiredType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntityInfoRequiredType.class); } @@ -756,7 +755,7 @@ public static LegalEntityInfoRequiredType fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java index 594adeb32..f86ee8354 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NOLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NOLocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static NOLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java index e30a60b17..ad2460eab 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static NZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Name.java b/src/main/java/com/adyen/model/legalentitymanagement/Name.java index 2149000e3..ecfdb3ef3 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Name.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -267,7 +267,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java index 8b7c5a24e..e96107880 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/NumberAndBicAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ @@ -377,11 +377,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NumberAndBicAccountIdentification */ public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } @@ -390,7 +390,7 @@ public static NumberAndBicAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java index 7dafcf3cd..414878256 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLink.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OnboardingLink */ @JsonPropertyOrder({OnboardingLink.JSON_PROPERTY_URL}) @@ -170,9 +170,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnboardingLink - * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingLink + * @throws JacksonException if the JSON string is invalid with respect to OnboardingLink */ - public static OnboardingLink fromJson(String jsonString) throws JsonProcessingException { + public static OnboardingLink fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnboardingLink.class); } @@ -181,7 +181,7 @@ public static OnboardingLink fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java index 3153f0148..427df7750 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OnboardingLinkInfo */ @JsonPropertyOrder({ @@ -357,10 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnboardingLinkInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OnboardingLinkInfo + * @throws JacksonException if the JSON string is invalid with respect to OnboardingLinkInfo */ - public static OnboardingLinkInfo fromJson(String jsonString) throws JsonProcessingException { + public static OnboardingLinkInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnboardingLinkInfo.class); } @@ -369,7 +368,7 @@ public static OnboardingLinkInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java index 6998552bd..966713a53 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingLinkSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** OnboardingLinkSettings */ @JsonPropertyOrder({ @@ -1224,10 +1224,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnboardingLinkSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OnboardingLinkSettings + * @throws JacksonException if the JSON string is invalid with respect to OnboardingLinkSettings */ - public static OnboardingLinkSettings fromJson(String jsonString) throws JsonProcessingException { + public static OnboardingLinkSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnboardingLinkSettings.class); } @@ -1236,7 +1235,7 @@ public static OnboardingLinkSettings fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java index 430288e09..ce81d0d2d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingTheme.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** OnboardingTheme */ @JsonPropertyOrder({ @@ -373,9 +373,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnboardingTheme - * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingTheme + * @throws JacksonException if the JSON string is invalid with respect to OnboardingTheme */ - public static OnboardingTheme fromJson(String jsonString) throws JsonProcessingException { + public static OnboardingTheme fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnboardingTheme.class); } @@ -384,7 +384,7 @@ public static OnboardingTheme fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java index 777dc0792..82ec55a16 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OnboardingThemes.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** OnboardingThemes */ @JsonPropertyOrder({ @@ -266,9 +266,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnboardingThemes - * @throws JsonProcessingException if the JSON string is invalid with respect to OnboardingThemes + * @throws JacksonException if the JSON string is invalid with respect to OnboardingThemes */ - public static OnboardingThemes fromJson(String jsonString) throws JsonProcessingException { + public static OnboardingThemes fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnboardingThemes.class); } @@ -277,7 +277,7 @@ public static OnboardingThemes fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java index cecfbba6f..4bc55f253 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Organization.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Organization.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Organization */ @JsonPropertyOrder({ @@ -1919,9 +1919,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Organization - * @throws JsonProcessingException if the JSON string is invalid with respect to Organization + * @throws JacksonException if the JSON string is invalid with respect to Organization */ - public static Organization fromJson(String jsonString) throws JsonProcessingException { + public static Organization fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Organization.class); } @@ -1930,7 +1930,7 @@ public static Organization fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java index a420a7538..20583babb 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/OwnerEntity.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OwnerEntity */ @JsonPropertyOrder({OwnerEntity.JSON_PROPERTY_ID, OwnerEntity.JSON_PROPERTY_TYPE}) @@ -232,9 +232,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OwnerEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to OwnerEntity + * @throws JacksonException if the JSON string is invalid with respect to OwnerEntity */ - public static OwnerEntity fromJson(String jsonString) throws JsonProcessingException { + public static OwnerEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OwnerEntity.class); } @@ -243,7 +243,7 @@ public static OwnerEntity fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java index 7d6701361..0ce7f628b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PLLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PLLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static PLLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java index c7d0282c2..739b6577d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciDocumentInfo.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** PciDocumentInfo */ @JsonPropertyOrder({ @@ -269,9 +269,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PciDocumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PciDocumentInfo + * @throws JacksonException if the JSON string is invalid with respect to PciDocumentInfo */ - public static PciDocumentInfo fromJson(String jsonString) throws JsonProcessingException { + public static PciDocumentInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PciDocumentInfo.class); } @@ -280,7 +280,7 @@ public static PciDocumentInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java index 9d4cc5b24..f03e98a67 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PciSigningRequest */ @JsonPropertyOrder({ @@ -236,9 +236,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PciSigningRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PciSigningRequest + * @throws JacksonException if the JSON string is invalid with respect to PciSigningRequest */ - public static PciSigningRequest fromJson(String jsonString) throws JsonProcessingException { + public static PciSigningRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PciSigningRequest.class); } @@ -247,7 +247,7 @@ public static PciSigningRequest fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java index 595c25c38..b3384924b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PciSigningResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PciSigningResponse */ @JsonPropertyOrder({ @@ -233,10 +233,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PciSigningResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PciSigningResponse + * @throws JacksonException if the JSON string is invalid with respect to PciSigningResponse */ - public static PciSigningResponse fromJson(String jsonString) throws JsonProcessingException { + public static PciSigningResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PciSigningResponse.class); } @@ -245,7 +244,7 @@ public static PciSigningResponse fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java index 58271f526..22161da1e 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/PhoneNumber.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PhoneNumber */ @JsonPropertyOrder({ @@ -249,9 +249,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PhoneNumber - * @throws JsonProcessingException if the JSON string is invalid with respect to PhoneNumber + * @throws JacksonException if the JSON string is invalid with respect to PhoneNumber */ - public static PhoneNumber fromJson(String jsonString) throws JsonProcessingException { + public static PhoneNumber fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PhoneNumber.class); } @@ -260,7 +260,7 @@ public static PhoneNumber fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java index c686416fc..5049023ee 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/RemediatingAction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RemediatingAction */ @JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RemediatingAction - * @throws JsonProcessingException if the JSON string is invalid with respect to RemediatingAction + * @throws JacksonException if the JSON string is invalid with respect to RemediatingAction */ - public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { + public static RemediatingAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } @@ -216,7 +216,7 @@ public static RemediatingAction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java index e78305928..2260878a5 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SELocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SELocalAccountIdentification */ @JsonPropertyOrder({ @@ -325,11 +325,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } @@ -338,7 +337,7 @@ public static SELocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java index fbe6aaa49..70b00e357 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SGLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SGLocalAccountIdentification */ @JsonPropertyOrder({ @@ -299,11 +299,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } @@ -312,7 +311,7 @@ public static SGLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java index 5c04af158..8c6fbc584 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/ServiceError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -373,7 +373,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java index ccbc21b4b..dc2a1f1bd 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SetTaxElectronicDeliveryConsentRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SetTaxElectronicDeliveryConsentRequest */ @JsonPropertyOrder({SetTaxElectronicDeliveryConsentRequest.JSON_PROPERTY_US1099K}) @@ -160,11 +160,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SetTaxElectronicDeliveryConsentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SetTaxElectronicDeliveryConsentRequest */ public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SetTaxElectronicDeliveryConsentRequest.class); } @@ -173,7 +173,7 @@ public static SetTaxElectronicDeliveryConsentRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java index c34c6b35a..fb389b8c9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SoleProprietorship.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SoleProprietorship */ @JsonPropertyOrder({ @@ -865,10 +865,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SoleProprietorship - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SoleProprietorship + * @throws JacksonException if the JSON string is invalid with respect to SoleProprietorship */ - public static SoleProprietorship fromJson(String jsonString) throws JsonProcessingException { + public static SoleProprietorship fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SoleProprietorship.class); } @@ -877,7 +876,7 @@ public static SoleProprietorship fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java index e80bfb3ab..794d3d959 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SourceOfFunds.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SourceOfFunds */ @JsonPropertyOrder({ @@ -996,9 +996,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SourceOfFunds - * @throws JsonProcessingException if the JSON string is invalid with respect to SourceOfFunds + * @throws JacksonException if the JSON string is invalid with respect to SourceOfFunds */ - public static SourceOfFunds fromJson(String jsonString) throws JsonProcessingException { + public static SourceOfFunds fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SourceOfFunds.class); } @@ -1007,7 +1007,7 @@ public static SourceOfFunds fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java index 9e669d538..134a9484d 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/StockData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/StockData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StockData */ @JsonPropertyOrder({ @@ -277,9 +277,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StockData - * @throws JsonProcessingException if the JSON string is invalid with respect to StockData + * @throws JacksonException if the JSON string is invalid with respect to StockData */ - public static StockData fromJson(String jsonString) throws JsonProcessingException { + public static StockData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StockData.class); } @@ -288,7 +288,7 @@ public static StockData fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Support.java b/src/main/java/com/adyen/model/legalentitymanagement/Support.java index 84fb48102..a77d4a71f 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Support.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Support.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Support */ @JsonPropertyOrder({Support.JSON_PROPERTY_EMAIL, Support.JSON_PROPERTY_PHONE}) @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Support - * @throws JsonProcessingException if the JSON string is invalid with respect to Support + * @throws JacksonException if the JSON string is invalid with respect to Support */ - public static Support fromJson(String jsonString) throws JsonProcessingException { + public static Support fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Support.class); } @@ -219,7 +219,7 @@ public static Support fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java index b1a606352..dd54cefed 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/SupportingEntityCapability.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SupportingEntityCapability */ @JsonPropertyOrder({ @@ -246,11 +246,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SupportingEntityCapability - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SupportingEntityCapability */ - public static SupportingEntityCapability fromJson(String jsonString) - throws JsonProcessingException { + public static SupportingEntityCapability fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SupportingEntityCapability.class); } @@ -259,7 +258,7 @@ public static SupportingEntityCapability fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java index 183b558f1..631c7f32c 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxInformation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TaxInformation */ @JsonPropertyOrder({ @@ -336,9 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TaxInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to TaxInformation + * @throws JacksonException if the JSON string is invalid with respect to TaxInformation */ - public static TaxInformation fromJson(String jsonString) throws JsonProcessingException { + public static TaxInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TaxInformation.class); } @@ -347,7 +347,7 @@ public static TaxInformation fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java index 1051dcce4..46027fe89 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TaxReportingClassification */ @JsonPropertyOrder({ @@ -520,11 +520,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TaxReportingClassification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TaxReportingClassification */ - public static TaxReportingClassification fromJson(String jsonString) - throws JsonProcessingException { + public static TaxReportingClassification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TaxReportingClassification.class); } @@ -533,7 +532,7 @@ public static TaxReportingClassification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java index 047b8caea..0266e67a9 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TermsOfServiceAcceptanceInfo.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TermsOfServiceAcceptanceInfo */ @JsonPropertyOrder({ @@ -505,11 +505,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TermsOfServiceAcceptanceInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TermsOfServiceAcceptanceInfo */ - public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) - throws JsonProcessingException { + public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TermsOfServiceAcceptanceInfo.class); } @@ -518,7 +517,7 @@ public static TermsOfServiceAcceptanceInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java index 79446642e..540f93778 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrument.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferInstrument */ @JsonPropertyOrder({ @@ -530,10 +530,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferInstrument + * @throws JacksonException if the JSON string is invalid with respect to TransferInstrument */ - public static TransferInstrument fromJson(String jsonString) throws JsonProcessingException { + public static TransferInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferInstrument.class); } @@ -542,7 +541,7 @@ public static TransferInstrument fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java index e812a650b..d85861fa4 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferInstrumentInfo */ @JsonPropertyOrder({ @@ -314,10 +314,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferInstrumentInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferInstrumentInfo + * @throws JacksonException if the JSON string is invalid with respect to TransferInstrumentInfo */ - public static TransferInstrumentInfo fromJson(String jsonString) throws JsonProcessingException { + public static TransferInstrumentInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferInstrumentInfo.class); } @@ -326,7 +325,7 @@ public static TransferInstrumentInfo fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java index 69aa13c77..7ffe768f7 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TransferInstrumentReference.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferInstrumentReference */ @JsonPropertyOrder({ @@ -323,11 +323,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferInstrumentReference - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferInstrumentReference */ - public static TransferInstrumentReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransferInstrumentReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferInstrumentReference.class); } @@ -336,7 +335,7 @@ public static TransferInstrumentReference fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java index 4be9e96d6..23a19b122 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/Trust.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/Trust.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Trust */ @JsonPropertyOrder({ @@ -1013,9 +1013,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Trust - * @throws JsonProcessingException if the JSON string is invalid with respect to Trust + * @throws JacksonException if the JSON string is invalid with respect to Trust */ - public static Trust fromJson(String jsonString) throws JsonProcessingException { + public static Trust fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Trust.class); } @@ -1024,7 +1024,7 @@ public static Trust fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java index 51d97a896..cf1debe76 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static UKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java index ade63b3dd..e5e657373 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USLocalAccountIdentification */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } @@ -423,7 +422,7 @@ public static USLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java index fd3af8a38..e642c3e35 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UndefinedBeneficiary.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UndefinedBeneficiary */ @JsonPropertyOrder({ @@ -191,10 +191,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UndefinedBeneficiary - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UndefinedBeneficiary + * @throws JacksonException if the JSON string is invalid with respect to UndefinedBeneficiary */ - public static UndefinedBeneficiary fromJson(String jsonString) throws JsonProcessingException { + public static UndefinedBeneficiary fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UndefinedBeneficiary.class); } @@ -203,7 +202,7 @@ public static UndefinedBeneficiary fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java index a6d5cb033..518397f14 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/UnincorporatedPartnership.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UnincorporatedPartnership */ @JsonPropertyOrder({ @@ -958,11 +958,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UnincorporatedPartnership - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UnincorporatedPartnership */ - public static UnincorporatedPartnership fromJson(String jsonString) - throws JsonProcessingException { + public static UnincorporatedPartnership fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UnincorporatedPartnership.class); } @@ -971,7 +970,7 @@ public static UnincorporatedPartnership fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java index 1746a3a39..daf2c8c46 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationDeadline.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationDeadline */ @JsonPropertyOrder({ @@ -364,10 +364,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationDeadline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationDeadline + * @throws JacksonException if the JSON string is invalid with respect to VerificationDeadline */ - public static VerificationDeadline fromJson(String jsonString) throws JsonProcessingException { + public static VerificationDeadline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationDeadline.class); } @@ -376,7 +375,7 @@ public static VerificationDeadline fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java index ee3a282c6..6e9366f08 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationError */ @JsonPropertyOrder({ @@ -675,9 +675,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationError - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationError + * @throws JacksonException if the JSON string is invalid with respect to VerificationError */ - public static VerificationError fromJson(String jsonString) throws JsonProcessingException { + public static VerificationError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } @@ -686,7 +686,7 @@ public static VerificationError fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java index 84a06957e..d38f075b3 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java @@ -19,12 +19,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationErrorRecursive */ @JsonPropertyOrder({ @@ -618,11 +618,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } @@ -631,7 +630,7 @@ public static VerificationErrorRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java index 31423ca50..0eeb8cd39 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrors.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** VerificationErrors */ @JsonPropertyOrder({VerificationErrors.JSON_PROPERTY_PROBLEMS}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VerificationErrors - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VerificationErrors + * @throws JacksonException if the JSON string is invalid with respect to VerificationErrors */ - public static VerificationErrors fromJson(String jsonString) throws JsonProcessingException { + public static VerificationErrors fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationErrors.class); } @@ -180,7 +179,7 @@ public static VerificationErrors fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java index 73b6d4a02..e8513cf9b 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebData.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebData */ @JsonPropertyOrder({WebData.JSON_PROPERTY_WEB_ADDRESS, WebData.JSON_PROPERTY_WEB_ADDRESS_ID}) @@ -188,9 +188,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WebData - * @throws JsonProcessingException if the JSON string is invalid with respect to WebData + * @throws JacksonException if the JSON string is invalid with respect to WebData */ - public static WebData fromJson(String jsonString) throws JsonProcessingException { + public static WebData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebData.class); } @@ -199,7 +199,7 @@ public static WebData fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java index 933a0bfb8..58946dee0 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/WebDataExemption.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** WebDataExemption */ @JsonPropertyOrder({WebDataExemption.JSON_PROPERTY_REASON}) @@ -206,9 +206,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WebDataExemption - * @throws JsonProcessingException if the JSON string is invalid with respect to WebDataExemption + * @throws JacksonException if the JSON string is invalid with respect to WebDataExemption */ - public static WebDataExemption fromJson(String jsonString) throws JsonProcessingException { + public static WebDataExemption fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebDataExemption.class); } @@ -217,7 +217,7 @@ public static WebDataExemption fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AccelInfo.java b/src/main/java/com/adyen/model/management/AccelInfo.java index 669f93e46..b50ad0bfe 100644 --- a/src/main/java/com/adyen/model/management/AccelInfo.java +++ b/src/main/java/com/adyen/model/management/AccelInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccelInfo */ @JsonPropertyOrder({ @@ -295,9 +295,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccelInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccelInfo + * @throws JacksonException if the JSON string is invalid with respect to AccelInfo */ - public static AccelInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccelInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccelInfo.class); } @@ -306,7 +306,7 @@ public static AccelInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AccelResponseInfo.java b/src/main/java/com/adyen/model/management/AccelResponseInfo.java index 921ffde19..b47aaabb6 100644 --- a/src/main/java/com/adyen/model/management/AccelResponseInfo.java +++ b/src/main/java/com/adyen/model/management/AccelResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccelResponseInfo */ @JsonPropertyOrder({ @@ -297,9 +297,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccelResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccelResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to AccelResponseInfo */ - public static AccelResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccelResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccelResponseInfo.class); } @@ -308,7 +308,7 @@ public static AccelResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AccelUpdateInfo.java b/src/main/java/com/adyen/model/management/AccelUpdateInfo.java index b9b715c40..735908bf7 100644 --- a/src/main/java/com/adyen/model/management/AccelUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/AccelUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccelUpdateInfo */ @JsonPropertyOrder({AccelUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccelUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccelUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to AccelUpdateInfo */ - public static AccelUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccelUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccelUpdateInfo.class); } @@ -172,7 +172,7 @@ public static AccelUpdateInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AdditionalCommission.java b/src/main/java/com/adyen/model/management/AdditionalCommission.java index c0b94ce79..730caf148 100644 --- a/src/main/java/com/adyen/model/management/AdditionalCommission.java +++ b/src/main/java/com/adyen/model/management/AdditionalCommission.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalCommission */ @JsonPropertyOrder({ @@ -266,10 +266,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalCommission - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalCommission + * @throws JacksonException if the JSON string is invalid with respect to AdditionalCommission */ - public static AdditionalCommission fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalCommission fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalCommission.class); } @@ -278,7 +277,7 @@ public static AdditionalCommission fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettings.java b/src/main/java/com/adyen/model/management/AdditionalSettings.java index 0429490fb..2e226f0b6 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettings.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettings.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** AdditionalSettings */ @JsonPropertyOrder({ @@ -258,10 +258,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalSettings + * @throws JacksonException if the JSON string is invalid with respect to AdditionalSettings */ - public static AdditionalSettings fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalSettings.class); } @@ -270,7 +269,7 @@ public static AdditionalSettings fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java index 017e78f95..23a17862d 100644 --- a/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/AdditionalSettingsResponse.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** AdditionalSettingsResponse */ @JsonPropertyOrder({ @@ -325,11 +325,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalSettingsResponse */ - public static AdditionalSettingsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalSettingsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalSettingsResponse.class); } @@ -338,7 +337,7 @@ public static AdditionalSettingsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Address.java b/src/main/java/com/adyen/model/management/Address.java index 8827464b2..9110fb327 100644 --- a/src/main/java/com/adyen/model/management/Address.java +++ b/src/main/java/com/adyen/model/management/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -483,9 +483,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -494,7 +494,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AffirmInfo.java b/src/main/java/com/adyen/model/management/AffirmInfo.java index 22e313458..b7af297c5 100644 --- a/src/main/java/com/adyen/model/management/AffirmInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AffirmInfo */ @JsonPropertyOrder({AffirmInfo.JSON_PROPERTY_PRICE_PLAN, AffirmInfo.JSON_PROPERTY_SUPPORT_EMAIL}) @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AffirmInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AffirmInfo + * @throws JacksonException if the JSON string is invalid with respect to AffirmInfo */ - public static AffirmInfo fromJson(String jsonString) throws JsonProcessingException { + public static AffirmInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AffirmInfo.class); } @@ -222,7 +222,7 @@ public static AffirmInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AffirmResponseInfo.java b/src/main/java/com/adyen/model/management/AffirmResponseInfo.java index fa7594d4a..4ffd4e2c7 100644 --- a/src/main/java/com/adyen/model/management/AffirmResponseInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AffirmResponseInfo */ @JsonPropertyOrder({AffirmResponseInfo.JSON_PROPERTY_PUBLIC_API_KEY}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AffirmResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AffirmResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to AffirmResponseInfo */ - public static AffirmResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static AffirmResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AffirmResponseInfo.class); } @@ -170,7 +169,7 @@ public static AffirmResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AffirmUpdateInfo.java b/src/main/java/com/adyen/model/management/AffirmUpdateInfo.java index 04e052e38..296267c29 100644 --- a/src/main/java/com/adyen/model/management/AffirmUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/AffirmUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AffirmUpdateInfo */ @JsonPropertyOrder({AffirmUpdateInfo.JSON_PROPERTY_PRICE_PLAN}) @@ -164,9 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AffirmUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AffirmUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to AffirmUpdateInfo */ - public static AffirmUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static AffirmUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AffirmUpdateInfo.class); } @@ -175,7 +175,7 @@ public static AffirmUpdateInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java index 1aef3fed3..154b290e9 100644 --- a/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java +++ b/src/main/java/com/adyen/model/management/AfterpayTouchInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AfterpayTouchInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AfterpayTouchInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AfterpayTouchInfo + * @throws JacksonException if the JSON string is invalid with respect to AfterpayTouchInfo */ - public static AfterpayTouchInfo fromJson(String jsonString) throws JsonProcessingException { + public static AfterpayTouchInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AfterpayTouchInfo.class); } @@ -219,7 +219,7 @@ public static AfterpayTouchInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AfterpayTouchResponseInfo.java b/src/main/java/com/adyen/model/management/AfterpayTouchResponseInfo.java index a1371f206..8db89dbde 100644 --- a/src/main/java/com/adyen/model/management/AfterpayTouchResponseInfo.java +++ b/src/main/java/com/adyen/model/management/AfterpayTouchResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AfterpayTouchResponseInfo */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AfterpayTouchResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AfterpayTouchResponseInfo */ - public static AfterpayTouchResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static AfterpayTouchResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AfterpayTouchResponseInfo.class); } @@ -221,7 +220,7 @@ public static AfterpayTouchResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java index 3ab61895d..5de05fb5c 100644 --- a/src/main/java/com/adyen/model/management/AlipayPlusInfo.java +++ b/src/main/java/com/adyen/model/management/AlipayPlusInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AlipayPlusInfo */ @JsonPropertyOrder({AlipayPlusInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AlipayPlusInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AlipayPlusInfo + * @throws JacksonException if the JSON string is invalid with respect to AlipayPlusInfo */ - public static AlipayPlusInfo fromJson(String jsonString) throws JsonProcessingException { + public static AlipayPlusInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AlipayPlusInfo.class); } @@ -172,7 +172,7 @@ public static AlipayPlusInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AlipayPlusResponseInfo.java b/src/main/java/com/adyen/model/management/AlipayPlusResponseInfo.java index 9bc30278e..b45610d23 100644 --- a/src/main/java/com/adyen/model/management/AlipayPlusResponseInfo.java +++ b/src/main/java/com/adyen/model/management/AlipayPlusResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AlipayPlusResponseInfo */ @JsonPropertyOrder({AlipayPlusResponseInfo.JSON_PROPERTY_SETTLEMENT_CURRENCY_CODE}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AlipayPlusResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AlipayPlusResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to AlipayPlusResponseInfo */ - public static AlipayPlusResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static AlipayPlusResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AlipayPlusResponseInfo.class); } @@ -174,7 +173,7 @@ public static AlipayPlusResponseInfo fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AllowedOrigin.java b/src/main/java/com/adyen/model/management/AllowedOrigin.java index e64e05b85..544811427 100644 --- a/src/main/java/com/adyen/model/management/AllowedOrigin.java +++ b/src/main/java/com/adyen/model/management/AllowedOrigin.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AllowedOrigin */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AllowedOrigin - * @throws JsonProcessingException if the JSON string is invalid with respect to AllowedOrigin + * @throws JacksonException if the JSON string is invalid with respect to AllowedOrigin */ - public static AllowedOrigin fromJson(String jsonString) throws JsonProcessingException { + public static AllowedOrigin fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AllowedOrigin.class); } @@ -267,7 +267,7 @@ public static AllowedOrigin fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java index 316fd7bf9..5ae7ea260 100644 --- a/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java +++ b/src/main/java/com/adyen/model/management/AllowedOriginsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AllowedOriginsResponse */ @JsonPropertyOrder({AllowedOriginsResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AllowedOriginsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AllowedOriginsResponse + * @throws JacksonException if the JSON string is invalid with respect to AllowedOriginsResponse */ - public static AllowedOriginsResponse fromJson(String jsonString) throws JsonProcessingException { + public static AllowedOriginsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AllowedOriginsResponse.class); } @@ -180,7 +179,7 @@ public static AllowedOriginsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AmexInfo.java b/src/main/java/com/adyen/model/management/AmexInfo.java index cc6e59b6a..3e4ff51f2 100644 --- a/src/main/java/com/adyen/model/management/AmexInfo.java +++ b/src/main/java/com/adyen/model/management/AmexInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmexInfo */ @JsonPropertyOrder({ @@ -360,9 +360,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmexInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AmexInfo + * @throws JacksonException if the JSON string is invalid with respect to AmexInfo */ - public static AmexInfo fromJson(String jsonString) throws JsonProcessingException { + public static AmexInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmexInfo.class); } @@ -371,7 +371,7 @@ public static AmexInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AmexResponseInfo.java b/src/main/java/com/adyen/model/management/AmexResponseInfo.java index 1393958e4..2ff622be1 100644 --- a/src/main/java/com/adyen/model/management/AmexResponseInfo.java +++ b/src/main/java/com/adyen/model/management/AmexResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AmexResponseInfo */ @JsonPropertyOrder({ @@ -289,9 +289,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmexResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AmexResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to AmexResponseInfo */ - public static AmexResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static AmexResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmexResponseInfo.class); } @@ -300,7 +300,7 @@ public static AmexResponseInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Amount.java b/src/main/java/com/adyen/model/management/Amount.java index bae3c5687..f13ea2189 100644 --- a/src/main/java/com/adyen/model/management/Amount.java +++ b/src/main/java/com/adyen/model/management/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AndroidApp.java b/src/main/java/com/adyen/model/management/AndroidApp.java index 29491c034..06d6fe8c4 100644 --- a/src/main/java/com/adyen/model/management/AndroidApp.java +++ b/src/main/java/com/adyen/model/management/AndroidApp.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AndroidApp */ @JsonPropertyOrder({ @@ -686,9 +686,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidApp - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidApp + * @throws JacksonException if the JSON string is invalid with respect to AndroidApp */ - public static AndroidApp fromJson(String jsonString) throws JsonProcessingException { + public static AndroidApp fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidApp.class); } @@ -697,7 +697,7 @@ public static AndroidApp fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AndroidAppError.java b/src/main/java/com/adyen/model/management/AndroidAppError.java index 3d21b8402..537bc3c03 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppError.java +++ b/src/main/java/com/adyen/model/management/AndroidAppError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AndroidAppError */ @JsonPropertyOrder({ @@ -227,9 +227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidAppError - * @throws JsonProcessingException if the JSON string is invalid with respect to AndroidAppError + * @throws JacksonException if the JSON string is invalid with respect to AndroidAppError */ - public static AndroidAppError fromJson(String jsonString) throws JsonProcessingException { + public static AndroidAppError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidAppError.class); } @@ -238,7 +238,7 @@ public static AndroidAppError fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java index 16f4d9186..a396fc458 100644 --- a/src/main/java/com/adyen/model/management/AndroidAppsResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidAppsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AndroidAppsResponse */ @JsonPropertyOrder({AndroidAppsResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidAppsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AndroidAppsResponse + * @throws JacksonException if the JSON string is invalid with respect to AndroidAppsResponse */ - public static AndroidAppsResponse fromJson(String jsonString) throws JsonProcessingException { + public static AndroidAppsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidAppsResponse.class); } @@ -180,7 +179,7 @@ public static AndroidAppsResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificate.java b/src/main/java/com/adyen/model/management/AndroidCertificate.java index 434ab6587..f4b9fd96a 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificate.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificate.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** AndroidCertificate */ @JsonPropertyOrder({ @@ -469,10 +469,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidCertificate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AndroidCertificate + * @throws JacksonException if the JSON string is invalid with respect to AndroidCertificate */ - public static AndroidCertificate fromJson(String jsonString) throws JsonProcessingException { + public static AndroidCertificate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidCertificate.class); } @@ -481,7 +480,7 @@ public static AndroidCertificate fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java index f09ad3501..91ec885a5 100644 --- a/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java +++ b/src/main/java/com/adyen/model/management/AndroidCertificatesResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AndroidCertificatesResponse */ @JsonPropertyOrder({AndroidCertificatesResponse.JSON_PROPERTY_DATA}) @@ -168,11 +168,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AndroidCertificatesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AndroidCertificatesResponse */ - public static AndroidCertificatesResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AndroidCertificatesResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AndroidCertificatesResponse.class); } @@ -181,7 +180,7 @@ public static AndroidCertificatesResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ApiCredential.java b/src/main/java/com/adyen/model/management/ApiCredential.java index ebdafa2f4..3d9ded1cd 100644 --- a/src/main/java/com/adyen/model/management/ApiCredential.java +++ b/src/main/java/com/adyen/model/management/ApiCredential.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApiCredential */ @JsonPropertyOrder({ @@ -698,9 +698,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApiCredential - * @throws JsonProcessingException if the JSON string is invalid with respect to ApiCredential + * @throws JacksonException if the JSON string is invalid with respect to ApiCredential */ - public static ApiCredential fromJson(String jsonString) throws JsonProcessingException { + public static ApiCredential fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApiCredential.class); } @@ -709,7 +709,7 @@ public static ApiCredential fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java index 3e1a306df..04e0978d9 100644 --- a/src/main/java/com/adyen/model/management/ApiCredentialLinks.java +++ b/src/main/java/com/adyen/model/management/ApiCredentialLinks.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ApiCredentialLinks */ @JsonPropertyOrder({ @@ -412,10 +412,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApiCredentialLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApiCredentialLinks + * @throws JacksonException if the JSON string is invalid with respect to ApiCredentialLinks */ - public static ApiCredentialLinks fromJson(String jsonString) throws JsonProcessingException { + public static ApiCredentialLinks fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApiCredentialLinks.class); } @@ -424,7 +423,7 @@ public static ApiCredentialLinks fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ApplePayInfo.java b/src/main/java/com/adyen/model/management/ApplePayInfo.java index 27d026f07..5a9236d30 100644 --- a/src/main/java/com/adyen/model/management/ApplePayInfo.java +++ b/src/main/java/com/adyen/model/management/ApplePayInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApplePayInfo */ @JsonPropertyOrder({ApplePayInfo.JSON_PROPERTY_DOMAINS}) @@ -180,9 +180,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePayInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplePayInfo + * @throws JacksonException if the JSON string is invalid with respect to ApplePayInfo */ - public static ApplePayInfo fromJson(String jsonString) throws JsonProcessingException { + public static ApplePayInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePayInfo.class); } @@ -191,7 +191,7 @@ public static ApplePayInfo fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ApplePayResponseInfo.java b/src/main/java/com/adyen/model/management/ApplePayResponseInfo.java index e7d61206d..775a2c490 100644 --- a/src/main/java/com/adyen/model/management/ApplePayResponseInfo.java +++ b/src/main/java/com/adyen/model/management/ApplePayResponseInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApplePayResponseInfo */ @JsonPropertyOrder({ApplePayResponseInfo.JSON_PROPERTY_DOMAINS}) @@ -174,10 +174,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplePayResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApplePayResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to ApplePayResponseInfo */ - public static ApplePayResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static ApplePayResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplePayResponseInfo.class); } @@ -186,7 +185,7 @@ public static ApplePayResponseInfo fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/AssociatedPaymentMethod.java b/src/main/java/com/adyen/model/management/AssociatedPaymentMethod.java index 85625dc2d..17a9ba479 100644 --- a/src/main/java/com/adyen/model/management/AssociatedPaymentMethod.java +++ b/src/main/java/com/adyen/model/management/AssociatedPaymentMethod.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AssociatedPaymentMethod */ @JsonPropertyOrder({ @@ -265,10 +265,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AssociatedPaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssociatedPaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to AssociatedPaymentMethod */ - public static AssociatedPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static AssociatedPaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssociatedPaymentMethod.class); } @@ -277,7 +276,7 @@ public static AssociatedPaymentMethod fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/BcmcInfo.java b/src/main/java/com/adyen/model/management/BcmcInfo.java index 34e5b3a17..532d2eb1e 100644 --- a/src/main/java/com/adyen/model/management/BcmcInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BcmcInfo */ @JsonPropertyOrder({BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE}) @@ -164,9 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BcmcInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BcmcInfo + * @throws JacksonException if the JSON string is invalid with respect to BcmcInfo */ - public static BcmcInfo fromJson(String jsonString) throws JsonProcessingException { + public static BcmcInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BcmcInfo.class); } @@ -175,7 +175,7 @@ public static BcmcInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/BcmcResponseInfo.java b/src/main/java/com/adyen/model/management/BcmcResponseInfo.java index e9c3f5c49..02ad191b2 100644 --- a/src/main/java/com/adyen/model/management/BcmcResponseInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BcmcResponseInfo */ @JsonPropertyOrder({ @@ -222,9 +222,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BcmcResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BcmcResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to BcmcResponseInfo */ - public static BcmcResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static BcmcResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BcmcResponseInfo.class); } @@ -233,7 +233,7 @@ public static BcmcResponseInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/BcmcUpdateInfo.java b/src/main/java/com/adyen/model/management/BcmcUpdateInfo.java index 24b572be1..0ed9b759b 100644 --- a/src/main/java/com/adyen/model/management/BcmcUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BcmcUpdateInfo */ @JsonPropertyOrder({BcmcUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BcmcUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BcmcUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to BcmcUpdateInfo */ - public static BcmcUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static BcmcUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BcmcUpdateInfo.class); } @@ -172,7 +172,7 @@ public static BcmcUpdateInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java index 93e8f1b66..37db3a90e 100644 --- a/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java +++ b/src/main/java/com/adyen/model/management/BillingEntitiesResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** BillingEntitiesResponse */ @JsonPropertyOrder({BillingEntitiesResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BillingEntitiesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BillingEntitiesResponse + * @throws JacksonException if the JSON string is invalid with respect to BillingEntitiesResponse */ - public static BillingEntitiesResponse fromJson(String jsonString) throws JsonProcessingException { + public static BillingEntitiesResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BillingEntitiesResponse.class); } @@ -180,7 +179,7 @@ public static BillingEntitiesResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/BillingEntity.java b/src/main/java/com/adyen/model/management/BillingEntity.java index 9c4d4b0ee..efc93f577 100644 --- a/src/main/java/com/adyen/model/management/BillingEntity.java +++ b/src/main/java/com/adyen/model/management/BillingEntity.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BillingEntity */ @JsonPropertyOrder({ @@ -359,9 +359,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BillingEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to BillingEntity + * @throws JacksonException if the JSON string is invalid with respect to BillingEntity */ - public static BillingEntity fromJson(String jsonString) throws JsonProcessingException { + public static BillingEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BillingEntity.class); } @@ -370,7 +370,7 @@ public static BillingEntity fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CardholderReceipt.java b/src/main/java/com/adyen/model/management/CardholderReceipt.java index b92a6d5cd..b8d04172c 100644 --- a/src/main/java/com/adyen/model/management/CardholderReceipt.java +++ b/src/main/java/com/adyen/model/management/CardholderReceipt.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardholderReceipt */ @JsonPropertyOrder({CardholderReceipt.JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT}) @@ -186,9 +186,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardholderReceipt - * @throws JsonProcessingException if the JSON string is invalid with respect to CardholderReceipt + * @throws JacksonException if the JSON string is invalid with respect to CardholderReceipt */ - public static CardholderReceipt fromJson(String jsonString) throws JsonProcessingException { + public static CardholderReceipt fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardholderReceipt.class); } @@ -197,7 +197,7 @@ public static CardholderReceipt fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CarnetInfo.java b/src/main/java/com/adyen/model/management/CarnetInfo.java index a40fe6b7e..90b3d646c 100644 --- a/src/main/java/com/adyen/model/management/CarnetInfo.java +++ b/src/main/java/com/adyen/model/management/CarnetInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CarnetInfo */ @JsonPropertyOrder({ @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CarnetInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CarnetInfo + * @throws JacksonException if the JSON string is invalid with respect to CarnetInfo */ - public static CarnetInfo fromJson(String jsonString) throws JsonProcessingException { + public static CarnetInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CarnetInfo.class); } @@ -234,7 +234,7 @@ public static CarnetInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CarnetResponseInfo.java b/src/main/java/com/adyen/model/management/CarnetResponseInfo.java index 1bd1a26df..2fd70092f 100644 --- a/src/main/java/com/adyen/model/management/CarnetResponseInfo.java +++ b/src/main/java/com/adyen/model/management/CarnetResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CarnetResponseInfo */ @JsonPropertyOrder({CarnetResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CarnetResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CarnetResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to CarnetResponseInfo */ - public static CarnetResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static CarnetResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CarnetResponseInfo.class); } @@ -174,7 +173,7 @@ public static CarnetResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java index de3cda667..e19a550e0 100644 --- a/src/main/java/com/adyen/model/management/CartesBancairesInfo.java +++ b/src/main/java/com/adyen/model/management/CartesBancairesInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CartesBancairesInfo */ @JsonPropertyOrder({ @@ -212,10 +212,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CartesBancairesInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CartesBancairesInfo + * @throws JacksonException if the JSON string is invalid with respect to CartesBancairesInfo */ - public static CartesBancairesInfo fromJson(String jsonString) throws JsonProcessingException { + public static CartesBancairesInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CartesBancairesInfo.class); } @@ -224,7 +223,7 @@ public static CartesBancairesInfo fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CartesBancairesResponseInfo.java b/src/main/java/com/adyen/model/management/CartesBancairesResponseInfo.java index 7048a6ccb..70a879c8c 100644 --- a/src/main/java/com/adyen/model/management/CartesBancairesResponseInfo.java +++ b/src/main/java/com/adyen/model/management/CartesBancairesResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CartesBancairesResponseInfo */ @JsonPropertyOrder({ @@ -214,11 +214,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CartesBancairesResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CartesBancairesResponseInfo */ - public static CartesBancairesResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static CartesBancairesResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CartesBancairesResponseInfo.class); } @@ -227,7 +226,7 @@ public static CartesBancairesResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CartesBancairesUpdateInfo.java b/src/main/java/com/adyen/model/management/CartesBancairesUpdateInfo.java index 9a5221bda..40a5bb83b 100644 --- a/src/main/java/com/adyen/model/management/CartesBancairesUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/CartesBancairesUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CartesBancairesUpdateInfo */ @JsonPropertyOrder({CartesBancairesUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CartesBancairesUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CartesBancairesUpdateInfo */ - public static CartesBancairesUpdateInfo fromJson(String jsonString) - throws JsonProcessingException { + public static CartesBancairesUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CartesBancairesUpdateInfo.class); } @@ -177,7 +176,7 @@ public static CartesBancairesUpdateInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CashAppUpdateInfo.java b/src/main/java/com/adyen/model/management/CashAppUpdateInfo.java index a32774bfe..ec0ca24ec 100644 --- a/src/main/java/com/adyen/model/management/CashAppUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/CashAppUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CashAppUpdateInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashAppUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CashAppUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to CashAppUpdateInfo */ - public static CashAppUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static CashAppUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashAppUpdateInfo.class); } @@ -219,7 +219,7 @@ public static CashAppUpdateInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ClearpayInfo.java b/src/main/java/com/adyen/model/management/ClearpayInfo.java index da8188c54..e740ffc22 100644 --- a/src/main/java/com/adyen/model/management/ClearpayInfo.java +++ b/src/main/java/com/adyen/model/management/ClearpayInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ClearpayInfo */ @JsonPropertyOrder({ClearpayInfo.JSON_PROPERTY_SUPPORT_URL}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ClearpayInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ClearpayInfo + * @throws JacksonException if the JSON string is invalid with respect to ClearpayInfo */ - public static ClearpayInfo fromJson(String jsonString) throws JsonProcessingException { + public static ClearpayInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ClearpayInfo.class); } @@ -169,7 +169,7 @@ public static ClearpayInfo fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ClearpayResponseInfo.java b/src/main/java/com/adyen/model/management/ClearpayResponseInfo.java index 987551d11..79ad6281a 100644 --- a/src/main/java/com/adyen/model/management/ClearpayResponseInfo.java +++ b/src/main/java/com/adyen/model/management/ClearpayResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ClearpayResponseInfo */ @JsonPropertyOrder({ClearpayResponseInfo.JSON_PROPERTY_SUPPORT_URL}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ClearpayResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ClearpayResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to ClearpayResponseInfo */ - public static ClearpayResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static ClearpayResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ClearpayResponseInfo.class); } @@ -170,7 +169,7 @@ public static ClearpayResponseInfo fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Commission.java b/src/main/java/com/adyen/model/management/Commission.java index 93cf9dfdb..583c7d02a 100644 --- a/src/main/java/com/adyen/model/management/Commission.java +++ b/src/main/java/com/adyen/model/management/Commission.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Commission */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Commission - * @throws JsonProcessingException if the JSON string is invalid with respect to Commission + * @throws JacksonException if the JSON string is invalid with respect to Commission */ - public static Commission fromJson(String jsonString) throws JsonProcessingException { + public static Commission fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Commission.class); } @@ -219,7 +219,7 @@ public static Commission fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Company.java b/src/main/java/com/adyen/model/management/Company.java index 380d9fe57..a7ebec62f 100644 --- a/src/main/java/com/adyen/model/management/Company.java +++ b/src/main/java/com/adyen/model/management/Company.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Company */ @JsonPropertyOrder({ @@ -508,9 +508,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Company - * @throws JsonProcessingException if the JSON string is invalid with respect to Company + * @throws JacksonException if the JSON string is invalid with respect to Company */ - public static Company fromJson(String jsonString) throws JsonProcessingException { + public static Company fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Company.class); } @@ -519,7 +519,7 @@ public static Company fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CompanyApiCredential.java b/src/main/java/com/adyen/model/management/CompanyApiCredential.java index f9da02c1d..b791f04ac 100644 --- a/src/main/java/com/adyen/model/management/CompanyApiCredential.java +++ b/src/main/java/com/adyen/model/management/CompanyApiCredential.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CompanyApiCredential */ @JsonPropertyOrder({ @@ -776,10 +776,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CompanyApiCredential - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CompanyApiCredential + * @throws JacksonException if the JSON string is invalid with respect to CompanyApiCredential */ - public static CompanyApiCredential fromJson(String jsonString) throws JsonProcessingException { + public static CompanyApiCredential fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CompanyApiCredential.class); } @@ -788,7 +787,7 @@ public static CompanyApiCredential fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CompanyLinks.java b/src/main/java/com/adyen/model/management/CompanyLinks.java index 78b1e706e..d7969c50d 100644 --- a/src/main/java/com/adyen/model/management/CompanyLinks.java +++ b/src/main/java/com/adyen/model/management/CompanyLinks.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CompanyLinks */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CompanyLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to CompanyLinks + * @throws JacksonException if the JSON string is invalid with respect to CompanyLinks */ - public static CompanyLinks fromJson(String jsonString) throws JsonProcessingException { + public static CompanyLinks fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CompanyLinks.class); } @@ -323,7 +323,7 @@ public static CompanyLinks fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CompanyUser.java b/src/main/java/com/adyen/model/management/CompanyUser.java index f5c447174..7578c5ee8 100644 --- a/src/main/java/com/adyen/model/management/CompanyUser.java +++ b/src/main/java/com/adyen/model/management/CompanyUser.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CompanyUser */ @JsonPropertyOrder({ @@ -730,9 +730,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CompanyUser - * @throws JsonProcessingException if the JSON string is invalid with respect to CompanyUser + * @throws JacksonException if the JSON string is invalid with respect to CompanyUser */ - public static CompanyUser fromJson(String jsonString) throws JsonProcessingException { + public static CompanyUser fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CompanyUser.class); } @@ -741,7 +741,7 @@ public static CompanyUser fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Connectivity.java b/src/main/java/com/adyen/model/management/Connectivity.java index 7e0262709..50a11a726 100644 --- a/src/main/java/com/adyen/model/management/Connectivity.java +++ b/src/main/java/com/adyen/model/management/Connectivity.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Connectivity */ @JsonPropertyOrder({ @@ -289,9 +289,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Connectivity - * @throws JsonProcessingException if the JSON string is invalid with respect to Connectivity + * @throws JacksonException if the JSON string is invalid with respect to Connectivity */ - public static Connectivity fromJson(String jsonString) throws JsonProcessingException { + public static Connectivity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Connectivity.class); } @@ -300,7 +300,7 @@ public static Connectivity fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Contact.java b/src/main/java/com/adyen/model/management/Contact.java index 1819708d3..26240ce04 100644 --- a/src/main/java/com/adyen/model/management/Contact.java +++ b/src/main/java/com/adyen/model/management/Contact.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Contact */ @JsonPropertyOrder({ @@ -368,9 +368,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Contact - * @throws JsonProcessingException if the JSON string is invalid with respect to Contact + * @throws JacksonException if the JSON string is invalid with respect to Contact */ - public static Contact fromJson(String jsonString) throws JsonProcessingException { + public static Contact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Contact.class); } @@ -379,7 +379,7 @@ public static Contact fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java index 18a98a061..2d0a3213b 100644 --- a/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java +++ b/src/main/java/com/adyen/model/management/CreateAllowedOriginRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateAllowedOriginRequest */ @JsonPropertyOrder({ @@ -256,11 +256,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateAllowedOriginRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateAllowedOriginRequest */ - public static CreateAllowedOriginRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateAllowedOriginRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAllowedOriginRequest.class); } @@ -269,7 +268,7 @@ public static CreateAllowedOriginRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java index 6d1f5a892..5c58ab194 100644 --- a/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateApiCredentialResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateApiCredentialResponse */ @JsonPropertyOrder({ @@ -799,11 +799,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateApiCredentialResponse */ - public static CreateApiCredentialResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateApiCredentialResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateApiCredentialResponse.class); } @@ -812,7 +811,7 @@ public static CreateApiCredentialResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java index b63160e82..4c8b6069b 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateCompanyApiCredentialRequest */ @JsonPropertyOrder({ @@ -383,11 +383,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCompanyApiCredentialRequest */ public static CreateCompanyApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialRequest.class); } @@ -396,7 +396,7 @@ public static CreateCompanyApiCredentialRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java index 7968dadb4..33895f02f 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyApiCredentialResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateCompanyApiCredentialResponse */ @JsonPropertyOrder({ @@ -889,11 +889,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCompanyApiCredentialResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCompanyApiCredentialResponse */ public static CreateCompanyApiCredentialResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCompanyApiCredentialResponse.class); } @@ -902,7 +902,7 @@ public static CreateCompanyApiCredentialResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java index e5584520f..73907a5ce 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateCompanyUserRequest */ @JsonPropertyOrder({ @@ -588,11 +588,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateCompanyUserRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateCompanyUserRequest */ - public static CreateCompanyUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyUserRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserRequest.class); } @@ -601,7 +599,7 @@ public static CreateCompanyUserRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java index 7e89af8e3..28247fc09 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyUserResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateCompanyUserResponse */ @JsonPropertyOrder({ @@ -734,11 +734,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCompanyUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCompanyUserResponse */ - public static CreateCompanyUserResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyUserResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCompanyUserResponse.class); } @@ -747,7 +746,7 @@ public static CreateCompanyUserResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java index 817cb6532..eb1ebd87e 100644 --- a/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateCompanyWebhookRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateCompanyWebhookRequest */ @JsonPropertyOrder({ @@ -1323,11 +1323,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateCompanyWebhookRequest */ - public static CreateCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateCompanyWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateCompanyWebhookRequest.class); } @@ -1336,7 +1335,7 @@ public static CreateCompanyWebhookRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java index 859956596..50486bcea 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantApiCredentialRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateMerchantApiCredentialRequest */ @JsonPropertyOrder({ @@ -308,11 +308,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateMerchantApiCredentialRequest */ public static CreateMerchantApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateMerchantApiCredentialRequest.class); } @@ -321,7 +321,7 @@ public static CreateMerchantApiCredentialRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java index 6a9a01f86..f3f257ed2 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateMerchantRequest */ @JsonPropertyOrder({ @@ -526,10 +526,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateMerchantRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateMerchantRequest */ - public static CreateMerchantRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateMerchantRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateMerchantRequest.class); } @@ -538,7 +537,7 @@ public static CreateMerchantRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java index f1e591bc7..307f2e9b6 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateMerchantResponse */ @JsonPropertyOrder({ @@ -495,10 +495,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateMerchantResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateMerchantResponse */ - public static CreateMerchantResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateMerchantResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateMerchantResponse.class); } @@ -507,7 +506,7 @@ public static CreateMerchantResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java index fafbcf2b1..dfc70eb18 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantUserRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateMerchantUserRequest */ @JsonPropertyOrder({ @@ -510,11 +510,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateMerchantUserRequest */ - public static CreateMerchantUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateMerchantUserRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateMerchantUserRequest.class); } @@ -523,7 +522,7 @@ public static CreateMerchantUserRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java index b6da700fd..a03f5076e 100644 --- a/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/CreateMerchantWebhookRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CreateMerchantWebhookRequest */ @JsonPropertyOrder({ @@ -1099,11 +1099,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateMerchantWebhookRequest */ - public static CreateMerchantWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateMerchantWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateMerchantWebhookRequest.class); } @@ -1112,7 +1111,7 @@ public static CreateMerchantWebhookRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CreateUserResponse.java b/src/main/java/com/adyen/model/management/CreateUserResponse.java index 2c1eb3945..ed7b56326 100644 --- a/src/main/java/com/adyen/model/management/CreateUserResponse.java +++ b/src/main/java/com/adyen/model/management/CreateUserResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreateUserResponse */ @JsonPropertyOrder({ @@ -656,10 +656,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateUserResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateUserResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateUserResponse */ - public static CreateUserResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateUserResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateUserResponse.class); } @@ -668,7 +667,7 @@ public static CreateUserResponse fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CupResponseInfo.java b/src/main/java/com/adyen/model/management/CupResponseInfo.java index 905566f8d..bcc752908 100644 --- a/src/main/java/com/adyen/model/management/CupResponseInfo.java +++ b/src/main/java/com/adyen/model/management/CupResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CupResponseInfo */ @JsonPropertyOrder({CupResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,9 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CupResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CupResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to CupResponseInfo */ - public static CupResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static CupResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CupResponseInfo.class); } @@ -173,7 +173,7 @@ public static CupResponseInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Currency.java b/src/main/java/com/adyen/model/management/Currency.java index 658748a29..957fbc43e 100644 --- a/src/main/java/com/adyen/model/management/Currency.java +++ b/src/main/java/com/adyen/model/management/Currency.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Currency */ @JsonPropertyOrder({ @@ -336,9 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Currency - * @throws JsonProcessingException if the JSON string is invalid with respect to Currency + * @throws JacksonException if the JSON string is invalid with respect to Currency */ - public static Currency fromJson(String jsonString) throws JsonProcessingException { + public static Currency fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Currency.class); } @@ -347,7 +347,7 @@ public static Currency fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/CustomNotification.java b/src/main/java/com/adyen/model/management/CustomNotification.java index 09e31f862..11941394b 100644 --- a/src/main/java/com/adyen/model/management/CustomNotification.java +++ b/src/main/java/com/adyen/model/management/CustomNotification.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** CustomNotification */ @JsonPropertyOrder({ @@ -511,10 +511,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CustomNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CustomNotification + * @throws JacksonException if the JSON string is invalid with respect to CustomNotification */ - public static CustomNotification fromJson(String jsonString) throws JsonProcessingException { + public static CustomNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CustomNotification.class); } @@ -523,7 +522,7 @@ public static CustomNotification fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DataCenter.java b/src/main/java/com/adyen/model/management/DataCenter.java index 4d6e6bd41..5a5e15f98 100644 --- a/src/main/java/com/adyen/model/management/DataCenter.java +++ b/src/main/java/com/adyen/model/management/DataCenter.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DataCenter */ @JsonPropertyOrder({DataCenter.JSON_PROPERTY_LIVE_PREFIX, DataCenter.JSON_PROPERTY_NAME}) @@ -235,9 +235,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DataCenter - * @throws JsonProcessingException if the JSON string is invalid with respect to DataCenter + * @throws JacksonException if the JSON string is invalid with respect to DataCenter */ - public static DataCenter fromJson(String jsonString) throws JsonProcessingException { + public static DataCenter fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DataCenter.class); } @@ -246,7 +246,7 @@ public static DataCenter fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Dcc.java b/src/main/java/com/adyen/model/management/Dcc.java index 9cbdd8d7a..4a286122d 100644 --- a/src/main/java/com/adyen/model/management/Dcc.java +++ b/src/main/java/com/adyen/model/management/Dcc.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Dcc */ @JsonPropertyOrder({Dcc.JSON_PROPERTY_ENABLE_DCC}) @@ -170,9 +170,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Dcc - * @throws JsonProcessingException if the JSON string is invalid with respect to Dcc + * @throws JacksonException if the JSON string is invalid with respect to Dcc */ - public static Dcc fromJson(String jsonString) throws JsonProcessingException { + public static Dcc fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Dcc.class); } @@ -181,7 +181,7 @@ public static Dcc fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/management/DefaultErrorResponseEntity.java index 88e1c23f2..2edbe6b95 100644 --- a/src/main/java/com/adyen/model/management/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/management/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DinersInfo.java b/src/main/java/com/adyen/model/management/DinersInfo.java index 0c720b5d8..c8c48369d 100644 --- a/src/main/java/com/adyen/model/management/DinersInfo.java +++ b/src/main/java/com/adyen/model/management/DinersInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DinersInfo */ @JsonPropertyOrder({ @@ -400,9 +400,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DinersInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to DinersInfo + * @throws JacksonException if the JSON string is invalid with respect to DinersInfo */ - public static DinersInfo fromJson(String jsonString) throws JsonProcessingException { + public static DinersInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DinersInfo.class); } @@ -411,7 +411,7 @@ public static DinersInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DinersResponseInfo.java b/src/main/java/com/adyen/model/management/DinersResponseInfo.java index a113222a0..a4928534c 100644 --- a/src/main/java/com/adyen/model/management/DinersResponseInfo.java +++ b/src/main/java/com/adyen/model/management/DinersResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DinersResponseInfo */ @JsonPropertyOrder({ @@ -337,10 +337,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DinersResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DinersResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to DinersResponseInfo */ - public static DinersResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static DinersResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DinersResponseInfo.class); } @@ -349,7 +348,7 @@ public static DinersResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DiscoverResponseInfo.java b/src/main/java/com/adyen/model/management/DiscoverResponseInfo.java index bcecb812b..1217b492f 100644 --- a/src/main/java/com/adyen/model/management/DiscoverResponseInfo.java +++ b/src/main/java/com/adyen/model/management/DiscoverResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DiscoverResponseInfo */ @JsonPropertyOrder({DiscoverResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DiscoverResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DiscoverResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to DiscoverResponseInfo */ - public static DiscoverResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static DiscoverResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DiscoverResponseInfo.class); } @@ -174,7 +173,7 @@ public static DiscoverResponseInfo fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationAmount.java b/src/main/java/com/adyen/model/management/DonationAmount.java index 0bfa60172..e54e2dde7 100644 --- a/src/main/java/com/adyen/model/management/DonationAmount.java +++ b/src/main/java/com/adyen/model/management/DonationAmount.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationAmount */ @JsonPropertyOrder({ @@ -230,9 +230,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationAmount + * @throws JacksonException if the JSON string is invalid with respect to DonationAmount */ - public static DonationAmount fromJson(String jsonString) throws JsonProcessingException { + public static DonationAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationAmount.class); } @@ -241,7 +241,7 @@ public static DonationAmount fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationAmountUpdate.java b/src/main/java/com/adyen/model/management/DonationAmountUpdate.java index 094a56f2e..9aaed3fd1 100644 --- a/src/main/java/com/adyen/model/management/DonationAmountUpdate.java +++ b/src/main/java/com/adyen/model/management/DonationAmountUpdate.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationAmountUpdate */ @JsonPropertyOrder({ @@ -230,10 +230,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationAmountUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationAmountUpdate + * @throws JacksonException if the JSON string is invalid with respect to DonationAmountUpdate */ - public static DonationAmountUpdate fromJson(String jsonString) throws JsonProcessingException { + public static DonationAmountUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationAmountUpdate.class); } @@ -242,7 +241,7 @@ public static DonationAmountUpdate fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationCampaign.java b/src/main/java/com/adyen/model/management/DonationCampaign.java index e67f5aa9c..1cab13c9f 100644 --- a/src/main/java/com/adyen/model/management/DonationCampaign.java +++ b/src/main/java/com/adyen/model/management/DonationCampaign.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationCampaign */ @JsonPropertyOrder({ @@ -524,9 +524,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaign - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationCampaign + * @throws JacksonException if the JSON string is invalid with respect to DonationCampaign */ - public static DonationCampaign fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaign fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaign.class); } @@ -535,7 +535,7 @@ public static DonationCampaign fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationCampaignNonprofitCause.java b/src/main/java/com/adyen/model/management/DonationCampaignNonprofitCause.java index 1227d15ab..ee9ba5491 100644 --- a/src/main/java/com/adyen/model/management/DonationCampaignNonprofitCause.java +++ b/src/main/java/com/adyen/model/management/DonationCampaignNonprofitCause.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationCampaignNonprofitCause */ @JsonPropertyOrder({ @@ -554,11 +554,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaignNonprofitCause - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DonationCampaignNonprofitCause */ - public static DonationCampaignNonprofitCause fromJson(String jsonString) - throws JsonProcessingException { + public static DonationCampaignNonprofitCause fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaignNonprofitCause.class); } @@ -567,7 +566,7 @@ public static DonationCampaignNonprofitCause fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationCampaignRequest.java b/src/main/java/com/adyen/model/management/DonationCampaignRequest.java index 3b204a23d..9cb18bc13 100644 --- a/src/main/java/com/adyen/model/management/DonationCampaignRequest.java +++ b/src/main/java/com/adyen/model/management/DonationCampaignRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationCampaignRequest */ @JsonPropertyOrder({ @@ -378,10 +378,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaignRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationCampaignRequest + * @throws JacksonException if the JSON string is invalid with respect to DonationCampaignRequest */ - public static DonationCampaignRequest fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaignRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaignRequest.class); } @@ -390,7 +389,7 @@ public static DonationCampaignRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/DonationCampaignUpdate.java b/src/main/java/com/adyen/model/management/DonationCampaignUpdate.java index ece23c099..85dfb61a7 100644 --- a/src/main/java/com/adyen/model/management/DonationCampaignUpdate.java +++ b/src/main/java/com/adyen/model/management/DonationCampaignUpdate.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** DonationCampaignUpdate */ @JsonPropertyOrder({ @@ -325,10 +325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationCampaignUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DonationCampaignUpdate + * @throws JacksonException if the JSON string is invalid with respect to DonationCampaignUpdate */ - public static DonationCampaignUpdate fromJson(String jsonString) throws JsonProcessingException { + public static DonationCampaignUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationCampaignUpdate.class); } @@ -337,7 +336,7 @@ public static DonationCampaignUpdate fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/EFTDirectDebitCAResponseInfo.java b/src/main/java/com/adyen/model/management/EFTDirectDebitCAResponseInfo.java index 8d7418ffa..aa78e9f05 100644 --- a/src/main/java/com/adyen/model/management/EFTDirectDebitCAResponseInfo.java +++ b/src/main/java/com/adyen/model/management/EFTDirectDebitCAResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EFTDirectDebitCAResponseInfo */ @JsonPropertyOrder({EFTDirectDebitCAResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EFTDirectDebitCAResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * EFTDirectDebitCAResponseInfo */ - public static EFTDirectDebitCAResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static EFTDirectDebitCAResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EFTDirectDebitCAResponseInfo.class); } @@ -177,7 +176,7 @@ public static EFTDirectDebitCAResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/EftPosAustraliaResponseInfo.java b/src/main/java/com/adyen/model/management/EftPosAustraliaResponseInfo.java index 7c5aa5024..407891bee 100644 --- a/src/main/java/com/adyen/model/management/EftPosAustraliaResponseInfo.java +++ b/src/main/java/com/adyen/model/management/EftPosAustraliaResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EftPosAustraliaResponseInfo */ @JsonPropertyOrder({EftPosAustraliaResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EftPosAustraliaResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * EftPosAustraliaResponseInfo */ - public static EftPosAustraliaResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static EftPosAustraliaResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EftPosAustraliaResponseInfo.class); } @@ -177,7 +176,7 @@ public static EftPosAustraliaResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/EventUrl.java b/src/main/java/com/adyen/model/management/EventUrl.java index 110aa9b6c..1d998fc09 100644 --- a/src/main/java/com/adyen/model/management/EventUrl.java +++ b/src/main/java/com/adyen/model/management/EventUrl.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** EventUrl */ @JsonPropertyOrder({ @@ -232,9 +232,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EventUrl - * @throws JsonProcessingException if the JSON string is invalid with respect to EventUrl + * @throws JacksonException if the JSON string is invalid with respect to EventUrl */ - public static EventUrl fromJson(String jsonString) throws JsonProcessingException { + public static EventUrl fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EventUrl.class); } @@ -243,7 +243,7 @@ public static EventUrl fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java index 12ef0d100..43f21d9b9 100644 --- a/src/main/java/com/adyen/model/management/ExternalTerminalAction.java +++ b/src/main/java/com/adyen/model/management/ExternalTerminalAction.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** ExternalTerminalAction */ @JsonPropertyOrder({ @@ -525,10 +525,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExternalTerminalAction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ExternalTerminalAction + * @throws JacksonException if the JSON string is invalid with respect to ExternalTerminalAction */ - public static ExternalTerminalAction fromJson(String jsonString) throws JsonProcessingException { + public static ExternalTerminalAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalTerminalAction.class); } @@ -537,7 +536,7 @@ public static ExternalTerminalAction fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ForceRebootDetails.java b/src/main/java/com/adyen/model/management/ForceRebootDetails.java index 2bd374040..18c1adc4f 100644 --- a/src/main/java/com/adyen/model/management/ForceRebootDetails.java +++ b/src/main/java/com/adyen/model/management/ForceRebootDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ForceRebootDetails */ @JsonPropertyOrder({ForceRebootDetails.JSON_PROPERTY_TYPE}) @@ -210,10 +210,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ForceRebootDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ForceRebootDetails + * @throws JacksonException if the JSON string is invalid with respect to ForceRebootDetails */ - public static ForceRebootDetails fromJson(String jsonString) throws JsonProcessingException { + public static ForceRebootDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ForceRebootDetails.class); } @@ -222,7 +221,7 @@ public static ForceRebootDetails fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java index bea5778c1..505141da9 100644 --- a/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateApiKeyResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GenerateApiKeyResponse */ @JsonPropertyOrder({GenerateApiKeyResponse.JSON_PROPERTY_API_KEY}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenerateApiKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenerateApiKeyResponse + * @throws JacksonException if the JSON string is invalid with respect to GenerateApiKeyResponse */ - public static GenerateApiKeyResponse fromJson(String jsonString) throws JsonProcessingException { + public static GenerateApiKeyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenerateApiKeyResponse.class); } @@ -170,7 +169,7 @@ public static GenerateApiKeyResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java index 67f3bc257..d7a4a98db 100644 --- a/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateClientKeyResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GenerateClientKeyResponse */ @JsonPropertyOrder({GenerateClientKeyResponse.JSON_PROPERTY_CLIENT_KEY}) @@ -158,11 +158,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenerateClientKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GenerateClientKeyResponse */ - public static GenerateClientKeyResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GenerateClientKeyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenerateClientKeyResponse.class); } @@ -171,7 +170,7 @@ public static GenerateClientKeyResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java index 240567648..7e55f82ac 100644 --- a/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java +++ b/src/main/java/com/adyen/model/management/GenerateHmacKeyResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GenerateHmacKeyResponse */ @JsonPropertyOrder({GenerateHmacKeyResponse.JSON_PROPERTY_HMAC_KEY}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenerateHmacKeyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenerateHmacKeyResponse + * @throws JacksonException if the JSON string is invalid with respect to GenerateHmacKeyResponse */ - public static GenerateHmacKeyResponse fromJson(String jsonString) throws JsonProcessingException { + public static GenerateHmacKeyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenerateHmacKeyResponse.class); } @@ -170,7 +169,7 @@ public static GenerateHmacKeyResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java index 9555e7adb..7432224bd 100644 --- a/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java +++ b/src/main/java/com/adyen/model/management/GenericPmWithTdiInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GenericPmWithTdiInfo */ @JsonPropertyOrder({GenericPmWithTdiInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenericPmWithTdiInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GenericPmWithTdiInfo + * @throws JacksonException if the JSON string is invalid with respect to GenericPmWithTdiInfo */ - public static GenericPmWithTdiInfo fromJson(String jsonString) throws JsonProcessingException { + public static GenericPmWithTdiInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenericPmWithTdiInfo.class); } @@ -174,7 +173,7 @@ public static GenericPmWithTdiInfo fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GenericPmWithTdiUpdateInfo.java b/src/main/java/com/adyen/model/management/GenericPmWithTdiUpdateInfo.java index 33304fd37..54e11b196 100644 --- a/src/main/java/com/adyen/model/management/GenericPmWithTdiUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/GenericPmWithTdiUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GenericPmWithTdiUpdateInfo */ @JsonPropertyOrder({GenericPmWithTdiUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GenericPmWithTdiUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GenericPmWithTdiUpdateInfo */ - public static GenericPmWithTdiUpdateInfo fromJson(String jsonString) - throws JsonProcessingException { + public static GenericPmWithTdiUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenericPmWithTdiUpdateInfo.class); } @@ -177,7 +176,7 @@ public static GenericPmWithTdiUpdateInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GirocardResponseInfo.java b/src/main/java/com/adyen/model/management/GirocardResponseInfo.java index d15957cf8..2e29ae123 100644 --- a/src/main/java/com/adyen/model/management/GirocardResponseInfo.java +++ b/src/main/java/com/adyen/model/management/GirocardResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GirocardResponseInfo */ @JsonPropertyOrder({GirocardResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GirocardResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GirocardResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to GirocardResponseInfo */ - public static GirocardResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static GirocardResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GirocardResponseInfo.class); } @@ -174,7 +173,7 @@ public static GirocardResponseInfo fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GivexInfo.java b/src/main/java/com/adyen/model/management/GivexInfo.java index 3b4e2c311..0d1734247 100644 --- a/src/main/java/com/adyen/model/management/GivexInfo.java +++ b/src/main/java/com/adyen/model/management/GivexInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** GivexInfo */ @JsonPropertyOrder({ @@ -357,9 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GivexInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to GivexInfo + * @throws JacksonException if the JSON string is invalid with respect to GivexInfo */ - public static GivexInfo fromJson(String jsonString) throws JsonProcessingException { + public static GivexInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GivexInfo.class); } @@ -368,7 +368,7 @@ public static GivexInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GivexResponseInfo.java b/src/main/java/com/adyen/model/management/GivexResponseInfo.java index 7ef66a77d..112412b90 100644 --- a/src/main/java/com/adyen/model/management/GivexResponseInfo.java +++ b/src/main/java/com/adyen/model/management/GivexResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GivexResponseInfo */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GivexResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to GivexResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to GivexResponseInfo */ - public static GivexResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static GivexResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GivexResponseInfo.class); } @@ -323,7 +323,7 @@ public static GivexResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GooglePayInfo.java b/src/main/java/com/adyen/model/management/GooglePayInfo.java index c23d13cfc..f60c66378 100644 --- a/src/main/java/com/adyen/model/management/GooglePayInfo.java +++ b/src/main/java/com/adyen/model/management/GooglePayInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GooglePayInfo */ @JsonPropertyOrder({ @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GooglePayInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to GooglePayInfo + * @throws JacksonException if the JSON string is invalid with respect to GooglePayInfo */ - public static GooglePayInfo fromJson(String jsonString) throws JsonProcessingException { + public static GooglePayInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GooglePayInfo.class); } @@ -234,7 +234,7 @@ public static GooglePayInfo fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/GooglePayResponseInfo.java b/src/main/java/com/adyen/model/management/GooglePayResponseInfo.java index c784e35a5..903bb89cb 100644 --- a/src/main/java/com/adyen/model/management/GooglePayResponseInfo.java +++ b/src/main/java/com/adyen/model/management/GooglePayResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GooglePayResponseInfo */ @JsonPropertyOrder({ @@ -211,10 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GooglePayResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GooglePayResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to GooglePayResponseInfo */ - public static GooglePayResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static GooglePayResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GooglePayResponseInfo.class); } @@ -223,7 +222,7 @@ public static GooglePayResponseInfo fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Gratuity.java b/src/main/java/com/adyen/model/management/Gratuity.java index 54af85183..7cce1ea05 100644 --- a/src/main/java/com/adyen/model/management/Gratuity.java +++ b/src/main/java/com/adyen/model/management/Gratuity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Gratuity */ @JsonPropertyOrder({ @@ -371,9 +371,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Gratuity - * @throws JsonProcessingException if the JSON string is invalid with respect to Gratuity + * @throws JacksonException if the JSON string is invalid with respect to Gratuity */ - public static Gratuity fromJson(String jsonString) throws JsonProcessingException { + public static Gratuity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Gratuity.class); } @@ -382,7 +382,7 @@ public static Gratuity fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Hardware.java b/src/main/java/com/adyen/model/management/Hardware.java index 220ad610f..d51ecaebb 100644 --- a/src/main/java/com/adyen/model/management/Hardware.java +++ b/src/main/java/com/adyen/model/management/Hardware.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Hardware */ @JsonPropertyOrder({ @@ -288,9 +288,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Hardware - * @throws JsonProcessingException if the JSON string is invalid with respect to Hardware + * @throws JacksonException if the JSON string is invalid with respect to Hardware */ - public static Hardware fromJson(String jsonString) throws JsonProcessingException { + public static Hardware fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Hardware.class); } @@ -299,7 +299,7 @@ public static Hardware fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/HomeScreenSettings.java b/src/main/java/com/adyen/model/management/HomeScreenSettings.java index 536a50dc3..4a8755f3d 100644 --- a/src/main/java/com/adyen/model/management/HomeScreenSettings.java +++ b/src/main/java/com/adyen/model/management/HomeScreenSettings.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** HomeScreenSettings */ @JsonPropertyOrder({ @@ -262,10 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HomeScreenSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * HomeScreenSettings + * @throws JacksonException if the JSON string is invalid with respect to HomeScreenSettings */ - public static HomeScreenSettings fromJson(String jsonString) throws JsonProcessingException { + public static HomeScreenSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HomeScreenSettings.class); } @@ -274,7 +273,7 @@ public static HomeScreenSettings fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/IdName.java b/src/main/java/com/adyen/model/management/IdName.java index 92309e1c6..16b585453 100644 --- a/src/main/java/com/adyen/model/management/IdName.java +++ b/src/main/java/com/adyen/model/management/IdName.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** IdName */ @JsonPropertyOrder({IdName.JSON_PROPERTY_ID, IdName.JSON_PROPERTY_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IdName - * @throws JsonProcessingException if the JSON string is invalid with respect to IdName + * @throws JacksonException if the JSON string is invalid with respect to IdName */ - public static IdName fromJson(String jsonString) throws JsonProcessingException { + public static IdName fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IdName.class); } @@ -216,7 +216,7 @@ public static IdName fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/IdealResponseInfo.java b/src/main/java/com/adyen/model/management/IdealResponseInfo.java index 03d1b5afd..91a371cb4 100644 --- a/src/main/java/com/adyen/model/management/IdealResponseInfo.java +++ b/src/main/java/com/adyen/model/management/IdealResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** IdealResponseInfo */ @JsonPropertyOrder({IdealResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,9 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IdealResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to IdealResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to IdealResponseInfo */ - public static IdealResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static IdealResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IdealResponseInfo.class); } @@ -173,7 +173,7 @@ public static IdealResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InPersonDonationSettings.java b/src/main/java/com/adyen/model/management/InPersonDonationSettings.java index 7e0192209..341cc5558 100644 --- a/src/main/java/com/adyen/model/management/InPersonDonationSettings.java +++ b/src/main/java/com/adyen/model/management/InPersonDonationSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** InPersonDonationSettings */ @JsonPropertyOrder({ @@ -565,11 +565,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InPersonDonationSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InPersonDonationSettings + * @throws JacksonException if the JSON string is invalid with respect to InPersonDonationSettings */ - public static InPersonDonationSettings fromJson(String jsonString) - throws JsonProcessingException { + public static InPersonDonationSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InPersonDonationSettings.class); } @@ -578,7 +576,7 @@ public static InPersonDonationSettings fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InPersonDonationSettingsResponse.java b/src/main/java/com/adyen/model/management/InPersonDonationSettingsResponse.java index f49b26785..29a2a3664 100644 --- a/src/main/java/com/adyen/model/management/InPersonDonationSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/InPersonDonationSettingsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** InPersonDonationSettingsResponse */ @JsonPropertyOrder({ @@ -648,11 +648,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InPersonDonationSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InPersonDonationSettingsResponse */ public static InPersonDonationSettingsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, InPersonDonationSettingsResponse.class); } @@ -661,7 +661,7 @@ public static InPersonDonationSettingsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InPersonDonationSettingsUpdate.java b/src/main/java/com/adyen/model/management/InPersonDonationSettingsUpdate.java index 5ced7e8b0..aeb2d784d 100644 --- a/src/main/java/com/adyen/model/management/InPersonDonationSettingsUpdate.java +++ b/src/main/java/com/adyen/model/management/InPersonDonationSettingsUpdate.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** InPersonDonationSettingsUpdate */ @JsonPropertyOrder({ @@ -578,11 +578,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InPersonDonationSettingsUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InPersonDonationSettingsUpdate */ - public static InPersonDonationSettingsUpdate fromJson(String jsonString) - throws JsonProcessingException { + public static InPersonDonationSettingsUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InPersonDonationSettingsUpdate.class); } @@ -591,7 +590,7 @@ public static InPersonDonationSettingsUpdate fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java index de41e2431..2d2fe59f7 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidAppDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InstallAndroidAppDetails */ @JsonPropertyOrder({ @@ -251,11 +251,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InstallAndroidAppDetails + * @throws JacksonException if the JSON string is invalid with respect to InstallAndroidAppDetails */ - public static InstallAndroidAppDetails fromJson(String jsonString) - throws JsonProcessingException { + public static InstallAndroidAppDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InstallAndroidAppDetails.class); } @@ -264,7 +262,7 @@ public static InstallAndroidAppDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java index ece9ea04c..5b39a9b5f 100644 --- a/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/InstallAndroidCertificateDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InstallAndroidCertificateDetails */ @JsonPropertyOrder({ @@ -255,11 +255,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InstallAndroidCertificateDetails */ public static InstallAndroidCertificateDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, InstallAndroidCertificateDetails.class); } @@ -268,7 +268,7 @@ public static InstallAndroidCertificateDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InstalledAPKs.java b/src/main/java/com/adyen/model/management/InstalledAPKs.java index 27ad0439c..25ba3f3af 100644 --- a/src/main/java/com/adyen/model/management/InstalledAPKs.java +++ b/src/main/java/com/adyen/model/management/InstalledAPKs.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** InstalledAPKs */ @JsonPropertyOrder({ @@ -263,9 +263,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InstalledAPKs - * @throws JsonProcessingException if the JSON string is invalid with respect to InstalledAPKs + * @throws JacksonException if the JSON string is invalid with respect to InstalledAPKs */ - public static InstalledAPKs fromJson(String jsonString) throws JsonProcessingException { + public static InstalledAPKs fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InstalledAPKs.class); } @@ -274,7 +274,7 @@ public static InstalledAPKs fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InteracCardResponseInfo.java b/src/main/java/com/adyen/model/management/InteracCardResponseInfo.java index 7cd0f7e7c..f6db7ef54 100644 --- a/src/main/java/com/adyen/model/management/InteracCardResponseInfo.java +++ b/src/main/java/com/adyen/model/management/InteracCardResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InteracCardResponseInfo */ @JsonPropertyOrder({InteracCardResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -163,10 +163,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InteracCardResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InteracCardResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to InteracCardResponseInfo */ - public static InteracCardResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static InteracCardResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InteracCardResponseInfo.class); } @@ -175,7 +174,7 @@ public static InteracCardResponseInfo fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/InvalidField.java b/src/main/java/com/adyen/model/management/InvalidField.java index c47626107..c02ffba43 100644 --- a/src/main/java/com/adyen/model/management/InvalidField.java +++ b/src/main/java/com/adyen/model/management/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/JCBInfo.java b/src/main/java/com/adyen/model/management/JCBInfo.java index aa7641d40..1cee37aa8 100644 --- a/src/main/java/com/adyen/model/management/JCBInfo.java +++ b/src/main/java/com/adyen/model/management/JCBInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** JCBInfo */ @JsonPropertyOrder({ @@ -441,9 +441,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of JCBInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to JCBInfo + * @throws JacksonException if the JSON string is invalid with respect to JCBInfo */ - public static JCBInfo fromJson(String jsonString) throws JsonProcessingException { + public static JCBInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, JCBInfo.class); } @@ -452,7 +452,7 @@ public static JCBInfo fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/JCBResponseInfo.java b/src/main/java/com/adyen/model/management/JCBResponseInfo.java index 610efaf21..193cd6016 100644 --- a/src/main/java/com/adyen/model/management/JCBResponseInfo.java +++ b/src/main/java/com/adyen/model/management/JCBResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** JCBResponseInfo */ @JsonPropertyOrder({ @@ -319,9 +319,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of JCBResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to JCBResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to JCBResponseInfo */ - public static JCBResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static JCBResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, JCBResponseInfo.class); } @@ -330,7 +330,7 @@ public static JCBResponseInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/JSON.java b/src/main/java/com/adyen/model/management/JSON.java index e7636df03..e6636286e 100644 --- a/src/main/java/com/adyen/model/management/JSON.java +++ b/src/main/java/com/adyen/model/management/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/management/Key.java b/src/main/java/com/adyen/model/management/Key.java index 0005bb0d2..bc56cd778 100644 --- a/src/main/java/com/adyen/model/management/Key.java +++ b/src/main/java/com/adyen/model/management/Key.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Key */ @JsonPropertyOrder({ @@ -302,9 +302,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Key - * @throws JsonProcessingException if the JSON string is invalid with respect to Key + * @throws JacksonException if the JSON string is invalid with respect to Key */ - public static Key fromJson(String jsonString) throws JsonProcessingException { + public static Key fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Key.class); } @@ -313,7 +313,7 @@ public static Key fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/KioskModeSettings.java b/src/main/java/com/adyen/model/management/KioskModeSettings.java index b17d3dd01..7b70b3b55 100644 --- a/src/main/java/com/adyen/model/management/KioskModeSettings.java +++ b/src/main/java/com/adyen/model/management/KioskModeSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** KioskModeSettings */ @JsonPropertyOrder({ @@ -231,9 +231,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of KioskModeSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to KioskModeSettings + * @throws JacksonException if the JSON string is invalid with respect to KioskModeSettings */ - public static KioskModeSettings fromJson(String jsonString) throws JsonProcessingException { + public static KioskModeSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KioskModeSettings.class); } @@ -242,7 +242,7 @@ public static KioskModeSettings fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/KlarnaInfo.java b/src/main/java/com/adyen/model/management/KlarnaInfo.java index 472599444..c98bc7275 100644 --- a/src/main/java/com/adyen/model/management/KlarnaInfo.java +++ b/src/main/java/com/adyen/model/management/KlarnaInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** KlarnaInfo */ @JsonPropertyOrder({ @@ -373,9 +373,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of KlarnaInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to KlarnaInfo + * @throws JacksonException if the JSON string is invalid with respect to KlarnaInfo */ - public static KlarnaInfo fromJson(String jsonString) throws JsonProcessingException { + public static KlarnaInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KlarnaInfo.class); } @@ -384,7 +384,7 @@ public static KlarnaInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/KlarnaResponseInfo.java b/src/main/java/com/adyen/model/management/KlarnaResponseInfo.java index c423927b9..fd9db1c00 100644 --- a/src/main/java/com/adyen/model/management/KlarnaResponseInfo.java +++ b/src/main/java/com/adyen/model/management/KlarnaResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** KlarnaResponseInfo */ @JsonPropertyOrder({ @@ -367,10 +367,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of KlarnaResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KlarnaResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to KlarnaResponseInfo */ - public static KlarnaResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static KlarnaResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KlarnaResponseInfo.class); } @@ -379,7 +378,7 @@ public static KlarnaResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Links.java b/src/main/java/com/adyen/model/management/Links.java index 92934ba7b..94911113f 100644 --- a/src/main/java/com/adyen/model/management/Links.java +++ b/src/main/java/com/adyen/model/management/Links.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Links */ @JsonPropertyOrder({Links.JSON_PROPERTY_SELF}) @@ -157,9 +157,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Links - * @throws JsonProcessingException if the JSON string is invalid with respect to Links + * @throws JacksonException if the JSON string is invalid with respect to Links */ - public static Links fromJson(String jsonString) throws JsonProcessingException { + public static Links fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Links.class); } @@ -168,7 +168,7 @@ public static Links fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/LinksElement.java b/src/main/java/com/adyen/model/management/LinksElement.java index 40df5b31d..8d05a5f7b 100644 --- a/src/main/java/com/adyen/model/management/LinksElement.java +++ b/src/main/java/com/adyen/model/management/LinksElement.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LinksElement */ @JsonPropertyOrder({LinksElement.JSON_PROPERTY_HREF}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LinksElement - * @throws JsonProcessingException if the JSON string is invalid with respect to LinksElement + * @throws JacksonException if the JSON string is invalid with respect to LinksElement */ - public static LinksElement fromJson(String jsonString) throws JsonProcessingException { + public static LinksElement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LinksElement.class); } @@ -169,7 +169,7 @@ public static LinksElement fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java index ad9613578..770f86df5 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyApiCredentialsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListCompanyApiCredentialsResponse */ @JsonPropertyOrder({ @@ -327,11 +327,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListCompanyApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListCompanyApiCredentialsResponse */ public static ListCompanyApiCredentialsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ListCompanyApiCredentialsResponse.class); } @@ -340,7 +340,7 @@ public static ListCompanyApiCredentialsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListCompanyResponse.java b/src/main/java/com/adyen/model/management/ListCompanyResponse.java index d0751636e..f7cf760e0 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListCompanyResponse */ @JsonPropertyOrder({ @@ -322,10 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListCompanyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListCompanyResponse + * @throws JacksonException if the JSON string is invalid with respect to ListCompanyResponse */ - public static ListCompanyResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListCompanyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListCompanyResponse.class); } @@ -334,7 +333,7 @@ public static ListCompanyResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java index b48f18e1e..a3648b4f6 100644 --- a/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListCompanyUsersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListCompanyUsersResponse */ @JsonPropertyOrder({ @@ -322,11 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListCompanyUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListCompanyUsersResponse + * @throws JacksonException if the JSON string is invalid with respect to ListCompanyUsersResponse */ - public static ListCompanyUsersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListCompanyUsersResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListCompanyUsersResponse.class); } @@ -335,7 +333,7 @@ public static ListCompanyUsersResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListDonationCampaignsResponse.java b/src/main/java/com/adyen/model/management/ListDonationCampaignsResponse.java index 07ed6fed5..7c80a4546 100644 --- a/src/main/java/com/adyen/model/management/ListDonationCampaignsResponse.java +++ b/src/main/java/com/adyen/model/management/ListDonationCampaignsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListDonationCampaignsResponse */ @JsonPropertyOrder({ @@ -326,11 +326,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListDonationCampaignsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListDonationCampaignsResponse */ - public static ListDonationCampaignsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListDonationCampaignsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListDonationCampaignsResponse.class); } @@ -339,7 +338,7 @@ public static ListDonationCampaignsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java index 62c307268..2330c589b 100644 --- a/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ListExternalTerminalActionsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListExternalTerminalActionsResponse */ @JsonPropertyOrder({ListExternalTerminalActionsResponse.JSON_PROPERTY_DATA}) @@ -170,11 +170,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListExternalTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListExternalTerminalActionsResponse */ public static ListExternalTerminalActionsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ListExternalTerminalActionsResponse.class); } @@ -183,7 +183,7 @@ public static ListExternalTerminalActionsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java index a2827feda..45c6bfcd1 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantApiCredentialsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListMerchantApiCredentialsResponse */ @JsonPropertyOrder({ @@ -327,11 +327,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListMerchantApiCredentialsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListMerchantApiCredentialsResponse */ public static ListMerchantApiCredentialsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ListMerchantApiCredentialsResponse.class); } @@ -340,7 +340,7 @@ public static ListMerchantApiCredentialsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListMerchantResponse.java b/src/main/java/com/adyen/model/management/ListMerchantResponse.java index 3dd63cb13..461883c04 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListMerchantResponse */ @JsonPropertyOrder({ @@ -322,10 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListMerchantResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListMerchantResponse + * @throws JacksonException if the JSON string is invalid with respect to ListMerchantResponse */ - public static ListMerchantResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListMerchantResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListMerchantResponse.class); } @@ -334,7 +333,7 @@ public static ListMerchantResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java index 1842714b8..fcb683f30 100644 --- a/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java +++ b/src/main/java/com/adyen/model/management/ListMerchantUsersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListMerchantUsersResponse */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListMerchantUsersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ListMerchantUsersResponse */ - public static ListMerchantUsersResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ListMerchantUsersResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListMerchantUsersResponse.class); } @@ -335,7 +334,7 @@ public static ListMerchantUsersResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListNonprofitsRequest.java b/src/main/java/com/adyen/model/management/ListNonprofitsRequest.java index f0c7deb16..376627e5f 100644 --- a/src/main/java/com/adyen/model/management/ListNonprofitsRequest.java +++ b/src/main/java/com/adyen/model/management/ListNonprofitsRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListNonprofitsRequest */ @JsonPropertyOrder({ListNonprofitsRequest.JSON_PROPERTY_ACCOUNT_HOLDER_IDS}) @@ -171,10 +171,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListNonprofitsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListNonprofitsRequest + * @throws JacksonException if the JSON string is invalid with respect to ListNonprofitsRequest */ - public static ListNonprofitsRequest fromJson(String jsonString) throws JsonProcessingException { + public static ListNonprofitsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListNonprofitsRequest.class); } @@ -183,7 +182,7 @@ public static ListNonprofitsRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListNonprofitsResponse.java b/src/main/java/com/adyen/model/management/ListNonprofitsResponse.java index fedbe7fff..bbc184f42 100644 --- a/src/main/java/com/adyen/model/management/ListNonprofitsResponse.java +++ b/src/main/java/com/adyen/model/management/ListNonprofitsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListNonprofitsResponse */ @JsonPropertyOrder({ @@ -322,10 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListNonprofitsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListNonprofitsResponse + * @throws JacksonException if the JSON string is invalid with respect to ListNonprofitsResponse */ - public static ListNonprofitsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListNonprofitsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListNonprofitsResponse.class); } @@ -334,7 +333,7 @@ public static ListNonprofitsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListStoresResponse.java b/src/main/java/com/adyen/model/management/ListStoresResponse.java index 7fdcd88a3..f4d91a860 100644 --- a/src/main/java/com/adyen/model/management/ListStoresResponse.java +++ b/src/main/java/com/adyen/model/management/ListStoresResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListStoresResponse */ @JsonPropertyOrder({ @@ -322,10 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListStoresResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListStoresResponse + * @throws JacksonException if the JSON string is invalid with respect to ListStoresResponse */ - public static ListStoresResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListStoresResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListStoresResponse.class); } @@ -334,7 +333,7 @@ public static ListStoresResponse fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java index 13f41ea48..003cf5076 100644 --- a/src/main/java/com/adyen/model/management/ListTerminalsResponse.java +++ b/src/main/java/com/adyen/model/management/ListTerminalsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListTerminalsResponse */ @JsonPropertyOrder({ @@ -322,10 +322,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListTerminalsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListTerminalsResponse + * @throws JacksonException if the JSON string is invalid with respect to ListTerminalsResponse */ - public static ListTerminalsResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListTerminalsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListTerminalsResponse.class); } @@ -334,7 +333,7 @@ public static ListTerminalsResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java index 95077a5ec..3f6396c18 100644 --- a/src/main/java/com/adyen/model/management/ListWebhooksResponse.java +++ b/src/main/java/com/adyen/model/management/ListWebhooksResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ListWebhooksResponse */ @JsonPropertyOrder({ @@ -372,10 +372,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ListWebhooksResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ListWebhooksResponse + * @throws JacksonException if the JSON string is invalid with respect to ListWebhooksResponse */ - public static ListWebhooksResponse fromJson(String jsonString) throws JsonProcessingException { + public static ListWebhooksResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ListWebhooksResponse.class); } @@ -384,7 +383,7 @@ public static ListWebhooksResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/LocalShopperStatement.java b/src/main/java/com/adyen/model/management/LocalShopperStatement.java index acfe4cd97..f37fee815 100644 --- a/src/main/java/com/adyen/model/management/LocalShopperStatement.java +++ b/src/main/java/com/adyen/model/management/LocalShopperStatement.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LocalShopperStatement */ @JsonPropertyOrder({ @@ -211,10 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LocalShopperStatement - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LocalShopperStatement + * @throws JacksonException if the JSON string is invalid with respect to LocalShopperStatement */ - public static LocalShopperStatement fromJson(String jsonString) throws JsonProcessingException { + public static LocalShopperStatement fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LocalShopperStatement.class); } @@ -223,7 +222,7 @@ public static LocalShopperStatement fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Localization.java b/src/main/java/com/adyen/model/management/Localization.java index eb42dd02b..52dfe2edc 100644 --- a/src/main/java/com/adyen/model/management/Localization.java +++ b/src/main/java/com/adyen/model/management/Localization.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Localization */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Localization - * @throws JsonProcessingException if the JSON string is invalid with respect to Localization + * @throws JacksonException if the JSON string is invalid with respect to Localization */ - public static Localization fromJson(String jsonString) throws JsonProcessingException { + public static Localization fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Localization.class); } @@ -273,7 +273,7 @@ public static Localization fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/LocalizedInformation.java b/src/main/java/com/adyen/model/management/LocalizedInformation.java index b5820df6f..fd4687499 100644 --- a/src/main/java/com/adyen/model/management/LocalizedInformation.java +++ b/src/main/java/com/adyen/model/management/LocalizedInformation.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** LocalizedInformation */ @JsonPropertyOrder({LocalizedInformation.JSON_PROPERTY_LOCAL_SHOPPER_STATEMENT}) @@ -182,10 +182,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LocalizedInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LocalizedInformation + * @throws JacksonException if the JSON string is invalid with respect to LocalizedInformation */ - public static LocalizedInformation fromJson(String jsonString) throws JsonProcessingException { + public static LocalizedInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LocalizedInformation.class); } @@ -194,7 +193,7 @@ public static LocalizedInformation fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Logo.java b/src/main/java/com/adyen/model/management/Logo.java index 33903a475..dd90350b3 100644 --- a/src/main/java/com/adyen/model/management/Logo.java +++ b/src/main/java/com/adyen/model/management/Logo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Logo */ @JsonPropertyOrder({Logo.JSON_PROPERTY_DATA}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Logo - * @throws JsonProcessingException if the JSON string is invalid with respect to Logo + * @throws JacksonException if the JSON string is invalid with respect to Logo */ - public static Logo fromJson(String jsonString) throws JsonProcessingException { + public static Logo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Logo.class); } @@ -171,7 +171,7 @@ public static Logo fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MCResponseInfo.java b/src/main/java/com/adyen/model/management/MCResponseInfo.java index 8d604ade7..e59eb15bb 100644 --- a/src/main/java/com/adyen/model/management/MCResponseInfo.java +++ b/src/main/java/com/adyen/model/management/MCResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MCResponseInfo */ @JsonPropertyOrder({MCResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,9 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MCResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to MCResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to MCResponseInfo */ - public static MCResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static MCResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MCResponseInfo.class); } @@ -173,7 +173,7 @@ public static MCResponseInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MaestroResponseInfo.java b/src/main/java/com/adyen/model/management/MaestroResponseInfo.java index a6dc32bb2..361336eeb 100644 --- a/src/main/java/com/adyen/model/management/MaestroResponseInfo.java +++ b/src/main/java/com/adyen/model/management/MaestroResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MaestroResponseInfo */ @JsonPropertyOrder({MaestroResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,10 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MaestroResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MaestroResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to MaestroResponseInfo */ - public static MaestroResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static MaestroResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MaestroResponseInfo.class); } @@ -174,7 +173,7 @@ public static MaestroResponseInfo fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MaestroUSAResponseInfo.java b/src/main/java/com/adyen/model/management/MaestroUSAResponseInfo.java index 64a0e8487..29b609838 100644 --- a/src/main/java/com/adyen/model/management/MaestroUSAResponseInfo.java +++ b/src/main/java/com/adyen/model/management/MaestroUSAResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MaestroUSAResponseInfo */ @JsonPropertyOrder({MaestroUSAResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -163,10 +163,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MaestroUSAResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MaestroUSAResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to MaestroUSAResponseInfo */ - public static MaestroUSAResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static MaestroUSAResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MaestroUSAResponseInfo.class); } @@ -175,7 +174,7 @@ public static MaestroUSAResponseInfo fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MeApiCredential.java b/src/main/java/com/adyen/model/management/MeApiCredential.java index 216920e6e..7e6083cdc 100644 --- a/src/main/java/com/adyen/model/management/MeApiCredential.java +++ b/src/main/java/com/adyen/model/management/MeApiCredential.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MeApiCredential */ @JsonPropertyOrder({ @@ -748,9 +748,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MeApiCredential - * @throws JsonProcessingException if the JSON string is invalid with respect to MeApiCredential + * @throws JacksonException if the JSON string is invalid with respect to MeApiCredential */ - public static MeApiCredential fromJson(String jsonString) throws JsonProcessingException { + public static MeApiCredential fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MeApiCredential.class); } @@ -759,7 +759,7 @@ public static MeApiCredential fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java index 12b159336..9162177e6 100644 --- a/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java +++ b/src/main/java/com/adyen/model/management/MealVoucherFRInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MealVoucherFRInfo */ @JsonPropertyOrder({ @@ -275,9 +275,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MealVoucherFRInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to MealVoucherFRInfo + * @throws JacksonException if the JSON string is invalid with respect to MealVoucherFRInfo */ - public static MealVoucherFRInfo fromJson(String jsonString) throws JsonProcessingException { + public static MealVoucherFRInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MealVoucherFRInfo.class); } @@ -286,7 +286,7 @@ public static MealVoucherFRInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MealVoucherFRResponseInfo.java b/src/main/java/com/adyen/model/management/MealVoucherFRResponseInfo.java index c8492c8a7..0e53bf8dc 100644 --- a/src/main/java/com/adyen/model/management/MealVoucherFRResponseInfo.java +++ b/src/main/java/com/adyen/model/management/MealVoucherFRResponseInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** MealVoucherFRResponseInfo */ @JsonPropertyOrder({ @@ -266,11 +266,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MealVoucherFRResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MealVoucherFRResponseInfo */ - public static MealVoucherFRResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static MealVoucherFRResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MealVoucherFRResponseInfo.class); } @@ -279,7 +278,7 @@ public static MealVoucherFRResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Merchant.java b/src/main/java/com/adyen/model/management/Merchant.java index e4dbb7e24..cf03cf681 100644 --- a/src/main/java/com/adyen/model/management/Merchant.java +++ b/src/main/java/com/adyen/model/management/Merchant.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Merchant */ @JsonPropertyOrder({ @@ -941,9 +941,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Merchant - * @throws JsonProcessingException if the JSON string is invalid with respect to Merchant + * @throws JacksonException if the JSON string is invalid with respect to Merchant */ - public static Merchant fromJson(String jsonString) throws JsonProcessingException { + public static Merchant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Merchant.class); } @@ -952,7 +952,7 @@ public static Merchant fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MerchantLinks.java b/src/main/java/com/adyen/model/management/MerchantLinks.java index 8616b8845..52071d2f9 100644 --- a/src/main/java/com/adyen/model/management/MerchantLinks.java +++ b/src/main/java/com/adyen/model/management/MerchantLinks.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantLinks */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantLinks + * @throws JacksonException if the JSON string is invalid with respect to MerchantLinks */ - public static MerchantLinks fromJson(String jsonString) throws JsonProcessingException { + public static MerchantLinks fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantLinks.class); } @@ -323,7 +323,7 @@ public static MerchantLinks fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java index a507c551e..bfc4aff63 100644 --- a/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java +++ b/src/main/java/com/adyen/model/management/MinorUnitsMonetaryValue.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MinorUnitsMonetaryValue */ @JsonPropertyOrder({ @@ -220,10 +220,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MinorUnitsMonetaryValue - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MinorUnitsMonetaryValue + * @throws JacksonException if the JSON string is invalid with respect to MinorUnitsMonetaryValue */ - public static MinorUnitsMonetaryValue fromJson(String jsonString) throws JsonProcessingException { + public static MinorUnitsMonetaryValue fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MinorUnitsMonetaryValue.class); } @@ -232,7 +231,7 @@ public static MinorUnitsMonetaryValue fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ModelConfiguration.java b/src/main/java/com/adyen/model/management/ModelConfiguration.java index 25ecbda49..ce625fbbf 100644 --- a/src/main/java/com/adyen/model/management/ModelConfiguration.java +++ b/src/main/java/com/adyen/model/management/ModelConfiguration.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ModelConfiguration */ @JsonPropertyOrder({ @@ -402,10 +402,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModelConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ModelConfiguration + * @throws JacksonException if the JSON string is invalid with respect to ModelConfiguration */ - public static ModelConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static ModelConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModelConfiguration.class); } @@ -414,7 +413,7 @@ public static ModelConfiguration fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ModelFile.java b/src/main/java/com/adyen/model/management/ModelFile.java index 1f8a1174b..dc15cca05 100644 --- a/src/main/java/com/adyen/model/management/ModelFile.java +++ b/src/main/java/com/adyen/model/management/ModelFile.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ModelFile */ @JsonPropertyOrder({ModelFile.JSON_PROPERTY_DATA, ModelFile.JSON_PROPERTY_NAME}) @@ -207,9 +207,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModelFile - * @throws JsonProcessingException if the JSON string is invalid with respect to ModelFile + * @throws JacksonException if the JSON string is invalid with respect to ModelFile */ - public static ModelFile fromJson(String jsonString) throws JsonProcessingException { + public static ModelFile fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModelFile.class); } @@ -218,7 +218,7 @@ public static ModelFile fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Moto.java b/src/main/java/com/adyen/model/management/Moto.java index 208d44d96..c00bcf822 100644 --- a/src/main/java/com/adyen/model/management/Moto.java +++ b/src/main/java/com/adyen/model/management/Moto.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Moto */ @JsonPropertyOrder({Moto.JSON_PROPERTY_ENABLE_MOTO, Moto.JSON_PROPERTY_MAX_AMOUNT}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Moto - * @throws JsonProcessingException if the JSON string is invalid with respect to Moto + * @throws JacksonException if the JSON string is invalid with respect to Moto */ - public static Moto fromJson(String jsonString) throws JsonProcessingException { + public static Moto fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Moto.class); } @@ -234,7 +234,7 @@ public static Moto fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Name.java b/src/main/java/com/adyen/model/management/Name.java index 15ecab83d..94d4e65b1 100644 --- a/src/main/java/com/adyen/model/management/Name.java +++ b/src/main/java/com/adyen/model/management/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Name2.java b/src/main/java/com/adyen/model/management/Name2.java index 7eade0c36..a49882792 100644 --- a/src/main/java/com/adyen/model/management/Name2.java +++ b/src/main/java/com/adyen/model/management/Name2.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name2 */ @JsonPropertyOrder({Name2.JSON_PROPERTY_FIRST_NAME, Name2.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name2 - * @throws JsonProcessingException if the JSON string is invalid with respect to Name2 + * @throws JacksonException if the JSON string is invalid with respect to Name2 */ - public static Name2 fromJson(String jsonString) throws JsonProcessingException { + public static Name2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name2.class); } @@ -216,7 +216,7 @@ public static Name2 fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Nexo.java b/src/main/java/com/adyen/model/management/Nexo.java index 9af8f8dfb..b8b2a11be 100644 --- a/src/main/java/com/adyen/model/management/Nexo.java +++ b/src/main/java/com/adyen/model/management/Nexo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Nexo */ @JsonPropertyOrder({ @@ -379,9 +379,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Nexo - * @throws JsonProcessingException if the JSON string is invalid with respect to Nexo + * @throws JacksonException if the JSON string is invalid with respect to Nexo */ - public static Nexo fromJson(String jsonString) throws JsonProcessingException { + public static Nexo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Nexo.class); } @@ -390,7 +390,7 @@ public static Nexo fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Nonprofit.java b/src/main/java/com/adyen/model/management/Nonprofit.java index c89ee32ab..d0200c193 100644 --- a/src/main/java/com/adyen/model/management/Nonprofit.java +++ b/src/main/java/com/adyen/model/management/Nonprofit.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Nonprofit */ @JsonPropertyOrder({ @@ -663,9 +663,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Nonprofit - * @throws JsonProcessingException if the JSON string is invalid with respect to Nonprofit + * @throws JacksonException if the JSON string is invalid with respect to Nonprofit */ - public static Nonprofit fromJson(String jsonString) throws JsonProcessingException { + public static Nonprofit fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Nonprofit.class); } @@ -674,7 +674,7 @@ public static Nonprofit fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/NonprofitCause.java b/src/main/java/com/adyen/model/management/NonprofitCause.java index a7c9e7bbf..9033caafb 100644 --- a/src/main/java/com/adyen/model/management/NonprofitCause.java +++ b/src/main/java/com/adyen/model/management/NonprofitCause.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** NonprofitCause */ @JsonPropertyOrder({ @@ -378,9 +378,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NonprofitCause - * @throws JsonProcessingException if the JSON string is invalid with respect to NonprofitCause + * @throws JacksonException if the JSON string is invalid with respect to NonprofitCause */ - public static NonprofitCause fromJson(String jsonString) throws JsonProcessingException { + public static NonprofitCause fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NonprofitCause.class); } @@ -389,7 +389,7 @@ public static NonprofitCause fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Notification.java b/src/main/java/com/adyen/model/management/Notification.java index 5df801be5..ddfdbc2cd 100644 --- a/src/main/java/com/adyen/model/management/Notification.java +++ b/src/main/java/com/adyen/model/management/Notification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Notification */ @JsonPropertyOrder({ @@ -427,9 +427,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Notification - * @throws JsonProcessingException if the JSON string is invalid with respect to Notification + * @throws JacksonException if the JSON string is invalid with respect to Notification */ - public static Notification fromJson(String jsonString) throws JsonProcessingException { + public static Notification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Notification.class); } @@ -438,7 +438,7 @@ public static Notification fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/NotificationUrl.java b/src/main/java/com/adyen/model/management/NotificationUrl.java index 814777b6b..db2299794 100644 --- a/src/main/java/com/adyen/model/management/NotificationUrl.java +++ b/src/main/java/com/adyen/model/management/NotificationUrl.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** NotificationUrl */ @JsonPropertyOrder({ @@ -226,9 +226,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NotificationUrl - * @throws JsonProcessingException if the JSON string is invalid with respect to NotificationUrl + * @throws JacksonException if the JSON string is invalid with respect to NotificationUrl */ - public static NotificationUrl fromJson(String jsonString) throws JsonProcessingException { + public static NotificationUrl fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotificationUrl.class); } @@ -237,7 +237,7 @@ public static NotificationUrl fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/NyceInfo.java b/src/main/java/com/adyen/model/management/NyceInfo.java index 764681709..8f8eec987 100644 --- a/src/main/java/com/adyen/model/management/NyceInfo.java +++ b/src/main/java/com/adyen/model/management/NyceInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NyceInfo */ @JsonPropertyOrder({ @@ -295,9 +295,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NyceInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to NyceInfo + * @throws JacksonException if the JSON string is invalid with respect to NyceInfo */ - public static NyceInfo fromJson(String jsonString) throws JsonProcessingException { + public static NyceInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NyceInfo.class); } @@ -306,7 +306,7 @@ public static NyceInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/NyceResponseInfo.java b/src/main/java/com/adyen/model/management/NyceResponseInfo.java index f9685e484..e6983c90f 100644 --- a/src/main/java/com/adyen/model/management/NyceResponseInfo.java +++ b/src/main/java/com/adyen/model/management/NyceResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NyceResponseInfo */ @JsonPropertyOrder({ @@ -297,9 +297,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NyceResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to NyceResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to NyceResponseInfo */ - public static NyceResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static NyceResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NyceResponseInfo.class); } @@ -308,7 +308,7 @@ public static NyceResponseInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/NyceUpdateInfo.java b/src/main/java/com/adyen/model/management/NyceUpdateInfo.java index 917e86075..b4fbf8b70 100644 --- a/src/main/java/com/adyen/model/management/NyceUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/NyceUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NyceUpdateInfo */ @JsonPropertyOrder({NyceUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NyceUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to NyceUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to NyceUpdateInfo */ - public static NyceUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static NyceUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NyceUpdateInfo.class); } @@ -172,7 +172,7 @@ public static NyceUpdateInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/OfflineProcessing.java b/src/main/java/com/adyen/model/management/OfflineProcessing.java index 676d188b4..fd855b401 100644 --- a/src/main/java/com/adyen/model/management/OfflineProcessing.java +++ b/src/main/java/com/adyen/model/management/OfflineProcessing.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OfflineProcessing */ @JsonPropertyOrder({OfflineProcessing.JSON_PROPERTY_CHIP_FLOOR_LIMIT}) @@ -167,9 +167,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OfflineProcessing - * @throws JsonProcessingException if the JSON string is invalid with respect to OfflineProcessing + * @throws JacksonException if the JSON string is invalid with respect to OfflineProcessing */ - public static OfflineProcessing fromJson(String jsonString) throws JsonProcessingException { + public static OfflineProcessing fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OfflineProcessing.class); } @@ -178,7 +178,7 @@ public static OfflineProcessing fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/OnlineDonationSettings.java b/src/main/java/com/adyen/model/management/OnlineDonationSettings.java index 48a0d8d26..4d798e1a9 100644 --- a/src/main/java/com/adyen/model/management/OnlineDonationSettings.java +++ b/src/main/java/com/adyen/model/management/OnlineDonationSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** OnlineDonationSettings */ @JsonPropertyOrder({ @@ -339,10 +339,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnlineDonationSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OnlineDonationSettings + * @throws JacksonException if the JSON string is invalid with respect to OnlineDonationSettings */ - public static OnlineDonationSettings fromJson(String jsonString) throws JsonProcessingException { + public static OnlineDonationSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnlineDonationSettings.class); } @@ -351,7 +350,7 @@ public static OnlineDonationSettings fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/OnlineDonationSettingsResponse.java b/src/main/java/com/adyen/model/management/OnlineDonationSettingsResponse.java index 583982322..09b8cc2dd 100644 --- a/src/main/java/com/adyen/model/management/OnlineDonationSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/OnlineDonationSettingsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** OnlineDonationSettingsResponse */ @JsonPropertyOrder({ @@ -426,11 +426,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnlineDonationSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * OnlineDonationSettingsResponse */ - public static OnlineDonationSettingsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static OnlineDonationSettingsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnlineDonationSettingsResponse.class); } @@ -439,7 +438,7 @@ public static OnlineDonationSettingsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/OnlineDonationSettingsUpdate.java b/src/main/java/com/adyen/model/management/OnlineDonationSettingsUpdate.java index ee55ed165..c6ea06914 100644 --- a/src/main/java/com/adyen/model/management/OnlineDonationSettingsUpdate.java +++ b/src/main/java/com/adyen/model/management/OnlineDonationSettingsUpdate.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** OnlineDonationSettingsUpdate */ @JsonPropertyOrder({ @@ -340,11 +340,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OnlineDonationSettingsUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * OnlineDonationSettingsUpdate */ - public static OnlineDonationSettingsUpdate fromJson(String jsonString) - throws JsonProcessingException { + public static OnlineDonationSettingsUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OnlineDonationSettingsUpdate.class); } @@ -353,7 +352,7 @@ public static OnlineDonationSettingsUpdate fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Opi.java b/src/main/java/com/adyen/model/management/Opi.java index 1c71add06..3e52a59c3 100644 --- a/src/main/java/com/adyen/model/management/Opi.java +++ b/src/main/java/com/adyen/model/management/Opi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Opi */ @JsonPropertyOrder({ @@ -264,9 +264,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Opi - * @throws JsonProcessingException if the JSON string is invalid with respect to Opi + * @throws JacksonException if the JSON string is invalid with respect to Opi */ - public static Opi fromJson(String jsonString) throws JsonProcessingException { + public static Opi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Opi.class); } @@ -275,7 +275,7 @@ public static Opi fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/OrderItem.java b/src/main/java/com/adyen/model/management/OrderItem.java index 27102b4c5..f1e44788b 100644 --- a/src/main/java/com/adyen/model/management/OrderItem.java +++ b/src/main/java/com/adyen/model/management/OrderItem.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OrderItem */ @JsonPropertyOrder({ @@ -308,9 +308,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OrderItem - * @throws JsonProcessingException if the JSON string is invalid with respect to OrderItem + * @throws JacksonException if the JSON string is invalid with respect to OrderItem */ - public static OrderItem fromJson(String jsonString) throws JsonProcessingException { + public static OrderItem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OrderItem.class); } @@ -319,7 +319,7 @@ public static OrderItem fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PaginationLinks.java b/src/main/java/com/adyen/model/management/PaginationLinks.java index f74b80b78..c6ef21fc9 100644 --- a/src/main/java/com/adyen/model/management/PaginationLinks.java +++ b/src/main/java/com/adyen/model/management/PaginationLinks.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaginationLinks */ @JsonPropertyOrder({ @@ -353,9 +353,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaginationLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to PaginationLinks + * @throws JacksonException if the JSON string is invalid with respect to PaginationLinks */ - public static PaginationLinks fromJson(String jsonString) throws JsonProcessingException { + public static PaginationLinks fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaginationLinks.class); } @@ -364,7 +364,7 @@ public static PaginationLinks fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Passcodes.java b/src/main/java/com/adyen/model/management/Passcodes.java index 7abc7e0bf..513fd4f6b 100644 --- a/src/main/java/com/adyen/model/management/Passcodes.java +++ b/src/main/java/com/adyen/model/management/Passcodes.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Passcodes */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Passcodes - * @throws JsonProcessingException if the JSON string is invalid with respect to Passcodes + * @throws JacksonException if the JSON string is invalid with respect to Passcodes */ - public static Passcodes fromJson(String jsonString) throws JsonProcessingException { + public static Passcodes fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Passcodes.class); } @@ -323,7 +323,7 @@ public static Passcodes fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayAtTable.java b/src/main/java/com/adyen/model/management/PayAtTable.java index 5f98a19d3..84eaf16dc 100644 --- a/src/main/java/com/adyen/model/management/PayAtTable.java +++ b/src/main/java/com/adyen/model/management/PayAtTable.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayAtTable */ @JsonPropertyOrder({ @@ -359,9 +359,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayAtTable - * @throws JsonProcessingException if the JSON string is invalid with respect to PayAtTable + * @throws JacksonException if the JSON string is invalid with respect to PayAtTable */ - public static PayAtTable fromJson(String jsonString) throws JsonProcessingException { + public static PayAtTable fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayAtTable.class); } @@ -370,7 +370,7 @@ public static PayAtTable fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java index 2b5090a61..a92c8c8b9 100644 --- a/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java +++ b/src/main/java/com/adyen/model/management/PayByBankPlaidInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayByBankPlaidInfo */ @JsonPropertyOrder({ @@ -219,10 +219,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayByBankPlaidInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayByBankPlaidInfo + * @throws JacksonException if the JSON string is invalid with respect to PayByBankPlaidInfo */ - public static PayByBankPlaidInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayByBankPlaidInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayByBankPlaidInfo.class); } @@ -231,7 +230,7 @@ public static PayByBankPlaidInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayByBankPlaidResponseInfo.java b/src/main/java/com/adyen/model/management/PayByBankPlaidResponseInfo.java index 19a2974d1..c55f445b1 100644 --- a/src/main/java/com/adyen/model/management/PayByBankPlaidResponseInfo.java +++ b/src/main/java/com/adyen/model/management/PayByBankPlaidResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayByBankPlaidResponseInfo */ @JsonPropertyOrder({ @@ -221,11 +221,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayByBankPlaidResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayByBankPlaidResponseInfo */ - public static PayByBankPlaidResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PayByBankPlaidResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayByBankPlaidResponseInfo.class); } @@ -234,7 +233,7 @@ public static PayByBankPlaidResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayByBankPlaidUpdateInfo.java b/src/main/java/com/adyen/model/management/PayByBankPlaidUpdateInfo.java index 173b315b6..6dc7a6b5a 100644 --- a/src/main/java/com/adyen/model/management/PayByBankPlaidUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/PayByBankPlaidUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayByBankPlaidUpdateInfo */ @JsonPropertyOrder({PayByBankPlaidUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -163,11 +163,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayByBankPlaidUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayByBankPlaidUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to PayByBankPlaidUpdateInfo */ - public static PayByBankPlaidUpdateInfo fromJson(String jsonString) - throws JsonProcessingException { + public static PayByBankPlaidUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayByBankPlaidUpdateInfo.class); } @@ -176,7 +174,7 @@ public static PayByBankPlaidUpdateInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayMeInfo.java b/src/main/java/com/adyen/model/management/PayMeInfo.java index 30f58c7a8..1675cfe33 100644 --- a/src/main/java/com/adyen/model/management/PayMeInfo.java +++ b/src/main/java/com/adyen/model/management/PayMeInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayMeInfo */ @JsonPropertyOrder({ @@ -257,9 +257,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayMeInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayMeInfo + * @throws JacksonException if the JSON string is invalid with respect to PayMeInfo */ - public static PayMeInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayMeInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayMeInfo.class); } @@ -268,7 +268,7 @@ public static PayMeInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayMeResponseInfo.java b/src/main/java/com/adyen/model/management/PayMeResponseInfo.java index cf3b2f060..7fff2731c 100644 --- a/src/main/java/com/adyen/model/management/PayMeResponseInfo.java +++ b/src/main/java/com/adyen/model/management/PayMeResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayMeResponseInfo */ @JsonPropertyOrder({ @@ -257,9 +257,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayMeResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayMeResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to PayMeResponseInfo */ - public static PayMeResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayMeResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayMeResponseInfo.class); } @@ -268,7 +268,7 @@ public static PayMeResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayPalInfo.java b/src/main/java/com/adyen/model/management/PayPalInfo.java index 245407991..08a8074bb 100644 --- a/src/main/java/com/adyen/model/management/PayPalInfo.java +++ b/src/main/java/com/adyen/model/management/PayPalInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayPalInfo */ @JsonPropertyOrder({ @@ -275,9 +275,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayPalInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayPalInfo + * @throws JacksonException if the JSON string is invalid with respect to PayPalInfo */ - public static PayPalInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayPalInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayPalInfo.class); } @@ -286,7 +286,7 @@ public static PayPalInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayPalResponseInfo.java b/src/main/java/com/adyen/model/management/PayPalResponseInfo.java index 49251a29f..a5a36a64f 100644 --- a/src/main/java/com/adyen/model/management/PayPalResponseInfo.java +++ b/src/main/java/com/adyen/model/management/PayPalResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayPalResponseInfo */ @JsonPropertyOrder({ @@ -275,10 +275,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayPalResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayPalResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to PayPalResponseInfo */ - public static PayPalResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayPalResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayPalResponseInfo.class); } @@ -287,7 +286,7 @@ public static PayPalResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayToInfo.java b/src/main/java/com/adyen/model/management/PayToInfo.java index a2d2ca37c..91fabfb9e 100644 --- a/src/main/java/com/adyen/model/management/PayToInfo.java +++ b/src/main/java/com/adyen/model/management/PayToInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayToInfo */ @JsonPropertyOrder({PayToInfo.JSON_PROPERTY_MERCHANT_NAME, PayToInfo.JSON_PROPERTY_PAY_TO_PURPOSE}) @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayToInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayToInfo + * @throws JacksonException if the JSON string is invalid with respect to PayToInfo */ - public static PayToInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayToInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayToInfo.class); } @@ -228,7 +228,7 @@ public static PayToInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayToResponseInfo.java b/src/main/java/com/adyen/model/management/PayToResponseInfo.java index 3c2b06d42..569158833 100644 --- a/src/main/java/com/adyen/model/management/PayToResponseInfo.java +++ b/src/main/java/com/adyen/model/management/PayToResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayToResponseInfo */ @JsonPropertyOrder({ @@ -220,9 +220,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayToResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PayToResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to PayToResponseInfo */ - public static PayToResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PayToResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayToResponseInfo.class); } @@ -231,7 +231,7 @@ public static PayToResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Payment.java b/src/main/java/com/adyen/model/management/Payment.java index 67c707189..51a188f87 100644 --- a/src/main/java/com/adyen/model/management/Payment.java +++ b/src/main/java/com/adyen/model/management/Payment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Payment */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Payment - * @throws JsonProcessingException if the JSON string is invalid with respect to Payment + * @throws JacksonException if the JSON string is invalid with respect to Payment */ - public static Payment fromJson(String jsonString) throws JsonProcessingException { + public static Payment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Payment.class); } @@ -267,7 +267,7 @@ public static Payment fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index da6d02b24..401bf6c12 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethod */ @JsonPropertyOrder({ @@ -3155,9 +3155,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethod + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethod */ - public static PaymentMethod fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethod.class); } @@ -3166,7 +3166,7 @@ public static PaymentMethod fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java index 678ad38d0..87d92a222 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodResponse */ @JsonPropertyOrder({ @@ -720,10 +720,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodResponse */ - public static PaymentMethodResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodResponse.class); } @@ -732,7 +731,7 @@ public static PaymentMethodResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index 5b1cffefe..a78a0e339 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodSetupInfo */ @JsonPropertyOrder({ @@ -3236,10 +3236,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentMethodSetupInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentMethodSetupInfo + * @throws JacksonException if the JSON string is invalid with respect to PaymentMethodSetupInfo */ - public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProcessingException { + public static PaymentMethodSetupInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodSetupInfo.class); } @@ -3248,7 +3247,7 @@ public static PaymentMethodSetupInfo fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayoutSettings.java b/src/main/java/com/adyen/model/management/PayoutSettings.java index 78adc1021..d0d49f3d9 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettings.java +++ b/src/main/java/com/adyen/model/management/PayoutSettings.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutSettings */ @JsonPropertyOrder({ @@ -684,9 +684,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutSettings + * @throws JacksonException if the JSON string is invalid with respect to PayoutSettings */ - public static PayoutSettings fromJson(String jsonString) throws JsonProcessingException { + public static PayoutSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutSettings.class); } @@ -695,7 +695,7 @@ public static PayoutSettings fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java index 0f7dfa12e..4fb09973e 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PayoutSettingsRequest */ @JsonPropertyOrder({ @@ -325,10 +325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutSettingsRequest + * @throws JacksonException if the JSON string is invalid with respect to PayoutSettingsRequest */ - public static PayoutSettingsRequest fromJson(String jsonString) throws JsonProcessingException { + public static PayoutSettingsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutSettingsRequest.class); } @@ -337,7 +336,7 @@ public static PayoutSettingsRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java index 85f5b7225..9b15047dd 100644 --- a/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java +++ b/src/main/java/com/adyen/model/management/PayoutSettingsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PayoutSettingsResponse */ @JsonPropertyOrder({PayoutSettingsResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutSettingsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutSettingsResponse + * @throws JacksonException if the JSON string is invalid with respect to PayoutSettingsResponse */ - public static PayoutSettingsResponse fromJson(String jsonString) throws JsonProcessingException { + public static PayoutSettingsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutSettingsResponse.class); } @@ -180,7 +179,7 @@ public static PayoutSettingsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Profile.java b/src/main/java/com/adyen/model/management/Profile.java index 50ec9366a..14782e164 100644 --- a/src/main/java/com/adyen/model/management/Profile.java +++ b/src/main/java/com/adyen/model/management/Profile.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Profile */ @JsonPropertyOrder({ @@ -1137,9 +1137,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Profile - * @throws JsonProcessingException if the JSON string is invalid with respect to Profile + * @throws JacksonException if the JSON string is invalid with respect to Profile */ - public static Profile fromJson(String jsonString) throws JsonProcessingException { + public static Profile fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Profile.class); } @@ -1148,7 +1148,7 @@ public static Profile fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PulseInfo.java b/src/main/java/com/adyen/model/management/PulseInfo.java index 5966b5f12..fac8396a0 100644 --- a/src/main/java/com/adyen/model/management/PulseInfo.java +++ b/src/main/java/com/adyen/model/management/PulseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PulseInfo */ @JsonPropertyOrder({ @@ -295,9 +295,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PulseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PulseInfo + * @throws JacksonException if the JSON string is invalid with respect to PulseInfo */ - public static PulseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PulseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PulseInfo.class); } @@ -306,7 +306,7 @@ public static PulseInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PulseResponseInfo.java b/src/main/java/com/adyen/model/management/PulseResponseInfo.java index 541eaf823..0c0c62ccc 100644 --- a/src/main/java/com/adyen/model/management/PulseResponseInfo.java +++ b/src/main/java/com/adyen/model/management/PulseResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PulseResponseInfo */ @JsonPropertyOrder({ @@ -297,9 +297,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PulseResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PulseResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to PulseResponseInfo */ - public static PulseResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static PulseResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PulseResponseInfo.class); } @@ -308,7 +308,7 @@ public static PulseResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/PulseUpdateInfo.java b/src/main/java/com/adyen/model/management/PulseUpdateInfo.java index a8aee6a1a..ec3fd8ac3 100644 --- a/src/main/java/com/adyen/model/management/PulseUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/PulseUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PulseUpdateInfo */ @JsonPropertyOrder({PulseUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PulseUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to PulseUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to PulseUpdateInfo */ - public static PulseUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static PulseUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PulseUpdateInfo.class); } @@ -172,7 +172,7 @@ public static PulseUpdateInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ReceiptOptions.java b/src/main/java/com/adyen/model/management/ReceiptOptions.java index 5dd43b9d6..de7d28064 100644 --- a/src/main/java/com/adyen/model/management/ReceiptOptions.java +++ b/src/main/java/com/adyen/model/management/ReceiptOptions.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ReceiptOptions */ @JsonPropertyOrder({ @@ -391,9 +391,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReceiptOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to ReceiptOptions + * @throws JacksonException if the JSON string is invalid with respect to ReceiptOptions */ - public static ReceiptOptions fromJson(String jsonString) throws JsonProcessingException { + public static ReceiptOptions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReceiptOptions.class); } @@ -402,7 +402,7 @@ public static ReceiptOptions fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ReceiptPrinting.java b/src/main/java/com/adyen/model/management/ReceiptPrinting.java index 5155293c8..1f9c3ad6f 100644 --- a/src/main/java/com/adyen/model/management/ReceiptPrinting.java +++ b/src/main/java/com/adyen/model/management/ReceiptPrinting.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ReceiptPrinting */ @JsonPropertyOrder({ @@ -936,9 +936,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReceiptPrinting - * @throws JsonProcessingException if the JSON string is invalid with respect to ReceiptPrinting + * @throws JacksonException if the JSON string is invalid with respect to ReceiptPrinting */ - public static ReceiptPrinting fromJson(String jsonString) throws JsonProcessingException { + public static ReceiptPrinting fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReceiptPrinting.class); } @@ -947,7 +947,7 @@ public static ReceiptPrinting fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Referenced.java b/src/main/java/com/adyen/model/management/Referenced.java index 14213246b..cbc15d50a 100644 --- a/src/main/java/com/adyen/model/management/Referenced.java +++ b/src/main/java/com/adyen/model/management/Referenced.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Referenced */ @JsonPropertyOrder({Referenced.JSON_PROPERTY_ENABLE_STANDALONE_REFUNDS}) @@ -164,9 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Referenced - * @throws JsonProcessingException if the JSON string is invalid with respect to Referenced + * @throws JacksonException if the JSON string is invalid with respect to Referenced */ - public static Referenced fromJson(String jsonString) throws JsonProcessingException { + public static Referenced fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Referenced.class); } @@ -175,7 +175,7 @@ public static Referenced fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Refunds.java b/src/main/java/com/adyen/model/management/Refunds.java index 276519a23..c2deb5441 100644 --- a/src/main/java/com/adyen/model/management/Refunds.java +++ b/src/main/java/com/adyen/model/management/Refunds.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Refunds */ @JsonPropertyOrder({Refunds.JSON_PROPERTY_REFERENCED, Refunds.JSON_PROPERTY_UNREFERENCED}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Refunds - * @throws JsonProcessingException if the JSON string is invalid with respect to Refunds + * @throws JacksonException if the JSON string is invalid with respect to Refunds */ - public static Refunds fromJson(String jsonString) throws JsonProcessingException { + public static Refunds fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Refunds.class); } @@ -216,7 +216,7 @@ public static Refunds fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java index 64b33c5df..00e75d560 100644 --- a/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java +++ b/src/main/java/com/adyen/model/management/ReleaseUpdateDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ReleaseUpdateDetails */ @JsonPropertyOrder({ @@ -268,10 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReleaseUpdateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReleaseUpdateDetails + * @throws JacksonException if the JSON string is invalid with respect to ReleaseUpdateDetails */ - public static ReleaseUpdateDetails fromJson(String jsonString) throws JsonProcessingException { + public static ReleaseUpdateDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReleaseUpdateDetails.class); } @@ -280,7 +279,7 @@ public static ReleaseUpdateDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java index c9c5ff394..5fbb11a72 100644 --- a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ReprocessAndroidAppResponse */ @JsonPropertyOrder({ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE}) @@ -158,11 +158,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReprocessAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReprocessAndroidAppResponse */ - public static ReprocessAndroidAppResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ReprocessAndroidAppResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReprocessAndroidAppResponse.class); } @@ -171,7 +170,7 @@ public static ReprocessAndroidAppResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/RequestActivationResponse.java b/src/main/java/com/adyen/model/management/RequestActivationResponse.java index 3b1ea84c1..407e1d63b 100644 --- a/src/main/java/com/adyen/model/management/RequestActivationResponse.java +++ b/src/main/java/com/adyen/model/management/RequestActivationResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RequestActivationResponse */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RequestActivationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RequestActivationResponse */ - public static RequestActivationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RequestActivationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RequestActivationResponse.class); } @@ -221,7 +220,7 @@ public static RequestActivationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/RestServiceError.java b/src/main/java/com/adyen/model/management/RestServiceError.java index 0d6ad3a47..25b464cb0 100644 --- a/src/main/java/com/adyen/model/management/RestServiceError.java +++ b/src/main/java/com/adyen/model/management/RestServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** RestServiceError */ @JsonPropertyOrder({ @@ -581,9 +581,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to RestServiceError + * @throws JacksonException if the JSON string is invalid with respect to RestServiceError */ - public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { + public static RestServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } @@ -592,7 +592,7 @@ public static RestServiceError fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java index 69ff02598..f002f88a3 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ScheduleTerminalActionsRequest */ @JsonPropertyOrder({ @@ -392,11 +392,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduleTerminalActionsRequest */ - public static ScheduleTerminalActionsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleTerminalActionsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsRequest.class); } @@ -405,7 +404,7 @@ public static ScheduleTerminalActionsRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java index 144a7d2b0..358915264 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsRequestActionDetails.java @@ -11,19 +11,6 @@ package com.adyen.model.management; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -60,9 +59,9 @@ public ScheduleTerminalActionsRequestActionDetailsSerializer() { public void serialize( ScheduleTerminalActionsRequestActionDetails value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -78,12 +77,11 @@ public ScheduleTerminalActionsRequestActionDetailsDeserializer(Class vc) { @Override public ScheduleTerminalActionsRequestActionDetails deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ForceRebootDetails try { boolean attemptParsing = true; @@ -97,7 +95,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ForceRebootDetails.class); + deserialized = ctxt.readTreeAsValue(tree, ForceRebootDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -123,7 +121,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InstallAndroidAppDetails.class); + deserialized = ctxt.readTreeAsValue(tree, InstallAndroidAppDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -149,8 +147,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InstallAndroidCertificateDetails.class); + deserialized = ctxt.readTreeAsValue(tree, InstallAndroidCertificateDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -177,7 +174,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ReleaseUpdateDetails.class); + deserialized = ctxt.readTreeAsValue(tree, ReleaseUpdateDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -203,8 +200,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidAppDetails.class); + deserialized = ctxt.readTreeAsValue(tree, UninstallAndroidAppDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -230,8 +226,7 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UninstallAndroidCertificateDetails.class); + deserialized = ctxt.readTreeAsValue(tree, UninstallAndroidCertificateDetails.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -253,7 +248,8 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for ScheduleTerminalActionsRequestActionDetails: %d classes match result, expected 1", match)); @@ -262,9 +258,9 @@ public ScheduleTerminalActionsRequestActionDetails deserialize( /** Handle deserialization of the 'null' value. */ @Override public ScheduleTerminalActionsRequestActionDetails getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "ScheduleTerminalActionsRequestActionDetails cannot be null"); + throws DatabindException { + throw DatabindException.from( + ctxt, "ScheduleTerminalActionsRequestActionDetails cannot be null"); } } @@ -488,7 +484,7 @@ public static ScheduleTerminalActionsRequestActionDetails fromJson(String jsonSt * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java index 9aa57d958..95c49435c 100644 --- a/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java +++ b/src/main/java/com/adyen/model/management/ScheduleTerminalActionsResponse.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** ScheduleTerminalActionsResponse */ @JsonPropertyOrder({ @@ -562,11 +562,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScheduleTerminalActionsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduleTerminalActionsResponse */ public static ScheduleTerminalActionsResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduleTerminalActionsResponse.class); } @@ -575,7 +575,7 @@ public static ScheduleTerminalActionsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java index 71cd3b241..be5d77d87 100644 --- a/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java +++ b/src/main/java/com/adyen/model/management/SepaDirectDebitInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SepaDirectDebitInfo */ @JsonPropertyOrder({ @@ -213,10 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SepaDirectDebitInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SepaDirectDebitInfo + * @throws JacksonException if the JSON string is invalid with respect to SepaDirectDebitInfo */ - public static SepaDirectDebitInfo fromJson(String jsonString) throws JsonProcessingException { + public static SepaDirectDebitInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitInfo.class); } @@ -225,7 +224,7 @@ public static SepaDirectDebitInfo fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SepaDirectDebitResponseInfo.java b/src/main/java/com/adyen/model/management/SepaDirectDebitResponseInfo.java index 484cba8e4..db4edcdff 100644 --- a/src/main/java/com/adyen/model/management/SepaDirectDebitResponseInfo.java +++ b/src/main/java/com/adyen/model/management/SepaDirectDebitResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SepaDirectDebitResponseInfo */ @JsonPropertyOrder({ @@ -215,11 +215,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SepaDirectDebitResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SepaDirectDebitResponseInfo */ - public static SepaDirectDebitResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static SepaDirectDebitResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitResponseInfo.class); } @@ -228,7 +227,7 @@ public static SepaDirectDebitResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SepaDirectDebitUpdateInfo.java b/src/main/java/com/adyen/model/management/SepaDirectDebitUpdateInfo.java index b629ab65a..be5e92844 100644 --- a/src/main/java/com/adyen/model/management/SepaDirectDebitUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/SepaDirectDebitUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SepaDirectDebitUpdateInfo */ @JsonPropertyOrder({SepaDirectDebitUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -164,11 +164,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SepaDirectDebitUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SepaDirectDebitUpdateInfo */ - public static SepaDirectDebitUpdateInfo fromJson(String jsonString) - throws JsonProcessingException { + public static SepaDirectDebitUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SepaDirectDebitUpdateInfo.class); } @@ -177,7 +176,7 @@ public static SepaDirectDebitUpdateInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Settings.java b/src/main/java/com/adyen/model/management/Settings.java index 478e568b5..a8c913f36 100644 --- a/src/main/java/com/adyen/model/management/Settings.java +++ b/src/main/java/com/adyen/model/management/Settings.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Settings */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Settings - * @throws JsonProcessingException if the JSON string is invalid with respect to Settings + * @throws JacksonException if the JSON string is invalid with respect to Settings */ - public static Settings fromJson(String jsonString) throws JsonProcessingException { + public static Settings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Settings.class); } @@ -273,7 +273,7 @@ public static Settings fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ShippingLocation.java b/src/main/java/com/adyen/model/management/ShippingLocation.java index f7875b43b..371e1299d 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocation.java +++ b/src/main/java/com/adyen/model/management/ShippingLocation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShippingLocation */ @JsonPropertyOrder({ @@ -310,9 +310,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShippingLocation - * @throws JsonProcessingException if the JSON string is invalid with respect to ShippingLocation + * @throws JacksonException if the JSON string is invalid with respect to ShippingLocation */ - public static ShippingLocation fromJson(String jsonString) throws JsonProcessingException { + public static ShippingLocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShippingLocation.class); } @@ -321,7 +321,7 @@ public static ShippingLocation fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java index 289823f2b..07bed27b2 100644 --- a/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java +++ b/src/main/java/com/adyen/model/management/ShippingLocationsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ShippingLocationsResponse */ @JsonPropertyOrder({ShippingLocationsResponse.JSON_PROPERTY_DATA}) @@ -168,11 +168,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShippingLocationsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ShippingLocationsResponse */ - public static ShippingLocationsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static ShippingLocationsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShippingLocationsResponse.class); } @@ -181,7 +180,7 @@ public static ShippingLocationsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Signature.java b/src/main/java/com/adyen/model/management/Signature.java index f2e1c06cb..511edbfda 100644 --- a/src/main/java/com/adyen/model/management/Signature.java +++ b/src/main/java/com/adyen/model/management/Signature.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Signature */ @JsonPropertyOrder({ @@ -332,9 +332,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Signature - * @throws JsonProcessingException if the JSON string is invalid with respect to Signature + * @throws JacksonException if the JSON string is invalid with respect to Signature */ - public static Signature fromJson(String jsonString) throws JsonProcessingException { + public static Signature fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Signature.class); } @@ -343,7 +343,7 @@ public static Signature fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SodexoInfo.java b/src/main/java/com/adyen/model/management/SodexoInfo.java index 74bb696f1..62861be72 100644 --- a/src/main/java/com/adyen/model/management/SodexoInfo.java +++ b/src/main/java/com/adyen/model/management/SodexoInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SodexoInfo */ @JsonPropertyOrder({SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SodexoInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SodexoInfo + * @throws JacksonException if the JSON string is invalid with respect to SodexoInfo */ - public static SodexoInfo fromJson(String jsonString) throws JsonProcessingException { + public static SodexoInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SodexoInfo.class); } @@ -171,7 +171,7 @@ public static SodexoInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SodexoResponseInfo.java b/src/main/java/com/adyen/model/management/SodexoResponseInfo.java index 6345ba8e5..f3777838b 100644 --- a/src/main/java/com/adyen/model/management/SodexoResponseInfo.java +++ b/src/main/java/com/adyen/model/management/SodexoResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SodexoResponseInfo */ @JsonPropertyOrder({SodexoResponseInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE}) @@ -161,10 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SodexoResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SodexoResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to SodexoResponseInfo */ - public static SodexoResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static SodexoResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SodexoResponseInfo.class); } @@ -173,7 +172,7 @@ public static SodexoResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SofortInfo.java b/src/main/java/com/adyen/model/management/SofortInfo.java index ccdad4542..8e92acb1c 100644 --- a/src/main/java/com/adyen/model/management/SofortInfo.java +++ b/src/main/java/com/adyen/model/management/SofortInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SofortInfo */ @JsonPropertyOrder({SofortInfo.JSON_PROPERTY_CURRENCY_CODE, SofortInfo.JSON_PROPERTY_LOGO}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SofortInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SofortInfo + * @throws JacksonException if the JSON string is invalid with respect to SofortInfo */ - public static SofortInfo fromJson(String jsonString) throws JsonProcessingException { + public static SofortInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SofortInfo.class); } @@ -216,7 +216,7 @@ public static SofortInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SofortResponseInfo.java b/src/main/java/com/adyen/model/management/SofortResponseInfo.java index 74301563d..77b535e2d 100644 --- a/src/main/java/com/adyen/model/management/SofortResponseInfo.java +++ b/src/main/java/com/adyen/model/management/SofortResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SofortResponseInfo */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SofortResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SofortResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to SofortResponseInfo */ - public static SofortResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static SofortResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SofortResponseInfo.class); } @@ -220,7 +219,7 @@ public static SofortResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SplitConfiguration.java b/src/main/java/com/adyen/model/management/SplitConfiguration.java index 03b8068c0..efcbe92ba 100644 --- a/src/main/java/com/adyen/model/management/SplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/SplitConfiguration.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SplitConfiguration */ @JsonPropertyOrder({ @@ -259,10 +259,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfiguration + * @throws JacksonException if the JSON string is invalid with respect to SplitConfiguration */ - public static SplitConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static SplitConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitConfiguration.class); } @@ -271,7 +270,7 @@ public static SplitConfiguration fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationList.java b/src/main/java/com/adyen/model/management/SplitConfigurationList.java index 2fb4cbcd4..91f88eb76 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationList.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationList.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** SplitConfigurationList */ @JsonPropertyOrder({SplitConfigurationList.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitConfigurationList - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationList + * @throws JacksonException if the JSON string is invalid with respect to SplitConfigurationList */ - public static SplitConfigurationList fromJson(String jsonString) throws JsonProcessingException { + public static SplitConfigurationList fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitConfigurationList.class); } @@ -180,7 +179,7 @@ public static SplitConfigurationList fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java index a2481da75..e7edab4ad 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationLogic.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SplitConfigurationLogic */ @JsonPropertyOrder({ @@ -1916,10 +1916,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitConfigurationLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationLogic + * @throws JacksonException if the JSON string is invalid with respect to SplitConfigurationLogic */ - public static SplitConfigurationLogic fromJson(String jsonString) throws JsonProcessingException { + public static SplitConfigurationLogic fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitConfigurationLogic.class); } @@ -1928,7 +1927,7 @@ public static SplitConfigurationLogic fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java index c3d3688ae..1ae559777 100644 --- a/src/main/java/com/adyen/model/management/SplitConfigurationRule.java +++ b/src/main/java/com/adyen/model/management/SplitConfigurationRule.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SplitConfigurationRule */ @JsonPropertyOrder({ @@ -760,10 +760,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitConfigurationRule - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SplitConfigurationRule + * @throws JacksonException if the JSON string is invalid with respect to SplitConfigurationRule */ - public static SplitConfigurationRule fromJson(String jsonString) throws JsonProcessingException { + public static SplitConfigurationRule fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitConfigurationRule.class); } @@ -772,7 +771,7 @@ public static SplitConfigurationRule fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SplitDcc.java b/src/main/java/com/adyen/model/management/SplitDcc.java index 9b0514a6d..22f0d2bdf 100644 --- a/src/main/java/com/adyen/model/management/SplitDcc.java +++ b/src/main/java/com/adyen/model/management/SplitDcc.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SplitDcc */ @JsonPropertyOrder({SplitDcc.JSON_PROPERTY_ACCOUNT_HOLDER_PERCENTAGE}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitDcc - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitDcc + * @throws JacksonException if the JSON string is invalid with respect to SplitDcc */ - public static SplitDcc fromJson(String jsonString) throws JsonProcessingException { + public static SplitDcc fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitDcc.class); } @@ -171,7 +171,7 @@ public static SplitDcc fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Standalone.java b/src/main/java/com/adyen/model/management/Standalone.java index e8e17d167..c3430a373 100644 --- a/src/main/java/com/adyen/model/management/Standalone.java +++ b/src/main/java/com/adyen/model/management/Standalone.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Standalone */ @JsonPropertyOrder({ @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Standalone - * @throws JsonProcessingException if the JSON string is invalid with respect to Standalone + * @throws JacksonException if the JSON string is invalid with respect to Standalone */ - public static Standalone fromJson(String jsonString) throws JsonProcessingException { + public static Standalone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Standalone.class); } @@ -285,7 +285,7 @@ public static Standalone fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StarInfo.java b/src/main/java/com/adyen/model/management/StarInfo.java index 7d1f3f665..ec94fa5d7 100644 --- a/src/main/java/com/adyen/model/management/StarInfo.java +++ b/src/main/java/com/adyen/model/management/StarInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StarInfo */ @JsonPropertyOrder({ @@ -295,9 +295,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StarInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to StarInfo + * @throws JacksonException if the JSON string is invalid with respect to StarInfo */ - public static StarInfo fromJson(String jsonString) throws JsonProcessingException { + public static StarInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StarInfo.class); } @@ -306,7 +306,7 @@ public static StarInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StarResponseInfo.java b/src/main/java/com/adyen/model/management/StarResponseInfo.java index 44039b1fa..fd0b03bdc 100644 --- a/src/main/java/com/adyen/model/management/StarResponseInfo.java +++ b/src/main/java/com/adyen/model/management/StarResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StarResponseInfo */ @JsonPropertyOrder({ @@ -297,9 +297,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StarResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to StarResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to StarResponseInfo */ - public static StarResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static StarResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StarResponseInfo.class); } @@ -308,7 +308,7 @@ public static StarResponseInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StarUpdateInfo.java b/src/main/java/com/adyen/model/management/StarUpdateInfo.java index 3a7c0a9a6..a22bd1f07 100644 --- a/src/main/java/com/adyen/model/management/StarUpdateInfo.java +++ b/src/main/java/com/adyen/model/management/StarUpdateInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StarUpdateInfo */ @JsonPropertyOrder({StarUpdateInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StarUpdateInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to StarUpdateInfo + * @throws JacksonException if the JSON string is invalid with respect to StarUpdateInfo */ - public static StarUpdateInfo fromJson(String jsonString) throws JsonProcessingException { + public static StarUpdateInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StarUpdateInfo.class); } @@ -172,7 +172,7 @@ public static StarUpdateInfo fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Store.java b/src/main/java/com/adyen/model/management/Store.java index bbc089679..6fd31af8e 100644 --- a/src/main/java/com/adyen/model/management/Store.java +++ b/src/main/java/com/adyen/model/management/Store.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Store */ @JsonPropertyOrder({ @@ -972,9 +972,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Store - * @throws JsonProcessingException if the JSON string is invalid with respect to Store + * @throws JacksonException if the JSON string is invalid with respect to Store */ - public static Store fromJson(String jsonString) throws JsonProcessingException { + public static Store fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Store.class); } @@ -983,7 +983,7 @@ public static Store fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StoreAndForward.java b/src/main/java/com/adyen/model/management/StoreAndForward.java index 4c86fee34..c944b3357 100644 --- a/src/main/java/com/adyen/model/management/StoreAndForward.java +++ b/src/main/java/com/adyen/model/management/StoreAndForward.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** StoreAndForward */ @JsonPropertyOrder({ @@ -281,9 +281,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreAndForward - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreAndForward + * @throws JacksonException if the JSON string is invalid with respect to StoreAndForward */ - public static StoreAndForward fromJson(String jsonString) throws JsonProcessingException { + public static StoreAndForward fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreAndForward.class); } @@ -292,7 +292,7 @@ public static StoreAndForward fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StoreCreationRequest.java b/src/main/java/com/adyen/model/management/StoreCreationRequest.java index 648ad2ec6..dbe02f739 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** StoreCreationRequest */ @JsonPropertyOrder({ @@ -713,10 +713,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreCreationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreCreationRequest + * @throws JacksonException if the JSON string is invalid with respect to StoreCreationRequest */ - public static StoreCreationRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoreCreationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreCreationRequest.class); } @@ -725,7 +724,7 @@ public static StoreCreationRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java index a8630552a..d3d6a7638 100644 --- a/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java +++ b/src/main/java/com/adyen/model/management/StoreCreationWithMerchantCodeRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** StoreCreationWithMerchantCodeRequest */ @JsonPropertyOrder({ @@ -792,11 +792,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreCreationWithMerchantCodeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoreCreationWithMerchantCodeRequest */ public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreCreationWithMerchantCodeRequest.class); } @@ -805,7 +805,7 @@ public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StoreLocation.java b/src/main/java/com/adyen/model/management/StoreLocation.java index fba4b35e8..d51623232 100644 --- a/src/main/java/com/adyen/model/management/StoreLocation.java +++ b/src/main/java/com/adyen/model/management/StoreLocation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StoreLocation */ @JsonPropertyOrder({ @@ -483,9 +483,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreLocation - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreLocation + * @throws JacksonException if the JSON string is invalid with respect to StoreLocation */ - public static StoreLocation fromJson(String jsonString) throws JsonProcessingException { + public static StoreLocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreLocation.class); } @@ -494,7 +494,7 @@ public static StoreLocation fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java index a3b0ccf31..397f9fbee 100644 --- a/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java +++ b/src/main/java/com/adyen/model/management/StoreSplitConfiguration.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StoreSplitConfiguration */ @JsonPropertyOrder({ @@ -236,10 +236,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreSplitConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreSplitConfiguration + * @throws JacksonException if the JSON string is invalid with respect to StoreSplitConfiguration */ - public static StoreSplitConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static StoreSplitConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreSplitConfiguration.class); } @@ -248,7 +247,7 @@ public static StoreSplitConfiguration fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SubMerchantData.java b/src/main/java/com/adyen/model/management/SubMerchantData.java index a382a1f8f..0ffe21101 100644 --- a/src/main/java/com/adyen/model/management/SubMerchantData.java +++ b/src/main/java/com/adyen/model/management/SubMerchantData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SubMerchantData */ @JsonPropertyOrder({ @@ -328,9 +328,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to SubMerchantData + * @throws JacksonException if the JSON string is invalid with respect to SubMerchantData */ - public static SubMerchantData fromJson(String jsonString) throws JsonProcessingException { + public static SubMerchantData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubMerchantData.class); } @@ -339,7 +339,7 @@ public static SubMerchantData fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SupportedCardTypes.java b/src/main/java/com/adyen/model/management/SupportedCardTypes.java index b9ca6196d..fec13af99 100644 --- a/src/main/java/com/adyen/model/management/SupportedCardTypes.java +++ b/src/main/java/com/adyen/model/management/SupportedCardTypes.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SupportedCardTypes */ @JsonPropertyOrder({ @@ -368,10 +368,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SupportedCardTypes - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SupportedCardTypes + * @throws JacksonException if the JSON string is invalid with respect to SupportedCardTypes */ - public static SupportedCardTypes fromJson(String jsonString) throws JsonProcessingException { + public static SupportedCardTypes fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SupportedCardTypes.class); } @@ -380,7 +379,7 @@ public static SupportedCardTypes fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Surcharge.java b/src/main/java/com/adyen/model/management/Surcharge.java index e5a6ade25..64b9601cf 100644 --- a/src/main/java/com/adyen/model/management/Surcharge.java +++ b/src/main/java/com/adyen/model/management/Surcharge.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Surcharge */ @JsonPropertyOrder({ @@ -338,9 +338,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Surcharge - * @throws JsonProcessingException if the JSON string is invalid with respect to Surcharge + * @throws JacksonException if the JSON string is invalid with respect to Surcharge */ - public static Surcharge fromJson(String jsonString) throws JsonProcessingException { + public static Surcharge fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Surcharge.class); } @@ -349,7 +349,7 @@ public static Surcharge fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SvsInfo.java b/src/main/java/com/adyen/model/management/SvsInfo.java index 60a2f65b0..cd6536f8d 100644 --- a/src/main/java/com/adyen/model/management/SvsInfo.java +++ b/src/main/java/com/adyen/model/management/SvsInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SvsInfo */ @JsonPropertyOrder({SvsInfo.JSON_PROPERTY_AUTHORISATION_MID, SvsInfo.JSON_PROPERTY_CURRENCY_CODE}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SvsInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SvsInfo + * @throws JacksonException if the JSON string is invalid with respect to SvsInfo */ - public static SvsInfo fromJson(String jsonString) throws JsonProcessingException { + public static SvsInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SvsInfo.class); } @@ -216,7 +216,7 @@ public static SvsInfo fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SvsResponseInfo.java b/src/main/java/com/adyen/model/management/SvsResponseInfo.java index 045d63830..464467218 100644 --- a/src/main/java/com/adyen/model/management/SvsResponseInfo.java +++ b/src/main/java/com/adyen/model/management/SvsResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SvsResponseInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SvsResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SvsResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to SvsResponseInfo */ - public static SvsResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static SvsResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SvsResponseInfo.class); } @@ -219,7 +219,7 @@ public static SvsResponseInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SwishInfo.java b/src/main/java/com/adyen/model/management/SwishInfo.java index 03ee675fa..04e880517 100644 --- a/src/main/java/com/adyen/model/management/SwishInfo.java +++ b/src/main/java/com/adyen/model/management/SwishInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SwishInfo */ @JsonPropertyOrder({SwishInfo.JSON_PROPERTY_SWISH_NUMBER}) @@ -159,9 +159,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SwishInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SwishInfo + * @throws JacksonException if the JSON string is invalid with respect to SwishInfo */ - public static SwishInfo fromJson(String jsonString) throws JsonProcessingException { + public static SwishInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SwishInfo.class); } @@ -170,7 +170,7 @@ public static SwishInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/SwishResponseInfo.java b/src/main/java/com/adyen/model/management/SwishResponseInfo.java index 327cc3d55..91dc41ad2 100644 --- a/src/main/java/com/adyen/model/management/SwishResponseInfo.java +++ b/src/main/java/com/adyen/model/management/SwishResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SwishResponseInfo */ @JsonPropertyOrder({SwishResponseInfo.JSON_PROPERTY_SWISH_NUMBER}) @@ -159,9 +159,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SwishResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to SwishResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to SwishResponseInfo */ - public static SwishResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static SwishResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SwishResponseInfo.class); } @@ -170,7 +170,7 @@ public static SwishResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TapToPay.java b/src/main/java/com/adyen/model/management/TapToPay.java index 851b17667..a8633c844 100644 --- a/src/main/java/com/adyen/model/management/TapToPay.java +++ b/src/main/java/com/adyen/model/management/TapToPay.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TapToPay */ @JsonPropertyOrder({TapToPay.JSON_PROPERTY_MERCHANT_DISPLAY_NAME}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TapToPay - * @throws JsonProcessingException if the JSON string is invalid with respect to TapToPay + * @throws JacksonException if the JSON string is invalid with respect to TapToPay */ - public static TapToPay fromJson(String jsonString) throws JsonProcessingException { + public static TapToPay fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TapToPay.class); } @@ -171,7 +171,7 @@ public static TapToPay fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Terminal.java b/src/main/java/com/adyen/model/management/Terminal.java index 25e62b7ea..47dc1cc12 100644 --- a/src/main/java/com/adyen/model/management/Terminal.java +++ b/src/main/java/com/adyen/model/management/Terminal.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Terminal */ @JsonPropertyOrder({ @@ -752,9 +752,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Terminal - * @throws JsonProcessingException if the JSON string is invalid with respect to Terminal + * @throws JacksonException if the JSON string is invalid with respect to Terminal */ - public static Terminal fromJson(String jsonString) throws JsonProcessingException { + public static Terminal fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Terminal.class); } @@ -763,7 +763,7 @@ public static Terminal fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java index a2d28beab..84fdfea98 100644 --- a/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java +++ b/src/main/java/com/adyen/model/management/TerminalActionScheduleDetail.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalActionScheduleDetail */ @JsonPropertyOrder({ @@ -208,11 +208,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalActionScheduleDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalActionScheduleDetail */ - public static TerminalActionScheduleDetail fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalActionScheduleDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalActionScheduleDetail.class); } @@ -221,7 +220,7 @@ public static TerminalActionScheduleDetail fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalAssignment.java b/src/main/java/com/adyen/model/management/TerminalAssignment.java index c21bbef53..dc775e776 100644 --- a/src/main/java/com/adyen/model/management/TerminalAssignment.java +++ b/src/main/java/com/adyen/model/management/TerminalAssignment.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TerminalAssignment */ @JsonPropertyOrder({ @@ -451,10 +451,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalAssignment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAssignment + * @throws JacksonException if the JSON string is invalid with respect to TerminalAssignment */ - public static TerminalAssignment fromJson(String jsonString) throws JsonProcessingException { + public static TerminalAssignment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalAssignment.class); } @@ -463,7 +462,7 @@ public static TerminalAssignment fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivity.java b/src/main/java/com/adyen/model/management/TerminalConnectivity.java index e26d47049..d47b0e1cc 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivity.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivity.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalConnectivity */ @JsonPropertyOrder({ @@ -312,10 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalConnectivity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivity + * @throws JacksonException if the JSON string is invalid with respect to TerminalConnectivity */ - public static TerminalConnectivity fromJson(String jsonString) throws JsonProcessingException { + public static TerminalConnectivity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalConnectivity.class); } @@ -324,7 +323,7 @@ public static TerminalConnectivity fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java index 77b1b3f22..e704a4098 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityBluetooth.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalConnectivityBluetooth */ @JsonPropertyOrder({ @@ -210,11 +210,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalConnectivityBluetooth - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalConnectivityBluetooth */ - public static TerminalConnectivityBluetooth fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityBluetooth fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityBluetooth.class); } @@ -223,7 +222,7 @@ public static TerminalConnectivityBluetooth fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java index 51eb75ace..1827ee387 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityCellular.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TerminalConnectivityCellular */ @JsonPropertyOrder({ @@ -331,11 +331,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalConnectivityCellular - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalConnectivityCellular */ - public static TerminalConnectivityCellular fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityCellular fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityCellular.class); } @@ -344,7 +343,7 @@ public static TerminalConnectivityCellular fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java index 1064cf23a..355e0ca4b 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityEthernet.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalConnectivityEthernet */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalConnectivityEthernet - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalConnectivityEthernet */ - public static TerminalConnectivityEthernet fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityEthernet fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityEthernet.class); } @@ -276,7 +275,7 @@ public static TerminalConnectivityEthernet fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java index 685b637d5..3746616c4 100644 --- a/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java +++ b/src/main/java/com/adyen/model/management/TerminalConnectivityWifi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalConnectivityWifi */ @JsonPropertyOrder({ @@ -256,11 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalConnectivityWifi - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalConnectivityWifi + * @throws JacksonException if the JSON string is invalid with respect to TerminalConnectivityWifi */ - public static TerminalConnectivityWifi fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalConnectivityWifi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalConnectivityWifi.class); } @@ -269,7 +267,7 @@ public static TerminalConnectivityWifi fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalInstructions.java b/src/main/java/com/adyen/model/management/TerminalInstructions.java index 473bdf1cf..6866b97c7 100644 --- a/src/main/java/com/adyen/model/management/TerminalInstructions.java +++ b/src/main/java/com/adyen/model/management/TerminalInstructions.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalInstructions */ @JsonPropertyOrder({TerminalInstructions.JSON_PROPERTY_ADYEN_APP_RESTART}) @@ -164,10 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalInstructions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalInstructions + * @throws JacksonException if the JSON string is invalid with respect to TerminalInstructions */ - public static TerminalInstructions fromJson(String jsonString) throws JsonProcessingException { + public static TerminalInstructions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalInstructions.class); } @@ -176,7 +175,7 @@ public static TerminalInstructions fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java index 1f2c97f4d..14353ff98 100644 --- a/src/main/java/com/adyen/model/management/TerminalModelsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalModelsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalModelsResponse */ @JsonPropertyOrder({TerminalModelsResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalModelsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalModelsResponse + * @throws JacksonException if the JSON string is invalid with respect to TerminalModelsResponse */ - public static TerminalModelsResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalModelsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalModelsResponse.class); } @@ -180,7 +179,7 @@ public static TerminalModelsResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalOrder.java b/src/main/java/com/adyen/model/management/TerminalOrder.java index bf2032133..eb3fad45f 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrder.java +++ b/src/main/java/com/adyen/model/management/TerminalOrder.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalOrder */ @JsonPropertyOrder({ @@ -535,9 +535,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalOrder - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalOrder + * @throws JacksonException if the JSON string is invalid with respect to TerminalOrder */ - public static TerminalOrder fromJson(String jsonString) throws JsonProcessingException { + public static TerminalOrder fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalOrder.class); } @@ -546,7 +546,7 @@ public static TerminalOrder fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java index 4582f727b..24c833521 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrderRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalOrderRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalOrderRequest */ @JsonPropertyOrder({ @@ -435,10 +435,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalOrderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalOrderRequest + * @throws JacksonException if the JSON string is invalid with respect to TerminalOrderRequest */ - public static TerminalOrderRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalOrderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalOrderRequest.class); } @@ -447,7 +446,7 @@ public static TerminalOrderRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java index bbeb01ff4..d98bc3d52 100644 --- a/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalOrdersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalOrdersResponse */ @JsonPropertyOrder({TerminalOrdersResponse.JSON_PROPERTY_DATA}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalOrdersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalOrdersResponse + * @throws JacksonException if the JSON string is invalid with respect to TerminalOrdersResponse */ - public static TerminalOrdersResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalOrdersResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalOrdersResponse.class); } @@ -180,7 +179,7 @@ public static TerminalOrdersResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalProduct.java b/src/main/java/com/adyen/model/management/TerminalProduct.java index b939d4821..fc2dea0e5 100644 --- a/src/main/java/com/adyen/model/management/TerminalProduct.java +++ b/src/main/java/com/adyen/model/management/TerminalProduct.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalProduct */ @JsonPropertyOrder({ @@ -372,9 +372,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalProduct - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalProduct + * @throws JacksonException if the JSON string is invalid with respect to TerminalProduct */ - public static TerminalProduct fromJson(String jsonString) throws JsonProcessingException { + public static TerminalProduct fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalProduct.class); } @@ -383,7 +383,7 @@ public static TerminalProduct fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalProductPrice.java b/src/main/java/com/adyen/model/management/TerminalProductPrice.java index 38de1596c..10c16db65 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductPrice.java +++ b/src/main/java/com/adyen/model/management/TerminalProductPrice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalProductPrice */ @JsonPropertyOrder({ @@ -214,10 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalProductPrice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalProductPrice + * @throws JacksonException if the JSON string is invalid with respect to TerminalProductPrice */ - public static TerminalProductPrice fromJson(String jsonString) throws JsonProcessingException { + public static TerminalProductPrice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalProductPrice.class); } @@ -226,7 +225,7 @@ public static TerminalProductPrice fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java index aef387678..e8b95f9e0 100644 --- a/src/main/java/com/adyen/model/management/TerminalProductsResponse.java +++ b/src/main/java/com/adyen/model/management/TerminalProductsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalProductsResponse */ @JsonPropertyOrder({TerminalProductsResponse.JSON_PROPERTY_DATA}) @@ -168,11 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalProductsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalProductsResponse + * @throws JacksonException if the JSON string is invalid with respect to TerminalProductsResponse */ - public static TerminalProductsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalProductsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalProductsResponse.class); } @@ -181,7 +179,7 @@ public static TerminalProductsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java index 2e652b570..46c7726a2 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalReassignmentRequest */ @JsonPropertyOrder({ @@ -342,11 +342,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalReassignmentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalReassignmentRequest */ - public static TerminalReassignmentRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalReassignmentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentRequest.class); } @@ -355,7 +354,7 @@ public static TerminalReassignmentRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java index a0d64a611..7aaf4772a 100644 --- a/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java +++ b/src/main/java/com/adyen/model/management/TerminalReassignmentTarget.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalReassignmentTarget */ @JsonPropertyOrder({ @@ -336,11 +336,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalReassignmentTarget - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalReassignmentTarget */ - public static TerminalReassignmentTarget fromJson(String jsonString) - throws JsonProcessingException { + public static TerminalReassignmentTarget fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalReassignmentTarget.class); } @@ -349,7 +348,7 @@ public static TerminalReassignmentTarget fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TerminalSettings.java b/src/main/java/com/adyen/model/management/TerminalSettings.java index a00ab6932..dce7eba77 100644 --- a/src/main/java/com/adyen/model/management/TerminalSettings.java +++ b/src/main/java/com/adyen/model/management/TerminalSettings.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TerminalSettings */ @JsonPropertyOrder({ @@ -1434,9 +1434,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalSettings - * @throws JsonProcessingException if the JSON string is invalid with respect to TerminalSettings + * @throws JacksonException if the JSON string is invalid with respect to TerminalSettings */ - public static TerminalSettings fromJson(String jsonString) throws JsonProcessingException { + public static TerminalSettings fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalSettings.class); } @@ -1445,7 +1445,7 @@ public static TerminalSettings fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java index e7092f6e8..b49ada2fd 100644 --- a/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestCompanyWebhookRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TestCompanyWebhookRequest */ @JsonPropertyOrder({ @@ -359,11 +359,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TestCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TestCompanyWebhookRequest */ - public static TestCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TestCompanyWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TestCompanyWebhookRequest.class); } @@ -372,7 +371,7 @@ public static TestCompanyWebhookRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TestOutput.java b/src/main/java/com/adyen/model/management/TestOutput.java index 1f50bfda4..54848e6a7 100644 --- a/src/main/java/com/adyen/model/management/TestOutput.java +++ b/src/main/java/com/adyen/model/management/TestOutput.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TestOutput */ @JsonPropertyOrder({ @@ -526,9 +526,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TestOutput - * @throws JsonProcessingException if the JSON string is invalid with respect to TestOutput + * @throws JacksonException if the JSON string is invalid with respect to TestOutput */ - public static TestOutput fromJson(String jsonString) throws JsonProcessingException { + public static TestOutput fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TestOutput.class); } @@ -537,7 +537,7 @@ public static TestOutput fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TestWebhookRequest.java b/src/main/java/com/adyen/model/management/TestWebhookRequest.java index b776b4573..9ae529ccd 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/TestWebhookRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TestWebhookRequest */ @JsonPropertyOrder({ @@ -278,10 +278,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TestWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TestWebhookRequest + * @throws JacksonException if the JSON string is invalid with respect to TestWebhookRequest */ - public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessingException { + public static TestWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TestWebhookRequest.class); } @@ -290,7 +289,7 @@ public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TestWebhookResponse.java b/src/main/java/com/adyen/model/management/TestWebhookResponse.java index 190f90fd6..2b9bb9a4c 100644 --- a/src/main/java/com/adyen/model/management/TestWebhookResponse.java +++ b/src/main/java/com/adyen/model/management/TestWebhookResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TestWebhookResponse */ @JsonPropertyOrder({TestWebhookResponse.JSON_PROPERTY_DATA}) @@ -171,10 +171,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TestWebhookResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TestWebhookResponse + * @throws JacksonException if the JSON string is invalid with respect to TestWebhookResponse */ - public static TestWebhookResponse fromJson(String jsonString) throws JsonProcessingException { + public static TestWebhookResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TestWebhookResponse.class); } @@ -183,7 +182,7 @@ public static TestWebhookResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TicketInfo.java b/src/main/java/com/adyen/model/management/TicketInfo.java index 1b86d63d0..c5de5316b 100644 --- a/src/main/java/com/adyen/model/management/TicketInfo.java +++ b/src/main/java/com/adyen/model/management/TicketInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TicketInfo */ @JsonPropertyOrder({TicketInfo.JSON_PROPERTY_REQUESTOR_ID}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TicketInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TicketInfo + * @throws JacksonException if the JSON string is invalid with respect to TicketInfo */ - public static TicketInfo fromJson(String jsonString) throws JsonProcessingException { + public static TicketInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TicketInfo.class); } @@ -169,7 +169,7 @@ public static TicketInfo fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TicketResponseInfo.java b/src/main/java/com/adyen/model/management/TicketResponseInfo.java index 619e45dd4..d194b350d 100644 --- a/src/main/java/com/adyen/model/management/TicketResponseInfo.java +++ b/src/main/java/com/adyen/model/management/TicketResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TicketResponseInfo */ @JsonPropertyOrder({TicketResponseInfo.JSON_PROPERTY_REQUESTOR_ID}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TicketResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TicketResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to TicketResponseInfo */ - public static TicketResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static TicketResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TicketResponseInfo.class); } @@ -170,7 +169,7 @@ public static TicketResponseInfo fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Timeouts.java b/src/main/java/com/adyen/model/management/Timeouts.java index b3b36b39e..e366e1d52 100644 --- a/src/main/java/com/adyen/model/management/Timeouts.java +++ b/src/main/java/com/adyen/model/management/Timeouts.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Timeouts */ @JsonPropertyOrder({Timeouts.JSON_PROPERTY_FROM_ACTIVE_TO_SLEEP}) @@ -164,9 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Timeouts - * @throws JsonProcessingException if the JSON string is invalid with respect to Timeouts + * @throws JacksonException if the JSON string is invalid with respect to Timeouts */ - public static Timeouts fromJson(String jsonString) throws JsonProcessingException { + public static Timeouts fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Timeouts.class); } @@ -175,7 +175,7 @@ public static Timeouts fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java index 2cf601efc..da50f7630 100644 --- a/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java +++ b/src/main/java/com/adyen/model/management/TransactionDescriptionInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionDescriptionInfo */ @JsonPropertyOrder({ @@ -341,11 +341,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionDescriptionInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionDescriptionInfo */ - public static TransactionDescriptionInfo fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionDescriptionInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionDescriptionInfo.class); } @@ -354,7 +353,7 @@ public static TransactionDescriptionInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TransactionDescriptionResponseInfo.java b/src/main/java/com/adyen/model/management/TransactionDescriptionResponseInfo.java index c53e15387..d9a7b35d9 100644 --- a/src/main/java/com/adyen/model/management/TransactionDescriptionResponseInfo.java +++ b/src/main/java/com/adyen/model/management/TransactionDescriptionResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionDescriptionResponseInfo */ @JsonPropertyOrder({ @@ -346,11 +346,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionDescriptionResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionDescriptionResponseInfo */ public static TransactionDescriptionResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionDescriptionResponseInfo.class); } @@ -359,7 +359,7 @@ public static TransactionDescriptionResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TwintInfo.java b/src/main/java/com/adyen/model/management/TwintInfo.java index 0ddc876a1..cd7377a79 100644 --- a/src/main/java/com/adyen/model/management/TwintInfo.java +++ b/src/main/java/com/adyen/model/management/TwintInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TwintInfo */ @JsonPropertyOrder({TwintInfo.JSON_PROPERTY_LOGO}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TwintInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TwintInfo + * @throws JacksonException if the JSON string is invalid with respect to TwintInfo */ - public static TwintInfo fromJson(String jsonString) throws JsonProcessingException { + public static TwintInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TwintInfo.class); } @@ -169,7 +169,7 @@ public static TwintInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/TwintResponseInfo.java b/src/main/java/com/adyen/model/management/TwintResponseInfo.java index 4276800a1..c50ad8edf 100644 --- a/src/main/java/com/adyen/model/management/TwintResponseInfo.java +++ b/src/main/java/com/adyen/model/management/TwintResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TwintResponseInfo */ @JsonPropertyOrder({TwintResponseInfo.JSON_PROPERTY_LOGO}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TwintResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TwintResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to TwintResponseInfo */ - public static TwintResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static TwintResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TwintResponseInfo.class); } @@ -169,7 +169,7 @@ public static TwintResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java index 216c48503..6505b5190 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidAppDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UninstallAndroidAppDetails */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UninstallAndroidAppDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UninstallAndroidAppDetails */ - public static UninstallAndroidAppDetails fromJson(String jsonString) - throws JsonProcessingException { + public static UninstallAndroidAppDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UninstallAndroidAppDetails.class); } @@ -264,7 +263,7 @@ public static UninstallAndroidAppDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java index 2c13331b6..d92748d20 100644 --- a/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java +++ b/src/main/java/com/adyen/model/management/UninstallAndroidCertificateDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UninstallAndroidCertificateDetails */ @JsonPropertyOrder({ @@ -255,11 +255,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UninstallAndroidCertificateDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UninstallAndroidCertificateDetails */ public static UninstallAndroidCertificateDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UninstallAndroidCertificateDetails.class); } @@ -268,7 +268,7 @@ public static UninstallAndroidCertificateDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Unreferenced.java b/src/main/java/com/adyen/model/management/Unreferenced.java index e1c26af57..675b1221b 100644 --- a/src/main/java/com/adyen/model/management/Unreferenced.java +++ b/src/main/java/com/adyen/model/management/Unreferenced.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Unreferenced */ @JsonPropertyOrder({Unreferenced.JSON_PROPERTY_ENABLE_UNREFERENCED_REFUNDS}) @@ -186,9 +186,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Unreferenced - * @throws JsonProcessingException if the JSON string is invalid with respect to Unreferenced + * @throws JacksonException if the JSON string is invalid with respect to Unreferenced */ - public static Unreferenced fromJson(String jsonString) throws JsonProcessingException { + public static Unreferenced fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Unreferenced.class); } @@ -197,7 +197,7 @@ public static Unreferenced fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdatableAddress.java b/src/main/java/com/adyen/model/management/UpdatableAddress.java index 85f8ae17c..0e0cadf70 100644 --- a/src/main/java/com/adyen/model/management/UpdatableAddress.java +++ b/src/main/java/com/adyen/model/management/UpdatableAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UpdatableAddress */ @JsonPropertyOrder({ @@ -427,9 +427,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdatableAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to UpdatableAddress + * @throws JacksonException if the JSON string is invalid with respect to UpdatableAddress */ - public static UpdatableAddress fromJson(String jsonString) throws JsonProcessingException { + public static UpdatableAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatableAddress.class); } @@ -438,7 +438,7 @@ public static UpdatableAddress fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java index 889f120c6..67e329290 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyApiCredentialRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UpdateCompanyApiCredentialRequest */ @JsonPropertyOrder({ @@ -485,11 +485,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateCompanyApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateCompanyApiCredentialRequest */ public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateCompanyApiCredentialRequest.class); } @@ -498,7 +498,7 @@ public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java index 4805100ec..1c01e794c 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyUserRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UpdateCompanyUserRequest */ @JsonPropertyOrder({ @@ -582,11 +582,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateCompanyUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateCompanyUserRequest + * @throws JacksonException if the JSON string is invalid with respect to UpdateCompanyUserRequest */ - public static UpdateCompanyUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateCompanyUserRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateCompanyUserRequest.class); } @@ -595,7 +593,7 @@ public static UpdateCompanyUserRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java index 5a678d677..f3ca5298b 100644 --- a/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateCompanyWebhookRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateCompanyWebhookRequest */ @JsonPropertyOrder({ @@ -1212,11 +1212,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateCompanyWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateCompanyWebhookRequest */ - public static UpdateCompanyWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateCompanyWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateCompanyWebhookRequest.class); } @@ -1225,7 +1224,7 @@ public static UpdateCompanyWebhookRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java index 767aae654..3a29f9141 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantApiCredentialRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UpdateMerchantApiCredentialRequest */ @JsonPropertyOrder({ @@ -415,11 +415,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateMerchantApiCredentialRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateMerchantApiCredentialRequest */ public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateMerchantApiCredentialRequest.class); } @@ -428,7 +428,7 @@ public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java index 7de3f6f18..1f5b92070 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantUserRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UpdateMerchantUserRequest */ @JsonPropertyOrder({ @@ -504,11 +504,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateMerchantUserRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateMerchantUserRequest */ - public static UpdateMerchantUserRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateMerchantUserRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateMerchantUserRequest.class); } @@ -517,7 +516,7 @@ public static UpdateMerchantUserRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java index f019c74bb..434f80680 100644 --- a/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateMerchantWebhookRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateMerchantWebhookRequest */ @JsonPropertyOrder({ @@ -992,11 +992,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateMerchantWebhookRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateMerchantWebhookRequest */ - public static UpdateMerchantWebhookRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateMerchantWebhookRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateMerchantWebhookRequest.class); } @@ -1005,7 +1004,7 @@ public static UpdateMerchantWebhookRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java index f08b64461..9063678d7 100644 --- a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java +++ b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** UpdatePaymentMethodInfo */ @JsonPropertyOrder({ @@ -1672,10 +1672,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdatePaymentMethodInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdatePaymentMethodInfo + * @throws JacksonException if the JSON string is invalid with respect to UpdatePaymentMethodInfo */ - public static UpdatePaymentMethodInfo fromJson(String jsonString) throws JsonProcessingException { + public static UpdatePaymentMethodInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatePaymentMethodInfo.class); } @@ -1684,7 +1683,7 @@ public static UpdatePaymentMethodInfo fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java index eb7d0a5ab..7435183b3 100644 --- a/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java +++ b/src/main/java/com/adyen/model/management/UpdatePayoutSettingsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UpdatePayoutSettingsRequest */ @JsonPropertyOrder({UpdatePayoutSettingsRequest.JSON_PROPERTY_ENABLED}) @@ -167,11 +167,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdatePayoutSettingsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdatePayoutSettingsRequest */ - public static UpdatePayoutSettingsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdatePayoutSettingsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatePayoutSettingsRequest.class); } @@ -180,7 +179,7 @@ public static UpdatePayoutSettingsRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java index fb2a3b112..d885d9555 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationLogicRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateSplitConfigurationLogicRequest */ @JsonPropertyOrder({ @@ -1950,11 +1950,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationLogicRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateSplitConfigurationLogicRequest */ public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationLogicRequest.class); } @@ -1963,7 +1963,7 @@ public static UpdateSplitConfigurationLogicRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java index c8a97f493..be83b9ebb 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UpdateSplitConfigurationRequest */ @JsonPropertyOrder({UpdateSplitConfigurationRequest.JSON_PROPERTY_DESCRIPTION}) @@ -160,11 +160,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateSplitConfigurationRequest */ public static UpdateSplitConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRequest.class); } @@ -173,7 +173,7 @@ public static UpdateSplitConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java index e6b38e9c4..3d8b8b33d 100644 --- a/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateSplitConfigurationRuleRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UpdateSplitConfigurationRuleRequest */ @JsonPropertyOrder({ @@ -391,11 +391,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateSplitConfigurationRuleRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateSplitConfigurationRuleRequest */ public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateSplitConfigurationRuleRequest.class); } @@ -404,7 +404,7 @@ public static UpdateSplitConfigurationRuleRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java index 7860d417e..a6b7493bb 100644 --- a/src/main/java/com/adyen/model/management/UpdateStoreRequest.java +++ b/src/main/java/com/adyen/model/management/UpdateStoreRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UpdateStoreRequest */ @JsonPropertyOrder({ @@ -668,10 +668,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UpdateStoreRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateStoreRequest + * @throws JacksonException if the JSON string is invalid with respect to UpdateStoreRequest */ - public static UpdateStoreRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateStoreRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateStoreRequest.class); } @@ -680,7 +679,7 @@ public static UpdateStoreRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java index 108434c87..bbd3289f2 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidAppResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UploadAndroidAppResponse */ @JsonPropertyOrder({UploadAndroidAppResponse.JSON_PROPERTY_ID}) @@ -158,11 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UploadAndroidAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UploadAndroidAppResponse + * @throws JacksonException if the JSON string is invalid with respect to UploadAndroidAppResponse */ - public static UploadAndroidAppResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UploadAndroidAppResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UploadAndroidAppResponse.class); } @@ -171,7 +169,7 @@ public static UploadAndroidAppResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java index 2d6cd5198..82f8d319f 100644 --- a/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java +++ b/src/main/java/com/adyen/model/management/UploadAndroidCertificateResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UploadAndroidCertificateResponse */ @JsonPropertyOrder({UploadAndroidCertificateResponse.JSON_PROPERTY_ID}) @@ -160,11 +160,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UploadAndroidCertificateResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UploadAndroidCertificateResponse */ public static UploadAndroidCertificateResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UploadAndroidCertificateResponse.class); } @@ -173,7 +173,7 @@ public static UploadAndroidCertificateResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Url.java b/src/main/java/com/adyen/model/management/Url.java index d09038e9b..5c67fed8b 100644 --- a/src/main/java/com/adyen/model/management/Url.java +++ b/src/main/java/com/adyen/model/management/Url.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Url */ @JsonPropertyOrder({ @@ -305,9 +305,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Url - * @throws JsonProcessingException if the JSON string is invalid with respect to Url + * @throws JacksonException if the JSON string is invalid with respect to Url */ - public static Url fromJson(String jsonString) throws JsonProcessingException { + public static Url fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Url.class); } @@ -316,7 +316,7 @@ public static Url fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/User.java b/src/main/java/com/adyen/model/management/User.java index 12dfabb38..e0a900f47 100644 --- a/src/main/java/com/adyen/model/management/User.java +++ b/src/main/java/com/adyen/model/management/User.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** User */ @JsonPropertyOrder({ @@ -656,9 +656,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of User - * @throws JsonProcessingException if the JSON string is invalid with respect to User + * @throws JacksonException if the JSON string is invalid with respect to User */ - public static User fromJson(String jsonString) throws JsonProcessingException { + public static User fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, User.class); } @@ -667,7 +667,7 @@ public static User fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ValuelinkInfo.java b/src/main/java/com/adyen/model/management/ValuelinkInfo.java index 865037595..9addfdd41 100644 --- a/src/main/java/com/adyen/model/management/ValuelinkInfo.java +++ b/src/main/java/com/adyen/model/management/ValuelinkInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ValuelinkInfo */ @JsonPropertyOrder({ @@ -357,9 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ValuelinkInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ValuelinkInfo + * @throws JacksonException if the JSON string is invalid with respect to ValuelinkInfo */ - public static ValuelinkInfo fromJson(String jsonString) throws JsonProcessingException { + public static ValuelinkInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValuelinkInfo.class); } @@ -368,7 +368,7 @@ public static ValuelinkInfo fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/ValuelinkResponseInfo.java b/src/main/java/com/adyen/model/management/ValuelinkResponseInfo.java index f69042da1..e4ef31f97 100644 --- a/src/main/java/com/adyen/model/management/ValuelinkResponseInfo.java +++ b/src/main/java/com/adyen/model/management/ValuelinkResponseInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ValuelinkResponseInfo */ @JsonPropertyOrder({ @@ -357,10 +357,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ValuelinkResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ValuelinkResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to ValuelinkResponseInfo */ - public static ValuelinkResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static ValuelinkResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValuelinkResponseInfo.class); } @@ -369,7 +368,7 @@ public static ValuelinkResponseInfo fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/VippsInfo.java b/src/main/java/com/adyen/model/management/VippsInfo.java index 0c63521a2..b4ad12429 100644 --- a/src/main/java/com/adyen/model/management/VippsInfo.java +++ b/src/main/java/com/adyen/model/management/VippsInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** VippsInfo */ @JsonPropertyOrder({VippsInfo.JSON_PROPERTY_LOGO, VippsInfo.JSON_PROPERTY_SUBSCRIPTION_CANCEL_URL}) @@ -213,9 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VippsInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to VippsInfo + * @throws JacksonException if the JSON string is invalid with respect to VippsInfo */ - public static VippsInfo fromJson(String jsonString) throws JsonProcessingException { + public static VippsInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VippsInfo.class); } @@ -224,7 +224,7 @@ public static VippsInfo fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/VippsResponseInfo.java b/src/main/java/com/adyen/model/management/VippsResponseInfo.java index 747c8be1a..c0b222a2e 100644 --- a/src/main/java/com/adyen/model/management/VippsResponseInfo.java +++ b/src/main/java/com/adyen/model/management/VippsResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** VippsResponseInfo */ @JsonPropertyOrder({ @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VippsResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to VippsResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to VippsResponseInfo */ - public static VippsResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static VippsResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VippsResponseInfo.class); } @@ -228,7 +228,7 @@ public static VippsResponseInfo fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/VisaResponseInfo.java b/src/main/java/com/adyen/model/management/VisaResponseInfo.java index bfecc3e0b..c257ba864 100644 --- a/src/main/java/com/adyen/model/management/VisaResponseInfo.java +++ b/src/main/java/com/adyen/model/management/VisaResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** VisaResponseInfo */ @JsonPropertyOrder({VisaResponseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION}) @@ -162,9 +162,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VisaResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to VisaResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to VisaResponseInfo */ - public static VisaResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static VisaResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VisaResponseInfo.class); } @@ -173,7 +173,7 @@ public static VisaResponseInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WeChatPayInfo.java b/src/main/java/com/adyen/model/management/WeChatPayInfo.java index 655ecd315..519984a83 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WeChatPayInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayInfo + * @throws JacksonException if the JSON string is invalid with respect to WeChatPayInfo */ - public static WeChatPayInfo fromJson(String jsonString) throws JsonProcessingException { + public static WeChatPayInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayInfo.class); } @@ -219,7 +219,7 @@ public static WeChatPayInfo fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java index bd31fdf72..eb49c5e6d 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WeChatPayPosInfo */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayPosInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayPosInfo + * @throws JacksonException if the JSON string is invalid with respect to WeChatPayPosInfo */ - public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessingException { + public static WeChatPayPosInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayPosInfo.class); } @@ -219,7 +219,7 @@ public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WeChatPayPosResponseInfo.java b/src/main/java/com/adyen/model/management/WeChatPayPosResponseInfo.java index 2e6802434..fff3747a2 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayPosResponseInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayPosResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WeChatPayPosResponseInfo */ @JsonPropertyOrder({ @@ -209,11 +209,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayPosResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WeChatPayPosResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to WeChatPayPosResponseInfo */ - public static WeChatPayPosResponseInfo fromJson(String jsonString) - throws JsonProcessingException { + public static WeChatPayPosResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayPosResponseInfo.class); } @@ -222,7 +220,7 @@ public static WeChatPayPosResponseInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WeChatPayResponseInfo.java b/src/main/java/com/adyen/model/management/WeChatPayResponseInfo.java index eeb56e39f..6ee9f28c5 100644 --- a/src/main/java/com/adyen/model/management/WeChatPayResponseInfo.java +++ b/src/main/java/com/adyen/model/management/WeChatPayResponseInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WeChatPayResponseInfo */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WeChatPayResponseInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to - * WeChatPayResponseInfo + * @throws JacksonException if the JSON string is invalid with respect to WeChatPayResponseInfo */ - public static WeChatPayResponseInfo fromJson(String jsonString) throws JsonProcessingException { + public static WeChatPayResponseInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WeChatPayResponseInfo.class); } @@ -220,7 +219,7 @@ public static WeChatPayResponseInfo fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/Webhook.java b/src/main/java/com/adyen/model/management/Webhook.java index d3db54c9f..9907a2b6a 100644 --- a/src/main/java/com/adyen/model/management/Webhook.java +++ b/src/main/java/com/adyen/model/management/Webhook.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Webhook */ @JsonPropertyOrder({ @@ -1601,9 +1601,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Webhook - * @throws JsonProcessingException if the JSON string is invalid with respect to Webhook + * @throws JacksonException if the JSON string is invalid with respect to Webhook */ - public static Webhook fromJson(String jsonString) throws JsonProcessingException { + public static Webhook fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Webhook.class); } @@ -1612,7 +1612,7 @@ public static Webhook fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WebhookLinks.java b/src/main/java/com/adyen/model/management/WebhookLinks.java index e0caf8e86..937b312b4 100644 --- a/src/main/java/com/adyen/model/management/WebhookLinks.java +++ b/src/main/java/com/adyen/model/management/WebhookLinks.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** WebhookLinks */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WebhookLinks - * @throws JsonProcessingException if the JSON string is invalid with respect to WebhookLinks + * @throws JacksonException if the JSON string is invalid with respect to WebhookLinks */ - public static WebhookLinks fromJson(String jsonString) throws JsonProcessingException { + public static WebhookLinks fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WebhookLinks.class); } @@ -373,7 +373,7 @@ public static WebhookLinks fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/management/WifiProfiles.java b/src/main/java/com/adyen/model/management/WifiProfiles.java index c5772a414..6034d5130 100644 --- a/src/main/java/com/adyen/model/management/WifiProfiles.java +++ b/src/main/java/com/adyen/model/management/WifiProfiles.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** WifiProfiles */ @JsonPropertyOrder({WifiProfiles.JSON_PROPERTY_PROFILES, WifiProfiles.JSON_PROPERTY_SETTINGS}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of WifiProfiles - * @throws JsonProcessingException if the JSON string is invalid with respect to WifiProfiles + * @throws JacksonException if the JSON string is invalid with respect to WifiProfiles */ - public static WifiProfiles fromJson(String jsonString) throws JsonProcessingException { + public static WifiProfiles fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, WifiProfiles.class); } @@ -226,7 +226,7 @@ public static WifiProfiles fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java index 861debf56..3000038eb 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCapabilityData.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AccountCapabilityData */ @JsonPropertyOrder({ @@ -465,10 +465,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountCapabilityData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountCapabilityData + * @throws JacksonException if the JSON string is invalid with respect to AccountCapabilityData */ - public static AccountCapabilityData fromJson(String jsonString) throws JsonProcessingException { + public static AccountCapabilityData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountCapabilityData.class); } @@ -477,7 +476,7 @@ public static AccountCapabilityData fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java index d6a12689c..01e83dd29 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountCreateNotificationData.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** AccountCreateNotificationData */ @JsonPropertyOrder({ @@ -353,11 +353,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountCreateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountCreateNotificationData */ - public static AccountCreateNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountCreateNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountCreateNotificationData.class); } @@ -366,7 +365,7 @@ public static AccountCreateNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java index 8528fe458..a46c489ed 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountNotificationResponse */ @JsonPropertyOrder({AccountNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -109,11 +109,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountNotificationResponse */ - public static AccountNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AccountNotificationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountNotificationResponse.class); } @@ -122,7 +121,7 @@ public static AccountNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java index 2a9512303..8902d9ed2 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountUpdateNotificationData.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** AccountUpdateNotificationData */ @JsonPropertyOrder({ @@ -319,11 +319,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountUpdateNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountUpdateNotificationData */ - public static AccountUpdateNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static AccountUpdateNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountUpdateNotificationData.class); } @@ -332,7 +331,7 @@ public static AccountUpdateNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java index 8f27a0397..9e7dc6edb 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblem.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapabilityProblem */ @JsonPropertyOrder({ @@ -151,9 +151,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblem - * @throws JsonProcessingException if the JSON string is invalid with respect to CapabilityProblem + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblem */ - public static CapabilityProblem fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblem fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblem.class); } @@ -162,7 +162,7 @@ public static CapabilityProblem fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java index 919708775..ce50f91f3 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntity.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntity */ @JsonPropertyOrder({ @@ -285,10 +285,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CapabilityProblemEntity + * @throws JacksonException if the JSON string is invalid with respect to CapabilityProblemEntity */ - public static CapabilityProblemEntity fromJson(String jsonString) throws JsonProcessingException { + public static CapabilityProblemEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntity.class); } @@ -297,7 +296,7 @@ public static CapabilityProblemEntity fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java index ae32f3409..772651062 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/CapabilityProblemEntityRecursive.java @@ -17,12 +17,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapabilityProblemEntityRecursive */ @JsonPropertyOrder({ @@ -252,11 +252,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CapabilityProblemEntityRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CapabilityProblemEntityRecursive */ public static CapabilityProblemEntityRecursive fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CapabilityProblemEntityRecursive.class); } @@ -265,7 +265,7 @@ public static CapabilityProblemEntityRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/JSON.java b/src/main/java/com/adyen/model/managementwebhooks/JSON.java index 29d9aac38..79ac9dbc4 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/managementwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java index aa8536e88..cfcf42a9b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantCreatedNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantCreatedNotificationRequest */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MerchantCreatedNotificationRequest */ public static MerchantCreatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantCreatedNotificationRequest.class); } @@ -284,7 +284,7 @@ public static MerchantCreatedNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java index 0e8404f70..e1fd64684 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MerchantUpdatedNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantUpdatedNotificationRequest */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantUpdatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MerchantUpdatedNotificationRequest */ public static MerchantUpdatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantUpdatedNotificationRequest.class); } @@ -284,7 +284,7 @@ public static MerchantUpdatedNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java index ed4003593..2177a0f0f 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/MidServiceNotificationData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MidServiceNotificationData */ @JsonPropertyOrder({ @@ -559,11 +559,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MidServiceNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * MidServiceNotificationData */ - public static MidServiceNotificationData fromJson(String jsonString) - throws JsonProcessingException { + public static MidServiceNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MidServiceNotificationData.class); } @@ -572,7 +571,7 @@ public static MidServiceNotificationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java index 280047e23..f719eb707 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodCreatedNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodCreatedNotificationRequest */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentMethodCreatedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentMethodCreatedNotificationRequest */ public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodCreatedNotificationRequest.class); } @@ -284,7 +284,7 @@ public static PaymentMethodCreatedNotificationRequest fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java index 05eadf327..5e4fcf913 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentMethodNotificationResponse */ @JsonPropertyOrder({PaymentMethodNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentMethodNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentMethodNotificationResponse */ public static PaymentMethodNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentMethodNotificationResponse.class); } @@ -124,7 +124,7 @@ public static PaymentMethodNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java index 3b5017488..6baa9866c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodRequestRemovedNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodRequestRemovedNotificationRequest */ @JsonPropertyOrder({ @@ -272,11 +272,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentMethodRequestRemovedNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentMethodRequestRemovedNotificationRequest */ public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, PaymentMethodRequestRemovedNotificationRequest.class); } @@ -286,7 +286,7 @@ public static PaymentMethodRequestRemovedNotificationRequest fromJson(String jso * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java index 938a6b65d..e7139277a 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodScheduledForRemovalNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentMethodScheduledForRemovalNotificationRequest */ @JsonPropertyOrder({ @@ -277,11 +277,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentMethodScheduledForRemovalNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentMethodScheduledForRemovalNotificationRequest */ public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, PaymentMethodScheduledForRemovalNotificationRequest.class); } @@ -291,7 +291,7 @@ public static PaymentMethodScheduledForRemovalNotificationRequest fromJson(Strin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java index 87ac426e5..6e4060926 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java +++ b/src/main/java/com/adyen/model/managementwebhooks/RemediatingAction.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RemediatingAction */ @JsonPropertyOrder({RemediatingAction.JSON_PROPERTY_CODE, RemediatingAction.JSON_PROPERTY_MESSAGE}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RemediatingAction - * @throws JsonProcessingException if the JSON string is invalid with respect to RemediatingAction + * @throws JacksonException if the JSON string is invalid with respect to RemediatingAction */ - public static RemediatingAction fromJson(String jsonString) throws JsonProcessingException { + public static RemediatingAction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RemediatingAction.class); } @@ -149,7 +149,7 @@ public static RemediatingAction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java index cc29279e2..52f064bb0 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationRequest.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalAssignmentNotificationRequest */ @JsonPropertyOrder({ @@ -323,11 +323,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalAssignmentNotificationRequest */ public static TerminalAssignmentNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationRequest.class); } @@ -336,7 +336,7 @@ public static TerminalAssignmentNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java index bc39a097b..d9ac5b94b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalAssignmentNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalAssignmentNotificationResponse */ @JsonPropertyOrder({TerminalAssignmentNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalAssignmentNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalAssignmentNotificationResponse */ public static TerminalAssignmentNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalAssignmentNotificationResponse.class); } @@ -124,7 +124,7 @@ public static TerminalAssignmentNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java index debf480d9..a7bc4a96b 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalBoardingData */ @JsonPropertyOrder({ @@ -219,10 +219,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalBoardingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalBoardingData + * @throws JacksonException if the JSON string is invalid with respect to TerminalBoardingData */ - public static TerminalBoardingData fromJson(String jsonString) throws JsonProcessingException { + public static TerminalBoardingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalBoardingData.class); } @@ -231,7 +230,7 @@ public static TerminalBoardingData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java index f7920493e..f33f50b22 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TerminalBoardingNotificationRequest */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalBoardingNotificationRequest */ public static TerminalBoardingNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationRequest.class); } @@ -284,7 +284,7 @@ public static TerminalBoardingNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java index 1b06bf9a1..e34b9e77d 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalBoardingNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalBoardingNotificationResponse */ @JsonPropertyOrder({TerminalBoardingNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalBoardingNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalBoardingNotificationResponse */ public static TerminalBoardingNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalBoardingNotificationResponse.class); } @@ -124,7 +124,7 @@ public static TerminalBoardingNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java index 3e8624a86..fd34b5dbb 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TerminalSettingsData */ @JsonPropertyOrder({ @@ -354,10 +354,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalSettingsData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalSettingsData + * @throws JacksonException if the JSON string is invalid with respect to TerminalSettingsData */ - public static TerminalSettingsData fromJson(String jsonString) throws JsonProcessingException { + public static TerminalSettingsData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalSettingsData.class); } @@ -366,7 +365,7 @@ public static TerminalSettingsData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java index 6f7892534..158d7696f 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TerminalSettingsNotificationRequest */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalSettingsNotificationRequest */ public static TerminalSettingsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationRequest.class); } @@ -284,7 +284,7 @@ public static TerminalSettingsNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java index 4cb54c453..c60510c79 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TerminalSettingsNotificationResponse */ @JsonPropertyOrder({TerminalSettingsNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TerminalSettingsNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TerminalSettingsNotificationResponse */ public static TerminalSettingsNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalSettingsNotificationResponse.class); } @@ -124,7 +124,7 @@ public static TerminalSettingsNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java index 6b7715a69..207e1c331 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationError.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationError */ @JsonPropertyOrder({ @@ -334,9 +334,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerificationError - * @throws JsonProcessingException if the JSON string is invalid with respect to VerificationError + * @throws JacksonException if the JSON string is invalid with respect to VerificationError */ - public static VerificationError fromJson(String jsonString) throws JsonProcessingException { + public static VerificationError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationError.class); } @@ -345,7 +345,7 @@ public static VerificationError fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java index 68c11ba2c..7a610821c 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/managementwebhooks/VerificationErrorRecursive.java @@ -17,12 +17,12 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** VerificationErrorRecursive */ @JsonPropertyOrder({ @@ -290,11 +290,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerificationErrorRecursive - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * VerificationErrorRecursive */ - public static VerificationErrorRecursive fromJson(String jsonString) - throws JsonProcessingException { + public static VerificationErrorRecursive fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerificationErrorRecursive.class); } @@ -303,7 +302,7 @@ public static VerificationErrorRecursive fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/Account.java b/src/main/java/com/adyen/model/marketpayaccount/Account.java index 7460216b3..b4d227165 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/Account.java +++ b/src/main/java/com/adyen/model/marketpayaccount/Account.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Account */ @JsonPropertyOrder({ @@ -440,9 +440,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Account - * @throws JsonProcessingException if the JSON string is invalid with respect to Account + * @throws JacksonException if the JSON string is invalid with respect to Account */ - public static Account fromJson(String jsonString) throws JsonProcessingException { + public static Account fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Account.class); } @@ -451,7 +451,7 @@ public static Account fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/AccountEvent.java b/src/main/java/com/adyen/model/marketpayaccount/AccountEvent.java index 24ef621c5..58a584564 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/AccountEvent.java +++ b/src/main/java/com/adyen/model/marketpayaccount/AccountEvent.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountEvent */ @JsonPropertyOrder({ @@ -196,9 +196,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountEvent - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountEvent + * @throws JacksonException if the JSON string is invalid with respect to AccountEvent */ - public static AccountEvent fromJson(String jsonString) throws JsonProcessingException { + public static AccountEvent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountEvent.class); } @@ -207,7 +207,7 @@ public static AccountEvent fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/AccountHolderDetails.java b/src/main/java/com/adyen/model/marketpayaccount/AccountHolderDetails.java index c3b412098..7b9553e59 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/AccountHolderDetails.java +++ b/src/main/java/com/adyen/model/marketpayaccount/AccountHolderDetails.java @@ -15,13 +15,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderDetails */ @JsonPropertyOrder({ @@ -601,10 +601,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderDetails + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderDetails */ - public static AccountHolderDetails fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderDetails.class); } @@ -613,7 +612,7 @@ public static AccountHolderDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/AccountHolderStatus.java b/src/main/java/com/adyen/model/marketpayaccount/AccountHolderStatus.java index ca9db5944..bd8d7d7af 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/AccountHolderStatus.java +++ b/src/main/java/com/adyen/model/marketpayaccount/AccountHolderStatus.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStatus */ @JsonPropertyOrder({ @@ -266,10 +266,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderStatus + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderStatus */ - public static AccountHolderStatus fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderStatus.class); } @@ -278,7 +277,7 @@ public static AccountHolderStatus fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/AccountPayoutState.java b/src/main/java/com/adyen/model/marketpayaccount/AccountPayoutState.java index 25814f593..9a8c1e5cc 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/AccountPayoutState.java +++ b/src/main/java/com/adyen/model/marketpayaccount/AccountPayoutState.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountPayoutState */ @JsonPropertyOrder({ @@ -258,10 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountPayoutState - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountPayoutState + * @throws JacksonException if the JSON string is invalid with respect to AccountPayoutState */ - public static AccountPayoutState fromJson(String jsonString) throws JsonProcessingException { + public static AccountPayoutState fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountPayoutState.class); } @@ -270,7 +269,7 @@ public static AccountPayoutState fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/AccountProcessingState.java b/src/main/java/com/adyen/model/marketpayaccount/AccountProcessingState.java index cdd8bd360..4121c293c 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/AccountProcessingState.java +++ b/src/main/java/com/adyen/model/marketpayaccount/AccountProcessingState.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountProcessingState */ @JsonPropertyOrder({ @@ -210,10 +210,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountProcessingState - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountProcessingState + * @throws JacksonException if the JSON string is invalid with respect to AccountProcessingState */ - public static AccountProcessingState fromJson(String jsonString) throws JsonProcessingException { + public static AccountProcessingState fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountProcessingState.class); } @@ -222,7 +221,7 @@ public static AccountProcessingState fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/Amount.java b/src/main/java/com/adyen/model/marketpayaccount/Amount.java index 1adb4fea2..56eaf7bae 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/Amount.java +++ b/src/main/java/com/adyen/model/marketpayaccount/Amount.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -128,9 +128,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -139,7 +139,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/BankAccountDetail.java b/src/main/java/com/adyen/model/marketpayaccount/BankAccountDetail.java index d78202498..c8008654f 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/BankAccountDetail.java +++ b/src/main/java/com/adyen/model/marketpayaccount/BankAccountDetail.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BankAccountDetail */ @JsonPropertyOrder({ @@ -956,9 +956,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetail + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetail */ - public static BankAccountDetail fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetail.class); } @@ -967,7 +967,7 @@ public static BankAccountDetail fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/BusinessDetails.java b/src/main/java/com/adyen/model/marketpayaccount/BusinessDetails.java index e3e633a1c..fc3eb8cd2 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/BusinessDetails.java +++ b/src/main/java/com/adyen/model/marketpayaccount/BusinessDetails.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BusinessDetails */ @JsonPropertyOrder({ @@ -410,9 +410,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BusinessDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessDetails + * @throws JacksonException if the JSON string is invalid with respect to BusinessDetails */ - public static BusinessDetails fromJson(String jsonString) throws JsonProcessingException { + public static BusinessDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessDetails.class); } @@ -421,7 +421,7 @@ public static BusinessDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderRequest.java index 01eeab772..897ee71d3 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseAccountHolderRequest */ @JsonPropertyOrder({CloseAccountHolderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE}) @@ -92,11 +92,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CloseAccountHolderRequest */ - public static CloseAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CloseAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseAccountHolderRequest.class); } @@ -105,7 +104,7 @@ public static CloseAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderResponse.java index f1f70007c..90fc3b481 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountHolderResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseAccountHolderResponse */ @JsonPropertyOrder({ @@ -195,11 +195,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CloseAccountHolderResponse */ - public static CloseAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CloseAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseAccountHolderResponse.class); } @@ -208,7 +207,7 @@ public static CloseAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountRequest.java b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountRequest.java index e291639ce..27d85446e 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseAccountRequest */ @JsonPropertyOrder({CloseAccountRequest.JSON_PROPERTY_ACCOUNT_CODE}) @@ -92,10 +92,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloseAccountRequest + * @throws JacksonException if the JSON string is invalid with respect to CloseAccountRequest */ - public static CloseAccountRequest fromJson(String jsonString) throws JsonProcessingException { + public static CloseAccountRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseAccountRequest.class); } @@ -104,7 +103,7 @@ public static CloseAccountRequest fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountResponse.java b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountResponse.java index 0dd1dd4f6..be2c33cb2 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CloseAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CloseAccountResponse.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseAccountResponse */ @JsonPropertyOrder({ @@ -267,10 +267,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloseAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to CloseAccountResponse */ - public static CloseAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static CloseAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseAccountResponse.class); } @@ -279,7 +278,7 @@ public static CloseAccountResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CloseStoresRequest.java b/src/main/java/com/adyen/model/marketpayaccount/CloseStoresRequest.java index cdad68fce..4a6a65827 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CloseStoresRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CloseStoresRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseStoresRequest */ @JsonPropertyOrder({ @@ -130,10 +130,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseStoresRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloseStoresRequest + * @throws JacksonException if the JSON string is invalid with respect to CloseStoresRequest */ - public static CloseStoresRequest fromJson(String jsonString) throws JsonProcessingException { + public static CloseStoresRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseStoresRequest.class); } @@ -142,7 +141,7 @@ public static CloseStoresRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderRequest.java index 60b5ed009..810705373 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountHolderRequest */ @JsonPropertyOrder({ @@ -391,11 +391,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateAccountHolderRequest */ - public static CreateAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static CreateAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountHolderRequest.class); } @@ -404,7 +403,7 @@ public static CreateAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderResponse.java index 89c6906bc..7d3f6efe6 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountHolderResponse.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountHolderResponse */ @JsonPropertyOrder({ @@ -494,11 +494,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateAccountHolderResponse */ - public static CreateAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountHolderResponse.class); } @@ -507,7 +506,7 @@ public static CreateAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountRequest.java b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountRequest.java index 41be079ca..cead38d06 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountRequest.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountRequest */ @JsonPropertyOrder({ @@ -446,10 +446,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateAccountRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateAccountRequest */ - public static CreateAccountRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateAccountRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountRequest.class); } @@ -458,7 +457,7 @@ public static CreateAccountRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountResponse.java b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountResponse.java index ffb4d005b..a258300b1 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/CreateAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/CreateAccountResponse.java @@ -17,13 +17,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountResponse */ @JsonPropertyOrder({ @@ -534,10 +534,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateAccountResponse */ - public static CreateAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountResponse.class); } @@ -546,7 +545,7 @@ public static CreateAccountResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DeleteBankAccountRequest.java b/src/main/java/com/adyen/model/marketpayaccount/DeleteBankAccountRequest.java index 63e6e0c0d..b09de947d 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DeleteBankAccountRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DeleteBankAccountRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeleteBankAccountRequest */ @JsonPropertyOrder({ @@ -132,11 +132,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeleteBankAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeleteBankAccountRequest + * @throws JacksonException if the JSON string is invalid with respect to DeleteBankAccountRequest */ - public static DeleteBankAccountRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteBankAccountRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteBankAccountRequest.class); } @@ -145,7 +143,7 @@ public static DeleteBankAccountRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DeleteLegalArrangementRequest.java b/src/main/java/com/adyen/model/marketpayaccount/DeleteLegalArrangementRequest.java index f22e25ff4..2cff50187 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DeleteLegalArrangementRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DeleteLegalArrangementRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeleteLegalArrangementRequest */ @JsonPropertyOrder({ @@ -132,11 +132,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeleteLegalArrangementRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DeleteLegalArrangementRequest */ - public static DeleteLegalArrangementRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteLegalArrangementRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteLegalArrangementRequest.class); } @@ -145,7 +144,7 @@ public static DeleteLegalArrangementRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DeletePayoutMethodRequest.java b/src/main/java/com/adyen/model/marketpayaccount/DeletePayoutMethodRequest.java index 0107afaa9..7cb647b4a 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DeletePayoutMethodRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DeletePayoutMethodRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeletePayoutMethodRequest */ @JsonPropertyOrder({ @@ -132,11 +132,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeletePayoutMethodRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DeletePayoutMethodRequest */ - public static DeletePayoutMethodRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeletePayoutMethodRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeletePayoutMethodRequest.class); } @@ -145,7 +144,7 @@ public static DeletePayoutMethodRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DeleteShareholderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/DeleteShareholderRequest.java index 16a8649b1..7ff02a82a 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DeleteShareholderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DeleteShareholderRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeleteShareholderRequest */ @JsonPropertyOrder({ @@ -132,11 +132,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeleteShareholderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeleteShareholderRequest + * @throws JacksonException if the JSON string is invalid with respect to DeleteShareholderRequest */ - public static DeleteShareholderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteShareholderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteShareholderRequest.class); } @@ -145,7 +143,7 @@ public static DeleteShareholderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DeleteSignatoriesRequest.java b/src/main/java/com/adyen/model/marketpayaccount/DeleteSignatoriesRequest.java index 969f5ed09..b2e0cdd76 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DeleteSignatoriesRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DeleteSignatoriesRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeleteSignatoriesRequest */ @JsonPropertyOrder({ @@ -132,11 +132,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeleteSignatoriesRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeleteSignatoriesRequest + * @throws JacksonException if the JSON string is invalid with respect to DeleteSignatoriesRequest */ - public static DeleteSignatoriesRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DeleteSignatoriesRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteSignatoriesRequest.class); } @@ -145,7 +143,7 @@ public static DeleteSignatoriesRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/DocumentDetail.java b/src/main/java/com/adyen/model/marketpayaccount/DocumentDetail.java index b213f59ed..b9bbe975b 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/DocumentDetail.java +++ b/src/main/java/com/adyen/model/marketpayaccount/DocumentDetail.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DocumentDetail */ @JsonPropertyOrder({ @@ -466,9 +466,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DocumentDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to DocumentDetail + * @throws JacksonException if the JSON string is invalid with respect to DocumentDetail */ - public static DocumentDetail fromJson(String jsonString) throws JsonProcessingException { + public static DocumentDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DocumentDetail.class); } @@ -477,7 +477,7 @@ public static DocumentDetail fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ErrorFieldType.java b/src/main/java/com/adyen/model/marketpayaccount/ErrorFieldType.java index a94e10527..6deab32a9 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ErrorFieldType.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ErrorFieldType.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ErrorFieldType */ @JsonPropertyOrder({ @@ -152,9 +152,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ErrorFieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType + * @throws JacksonException if the JSON string is invalid with respect to ErrorFieldType */ - public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException { + public static ErrorFieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ErrorFieldType.class); } @@ -163,7 +163,7 @@ public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/FieldType.java b/src/main/java/com/adyen/model/marketpayaccount/FieldType.java index 8f8f46501..59b191d31 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/FieldType.java +++ b/src/main/java/com/adyen/model/marketpayaccount/FieldType.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FieldType */ @JsonPropertyOrder({ @@ -512,9 +512,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType + * @throws JacksonException if the JSON string is invalid with respect to FieldType */ - public static FieldType fromJson(String jsonString) throws JsonProcessingException { + public static FieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FieldType.class); } @@ -523,7 +523,7 @@ public static FieldType fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GenericResponse.java b/src/main/java/com/adyen/model/marketpayaccount/GenericResponse.java index 3e5464fd3..57be2c318 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GenericResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GenericResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GenericResponse */ @JsonPropertyOrder({ @@ -164,9 +164,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GenericResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GenericResponse + * @throws JacksonException if the JSON string is invalid with respect to GenericResponse */ - public static GenericResponse fromJson(String jsonString) throws JsonProcessingException { + public static GenericResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenericResponse.class); } @@ -175,7 +175,7 @@ public static GenericResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderRequest.java index 855eef698..d2f23a5d7 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetAccountHolderRequest */ @JsonPropertyOrder({ @@ -158,10 +158,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetAccountHolderRequest + * @throws JacksonException if the JSON string is invalid with respect to GetAccountHolderRequest */ - public static GetAccountHolderRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetAccountHolderRequest.class); } @@ -170,7 +169,7 @@ public static GetAccountHolderRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderResponse.java index 28e67ce59..23998ba99 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderResponse.java @@ -17,12 +17,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetAccountHolderResponse */ @JsonPropertyOrder({ @@ -558,11 +558,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetAccountHolderResponse + * @throws JacksonException if the JSON string is invalid with respect to GetAccountHolderResponse */ - public static GetAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetAccountHolderResponse.class); } @@ -571,7 +569,7 @@ public static GetAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderStatusResponse.java b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderStatusResponse.java index 148fc60ea..66edacafa 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderStatusResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetAccountHolderStatusResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetAccountHolderStatusResponse */ @JsonPropertyOrder({ @@ -228,11 +228,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetAccountHolderStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetAccountHolderStatusResponse */ - public static GetAccountHolderStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetAccountHolderStatusResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetAccountHolderStatusResponse.class); } @@ -241,7 +240,7 @@ public static GetAccountHolderStatusResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormRequest.java b/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormRequest.java index 968ef5296..5130d3334 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTaxFormRequest */ @JsonPropertyOrder({ @@ -154,9 +154,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTaxFormRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTaxFormRequest + * @throws JacksonException if the JSON string is invalid with respect to GetTaxFormRequest */ - public static GetTaxFormRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetTaxFormRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTaxFormRequest.class); } @@ -165,7 +165,7 @@ public static GetTaxFormRequest fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormResponse.java b/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormResponse.java index 641328886..7d24011cb 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetTaxFormResponse.java @@ -15,12 +15,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTaxFormResponse */ @JsonPropertyOrder({ @@ -224,10 +224,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTaxFormResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetTaxFormResponse + * @throws JacksonException if the JSON string is invalid with respect to GetTaxFormResponse */ - public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetTaxFormResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTaxFormResponse.class); } @@ -236,7 +235,7 @@ public static GetTaxFormResponse fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsRequest.java b/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsRequest.java index 4357a1a88..6faefc9dd 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetUploadedDocumentsRequest */ @JsonPropertyOrder({ @@ -154,11 +154,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetUploadedDocumentsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetUploadedDocumentsRequest */ - public static GetUploadedDocumentsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GetUploadedDocumentsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetUploadedDocumentsRequest.class); } @@ -167,7 +166,7 @@ public static GetUploadedDocumentsRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsResponse.java b/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsResponse.java index 285b262db..367916847 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/GetUploadedDocumentsResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetUploadedDocumentsResponse */ @JsonPropertyOrder({ @@ -201,11 +201,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetUploadedDocumentsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetUploadedDocumentsResponse */ - public static GetUploadedDocumentsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetUploadedDocumentsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetUploadedDocumentsResponse.class); } @@ -214,7 +213,7 @@ public static GetUploadedDocumentsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/IndividualDetails.java b/src/main/java/com/adyen/model/marketpayaccount/IndividualDetails.java index f18c78a6a..fbfe80d91 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/IndividualDetails.java +++ b/src/main/java/com/adyen/model/marketpayaccount/IndividualDetails.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** IndividualDetails */ @JsonPropertyOrder({ @@ -123,9 +123,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IndividualDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to IndividualDetails + * @throws JacksonException if the JSON string is invalid with respect to IndividualDetails */ - public static IndividualDetails fromJson(String jsonString) throws JsonProcessingException { + public static IndividualDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IndividualDetails.class); } @@ -134,7 +134,7 @@ public static IndividualDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/JSON.java b/src/main/java/com/adyen/model/marketpayaccount/JSON.java index 58ce52e10..cd9114374 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/JSON.java +++ b/src/main/java/com/adyen/model/marketpayaccount/JSON.java @@ -3,10 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -14,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -42,7 +46,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckResult.java index daf109cc8..46d7147b3 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckResult */ @JsonPropertyOrder({KYCCheckResult.JSON_PROPERTY_CHECKS}) @@ -102,9 +102,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckResult + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckResult */ - public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckResult.class); } @@ -113,7 +113,7 @@ public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckStatusData.java b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckStatusData.java index f71e8dd48..22f5ee1f2 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckStatusData.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckStatusData.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckStatusData */ @JsonPropertyOrder({ @@ -307,10 +307,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckStatusData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCCheckStatusData + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckStatusData */ - public static KYCCheckStatusData fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckStatusData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckStatusData.class); } @@ -319,7 +318,7 @@ public static KYCCheckStatusData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckSummary.java b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckSummary.java index ca97ef1b5..d4475fb94 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCCheckSummary.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCCheckSummary.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckSummary */ @JsonPropertyOrder({ @@ -128,9 +128,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckSummary - * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckSummary + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckSummary */ - public static KYCCheckSummary fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckSummary fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckSummary.class); } @@ -139,7 +139,7 @@ public static KYCCheckSummary fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementCheckResult.java index 81be51c0a..3e2ef7686 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCLegalArrangementCheckResult */ @JsonPropertyOrder({ @@ -137,11 +137,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCLegalArrangementCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCLegalArrangementCheckResult */ - public static KYCLegalArrangementCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCLegalArrangementCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCLegalArrangementCheckResult.class); } @@ -150,7 +149,7 @@ public static KYCLegalArrangementCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementEntityCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementEntityCheckResult.java index 6caf48f0d..bf11c2fb2 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementEntityCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCLegalArrangementEntityCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCLegalArrangementEntityCheckResult */ @JsonPropertyOrder({ @@ -173,11 +173,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCLegalArrangementEntityCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCLegalArrangementEntityCheckResult */ public static KYCLegalArrangementEntityCheckResult fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCLegalArrangementEntityCheckResult.class); } @@ -186,7 +186,7 @@ public static KYCLegalArrangementEntityCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCPayoutMethodCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCPayoutMethodCheckResult.java index 0647c6f57..8ac7652a1 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCPayoutMethodCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCPayoutMethodCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCPayoutMethodCheckResult */ @JsonPropertyOrder({ @@ -133,11 +133,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCPayoutMethodCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCPayoutMethodCheckResult */ - public static KYCPayoutMethodCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCPayoutMethodCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCPayoutMethodCheckResult.class); } @@ -146,7 +145,7 @@ public static KYCPayoutMethodCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCShareholderCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCShareholderCheckResult.java index 9820464e6..c594bcf63 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCShareholderCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCShareholderCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCShareholderCheckResult */ @JsonPropertyOrder({ @@ -201,11 +201,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCShareholderCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCShareholderCheckResult */ - public static KYCShareholderCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCShareholderCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCShareholderCheckResult.class); } @@ -214,7 +213,7 @@ public static KYCShareholderCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCSignatoryCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCSignatoryCheckResult.java index fc261c8de..f2b3f5eb3 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCSignatoryCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCSignatoryCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCSignatoryCheckResult */ @JsonPropertyOrder({ @@ -133,10 +133,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCSignatoryCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCSignatoryCheckResult + * @throws JacksonException if the JSON string is invalid with respect to KYCSignatoryCheckResult */ - public static KYCSignatoryCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCSignatoryCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCSignatoryCheckResult.class); } @@ -145,7 +144,7 @@ public static KYCSignatoryCheckResult fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCUltimateParentCompanyCheckResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCUltimateParentCompanyCheckResult.java index eed035ed7..cf8275643 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCUltimateParentCompanyCheckResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCUltimateParentCompanyCheckResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCUltimateParentCompanyCheckResult */ @JsonPropertyOrder({ @@ -140,11 +140,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCUltimateParentCompanyCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCUltimateParentCompanyCheckResult */ public static KYCUltimateParentCompanyCheckResult fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCUltimateParentCompanyCheckResult.class); } @@ -153,7 +153,7 @@ public static KYCUltimateParentCompanyCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/KYCVerificationResult.java b/src/main/java/com/adyen/model/marketpayaccount/KYCVerificationResult.java index 707e5d100..67c46c6b0 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/KYCVerificationResult.java +++ b/src/main/java/com/adyen/model/marketpayaccount/KYCVerificationResult.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCVerificationResult */ @JsonPropertyOrder({ @@ -339,10 +339,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCVerificationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCVerificationResult + * @throws JacksonException if the JSON string is invalid with respect to KYCVerificationResult */ - public static KYCVerificationResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCVerificationResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCVerificationResult.class); } @@ -351,7 +350,7 @@ public static KYCVerificationResult fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementDetail.java b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementDetail.java index 61ee6cf92..b59808d00 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementDetail.java +++ b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementDetail.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LegalArrangementDetail */ @JsonPropertyOrder({ @@ -499,10 +499,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LegalArrangementDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalArrangementDetail + * @throws JacksonException if the JSON string is invalid with respect to LegalArrangementDetail */ - public static LegalArrangementDetail fromJson(String jsonString) throws JsonProcessingException { + public static LegalArrangementDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalArrangementDetail.class); } @@ -511,7 +510,7 @@ public static LegalArrangementDetail fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementEntityDetail.java b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementEntityDetail.java index 5a915ed7a..67678c51e 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementEntityDetail.java +++ b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementEntityDetail.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LegalArrangementEntityDetail */ @JsonPropertyOrder({ @@ -527,11 +527,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LegalArrangementEntityDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * LegalArrangementEntityDetail */ - public static LegalArrangementEntityDetail fromJson(String jsonString) - throws JsonProcessingException { + public static LegalArrangementEntityDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalArrangementEntityDetail.class); } @@ -540,7 +539,7 @@ public static LegalArrangementEntityDetail fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementRequest.java b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementRequest.java index 46a6f3f6d..cb45775fa 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/LegalArrangementRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LegalArrangementRequest */ @JsonPropertyOrder({ @@ -145,10 +145,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LegalArrangementRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalArrangementRequest + * @throws JacksonException if the JSON string is invalid with respect to LegalArrangementRequest */ - public static LegalArrangementRequest fromJson(String jsonString) throws JsonProcessingException { + public static LegalArrangementRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalArrangementRequest.class); } @@ -157,7 +156,7 @@ public static LegalArrangementRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/MigratedAccounts.java b/src/main/java/com/adyen/model/marketpayaccount/MigratedAccounts.java index d69068d4f..e4177912d 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/MigratedAccounts.java +++ b/src/main/java/com/adyen/model/marketpayaccount/MigratedAccounts.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** MigratedAccounts */ @JsonPropertyOrder({ @@ -127,9 +127,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MigratedAccounts - * @throws JsonProcessingException if the JSON string is invalid with respect to MigratedAccounts + * @throws JacksonException if the JSON string is invalid with respect to MigratedAccounts */ - public static MigratedAccounts fromJson(String jsonString) throws JsonProcessingException { + public static MigratedAccounts fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MigratedAccounts.class); } @@ -138,7 +138,7 @@ public static MigratedAccounts fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/MigratedShareholders.java b/src/main/java/com/adyen/model/marketpayaccount/MigratedShareholders.java index 14bd63d74..3f3568e67 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/MigratedShareholders.java +++ b/src/main/java/com/adyen/model/marketpayaccount/MigratedShareholders.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** MigratedShareholders */ @JsonPropertyOrder({ @@ -127,10 +127,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MigratedShareholders - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MigratedShareholders + * @throws JacksonException if the JSON string is invalid with respect to MigratedShareholders */ - public static MigratedShareholders fromJson(String jsonString) throws JsonProcessingException { + public static MigratedShareholders fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MigratedShareholders.class); } @@ -139,7 +138,7 @@ public static MigratedShareholders fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/MigratedStores.java b/src/main/java/com/adyen/model/marketpayaccount/MigratedStores.java index 627747868..8488ec8ad 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/MigratedStores.java +++ b/src/main/java/com/adyen/model/marketpayaccount/MigratedStores.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** MigratedStores */ @JsonPropertyOrder({ @@ -193,9 +193,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MigratedStores - * @throws JsonProcessingException if the JSON string is invalid with respect to MigratedStores + * @throws JacksonException if the JSON string is invalid with respect to MigratedStores */ - public static MigratedStores fromJson(String jsonString) throws JsonProcessingException { + public static MigratedStores fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MigratedStores.class); } @@ -204,7 +204,7 @@ public static MigratedStores fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/MigrationData.java b/src/main/java/com/adyen/model/marketpayaccount/MigrationData.java index 81154761b..73f8e1c8b 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/MigrationData.java +++ b/src/main/java/com/adyen/model/marketpayaccount/MigrationData.java @@ -15,12 +15,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** MigrationData */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MigrationData - * @throws JsonProcessingException if the JSON string is invalid with respect to MigrationData + * @throws JacksonException if the JSON string is invalid with respect to MigrationData */ - public static MigrationData fromJson(String jsonString) throws JsonProcessingException { + public static MigrationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MigrationData.class); } @@ -323,7 +323,7 @@ public static MigrationData fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/PayoutMethod.java b/src/main/java/com/adyen/model/marketpayaccount/PayoutMethod.java index e6277586f..d203ef27d 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/PayoutMethod.java +++ b/src/main/java/com/adyen/model/marketpayaccount/PayoutMethod.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutMethod */ @JsonPropertyOrder({ @@ -241,9 +241,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutMethod + * @throws JacksonException if the JSON string is invalid with respect to PayoutMethod */ - public static PayoutMethod fromJson(String jsonString) throws JsonProcessingException { + public static PayoutMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutMethod.class); } @@ -252,7 +252,7 @@ public static PayoutMethod fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/PayoutScheduleResponse.java b/src/main/java/com/adyen/model/marketpayaccount/PayoutScheduleResponse.java index babeb529f..712e28404 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/PayoutScheduleResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/PayoutScheduleResponse.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutScheduleResponse */ @JsonPropertyOrder({ @@ -198,10 +198,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutScheduleResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutScheduleResponse + * @throws JacksonException if the JSON string is invalid with respect to PayoutScheduleResponse */ - public static PayoutScheduleResponse fromJson(String jsonString) throws JsonProcessingException { + public static PayoutScheduleResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleResponse.class); } @@ -210,7 +209,7 @@ public static PayoutScheduleResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/PerformVerificationRequest.java b/src/main/java/com/adyen/model/marketpayaccount/PerformVerificationRequest.java index a5e289b0c..d3a5dc891 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/PerformVerificationRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/PerformVerificationRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PerformVerificationRequest */ @JsonPropertyOrder({ @@ -202,11 +202,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PerformVerificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PerformVerificationRequest */ - public static PerformVerificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PerformVerificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PerformVerificationRequest.class); } @@ -215,7 +214,7 @@ public static PerformVerificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/PersonalDocumentData.java b/src/main/java/com/adyen/model/marketpayaccount/PersonalDocumentData.java index 64630a405..aca139da5 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/PersonalDocumentData.java +++ b/src/main/java/com/adyen/model/marketpayaccount/PersonalDocumentData.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PersonalDocumentData */ @JsonPropertyOrder({ @@ -265,10 +265,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PersonalDocumentData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PersonalDocumentData + * @throws JacksonException if the JSON string is invalid with respect to PersonalDocumentData */ - public static PersonalDocumentData fromJson(String jsonString) throws JsonProcessingException { + public static PersonalDocumentData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PersonalDocumentData.class); } @@ -277,7 +276,7 @@ public static PersonalDocumentData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ServiceError.java b/src/main/java/com/adyen/model/marketpayaccount/ServiceError.java index b3ac09fca..d7deecbd5 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ServiceError.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ServiceError.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -210,9 +210,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -221,7 +221,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ShareholderContact.java b/src/main/java/com/adyen/model/marketpayaccount/ShareholderContact.java index 8bdca4965..84806a2b6 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ShareholderContact.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ShareholderContact.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ShareholderContact */ @JsonPropertyOrder({ @@ -462,10 +462,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ShareholderContact - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShareholderContact + * @throws JacksonException if the JSON string is invalid with respect to ShareholderContact */ - public static ShareholderContact fromJson(String jsonString) throws JsonProcessingException { + public static ShareholderContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShareholderContact.class); } @@ -474,7 +473,7 @@ public static ShareholderContact fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/SignatoryContact.java b/src/main/java/com/adyen/model/marketpayaccount/SignatoryContact.java index 02d363ac9..a3a65ad8f 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/SignatoryContact.java +++ b/src/main/java/com/adyen/model/marketpayaccount/SignatoryContact.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SignatoryContact */ @JsonPropertyOrder({ @@ -382,9 +382,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SignatoryContact - * @throws JsonProcessingException if the JSON string is invalid with respect to SignatoryContact + * @throws JacksonException if the JSON string is invalid with respect to SignatoryContact */ - public static SignatoryContact fromJson(String jsonString) throws JsonProcessingException { + public static SignatoryContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SignatoryContact.class); } @@ -393,7 +393,7 @@ public static SignatoryContact fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/StoreDetail.java b/src/main/java/com/adyen/model/marketpayaccount/StoreDetail.java index 9301e34fd..27c44c19f 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/StoreDetail.java +++ b/src/main/java/com/adyen/model/marketpayaccount/StoreDetail.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** StoreDetail */ @JsonPropertyOrder({ @@ -628,9 +628,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of StoreDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetail + * @throws JacksonException if the JSON string is invalid with respect to StoreDetail */ - public static StoreDetail fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetail.class); } @@ -639,7 +639,7 @@ public static StoreDetail fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderRequest.java index 38bad8bb2..aedb8326f 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SuspendAccountHolderRequest */ @JsonPropertyOrder({SuspendAccountHolderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE}) @@ -92,11 +92,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SuspendAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SuspendAccountHolderRequest */ - public static SuspendAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static SuspendAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SuspendAccountHolderRequest.class); } @@ -105,7 +104,7 @@ public static SuspendAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderResponse.java index a13a903a9..4e0d2e12e 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/SuspendAccountHolderResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SuspendAccountHolderResponse */ @JsonPropertyOrder({ @@ -196,11 +196,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SuspendAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SuspendAccountHolderResponse */ - public static SuspendAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SuspendAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SuspendAccountHolderResponse.class); } @@ -209,7 +208,7 @@ public static SuspendAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompany.java b/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompany.java index 1904f1a99..48f98ae9f 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompany.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompany.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UltimateParentCompany */ @JsonPropertyOrder({ @@ -161,10 +161,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UltimateParentCompany - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UltimateParentCompany + * @throws JacksonException if the JSON string is invalid with respect to UltimateParentCompany */ - public static UltimateParentCompany fromJson(String jsonString) throws JsonProcessingException { + public static UltimateParentCompany fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimateParentCompany.class); } @@ -173,7 +172,7 @@ public static UltimateParentCompany fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompanyBusinessDetails.java b/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompanyBusinessDetails.java index 0f7fcf543..bbefc4d41 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompanyBusinessDetails.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UltimateParentCompanyBusinessDetails.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UltimateParentCompanyBusinessDetails */ @JsonPropertyOrder({ @@ -214,11 +214,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UltimateParentCompanyBusinessDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UltimateParentCompanyBusinessDetails */ public static UltimateParentCompanyBusinessDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimateParentCompanyBusinessDetails.class); } @@ -227,7 +227,7 @@ public static UltimateParentCompanyBusinessDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderRequest.java index c1980b612..ed85f1fa3 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UnSuspendAccountHolderRequest */ @JsonPropertyOrder({UnSuspendAccountHolderRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE}) @@ -92,11 +92,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UnSuspendAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UnSuspendAccountHolderRequest */ - public static UnSuspendAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UnSuspendAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UnSuspendAccountHolderRequest.class); } @@ -105,7 +104,7 @@ public static UnSuspendAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderResponse.java index a19de96b0..6a47779cb 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UnSuspendAccountHolderResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UnSuspendAccountHolderResponse */ @JsonPropertyOrder({ @@ -198,11 +198,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UnSuspendAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UnSuspendAccountHolderResponse */ - public static UnSuspendAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UnSuspendAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UnSuspendAccountHolderResponse.class); } @@ -211,7 +210,7 @@ public static UnSuspendAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderRequest.java index c17ed2c3f..e92b00e85 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountHolderRequest */ @JsonPropertyOrder({ @@ -349,11 +349,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateAccountHolderRequest */ - public static UpdateAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountHolderRequest.class); } @@ -362,7 +361,7 @@ public static UpdateAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderResponse.java index ef93f9eac..4f78e0489 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderResponse.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountHolderResponse */ @JsonPropertyOrder({ @@ -466,11 +466,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateAccountHolderResponse */ - public static UpdateAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountHolderResponse.class); } @@ -479,7 +478,7 @@ public static UpdateAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderStateRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderStateRequest.java index a51cae224..ef335cd54 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderStateRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountHolderStateRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountHolderStateRequest */ @JsonPropertyOrder({ @@ -235,11 +235,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountHolderStateRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateAccountHolderStateRequest */ public static UpdateAccountHolderStateRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountHolderStateRequest.class); } @@ -248,7 +248,7 @@ public static UpdateAccountHolderStateRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountRequest.java index 3381a1877..604ce5311 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountRequest.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountRequest */ @JsonPropertyOrder({ @@ -344,10 +344,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateAccountRequest + * @throws JacksonException if the JSON string is invalid with respect to UpdateAccountRequest */ - public static UpdateAccountRequest fromJson(String jsonString) throws JsonProcessingException { + public static UpdateAccountRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountRequest.class); } @@ -356,7 +355,7 @@ public static UpdateAccountRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountResponse.java b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountResponse.java index 1a9198c74..0e8a80839 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdateAccountResponse.java @@ -17,13 +17,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountResponse */ @JsonPropertyOrder({ @@ -437,10 +437,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to UpdateAccountResponse */ - public static UpdateAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static UpdateAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountResponse.class); } @@ -449,7 +448,7 @@ public static UpdateAccountResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UpdatePayoutScheduleRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UpdatePayoutScheduleRequest.java index d8211dd45..9072c34e5 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UpdatePayoutScheduleRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UpdatePayoutScheduleRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdatePayoutScheduleRequest */ @JsonPropertyOrder({ @@ -276,11 +276,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdatePayoutScheduleRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdatePayoutScheduleRequest */ - public static UpdatePayoutScheduleRequest fromJson(String jsonString) - throws JsonProcessingException { + public static UpdatePayoutScheduleRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdatePayoutScheduleRequest.class); } @@ -289,7 +288,7 @@ public static UpdatePayoutScheduleRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/UploadDocumentRequest.java b/src/main/java/com/adyen/model/marketpayaccount/UploadDocumentRequest.java index 7e97dee23..fef16a14c 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/UploadDocumentRequest.java +++ b/src/main/java/com/adyen/model/marketpayaccount/UploadDocumentRequest.java @@ -15,10 +15,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Arrays; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UploadDocumentRequest */ @JsonPropertyOrder({ @@ -129,10 +129,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UploadDocumentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UploadDocumentRequest + * @throws JacksonException if the JSON string is invalid with respect to UploadDocumentRequest */ - public static UploadDocumentRequest fromJson(String jsonString) throws JsonProcessingException { + public static UploadDocumentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UploadDocumentRequest.class); } @@ -141,7 +140,7 @@ public static UploadDocumentRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ViasAddress.java b/src/main/java/com/adyen/model/marketpayaccount/ViasAddress.java index 9c564ca9e..0149d6bb6 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ViasAddress.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ViasAddress.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasAddress */ @JsonPropertyOrder({ @@ -257,9 +257,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasAddress + * @throws JacksonException if the JSON string is invalid with respect to ViasAddress */ - public static ViasAddress fromJson(String jsonString) throws JsonProcessingException { + public static ViasAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasAddress.class); } @@ -268,7 +268,7 @@ public static ViasAddress fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ViasName.java b/src/main/java/com/adyen/model/marketpayaccount/ViasName.java index fcf7b84f3..b8b526554 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ViasName.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ViasName.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasName */ @JsonPropertyOrder({ @@ -225,9 +225,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasName - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasName + * @throws JacksonException if the JSON string is invalid with respect to ViasName */ - public static ViasName fromJson(String jsonString) throws JsonProcessingException { + public static ViasName fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasName.class); } @@ -236,7 +236,7 @@ public static ViasName fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ViasPersonalData.java b/src/main/java/com/adyen/model/marketpayaccount/ViasPersonalData.java index e923ddd4a..ba97b4fb4 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ViasPersonalData.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ViasPersonalData.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasPersonalData */ @JsonPropertyOrder({ @@ -170,9 +170,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasPersonalData - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasPersonalData + * @throws JacksonException if the JSON string is invalid with respect to ViasPersonalData */ - public static ViasPersonalData fromJson(String jsonString) throws JsonProcessingException { + public static ViasPersonalData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasPersonalData.class); } @@ -181,7 +181,7 @@ public static ViasPersonalData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayaccount/ViasPhoneNumber.java b/src/main/java/com/adyen/model/marketpayaccount/ViasPhoneNumber.java index 052904cfd..ae43f9909 100644 --- a/src/main/java/com/adyen/model/marketpayaccount/ViasPhoneNumber.java +++ b/src/main/java/com/adyen/model/marketpayaccount/ViasPhoneNumber.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasPhoneNumber */ @JsonPropertyOrder({ @@ -201,9 +201,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasPhoneNumber - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasPhoneNumber + * @throws JacksonException if the JSON string is invalid with respect to ViasPhoneNumber */ - public static ViasPhoneNumber fromJson(String jsonString) throws JsonProcessingException { + public static ViasPhoneNumber fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasPhoneNumber.class); } @@ -212,7 +212,7 @@ public static ViasPhoneNumber fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/CreateNotificationConfigurationRequest.java b/src/main/java/com/adyen/model/marketpayconfiguration/CreateNotificationConfigurationRequest.java index 9c2a139ac..b1567e28f 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/CreateNotificationConfigurationRequest.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/CreateNotificationConfigurationRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateNotificationConfigurationRequest */ @JsonPropertyOrder({CreateNotificationConfigurationRequest.JSON_PROPERTY_CONFIGURATION_DETAILS}) @@ -97,11 +97,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateNotificationConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateNotificationConfigurationRequest */ public static CreateNotificationConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateNotificationConfigurationRequest.class); } @@ -110,7 +110,7 @@ public static CreateNotificationConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/DeleteNotificationConfigurationRequest.java b/src/main/java/com/adyen/model/marketpayconfiguration/DeleteNotificationConfigurationRequest.java index faf5d2ea5..cf660448f 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/DeleteNotificationConfigurationRequest.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/DeleteNotificationConfigurationRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DeleteNotificationConfigurationRequest */ @JsonPropertyOrder({DeleteNotificationConfigurationRequest.JSON_PROPERTY_NOTIFICATION_IDS}) @@ -103,11 +103,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeleteNotificationConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DeleteNotificationConfigurationRequest */ public static DeleteNotificationConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, DeleteNotificationConfigurationRequest.class); } @@ -116,7 +116,7 @@ public static DeleteNotificationConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/ErrorFieldType.java b/src/main/java/com/adyen/model/marketpayconfiguration/ErrorFieldType.java index a5214dacf..d639e0192 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/ErrorFieldType.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/ErrorFieldType.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ErrorFieldType */ @JsonPropertyOrder({ @@ -152,9 +152,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ErrorFieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType + * @throws JacksonException if the JSON string is invalid with respect to ErrorFieldType */ - public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException { + public static ErrorFieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ErrorFieldType.class); } @@ -163,7 +163,7 @@ public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/ExchangeMessage.java b/src/main/java/com/adyen/model/marketpayconfiguration/ExchangeMessage.java index 70a44100a..b1f4839cb 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/ExchangeMessage.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/ExchangeMessage.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ExchangeMessage */ @JsonPropertyOrder({ @@ -123,9 +123,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ExchangeMessage - * @throws JsonProcessingException if the JSON string is invalid with respect to ExchangeMessage + * @throws JacksonException if the JSON string is invalid with respect to ExchangeMessage */ - public static ExchangeMessage fromJson(String jsonString) throws JsonProcessingException { + public static ExchangeMessage fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExchangeMessage.class); } @@ -134,7 +134,7 @@ public static ExchangeMessage fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/FieldType.java b/src/main/java/com/adyen/model/marketpayconfiguration/FieldType.java index 7edd01172..2c0cdd839 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/FieldType.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/FieldType.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FieldType */ @JsonPropertyOrder({ @@ -512,9 +512,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType + * @throws JacksonException if the JSON string is invalid with respect to FieldType */ - public static FieldType fromJson(String jsonString) throws JsonProcessingException { + public static FieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FieldType.class); } @@ -523,7 +523,7 @@ public static FieldType fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/GenericResponse.java b/src/main/java/com/adyen/model/marketpayconfiguration/GenericResponse.java index f8b7c3985..ead82b683 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/GenericResponse.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/GenericResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GenericResponse */ @JsonPropertyOrder({ @@ -164,9 +164,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GenericResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GenericResponse + * @throws JacksonException if the JSON string is invalid with respect to GenericResponse */ - public static GenericResponse fromJson(String jsonString) throws JsonProcessingException { + public static GenericResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GenericResponse.class); } @@ -175,7 +175,7 @@ public static GenericResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationListResponse.java b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationListResponse.java index adfb5647e..bfe1b7cd1 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationListResponse.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationListResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetNotificationConfigurationListResponse */ @JsonPropertyOrder({ @@ -208,11 +208,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetNotificationConfigurationListResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetNotificationConfigurationListResponse */ public static GetNotificationConfigurationListResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetNotificationConfigurationListResponse.class); } @@ -221,7 +221,7 @@ public static GetNotificationConfigurationListResponse fromJson(String jsonStrin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationRequest.java b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationRequest.java index 3434be6d0..c24d2d8d8 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationRequest.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetNotificationConfigurationRequest */ @JsonPropertyOrder({GetNotificationConfigurationRequest.JSON_PROPERTY_NOTIFICATION_ID}) @@ -96,11 +96,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetNotificationConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetNotificationConfigurationRequest */ public static GetNotificationConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetNotificationConfigurationRequest.class); } @@ -109,7 +109,7 @@ public static GetNotificationConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationResponse.java b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationResponse.java index dfbdf7d35..5d44dbca2 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationResponse.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/GetNotificationConfigurationResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetNotificationConfigurationResponse */ @JsonPropertyOrder({ @@ -199,11 +199,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetNotificationConfigurationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetNotificationConfigurationResponse */ public static GetNotificationConfigurationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetNotificationConfigurationResponse.class); } @@ -212,7 +212,7 @@ public static GetNotificationConfigurationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/JSON.java b/src/main/java/com/adyen/model/marketpayconfiguration/JSON.java index 9a99f41c5..5435ff028 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/JSON.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/JSON.java @@ -2,10 +2,6 @@ import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,25 +9,33 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -40,7 +44,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/NotificationConfigurationDetails.java b/src/main/java/com/adyen/model/marketpayconfiguration/NotificationConfigurationDetails.java index c56b11a4c..5e3a89360 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/NotificationConfigurationDetails.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/NotificationConfigurationDetails.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** NotificationConfigurationDetails */ @JsonPropertyOrder({ @@ -439,11 +439,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NotificationConfigurationDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NotificationConfigurationDetails */ public static NotificationConfigurationDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NotificationConfigurationDetails.class); } @@ -452,7 +452,7 @@ public static NotificationConfigurationDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/NotificationEventConfiguration.java b/src/main/java/com/adyen/model/marketpayconfiguration/NotificationEventConfiguration.java index 37107fdb1..42e3ac088 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/NotificationEventConfiguration.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/NotificationEventConfiguration.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** NotificationEventConfiguration */ @JsonPropertyOrder({ @@ -268,11 +268,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NotificationEventConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NotificationEventConfiguration */ - public static NotificationEventConfiguration fromJson(String jsonString) - throws JsonProcessingException { + public static NotificationEventConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotificationEventConfiguration.class); } @@ -281,7 +280,7 @@ public static NotificationEventConfiguration fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/ServiceError.java b/src/main/java/com/adyen/model/marketpayconfiguration/ServiceError.java index 4785faaac..85e3e1b9f 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/ServiceError.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/ServiceError.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -210,9 +210,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -221,7 +221,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationRequest.java b/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationRequest.java index 82f4e3a8f..910742f04 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationRequest.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationRequest.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TestNotificationConfigurationRequest */ @JsonPropertyOrder({ @@ -226,11 +226,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TestNotificationConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TestNotificationConfigurationRequest */ public static TestNotificationConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TestNotificationConfigurationRequest.class); } @@ -239,7 +239,7 @@ public static TestNotificationConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationResponse.java b/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationResponse.java index ffebd05a2..dc7f3959c 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationResponse.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/TestNotificationConfigurationResponse.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TestNotificationConfigurationResponse */ @JsonPropertyOrder({ @@ -445,11 +445,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TestNotificationConfigurationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TestNotificationConfigurationResponse */ public static TestNotificationConfigurationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TestNotificationConfigurationResponse.class); } @@ -458,7 +458,7 @@ public static TestNotificationConfigurationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayconfiguration/UpdateNotificationConfigurationRequest.java b/src/main/java/com/adyen/model/marketpayconfiguration/UpdateNotificationConfigurationRequest.java index b342ca088..7117bb415 100644 --- a/src/main/java/com/adyen/model/marketpayconfiguration/UpdateNotificationConfigurationRequest.java +++ b/src/main/java/com/adyen/model/marketpayconfiguration/UpdateNotificationConfigurationRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateNotificationConfigurationRequest */ @JsonPropertyOrder({UpdateNotificationConfigurationRequest.JSON_PROPERTY_CONFIGURATION_DETAILS}) @@ -97,11 +97,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateNotificationConfigurationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateNotificationConfigurationRequest */ public static UpdateNotificationConfigurationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateNotificationConfigurationRequest.class); } @@ -110,7 +110,7 @@ public static UpdateNotificationConfigurationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountDetailBalance.java b/src/main/java/com/adyen/model/marketpayfund/AccountDetailBalance.java index 88af6f3cb..f56fe7a47 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountDetailBalance.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountDetailBalance.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountDetailBalance */ @JsonPropertyOrder({ @@ -123,10 +123,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountDetailBalance - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountDetailBalance + * @throws JacksonException if the JSON string is invalid with respect to AccountDetailBalance */ - public static AccountDetailBalance fromJson(String jsonString) throws JsonProcessingException { + public static AccountDetailBalance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountDetailBalance.class); } @@ -135,7 +134,7 @@ public static AccountDetailBalance fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceRequest.java b/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceRequest.java index 062094078..72a3578c3 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderBalanceRequest */ @JsonPropertyOrder({AccountHolderBalanceRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE}) @@ -94,11 +94,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderBalanceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderBalanceRequest */ - public static AccountHolderBalanceRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderBalanceRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderBalanceRequest.class); } @@ -107,7 +106,7 @@ public static AccountHolderBalanceRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceResponse.java b/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceResponse.java index 028fc7e76..02eea927e 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountHolderBalanceResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderBalanceResponse */ @JsonPropertyOrder({ @@ -232,11 +232,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderBalanceResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderBalanceResponse */ - public static AccountHolderBalanceResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AccountHolderBalanceResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderBalanceResponse.class); } @@ -245,7 +244,7 @@ public static AccountHolderBalanceResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListRequest.java b/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListRequest.java index e1194e7ce..005c27271 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListRequest.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderTransactionListRequest */ @JsonPropertyOrder({ @@ -330,11 +330,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderTransactionListRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderTransactionListRequest */ public static AccountHolderTransactionListRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderTransactionListRequest.class); } @@ -343,7 +343,7 @@ public static AccountHolderTransactionListRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListResponse.java b/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListResponse.java index 961826b18..32afb993e 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountHolderTransactionListResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderTransactionListResponse */ @JsonPropertyOrder({ @@ -209,11 +209,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderTransactionListResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderTransactionListResponse */ public static AccountHolderTransactionListResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderTransactionListResponse.class); } @@ -222,7 +222,7 @@ public static AccountHolderTransactionListResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/AccountTransactionList.java b/src/main/java/com/adyen/model/marketpayfund/AccountTransactionList.java index f2bb82518..c89f547b0 100644 --- a/src/main/java/com/adyen/model/marketpayfund/AccountTransactionList.java +++ b/src/main/java/com/adyen/model/marketpayfund/AccountTransactionList.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountTransactionList */ @JsonPropertyOrder({ @@ -162,10 +162,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountTransactionList - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountTransactionList + * @throws JacksonException if the JSON string is invalid with respect to AccountTransactionList */ - public static AccountTransactionList fromJson(String jsonString) throws JsonProcessingException { + public static AccountTransactionList fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountTransactionList.class); } @@ -174,7 +173,7 @@ public static AccountTransactionList fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/Amount.java b/src/main/java/com/adyen/model/marketpayfund/Amount.java index efec79eea..e13ccbc13 100644 --- a/src/main/java/com/adyen/model/marketpayfund/Amount.java +++ b/src/main/java/com/adyen/model/marketpayfund/Amount.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -128,9 +128,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -139,7 +139,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/BankAccountDetail.java b/src/main/java/com/adyen/model/marketpayfund/BankAccountDetail.java index 5bca77c81..5bccc3d6b 100644 --- a/src/main/java/com/adyen/model/marketpayfund/BankAccountDetail.java +++ b/src/main/java/com/adyen/model/marketpayfund/BankAccountDetail.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BankAccountDetail */ @JsonPropertyOrder({ @@ -956,9 +956,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetail + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetail */ - public static BankAccountDetail fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetail.class); } @@ -967,7 +967,7 @@ public static BankAccountDetail fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderRequest.java index 8b591e4d2..ebf82978a 100644 --- a/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderRequest.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DebitAccountHolderRequest */ @JsonPropertyOrder({ @@ -258,11 +258,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DebitAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DebitAccountHolderRequest */ - public static DebitAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static DebitAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DebitAccountHolderRequest.class); } @@ -271,7 +270,7 @@ public static DebitAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderResponse.java index 329b242e8..86e57a74a 100644 --- a/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/DebitAccountHolderResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DebitAccountHolderResponse */ @JsonPropertyOrder({ @@ -268,11 +268,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DebitAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DebitAccountHolderResponse */ - public static DebitAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static DebitAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DebitAccountHolderResponse.class); } @@ -281,7 +280,7 @@ public static DebitAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/DetailBalance.java b/src/main/java/com/adyen/model/marketpayfund/DetailBalance.java index 19c3b9f08..98ab4475f 100644 --- a/src/main/java/com/adyen/model/marketpayfund/DetailBalance.java +++ b/src/main/java/com/adyen/model/marketpayfund/DetailBalance.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DetailBalance */ @JsonPropertyOrder({ @@ -178,9 +178,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DetailBalance - * @throws JsonProcessingException if the JSON string is invalid with respect to DetailBalance + * @throws JacksonException if the JSON string is invalid with respect to DetailBalance */ - public static DetailBalance fromJson(String jsonString) throws JsonProcessingException { + public static DetailBalance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DetailBalance.class); } @@ -189,7 +189,7 @@ public static DetailBalance fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/ErrorFieldType.java b/src/main/java/com/adyen/model/marketpayfund/ErrorFieldType.java index e22fe09e8..40b078807 100644 --- a/src/main/java/com/adyen/model/marketpayfund/ErrorFieldType.java +++ b/src/main/java/com/adyen/model/marketpayfund/ErrorFieldType.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ErrorFieldType */ @JsonPropertyOrder({ @@ -152,9 +152,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ErrorFieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType + * @throws JacksonException if the JSON string is invalid with respect to ErrorFieldType */ - public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException { + public static ErrorFieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ErrorFieldType.class); } @@ -163,7 +163,7 @@ public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/FieldType.java b/src/main/java/com/adyen/model/marketpayfund/FieldType.java index fae8e0856..74ccd60da 100644 --- a/src/main/java/com/adyen/model/marketpayfund/FieldType.java +++ b/src/main/java/com/adyen/model/marketpayfund/FieldType.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FieldType */ @JsonPropertyOrder({ @@ -512,9 +512,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType + * @throws JacksonException if the JSON string is invalid with respect to FieldType */ - public static FieldType fromJson(String jsonString) throws JsonProcessingException { + public static FieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FieldType.class); } @@ -523,7 +523,7 @@ public static FieldType fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/JSON.java b/src/main/java/com/adyen/model/marketpayfund/JSON.java index 96a3d6ecf..93134b0b6 100644 --- a/src/main/java/com/adyen/model/marketpayfund/JSON.java +++ b/src/main/java/com/adyen/model/marketpayfund/JSON.java @@ -2,10 +2,6 @@ import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,25 +9,33 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -40,7 +44,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderRequest.java b/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderRequest.java index af00f20c7..b1300bb1a 100644 --- a/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderRequest.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutAccountHolderRequest */ @JsonPropertyOrder({ @@ -366,11 +366,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutAccountHolderRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutAccountHolderRequest */ - public static PayoutAccountHolderRequest fromJson(String jsonString) - throws JsonProcessingException { + public static PayoutAccountHolderRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutAccountHolderRequest.class); } @@ -379,7 +378,7 @@ public static PayoutAccountHolderRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderResponse.java index befc2d621..23e4400a2 100644 --- a/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/PayoutAccountHolderResponse.java @@ -17,11 +17,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutAccountHolderResponse */ @JsonPropertyOrder({ @@ -298,11 +298,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PayoutAccountHolderResponse */ - public static PayoutAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static PayoutAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutAccountHolderResponse.class); } @@ -311,7 +310,7 @@ public static PayoutAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferRequest.java b/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferRequest.java index a3cdb99f0..c079a88a7 100644 --- a/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundFundsTransferRequest */ @JsonPropertyOrder({ @@ -155,11 +155,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundFundsTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundFundsTransferRequest */ - public static RefundFundsTransferRequest fromJson(String jsonString) - throws JsonProcessingException { + public static RefundFundsTransferRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundFundsTransferRequest.class); } @@ -168,7 +167,7 @@ public static RefundFundsTransferRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferResponse.java b/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferResponse.java index 855c7d36f..ba8df9de9 100644 --- a/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/RefundFundsTransferResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundFundsTransferResponse */ @JsonPropertyOrder({ @@ -255,11 +255,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundFundsTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundFundsTransferResponse */ - public static RefundFundsTransferResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RefundFundsTransferResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundFundsTransferResponse.class); } @@ -268,7 +267,7 @@ public static RefundFundsTransferResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersRequest.java b/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersRequest.java index 8c10b8b3d..c1f43abd7 100644 --- a/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundNotPaidOutTransfersRequest */ @JsonPropertyOrder({ @@ -130,11 +130,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundNotPaidOutTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundNotPaidOutTransfersRequest */ public static RefundNotPaidOutTransfersRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundNotPaidOutTransfersRequest.class); } @@ -143,7 +143,7 @@ public static RefundNotPaidOutTransfersRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersResponse.java b/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersResponse.java index af6c2c3fc..862018cbe 100644 --- a/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/RefundNotPaidOutTransfersResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundNotPaidOutTransfersResponse */ @JsonPropertyOrder({ @@ -165,11 +165,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundNotPaidOutTransfersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundNotPaidOutTransfersResponse */ public static RefundNotPaidOutTransfersResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundNotPaidOutTransfersResponse.class); } @@ -178,7 +178,7 @@ public static RefundNotPaidOutTransfersResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/ServiceError.java b/src/main/java/com/adyen/model/marketpayfund/ServiceError.java index 52fa4731e..170e85432 100644 --- a/src/main/java/com/adyen/model/marketpayfund/ServiceError.java +++ b/src/main/java/com/adyen/model/marketpayfund/ServiceError.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -210,9 +210,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -221,7 +221,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryRequest.java b/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryRequest.java index 21a93a46e..6f3330d4c 100644 --- a/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SetupBeneficiaryRequest */ @JsonPropertyOrder({ @@ -155,10 +155,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SetupBeneficiaryRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SetupBeneficiaryRequest + * @throws JacksonException if the JSON string is invalid with respect to SetupBeneficiaryRequest */ - public static SetupBeneficiaryRequest fromJson(String jsonString) throws JsonProcessingException { + public static SetupBeneficiaryRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SetupBeneficiaryRequest.class); } @@ -167,7 +166,7 @@ public static SetupBeneficiaryRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryResponse.java b/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryResponse.java index dc7862008..1951e2609 100644 --- a/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/SetupBeneficiaryResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SetupBeneficiaryResponse */ @JsonPropertyOrder({ @@ -164,11 +164,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SetupBeneficiaryResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SetupBeneficiaryResponse + * @throws JacksonException if the JSON string is invalid with respect to SetupBeneficiaryResponse */ - public static SetupBeneficiaryResponse fromJson(String jsonString) - throws JsonProcessingException { + public static SetupBeneficiaryResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SetupBeneficiaryResponse.class); } @@ -177,7 +175,7 @@ public static SetupBeneficiaryResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/Split.java b/src/main/java/com/adyen/model/marketpayfund/Split.java index e4f4d3a70..3bab95edb 100644 --- a/src/main/java/com/adyen/model/marketpayfund/Split.java +++ b/src/main/java/com/adyen/model/marketpayfund/Split.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Split */ @JsonPropertyOrder({ @@ -292,9 +292,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Split - * @throws JsonProcessingException if the JSON string is invalid with respect to Split + * @throws JacksonException if the JSON string is invalid with respect to Split */ - public static Split fromJson(String jsonString) throws JsonProcessingException { + public static Split fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Split.class); } @@ -303,7 +303,7 @@ public static Split fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/SplitAmount.java b/src/main/java/com/adyen/model/marketpayfund/SplitAmount.java index 58478bda4..0a1ee7ba1 100644 --- a/src/main/java/com/adyen/model/marketpayfund/SplitAmount.java +++ b/src/main/java/com/adyen/model/marketpayfund/SplitAmount.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SplitAmount */ @JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) @@ -127,9 +127,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SplitAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitAmount + * @throws JacksonException if the JSON string is invalid with respect to SplitAmount */ - public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { + public static SplitAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } @@ -138,7 +138,7 @@ public static SplitAmount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/Transaction.java b/src/main/java/com/adyen/model/marketpayfund/Transaction.java index 195921135..ab560b5ad 100644 --- a/src/main/java/com/adyen/model/marketpayfund/Transaction.java +++ b/src/main/java/com/adyen/model/marketpayfund/Transaction.java @@ -17,10 +17,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Transaction */ @JsonPropertyOrder({ @@ -697,9 +697,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Transaction - * @throws JsonProcessingException if the JSON string is invalid with respect to Transaction + * @throws JacksonException if the JSON string is invalid with respect to Transaction */ - public static Transaction fromJson(String jsonString) throws JsonProcessingException { + public static Transaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Transaction.class); } @@ -708,7 +708,7 @@ public static Transaction fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/TransactionListForAccount.java b/src/main/java/com/adyen/model/marketpayfund/TransactionListForAccount.java index 746198d06..596c28cba 100644 --- a/src/main/java/com/adyen/model/marketpayfund/TransactionListForAccount.java +++ b/src/main/java/com/adyen/model/marketpayfund/TransactionListForAccount.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TransactionListForAccount */ @JsonPropertyOrder({ @@ -127,11 +127,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionListForAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionListForAccount */ - public static TransactionListForAccount fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionListForAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionListForAccount.class); } @@ -140,7 +139,7 @@ public static TransactionListForAccount fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/TransferFundsRequest.java b/src/main/java/com/adyen/model/marketpayfund/TransferFundsRequest.java index be85c89e7..866abe542 100644 --- a/src/main/java/com/adyen/model/marketpayfund/TransferFundsRequest.java +++ b/src/main/java/com/adyen/model/marketpayfund/TransferFundsRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TransferFundsRequest */ @JsonPropertyOrder({ @@ -228,10 +228,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferFundsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferFundsRequest + * @throws JacksonException if the JSON string is invalid with respect to TransferFundsRequest */ - public static TransferFundsRequest fromJson(String jsonString) throws JsonProcessingException { + public static TransferFundsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferFundsRequest.class); } @@ -240,7 +239,7 @@ public static TransferFundsRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayfund/TransferFundsResponse.java b/src/main/java/com/adyen/model/marketpayfund/TransferFundsResponse.java index e33267463..ade78b5db 100644 --- a/src/main/java/com/adyen/model/marketpayfund/TransferFundsResponse.java +++ b/src/main/java/com/adyen/model/marketpayfund/TransferFundsResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TransferFundsResponse */ @JsonPropertyOrder({ @@ -196,10 +196,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferFundsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferFundsResponse + * @throws JacksonException if the JSON string is invalid with respect to TransferFundsResponse */ - public static TransferFundsResponse fromJson(String jsonString) throws JsonProcessingException { + public static TransferFundsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferFundsResponse.class); } @@ -208,7 +207,7 @@ public static TransferFundsResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/CollectInformation.java b/src/main/java/com/adyen/model/marketpayhop/CollectInformation.java index 2757722a8..702934598 100644 --- a/src/main/java/com/adyen/model/marketpayhop/CollectInformation.java +++ b/src/main/java/com/adyen/model/marketpayhop/CollectInformation.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CollectInformation */ @JsonPropertyOrder({ @@ -271,10 +271,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CollectInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CollectInformation + * @throws JacksonException if the JSON string is invalid with respect to CollectInformation */ - public static CollectInformation fromJson(String jsonString) throws JsonProcessingException { + public static CollectInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CollectInformation.class); } @@ -283,7 +282,7 @@ public static CollectInformation fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/ErrorFieldType.java b/src/main/java/com/adyen/model/marketpayhop/ErrorFieldType.java index e41755a37..18fa95eb0 100644 --- a/src/main/java/com/adyen/model/marketpayhop/ErrorFieldType.java +++ b/src/main/java/com/adyen/model/marketpayhop/ErrorFieldType.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ErrorFieldType */ @JsonPropertyOrder({ @@ -152,9 +152,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ErrorFieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType + * @throws JacksonException if the JSON string is invalid with respect to ErrorFieldType */ - public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException { + public static ErrorFieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ErrorFieldType.class); } @@ -163,7 +163,7 @@ public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/FieldType.java b/src/main/java/com/adyen/model/marketpayhop/FieldType.java index aa3b37b25..3c4347d58 100644 --- a/src/main/java/com/adyen/model/marketpayhop/FieldType.java +++ b/src/main/java/com/adyen/model/marketpayhop/FieldType.java @@ -17,9 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FieldType */ @JsonPropertyOrder({ @@ -512,9 +512,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType + * @throws JacksonException if the JSON string is invalid with respect to FieldType */ - public static FieldType fromJson(String jsonString) throws JsonProcessingException { + public static FieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FieldType.class); } @@ -523,7 +523,7 @@ public static FieldType fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlRequest.java b/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlRequest.java index f593a03e0..4c3d15af2 100644 --- a/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlRequest.java +++ b/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetOnboardingUrlRequest */ @JsonPropertyOrder({ @@ -325,10 +325,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetOnboardingUrlRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetOnboardingUrlRequest + * @throws JacksonException if the JSON string is invalid with respect to GetOnboardingUrlRequest */ - public static GetOnboardingUrlRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetOnboardingUrlRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetOnboardingUrlRequest.class); } @@ -337,7 +336,7 @@ public static GetOnboardingUrlRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlResponse.java b/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlResponse.java index 5cbbfdf13..436083c31 100644 --- a/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlResponse.java +++ b/src/main/java/com/adyen/model/marketpayhop/GetOnboardingUrlResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetOnboardingUrlResponse */ @JsonPropertyOrder({ @@ -195,11 +195,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetOnboardingUrlResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GetOnboardingUrlResponse + * @throws JacksonException if the JSON string is invalid with respect to GetOnboardingUrlResponse */ - public static GetOnboardingUrlResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetOnboardingUrlResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetOnboardingUrlResponse.class); } @@ -208,7 +206,7 @@ public static GetOnboardingUrlResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/GetPciUrlRequest.java b/src/main/java/com/adyen/model/marketpayhop/GetPciUrlRequest.java index b6ff30d70..a5417dfff 100644 --- a/src/main/java/com/adyen/model/marketpayhop/GetPciUrlRequest.java +++ b/src/main/java/com/adyen/model/marketpayhop/GetPciUrlRequest.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetPciUrlRequest */ @JsonPropertyOrder({ @@ -128,9 +128,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetPciUrlRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciUrlRequest + * @throws JacksonException if the JSON string is invalid with respect to GetPciUrlRequest */ - public static GetPciUrlRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetPciUrlRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetPciUrlRequest.class); } @@ -139,7 +139,7 @@ public static GetPciUrlRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/GetPciUrlResponse.java b/src/main/java/com/adyen/model/marketpayhop/GetPciUrlResponse.java index d163d2fd2..fd0f5cf83 100644 --- a/src/main/java/com/adyen/model/marketpayhop/GetPciUrlResponse.java +++ b/src/main/java/com/adyen/model/marketpayhop/GetPciUrlResponse.java @@ -15,11 +15,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetPciUrlResponse */ @JsonPropertyOrder({ @@ -195,9 +195,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetPciUrlResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciUrlResponse + * @throws JacksonException if the JSON string is invalid with respect to GetPciUrlResponse */ - public static GetPciUrlResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetPciUrlResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetPciUrlResponse.class); } @@ -206,7 +206,7 @@ public static GetPciUrlResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/JSON.java b/src/main/java/com/adyen/model/marketpayhop/JSON.java index 0cdc0d678..d1aaa542e 100644 --- a/src/main/java/com/adyen/model/marketpayhop/JSON.java +++ b/src/main/java/com/adyen/model/marketpayhop/JSON.java @@ -2,10 +2,6 @@ import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,25 +9,33 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -40,7 +44,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/marketpayhop/ServiceError.java b/src/main/java/com/adyen/model/marketpayhop/ServiceError.java index a73335416..b934ae628 100644 --- a/src/main/java/com/adyen/model/marketpayhop/ServiceError.java +++ b/src/main/java/com/adyen/model/marketpayhop/ServiceError.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -210,9 +210,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -221,7 +221,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpayhop/ShowPages.java b/src/main/java/com/adyen/model/marketpayhop/ShowPages.java index dba4fa4e1..26bb58c0a 100644 --- a/src/main/java/com/adyen/model/marketpayhop/ShowPages.java +++ b/src/main/java/com/adyen/model/marketpayhop/ShowPages.java @@ -15,9 +15,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ShowPages */ @JsonPropertyOrder({ @@ -378,9 +378,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ShowPages - * @throws JsonProcessingException if the JSON string is invalid with respect to ShowPages + * @throws JacksonException if the JSON string is invalid with respect to ShowPages */ - public static ShowPages fromJson(String jsonString) throws JsonProcessingException { + public static ShowPages fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShowPages.class); } @@ -389,7 +389,7 @@ public static ShowPages fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountCloseNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountCloseNotification.java index 1eba723b8..4cd1bc5e0 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountCloseNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountCloseNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountCloseNotification */ @JsonPropertyOrder({ @@ -277,11 +277,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountCloseNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountCloseNotification + * @throws JacksonException if the JSON string is invalid with respect to AccountCloseNotification */ - public static AccountCloseNotification fromJson(String jsonString) - throws JsonProcessingException { + public static AccountCloseNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountCloseNotification.class); } @@ -290,7 +288,7 @@ public static AccountCloseNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountCreateNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountCreateNotification.java index 8f8a78135..f4a5dff7e 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountCreateNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountCreateNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountCreateNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountCreateNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountCreateNotification */ - public static AccountCreateNotification fromJson(String jsonString) - throws JsonProcessingException { + public static AccountCreateNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountCreateNotification.class); } @@ -290,7 +289,7 @@ public static AccountCreateNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountEvent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountEvent.java index 6c5367eb2..404fa7b32 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountEvent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountEvent.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountEvent */ @JsonPropertyOrder({ @@ -195,9 +195,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountEvent - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountEvent + * @throws JacksonException if the JSON string is invalid with respect to AccountEvent */ - public static AccountEvent fromJson(String jsonString) throws JsonProcessingException { + public static AccountEvent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountEvent.class); } @@ -206,7 +206,7 @@ public static AccountEvent fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotification.java index bb80769ce..e3af08f0e 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountFundsBelowThresholdNotification */ @JsonPropertyOrder({ @@ -280,11 +280,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountFundsBelowThresholdNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountFundsBelowThresholdNotification */ public static AccountFundsBelowThresholdNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountFundsBelowThresholdNotification.class); } @@ -293,7 +293,7 @@ public static AccountFundsBelowThresholdNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotificationContent.java index 4a9f5c450..76b1e970c 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountFundsBelowThresholdNotificationContent.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDate; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountFundsBelowThresholdNotificationContent */ @JsonPropertyOrder({ @@ -220,11 +220,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountFundsBelowThresholdNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountFundsBelowThresholdNotificationContent */ public static AccountFundsBelowThresholdNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountFundsBelowThresholdNotificationContent.class); } @@ -234,7 +234,7 @@ public static AccountFundsBelowThresholdNotificationContent fromJson(String json * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderCreateNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderCreateNotification.java index e8192c053..c777ff39d 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderCreateNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderCreateNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderCreateNotification */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderCreateNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderCreateNotification */ public static AccountHolderCreateNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderCreateNotification.class); } @@ -291,7 +291,7 @@ public static AccountHolderCreateNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderDetails.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderDetails.java index 2c35a16e9..f3664397c 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderDetails.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderDetails.java @@ -14,13 +14,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderDetails */ @JsonPropertyOrder({ @@ -600,10 +600,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderDetails + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderDetails */ - public static AccountHolderDetails fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderDetails.class); } @@ -612,7 +611,7 @@ public static AccountHolderDetails fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotification.java index 44d0e7f88..be07bb821 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderPayoutNotification */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderPayoutNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderPayoutNotification */ public static AccountHolderPayoutNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderPayoutNotification.class); } @@ -291,7 +291,7 @@ public static AccountHolderPayoutNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotificationContent.java index dc370e4c9..407c81968 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderPayoutNotificationContent.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderPayoutNotificationContent */ @JsonPropertyOrder({ @@ -663,11 +663,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderPayoutNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderPayoutNotificationContent */ public static AccountHolderPayoutNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderPayoutNotificationContent.class); } @@ -676,7 +676,7 @@ public static AccountHolderPayoutNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatus.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatus.java index 21a3fa480..c9fdf953b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatus.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatus.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStatus */ @JsonPropertyOrder({ @@ -265,10 +265,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderStatus + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderStatus */ - public static AccountHolderStatus fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderStatus.class); } @@ -277,7 +276,7 @@ public static AccountHolderStatus fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotification.java index ce2253e9e..1a382b300 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStatusChangeNotification */ @JsonPropertyOrder({ @@ -280,11 +280,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStatusChangeNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderStatusChangeNotification */ public static AccountHolderStatusChangeNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderStatusChangeNotification.class); } @@ -293,7 +293,7 @@ public static AccountHolderStatusChangeNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotificationContent.java index 498b935ee..a89571d91 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStatusChangeNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStatusChangeNotificationContent */ @JsonPropertyOrder({ @@ -227,11 +227,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStatusChangeNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderStatusChangeNotificationContent */ public static AccountHolderStatusChangeNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountHolderStatusChangeNotificationContent.class); } @@ -241,7 +241,7 @@ public static AccountHolderStatusChangeNotificationContent fromJson(String jsonS * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotification.java index fee4258ef..04758fbff 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStoreStatusChangeNotification */ @JsonPropertyOrder({ @@ -281,11 +281,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStoreStatusChangeNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderStoreStatusChangeNotification */ public static AccountHolderStoreStatusChangeNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderStoreStatusChangeNotification.class); } @@ -294,7 +294,7 @@ public static AccountHolderStoreStatusChangeNotification fromJson(String jsonStr * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotificationContent.java index d05948cd1..8cea5389b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderStoreStatusChangeNotificationContent.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderStoreStatusChangeNotificationContent */ @JsonPropertyOrder({ @@ -372,11 +372,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderStoreStatusChangeNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderStoreStatusChangeNotificationContent */ public static AccountHolderStoreStatusChangeNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountHolderStoreStatusChangeNotificationContent.class); } @@ -386,7 +386,7 @@ public static AccountHolderStoreStatusChangeNotificationContent fromJson(String * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotification.java index 5d464c8e8..b2db34a5e 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderUpcomingDeadlineNotification */ @JsonPropertyOrder({ @@ -281,11 +281,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderUpcomingDeadlineNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderUpcomingDeadlineNotification */ public static AccountHolderUpcomingDeadlineNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderUpcomingDeadlineNotification.class); } @@ -294,7 +294,7 @@ public static AccountHolderUpcomingDeadlineNotification fromJson(String jsonStri * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotificationContent.java index e2aa72530..1f14dba33 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpcomingDeadlineNotificationContent.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderUpcomingDeadlineNotificationContent */ @JsonPropertyOrder({ @@ -267,11 +267,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderUpcomingDeadlineNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderUpcomingDeadlineNotificationContent */ public static AccountHolderUpcomingDeadlineNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountHolderUpcomingDeadlineNotificationContent.class); } @@ -281,7 +281,7 @@ public static AccountHolderUpcomingDeadlineNotificationContent fromJson(String j * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpdateNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpdateNotification.java index 52e632097..eab2d257c 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpdateNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderUpdateNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderUpdateNotification */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderUpdateNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderUpdateNotification */ public static AccountHolderUpdateNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderUpdateNotification.class); } @@ -291,7 +291,7 @@ public static AccountHolderUpdateNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotification.java index 906e9700a..a550b4ac0 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderVerificationNotification */ @JsonPropertyOrder({ @@ -280,11 +280,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderVerificationNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderVerificationNotification */ public static AccountHolderVerificationNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderVerificationNotification.class); } @@ -293,7 +293,7 @@ public static AccountHolderVerificationNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotificationContent.java index f5056d709..f173242e4 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountHolderVerificationNotificationContent.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountHolderVerificationNotificationContent */ @JsonPropertyOrder({ @@ -293,11 +293,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountHolderVerificationNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountHolderVerificationNotificationContent */ public static AccountHolderVerificationNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, AccountHolderVerificationNotificationContent.class); } @@ -307,7 +307,7 @@ public static AccountHolderVerificationNotificationContent fromJson(String jsonS * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountPayoutState.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountPayoutState.java index 702696668..7029f8e92 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountPayoutState.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountPayoutState.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountPayoutState */ @JsonPropertyOrder({ @@ -257,10 +257,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountPayoutState - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountPayoutState + * @throws JacksonException if the JSON string is invalid with respect to AccountPayoutState */ - public static AccountPayoutState fromJson(String jsonString) throws JsonProcessingException { + public static AccountPayoutState fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountPayoutState.class); } @@ -269,7 +268,7 @@ public static AccountPayoutState fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountProcessingState.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountProcessingState.java index 8c6704d3f..39dd9d9b7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountProcessingState.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountProcessingState.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountProcessingState */ @JsonPropertyOrder({ @@ -209,10 +209,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountProcessingState - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountProcessingState + * @throws JacksonException if the JSON string is invalid with respect to AccountProcessingState */ - public static AccountProcessingState fromJson(String jsonString) throws JsonProcessingException { + public static AccountProcessingState fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountProcessingState.class); } @@ -221,7 +220,7 @@ public static AccountProcessingState fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/AccountUpdateNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/AccountUpdateNotification.java index 7ae50e164..a99f150e4 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/AccountUpdateNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/AccountUpdateNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AccountUpdateNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountUpdateNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountUpdateNotification */ - public static AccountUpdateNotification fromJson(String jsonString) - throws JsonProcessingException { + public static AccountUpdateNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountUpdateNotification.class); } @@ -290,7 +289,7 @@ public static AccountUpdateNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/Amount.java b/src/main/java/com/adyen/model/marketpaywebhooks/Amount.java index a4d81a9df..2086cac48 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/Amount.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/Amount.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -127,9 +127,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -138,7 +138,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/BankAccountDetail.java b/src/main/java/com/adyen/model/marketpaywebhooks/BankAccountDetail.java index cbc815e80..9f49922ab 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/BankAccountDetail.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/BankAccountDetail.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BankAccountDetail */ @JsonPropertyOrder({ @@ -955,9 +955,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountDetail + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetail */ - public static BankAccountDetail fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetail.class); } @@ -966,7 +966,7 @@ public static BankAccountDetail fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotification.java index 6e1e66a78..bbcffc613 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BeneficiarySetupNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BeneficiarySetupNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BeneficiarySetupNotification */ - public static BeneficiarySetupNotification fromJson(String jsonString) - throws JsonProcessingException { + public static BeneficiarySetupNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BeneficiarySetupNotification.class); } @@ -290,7 +289,7 @@ public static BeneficiarySetupNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotificationContent.java index ff708175b..88e35ce9e 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/BeneficiarySetupNotificationContent.java @@ -14,12 +14,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BeneficiarySetupNotificationContent */ @JsonPropertyOrder({ @@ -309,11 +309,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BeneficiarySetupNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BeneficiarySetupNotificationContent */ public static BeneficiarySetupNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BeneficiarySetupNotificationContent.class); } @@ -322,7 +322,7 @@ public static BeneficiarySetupNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/BusinessDetails.java b/src/main/java/com/adyen/model/marketpaywebhooks/BusinessDetails.java index aa898c3e9..362e898d5 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/BusinessDetails.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/BusinessDetails.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** BusinessDetails */ @JsonPropertyOrder({ @@ -409,9 +409,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BusinessDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to BusinessDetails + * @throws JacksonException if the JSON string is invalid with respect to BusinessDetails */ - public static BusinessDetails fromJson(String jsonString) throws JsonProcessingException { + public static BusinessDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BusinessDetails.class); } @@ -420,7 +420,7 @@ public static BusinessDetails fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CloseAccountResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/CloseAccountResponse.java index e949edb04..1a12cceee 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CloseAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CloseAccountResponse.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CloseAccountResponse */ @JsonPropertyOrder({ @@ -266,10 +266,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CloseAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CloseAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to CloseAccountResponse */ - public static CloseAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static CloseAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CloseAccountResponse.class); } @@ -278,7 +277,7 @@ public static CloseAccountResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotification.java index 18b317d42..1b43a009a 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CompensateNegativeBalanceNotification */ @JsonPropertyOrder({ @@ -280,11 +280,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CompensateNegativeBalanceNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CompensateNegativeBalanceNotification */ public static CompensateNegativeBalanceNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, CompensateNegativeBalanceNotification.class); } @@ -293,7 +293,7 @@ public static CompensateNegativeBalanceNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationContent.java index 18e93a8d3..8d987aa0e 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CompensateNegativeBalanceNotificationContent */ @JsonPropertyOrder({CompensateNegativeBalanceNotificationContent.JSON_PROPERTY_RECORDS}) @@ -104,11 +104,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CompensateNegativeBalanceNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CompensateNegativeBalanceNotificationContent */ public static CompensateNegativeBalanceNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, CompensateNegativeBalanceNotificationContent.class); } @@ -118,7 +118,7 @@ public static CompensateNegativeBalanceNotificationContent fromJson(String jsonS * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationRecord.java b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationRecord.java index fe380a917..51d7edfe0 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationRecord.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CompensateNegativeBalanceNotificationRecord.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CompensateNegativeBalanceNotificationRecord */ @JsonPropertyOrder({ @@ -154,11 +154,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CompensateNegativeBalanceNotificationRecord - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CompensateNegativeBalanceNotificationRecord */ public static CompensateNegativeBalanceNotificationRecord fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, CompensateNegativeBalanceNotificationRecord.class); } @@ -168,7 +168,7 @@ public static CompensateNegativeBalanceNotificationRecord fromJson(String jsonSt * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountHolderResponse.java index c6df553ef..6bff6aa1f 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountHolderResponse.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountHolderResponse */ @JsonPropertyOrder({ @@ -493,11 +493,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CreateAccountHolderResponse */ - public static CreateAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static CreateAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountHolderResponse.class); } @@ -506,7 +505,7 @@ public static CreateAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountResponse.java index e0d5bc3a4..7f024e673 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/CreateAccountResponse.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** CreateAccountResponse */ @JsonPropertyOrder({ @@ -533,10 +533,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CreateAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateAccountResponse */ - public static CreateAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateAccountResponse.class); } @@ -545,7 +544,7 @@ public static CreateAccountResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotification.java index d026b4c8d..d072456e9 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DirectDebitInitiatedNotification */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DirectDebitInitiatedNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DirectDebitInitiatedNotification */ public static DirectDebitInitiatedNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, DirectDebitInitiatedNotification.class); } @@ -291,7 +291,7 @@ public static DirectDebitInitiatedNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotificationContent.java index cfc056bf2..848aac39d 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/DirectDebitInitiatedNotificationContent.java @@ -14,12 +14,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** DirectDebitInitiatedNotificationContent */ @JsonPropertyOrder({ @@ -302,11 +302,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DirectDebitInitiatedNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DirectDebitInitiatedNotificationContent */ public static DirectDebitInitiatedNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, DirectDebitInitiatedNotificationContent.class); } @@ -315,7 +315,7 @@ public static DirectDebitInitiatedNotificationContent fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ErrorFieldType.java b/src/main/java/com/adyen/model/marketpaywebhooks/ErrorFieldType.java index 77d1f8040..db8f63bbd 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ErrorFieldType.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ErrorFieldType.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ErrorFieldType */ @JsonPropertyOrder({ @@ -151,9 +151,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ErrorFieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to ErrorFieldType + * @throws JacksonException if the JSON string is invalid with respect to ErrorFieldType */ - public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingException { + public static ErrorFieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ErrorFieldType.class); } @@ -162,7 +162,7 @@ public static ErrorFieldType fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/FieldType.java b/src/main/java/com/adyen/model/marketpaywebhooks/FieldType.java index 55e91f5c1..7ed1a61c3 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/FieldType.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/FieldType.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FieldType */ @JsonPropertyOrder({ @@ -511,9 +511,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FieldType - * @throws JsonProcessingException if the JSON string is invalid with respect to FieldType + * @throws JacksonException if the JSON string is invalid with respect to FieldType */ - public static FieldType fromJson(String jsonString) throws JsonProcessingException { + public static FieldType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FieldType.class); } @@ -522,7 +522,7 @@ public static FieldType fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/IndividualDetails.java b/src/main/java/com/adyen/model/marketpaywebhooks/IndividualDetails.java index ffbe975fe..16badae5f 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/IndividualDetails.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/IndividualDetails.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** IndividualDetails */ @JsonPropertyOrder({ @@ -122,9 +122,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IndividualDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to IndividualDetails + * @throws JacksonException if the JSON string is invalid with respect to IndividualDetails */ - public static IndividualDetails fromJson(String jsonString) throws JsonProcessingException { + public static IndividualDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IndividualDetails.class); } @@ -133,7 +133,7 @@ public static IndividualDetails fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/JSON.java b/src/main/java/com/adyen/model/marketpaywebhooks/JSON.java index a72fb6a85..0129ddcef 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/JSON.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/JSON.java @@ -3,10 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -14,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -42,7 +46,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckResult.java index a2292333a..b8b24eb46 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckResult */ @JsonPropertyOrder({KYCCheckResult.JSON_PROPERTY_CHECKS}) @@ -101,9 +101,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckResult + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckResult */ - public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckResult.class); } @@ -112,7 +112,7 @@ public static KYCCheckResult fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckStatusData.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckStatusData.java index 67dea7f4b..5a6cb3aa3 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckStatusData.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckStatusData.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckStatusData */ @JsonPropertyOrder({ @@ -306,10 +306,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckStatusData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCCheckStatusData + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckStatusData */ - public static KYCCheckStatusData fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckStatusData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckStatusData.class); } @@ -318,7 +317,7 @@ public static KYCCheckStatusData fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckSummary.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckSummary.java index c649d5cb3..81020d662 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckSummary.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCCheckSummary.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCCheckSummary */ @JsonPropertyOrder({ @@ -127,9 +127,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCCheckSummary - * @throws JsonProcessingException if the JSON string is invalid with respect to KYCCheckSummary + * @throws JacksonException if the JSON string is invalid with respect to KYCCheckSummary */ - public static KYCCheckSummary fromJson(String jsonString) throws JsonProcessingException { + public static KYCCheckSummary fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCCheckSummary.class); } @@ -138,7 +138,7 @@ public static KYCCheckSummary fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementCheckResult.java index 58053ed4c..c03fc5129 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCLegalArrangementCheckResult */ @JsonPropertyOrder({ @@ -136,11 +136,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCLegalArrangementCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCLegalArrangementCheckResult */ - public static KYCLegalArrangementCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCLegalArrangementCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCLegalArrangementCheckResult.class); } @@ -149,7 +148,7 @@ public static KYCLegalArrangementCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementEntityCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementEntityCheckResult.java index 6297cac29..b11c82b4b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementEntityCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCLegalArrangementEntityCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCLegalArrangementEntityCheckResult */ @JsonPropertyOrder({ @@ -172,11 +172,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCLegalArrangementEntityCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCLegalArrangementEntityCheckResult */ public static KYCLegalArrangementEntityCheckResult fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCLegalArrangementEntityCheckResult.class); } @@ -185,7 +185,7 @@ public static KYCLegalArrangementEntityCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCPayoutMethodCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCPayoutMethodCheckResult.java index 070608880..28269263b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCPayoutMethodCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCPayoutMethodCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCPayoutMethodCheckResult */ @JsonPropertyOrder({ @@ -132,11 +132,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCPayoutMethodCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCPayoutMethodCheckResult */ - public static KYCPayoutMethodCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCPayoutMethodCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCPayoutMethodCheckResult.class); } @@ -145,7 +144,7 @@ public static KYCPayoutMethodCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCShareholderCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCShareholderCheckResult.java index 12813c215..0a743e184 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCShareholderCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCShareholderCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCShareholderCheckResult */ @JsonPropertyOrder({ @@ -200,11 +200,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCShareholderCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCShareholderCheckResult */ - public static KYCShareholderCheckResult fromJson(String jsonString) - throws JsonProcessingException { + public static KYCShareholderCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCShareholderCheckResult.class); } @@ -213,7 +212,7 @@ public static KYCShareholderCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCSignatoryCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCSignatoryCheckResult.java index 670b9763d..ec0f820b1 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCSignatoryCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCSignatoryCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCSignatoryCheckResult */ @JsonPropertyOrder({ @@ -132,10 +132,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCSignatoryCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCSignatoryCheckResult + * @throws JacksonException if the JSON string is invalid with respect to KYCSignatoryCheckResult */ - public static KYCSignatoryCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCSignatoryCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCSignatoryCheckResult.class); } @@ -144,7 +143,7 @@ public static KYCSignatoryCheckResult fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCUltimateParentCompanyCheckResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCUltimateParentCompanyCheckResult.java index 19d19e9c5..256a13a66 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCUltimateParentCompanyCheckResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCUltimateParentCompanyCheckResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCUltimateParentCompanyCheckResult */ @JsonPropertyOrder({ @@ -139,11 +139,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCUltimateParentCompanyCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * KYCUltimateParentCompanyCheckResult */ public static KYCUltimateParentCompanyCheckResult fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCUltimateParentCompanyCheckResult.class); } @@ -152,7 +152,7 @@ public static KYCUltimateParentCompanyCheckResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/KYCVerificationResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/KYCVerificationResult.java index 19631c9ac..c5591747c 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/KYCVerificationResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/KYCVerificationResult.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** KYCVerificationResult */ @JsonPropertyOrder({ @@ -338,10 +338,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of KYCVerificationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * KYCVerificationResult + * @throws JacksonException if the JSON string is invalid with respect to KYCVerificationResult */ - public static KYCVerificationResult fromJson(String jsonString) throws JsonProcessingException { + public static KYCVerificationResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, KYCVerificationResult.class); } @@ -350,7 +349,7 @@ public static KYCVerificationResult fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementDetail.java b/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementDetail.java index c799cc39c..5d490dfb3 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementDetail.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementDetail.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LegalArrangementDetail */ @JsonPropertyOrder({ @@ -498,10 +498,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LegalArrangementDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalArrangementDetail + * @throws JacksonException if the JSON string is invalid with respect to LegalArrangementDetail */ - public static LegalArrangementDetail fromJson(String jsonString) throws JsonProcessingException { + public static LegalArrangementDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalArrangementDetail.class); } @@ -510,7 +509,7 @@ public static LegalArrangementDetail fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementEntityDetail.java b/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementEntityDetail.java index c2e016950..4a7c93877 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementEntityDetail.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/LegalArrangementEntityDetail.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LegalArrangementEntityDetail */ @JsonPropertyOrder({ @@ -526,11 +526,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LegalArrangementEntityDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * LegalArrangementEntityDetail */ - public static LegalArrangementEntityDetail fromJson(String jsonString) - throws JsonProcessingException { + public static LegalArrangementEntityDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalArrangementEntityDetail.class); } @@ -539,7 +538,7 @@ public static LegalArrangementEntityDetail fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/LocalDate.java b/src/main/java/com/adyen/model/marketpaywebhooks/LocalDate.java index ac5eb2c18..2bc16d3ac 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/LocalDate.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/LocalDate.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** LocalDate */ @JsonPropertyOrder({LocalDate.JSON_PROPERTY_MONTH, LocalDate.JSON_PROPERTY_YEAR}) @@ -118,9 +118,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of LocalDate - * @throws JsonProcessingException if the JSON string is invalid with respect to LocalDate + * @throws JacksonException if the JSON string is invalid with respect to LocalDate */ - public static LocalDate fromJson(String jsonString) throws JsonProcessingException { + public static LocalDate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LocalDate.class); } @@ -129,7 +129,7 @@ public static LocalDate fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/Message.java b/src/main/java/com/adyen/model/marketpaywebhooks/Message.java index f6733de80..732aa71c9 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/Message.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/Message.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Message */ @JsonPropertyOrder({Message.JSON_PROPERTY_CODE, Message.JSON_PROPERTY_TEXT}) @@ -118,9 +118,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Message - * @throws JsonProcessingException if the JSON string is invalid with respect to Message + * @throws JacksonException if the JSON string is invalid with respect to Message */ - public static Message fromJson(String jsonString) throws JsonProcessingException { + public static Message fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Message.class); } @@ -129,7 +129,7 @@ public static Message fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/NotificationErrorContainer.java b/src/main/java/com/adyen/model/marketpaywebhooks/NotificationErrorContainer.java index 3ecfac3ca..a795ef038 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/NotificationErrorContainer.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/NotificationErrorContainer.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** NotificationErrorContainer */ @JsonPropertyOrder({ @@ -122,11 +122,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NotificationErrorContainer - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NotificationErrorContainer */ - public static NotificationErrorContainer fromJson(String jsonString) - throws JsonProcessingException { + public static NotificationErrorContainer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotificationErrorContainer.class); } @@ -135,7 +134,7 @@ public static NotificationErrorContainer fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/NotificationResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/NotificationResponse.java index d753b8b9d..1e6815e37 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/NotificationResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/NotificationResponse.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** NotificationResponse */ @JsonPropertyOrder({NotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -96,10 +96,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NotificationResponse + * @throws JacksonException if the JSON string is invalid with respect to NotificationResponse */ - public static NotificationResponse fromJson(String jsonString) throws JsonProcessingException { + public static NotificationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotificationResponse.class); } @@ -108,7 +107,7 @@ public static NotificationResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/OperationStatus.java b/src/main/java/com/adyen/model/marketpaywebhooks/OperationStatus.java index 1c12b2c9e..c6b2e89a7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/OperationStatus.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/OperationStatus.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** OperationStatus */ @JsonPropertyOrder({ @@ -122,9 +122,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of OperationStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to OperationStatus + * @throws JacksonException if the JSON string is invalid with respect to OperationStatus */ - public static OperationStatus fromJson(String jsonString) throws JsonProcessingException { + public static OperationStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OperationStatus.class); } @@ -133,7 +133,7 @@ public static OperationStatus fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotification.java index c3e2a1096..19e85b931 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PaymentFailureNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentFailureNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentFailureNotification */ - public static PaymentFailureNotification fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentFailureNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentFailureNotification.class); } @@ -290,7 +289,7 @@ public static PaymentFailureNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotificationContent.java index 62088604e..fd8fe4838 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/PaymentFailureNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PaymentFailureNotificationContent */ @JsonPropertyOrder({ @@ -274,11 +274,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentFailureNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentFailureNotificationContent */ public static PaymentFailureNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentFailureNotificationContent.class); } @@ -287,7 +287,7 @@ public static PaymentFailureNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/PayoutMethod.java b/src/main/java/com/adyen/model/marketpaywebhooks/PayoutMethod.java index 32426c1b7..6b8a0346a 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/PayoutMethod.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/PayoutMethod.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutMethod */ @JsonPropertyOrder({ @@ -240,9 +240,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutMethod - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutMethod + * @throws JacksonException if the JSON string is invalid with respect to PayoutMethod */ - public static PayoutMethod fromJson(String jsonString) throws JsonProcessingException { + public static PayoutMethod fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutMethod.class); } @@ -251,7 +251,7 @@ public static PayoutMethod fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/PayoutScheduleResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/PayoutScheduleResponse.java index 295fcf144..4da06cf77 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/PayoutScheduleResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/PayoutScheduleResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PayoutScheduleResponse */ @JsonPropertyOrder({ @@ -196,10 +196,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PayoutScheduleResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PayoutScheduleResponse + * @throws JacksonException if the JSON string is invalid with respect to PayoutScheduleResponse */ - public static PayoutScheduleResponse fromJson(String jsonString) throws JsonProcessingException { + public static PayoutScheduleResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutScheduleResponse.class); } @@ -208,7 +207,7 @@ public static PayoutScheduleResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/PersonalDocumentData.java b/src/main/java/com/adyen/model/marketpaywebhooks/PersonalDocumentData.java index 53251c783..a36c37db2 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/PersonalDocumentData.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/PersonalDocumentData.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** PersonalDocumentData */ @JsonPropertyOrder({ @@ -264,10 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PersonalDocumentData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PersonalDocumentData + * @throws JacksonException if the JSON string is invalid with respect to PersonalDocumentData */ - public static PersonalDocumentData fromJson(String jsonString) throws JsonProcessingException { + public static PersonalDocumentData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PersonalDocumentData.class); } @@ -276,7 +275,7 @@ public static PersonalDocumentData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotification.java index 18afc5a8b..f4225517b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundFundsTransferNotification */ @JsonPropertyOrder({ @@ -278,11 +278,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundFundsTransferNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundFundsTransferNotification */ public static RefundFundsTransferNotification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundFundsTransferNotification.class); } @@ -291,7 +291,7 @@ public static RefundFundsTransferNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotificationContent.java index b5e153078..3e892d1ee 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/RefundFundsTransferNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundFundsTransferNotificationContent */ @JsonPropertyOrder({ @@ -226,11 +226,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundFundsTransferNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RefundFundsTransferNotificationContent */ public static RefundFundsTransferNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundFundsTransferNotificationContent.class); } @@ -239,7 +239,7 @@ public static RefundFundsTransferNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/RefundResult.java b/src/main/java/com/adyen/model/marketpaywebhooks/RefundResult.java index 7043df8f9..3c3026dfe 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/RefundResult.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/RefundResult.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** RefundResult */ @JsonPropertyOrder({ @@ -154,9 +154,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RefundResult - * @throws JsonProcessingException if the JSON string is invalid with respect to RefundResult + * @throws JacksonException if the JSON string is invalid with respect to RefundResult */ - public static RefundResult fromJson(String jsonString) throws JsonProcessingException { + public static RefundResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundResult.class); } @@ -165,7 +165,7 @@ public static RefundResult fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotification.java index 2f15646e9..bf056be10 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ReportAvailableNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReportAvailableNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReportAvailableNotification */ - public static ReportAvailableNotification fromJson(String jsonString) - throws JsonProcessingException { + public static ReportAvailableNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReportAvailableNotification.class); } @@ -290,7 +289,7 @@ public static ReportAvailableNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotificationContent.java index 1c332d149..0aa2bf262 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ReportAvailableNotificationContent.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ReportAvailableNotificationContent */ @JsonPropertyOrder({ @@ -211,11 +211,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReportAvailableNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReportAvailableNotificationContent */ public static ReportAvailableNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ReportAvailableNotificationContent.class); } @@ -224,7 +224,7 @@ public static ReportAvailableNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotification.java index 985726b3e..6b37bd2a7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ScheduledRefundsNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ScheduledRefundsNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduledRefundsNotification */ - public static ScheduledRefundsNotification fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduledRefundsNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduledRefundsNotification.class); } @@ -290,7 +289,7 @@ public static ScheduledRefundsNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotificationContent.java index 67077d26d..5e5e0d1cd 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ScheduledRefundsNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ScheduledRefundsNotificationContent */ @JsonPropertyOrder({ @@ -230,11 +230,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ScheduledRefundsNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduledRefundsNotificationContent */ public static ScheduledRefundsNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduledRefundsNotificationContent.class); } @@ -243,7 +243,7 @@ public static ScheduledRefundsNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ShareholderContact.java b/src/main/java/com/adyen/model/marketpaywebhooks/ShareholderContact.java index 1147dda0c..0f3680e86 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ShareholderContact.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ShareholderContact.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ShareholderContact */ @JsonPropertyOrder({ @@ -461,10 +461,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ShareholderContact - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShareholderContact + * @throws JacksonException if the JSON string is invalid with respect to ShareholderContact */ - public static ShareholderContact fromJson(String jsonString) throws JsonProcessingException { + public static ShareholderContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShareholderContact.class); } @@ -473,7 +472,7 @@ public static ShareholderContact fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/SignatoryContact.java b/src/main/java/com/adyen/model/marketpaywebhooks/SignatoryContact.java index 77ce3756b..aa3bd116a 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/SignatoryContact.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/SignatoryContact.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SignatoryContact */ @JsonPropertyOrder({ @@ -381,9 +381,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SignatoryContact - * @throws JsonProcessingException if the JSON string is invalid with respect to SignatoryContact + * @throws JacksonException if the JSON string is invalid with respect to SignatoryContact */ - public static SignatoryContact fromJson(String jsonString) throws JsonProcessingException { + public static SignatoryContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SignatoryContact.class); } @@ -392,7 +392,7 @@ public static SignatoryContact fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/Split.java b/src/main/java/com/adyen/model/marketpaywebhooks/Split.java index 2e2e347e0..085ec5c01 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/Split.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/Split.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Split */ @JsonPropertyOrder({ @@ -291,9 +291,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Split - * @throws JsonProcessingException if the JSON string is invalid with respect to Split + * @throws JacksonException if the JSON string is invalid with respect to Split */ - public static Split fromJson(String jsonString) throws JsonProcessingException { + public static Split fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Split.class); } @@ -302,7 +302,7 @@ public static Split fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/SplitAmount.java b/src/main/java/com/adyen/model/marketpaywebhooks/SplitAmount.java index a3d5b874f..9f0d059e7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/SplitAmount.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/SplitAmount.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** SplitAmount */ @JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) @@ -126,9 +126,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SplitAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitAmount + * @throws JacksonException if the JSON string is invalid with respect to SplitAmount */ - public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { + public static SplitAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } @@ -137,7 +137,7 @@ public static SplitAmount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/StoreDetail.java b/src/main/java/com/adyen/model/marketpaywebhooks/StoreDetail.java index 2ee540e81..22a2ac651 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/StoreDetail.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/StoreDetail.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** StoreDetail */ @JsonPropertyOrder({ @@ -627,9 +627,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of StoreDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetail + * @throws JacksonException if the JSON string is invalid with respect to StoreDetail */ - public static StoreDetail fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetail.class); } @@ -638,7 +638,7 @@ public static StoreDetail fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/Transaction.java b/src/main/java/com/adyen/model/marketpaywebhooks/Transaction.java index b8a71dbf7..f3e3887c8 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/Transaction.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/Transaction.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Transaction */ @JsonPropertyOrder({ @@ -696,9 +696,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Transaction - * @throws JsonProcessingException if the JSON string is invalid with respect to Transaction + * @throws JacksonException if the JSON string is invalid with respect to Transaction */ - public static Transaction fromJson(String jsonString) throws JsonProcessingException { + public static Transaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Transaction.class); } @@ -707,7 +707,7 @@ public static Transaction fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotification.java b/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotification.java index 707640eac..8b43101f7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotification.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotification.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TransferFundsNotification */ @JsonPropertyOrder({ @@ -277,11 +277,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferFundsNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferFundsNotification */ - public static TransferFundsNotification fromJson(String jsonString) - throws JsonProcessingException { + public static TransferFundsNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferFundsNotification.class); } @@ -290,7 +289,7 @@ public static TransferFundsNotification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotificationContent.java b/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotificationContent.java index 833b442e2..f55d8c71a 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotificationContent.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/TransferFundsNotificationContent.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** TransferFundsNotificationContent */ @JsonPropertyOrder({ @@ -290,11 +290,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferFundsNotificationContent - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferFundsNotificationContent */ public static TransferFundsNotificationContent fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferFundsNotificationContent.class); } @@ -303,7 +303,7 @@ public static TransferFundsNotificationContent fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompany.java b/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompany.java index ab44d0656..8a08e3832 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompany.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompany.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UltimateParentCompany */ @JsonPropertyOrder({ @@ -160,10 +160,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UltimateParentCompany - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UltimateParentCompany + * @throws JacksonException if the JSON string is invalid with respect to UltimateParentCompany */ - public static UltimateParentCompany fromJson(String jsonString) throws JsonProcessingException { + public static UltimateParentCompany fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimateParentCompany.class); } @@ -172,7 +171,7 @@ public static UltimateParentCompany fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompanyBusinessDetails.java b/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompanyBusinessDetails.java index ba2be4786..27fb8c663 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompanyBusinessDetails.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/UltimateParentCompanyBusinessDetails.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UltimateParentCompanyBusinessDetails */ @JsonPropertyOrder({ @@ -213,11 +213,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UltimateParentCompanyBusinessDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UltimateParentCompanyBusinessDetails */ public static UltimateParentCompanyBusinessDetails fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimateParentCompanyBusinessDetails.class); } @@ -226,7 +226,7 @@ public static UltimateParentCompanyBusinessDetails fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountHolderResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountHolderResponse.java index b704a3657..1fb2eb2f7 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountHolderResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountHolderResponse.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountHolderResponse */ @JsonPropertyOrder({ @@ -465,11 +465,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountHolderResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UpdateAccountHolderResponse */ - public static UpdateAccountHolderResponse fromJson(String jsonString) - throws JsonProcessingException { + public static UpdateAccountHolderResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountHolderResponse.class); } @@ -478,7 +477,7 @@ public static UpdateAccountHolderResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountResponse.java b/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountResponse.java index f393d9aff..105725d29 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountResponse.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/UpdateAccountResponse.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** UpdateAccountResponse */ @JsonPropertyOrder({ @@ -436,10 +436,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UpdateAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * UpdateAccountResponse + * @throws JacksonException if the JSON string is invalid with respect to UpdateAccountResponse */ - public static UpdateAccountResponse fromJson(String jsonString) throws JsonProcessingException { + public static UpdateAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UpdateAccountResponse.class); } @@ -448,7 +447,7 @@ public static UpdateAccountResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ViasAddress.java b/src/main/java/com/adyen/model/marketpaywebhooks/ViasAddress.java index 1f9cc95fa..b85d9e5a0 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ViasAddress.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ViasAddress.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasAddress */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasAddress + * @throws JacksonException if the JSON string is invalid with respect to ViasAddress */ - public static ViasAddress fromJson(String jsonString) throws JsonProcessingException { + public static ViasAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasAddress.class); } @@ -267,7 +267,7 @@ public static ViasAddress fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ViasName.java b/src/main/java/com/adyen/model/marketpaywebhooks/ViasName.java index 321ce8eab..36af43957 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ViasName.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ViasName.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasName */ @JsonPropertyOrder({ @@ -224,9 +224,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasName - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasName + * @throws JacksonException if the JSON string is invalid with respect to ViasName */ - public static ViasName fromJson(String jsonString) throws JsonProcessingException { + public static ViasName fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasName.class); } @@ -235,7 +235,7 @@ public static ViasName fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ViasPersonalData.java b/src/main/java/com/adyen/model/marketpaywebhooks/ViasPersonalData.java index 62dea262e..acb124e30 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ViasPersonalData.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ViasPersonalData.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasPersonalData */ @JsonPropertyOrder({ @@ -169,9 +169,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasPersonalData - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasPersonalData + * @throws JacksonException if the JSON string is invalid with respect to ViasPersonalData */ - public static ViasPersonalData fromJson(String jsonString) throws JsonProcessingException { + public static ViasPersonalData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasPersonalData.class); } @@ -180,7 +180,7 @@ public static ViasPersonalData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/marketpaywebhooks/ViasPhoneNumber.java b/src/main/java/com/adyen/model/marketpaywebhooks/ViasPhoneNumber.java index e51891947..ce9416d5b 100644 --- a/src/main/java/com/adyen/model/marketpaywebhooks/ViasPhoneNumber.java +++ b/src/main/java/com/adyen/model/marketpaywebhooks/ViasPhoneNumber.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ViasPhoneNumber */ @JsonPropertyOrder({ @@ -200,9 +200,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ViasPhoneNumber - * @throws JsonProcessingException if the JSON string is invalid with respect to ViasPhoneNumber + * @throws JacksonException if the JSON string is invalid with respect to ViasPhoneNumber */ - public static ViasPhoneNumber fromJson(String jsonString) throws JsonProcessingException { + public static ViasPhoneNumber fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ViasPhoneNumber.class); } @@ -211,7 +211,7 @@ public static ViasPhoneNumber fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java index ed1518219..f2d7eb9a7 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java index 2673db028..60c99db52 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java index db92ccaea..62ab9a386 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationData.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** NegativeBalanceCompensationWarningNotificationData */ @JsonPropertyOrder({ @@ -433,11 +433,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NegativeBalanceCompensationWarningNotificationData */ public static NegativeBalanceCompensationWarningNotificationData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, NegativeBalanceCompensationWarningNotificationData.class); } @@ -447,7 +447,7 @@ public static NegativeBalanceCompensationWarningNotificationData fromJson(String * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java index 2add2d2cf..074e76d2d 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/NegativeBalanceCompensationWarningNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NegativeBalanceCompensationWarningNotificationRequest */ @JsonPropertyOrder({ @@ -279,11 +279,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NegativeBalanceCompensationWarningNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NegativeBalanceCompensationWarningNotificationRequest */ public static NegativeBalanceCompensationWarningNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, NegativeBalanceCompensationWarningNotificationRequest.class); } @@ -293,7 +293,7 @@ public static NegativeBalanceCompensationWarningNotificationRequest fromJson(Str * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java index 5e4717104..3b9948634 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java index 1cb999a8c..d50548f16 100644 --- a/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/negativebalancewarningwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/ACHAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/ACHAccountIdentifier.java index c67a1a87a..e72ef2c3d 100644 --- a/src/main/java/com/adyen/model/openbanking/ACHAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/ACHAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ACHAccountIdentifier */ @JsonPropertyOrder({ @@ -150,10 +150,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ACHAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ACHAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to ACHAccountIdentifier */ - public static ACHAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static ACHAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ACHAccountIdentifier.class); } @@ -162,7 +161,7 @@ public static ACHAccountIdentifier fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/AccountIdentifiers.java b/src/main/java/com/adyen/model/openbanking/AccountIdentifiers.java index 2700b3d90..b937bf2c3 100644 --- a/src/main/java/com/adyen/model/openbanking/AccountIdentifiers.java +++ b/src/main/java/com/adyen/model/openbanking/AccountIdentifiers.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountIdentifiers */ @JsonPropertyOrder({ @@ -297,10 +297,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountIdentifiers - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountIdentifiers + * @throws JacksonException if the JSON string is invalid with respect to AccountIdentifiers */ - public static AccountIdentifiers fromJson(String jsonString) throws JsonProcessingException { + public static AccountIdentifiers fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountIdentifiers.class); } @@ -309,7 +308,7 @@ public static AccountIdentifiers fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/AccountParty.java b/src/main/java/com/adyen/model/openbanking/AccountParty.java index 6b80d8e37..1cc68360c 100644 --- a/src/main/java/com/adyen/model/openbanking/AccountParty.java +++ b/src/main/java/com/adyen/model/openbanking/AccountParty.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountParty */ @JsonPropertyOrder({AccountParty.JSON_PROPERTY_IDENTITY, AccountParty.JSON_PROPERTY_ROLE}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountParty - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountParty + * @throws JacksonException if the JSON string is invalid with respect to AccountParty */ - public static AccountParty fromJson(String jsonString) throws JsonProcessingException { + public static AccountParty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountParty.class); } @@ -149,7 +149,7 @@ public static AccountParty fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/AccountVerificationReportResponse.java b/src/main/java/com/adyen/model/openbanking/AccountVerificationReportResponse.java index e54f42ab9..b26b24780 100644 --- a/src/main/java/com/adyen/model/openbanking/AccountVerificationReportResponse.java +++ b/src/main/java/com/adyen/model/openbanking/AccountVerificationReportResponse.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AccountVerificationReportResponse */ @JsonPropertyOrder({ @@ -194,11 +194,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountVerificationReportResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountVerificationReportResponse */ public static AccountVerificationReportResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountVerificationReportResponse.class); } @@ -207,7 +207,7 @@ public static AccountVerificationReportResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesRequest.java b/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesRequest.java index 363bc5eef..08fc9e127 100644 --- a/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesRequest.java +++ b/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesRequest.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountVerificationRoutesRequest */ @JsonPropertyOrder({ @@ -269,11 +269,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountVerificationRoutesRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountVerificationRoutesRequest */ public static AccountVerificationRoutesRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountVerificationRoutesRequest.class); } @@ -282,7 +282,7 @@ public static AccountVerificationRoutesRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesResponse.java b/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesResponse.java index e9ceb1bdb..9adf5ce24 100644 --- a/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesResponse.java +++ b/src/main/java/com/adyen/model/openbanking/AccountVerificationRoutesResponse.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** AccountVerificationRoutesResponse */ @JsonPropertyOrder({AccountVerificationRoutesResponse.JSON_PROPERTY_ROUTES}) @@ -118,11 +118,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AccountVerificationRoutesResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AccountVerificationRoutesResponse */ public static AccountVerificationRoutesResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountVerificationRoutesResponse.class); } @@ -131,7 +131,7 @@ public static AccountVerificationRoutesResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/BACSAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/BACSAccountIdentifier.java index 6ca8125df..2edd1569e 100644 --- a/src/main/java/com/adyen/model/openbanking/BACSAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/BACSAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BACSAccountIdentifier */ @JsonPropertyOrder({ @@ -144,10 +144,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BACSAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BACSAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to BACSAccountIdentifier */ - public static BACSAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static BACSAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BACSAccountIdentifier.class); } @@ -156,7 +155,7 @@ public static BACSAccountIdentifier fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/BSBAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/BSBAccountIdentifier.java index 1bae744fe..645a04451 100644 --- a/src/main/java/com/adyen/model/openbanking/BSBAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/BSBAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BSBAccountIdentifier */ @JsonPropertyOrder({ @@ -141,10 +141,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BSBAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BSBAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to BSBAccountIdentifier */ - public static BSBAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static BSBAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BSBAccountIdentifier.class); } @@ -153,7 +152,7 @@ public static BSBAccountIdentifier fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/openbanking/DefaultErrorResponseEntity.java index 5fe47da8b..7653d538f 100644 --- a/src/main/java/com/adyen/model/openbanking/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/openbanking/DefaultErrorResponseEntity.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -391,11 +391,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -404,7 +403,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/EFTAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/EFTAccountIdentifier.java index 8bce9695c..4219e63b5 100644 --- a/src/main/java/com/adyen/model/openbanking/EFTAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/EFTAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** EFTAccountIdentifier */ @JsonPropertyOrder({ @@ -183,10 +183,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of EFTAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EFTAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to EFTAccountIdentifier */ - public static EFTAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static EFTAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EFTAccountIdentifier.class); } @@ -195,7 +194,7 @@ public static EFTAccountIdentifier fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/IBANAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/IBANAccountIdentifier.java index 414f9cb09..66d732682 100644 --- a/src/main/java/com/adyen/model/openbanking/IBANAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/IBANAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** IBANAccountIdentifier */ @JsonPropertyOrder({ @@ -195,10 +195,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IBANAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IBANAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to IBANAccountIdentifier */ - public static IBANAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static IBANAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IBANAccountIdentifier.class); } @@ -207,7 +206,7 @@ public static IBANAccountIdentifier fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/Identity.java b/src/main/java/com/adyen/model/openbanking/Identity.java index 0eb6af200..25931e71b 100644 --- a/src/main/java/com/adyen/model/openbanking/Identity.java +++ b/src/main/java/com/adyen/model/openbanking/Identity.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Identity */ @JsonPropertyOrder({Identity.JSON_PROPERTY_FULL_LEGAL_NAME, Identity.JSON_PROPERTY_NAME}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Identity - * @throws JsonProcessingException if the JSON string is invalid with respect to Identity + * @throws JacksonException if the JSON string is invalid with respect to Identity */ - public static Identity fromJson(String jsonString) throws JsonProcessingException { + public static Identity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Identity.class); } @@ -149,7 +149,7 @@ public static Identity fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/InvalidField.java b/src/main/java/com/adyen/model/openbanking/InvalidField.java index b0169fabf..19d43f061 100644 --- a/src/main/java/com/adyen/model/openbanking/InvalidField.java +++ b/src/main/java/com/adyen/model/openbanking/InvalidField.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -191,7 +191,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/JSON.java b/src/main/java/com/adyen/model/openbanking/JSON.java index 735c239b1..140a61002 100644 --- a/src/main/java/com/adyen/model/openbanking/JSON.java +++ b/src/main/java/com/adyen/model/openbanking/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/openbanking/Provider.java b/src/main/java/com/adyen/model/openbanking/Provider.java index 8bd508ed9..1bc62484a 100644 --- a/src/main/java/com/adyen/model/openbanking/Provider.java +++ b/src/main/java/com/adyen/model/openbanking/Provider.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Provider */ @JsonPropertyOrder({Provider.JSON_PROPERTY_LOGO_U_R_L, Provider.JSON_PROPERTY_NAME}) @@ -147,9 +147,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Provider - * @throws JsonProcessingException if the JSON string is invalid with respect to Provider + * @throws JacksonException if the JSON string is invalid with respect to Provider */ - public static Provider fromJson(String jsonString) throws JsonProcessingException { + public static Provider fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Provider.class); } @@ -158,7 +158,7 @@ public static Provider fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/RIXAccountIdentifier.java b/src/main/java/com/adyen/model/openbanking/RIXAccountIdentifier.java index b6ec37ad4..d3ada4453 100644 --- a/src/main/java/com/adyen/model/openbanking/RIXAccountIdentifier.java +++ b/src/main/java/com/adyen/model/openbanking/RIXAccountIdentifier.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RIXAccountIdentifier */ @JsonPropertyOrder({ @@ -141,10 +141,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RIXAccountIdentifier - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RIXAccountIdentifier + * @throws JacksonException if the JSON string is invalid with respect to RIXAccountIdentifier */ - public static RIXAccountIdentifier fromJson(String jsonString) throws JsonProcessingException { + public static RIXAccountIdentifier fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RIXAccountIdentifier.class); } @@ -153,7 +152,7 @@ public static RIXAccountIdentifier fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/Route.java b/src/main/java/com/adyen/model/openbanking/Route.java index ac7d47864..d9b7724ea 100644 --- a/src/main/java/com/adyen/model/openbanking/Route.java +++ b/src/main/java/com/adyen/model/openbanking/Route.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Route */ @JsonPropertyOrder({Route.JSON_PROPERTY_LINK, Route.JSON_PROPERTY_PROVIDER}) @@ -143,9 +143,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Route - * @throws JsonProcessingException if the JSON string is invalid with respect to Route + * @throws JacksonException if the JSON string is invalid with respect to Route */ - public static Route fromJson(String jsonString) throws JsonProcessingException { + public static Route fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Route.class); } @@ -154,7 +154,7 @@ public static Route fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/openbanking/VerifiedAccount.java b/src/main/java/com/adyen/model/openbanking/VerifiedAccount.java index 493d0384a..5103c4c06 100644 --- a/src/main/java/com/adyen/model/openbanking/VerifiedAccount.java +++ b/src/main/java/com/adyen/model/openbanking/VerifiedAccount.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** VerifiedAccount */ @JsonPropertyOrder({ @@ -399,9 +399,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of VerifiedAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to VerifiedAccount + * @throws JacksonException if the JSON string is invalid with respect to VerifiedAccount */ - public static VerifiedAccount fromJson(String jsonString) throws JsonProcessingException { + public static VerifiedAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VerifiedAccount.class); } @@ -410,7 +410,7 @@ public static VerifiedAccount fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AccountInfo.java b/src/main/java/com/adyen/model/payment/AccountInfo.java index c718f5182..1b261e047 100644 --- a/src/main/java/com/adyen/model/payment/AccountInfo.java +++ b/src/main/java/com/adyen/model/payment/AccountInfo.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AccountInfo */ @JsonPropertyOrder({ @@ -1480,9 +1480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AccountInfo + * @throws JacksonException if the JSON string is invalid with respect to AccountInfo */ - public static AccountInfo fromJson(String jsonString) throws JsonProcessingException { + public static AccountInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountInfo.class); } @@ -1491,7 +1491,7 @@ public static AccountInfo fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AcctInfo.java b/src/main/java/com/adyen/model/payment/AcctInfo.java index 6708ccc51..c1aec6e0a 100644 --- a/src/main/java/com/adyen/model/payment/AcctInfo.java +++ b/src/main/java/com/adyen/model/payment/AcctInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AcctInfo */ @JsonPropertyOrder({ @@ -1425,9 +1425,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AcctInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to AcctInfo + * @throws JacksonException if the JSON string is invalid with respect to AcctInfo */ - public static AcctInfo fromJson(String jsonString) throws JsonProcessingException { + public static AcctInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AcctInfo.class); } @@ -1436,7 +1436,7 @@ public static AcctInfo fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java index 59964379a..38c592497 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/AdditionalData3DSecure.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalData3DSecure */ @JsonPropertyOrder({ @@ -638,10 +638,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalData3DSecure + * @throws JacksonException if the JSON string is invalid with respect to AdditionalData3DSecure */ - public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalData3DSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalData3DSecure.class); } @@ -650,7 +649,7 @@ public static AdditionalData3DSecure fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java index f6d2684eb..e68e25464 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataAirline.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataAirline */ @JsonPropertyOrder({ @@ -2026,10 +2026,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataAirline - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataAirline + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataAirline */ - public static AdditionalDataAirline fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataAirline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataAirline.class); } @@ -2038,7 +2037,7 @@ public static AdditionalDataAirline fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java index 40ed98055..963fd5d38 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCarRental.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataCarRental */ @JsonPropertyOrder({ @@ -1595,10 +1595,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataCarRental - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCarRental + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataCarRental */ - public static AdditionalDataCarRental fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataCarRental fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataCarRental.class); } @@ -1607,7 +1606,7 @@ public static AdditionalDataCarRental fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java index 368db75e4..9d345d031 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataCommon.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalDataCommon */ @JsonPropertyOrder({ @@ -1765,10 +1765,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataCommon + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataCommon */ - public static AdditionalDataCommon fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataCommon fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataCommon.class); } @@ -1777,7 +1776,7 @@ public static AdditionalDataCommon fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java index 0b8af6d71..5eb06ce14 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLevel23.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataLevel23 */ @JsonPropertyOrder({ @@ -1465,10 +1465,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataLevel23 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLevel23 + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataLevel23 */ - public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataLevel23 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataLevel23.class); } @@ -1477,7 +1476,7 @@ public static AdditionalDataLevel23 fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java index be055b6c2..2b23fe5e1 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataLodging.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataLodging */ @JsonPropertyOrder({ @@ -1207,10 +1207,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataLodging - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataLodging + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataLodging */ - public static AdditionalDataLodging fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataLodging fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataLodging.class); } @@ -1219,7 +1218,7 @@ public static AdditionalDataLodging fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java index 539887193..3fb0ed721 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataModifications.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataModifications */ @JsonPropertyOrder({ @@ -182,11 +182,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataModifications - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataModifications */ - public static AdditionalDataModifications fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataModifications fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataModifications.class); } @@ -195,7 +194,7 @@ public static AdditionalDataModifications fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java index 06e8099eb..e089fef8d 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpenInvoice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataOpenInvoice */ @JsonPropertyOrder({ @@ -1320,11 +1320,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataOpenInvoice - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataOpenInvoice */ - public static AdditionalDataOpenInvoice fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataOpenInvoice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpenInvoice.class); } @@ -1333,7 +1332,7 @@ public static AdditionalDataOpenInvoice fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java index ce5aace2a..7769559ae 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataOpi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataOpi */ @JsonPropertyOrder({AdditionalDataOpi.JSON_PROPERTY_OPI_INCLUDE_TRANS_TOKEN}) @@ -182,9 +182,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to AdditionalDataOpi + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataOpi */ - public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataOpi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataOpi.class); } @@ -193,7 +193,7 @@ public static AdditionalDataOpi fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java index c409a3513..869607905 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRatepay.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRatepay */ @JsonPropertyOrder({ @@ -549,10 +549,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRatepay - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRatepay + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRatepay */ - public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRatepay fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRatepay.class); } @@ -561,7 +560,7 @@ public static AdditionalDataRatepay fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java index f95289f5c..3f73db3bd 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRetry.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRetry */ @JsonPropertyOrder({ @@ -355,10 +355,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRetry - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRetry + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRetry */ - public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRetry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRetry.class); } @@ -367,7 +366,7 @@ public static AdditionalDataRetry fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java index b5cd2bb41..dcb5543e3 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRisk.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRisk */ @JsonPropertyOrder({ @@ -1461,10 +1461,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRisk - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataRisk + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataRisk */ - public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataRisk fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRisk.class); } @@ -1473,7 +1472,7 @@ public static AdditionalDataRisk fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java index 0a0d995b1..312a94d09 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataRiskStandalone.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataRiskStandalone */ @JsonPropertyOrder({ @@ -936,11 +936,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataRiskStandalone - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataRiskStandalone */ - public static AdditionalDataRiskStandalone fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataRiskStandalone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataRiskStandalone.class); } @@ -949,7 +948,7 @@ public static AdditionalDataRiskStandalone fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java index 5e5049e0c..1667208dd 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataSubMerchant.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataSubMerchant */ @JsonPropertyOrder({ @@ -986,11 +986,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataSubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataSubMerchant */ - public static AdditionalDataSubMerchant fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalDataSubMerchant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataSubMerchant.class); } @@ -999,7 +998,7 @@ public static AdditionalDataSubMerchant fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java index 5842eb94f..71e2fc017 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataTemporaryServices.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataTemporaryServices */ @JsonPropertyOrder({ @@ -725,11 +725,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataTemporaryServices - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalDataTemporaryServices */ public static AdditionalDataTemporaryServices fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataTemporaryServices.class); } @@ -738,7 +738,7 @@ public static AdditionalDataTemporaryServices fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java index 645480c97..13efb0e05 100644 --- a/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java +++ b/src/main/java/com/adyen/model/payment/AdditionalDataWallets.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AdditionalDataWallets */ @JsonPropertyOrder({ @@ -419,10 +419,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalDataWallets - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AdditionalDataWallets + * @throws JacksonException if the JSON string is invalid with respect to AdditionalDataWallets */ - public static AdditionalDataWallets fromJson(String jsonString) throws JsonProcessingException { + public static AdditionalDataWallets fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalDataWallets.class); } @@ -431,7 +430,7 @@ public static AdditionalDataWallets fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Address.java b/src/main/java/com/adyen/model/payment/Address.java index 14113eb5f..7af85f386 100644 --- a/src/main/java/com/adyen/model/payment/Address.java +++ b/src/main/java/com/adyen/model/payment/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -456,7 +456,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java index 151e87c2f..fe758ec2d 100644 --- a/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java +++ b/src/main/java/com/adyen/model/payment/AdjustAuthorisationRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** AdjustAuthorisationRequest */ @JsonPropertyOrder({ @@ -744,11 +744,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdjustAuthorisationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdjustAuthorisationRequest */ - public static AdjustAuthorisationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AdjustAuthorisationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdjustAuthorisationRequest.class); } @@ -757,7 +756,7 @@ public static AdjustAuthorisationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Amount.java b/src/main/java/com/adyen/model/payment/Amount.java index 043e64318..5516ff692 100644 --- a/src/main/java/com/adyen/model/payment/Amount.java +++ b/src/main/java/com/adyen/model/payment/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ApplicationInfo.java b/src/main/java/com/adyen/model/payment/ApplicationInfo.java index 00005981d..95c82d3a7 100644 --- a/src/main/java/com/adyen/model/payment/ApplicationInfo.java +++ b/src/main/java/com/adyen/model/payment/ApplicationInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ApplicationInfo */ @JsonPropertyOrder({ @@ -418,9 +418,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApplicationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to ApplicationInfo + * @throws JacksonException if the JSON string is invalid with respect to ApplicationInfo */ - public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingException { + public static ApplicationInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApplicationInfo.class); } @@ -429,7 +429,7 @@ public static ApplicationInfo fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java index 0978af286..1140a9552 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AuthenticationResultRequest */ @JsonPropertyOrder({ @@ -212,11 +212,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthenticationResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationResultRequest */ - public static AuthenticationResultRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationResultRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationResultRequest.class); } @@ -225,7 +224,7 @@ public static AuthenticationResultRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java index e54c19816..777304616 100644 --- a/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java +++ b/src/main/java/com/adyen/model/payment/AuthenticationResultResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AuthenticationResultResponse */ @JsonPropertyOrder({ @@ -210,11 +210,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthenticationResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationResultResponse */ - public static AuthenticationResultResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationResultResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationResultResponse.class); } @@ -223,7 +222,7 @@ public static AuthenticationResultResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/BankAccount.java b/src/main/java/com/adyen/model/payment/BankAccount.java index 31f66d3b7..7ee9e9924 100644 --- a/src/main/java/com/adyen/model/payment/BankAccount.java +++ b/src/main/java/com/adyen/model/payment/BankAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccount */ @JsonPropertyOrder({ @@ -631,9 +631,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccount + * @throws JacksonException if the JSON string is invalid with respect to BankAccount */ - public static BankAccount fromJson(String jsonString) throws JsonProcessingException { + public static BankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } @@ -642,7 +642,7 @@ public static BankAccount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/BrowserInfo.java b/src/main/java/com/adyen/model/payment/BrowserInfo.java index c06d2fa07..6c3aa7b37 100644 --- a/src/main/java/com/adyen/model/payment/BrowserInfo.java +++ b/src/main/java/com/adyen/model/payment/BrowserInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BrowserInfo */ @JsonPropertyOrder({ @@ -592,9 +592,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BrowserInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to BrowserInfo + * @throws JacksonException if the JSON string is invalid with respect to BrowserInfo */ - public static BrowserInfo fromJson(String jsonString) throws JsonProcessingException { + public static BrowserInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BrowserInfo.class); } @@ -603,7 +603,7 @@ public static BrowserInfo fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java index e13cbd3ac..aac5ef6c1 100644 --- a/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelOrRefundRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** CancelOrRefundRequest */ @JsonPropertyOrder({ @@ -616,10 +616,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CancelOrRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelOrRefundRequest + * @throws JacksonException if the JSON string is invalid with respect to CancelOrRefundRequest */ - public static CancelOrRefundRequest fromJson(String jsonString) throws JsonProcessingException { + public static CancelOrRefundRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CancelOrRefundRequest.class); } @@ -628,7 +627,7 @@ public static CancelOrRefundRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/CancelRequest.java b/src/main/java/com/adyen/model/payment/CancelRequest.java index db89b575e..9c432bb9e 100644 --- a/src/main/java/com/adyen/model/payment/CancelRequest.java +++ b/src/main/java/com/adyen/model/payment/CancelRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** CancelRequest */ @JsonPropertyOrder({ @@ -684,9 +684,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CancelRequest + * @throws JacksonException if the JSON string is invalid with respect to CancelRequest */ - public static CancelRequest fromJson(String jsonString) throws JsonProcessingException { + public static CancelRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CancelRequest.class); } @@ -695,7 +695,7 @@ public static CancelRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/CaptureRequest.java b/src/main/java/com/adyen/model/payment/CaptureRequest.java index 531dbce8d..e472a3c08 100644 --- a/src/main/java/com/adyen/model/payment/CaptureRequest.java +++ b/src/main/java/com/adyen/model/payment/CaptureRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** CaptureRequest */ @JsonPropertyOrder({ @@ -734,9 +734,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CaptureRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to CaptureRequest + * @throws JacksonException if the JSON string is invalid with respect to CaptureRequest */ - public static CaptureRequest fromJson(String jsonString) throws JsonProcessingException { + public static CaptureRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CaptureRequest.class); } @@ -745,7 +745,7 @@ public static CaptureRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Card.java b/src/main/java/com/adyen/model/payment/Card.java index aa24b02cf..7bbc981ec 100644 --- a/src/main/java/com/adyen/model/payment/Card.java +++ b/src/main/java/com/adyen/model/payment/Card.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -572,9 +572,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -583,7 +583,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/CommonField.java b/src/main/java/com/adyen/model/payment/CommonField.java index 1811e352e..0a9f6689c 100644 --- a/src/main/java/com/adyen/model/payment/CommonField.java +++ b/src/main/java/com/adyen/model/payment/CommonField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CommonField */ @JsonPropertyOrder({CommonField.JSON_PROPERTY_NAME, CommonField.JSON_PROPERTY_VERSION}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CommonField - * @throws JsonProcessingException if the JSON string is invalid with respect to CommonField + * @throws JacksonException if the JSON string is invalid with respect to CommonField */ - public static CommonField fromJson(String jsonString) throws JsonProcessingException { + public static CommonField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CommonField.class); } @@ -216,7 +216,7 @@ public static CommonField fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java index 5b87e423e..6c67e5bf6 100644 --- a/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java +++ b/src/main/java/com/adyen/model/payment/DeviceRenderOptions.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DeviceRenderOptions */ @JsonPropertyOrder({ @@ -318,10 +318,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DeviceRenderOptions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DeviceRenderOptions + * @throws JacksonException if the JSON string is invalid with respect to DeviceRenderOptions */ - public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcessingException { + public static DeviceRenderOptions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeviceRenderOptions.class); } @@ -330,7 +329,7 @@ public static DeviceRenderOptions fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/DonationRequest.java b/src/main/java/com/adyen/model/payment/DonationRequest.java index b4ed5f39b..195010f05 100644 --- a/src/main/java/com/adyen/model/payment/DonationRequest.java +++ b/src/main/java/com/adyen/model/payment/DonationRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DonationRequest */ @JsonPropertyOrder({ @@ -427,9 +427,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DonationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DonationRequest + * @throws JacksonException if the JSON string is invalid with respect to DonationRequest */ - public static DonationRequest fromJson(String jsonString) throws JsonProcessingException { + public static DonationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DonationRequest.class); } @@ -438,7 +438,7 @@ public static DonationRequest fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ExternalPlatform.java b/src/main/java/com/adyen/model/payment/ExternalPlatform.java index 696ce89c8..f6408be0b 100644 --- a/src/main/java/com/adyen/model/payment/ExternalPlatform.java +++ b/src/main/java/com/adyen/model/payment/ExternalPlatform.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ExternalPlatform */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExternalPlatform - * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalPlatform + * @throws JacksonException if the JSON string is invalid with respect to ExternalPlatform */ - public static ExternalPlatform fromJson(String jsonString) throws JsonProcessingException { + public static ExternalPlatform fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalPlatform.class); } @@ -267,7 +267,7 @@ public static ExternalPlatform fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ForexQuote.java b/src/main/java/com/adyen/model/payment/ForexQuote.java index 7d1eb1c48..6eb5b028a 100644 --- a/src/main/java/com/adyen/model/payment/ForexQuote.java +++ b/src/main/java/com/adyen/model/payment/ForexQuote.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** ForexQuote */ @JsonPropertyOrder({ @@ -713,9 +713,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ForexQuote - * @throws JsonProcessingException if the JSON string is invalid with respect to ForexQuote + * @throws JacksonException if the JSON string is invalid with respect to ForexQuote */ - public static ForexQuote fromJson(String jsonString) throws JsonProcessingException { + public static ForexQuote fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ForexQuote.class); } @@ -724,7 +724,7 @@ public static ForexQuote fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResult.java b/src/main/java/com/adyen/model/payment/FraudCheckResult.java index bc98a8075..c32f2e3b4 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FraudCheckResult */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResult + * @throws JacksonException if the JSON string is invalid with respect to FraudCheckResult */ - public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } @@ -267,7 +267,7 @@ public static FraudCheckResult fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java index 78763d5bd..54ed70afd 100644 --- a/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payment/FraudCheckResultWrapper.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FraudCheckResultWrapper */ @JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) @@ -159,10 +159,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FraudCheckResultWrapper + * @throws JacksonException if the JSON string is invalid with respect to FraudCheckResultWrapper */ - public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { + public static FraudCheckResultWrapper fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } @@ -171,7 +170,7 @@ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/FraudResult.java b/src/main/java/com/adyen/model/payment/FraudResult.java index 44d3a1394..aa97eef0c 100644 --- a/src/main/java/com/adyen/model/payment/FraudResult.java +++ b/src/main/java/com/adyen/model/payment/FraudResult.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** FraudResult */ @JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudResult + * @throws JacksonException if the JSON string is invalid with respect to FraudResult */ - public static FraudResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } @@ -226,7 +226,7 @@ public static FraudResult fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/FundDestination.java b/src/main/java/com/adyen/model/payment/FundDestination.java index aa0b486e0..117e60747 100644 --- a/src/main/java/com/adyen/model/payment/FundDestination.java +++ b/src/main/java/com/adyen/model/payment/FundDestination.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** FundDestination */ @JsonPropertyOrder({ @@ -711,9 +711,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundDestination - * @throws JsonProcessingException if the JSON string is invalid with respect to FundDestination + * @throws JacksonException if the JSON string is invalid with respect to FundDestination */ - public static FundDestination fromJson(String jsonString) throws JsonProcessingException { + public static FundDestination fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundDestination.class); } @@ -722,7 +722,7 @@ public static FundDestination fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/FundSource.java b/src/main/java/com/adyen/model/payment/FundSource.java index fbf2d458a..ae14f60c2 100644 --- a/src/main/java/com/adyen/model/payment/FundSource.java +++ b/src/main/java/com/adyen/model/payment/FundSource.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** FundSource */ @JsonPropertyOrder({ @@ -425,9 +425,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundSource - * @throws JsonProcessingException if the JSON string is invalid with respect to FundSource + * @throws JacksonException if the JSON string is invalid with respect to FundSource */ - public static FundSource fromJson(String jsonString) throws JsonProcessingException { + public static FundSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundSource.class); } @@ -436,7 +436,7 @@ public static FundSource fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Installments.java b/src/main/java/com/adyen/model/payment/Installments.java index 57150f88c..c862b4769 100644 --- a/src/main/java/com/adyen/model/payment/Installments.java +++ b/src/main/java/com/adyen/model/payment/Installments.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Installments */ @JsonPropertyOrder({ @@ -377,9 +377,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Installments - * @throws JsonProcessingException if the JSON string is invalid with respect to Installments + * @throws JacksonException if the JSON string is invalid with respect to Installments */ - public static Installments fromJson(String jsonString) throws JsonProcessingException { + public static Installments fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Installments.class); } @@ -388,7 +388,7 @@ public static Installments fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/JSON.java b/src/main/java/com/adyen/model/payment/JSON.java index da7759d75..e76a276d0 100644 --- a/src/main/java/com/adyen/model/payment/JSON.java +++ b/src/main/java/com/adyen/model/payment/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/payment/Mandate.java b/src/main/java/com/adyen/model/payment/Mandate.java index 5caa3a317..b84e71725 100644 --- a/src/main/java/com/adyen/model/payment/Mandate.java +++ b/src/main/java/com/adyen/model/payment/Mandate.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Mandate */ @JsonPropertyOrder({ @@ -767,9 +767,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Mandate - * @throws JsonProcessingException if the JSON string is invalid with respect to Mandate + * @throws JacksonException if the JSON string is invalid with respect to Mandate */ - public static Mandate fromJson(String jsonString) throws JsonProcessingException { + public static Mandate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Mandate.class); } @@ -778,7 +778,7 @@ public static Mandate fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/MerchantDevice.java b/src/main/java/com/adyen/model/payment/MerchantDevice.java index 7a4dc2fce..934e01098 100644 --- a/src/main/java/com/adyen/model/payment/MerchantDevice.java +++ b/src/main/java/com/adyen/model/payment/MerchantDevice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantDevice */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantDevice + * @throws JacksonException if the JSON string is invalid with respect to MerchantDevice */ - public static MerchantDevice fromJson(String jsonString) throws JsonProcessingException { + public static MerchantDevice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantDevice.class); } @@ -267,7 +267,7 @@ public static MerchantDevice fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java index b1ab6c735..a4352d475 100644 --- a/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java +++ b/src/main/java/com/adyen/model/payment/MerchantRiskIndicator.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantRiskIndicator */ @JsonPropertyOrder({ @@ -1009,10 +1009,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantRiskIndicator - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantRiskIndicator + * @throws JacksonException if the JSON string is invalid with respect to MerchantRiskIndicator */ - public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProcessingException { + public static MerchantRiskIndicator fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantRiskIndicator.class); } @@ -1021,7 +1020,7 @@ public static MerchantRiskIndicator fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ModificationResult.java b/src/main/java/com/adyen/model/payment/ModificationResult.java index 68681decf..757188991 100644 --- a/src/main/java/com/adyen/model/payment/ModificationResult.java +++ b/src/main/java/com/adyen/model/payment/ModificationResult.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ModificationResult */ @JsonPropertyOrder({ @@ -350,10 +350,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModificationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ModificationResult + * @throws JacksonException if the JSON string is invalid with respect to ModificationResult */ - public static ModificationResult fromJson(String jsonString) throws JsonProcessingException { + public static ModificationResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModificationResult.class); } @@ -362,7 +361,7 @@ public static ModificationResult fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Name.java b/src/main/java/com/adyen/model/payment/Name.java index 665216f5b..5bd1e0586 100644 --- a/src/main/java/com/adyen/model/payment/Name.java +++ b/src/main/java/com/adyen/model/payment/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest.java b/src/main/java/com/adyen/model/payment/PaymentRequest.java index 6c3c58133..0454a544e 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRequest */ @JsonPropertyOrder({ @@ -3648,9 +3648,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentRequest */ - public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } @@ -3659,7 +3659,7 @@ public static PaymentRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java index 30491c173..0bca14130 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRequest3d */ @JsonPropertyOrder({ @@ -3099,9 +3099,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRequest3d - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest3d + * @throws JacksonException if the JSON string is invalid with respect to PaymentRequest3d */ - public static PaymentRequest3d fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRequest3d fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRequest3d.class); } @@ -3110,7 +3110,7 @@ public static PaymentRequest3d fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java index cca1d6da2..02afd9bc1 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.*; @@ -28,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentRequest3ds2 */ @JsonPropertyOrder({ @@ -3096,10 +3096,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRequest3ds2 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentRequest3ds2 + * @throws JacksonException if the JSON string is invalid with respect to PaymentRequest3ds2 */ - public static PaymentRequest3ds2 fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRequest3ds2 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRequest3ds2.class); } @@ -3108,7 +3107,7 @@ public static PaymentRequest3ds2 fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/PaymentResult.java b/src/main/java/com/adyen/model/payment/PaymentResult.java index acee5a9e4..bf99d65b0 100644 --- a/src/main/java/com/adyen/model/payment/PaymentResult.java +++ b/src/main/java/com/adyen/model/payment/PaymentResult.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentResult */ @JsonPropertyOrder({ @@ -1013,9 +1013,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentResult - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentResult + * @throws JacksonException if the JSON string is invalid with respect to PaymentResult */ - public static PaymentResult fromJson(String jsonString) throws JsonProcessingException { + public static PaymentResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentResult.class); } @@ -1024,7 +1024,7 @@ public static PaymentResult fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Phone.java b/src/main/java/com/adyen/model/payment/Phone.java index 245cd2b96..609cb399c 100644 --- a/src/main/java/com/adyen/model/payment/Phone.java +++ b/src/main/java/com/adyen/model/payment/Phone.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Phone */ @JsonPropertyOrder({Phone.JSON_PROPERTY_CC, Phone.JSON_PROPERTY_SUBSCRIBER}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Phone - * @throws JsonProcessingException if the JSON string is invalid with respect to Phone + * @throws JacksonException if the JSON string is invalid with respect to Phone */ - public static Phone fromJson(String jsonString) throws JsonProcessingException { + public static Phone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Phone.class); } @@ -216,7 +216,7 @@ public static Phone fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java index 98ed3f8d0..e57a68b2e 100644 --- a/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java +++ b/src/main/java/com/adyen/model/payment/PlatformChargebackLogic.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PlatformChargebackLogic */ @JsonPropertyOrder({ @@ -339,10 +339,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PlatformChargebackLogic - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PlatformChargebackLogic + * @throws JacksonException if the JSON string is invalid with respect to PlatformChargebackLogic */ - public static PlatformChargebackLogic fromJson(String jsonString) throws JsonProcessingException { + public static PlatformChargebackLogic fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformChargebackLogic.class); } @@ -351,7 +350,7 @@ public static PlatformChargebackLogic fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Recurring.java b/src/main/java/com/adyen/model/payment/Recurring.java index 32b459c99..5e2c3060f 100644 --- a/src/main/java/com/adyen/model/payment/Recurring.java +++ b/src/main/java/com/adyen/model/payment/Recurring.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Recurring */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Recurring - * @throws JsonProcessingException if the JSON string is invalid with respect to Recurring + * @throws JacksonException if the JSON string is invalid with respect to Recurring */ - public static Recurring fromJson(String jsonString) throws JsonProcessingException { + public static Recurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Recurring.class); } @@ -554,7 +554,7 @@ public static Recurring fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/RefundRequest.java b/src/main/java/com/adyen/model/payment/RefundRequest.java index 3c1f2cbe0..02ae4a8f4 100644 --- a/src/main/java/com/adyen/model/payment/RefundRequest.java +++ b/src/main/java/com/adyen/model/payment/RefundRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** RefundRequest */ @JsonPropertyOrder({ @@ -734,9 +734,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to RefundRequest + * @throws JacksonException if the JSON string is invalid with respect to RefundRequest */ - public static RefundRequest fromJson(String jsonString) throws JsonProcessingException { + public static RefundRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RefundRequest.class); } @@ -745,7 +745,7 @@ public static RefundRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java index 3c6550ccf..ed2032a2d 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalData3DSecure.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } @@ -423,7 +422,7 @@ public static ResponseAdditionalData3DSecure fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java index 21c96aba3..17106234c 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataBillingAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ @@ -474,11 +474,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataBillingAddress */ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } @@ -487,7 +487,7 @@ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java index 3741428f5..cf47cb71d 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCard */ @JsonPropertyOrder({ @@ -709,11 +709,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } @@ -722,7 +721,7 @@ public static ResponseAdditionalDataCard fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java index 4171dcccd..62d0a1147 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ @@ -4167,11 +4167,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } @@ -4180,7 +4179,7 @@ public static ResponseAdditionalDataCommon fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java index 95c874ba6..dc2a734ca 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataDomesticError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ @@ -239,11 +239,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataDomesticError */ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } @@ -252,7 +252,7 @@ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java index 2da4eb4ac..4035beef9 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataInstallments.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ @@ -945,11 +945,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataInstallments */ public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } @@ -958,7 +958,7 @@ public static ResponseAdditionalDataInstallments fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java index e0f25ba7c..3e49a61d2 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataNetworkTokens.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ @@ -289,11 +289,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataNetworkTokens */ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } @@ -302,7 +302,7 @@ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java index e06d0bfb6..c53d36fcc 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataOpi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataOpi */ @JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) @@ -182,11 +182,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } @@ -195,7 +194,7 @@ public static ResponseAdditionalDataOpi fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java index 6841c87ea..57de389b4 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSepa.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ @@ -382,11 +382,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } @@ -395,7 +394,7 @@ public static ResponseAdditionalDataSepa fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSwish.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSwish.java index 7bdb264bb..ae8ed1516 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSwish.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataSwish.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSwish */ @JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS}) @@ -159,11 +159,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSwish - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSwish */ - public static ResponseAdditionalDataSwish fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSwish fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class); } @@ -172,7 +171,7 @@ public static ResponseAdditionalDataSwish fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java index 770975a4d..ba21a90fc 100644 --- a/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java +++ b/src/main/java/com/adyen/model/payment/SDKEphemPubKey.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SDKEphemPubKey */ @JsonPropertyOrder({ @@ -304,9 +304,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SDKEphemPubKey - * @throws JsonProcessingException if the JSON string is invalid with respect to SDKEphemPubKey + * @throws JacksonException if the JSON string is invalid with respect to SDKEphemPubKey */ - public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingException { + public static SDKEphemPubKey fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SDKEphemPubKey.class); } @@ -315,7 +315,7 @@ public static SDKEphemPubKey fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java index c383e8fff..adcd2dce8 100644 --- a/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java +++ b/src/main/java/com/adyen/model/payment/SecureRemoteCommerceCheckoutData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SecureRemoteCommerceCheckoutData */ @JsonPropertyOrder({ @@ -499,11 +499,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SecureRemoteCommerceCheckoutData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SecureRemoteCommerceCheckoutData */ public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, SecureRemoteCommerceCheckoutData.class); } @@ -512,7 +512,7 @@ public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ServiceError.java b/src/main/java/com/adyen/model/payment/ServiceError.java index 189d1277f..86bc81bce 100644 --- a/src/main/java/com/adyen/model/payment/ServiceError.java +++ b/src/main/java/com/adyen/model/payment/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java index 6abafb6e4..7a50f1bc6 100644 --- a/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java +++ b/src/main/java/com/adyen/model/payment/ShopperInteractionDevice.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ShopperInteractionDevice */ @JsonPropertyOrder({ @@ -256,11 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ShopperInteractionDevice - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ShopperInteractionDevice + * @throws JacksonException if the JSON string is invalid with respect to ShopperInteractionDevice */ - public static ShopperInteractionDevice fromJson(String jsonString) - throws JsonProcessingException { + public static ShopperInteractionDevice fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ShopperInteractionDevice.class); } @@ -269,7 +267,7 @@ public static ShopperInteractionDevice fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/Split.java b/src/main/java/com/adyen/model/payment/Split.java index c901ad7e8..0a473492a 100644 --- a/src/main/java/com/adyen/model/payment/Split.java +++ b/src/main/java/com/adyen/model/payment/Split.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Split */ @JsonPropertyOrder({ @@ -673,9 +673,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Split - * @throws JsonProcessingException if the JSON string is invalid with respect to Split + * @throws JacksonException if the JSON string is invalid with respect to Split */ - public static Split fromJson(String jsonString) throws JsonProcessingException { + public static Split fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Split.class); } @@ -684,7 +684,7 @@ public static Split fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/SplitAmount.java b/src/main/java/com/adyen/model/payment/SplitAmount.java index b0a7c30d4..c49487780 100644 --- a/src/main/java/com/adyen/model/payment/SplitAmount.java +++ b/src/main/java/com/adyen/model/payment/SplitAmount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SplitAmount */ @JsonPropertyOrder({SplitAmount.JSON_PROPERTY_CURRENCY, SplitAmount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SplitAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to SplitAmount + * @throws JacksonException if the JSON string is invalid with respect to SplitAmount */ - public static SplitAmount fromJson(String jsonString) throws JsonProcessingException { + public static SplitAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SplitAmount.class); } @@ -234,7 +234,7 @@ public static SplitAmount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/SubMerchant.java b/src/main/java/com/adyen/model/payment/SubMerchant.java index 5039d7a67..c92ca75e1 100644 --- a/src/main/java/com/adyen/model/payment/SubMerchant.java +++ b/src/main/java/com/adyen/model/payment/SubMerchant.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SubMerchant */ @JsonPropertyOrder({ @@ -395,9 +395,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubMerchant - * @throws JsonProcessingException if the JSON string is invalid with respect to SubMerchant + * @throws JacksonException if the JSON string is invalid with respect to SubMerchant */ - public static SubMerchant fromJson(String jsonString) throws JsonProcessingException { + public static SubMerchant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubMerchant.class); } @@ -406,7 +406,7 @@ public static SubMerchant fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java index 229a89398..308f1b356 100644 --- a/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java +++ b/src/main/java/com/adyen/model/payment/TechnicalCancelRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** TechnicalCancelRequest */ @JsonPropertyOrder({ @@ -683,10 +683,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TechnicalCancelRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TechnicalCancelRequest + * @throws JacksonException if the JSON string is invalid with respect to TechnicalCancelRequest */ - public static TechnicalCancelRequest fromJson(String jsonString) throws JsonProcessingException { + public static TechnicalCancelRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TechnicalCancelRequest.class); } @@ -695,7 +694,7 @@ public static TechnicalCancelRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java index 14540df00..c2c8222f4 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS1Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS1Result.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDS1Result */ @JsonPropertyOrder({ @@ -427,9 +427,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS1Result - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS1Result + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS1Result */ - public static ThreeDS1Result fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS1Result fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS1Result.class); } @@ -438,7 +438,7 @@ public static ThreeDS1Result fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java index 1979f68fa..7143f9e8c 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2RequestData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDS2RequestData */ @JsonPropertyOrder({ @@ -2741,10 +2741,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2RequestData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2RequestData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2RequestData */ - public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2RequestData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2RequestData.class); } @@ -2753,7 +2752,7 @@ public static ThreeDS2RequestData fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java index 6fd19cc68..c2597c5a2 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2Result.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2Result.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDS2Result */ @JsonPropertyOrder({ @@ -1074,9 +1074,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2Result - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDS2Result + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2Result */ - public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2Result fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2Result.class); } @@ -1085,7 +1085,7 @@ public static ThreeDS2Result fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java index 1dde560de..dfdc35b00 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDS2ResultRequest */ @JsonPropertyOrder({ @@ -211,10 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2ResultRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResultRequest + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2ResultRequest */ - public static ThreeDS2ResultRequest fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2ResultRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultRequest.class); } @@ -223,7 +222,7 @@ public static ThreeDS2ResultRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java index ac96758f1..014a3f38c 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java +++ b/src/main/java/com/adyen/model/payment/ThreeDS2ResultResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDS2ResultResponse */ @JsonPropertyOrder({ThreeDS2ResultResponse.JSON_PROPERTY_THREE_D_S2_RESULT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDS2ResultResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThreeDS2ResultResponse + * @throws JacksonException if the JSON string is invalid with respect to ThreeDS2ResultResponse */ - public static ThreeDS2ResultResponse fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDS2ResultResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDS2ResultResponse.class); } @@ -170,7 +169,7 @@ public static ThreeDS2ResultResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java index 2136d1921..aa073725f 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorAuthenticationInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSRequestorAuthenticationInfo */ @JsonPropertyOrder({ @@ -395,11 +395,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSRequestorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSRequestorAuthenticationInfo */ public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorAuthenticationInfo.class); } @@ -408,7 +408,7 @@ public static ThreeDSRequestorAuthenticationInfo fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java index d7a3176b4..019046f08 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSRequestorPriorAuthenticationInfo.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSRequestorPriorAuthenticationInfo */ @JsonPropertyOrder({ @@ -442,11 +442,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSRequestorPriorAuthenticationInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ThreeDSRequestorPriorAuthenticationInfo */ public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class); } @@ -455,7 +455,7 @@ public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java index 8b06fee16..01cca47ce 100644 --- a/src/main/java/com/adyen/model/payment/ThreeDSecureData.java +++ b/src/main/java/com/adyen/model/payment/ThreeDSecureData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ThreeDSecureData */ @JsonPropertyOrder({ @@ -941,9 +941,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSecureData - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecureData + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecureData */ - public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecureData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecureData.class); } @@ -952,7 +952,7 @@ public static ThreeDSecureData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java index 84776945e..45b20639b 100644 --- a/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java +++ b/src/main/java/com/adyen/model/payment/VoidPendingRefundRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** VoidPendingRefundRequest */ @JsonPropertyOrder({ @@ -742,11 +742,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of VoidPendingRefundRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * VoidPendingRefundRequest + * @throws JacksonException if the JSON string is invalid with respect to VoidPendingRefundRequest */ - public static VoidPendingRefundRequest fromJson(String jsonString) - throws JsonProcessingException { + public static VoidPendingRefundRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, VoidPendingRefundRequest.class); } @@ -755,7 +753,7 @@ public static VoidPendingRefundRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java index 5e5e6419a..83b822fff 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BoardingTokenRequest */ @JsonPropertyOrder({BoardingTokenRequest.JSON_PROPERTY_BOARDING_REQUEST_TOKEN}) @@ -161,10 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BoardingTokenRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BoardingTokenRequest + * @throws JacksonException if the JSON string is invalid with respect to BoardingTokenRequest */ - public static BoardingTokenRequest fromJson(String jsonString) throws JsonProcessingException { + public static BoardingTokenRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BoardingTokenRequest.class); } @@ -173,7 +172,7 @@ public static BoardingTokenRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java index c74deb23f..49455b301 100644 --- a/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/BoardingTokenResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BoardingTokenResponse */ @JsonPropertyOrder({ @@ -208,10 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BoardingTokenResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BoardingTokenResponse + * @throws JacksonException if the JSON string is invalid with respect to BoardingTokenResponse */ - public static BoardingTokenResponse fromJson(String jsonString) throws JsonProcessingException { + public static BoardingTokenResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BoardingTokenResponse.class); } @@ -220,7 +219,7 @@ public static BoardingTokenResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java index cf0e49ec9..325a48423 100644 --- a/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/paymentsapp/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java index d69ae54fe..b57225ec9 100644 --- a/src/main/java/com/adyen/model/paymentsapp/InvalidField.java +++ b/src/main/java/com/adyen/model/paymentsapp/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/JSON.java b/src/main/java/com/adyen/model/paymentsapp/JSON.java index 29447d5db..c62179264 100644 --- a/src/main/java/com/adyen/model/paymentsapp/JSON.java +++ b/src/main/java/com/adyen/model/paymentsapp/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java index 97b87dec0..e4798ef86 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppDto.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentsAppDto */ @JsonPropertyOrder({ @@ -314,9 +314,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentsAppDto - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentsAppDto + * @throws JacksonException if the JSON string is invalid with respect to PaymentsAppDto */ - public static PaymentsAppDto fromJson(String jsonString) throws JsonProcessingException { + public static PaymentsAppDto fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentsAppDto.class); } @@ -325,7 +325,7 @@ public static PaymentsAppDto fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java index 08e0fcd56..8451b1720 100644 --- a/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java +++ b/src/main/java/com/adyen/model/paymentsapp/PaymentsAppResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PaymentsAppResponse */ @JsonPropertyOrder({PaymentsAppResponse.JSON_PROPERTY_PAYMENTS_APPS}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentsAppResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentsAppResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentsAppResponse */ - public static PaymentsAppResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentsAppResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentsAppResponse.class); } @@ -180,7 +179,7 @@ public static PaymentsAppResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/Address.java b/src/main/java/com/adyen/model/payout/Address.java index c56eaf6ab..355347950 100644 --- a/src/main/java/com/adyen/model/payout/Address.java +++ b/src/main/java/com/adyen/model/payout/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -456,7 +456,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/Amount.java b/src/main/java/com/adyen/model/payout/Amount.java index 0ba3b1a4d..dc673e1a7 100644 --- a/src/main/java/com/adyen/model/payout/Amount.java +++ b/src/main/java/com/adyen/model/payout/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/BankAccount.java b/src/main/java/com/adyen/model/payout/BankAccount.java index 6874efffd..43cd8b456 100644 --- a/src/main/java/com/adyen/model/payout/BankAccount.java +++ b/src/main/java/com/adyen/model/payout/BankAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccount */ @JsonPropertyOrder({ @@ -631,9 +631,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccount + * @throws JacksonException if the JSON string is invalid with respect to BankAccount */ - public static BankAccount fromJson(String jsonString) throws JsonProcessingException { + public static BankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } @@ -642,7 +642,7 @@ public static BankAccount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/Card.java b/src/main/java/com/adyen/model/payout/Card.java index 814c0f196..431157dd0 100644 --- a/src/main/java/com/adyen/model/payout/Card.java +++ b/src/main/java/com/adyen/model/payout/Card.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -572,9 +572,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -583,7 +583,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResult.java b/src/main/java/com/adyen/model/payout/FraudCheckResult.java index 5d05a08dc..c00dc358d 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResult.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FraudCheckResult */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudCheckResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudCheckResult + * @throws JacksonException if the JSON string is invalid with respect to FraudCheckResult */ - public static FraudCheckResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudCheckResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudCheckResult.class); } @@ -267,7 +267,7 @@ public static FraudCheckResult fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java index 1cb11c248..50d88de05 100644 --- a/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java +++ b/src/main/java/com/adyen/model/payout/FraudCheckResultWrapper.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** FraudCheckResultWrapper */ @JsonPropertyOrder({FraudCheckResultWrapper.JSON_PROPERTY_FRAUD_CHECK_RESULT}) @@ -159,10 +159,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudCheckResultWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FraudCheckResultWrapper + * @throws JacksonException if the JSON string is invalid with respect to FraudCheckResultWrapper */ - public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonProcessingException { + public static FraudCheckResultWrapper fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudCheckResultWrapper.class); } @@ -171,7 +170,7 @@ public static FraudCheckResultWrapper fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/FraudResult.java b/src/main/java/com/adyen/model/payout/FraudResult.java index db4ac31f9..37c632f41 100644 --- a/src/main/java/com/adyen/model/payout/FraudResult.java +++ b/src/main/java/com/adyen/model/payout/FraudResult.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** FraudResult */ @JsonPropertyOrder({FraudResult.JSON_PROPERTY_ACCOUNT_SCORE, FraudResult.JSON_PROPERTY_RESULTS}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FraudResult - * @throws JsonProcessingException if the JSON string is invalid with respect to FraudResult + * @throws JacksonException if the JSON string is invalid with respect to FraudResult */ - public static FraudResult fromJson(String jsonString) throws JsonProcessingException { + public static FraudResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FraudResult.class); } @@ -226,7 +226,7 @@ public static FraudResult fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/FundSource.java b/src/main/java/com/adyen/model/payout/FundSource.java index b529f37da..f9ab926b5 100644 --- a/src/main/java/com/adyen/model/payout/FundSource.java +++ b/src/main/java/com/adyen/model/payout/FundSource.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** FundSource */ @JsonPropertyOrder({ @@ -425,9 +425,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundSource - * @throws JsonProcessingException if the JSON string is invalid with respect to FundSource + * @throws JacksonException if the JSON string is invalid with respect to FundSource */ - public static FundSource fromJson(String jsonString) throws JsonProcessingException { + public static FundSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundSource.class); } @@ -436,7 +436,7 @@ public static FundSource fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/JSON.java b/src/main/java/com/adyen/model/payout/JSON.java index 054bf03a7..9d6d95b16 100644 --- a/src/main/java/com/adyen/model/payout/JSON.java +++ b/src/main/java/com/adyen/model/payout/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/payout/ModifyRequest.java b/src/main/java/com/adyen/model/payout/ModifyRequest.java index 6f735716b..43e1e55be 100644 --- a/src/main/java/com/adyen/model/payout/ModifyRequest.java +++ b/src/main/java/com/adyen/model/payout/ModifyRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ModifyRequest */ @JsonPropertyOrder({ @@ -281,9 +281,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModifyRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ModifyRequest + * @throws JacksonException if the JSON string is invalid with respect to ModifyRequest */ - public static ModifyRequest fromJson(String jsonString) throws JsonProcessingException { + public static ModifyRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModifyRequest.class); } @@ -292,7 +292,7 @@ public static ModifyRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ModifyResponse.java b/src/main/java/com/adyen/model/payout/ModifyResponse.java index 21033c15f..91171ab47 100644 --- a/src/main/java/com/adyen/model/payout/ModifyResponse.java +++ b/src/main/java/com/adyen/model/payout/ModifyResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ModifyResponse */ @JsonPropertyOrder({ @@ -293,9 +293,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ModifyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ModifyResponse + * @throws JacksonException if the JSON string is invalid with respect to ModifyResponse */ - public static ModifyResponse fromJson(String jsonString) throws JsonProcessingException { + public static ModifyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ModifyResponse.class); } @@ -304,7 +304,7 @@ public static ModifyResponse fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/Name.java b/src/main/java/com/adyen/model/payout/Name.java index f97f0630e..59c76ac70 100644 --- a/src/main/java/com/adyen/model/payout/Name.java +++ b/src/main/java/com/adyen/model/payout/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/PayoutRequest.java b/src/main/java/com/adyen/model/payout/PayoutRequest.java index 2f0af9cc8..64cb80503 100644 --- a/src/main/java/com/adyen/model/payout/PayoutRequest.java +++ b/src/main/java/com/adyen/model/payout/PayoutRequest.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutRequest */ @JsonPropertyOrder({ @@ -1035,9 +1035,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutRequest + * @throws JacksonException if the JSON string is invalid with respect to PayoutRequest */ - public static PayoutRequest fromJson(String jsonString) throws JsonProcessingException { + public static PayoutRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutRequest.class); } @@ -1046,7 +1046,7 @@ public static PayoutRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/PayoutResponse.java b/src/main/java/com/adyen/model/payout/PayoutResponse.java index 6619a8b95..46fed50df 100644 --- a/src/main/java/com/adyen/model/payout/PayoutResponse.java +++ b/src/main/java/com/adyen/model/payout/PayoutResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PayoutResponse */ @JsonPropertyOrder({ @@ -1013,9 +1013,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PayoutResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PayoutResponse + * @throws JacksonException if the JSON string is invalid with respect to PayoutResponse */ - public static PayoutResponse fromJson(String jsonString) throws JsonProcessingException { + public static PayoutResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PayoutResponse.class); } @@ -1024,7 +1024,7 @@ public static PayoutResponse fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/Recurring.java b/src/main/java/com/adyen/model/payout/Recurring.java index 71845ad3c..821831d36 100644 --- a/src/main/java/com/adyen/model/payout/Recurring.java +++ b/src/main/java/com/adyen/model/payout/Recurring.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Recurring */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Recurring - * @throws JsonProcessingException if the JSON string is invalid with respect to Recurring + * @throws JacksonException if the JSON string is invalid with respect to Recurring */ - public static Recurring fromJson(String jsonString) throws JsonProcessingException { + public static Recurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Recurring.class); } @@ -554,7 +554,7 @@ public static Recurring fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java index 6991cbfec..0ee0fbb34 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalData3DSecure.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalData3DSecure */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalData3DSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalData3DSecure */ - public static ResponseAdditionalData3DSecure fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalData3DSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalData3DSecure.class); } @@ -423,7 +422,7 @@ public static ResponseAdditionalData3DSecure fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java index 6c5562961..46db8e774 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataBillingAddress.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataBillingAddress */ @JsonPropertyOrder({ @@ -474,11 +474,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataBillingAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataBillingAddress */ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataBillingAddress.class); } @@ -487,7 +487,7 @@ public static ResponseAdditionalDataBillingAddress fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java index aa27bca37..2caa56ed9 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCard.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCard */ @JsonPropertyOrder({ @@ -709,11 +709,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCard - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCard */ - public static ResponseAdditionalDataCard fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCard.class); } @@ -722,7 +721,7 @@ public static ResponseAdditionalDataCard fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java index 116a9b2b9..710fbc190 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataCommon.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataCommon */ @JsonPropertyOrder({ @@ -4167,11 +4167,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataCommon - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataCommon */ - public static ResponseAdditionalDataCommon fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataCommon fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataCommon.class); } @@ -4180,7 +4179,7 @@ public static ResponseAdditionalDataCommon fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java index 3c0f119eb..9c14c0d1d 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataDomesticError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataDomesticError */ @JsonPropertyOrder({ @@ -239,11 +239,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataDomesticError - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataDomesticError */ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataDomesticError.class); } @@ -252,7 +252,7 @@ public static ResponseAdditionalDataDomesticError fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java index 8d71f0c16..fd06975ae 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataInstallments.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataInstallments */ @JsonPropertyOrder({ @@ -945,11 +945,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataInstallments - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataInstallments */ public static ResponseAdditionalDataInstallments fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataInstallments.class); } @@ -958,7 +958,7 @@ public static ResponseAdditionalDataInstallments fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java index 88a6ef79a..2b2004310 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataNetworkTokens.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataNetworkTokens */ @JsonPropertyOrder({ @@ -289,11 +289,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataNetworkTokens - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataNetworkTokens */ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataNetworkTokens.class); } @@ -302,7 +302,7 @@ public static ResponseAdditionalDataNetworkTokens fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java index 24557139e..71dded593 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataOpi.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataOpi */ @JsonPropertyOrder({ResponseAdditionalDataOpi.JSON_PROPERTY_OPI_TRANS_TOKEN}) @@ -182,11 +182,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataOpi - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataOpi */ - public static ResponseAdditionalDataOpi fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataOpi fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataOpi.class); } @@ -195,7 +194,7 @@ public static ResponseAdditionalDataOpi fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java index c3bb55e9f..29559d925 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSepa.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSepa */ @JsonPropertyOrder({ @@ -382,11 +382,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSepa - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSepa */ - public static ResponseAdditionalDataSepa fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSepa fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSepa.class); } @@ -395,7 +394,7 @@ public static ResponseAdditionalDataSepa fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSwish.java b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSwish.java index 798da27b0..dd633660b 100644 --- a/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSwish.java +++ b/src/main/java/com/adyen/model/payout/ResponseAdditionalDataSwish.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResponseAdditionalDataSwish */ @JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS}) @@ -159,11 +159,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResponseAdditionalDataSwish - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ResponseAdditionalDataSwish */ - public static ResponseAdditionalDataSwish fromJson(String jsonString) - throws JsonProcessingException { + public static ResponseAdditionalDataSwish fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class); } @@ -172,7 +171,7 @@ public static ResponseAdditionalDataSwish fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/ServiceError.java b/src/main/java/com/adyen/model/payout/ServiceError.java index 8af23b205..a7f815424 100644 --- a/src/main/java/com/adyen/model/payout/ServiceError.java +++ b/src/main/java/com/adyen/model/payout/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java index a729df6b9..d85733337 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitRequest.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoreDetailAndSubmitRequest */ @JsonPropertyOrder({ @@ -1180,11 +1180,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoreDetailAndSubmitRequest */ - public static StoreDetailAndSubmitRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoreDetailAndSubmitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitRequest.class); } @@ -1193,7 +1192,7 @@ public static StoreDetailAndSubmitRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java index 54bf7fd75..6b2b21e6a 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailAndSubmitResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** StoreDetailAndSubmitResponse */ @JsonPropertyOrder({ @@ -332,11 +332,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreDetailAndSubmitResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoreDetailAndSubmitResponse */ - public static StoreDetailAndSubmitResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoreDetailAndSubmitResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetailAndSubmitResponse.class); } @@ -345,7 +344,7 @@ public static StoreDetailAndSubmitResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java index ee586c30b..64d603ca0 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailRequest.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailRequest.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoreDetailRequest */ @JsonPropertyOrder({ @@ -1007,10 +1007,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreDetailRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailRequest + * @throws JacksonException if the JSON string is invalid with respect to StoreDetailRequest */ - public static StoreDetailRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetailRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetailRequest.class); } @@ -1019,7 +1018,7 @@ public static StoreDetailRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java index 91a7fd706..f71adf049 100644 --- a/src/main/java/com/adyen/model/payout/StoreDetailResponse.java +++ b/src/main/java/com/adyen/model/payout/StoreDetailResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** StoreDetailResponse */ @JsonPropertyOrder({ @@ -336,10 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoreDetailResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoreDetailResponse + * @throws JacksonException if the JSON string is invalid with respect to StoreDetailResponse */ - public static StoreDetailResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoreDetailResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoreDetailResponse.class); } @@ -348,7 +347,7 @@ public static StoreDetailResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/SubmitRequest.java b/src/main/java/com/adyen/model/payout/SubmitRequest.java index deb83bdc7..7b3db7d6d 100644 --- a/src/main/java/com/adyen/model/payout/SubmitRequest.java +++ b/src/main/java/com/adyen/model/payout/SubmitRequest.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SubmitRequest */ @JsonPropertyOrder({ @@ -1014,9 +1014,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubmitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SubmitRequest + * @throws JacksonException if the JSON string is invalid with respect to SubmitRequest */ - public static SubmitRequest fromJson(String jsonString) throws JsonProcessingException { + public static SubmitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubmitRequest.class); } @@ -1025,7 +1025,7 @@ public static SubmitRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/payout/SubmitResponse.java b/src/main/java/com/adyen/model/payout/SubmitResponse.java index d31f53064..0c5df2ae8 100644 --- a/src/main/java/com/adyen/model/payout/SubmitResponse.java +++ b/src/main/java/com/adyen/model/payout/SubmitResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** SubmitResponse */ @JsonPropertyOrder({ @@ -332,9 +332,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SubmitResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SubmitResponse + * @throws JacksonException if the JSON string is invalid with respect to SubmitResponse */ - public static SubmitResponse fromJson(String jsonString) throws JsonProcessingException { + public static SubmitResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SubmitResponse.class); } @@ -343,7 +343,7 @@ public static SubmitResponse fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java index ab7a3edf4..f1cb32670 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateSessionRequest */ @JsonPropertyOrder({ @@ -284,10 +284,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateSessionRequest + * @throws JacksonException if the JSON string is invalid with respect to CreateSessionRequest */ - public static CreateSessionRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreateSessionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateSessionRequest.class); } @@ -296,7 +295,7 @@ public static CreateSessionRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java index 23b6049b9..63072d59c 100644 --- a/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java +++ b/src/main/java/com/adyen/model/posmobile/CreateSessionResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CreateSessionResponse */ @JsonPropertyOrder({ @@ -386,10 +386,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreateSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreateSessionResponse + * @throws JacksonException if the JSON string is invalid with respect to CreateSessionResponse */ - public static CreateSessionResponse fromJson(String jsonString) throws JsonProcessingException { + public static CreateSessionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreateSessionResponse.class); } @@ -398,7 +397,7 @@ public static CreateSessionResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posmobile/JSON.java b/src/main/java/com/adyen/model/posmobile/JSON.java index e3f32866b..6ad4e0b5a 100644 --- a/src/main/java/com/adyen/model/posmobile/JSON.java +++ b/src/main/java/com/adyen/model/posmobile/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/posterminalmanagement/Address.java b/src/main/java/com/adyen/model/posterminalmanagement/Address.java index f8b14dc9f..0adf63684 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/Address.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/Address.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -305,9 +305,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -316,7 +316,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsRequest.java b/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsRequest.java index dd00f7141..5fdf6bb37 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsRequest.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsRequest.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AssignTerminalsRequest */ @JsonPropertyOrder({ @@ -308,10 +308,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AssignTerminalsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssignTerminalsRequest + * @throws JacksonException if the JSON string is invalid with respect to AssignTerminalsRequest */ - public static AssignTerminalsRequest fromJson(String jsonString) throws JsonProcessingException { + public static AssignTerminalsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssignTerminalsRequest.class); } @@ -320,7 +319,7 @@ public static AssignTerminalsRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsResponse.java b/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsResponse.java index d4d5c7b54..214c42501 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsResponse.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/AssignTerminalsResponse.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import tools.jackson.core.JacksonException; /** AssignTerminalsResponse */ @JsonPropertyOrder({AssignTerminalsResponse.JSON_PROPERTY_RESULTS}) @@ -133,10 +133,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AssignTerminalsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AssignTerminalsResponse + * @throws JacksonException if the JSON string is invalid with respect to AssignTerminalsResponse */ - public static AssignTerminalsResponse fromJson(String jsonString) throws JsonProcessingException { + public static AssignTerminalsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AssignTerminalsResponse.class); } @@ -145,7 +144,7 @@ public static AssignTerminalsResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalRequest.java b/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalRequest.java index 664b70645..e6f2e32b9 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalRequest.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalRequest.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FindTerminalRequest */ @JsonPropertyOrder({FindTerminalRequest.JSON_PROPERTY_TERMINAL}) @@ -108,10 +108,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FindTerminalRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FindTerminalRequest + * @throws JacksonException if the JSON string is invalid with respect to FindTerminalRequest */ - public static FindTerminalRequest fromJson(String jsonString) throws JsonProcessingException { + public static FindTerminalRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FindTerminalRequest.class); } @@ -120,7 +119,7 @@ public static FindTerminalRequest fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalResponse.java b/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalResponse.java index d3d09911f..b553d6192 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalResponse.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/FindTerminalResponse.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** FindTerminalResponse */ @JsonPropertyOrder({ @@ -289,10 +289,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FindTerminalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FindTerminalResponse + * @throws JacksonException if the JSON string is invalid with respect to FindTerminalResponse */ - public static FindTerminalResponse fromJson(String jsonString) throws JsonProcessingException { + public static FindTerminalResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FindTerminalResponse.class); } @@ -301,7 +300,7 @@ public static FindTerminalResponse fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountRequest.java b/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountRequest.java index 6ff734669..53b45b6dd 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountRequest.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountRequest.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetStoresUnderAccountRequest */ @JsonPropertyOrder({ @@ -155,11 +155,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetStoresUnderAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetStoresUnderAccountRequest */ - public static GetStoresUnderAccountRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GetStoresUnderAccountRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetStoresUnderAccountRequest.class); } @@ -168,7 +167,7 @@ public static GetStoresUnderAccountRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountResponse.java b/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountResponse.java index 957f055e5..5cef6f1ce 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountResponse.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetStoresUnderAccountResponse.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetStoresUnderAccountResponse */ @JsonPropertyOrder({GetStoresUnderAccountResponse.JSON_PROPERTY_STORES}) @@ -118,11 +118,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetStoresUnderAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetStoresUnderAccountResponse */ - public static GetStoresUnderAccountResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetStoresUnderAccountResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetStoresUnderAccountResponse.class); } @@ -131,7 +130,7 @@ public static GetStoresUnderAccountResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsRequest.java b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsRequest.java index 9a86e6be4..c6327da33 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsRequest.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsRequest.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTerminalDetailsRequest */ @JsonPropertyOrder({GetTerminalDetailsRequest.JSON_PROPERTY_TERMINAL}) @@ -108,11 +108,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTerminalDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTerminalDetailsRequest */ - public static GetTerminalDetailsRequest fromJson(String jsonString) - throws JsonProcessingException { + public static GetTerminalDetailsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTerminalDetailsRequest.class); } @@ -121,7 +120,7 @@ public static GetTerminalDetailsRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsResponse.java b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsResponse.java index e16a2d3dc..7e0c71926 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsResponse.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalDetailsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTerminalDetailsResponse */ @JsonPropertyOrder({ @@ -1231,11 +1231,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTerminalDetailsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTerminalDetailsResponse */ - public static GetTerminalDetailsResponse fromJson(String jsonString) - throws JsonProcessingException { + public static GetTerminalDetailsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTerminalDetailsResponse.class); } @@ -1244,7 +1243,7 @@ public static GetTerminalDetailsResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountRequest.java b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountRequest.java index df23c9014..535202710 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountRequest.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountRequest.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTerminalsUnderAccountRequest */ @JsonPropertyOrder({ @@ -210,11 +210,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTerminalsUnderAccountRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTerminalsUnderAccountRequest */ public static GetTerminalsUnderAccountRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTerminalsUnderAccountRequest.class); } @@ -223,7 +223,7 @@ public static GetTerminalsUnderAccountRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountResponse.java b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountResponse.java index 721634bba..566fb9d09 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountResponse.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/GetTerminalsUnderAccountResponse.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** GetTerminalsUnderAccountResponse */ @JsonPropertyOrder({ @@ -212,11 +212,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of GetTerminalsUnderAccountResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * GetTerminalsUnderAccountResponse */ public static GetTerminalsUnderAccountResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTerminalsUnderAccountResponse.class); } @@ -225,7 +225,7 @@ public static GetTerminalsUnderAccountResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/JSON.java b/src/main/java/com/adyen/model/posterminalmanagement/JSON.java index 5b1499547..8c3cdf9b2 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/JSON.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/JSON.java @@ -3,10 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -14,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; public JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -42,7 +46,7 @@ public JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/posterminalmanagement/MerchantAccount.java b/src/main/java/com/adyen/model/posterminalmanagement/MerchantAccount.java index 78d3b54b2..b6eb554c4 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/MerchantAccount.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/MerchantAccount.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** MerchantAccount */ @JsonPropertyOrder({ @@ -255,9 +255,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantAccount + * @throws JacksonException if the JSON string is invalid with respect to MerchantAccount */ - public static MerchantAccount fromJson(String jsonString) throws JsonProcessingException { + public static MerchantAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantAccount.class); } @@ -266,7 +266,7 @@ public static MerchantAccount fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/ServiceError.java b/src/main/java/com/adyen/model/posterminalmanagement/ServiceError.java index f771853d6..7f0fa30c5 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/ServiceError.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/ServiceError.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.Objects; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -264,9 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -275,7 +275,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/posterminalmanagement/Store.java b/src/main/java/com/adyen/model/posterminalmanagement/Store.java index a7cb3ce8f..5b798563a 100644 --- a/src/main/java/com/adyen/model/posterminalmanagement/Store.java +++ b/src/main/java/com/adyen/model/posterminalmanagement/Store.java @@ -14,11 +14,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.Objects; +import tools.jackson.core.JacksonException; /** Store */ @JsonPropertyOrder({ @@ -330,9 +330,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Store - * @throws JsonProcessingException if the JSON string is invalid with respect to Store + * @throws JacksonException if the JSON string is invalid with respect to Store */ - public static Store fromJson(String jsonString) throws JsonProcessingException { + public static Store fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Store.class); } @@ -341,7 +341,7 @@ public static Store fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/Address.java b/src/main/java/com/adyen/model/recurring/Address.java index a0955397e..3d29b97f1 100644 --- a/src/main/java/com/adyen/model/recurring/Address.java +++ b/src/main/java/com/adyen/model/recurring/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -445,9 +445,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -456,7 +456,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/Amount.java b/src/main/java/com/adyen/model/recurring/Amount.java index 9658dc080..bca4d5ff8 100644 --- a/src/main/java/com/adyen/model/recurring/Amount.java +++ b/src/main/java/com/adyen/model/recurring/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/BankAccount.java b/src/main/java/com/adyen/model/recurring/BankAccount.java index dec613688..112d9e597 100644 --- a/src/main/java/com/adyen/model/recurring/BankAccount.java +++ b/src/main/java/com/adyen/model/recurring/BankAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccount */ @JsonPropertyOrder({ @@ -631,9 +631,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccount + * @throws JacksonException if the JSON string is invalid with respect to BankAccount */ - public static BankAccount fromJson(String jsonString) throws JsonProcessingException { + public static BankAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccount.class); } @@ -642,7 +642,7 @@ public static BankAccount fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/Card.java b/src/main/java/com/adyen/model/recurring/Card.java index d4dd2b800..1c1318f5e 100644 --- a/src/main/java/com/adyen/model/recurring/Card.java +++ b/src/main/java/com/adyen/model/recurring/Card.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -572,9 +572,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -583,7 +583,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java index 2dcc6ae29..d4d061c17 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreatePermitRequest */ @JsonPropertyOrder({ @@ -332,10 +332,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreatePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreatePermitRequest + * @throws JacksonException if the JSON string is invalid with respect to CreatePermitRequest */ - public static CreatePermitRequest fromJson(String jsonString) throws JsonProcessingException { + public static CreatePermitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreatePermitRequest.class); } @@ -344,7 +343,7 @@ public static CreatePermitRequest fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java index b980bc64b..5e5934a9d 100644 --- a/src/main/java/com/adyen/model/recurring/CreatePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/CreatePermitResult.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CreatePermitResult */ @JsonPropertyOrder({ @@ -224,10 +224,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CreatePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CreatePermitResult + * @throws JacksonException if the JSON string is invalid with respect to CreatePermitResult */ - public static CreatePermitResult fromJson(String jsonString) throws JsonProcessingException { + public static CreatePermitResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CreatePermitResult.class); } @@ -236,7 +235,7 @@ public static CreatePermitResult fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java index 8386cfe86..97e82266f 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisablePermitRequest */ @JsonPropertyOrder({ @@ -211,10 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisablePermitRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisablePermitRequest + * @throws JacksonException if the JSON string is invalid with respect to DisablePermitRequest */ - public static DisablePermitRequest fromJson(String jsonString) throws JsonProcessingException { + public static DisablePermitRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisablePermitRequest.class); } @@ -223,7 +222,7 @@ public static DisablePermitRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java index b963be858..b96bb9b03 100644 --- a/src/main/java/com/adyen/model/recurring/DisablePermitResult.java +++ b/src/main/java/com/adyen/model/recurring/DisablePermitResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisablePermitResult */ @JsonPropertyOrder({ @@ -214,10 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisablePermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DisablePermitResult + * @throws JacksonException if the JSON string is invalid with respect to DisablePermitResult */ - public static DisablePermitResult fromJson(String jsonString) throws JsonProcessingException { + public static DisablePermitResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisablePermitResult.class); } @@ -226,7 +225,7 @@ public static DisablePermitResult fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/DisableRequest.java b/src/main/java/com/adyen/model/recurring/DisableRequest.java index a71815bd1..6399ef8a2 100644 --- a/src/main/java/com/adyen/model/recurring/DisableRequest.java +++ b/src/main/java/com/adyen/model/recurring/DisableRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisableRequest */ @JsonPropertyOrder({ @@ -351,9 +351,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisableRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DisableRequest + * @throws JacksonException if the JSON string is invalid with respect to DisableRequest */ - public static DisableRequest fromJson(String jsonString) throws JsonProcessingException { + public static DisableRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisableRequest.class); } @@ -362,7 +362,7 @@ public static DisableRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/DisableResult.java b/src/main/java/com/adyen/model/recurring/DisableResult.java index 42a815a08..c93a5f455 100644 --- a/src/main/java/com/adyen/model/recurring/DisableResult.java +++ b/src/main/java/com/adyen/model/recurring/DisableResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DisableResult */ @JsonPropertyOrder({DisableResult.JSON_PROPERTY_RESPONSE}) @@ -164,9 +164,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisableResult - * @throws JsonProcessingException if the JSON string is invalid with respect to DisableResult + * @throws JacksonException if the JSON string is invalid with respect to DisableResult */ - public static DisableResult fromJson(String jsonString) throws JsonProcessingException { + public static DisableResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisableResult.class); } @@ -175,7 +175,7 @@ public static DisableResult fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/JSON.java b/src/main/java/com/adyen/model/recurring/JSON.java index 212414577..89ec87e27 100644 --- a/src/main/java/com/adyen/model/recurring/JSON.java +++ b/src/main/java/com/adyen/model/recurring/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/recurring/Name.java b/src/main/java/com/adyen/model/recurring/Name.java index 534d919c7..8a08dd37b 100644 --- a/src/main/java/com/adyen/model/recurring/Name.java +++ b/src/main/java/com/adyen/model/recurring/Name.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -216,7 +216,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java index 04967da3f..4c5b14451 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NotifyShopperRequest */ @JsonPropertyOrder({ @@ -612,10 +612,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NotifyShopperRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NotifyShopperRequest + * @throws JacksonException if the JSON string is invalid with respect to NotifyShopperRequest */ - public static NotifyShopperRequest fromJson(String jsonString) throws JsonProcessingException { + public static NotifyShopperRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotifyShopperRequest.class); } @@ -624,7 +623,7 @@ public static NotifyShopperRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java index 14d1d56e7..9419cf4f7 100644 --- a/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java +++ b/src/main/java/com/adyen/model/recurring/NotifyShopperResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NotifyShopperResult */ @JsonPropertyOrder({ @@ -475,10 +475,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NotifyShopperResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * NotifyShopperResult + * @throws JacksonException if the JSON string is invalid with respect to NotifyShopperResult */ - public static NotifyShopperResult fromJson(String jsonString) throws JsonProcessingException { + public static NotifyShopperResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NotifyShopperResult.class); } @@ -487,7 +486,7 @@ public static NotifyShopperResult fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/Permit.java b/src/main/java/com/adyen/model/recurring/Permit.java index fef8c8edf..35d256c27 100644 --- a/src/main/java/com/adyen/model/recurring/Permit.java +++ b/src/main/java/com/adyen/model/recurring/Permit.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Permit */ @JsonPropertyOrder({ @@ -366,9 +366,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Permit - * @throws JsonProcessingException if the JSON string is invalid with respect to Permit + * @throws JacksonException if the JSON string is invalid with respect to Permit */ - public static Permit fromJson(String jsonString) throws JsonProcessingException { + public static Permit fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Permit.class); } @@ -377,7 +377,7 @@ public static Permit fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/PermitRestriction.java b/src/main/java/com/adyen/model/recurring/PermitRestriction.java index e1cb08bdf..19771ac57 100644 --- a/src/main/java/com/adyen/model/recurring/PermitRestriction.java +++ b/src/main/java/com/adyen/model/recurring/PermitRestriction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PermitRestriction */ @JsonPropertyOrder({ @@ -271,9 +271,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PermitRestriction - * @throws JsonProcessingException if the JSON string is invalid with respect to PermitRestriction + * @throws JacksonException if the JSON string is invalid with respect to PermitRestriction */ - public static PermitRestriction fromJson(String jsonString) throws JsonProcessingException { + public static PermitRestriction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PermitRestriction.class); } @@ -282,7 +282,7 @@ public static PermitRestriction fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/PermitResult.java b/src/main/java/com/adyen/model/recurring/PermitResult.java index 7a268129f..25be417c4 100644 --- a/src/main/java/com/adyen/model/recurring/PermitResult.java +++ b/src/main/java/com/adyen/model/recurring/PermitResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PermitResult */ @JsonPropertyOrder({PermitResult.JSON_PROPERTY_RESULT_KEY, PermitResult.JSON_PROPERTY_TOKEN}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PermitResult - * @throws JsonProcessingException if the JSON string is invalid with respect to PermitResult + * @throws JacksonException if the JSON string is invalid with respect to PermitResult */ - public static PermitResult fromJson(String jsonString) throws JsonProcessingException { + public static PermitResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PermitResult.class); } @@ -216,7 +216,7 @@ public static PermitResult fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/Recurring.java b/src/main/java/com/adyen/model/recurring/Recurring.java index c83da6462..32bd6fdf3 100644 --- a/src/main/java/com/adyen/model/recurring/Recurring.java +++ b/src/main/java/com/adyen/model/recurring/Recurring.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Recurring */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Recurring - * @throws JsonProcessingException if the JSON string is invalid with respect to Recurring + * @throws JacksonException if the JSON string is invalid with respect to Recurring */ - public static Recurring fromJson(String jsonString) throws JsonProcessingException { + public static Recurring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Recurring.class); } @@ -554,7 +554,7 @@ public static Recurring fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetail.java b/src/main/java/com/adyen/model/recurring/RecurringDetail.java index 339c0d7f3..4e89a1def 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetail.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetail.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import tools.jackson.core.JacksonException; /** RecurringDetail */ @JsonPropertyOrder({ @@ -1100,9 +1100,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RecurringDetail - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringDetail + * @throws JacksonException if the JSON string is invalid with respect to RecurringDetail */ - public static RecurringDetail fromJson(String jsonString) throws JsonProcessingException { + public static RecurringDetail fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringDetail.class); } @@ -1111,7 +1111,7 @@ public static RecurringDetail fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java index c138b9a40..e7f1c826a 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailWrapper.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RecurringDetailWrapper */ @JsonPropertyOrder({RecurringDetailWrapper.JSON_PROPERTY_RECURRING_DETAIL}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RecurringDetailWrapper - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailWrapper + * @throws JacksonException if the JSON string is invalid with respect to RecurringDetailWrapper */ - public static RecurringDetailWrapper fromJson(String jsonString) throws JsonProcessingException { + public static RecurringDetailWrapper fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringDetailWrapper.class); } @@ -170,7 +169,7 @@ public static RecurringDetailWrapper fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java index 30b9b5d8c..e1955fd37 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RecurringDetailsRequest */ @JsonPropertyOrder({ @@ -269,10 +269,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RecurringDetailsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailsRequest + * @throws JacksonException if the JSON string is invalid with respect to RecurringDetailsRequest */ - public static RecurringDetailsRequest fromJson(String jsonString) throws JsonProcessingException { + public static RecurringDetailsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringDetailsRequest.class); } @@ -281,7 +280,7 @@ public static RecurringDetailsRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java index 3fe154cfe..d6fb76ccd 100644 --- a/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java +++ b/src/main/java/com/adyen/model/recurring/RecurringDetailsResult.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** RecurringDetailsResult */ @JsonPropertyOrder({ @@ -329,10 +329,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RecurringDetailsResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RecurringDetailsResult + * @throws JacksonException if the JSON string is invalid with respect to RecurringDetailsResult */ - public static RecurringDetailsResult fromJson(String jsonString) throws JsonProcessingException { + public static RecurringDetailsResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringDetailsResult.class); } @@ -341,7 +340,7 @@ public static RecurringDetailsResult fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java index d885bdc25..59091efce 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ScheduleAccountUpdaterRequest */ @JsonPropertyOrder({ @@ -455,11 +455,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduleAccountUpdaterRequest */ - public static ScheduleAccountUpdaterRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleAccountUpdaterRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterRequest.class); } @@ -468,7 +467,7 @@ public static ScheduleAccountUpdaterRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java index b87f30e28..b8b909341 100644 --- a/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java +++ b/src/main/java/com/adyen/model/recurring/ScheduleAccountUpdaterResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ScheduleAccountUpdaterResult */ @JsonPropertyOrder({ @@ -220,11 +220,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ScheduleAccountUpdaterResult - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ScheduleAccountUpdaterResult */ - public static ScheduleAccountUpdaterResult fromJson(String jsonString) - throws JsonProcessingException { + public static ScheduleAccountUpdaterResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ScheduleAccountUpdaterResult.class); } @@ -233,7 +232,7 @@ public static ScheduleAccountUpdaterResult fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/ServiceError.java b/src/main/java/com/adyen/model/recurring/ServiceError.java index e19c57602..2476b6a3f 100644 --- a/src/main/java/com/adyen/model/recurring/ServiceError.java +++ b/src/main/java/com/adyen/model/recurring/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/recurring/TokenDetails.java b/src/main/java/com/adyen/model/recurring/TokenDetails.java index e9378e717..45fcd92ed 100644 --- a/src/main/java/com/adyen/model/recurring/TokenDetails.java +++ b/src/main/java/com/adyen/model/recurring/TokenDetails.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** TokenDetails */ @JsonPropertyOrder({ @@ -218,9 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TokenDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to TokenDetails + * @throws JacksonException if the JSON string is invalid with respect to TokenDetails */ - public static TokenDetails fromJson(String jsonString) throws JsonProcessingException { + public static TokenDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TokenDetails.class); } @@ -229,7 +229,7 @@ public static TokenDetails fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Amount.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Amount.java index 52fb39bfd..0af3fcb40 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AmountAdjustment.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AmountAdjustment.java index 35fa38ae9..55376766c 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AmountAdjustment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmountAdjustment */ @JsonPropertyOrder({ @@ -358,9 +358,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AmountAdjustment - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountAdjustment + * @throws JacksonException if the JSON string is invalid with respect to AmountAdjustment */ - public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { + public static AmountAdjustment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } @@ -369,7 +369,7 @@ public static AmountAdjustment fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Authentication.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Authentication.java index 551f6b4cd..bba1d1b7a 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Authentication.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Authentication.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Authentication */ @JsonPropertyOrder({ @@ -198,9 +198,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Authentication - * @throws JsonProcessingException if the JSON string is invalid with respect to Authentication + * @throws JacksonException if the JSON string is invalid with respect to Authentication */ - public static Authentication fromJson(String jsonString) throws JsonProcessingException { + public static Authentication fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Authentication.class); } @@ -209,7 +209,7 @@ public static Authentication fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionRequest.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionRequest.java index b57a4ccda..633beb04f 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionRequest.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionRequest.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AuthorisationDecisionRequest */ @JsonPropertyOrder({ @@ -183,11 +183,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthorisationDecisionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthorisationDecisionRequest */ - public static AuthorisationDecisionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthorisationDecisionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthorisationDecisionRequest.class); } @@ -196,7 +195,7 @@ public static AuthorisationDecisionRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionResponse.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionResponse.java index 3a4f01b30..ddc9df830 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionResponse.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/AuthorisationDecisionResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AuthorisationDecisionResponse */ @JsonPropertyOrder({ @@ -204,11 +204,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AuthorisationDecisionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthorisationDecisionResponse */ - public static AuthorisationDecisionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AuthorisationDecisionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthorisationDecisionResponse.class); } @@ -217,7 +216,7 @@ public static AuthorisationDecisionResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BalanceMutation.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BalanceMutation.java index 20bd9b652..3dd5aa2f5 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BalanceMutation.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BalanceMutation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalanceMutation */ @JsonPropertyOrder({ @@ -264,9 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceMutation - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceMutation + * @throws JacksonException if the JSON string is invalid with respect to BalanceMutation */ - public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { + public static BalanceMutation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } @@ -275,7 +275,7 @@ public static BalanceMutation fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BankAccountDetails.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BankAccountDetails.java index 8f21ebd60..168f0c522 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BankAccountDetails.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BankAccountDetails.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountDetails */ @JsonPropertyOrder({ @@ -427,10 +427,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BankAccountDetails + * @throws JacksonException if the JSON string is invalid with respect to BankAccountDetails */ - public static BankAccountDetails fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountDetails.class); } @@ -439,7 +438,7 @@ public static BankAccountDetails fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BulkAddress.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BulkAddress.java index cc77c26bc..a49b24085 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BulkAddress.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/BulkAddress.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BulkAddress */ @JsonPropertyOrder({ @@ -604,9 +604,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BulkAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to BulkAddress + * @throws JacksonException if the JSON string is invalid with respect to BulkAddress */ - public static BulkAddress fromJson(String jsonString) throws JsonProcessingException { + public static BulkAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BulkAddress.class); } @@ -615,7 +615,7 @@ public static BulkAddress fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Card.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Card.java index 2dd78eb37..172eaef3d 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Card.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Card.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({ @@ -715,9 +715,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -726,7 +726,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/CardConfiguration.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/CardConfiguration.java index 0681ea787..1c89d832f 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/CardConfiguration.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/CardConfiguration.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CardConfiguration */ @JsonPropertyOrder({ @@ -801,9 +801,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardConfiguration - * @throws JsonProcessingException if the JSON string is invalid with respect to CardConfiguration + * @throws JacksonException if the JSON string is invalid with respect to CardConfiguration */ - public static CardConfiguration fromJson(String jsonString) throws JsonProcessingException { + public static CardConfiguration fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardConfiguration.class); } @@ -812,7 +812,7 @@ public static CardConfiguration fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryAddress.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryAddress.java index f41759944..f18bda9f3 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryAddress.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryAddress */ @JsonPropertyOrder({ @@ -372,9 +372,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeliveryAddress - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryAddress + * @throws JacksonException if the JSON string is invalid with respect to DeliveryAddress */ - public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryAddress fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryAddress.class); } @@ -383,7 +383,7 @@ public static DeliveryAddress fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryContact.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryContact.java index 189d5bb94..90d909a88 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryContact.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/DeliveryContact.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** DeliveryContact */ @JsonPropertyOrder({ @@ -297,9 +297,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DeliveryContact - * @throws JsonProcessingException if the JSON string is invalid with respect to DeliveryContact + * @throws JacksonException if the JSON string is invalid with respect to DeliveryContact */ - public static DeliveryContact fromJson(String jsonString) throws JsonProcessingException { + public static DeliveryContact fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DeliveryContact.class); } @@ -308,7 +308,7 @@ public static DeliveryContact fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Expiry.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Expiry.java index c1523b6b1..828468e79 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Expiry.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Expiry.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Expiry */ @JsonPropertyOrder({Expiry.JSON_PROPERTY_MONTH, Expiry.JSON_PROPERTY_YEAR}) @@ -137,9 +137,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Expiry - * @throws JsonProcessingException if the JSON string is invalid with respect to Expiry + * @throws JacksonException if the JSON string is invalid with respect to Expiry */ - public static Expiry fromJson(String jsonString) throws JsonProcessingException { + public static Expiry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Expiry.class); } @@ -148,7 +148,7 @@ public static Expiry fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/IbanAccountIdentification.java index c81c3b3ee..ed3b6b373 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/IbanAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -242,7 +241,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/JSON.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/JSON.java index 6362cb83b..5061e0e43 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/MerchantData.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/MerchantData.java index 5826d83ed..2ea3615bf 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/MerchantData.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/MerchantData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantData */ @JsonPropertyOrder({ @@ -258,9 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantData + * @throws JacksonException if the JSON string is invalid with respect to MerchantData */ - public static MerchantData fromJson(String jsonString) throws JsonProcessingException { + public static MerchantData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } @@ -269,7 +269,7 @@ public static MerchantData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Name.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Name.java index 0ce474124..230e7f749 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Name.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Name.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Name */ @JsonPropertyOrder({Name.JSON_PROPERTY_FIRST_NAME, Name.JSON_PROPERTY_LAST_NAME}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Name - * @throws JsonProcessingException if the JSON string is invalid with respect to Name + * @throws JacksonException if the JSON string is invalid with respect to Name */ - public static Name fromJson(String jsonString) throws JsonProcessingException { + public static Name fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Name.class); } @@ -149,7 +149,7 @@ public static Name fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/NameLocation.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/NameLocation.java index 55260adf4..d6a7989c1 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/NameLocation.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/NameLocation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NameLocation */ @JsonPropertyOrder({ @@ -315,9 +315,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NameLocation - * @throws JsonProcessingException if the JSON string is invalid with respect to NameLocation + * @throws JacksonException if the JSON string is invalid with respect to NameLocation */ - public static NameLocation fromJson(String jsonString) throws JsonProcessingException { + public static NameLocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } @@ -326,7 +326,7 @@ public static NameLocation fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrument.java index da9f1a8fe..7fb5f5167 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrument.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -973,9 +973,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -984,7 +984,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java index 37d79ee81..c7184527a 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.java @@ -11,19 +11,6 @@ package com.adyen.model.relayedauthorizationwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = @@ -61,9 +60,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerSerializer() { public void serialize( PaymentInstrumentAdditionalBankAccountIdentificationsInner value, JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -79,12 +78,11 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInnerDeserializer(Cl @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize IbanAccountIdentification try { boolean attemptParsing = true; @@ -98,8 +96,7 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -118,7 +115,8 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for PaymentInstrumentAdditionalBankAccountIdentificationsInner: %d classes match result, expected 1", match)); @@ -127,10 +125,9 @@ public PaymentInstrumentAdditionalBankAccountIdentificationsInner deserialize( /** Handle deserialization of the 'null' value. */ @Override public PaymentInstrumentAdditionalBankAccountIdentificationsInner getNullValue( - DeserializationContext ctxt) throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), - "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); + DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from( + ctxt, "PaymentInstrumentAdditionalBankAccountIdentificationsInner cannot be null"); } } @@ -226,7 +223,7 @@ public static PaymentInstrumentAdditionalBankAccountIdentificationsInner fromJso * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Phone.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Phone.java index d079e12b4..43b812888 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Phone.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/Phone.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Phone */ @JsonPropertyOrder({Phone.JSON_PROPERTY_NUMBER, Phone.JSON_PROPERTY_TYPE}) @@ -191,9 +191,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Phone - * @throws JsonProcessingException if the JSON string is invalid with respect to Phone + * @throws JacksonException if the JSON string is invalid with respect to Phone */ - public static Phone fromJson(String jsonString) throws JsonProcessingException { + public static Phone fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Phone.class); } @@ -202,7 +202,7 @@ public static Phone fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationRequest.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationRequest.java index 2f98b1b44..5c9b9e662 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationRequest.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationRequest.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RelayedAuthorisationRequest */ @JsonPropertyOrder({ @@ -1187,11 +1187,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthorisationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RelayedAuthorisationRequest */ - public static RelayedAuthorisationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationRequest.class); } @@ -1200,7 +1199,7 @@ public static RelayedAuthorisationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationResponse.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationResponse.java index d4a16dea2..3aea5c00a 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationResponse.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/RelayedAuthorisationResponse.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** RelayedAuthorisationResponse */ @JsonPropertyOrder({ @@ -200,11 +200,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthorisationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RelayedAuthorisationResponse */ - public static RelayedAuthorisationResponse fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationResponse.class); } @@ -213,7 +212,7 @@ public static RelayedAuthorisationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ResourceReference.java index efe92430a..40e0041c0 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ServiceError.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ServiceError.java index 0f772f7f1..8613c1ea8 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ServiceError.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ServiceError.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -258,9 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -269,7 +269,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ThreeDSecure.java index 2dfa8413f..2fb835a97 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ThreeDSecure.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDSecure */ @JsonPropertyOrder({ @@ -222,9 +222,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ThreeDSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecure + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecure */ - public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } @@ -233,7 +233,7 @@ public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionEventViolation.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionEventViolation.java index 07df09e07..bafb6f95b 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionEventViolation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionEventViolation */ @JsonPropertyOrder({ @@ -184,11 +184,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } @@ -197,7 +196,7 @@ public static TransactionEventViolation fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleReference.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleReference.java index 03fa45333..d81ecf093 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleReference */ @JsonPropertyOrder({ @@ -264,11 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleReference + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } @@ -277,7 +275,7 @@ public static TransactionRuleReference fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleSource.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleSource.java index ba9fda03e..5f21ee44c 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRuleSource.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleSource */ @JsonPropertyOrder({ @@ -159,10 +159,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleSource + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleSource */ - public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } @@ -171,7 +170,7 @@ public static TransactionRuleSource fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRulesResult.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRulesResult.java index 1042111a8..365cba50d 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionRulesResult.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransactionRulesResult */ @JsonPropertyOrder({ @@ -245,10 +245,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResult + * @throws JacksonException if the JSON string is invalid with respect to TransactionRulesResult */ - public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRulesResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } @@ -257,7 +256,7 @@ public static TransactionRulesResult fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionScoring.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionScoring.java index 7ccab628e..a879c4746 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionScoring.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/TransactionScoring.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionScoring */ @JsonPropertyOrder({TransactionScoring.JSON_PROPERTY_TYPE, TransactionScoring.JSON_PROPERTY_VALUE}) @@ -138,10 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionScoring - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionScoring + * @throws JacksonException if the JSON string is invalid with respect to TransactionScoring */ - public static TransactionScoring fromJson(String jsonString) throws JsonProcessingException { + public static TransactionScoring fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionScoring.class); } @@ -150,7 +149,7 @@ public static TransactionScoring fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ValidationResult.java b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ValidationResult.java index 46c71d4df..3d86ca107 100644 --- a/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ValidationResult.java +++ b/src/main/java/com/adyen/model/relayedauthorizationwebhooks/ValidationResult.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ValidationResult */ @JsonPropertyOrder({ValidationResult.JSON_PROPERTY_RESULT, ValidationResult.JSON_PROPERTY_TYPE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ValidationResult - * @throws JsonProcessingException if the JSON string is invalid with respect to ValidationResult + * @throws JacksonException if the JSON string is invalid with respect to ValidationResult */ - public static ValidationResult fromJson(String jsonString) throws JsonProcessingException { + public static ValidationResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ValidationResult.class); } @@ -167,7 +167,7 @@ public static ValidationResult fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java index ab2375333..5eb192de8 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/reportwebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/reportwebhooks/JSON.java b/src/main/java/com/adyen/model/reportwebhooks/JSON.java index 5b5159e6c..ad1b5bc2f 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/reportwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java index c3b1033a0..32a6640bc 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationData.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** ReportNotificationData */ @JsonPropertyOrder({ @@ -429,10 +429,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReportNotificationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReportNotificationData + * @throws JacksonException if the JSON string is invalid with respect to ReportNotificationData */ - public static ReportNotificationData fromJson(String jsonString) throws JsonProcessingException { + public static ReportNotificationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReportNotificationData.class); } @@ -441,7 +440,7 @@ public static ReportNotificationData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java index 048d5fc8c..7339cdb3f 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ReportNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ReportNotificationRequest */ @JsonPropertyOrder({ @@ -266,11 +266,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ReportNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * ReportNotificationRequest */ - public static ReportNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static ReportNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReportNotificationRequest.class); } @@ -279,7 +278,7 @@ public static ReportNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/reportwebhooks/Resource.java b/src/main/java/com/adyen/model/reportwebhooks/Resource.java index 68ccb752a..e16e5439a 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/reportwebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java index 23373433d..d65e2e2ab 100644 --- a/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/reportwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java index 4c34a7949..8e217eea0 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AccountHolderResource.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AccountHolderResource */ @JsonPropertyOrder({AccountHolderResource.JSON_PROPERTY_ACCOUNT_HOLDER_ID}) @@ -192,10 +192,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AccountHolderResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * AccountHolderResource + * @throws JacksonException if the JSON string is invalid with respect to AccountHolderResource */ - public static AccountHolderResource fromJson(String jsonString) throws JsonProcessingException { + public static AccountHolderResource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AccountHolderResource.class); } @@ -204,7 +203,7 @@ public static AccountHolderResource fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java index 89e107769..39d7088ba 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AuthenticationSessionRequest */ @JsonPropertyOrder({ @@ -265,11 +265,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthenticationSessionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationSessionRequest */ - public static AuthenticationSessionRequest fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationSessionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionRequest.class); } @@ -278,7 +277,7 @@ public static AuthenticationSessionRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java index 8c10cc6ad..44be89f84 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java +++ b/src/main/java/com/adyen/model/sessionauthentication/AuthenticationSessionResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AuthenticationSessionResponse */ @JsonPropertyOrder({ @@ -210,11 +210,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AuthenticationSessionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AuthenticationSessionResponse */ - public static AuthenticationSessionResponse fromJson(String jsonString) - throws JsonProcessingException { + public static AuthenticationSessionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AuthenticationSessionResponse.class); } @@ -223,7 +222,7 @@ public static AuthenticationSessionResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java index 6c083e4a0..5831279de 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/sessionauthentication/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java index b04cb9ca5..7622d1e3d 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java +++ b/src/main/java/com/adyen/model/sessionauthentication/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/JSON.java b/src/main/java/com/adyen/model/sessionauthentication/JSON.java index c3aafeaa0..6a6d1780e 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/JSON.java +++ b/src/main/java/com/adyen/model/sessionauthentication/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java index 02af88094..8aaeeb99e 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/LegalEntityResource.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LegalEntityResource */ @JsonPropertyOrder({LegalEntityResource.JSON_PROPERTY_LEGAL_ENTITY_ID}) @@ -207,10 +207,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LegalEntityResource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LegalEntityResource + * @throws JacksonException if the JSON string is invalid with respect to LegalEntityResource */ - public static LegalEntityResource fromJson(String jsonString) throws JsonProcessingException { + public static LegalEntityResource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LegalEntityResource.class); } @@ -219,7 +218,7 @@ public static LegalEntityResource fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java index 47ae9f318..465f2541e 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/PaymentInstrumentResource.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrumentResource */ @JsonPropertyOrder({PaymentInstrumentResource.JSON_PROPERTY_PAYMENT_INSTRUMENT_ID}) @@ -183,11 +183,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentResource - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PaymentInstrumentResource */ - public static PaymentInstrumentResource fromJson(String jsonString) - throws JsonProcessingException { + public static PaymentInstrumentResource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentResource.class); } @@ -196,7 +195,7 @@ public static PaymentInstrumentResource fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/Policy.java b/src/main/java/com/adyen/model/sessionauthentication/Policy.java index ee2c4bb2f..4ba2eb47d 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Policy.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Policy.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import java.util.*; import java.util.LinkedHashSet; import java.util.Set; +import tools.jackson.core.JacksonException; +import tools.jackson.databind.annotation.JsonDeserialize; /** Policy */ @JsonPropertyOrder({Policy.JSON_PROPERTY_RESOURCES, Policy.JSON_PROPERTY_ROLES}) @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Policy - * @throws JsonProcessingException if the JSON string is invalid with respect to Policy + * @throws JacksonException if the JSON string is invalid with respect to Policy */ - public static Policy fromJson(String jsonString) throws JsonProcessingException { + public static Policy fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Policy.class); } @@ -273,7 +273,7 @@ public static Policy fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/sessionauthentication/Resource.java b/src/main/java/com/adyen/model/sessionauthentication/Resource.java index 1560e30fb..359efe151 100644 --- a/src/main/java/com/adyen/model/sessionauthentication/Resource.java +++ b/src/main/java/com/adyen/model/sessionauthentication/Resource.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({Resource.JSON_PROPERTY_TYPE}) @@ -187,9 +187,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/Amount.java b/src/main/java/com/adyen/model/storedvalue/Amount.java index e83e65bf2..67ccd41b0 100644 --- a/src/main/java/com/adyen/model/storedvalue/Amount.java +++ b/src/main/java/com/adyen/model/storedvalue/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/JSON.java b/src/main/java/com/adyen/model/storedvalue/JSON.java index 37a4e8b50..a3265b511 100644 --- a/src/main/java/com/adyen/model/storedvalue/JSON.java +++ b/src/main/java/com/adyen/model/storedvalue/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/storedvalue/ServiceError.java b/src/main/java/com/adyen/model/storedvalue/ServiceError.java index 7a500a9be..cfaf80fd6 100644 --- a/src/main/java/com/adyen/model/storedvalue/ServiceError.java +++ b/src/main/java/com/adyen/model/storedvalue/ServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -431,9 +431,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -442,7 +442,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java index 340207303..2af485a02 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueBalanceCheckRequest */ @JsonPropertyOrder({ @@ -693,11 +693,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueBalanceCheckRequest */ - public static StoredValueBalanceCheckRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceCheckRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckRequest.class); } @@ -706,7 +705,7 @@ public static StoredValueBalanceCheckRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java index 5f2ade079..065080c97 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceCheckResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueBalanceCheckResponse */ @JsonPropertyOrder({ @@ -488,11 +488,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueBalanceCheckResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueBalanceCheckResponse */ public static StoredValueBalanceCheckResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceCheckResponse.class); } @@ -501,7 +501,7 @@ public static StoredValueBalanceCheckResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java index feabbfc50..f900dfea3 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueBalanceMergeRequest */ @JsonPropertyOrder({ @@ -770,11 +770,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueBalanceMergeRequest */ - public static StoredValueBalanceMergeRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueBalanceMergeRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeRequest.class); } @@ -783,7 +782,7 @@ public static StoredValueBalanceMergeRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java index a0390a36b..8d1b6c288 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueBalanceMergeResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueBalanceMergeResponse */ @JsonPropertyOrder({ @@ -548,11 +548,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueBalanceMergeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueBalanceMergeResponse */ public static StoredValueBalanceMergeResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueBalanceMergeResponse.class); } @@ -561,7 +561,7 @@ public static StoredValueBalanceMergeResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java index 89f2a1089..c1bad6c02 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueIssueRequest */ @JsonPropertyOrder({ @@ -679,10 +679,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueIssueRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueIssueRequest + * @throws JacksonException if the JSON string is invalid with respect to StoredValueIssueRequest */ - public static StoredValueIssueRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueIssueRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueIssueRequest.class); } @@ -691,7 +690,7 @@ public static StoredValueIssueRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java index deef014af..64b040bb7 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueIssueResponse.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueIssueResponse */ @JsonPropertyOrder({ @@ -605,11 +605,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueIssueResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueIssueResponse + * @throws JacksonException if the JSON string is invalid with respect to StoredValueIssueResponse */ - public static StoredValueIssueResponse fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueIssueResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueIssueResponse.class); } @@ -618,7 +616,7 @@ public static StoredValueIssueResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java index 18121ea93..ab205d3b2 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueLoadRequest */ @JsonPropertyOrder({ @@ -771,10 +771,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueLoadRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueLoadRequest + * @throws JacksonException if the JSON string is invalid with respect to StoredValueLoadRequest */ - public static StoredValueLoadRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueLoadRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueLoadRequest.class); } @@ -783,7 +782,7 @@ public static StoredValueLoadRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java index 43e399cd7..078a06603 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueLoadResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueLoadResponse */ @JsonPropertyOrder({ @@ -539,10 +539,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueLoadResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueLoadResponse + * @throws JacksonException if the JSON string is invalid with respect to StoredValueLoadResponse */ - public static StoredValueLoadResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueLoadResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueLoadResponse.class); } @@ -551,7 +550,7 @@ public static StoredValueLoadResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java index 2e7195de0..f8e00e1cd 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueStatusChangeRequest */ @JsonPropertyOrder({ @@ -785,11 +785,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueStatusChangeRequest */ - public static StoredValueStatusChangeRequest fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueStatusChangeRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeRequest.class); } @@ -798,7 +797,7 @@ public static StoredValueStatusChangeRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java index ac8f457d4..cf90b5253 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueStatusChangeResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueStatusChangeResponse */ @JsonPropertyOrder({ @@ -548,11 +548,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueStatusChangeResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * StoredValueStatusChangeResponse */ public static StoredValueStatusChangeResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueStatusChangeResponse.class); } @@ -561,7 +561,7 @@ public static StoredValueStatusChangeResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java index 1b3cf122b..8345beb59 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** StoredValueVoidRequest */ @JsonPropertyOrder({ @@ -422,10 +422,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueVoidRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueVoidRequest + * @throws JacksonException if the JSON string is invalid with respect to StoredValueVoidRequest */ - public static StoredValueVoidRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueVoidRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueVoidRequest.class); } @@ -434,7 +433,7 @@ public static StoredValueVoidRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java index bac4bb58d..271a41e98 100644 --- a/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java +++ b/src/main/java/com/adyen/model/storedvalue/StoredValueVoidResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** StoredValueVoidResponse */ @JsonPropertyOrder({ @@ -480,10 +480,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueVoidResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueVoidResponse + * @throws JacksonException if the JSON string is invalid with respect to StoredValueVoidResponse */ - public static StoredValueVoidResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueVoidResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueVoidResponse.class); } @@ -492,7 +491,7 @@ public static StoredValueVoidResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AbortRequest.java b/src/main/java/com/adyen/model/tapi/AbortRequest.java index 025766fcc..94b2672f1 100644 --- a/src/main/java/com/adyen/model/tapi/AbortRequest.java +++ b/src/main/java/com/adyen/model/tapi/AbortRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Body of the Abort Request message. It conveys Information requested for identification of the @@ -266,9 +266,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AbortRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AbortRequest + * @throws JacksonException if the JSON string is invalid with respect to AbortRequest */ - public static AbortRequest fromJson(String jsonString) throws JsonProcessingException { + public static AbortRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AbortRequest.class); } @@ -277,7 +277,7 @@ public static AbortRequest fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AdminRequest.java b/src/main/java/com/adyen/model/tapi/AdminRequest.java index 01e274bb5..0c4ebbad3 100644 --- a/src/main/java/com/adyen/model/tapi/AdminRequest.java +++ b/src/main/java/com/adyen/model/tapi/AdminRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Empty. Content of the Custom Admin Request message. */ @JsonPropertyOrder({AdminRequest.JSON_PROPERTY_SERVICE_IDENTIFICATION}) @@ -160,9 +160,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdminRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to AdminRequest + * @throws JacksonException if the JSON string is invalid with respect to AdminRequest */ - public static AdminRequest fromJson(String jsonString) throws JsonProcessingException { + public static AdminRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdminRequest.class); } @@ -171,7 +171,7 @@ public static AdminRequest fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AdminResponse.java b/src/main/java/com/adyen/model/tapi/AdminResponse.java index d2dceb92e..d11a43e30 100644 --- a/src/main/java/com/adyen/model/tapi/AdminResponse.java +++ b/src/main/java/com/adyen/model/tapi/AdminResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** It conveys the result of the Custom Admin. Content of the Custom Admin Response message. */ @JsonPropertyOrder({AdminResponse.JSON_PROPERTY_RESPONSE}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdminResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to AdminResponse + * @throws JacksonException if the JSON string is invalid with respect to AdminResponse */ - public static AdminResponse fromJson(String jsonString) throws JsonProcessingException { + public static AdminResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdminResponse.class); } @@ -169,7 +169,7 @@ public static AdminResponse fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AmountsReq.java b/src/main/java/com/adyen/model/tapi/AmountsReq.java index 5acfa5902..881c2fd06 100644 --- a/src/main/java/com/adyen/model/tapi/AmountsReq.java +++ b/src/main/java/com/adyen/model/tapi/AmountsReq.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** Various amounts related to the payment request from the Sale System. */ @JsonPropertyOrder({ @@ -574,9 +574,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmountsReq - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountsReq + * @throws JacksonException if the JSON string is invalid with respect to AmountsReq */ - public static AmountsReq fromJson(String jsonString) throws JsonProcessingException { + public static AmountsReq fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountsReq.class); } @@ -585,7 +585,7 @@ public static AmountsReq fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AmountsResp.java b/src/main/java/com/adyen/model/tapi/AmountsResp.java index 22294d2fe..30201093a 100644 --- a/src/main/java/com/adyen/model/tapi/AmountsResp.java +++ b/src/main/java/com/adyen/model/tapi/AmountsResp.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** AmountsResp */ @JsonPropertyOrder({ @@ -424,9 +424,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmountsResp - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountsResp + * @throws JacksonException if the JSON string is invalid with respect to AmountsResp */ - public static AmountsResp fromJson(String jsonString) throws JsonProcessingException { + public static AmountsResp fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountsResp.class); } @@ -435,7 +435,7 @@ public static AmountsResp fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/AreaSize.java b/src/main/java/com/adyen/model/tapi/AreaSize.java index 4f7f234fe..edc4cfb7b 100644 --- a/src/main/java/com/adyen/model/tapi/AreaSize.java +++ b/src/main/java/com/adyen/model/tapi/AreaSize.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** AreaSize */ @JsonPropertyOrder({AreaSize.JSON_PROPERTY_X, AreaSize.JSON_PROPERTY_Y}) @@ -217,9 +217,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AreaSize - * @throws JsonProcessingException if the JSON string is invalid with respect to AreaSize + * @throws JacksonException if the JSON string is invalid with respect to AreaSize */ - public static AreaSize fromJson(String jsonString) throws JsonProcessingException { + public static AreaSize fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AreaSize.class); } @@ -228,7 +228,7 @@ public static AreaSize fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/BalanceInquiryRequest.java b/src/main/java/com/adyen/model/tapi/BalanceInquiryRequest.java index f89603bf1..89909cf5a 100644 --- a/src/main/java/com/adyen/model/tapi/BalanceInquiryRequest.java +++ b/src/main/java/com/adyen/model/tapi/BalanceInquiryRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the account for which a Balance Inquiry is requested. Content @@ -213,10 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceInquiryRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceInquiryRequest + * @throws JacksonException if the JSON string is invalid with respect to BalanceInquiryRequest */ - public static BalanceInquiryRequest fromJson(String jsonString) throws JsonProcessingException { + public static BalanceInquiryRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceInquiryRequest.class); } @@ -225,7 +224,7 @@ public static BalanceInquiryRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/BalanceInquiryResponse.java b/src/main/java/com/adyen/model/tapi/BalanceInquiryResponse.java index 919e65f70..338e527e5 100644 --- a/src/main/java/com/adyen/model/tapi/BalanceInquiryResponse.java +++ b/src/main/java/com/adyen/model/tapi/BalanceInquiryResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * Content of the Balance Inquiry Response message. It conveys the balance and the identification of @@ -278,10 +278,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceInquiryResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * BalanceInquiryResponse + * @throws JacksonException if the JSON string is invalid with respect to BalanceInquiryResponse */ - public static BalanceInquiryResponse fromJson(String jsonString) throws JsonProcessingException { + public static BalanceInquiryResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceInquiryResponse.class); } @@ -290,7 +289,7 @@ public static BalanceInquiryResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CapturedSignature.java b/src/main/java/com/adyen/model/tapi/CapturedSignature.java index 675bf566b..0b877de3a 100644 --- a/src/main/java/com/adyen/model/tapi/CapturedSignature.java +++ b/src/main/java/com/adyen/model/tapi/CapturedSignature.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapturedSignature */ @JsonPropertyOrder({ @@ -230,9 +230,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapturedSignature - * @throws JsonProcessingException if the JSON string is invalid with respect to CapturedSignature + * @throws JacksonException if the JSON string is invalid with respect to CapturedSignature */ - public static CapturedSignature fromJson(String jsonString) throws JsonProcessingException { + public static CapturedSignature fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapturedSignature.class); } @@ -241,7 +241,7 @@ public static CapturedSignature fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardAcquisitionRequest.java b/src/main/java/com/adyen/model/tapi/CardAcquisitionRequest.java index 911398b20..6aae87667 100644 --- a/src/main/java/com/adyen/model/tapi/CardAcquisitionRequest.java +++ b/src/main/java/com/adyen/model/tapi/CardAcquisitionRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the payment and loyalty cards to read and analyse. This message @@ -220,10 +220,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardAcquisitionRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardAcquisitionRequest + * @throws JacksonException if the JSON string is invalid with respect to CardAcquisitionRequest */ - public static CardAcquisitionRequest fromJson(String jsonString) throws JsonProcessingException { + public static CardAcquisitionRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardAcquisitionRequest.class); } @@ -232,7 +231,7 @@ public static CardAcquisitionRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardAcquisitionResponse.java b/src/main/java/com/adyen/model/tapi/CardAcquisitionResponse.java index 3167f6248..8786bd45b 100644 --- a/src/main/java/com/adyen/model/tapi/CardAcquisitionResponse.java +++ b/src/main/java/com/adyen/model/tapi/CardAcquisitionResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the payment and loyalty cards read and processed by the POI @@ -440,10 +440,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardAcquisitionResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardAcquisitionResponse + * @throws JacksonException if the JSON string is invalid with respect to CardAcquisitionResponse */ - public static CardAcquisitionResponse fromJson(String jsonString) throws JsonProcessingException { + public static CardAcquisitionResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardAcquisitionResponse.class); } @@ -452,7 +451,7 @@ public static CardAcquisitionResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardAcquisitionTransaction.java b/src/main/java/com/adyen/model/tapi/CardAcquisitionTransaction.java index 766c7a8cb..d2dda2a2a 100644 --- a/src/main/java/com/adyen/model/tapi/CardAcquisitionTransaction.java +++ b/src/main/java/com/adyen/model/tapi/CardAcquisitionTransaction.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CardAcquisitionTransaction */ @JsonPropertyOrder({ @@ -704,11 +704,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardAcquisitionTransaction - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CardAcquisitionTransaction */ - public static CardAcquisitionTransaction fromJson(String jsonString) - throws JsonProcessingException { + public static CardAcquisitionTransaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardAcquisitionTransaction.class); } @@ -717,7 +716,7 @@ public static CardAcquisitionTransaction fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardData.java b/src/main/java/com/adyen/model/tapi/CardData.java index c334dd2fc..040242218 100644 --- a/src/main/java/com/adyen/model/tapi/CardData.java +++ b/src/main/java/com/adyen/model/tapi/CardData.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * Information related to the payment card used for the transaction. Allows acquisition of the card @@ -658,9 +658,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardData - * @throws JsonProcessingException if the JSON string is invalid with respect to CardData + * @throws JacksonException if the JSON string is invalid with respect to CardData */ - public static CardData fromJson(String jsonString) throws JsonProcessingException { + public static CardData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardData.class); } @@ -669,7 +669,7 @@ public static CardData fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardHolderPIN.java b/src/main/java/com/adyen/model/tapi/CardHolderPIN.java index 976b3bd0f..bff1783d7 100644 --- a/src/main/java/com/adyen/model/tapi/CardHolderPIN.java +++ b/src/main/java/com/adyen/model/tapi/CardHolderPIN.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardHolderPIN */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardHolderPIN - * @throws JsonProcessingException if the JSON string is invalid with respect to CardHolderPIN + * @throws JacksonException if the JSON string is invalid with respect to CardHolderPIN */ - public static CardHolderPIN fromJson(String jsonString) throws JsonProcessingException { + public static CardHolderPIN fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardHolderPIN.class); } @@ -273,7 +273,7 @@ public static CardHolderPIN fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardReaderAPDURequest.java b/src/main/java/com/adyen/model/tapi/CardReaderAPDURequest.java index 96cb42bc0..29b8cef23 100644 --- a/src/main/java/com/adyen/model/tapi/CardReaderAPDURequest.java +++ b/src/main/java/com/adyen/model/tapi/CardReaderAPDURequest.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** * It contains the APDU request to send to the chip of the card, and a possible invitation message @@ -433,10 +433,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardReaderAPDURequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardReaderAPDURequest + * @throws JacksonException if the JSON string is invalid with respect to CardReaderAPDURequest */ - public static CardReaderAPDURequest fromJson(String jsonString) throws JsonProcessingException { + public static CardReaderAPDURequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardReaderAPDURequest.class); } @@ -445,7 +444,7 @@ public static CardReaderAPDURequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CardReaderAPDUResponse.java b/src/main/java/com/adyen/model/tapi/CardReaderAPDUResponse.java index 65204a31d..0fb55b93c 100644 --- a/src/main/java/com/adyen/model/tapi/CardReaderAPDUResponse.java +++ b/src/main/java/com/adyen/model/tapi/CardReaderAPDUResponse.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** * Content of the Card Reader APDU Response message. It contains the result of the requested @@ -266,10 +266,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardReaderAPDUResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardReaderAPDUResponse + * @throws JacksonException if the JSON string is invalid with respect to CardReaderAPDUResponse */ - public static CardReaderAPDUResponse fromJson(String jsonString) throws JsonProcessingException { + public static CardReaderAPDUResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardReaderAPDUResponse.class); } @@ -278,7 +277,7 @@ public static CardReaderAPDUResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CheckData.java b/src/main/java/com/adyen/model/tapi/CheckData.java index d129d5377..09498363f 100644 --- a/src/main/java/com/adyen/model/tapi/CheckData.java +++ b/src/main/java/com/adyen/model/tapi/CheckData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Information related to the paper check used for the transaction. Allows the check information to @@ -466,9 +466,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CheckData - * @throws JsonProcessingException if the JSON string is invalid with respect to CheckData + * @throws JacksonException if the JSON string is invalid with respect to CheckData */ - public static CheckData fromJson(String jsonString) throws JsonProcessingException { + public static CheckData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CheckData.class); } @@ -477,7 +477,7 @@ public static CheckData fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ConvertedAmount.java b/src/main/java/com/adyen/model/tapi/ConvertedAmount.java index 7759945d0..d00eb16ca 100644 --- a/src/main/java/com/adyen/model/tapi/ConvertedAmount.java +++ b/src/main/java/com/adyen/model/tapi/ConvertedAmount.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** ConvertedAmount */ @JsonPropertyOrder({ @@ -209,9 +209,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ConvertedAmount - * @throws JsonProcessingException if the JSON string is invalid with respect to ConvertedAmount + * @throws JacksonException if the JSON string is invalid with respect to ConvertedAmount */ - public static ConvertedAmount fromJson(String jsonString) throws JsonProcessingException { + public static ConvertedAmount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ConvertedAmount.class); } @@ -220,7 +220,7 @@ public static ConvertedAmount fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/CurrencyConversion.java b/src/main/java/com/adyen/model/tapi/CurrencyConversion.java index c309b5afb..1dbc6819d 100644 --- a/src/main/java/com/adyen/model/tapi/CurrencyConversion.java +++ b/src/main/java/com/adyen/model/tapi/CurrencyConversion.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * Information related to a currency conversion. A currency conversion occurred in the payment, and @@ -432,10 +432,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CurrencyConversion - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CurrencyConversion + * @throws JacksonException if the JSON string is invalid with respect to CurrencyConversion */ - public static CurrencyConversion fromJson(String jsonString) throws JsonProcessingException { + public static CurrencyConversion fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CurrencyConversion.class); } @@ -444,7 +443,7 @@ public static CurrencyConversion fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/DiagnosisRequest.java b/src/main/java/com/adyen/model/tapi/DiagnosisRequest.java index 1c566dcda..d0d0f97fd 100644 --- a/src/main/java/com/adyen/model/tapi/DiagnosisRequest.java +++ b/src/main/java/com/adyen/model/tapi/DiagnosisRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the target POI for which the diagnosis is requested. Content of @@ -279,9 +279,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DiagnosisRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DiagnosisRequest + * @throws JacksonException if the JSON string is invalid with respect to DiagnosisRequest */ - public static DiagnosisRequest fromJson(String jsonString) throws JsonProcessingException { + public static DiagnosisRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DiagnosisRequest.class); } @@ -290,7 +290,7 @@ public static DiagnosisRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/DiagnosisResponse.java b/src/main/java/com/adyen/model/tapi/DiagnosisResponse.java index daedfe7b7..58945d771 100644 --- a/src/main/java/com/adyen/model/tapi/DiagnosisResponse.java +++ b/src/main/java/com/adyen/model/tapi/DiagnosisResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys the result of the requested diagnosis and a possible message to display on a logical @@ -270,9 +270,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DiagnosisResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DiagnosisResponse + * @throws JacksonException if the JSON string is invalid with respect to DiagnosisResponse */ - public static DiagnosisResponse fromJson(String jsonString) throws JsonProcessingException { + public static DiagnosisResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DiagnosisResponse.class); } @@ -281,7 +281,7 @@ public static DiagnosisResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/DisplayOutput.java b/src/main/java/com/adyen/model/tapi/DisplayOutput.java index e8f0fabc9..17e8a181f 100644 --- a/src/main/java/com/adyen/model/tapi/DisplayOutput.java +++ b/src/main/java/com/adyen/model/tapi/DisplayOutput.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** * Information to display and how to process it. Contains a complete display operation for a Display @@ -497,9 +497,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisplayOutput - * @throws JsonProcessingException if the JSON string is invalid with respect to DisplayOutput + * @throws JacksonException if the JSON string is invalid with respect to DisplayOutput */ - public static DisplayOutput fromJson(String jsonString) throws JsonProcessingException { + public static DisplayOutput fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisplayOutput.class); } @@ -508,7 +508,7 @@ public static DisplayOutput fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/DisplayRequest.java b/src/main/java/com/adyen/model/tapi/DisplayRequest.java index d13bdd354..b0043d964 100644 --- a/src/main/java/com/adyen/model/tapi/DisplayRequest.java +++ b/src/main/java/com/adyen/model/tapi/DisplayRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys the data to display and the way to process the display. It contains the complete @@ -178,9 +178,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisplayRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to DisplayRequest + * @throws JacksonException if the JSON string is invalid with respect to DisplayRequest */ - public static DisplayRequest fromJson(String jsonString) throws JsonProcessingException { + public static DisplayRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisplayRequest.class); } @@ -189,7 +189,7 @@ public static DisplayRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/DisplayResponse.java b/src/main/java/com/adyen/model/tapi/DisplayResponse.java index c75230872..227912efd 100644 --- a/src/main/java/com/adyen/model/tapi/DisplayResponse.java +++ b/src/main/java/com/adyen/model/tapi/DisplayResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys the result of the display, parallel to the message request, except if response not @@ -177,9 +177,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DisplayResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to DisplayResponse + * @throws JacksonException if the JSON string is invalid with respect to DisplayResponse */ - public static DisplayResponse fromJson(String jsonString) throws JsonProcessingException { + public static DisplayResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DisplayResponse.class); } @@ -188,7 +188,7 @@ public static DisplayResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/EnableServiceRequest.java b/src/main/java/com/adyen/model/tapi/EnableServiceRequest.java index ac0ee47f8..ce80e71c0 100644 --- a/src/main/java/com/adyen/model/tapi/EnableServiceRequest.java +++ b/src/main/java/com/adyen/model/tapi/EnableServiceRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * It conveys the services that will be enabled for the POI Terminal without the request of the Sale @@ -335,10 +335,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EnableServiceRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EnableServiceRequest + * @throws JacksonException if the JSON string is invalid with respect to EnableServiceRequest */ - public static EnableServiceRequest fromJson(String jsonString) throws JsonProcessingException { + public static EnableServiceRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EnableServiceRequest.class); } @@ -347,7 +346,7 @@ public static EnableServiceRequest fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/EnableServiceResponse.java b/src/main/java/com/adyen/model/tapi/EnableServiceResponse.java index c3d3bb751..0eb30fe17 100644 --- a/src/main/java/com/adyen/model/tapi/EnableServiceResponse.java +++ b/src/main/java/com/adyen/model/tapi/EnableServiceResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys the result of the Enable Service processing. Content of the Enable Service Response @@ -161,10 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EnableServiceResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EnableServiceResponse + * @throws JacksonException if the JSON string is invalid with respect to EnableServiceResponse */ - public static EnableServiceResponse fromJson(String jsonString) throws JsonProcessingException { + public static EnableServiceResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EnableServiceResponse.class); } @@ -173,7 +172,7 @@ public static EnableServiceResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/EventNotification.java b/src/main/java/com/adyen/model/tapi/EventNotification.java index 5bc103cd6..ab5cc76eb 100644 --- a/src/main/java/com/adyen/model/tapi/EventNotification.java +++ b/src/main/java/com/adyen/model/tapi/EventNotification.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** * Content of the EventNotification message. It conveys Information related to the event, and @@ -451,9 +451,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EventNotification - * @throws JsonProcessingException if the JSON string is invalid with respect to EventNotification + * @throws JacksonException if the JSON string is invalid with respect to EventNotification */ - public static EventNotification fromJson(String jsonString) throws JsonProcessingException { + public static EventNotification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EventNotification.class); } @@ -462,7 +462,7 @@ public static EventNotification fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/GeographicCoordinates.java b/src/main/java/com/adyen/model/tapi/GeographicCoordinates.java index f8c523fef..57f4cbcdf 100644 --- a/src/main/java/com/adyen/model/tapi/GeographicCoordinates.java +++ b/src/main/java/com/adyen/model/tapi/GeographicCoordinates.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GeographicCoordinates */ @JsonPropertyOrder({ @@ -214,10 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GeographicCoordinates - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GeographicCoordinates + * @throws JacksonException if the JSON string is invalid with respect to GeographicCoordinates */ - public static GeographicCoordinates fromJson(String jsonString) throws JsonProcessingException { + public static GeographicCoordinates fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GeographicCoordinates.class); } @@ -226,7 +225,7 @@ public static GeographicCoordinates fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/Geolocation.java b/src/main/java/com/adyen/model/tapi/Geolocation.java index f917cb4fd..cb9ca20dc 100644 --- a/src/main/java/com/adyen/model/tapi/Geolocation.java +++ b/src/main/java/com/adyen/model/tapi/Geolocation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Geolocation */ @JsonPropertyOrder({ @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Geolocation - * @throws JsonProcessingException if the JSON string is invalid with respect to Geolocation + * @throws JacksonException if the JSON string is invalid with respect to Geolocation */ - public static Geolocation fromJson(String jsonString) throws JsonProcessingException { + public static Geolocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Geolocation.class); } @@ -222,7 +222,7 @@ public static Geolocation fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/GetTotalsRequest.java b/src/main/java/com/adyen/model/tapi/GetTotalsRequest.java index 0c419b7ac..300f4293b 100644 --- a/src/main/java/com/adyen/model/tapi/GetTotalsRequest.java +++ b/src/main/java/com/adyen/model/tapi/GetTotalsRequest.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * It conveys information from the Sale System related to the scope and the format of the totals to @@ -290,9 +290,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTotalsRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTotalsRequest + * @throws JacksonException if the JSON string is invalid with respect to GetTotalsRequest */ - public static GetTotalsRequest fromJson(String jsonString) throws JsonProcessingException { + public static GetTotalsRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTotalsRequest.class); } @@ -301,7 +301,7 @@ public static GetTotalsRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/GetTotalsResponse.java b/src/main/java/com/adyen/model/tapi/GetTotalsResponse.java index fbd987649..07293aadb 100644 --- a/src/main/java/com/adyen/model/tapi/GetTotalsResponse.java +++ b/src/main/java/com/adyen/model/tapi/GetTotalsResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * Content of the Reconciliation Response message. It conveys Information related to the @@ -280,9 +280,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GetTotalsResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to GetTotalsResponse + * @throws JacksonException if the JSON string is invalid with respect to GetTotalsResponse */ - public static GetTotalsResponse fromJson(String jsonString) throws JsonProcessingException { + public static GetTotalsResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GetTotalsResponse.class); } @@ -291,7 +291,7 @@ public static GetTotalsResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/HostStatus.java b/src/main/java/com/adyen/model/tapi/HostStatus.java index b3769ca1c..e4d2ac9aa 100644 --- a/src/main/java/com/adyen/model/tapi/HostStatus.java +++ b/src/main/java/com/adyen/model/tapi/HostStatus.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Indicate the reachability of the host by the POI Terminal. State of a Host. */ @JsonPropertyOrder({ @@ -208,9 +208,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HostStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to HostStatus + * @throws JacksonException if the JSON string is invalid with respect to HostStatus */ - public static HostStatus fromJson(String jsonString) throws JsonProcessingException { + public static HostStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HostStatus.class); } @@ -219,7 +219,7 @@ public static HostStatus fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ICCResetData.java b/src/main/java/com/adyen/model/tapi/ICCResetData.java index c37587aab..b60926502 100644 --- a/src/main/java/com/adyen/model/tapi/ICCResetData.java +++ b/src/main/java/com/adyen/model/tapi/ICCResetData.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** ICCResetData */ @JsonPropertyOrder({ @@ -213,9 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ICCResetData - * @throws JsonProcessingException if the JSON string is invalid with respect to ICCResetData + * @throws JacksonException if the JSON string is invalid with respect to ICCResetData */ - public static ICCResetData fromJson(String jsonString) throws JsonProcessingException { + public static ICCResetData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ICCResetData.class); } @@ -224,7 +224,7 @@ public static ICCResetData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/Input.java b/src/main/java/com/adyen/model/tapi/Input.java index 6dce6773c..33799b143 100644 --- a/src/main/java/com/adyen/model/tapi/Input.java +++ b/src/main/java/com/adyen/model/tapi/Input.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Input */ @JsonPropertyOrder({ @@ -502,9 +502,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Input - * @throws JsonProcessingException if the JSON string is invalid with respect to Input + * @throws JacksonException if the JSON string is invalid with respect to Input */ - public static Input fromJson(String jsonString) throws JsonProcessingException { + public static Input fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Input.class); } @@ -513,7 +513,7 @@ public static Input fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/InputData.java b/src/main/java/com/adyen/model/tapi/InputData.java index d5945b0ed..f4fb76888 100644 --- a/src/main/java/com/adyen/model/tapi/InputData.java +++ b/src/main/java/com/adyen/model/tapi/InputData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InputData */ @JsonPropertyOrder({ @@ -1312,9 +1312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputData - * @throws JsonProcessingException if the JSON string is invalid with respect to InputData + * @throws JacksonException if the JSON string is invalid with respect to InputData */ - public static InputData fromJson(String jsonString) throws JsonProcessingException { + public static InputData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputData.class); } @@ -1323,7 +1323,7 @@ public static InputData fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/InputRequest.java b/src/main/java/com/adyen/model/tapi/InputRequest.java index 1ecc38126..59404e640 100644 --- a/src/main/java/com/adyen/model/tapi/InputRequest.java +++ b/src/main/java/com/adyen/model/tapi/InputRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Content of the `InputRequest` message. It conveys the data to display and how to @@ -212,9 +212,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to InputRequest + * @throws JacksonException if the JSON string is invalid with respect to InputRequest */ - public static InputRequest fromJson(String jsonString) throws JsonProcessingException { + public static InputRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputRequest.class); } @@ -223,7 +223,7 @@ public static InputRequest fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/InputResponse.java b/src/main/java/com/adyen/model/tapi/InputResponse.java index d242c43d3..b1a2cfb33 100644 --- a/src/main/java/com/adyen/model/tapi/InputResponse.java +++ b/src/main/java/com/adyen/model/tapi/InputResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys the result of the input or the result of the outputs, parallel to the message request, @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to InputResponse + * @throws JacksonException if the JSON string is invalid with respect to InputResponse */ - public static InputResponse fromJson(String jsonString) throws JsonProcessingException { + public static InputResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputResponse.class); } @@ -222,7 +222,7 @@ public static InputResponse fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/InputResult.java b/src/main/java/com/adyen/model/tapi/InputResult.java index 262989073..3dbe45e9e 100644 --- a/src/main/java/com/adyen/model/tapi/InputResult.java +++ b/src/main/java/com/adyen/model/tapi/InputResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InputResult */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputResult - * @throws JsonProcessingException if the JSON string is invalid with respect to InputResult + * @throws JacksonException if the JSON string is invalid with respect to InputResult */ - public static InputResult fromJson(String jsonString) throws JsonProcessingException { + public static InputResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputResult.class); } @@ -323,7 +323,7 @@ public static InputResult fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/InputUpdate.java b/src/main/java/com/adyen/model/tapi/InputUpdate.java index fa504b49b..604c57540 100644 --- a/src/main/java/com/adyen/model/tapi/InputUpdate.java +++ b/src/main/java/com/adyen/model/tapi/InputUpdate.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** * Definition: Content of the Input Update message. : It conveys update of the display of an Input @@ -476,9 +476,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InputUpdate - * @throws JsonProcessingException if the JSON string is invalid with respect to InputUpdate + * @throws JacksonException if the JSON string is invalid with respect to InputUpdate */ - public static InputUpdate fromJson(String jsonString) throws JsonProcessingException { + public static InputUpdate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InputUpdate.class); } @@ -487,7 +487,7 @@ public static InputUpdate fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/Instalment.java b/src/main/java/com/adyen/model/tapi/Instalment.java index b2482149a..442171b0c 100644 --- a/src/main/java/com/adyen/model/tapi/Instalment.java +++ b/src/main/java/com/adyen/model/tapi/Instalment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** Instalment */ @JsonPropertyOrder({ @@ -632,9 +632,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Instalment - * @throws JsonProcessingException if the JSON string is invalid with respect to Instalment + * @throws JacksonException if the JSON string is invalid with respect to Instalment */ - public static Instalment fromJson(String jsonString) throws JsonProcessingException { + public static Instalment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Instalment.class); } @@ -643,7 +643,7 @@ public static Instalment fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/JSON.java b/src/main/java/com/adyen/model/tapi/JSON.java index c6d11b4e9..86fe25fa8 100644 --- a/src/main/java/com/adyen/model/tapi/JSON.java +++ b/src/main/java/com/adyen/model/tapi/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/tapi/LoginRequest.java b/src/main/java/com/adyen/model/tapi/LoginRequest.java index 444217857..f85afb133 100644 --- a/src/main/java/com/adyen/model/tapi/LoginRequest.java +++ b/src/main/java/com/adyen/model/tapi/LoginRequest.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * It conveys information related to the session (period between a Login and the following Logout) @@ -718,9 +718,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoginRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to LoginRequest + * @throws JacksonException if the JSON string is invalid with respect to LoginRequest */ - public static LoginRequest fromJson(String jsonString) throws JsonProcessingException { + public static LoginRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoginRequest.class); } @@ -729,7 +729,7 @@ public static LoginRequest fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoginResponse.java b/src/main/java/com/adyen/model/tapi/LoginResponse.java index f4037fc12..d3cf5e4bc 100644 --- a/src/main/java/com/adyen/model/tapi/LoginResponse.java +++ b/src/main/java/com/adyen/model/tapi/LoginResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Login to process. Content of the Login Response message. @@ -264,9 +264,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoginResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to LoginResponse + * @throws JacksonException if the JSON string is invalid with respect to LoginResponse */ - public static LoginResponse fromJson(String jsonString) throws JsonProcessingException { + public static LoginResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoginResponse.class); } @@ -275,7 +275,7 @@ public static LoginResponse fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LogoutRequest.java b/src/main/java/com/adyen/model/tapi/LogoutRequest.java index 5e878d841..d3a6ddb39 100644 --- a/src/main/java/com/adyen/model/tapi/LogoutRequest.java +++ b/src/main/java/com/adyen/model/tapi/LogoutRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Empty. Content of the Logout Request message. */ @JsonPropertyOrder({LogoutRequest.JSON_PROPERTY_MAINTENANCE_ALLOWED}) @@ -167,9 +167,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LogoutRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to LogoutRequest + * @throws JacksonException if the JSON string is invalid with respect to LogoutRequest */ - public static LogoutRequest fromJson(String jsonString) throws JsonProcessingException { + public static LogoutRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LogoutRequest.class); } @@ -178,7 +178,7 @@ public static LogoutRequest fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LogoutResponse.java b/src/main/java/com/adyen/model/tapi/LogoutResponse.java index be97c4b12..a6ca69891 100644 --- a/src/main/java/com/adyen/model/tapi/LogoutResponse.java +++ b/src/main/java/com/adyen/model/tapi/LogoutResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** It conveys the result of the Logout. Content of the Logout Response message. */ @JsonPropertyOrder({LogoutResponse.JSON_PROPERTY_RESPONSE}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LogoutResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to LogoutResponse + * @throws JacksonException if the JSON string is invalid with respect to LogoutResponse */ - public static LogoutResponse fromJson(String jsonString) throws JsonProcessingException { + public static LogoutResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LogoutResponse.class); } @@ -169,7 +169,7 @@ public static LogoutResponse fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyAccount.java b/src/main/java/com/adyen/model/tapi/LoyaltyAccount.java index d53940717..0ef70576b 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyAccount.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyAccount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * This data structure conveys the identification of the account and the associated loyalty brand. @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyAccount - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyAccount + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyAccount */ - public static LoyaltyAccount fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyAccount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyAccount.class); } @@ -222,7 +222,7 @@ public static LoyaltyAccount fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyAccountID.java b/src/main/java/com/adyen/model/tapi/LoyaltyAccountID.java index cda337775..193086e79 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyAccountID.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyAccountID.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * Identification of a Loyalty account. In the Payment Request message, it allows to identify the @@ -392,9 +392,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyAccountID - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyAccountID + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyAccountID */ - public static LoyaltyAccountID fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyAccountID fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyAccountID.class); } @@ -403,7 +403,7 @@ public static LoyaltyAccountID fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyAccountReq.java b/src/main/java/com/adyen/model/tapi/LoyaltyAccountReq.java index 0596d3d07..6b4ec1823 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyAccountReq.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyAccountReq.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LoyaltyAccountReq */ @JsonPropertyOrder({ @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyAccountReq - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyAccountReq + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyAccountReq */ - public static LoyaltyAccountReq fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyAccountReq fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyAccountReq.class); } @@ -226,7 +226,7 @@ public static LoyaltyAccountReq fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyAcquirerData.java b/src/main/java/com/adyen/model/tapi/LoyaltyAcquirerData.java index 06dcd406f..18819b1fc 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyAcquirerData.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyAcquirerData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** LoyaltyAcquirerData */ @JsonPropertyOrder({ @@ -336,10 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyAcquirerData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * LoyaltyAcquirerData + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyAcquirerData */ - public static LoyaltyAcquirerData fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyAcquirerData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyAcquirerData.class); } @@ -348,7 +347,7 @@ public static LoyaltyAcquirerData fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyData.java b/src/main/java/com/adyen/model/tapi/LoyaltyData.java index 165f1ff26..ea277ecf7 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyData.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * In the Payment, Loyalty or Balance Inquiry Request message, it allows the Sale Terminal to send @@ -219,9 +219,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyData - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyData + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyData */ - public static LoyaltyData fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyData.class); } @@ -230,7 +230,7 @@ public static LoyaltyData fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyResponse.java b/src/main/java/com/adyen/model/tapi/LoyaltyResponse.java index c7404a06b..7c6c569cc 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyResponse.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Loyalty transaction processed by the POI System. Content of @@ -386,9 +386,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyResponse + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyResponse */ - public static LoyaltyResponse fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyResponse.class); } @@ -397,7 +397,7 @@ public static LoyaltyResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/LoyaltyResult.java b/src/main/java/com/adyen/model/tapi/LoyaltyResult.java index 2092bb8e2..62624a791 100644 --- a/src/main/java/com/adyen/model/tapi/LoyaltyResult.java +++ b/src/main/java/com/adyen/model/tapi/LoyaltyResult.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * Data related to the result of a processed loyalty transaction. In the Message Response, the @@ -272,9 +272,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of LoyaltyResult - * @throws JsonProcessingException if the JSON string is invalid with respect to LoyaltyResult + * @throws JacksonException if the JSON string is invalid with respect to LoyaltyResult */ - public static LoyaltyResult fromJson(String jsonString) throws JsonProcessingException { + public static LoyaltyResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, LoyaltyResult.class); } @@ -283,7 +283,7 @@ public static LoyaltyResult fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/MenuEntry.java b/src/main/java/com/adyen/model/tapi/MenuEntry.java index 3b5af3b8c..07a1ec87f 100644 --- a/src/main/java/com/adyen/model/tapi/MenuEntry.java +++ b/src/main/java/com/adyen/model/tapi/MenuEntry.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** * An entry of the menu to present to the Cashier. It conveys message text and parameters of the @@ -447,9 +447,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MenuEntry - * @throws JsonProcessingException if the JSON string is invalid with respect to MenuEntry + * @throws JacksonException if the JSON string is invalid with respect to MenuEntry */ - public static MenuEntry fromJson(String jsonString) throws JsonProcessingException { + public static MenuEntry fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MenuEntry.class); } @@ -458,7 +458,7 @@ public static MenuEntry fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/MessageHeader.java b/src/main/java/com/adyen/model/tapi/MessageHeader.java index b728d8ed5..7608d67f4 100644 --- a/src/main/java/com/adyen/model/tapi/MessageHeader.java +++ b/src/main/java/com/adyen/model/tapi/MessageHeader.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Message header of the Sale to POI protocol message. It conveys Information related to the Sale to @@ -524,9 +524,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MessageHeader - * @throws JsonProcessingException if the JSON string is invalid with respect to MessageHeader + * @throws JacksonException if the JSON string is invalid with respect to MessageHeader */ - public static MessageHeader fromJson(String jsonString) throws JsonProcessingException { + public static MessageHeader fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MessageHeader.class); } @@ -535,7 +535,7 @@ public static MessageHeader fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/MessageReference.java b/src/main/java/com/adyen/model/tapi/MessageReference.java index 73e991b5f..2f40161a2 100644 --- a/src/main/java/com/adyen/model/tapi/MessageReference.java +++ b/src/main/java/com/adyen/model/tapi/MessageReference.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Identification of a previous POI transaction. To abort a transaction in progress or to request @@ -378,9 +378,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MessageReference - * @throws JsonProcessingException if the JSON string is invalid with respect to MessageReference + * @throws JacksonException if the JSON string is invalid with respect to MessageReference */ - public static MessageReference fromJson(String jsonString) throws JsonProcessingException { + public static MessageReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MessageReference.class); } @@ -389,7 +389,7 @@ public static MessageReference fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/MobileData.java b/src/main/java/com/adyen/model/tapi/MobileData.java index a30dec6e8..3ea21a940 100644 --- a/src/main/java/com/adyen/model/tapi/MobileData.java +++ b/src/main/java/com/adyen/model/tapi/MobileData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Mobile phone is used as a payment instrument for the transaction. Information related to the @@ -428,9 +428,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MobileData - * @throws JsonProcessingException if the JSON string is invalid with respect to MobileData + * @throws JacksonException if the JSON string is invalid with respect to MobileData */ - public static MobileData fromJson(String jsonString) throws JsonProcessingException { + public static MobileData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MobileData.class); } @@ -439,7 +439,7 @@ public static MobileData fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/OriginalPOITransaction.java b/src/main/java/com/adyen/model/tapi/OriginalPOITransaction.java index 27086875d..9e6a799eb 100644 --- a/src/main/java/com/adyen/model/tapi/OriginalPOITransaction.java +++ b/src/main/java/com/adyen/model/tapi/OriginalPOITransaction.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * Identification of a previous POI transaction. In the Payment Request message, it allows using the @@ -527,10 +527,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OriginalPOITransaction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * OriginalPOITransaction + * @throws JacksonException if the JSON string is invalid with respect to OriginalPOITransaction */ - public static OriginalPOITransaction fromJson(String jsonString) throws JsonProcessingException { + public static OriginalPOITransaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OriginalPOITransaction.class); } @@ -539,7 +538,7 @@ public static OriginalPOITransaction fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/OutputBarcode.java b/src/main/java/com/adyen/model/tapi/OutputBarcode.java index 9edb2f83a..007d4e89c 100644 --- a/src/main/java/com/adyen/model/tapi/OutputBarcode.java +++ b/src/main/java/com/adyen/model/tapi/OutputBarcode.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** OutputBarcode */ @JsonPropertyOrder({OutputBarcode.JSON_PROPERTY_BARCODE_VALUE}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OutputBarcode - * @throws JsonProcessingException if the JSON string is invalid with respect to OutputBarcode + * @throws JacksonException if the JSON string is invalid with respect to OutputBarcode */ - public static OutputBarcode fromJson(String jsonString) throws JsonProcessingException { + public static OutputBarcode fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OutputBarcode.class); } @@ -169,7 +169,7 @@ public static OutputBarcode fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/OutputContent.java b/src/main/java/com/adyen/model/tapi/OutputContent.java index eb47806a0..d7705c2ab 100644 --- a/src/main/java/com/adyen/model/tapi/OutputContent.java +++ b/src/main/java/com/adyen/model/tapi/OutputContent.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import tools.jackson.core.JacksonException; /** Content to display or print. This is a sequence of elements if they have different formats. */ @JsonPropertyOrder({ @@ -388,9 +388,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OutputContent - * @throws JsonProcessingException if the JSON string is invalid with respect to OutputContent + * @throws JacksonException if the JSON string is invalid with respect to OutputContent */ - public static OutputContent fromJson(String jsonString) throws JsonProcessingException { + public static OutputContent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OutputContent.class); } @@ -399,7 +399,7 @@ public static OutputContent fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/OutputResult.java b/src/main/java/com/adyen/model/tapi/OutputResult.java index 849e06739..52d391c5d 100644 --- a/src/main/java/com/adyen/model/tapi/OutputResult.java +++ b/src/main/java/com/adyen/model/tapi/OutputResult.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * In the message response, it contains the result of the output, if required in the message @@ -260,9 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OutputResult - * @throws JsonProcessingException if the JSON string is invalid with respect to OutputResult + * @throws JacksonException if the JSON string is invalid with respect to OutputResult */ - public static OutputResult fromJson(String jsonString) throws JsonProcessingException { + public static OutputResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OutputResult.class); } @@ -271,7 +271,7 @@ public static OutputResult fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/OutputText.java b/src/main/java/com/adyen/model/tapi/OutputText.java index 0be7e79c6..c59835ec6 100644 --- a/src/main/java/com/adyen/model/tapi/OutputText.java +++ b/src/main/java/com/adyen/model/tapi/OutputText.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Content of text message to display or print. It conveys information related to the content of the @@ -578,9 +578,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of OutputText - * @throws JsonProcessingException if the JSON string is invalid with respect to OutputText + * @throws JacksonException if the JSON string is invalid with respect to OutputText */ - public static OutputText fromJson(String jsonString) throws JsonProcessingException { + public static OutputText fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, OutputText.class); } @@ -589,7 +589,7 @@ public static OutputText fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/POIData.java b/src/main/java/com/adyen/model/tapi/POIData.java index 6fa3ebd61..a7970fa73 100644 --- a/src/main/java/com/adyen/model/tapi/POIData.java +++ b/src/main/java/com/adyen/model/tapi/POIData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Data related to the POI System. In the Message Response, identification of the POI transaction. @@ -216,9 +216,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of POIData - * @throws JsonProcessingException if the JSON string is invalid with respect to POIData + * @throws JacksonException if the JSON string is invalid with respect to POIData */ - public static POIData fromJson(String jsonString) throws JsonProcessingException { + public static POIData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, POIData.class); } @@ -227,7 +227,7 @@ public static POIData fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/POISoftware.java b/src/main/java/com/adyen/model/tapi/POISoftware.java index 92e10ba58..feffe77ad 100644 --- a/src/main/java/com/adyen/model/tapi/POISoftware.java +++ b/src/main/java/com/adyen/model/tapi/POISoftware.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Information related to the software of the POI System which manages the Sale to POI protocol. In @@ -349,9 +349,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of POISoftware - * @throws JsonProcessingException if the JSON string is invalid with respect to POISoftware + * @throws JacksonException if the JSON string is invalid with respect to POISoftware */ - public static POISoftware fromJson(String jsonString) throws JsonProcessingException { + public static POISoftware fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, POISoftware.class); } @@ -360,7 +360,7 @@ public static POISoftware fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/POIStatus.java b/src/main/java/com/adyen/model/tapi/POIStatus.java index ceda8ee30..c3813a65f 100644 --- a/src/main/java/com/adyen/model/tapi/POIStatus.java +++ b/src/main/java/com/adyen/model/tapi/POIStatus.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Indicate the availability of the POI Terminal components. The data element is absent if the @@ -493,9 +493,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of POIStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to POIStatus + * @throws JacksonException if the JSON string is invalid with respect to POIStatus */ - public static POIStatus fromJson(String jsonString) throws JsonProcessingException { + public static POIStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, POIStatus.class); } @@ -504,7 +504,7 @@ public static POIStatus fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/POISystemData.java b/src/main/java/com/adyen/model/tapi/POISystemData.java index cacf8359e..b63693f59 100644 --- a/src/main/java/com/adyen/model/tapi/POISystemData.java +++ b/src/main/java/com/adyen/model/tapi/POISystemData.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** POISystemData */ @JsonPropertyOrder({ @@ -261,9 +261,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of POISystemData - * @throws JsonProcessingException if the JSON string is invalid with respect to POISystemData + * @throws JacksonException if the JSON string is invalid with respect to POISystemData */ - public static POISystemData fromJson(String jsonString) throws JsonProcessingException { + public static POISystemData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, POISystemData.class); } @@ -272,7 +272,7 @@ public static POISystemData fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentAccountReq.java b/src/main/java/com/adyen/model/tapi/PaymentAccountReq.java index 73bc96e27..da6b88e08 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentAccountReq.java +++ b/src/main/java/com/adyen/model/tapi/PaymentAccountReq.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentAccountReq */ @JsonPropertyOrder({ @@ -268,9 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentAccountReq - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentAccountReq + * @throws JacksonException if the JSON string is invalid with respect to PaymentAccountReq */ - public static PaymentAccountReq fromJson(String jsonString) throws JsonProcessingException { + public static PaymentAccountReq fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentAccountReq.class); } @@ -279,7 +279,7 @@ public static PaymentAccountReq fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentAccountStatus.java b/src/main/java/com/adyen/model/tapi/PaymentAccountStatus.java index 217083c7e..cbf35249c 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentAccountStatus.java +++ b/src/main/java/com/adyen/model/tapi/PaymentAccountStatus.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentAccountStatus */ @JsonPropertyOrder({ @@ -320,10 +320,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentAccountStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentAccountStatus + * @throws JacksonException if the JSON string is invalid with respect to PaymentAccountStatus */ - public static PaymentAccountStatus fromJson(String jsonString) throws JsonProcessingException { + public static PaymentAccountStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentAccountStatus.class); } @@ -332,7 +331,7 @@ public static PaymentAccountStatus fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentAcquirerData.java b/src/main/java/com/adyen/model/tapi/PaymentAcquirerData.java index ebf08d75c..808ae060f 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentAcquirerData.java +++ b/src/main/java/com/adyen/model/tapi/PaymentAcquirerData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Data related to the response from the payment Acquirer. */ @JsonPropertyOrder({ @@ -430,10 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentAcquirerData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentAcquirerData + * @throws JacksonException if the JSON string is invalid with respect to PaymentAcquirerData */ - public static PaymentAcquirerData fromJson(String jsonString) throws JsonProcessingException { + public static PaymentAcquirerData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentAcquirerData.class); } @@ -442,7 +441,7 @@ public static PaymentAcquirerData fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentData.java b/src/main/java/com/adyen/model/tapi/PaymentData.java index 377225731..aee87f95d 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentData.java +++ b/src/main/java/com/adyen/model/tapi/PaymentData.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentData */ @JsonPropertyOrder({ @@ -438,9 +438,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentData - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentData + * @throws JacksonException if the JSON string is invalid with respect to PaymentData */ - public static PaymentData fromJson(String jsonString) throws JsonProcessingException { + public static PaymentData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentData.class); } @@ -449,7 +449,7 @@ public static PaymentData fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentInstrumentData.java b/src/main/java/com/adyen/model/tapi/PaymentInstrumentData.java index da0303393..5715f7f9b 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentInstrumentData.java +++ b/src/main/java/com/adyen/model/tapi/PaymentInstrumentData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Data related to the instrument of payment for the transaction. Sent in the result of the payment @@ -428,10 +428,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrumentData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentInstrumentData + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrumentData */ - public static PaymentInstrumentData fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrumentData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrumentData.class); } @@ -440,7 +439,7 @@ public static PaymentInstrumentData fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentReceipt.java b/src/main/java/com/adyen/model/tapi/PaymentReceipt.java index b80a2d33a..210513ef8 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentReceipt.java +++ b/src/main/java/com/adyen/model/tapi/PaymentReceipt.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and @@ -323,9 +323,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentReceipt - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentReceipt + * @throws JacksonException if the JSON string is invalid with respect to PaymentReceipt */ - public static PaymentReceipt fromJson(String jsonString) throws JsonProcessingException { + public static PaymentReceipt fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentReceipt.class); } @@ -334,7 +334,7 @@ public static PaymentReceipt fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentRequest.java b/src/main/java/com/adyen/model/tapi/PaymentRequest.java index bd1763afc..be0568d0b 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentRequest.java +++ b/src/main/java/com/adyen/model/tapi/PaymentRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * Request sent to terminal to initiate payment. It conveys Information related to the Payment @@ -331,9 +331,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentRequest + * @throws JacksonException if the JSON string is invalid with respect to PaymentRequest */ - public static PaymentRequest fromJson(String jsonString) throws JsonProcessingException { + public static PaymentRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentRequest.class); } @@ -342,7 +342,7 @@ public static PaymentRequest fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentResponse.java b/src/main/java/com/adyen/model/tapi/PaymentResponse.java index 8c34267f3..991b6f3a4 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentResponse.java +++ b/src/main/java/com/adyen/model/tapi/PaymentResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Payment transaction processed by the POI System. Content of @@ -448,9 +448,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentResponse + * @throws JacksonException if the JSON string is invalid with respect to PaymentResponse */ - public static PaymentResponse fromJson(String jsonString) throws JsonProcessingException { + public static PaymentResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentResponse.class); } @@ -459,7 +459,7 @@ public static PaymentResponse fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentResult.java b/src/main/java/com/adyen/model/tapi/PaymentResult.java index 82978b0cb..7ed4b0034 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentResult.java +++ b/src/main/java/com/adyen/model/tapi/PaymentResult.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PaymentResult */ @JsonPropertyOrder({ @@ -946,9 +946,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentResult - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentResult + * @throws JacksonException if the JSON string is invalid with respect to PaymentResult */ - public static PaymentResult fromJson(String jsonString) throws JsonProcessingException { + public static PaymentResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentResult.class); } @@ -957,7 +957,7 @@ public static PaymentResult fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentToken.java b/src/main/java/com/adyen/model/tapi/PaymentToken.java index 70884868f..3324a6ad1 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentToken.java +++ b/src/main/java/com/adyen/model/tapi/PaymentToken.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** * Surrogate of the PAN (Primary Account Number) of the payment card to identify the payment mean of @@ -272,9 +272,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentToken - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentToken + * @throws JacksonException if the JSON string is invalid with respect to PaymentToken */ - public static PaymentToken fromJson(String jsonString) throws JsonProcessingException { + public static PaymentToken fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentToken.class); } @@ -283,7 +283,7 @@ public static PaymentToken fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentTotals.java b/src/main/java/com/adyen/model/tapi/PaymentTotals.java index 59973c7fd..8f61d884d 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentTotals.java +++ b/src/main/java/com/adyen/model/tapi/PaymentTotals.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** Totals of the payment transaction during the reconciliation period. */ @JsonPropertyOrder({ @@ -263,9 +263,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentTotals - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentTotals + * @throws JacksonException if the JSON string is invalid with respect to PaymentTotals */ - public static PaymentTotals fromJson(String jsonString) throws JsonProcessingException { + public static PaymentTotals fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentTotals.class); } @@ -274,7 +274,7 @@ public static PaymentTotals fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PaymentTransaction.java b/src/main/java/com/adyen/model/tapi/PaymentTransaction.java index c7dd20941..7b85371c2 100644 --- a/src/main/java/com/adyen/model/tapi/PaymentTransaction.java +++ b/src/main/java/com/adyen/model/tapi/PaymentTransaction.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentTransaction */ @JsonPropertyOrder({ @@ -268,10 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentTransaction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PaymentTransaction + * @throws JacksonException if the JSON string is invalid with respect to PaymentTransaction */ - public static PaymentTransaction fromJson(String jsonString) throws JsonProcessingException { + public static PaymentTransaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentTransaction.class); } @@ -280,7 +279,7 @@ public static PaymentTransaction fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PerformedTransaction.java b/src/main/java/com/adyen/model/tapi/PerformedTransaction.java index 90c4d068c..936256872 100644 --- a/src/main/java/com/adyen/model/tapi/PerformedTransaction.java +++ b/src/main/java/com/adyen/model/tapi/PerformedTransaction.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** PerformedTransaction */ @JsonPropertyOrder({ @@ -423,10 +423,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PerformedTransaction - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PerformedTransaction + * @throws JacksonException if the JSON string is invalid with respect to PerformedTransaction */ - public static PerformedTransaction fromJson(String jsonString) throws JsonProcessingException { + public static PerformedTransaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PerformedTransaction.class); } @@ -435,7 +434,7 @@ public static PerformedTransaction fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/Point.java b/src/main/java/com/adyen/model/tapi/Point.java index 92505444e..9f5a70c9b 100644 --- a/src/main/java/com/adyen/model/tapi/Point.java +++ b/src/main/java/com/adyen/model/tapi/Point.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Point */ @JsonPropertyOrder({Point.JSON_PROPERTY_X, Point.JSON_PROPERTY_Y}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Point - * @throws JsonProcessingException if the JSON string is invalid with respect to Point + * @throws JacksonException if the JSON string is invalid with respect to Point */ - public static Point fromJson(String jsonString) throws JsonProcessingException { + public static Point fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Point.class); } @@ -216,7 +216,7 @@ public static Point fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PredefinedContent.java b/src/main/java/com/adyen/model/tapi/PredefinedContent.java index 0bbf42a90..5e81fcdb6 100644 --- a/src/main/java/com/adyen/model/tapi/PredefinedContent.java +++ b/src/main/java/com/adyen/model/tapi/PredefinedContent.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Reference of a predefined message to display or print. It conveys information related to the @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PredefinedContent - * @throws JsonProcessingException if the JSON string is invalid with respect to PredefinedContent + * @throws JacksonException if the JSON string is invalid with respect to PredefinedContent */ - public static PredefinedContent fromJson(String jsonString) throws JsonProcessingException { + public static PredefinedContent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PredefinedContent.class); } @@ -222,7 +222,7 @@ public static PredefinedContent fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PrintOutput.java b/src/main/java/com/adyen/model/tapi/PrintOutput.java index c664d9dfc..d1d6d7d0c 100644 --- a/src/main/java/com/adyen/model/tapi/PrintOutput.java +++ b/src/main/java/com/adyen/model/tapi/PrintOutput.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PrintOutput */ @JsonPropertyOrder({ @@ -387,9 +387,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PrintOutput - * @throws JsonProcessingException if the JSON string is invalid with respect to PrintOutput + * @throws JacksonException if the JSON string is invalid with respect to PrintOutput */ - public static PrintOutput fromJson(String jsonString) throws JsonProcessingException { + public static PrintOutput fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PrintOutput.class); } @@ -398,7 +398,7 @@ public static PrintOutput fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PrintRequest.java b/src/main/java/com/adyen/model/tapi/PrintRequest.java index 3edb8cd33..2828c2d7f 100644 --- a/src/main/java/com/adyen/model/tapi/PrintRequest.java +++ b/src/main/java/com/adyen/model/tapi/PrintRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Content of the Print Request message. It conveys the complete data to print and how to process @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PrintRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to PrintRequest + * @throws JacksonException if the JSON string is invalid with respect to PrintRequest */ - public static PrintRequest fromJson(String jsonString) throws JsonProcessingException { + public static PrintRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PrintRequest.class); } @@ -172,7 +172,7 @@ public static PrintRequest fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/PrintResponse.java b/src/main/java/com/adyen/model/tapi/PrintResponse.java index 1e3f8b0cb..235689935 100644 --- a/src/main/java/com/adyen/model/tapi/PrintResponse.java +++ b/src/main/java/com/adyen/model/tapi/PrintResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys the result of the print, parallel to the message request, except if response not @@ -211,9 +211,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PrintResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to PrintResponse + * @throws JacksonException if the JSON string is invalid with respect to PrintResponse */ - public static PrintResponse fromJson(String jsonString) throws JsonProcessingException { + public static PrintResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PrintResponse.class); } @@ -222,7 +222,7 @@ public static PrintResponse fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ReconciliationRequest.java b/src/main/java/com/adyen/model/tapi/ReconciliationRequest.java index 484ce07dd..6ac26aea0 100644 --- a/src/main/java/com/adyen/model/tapi/ReconciliationRequest.java +++ b/src/main/java/com/adyen/model/tapi/ReconciliationRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * Content of the Reconciliation Request message. It conveys Information related to the @@ -291,10 +291,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReconciliationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReconciliationRequest + * @throws JacksonException if the JSON string is invalid with respect to ReconciliationRequest */ - public static ReconciliationRequest fromJson(String jsonString) throws JsonProcessingException { + public static ReconciliationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReconciliationRequest.class); } @@ -303,7 +302,7 @@ public static ReconciliationRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ReconciliationResponse.java b/src/main/java/com/adyen/model/tapi/ReconciliationResponse.java index 1d8eec7bf..112641ace 100644 --- a/src/main/java/com/adyen/model/tapi/ReconciliationResponse.java +++ b/src/main/java/com/adyen/model/tapi/ReconciliationResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Reconciliation transaction processed by the POI System. @@ -339,10 +339,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReconciliationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReconciliationResponse + * @throws JacksonException if the JSON string is invalid with respect to ReconciliationResponse */ - public static ReconciliationResponse fromJson(String jsonString) throws JsonProcessingException { + public static ReconciliationResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReconciliationResponse.class); } @@ -351,7 +350,7 @@ public static ReconciliationResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/RepeatedMessageResponse.java b/src/main/java/com/adyen/model/tapi/RepeatedMessageResponse.java index f64b7291a..452084ffd 100644 --- a/src/main/java/com/adyen/model/tapi/RepeatedMessageResponse.java +++ b/src/main/java/com/adyen/model/tapi/RepeatedMessageResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RepeatedMessageResponse */ @JsonPropertyOrder({ @@ -221,10 +221,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RepeatedMessageResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RepeatedMessageResponse + * @throws JacksonException if the JSON string is invalid with respect to RepeatedMessageResponse */ - public static RepeatedMessageResponse fromJson(String jsonString) throws JsonProcessingException { + public static RepeatedMessageResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RepeatedMessageResponse.class); } @@ -233,7 +232,7 @@ public static RepeatedMessageResponse fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/RepeatedResponseMessageBody.java b/src/main/java/com/adyen/model/tapi/RepeatedResponseMessageBody.java index 7530f98a9..3aa243ff4 100644 --- a/src/main/java/com/adyen/model/tapi/RepeatedResponseMessageBody.java +++ b/src/main/java/com/adyen/model/tapi/RepeatedResponseMessageBody.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RepeatedResponseMessageBody */ @JsonPropertyOrder({ @@ -430,11 +430,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RepeatedResponseMessageBody - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RepeatedResponseMessageBody */ - public static RepeatedResponseMessageBody fromJson(String jsonString) - throws JsonProcessingException { + public static RepeatedResponseMessageBody fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RepeatedResponseMessageBody.class); } @@ -443,7 +442,7 @@ public static RepeatedResponseMessageBody fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/Response.java b/src/main/java/com/adyen/model/tapi/Response.java index 7f3eb1d17..acb09ac82 100644 --- a/src/main/java/com/adyen/model/tapi/Response.java +++ b/src/main/java/com/adyen/model/tapi/Response.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Result of a message request processing. If Result is Success, `ErrorCondition` is @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Response - * @throws JsonProcessingException if the JSON string is invalid with respect to Response + * @throws JacksonException if the JSON string is invalid with respect to Response */ - public static Response fromJson(String jsonString) throws JsonProcessingException { + public static Response fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Response.class); } @@ -285,7 +285,7 @@ public static Response fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ReversalRequest.java b/src/main/java/com/adyen/model/tapi/ReversalRequest.java index c41e8a963..801864e4f 100644 --- a/src/main/java/com/adyen/model/tapi/ReversalRequest.java +++ b/src/main/java/com/adyen/model/tapi/ReversalRequest.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the reversal of a previous payment or a loyalty transaction. @@ -325,9 +325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReversalRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to ReversalRequest + * @throws JacksonException if the JSON string is invalid with respect to ReversalRequest */ - public static ReversalRequest fromJson(String jsonString) throws JsonProcessingException { + public static ReversalRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReversalRequest.class); } @@ -336,7 +336,7 @@ public static ReversalRequest fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/ReversalResponse.java b/src/main/java/com/adyen/model/tapi/ReversalResponse.java index 32707afbf..e3ae3898e 100644 --- a/src/main/java/com/adyen/model/tapi/ReversalResponse.java +++ b/src/main/java/com/adyen/model/tapi/ReversalResponse.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the reversal processed by the POI System. Content of the @@ -379,9 +379,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReversalResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to ReversalResponse + * @throws JacksonException if the JSON string is invalid with respect to ReversalResponse */ - public static ReversalResponse fromJson(String jsonString) throws JsonProcessingException { + public static ReversalResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReversalResponse.class); } @@ -390,7 +390,7 @@ public static ReversalResponse fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleData.java b/src/main/java/com/adyen/model/tapi/SaleData.java index fd203f370..5d24cdc85 100644 --- a/src/main/java/com/adyen/model/tapi/SaleData.java +++ b/src/main/java/com/adyen/model/tapi/SaleData.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * Data associated with the Sale System, with a particular value during the processing of the @@ -787,9 +787,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleData - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleData + * @throws JacksonException if the JSON string is invalid with respect to SaleData */ - public static SaleData fromJson(String jsonString) throws JsonProcessingException { + public static SaleData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleData.class); } @@ -798,7 +798,7 @@ public static SaleData fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleSoftware.java b/src/main/java/com/adyen/model/tapi/SaleSoftware.java index 8ab542a5e..8049b37e2 100644 --- a/src/main/java/com/adyen/model/tapi/SaleSoftware.java +++ b/src/main/java/com/adyen/model/tapi/SaleSoftware.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Information related to the software of the Sale System which manages the NEXO Sale to POI @@ -318,9 +318,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleSoftware - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleSoftware + * @throws JacksonException if the JSON string is invalid with respect to SaleSoftware */ - public static SaleSoftware fromJson(String jsonString) throws JsonProcessingException { + public static SaleSoftware fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleSoftware.class); } @@ -329,7 +329,7 @@ public static SaleSoftware fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleTerminalData.java b/src/main/java/com/adyen/model/tapi/SaleTerminalData.java index 13f69e0f8..f6debd937 100644 --- a/src/main/java/com/adyen/model/tapi/SaleTerminalData.java +++ b/src/main/java/com/adyen/model/tapi/SaleTerminalData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Information related to the software and hardware features of the Sale Terminal. Sent in the Login @@ -175,9 +175,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleTerminalData - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleTerminalData + * @throws JacksonException if the JSON string is invalid with respect to SaleTerminalData */ - public static SaleTerminalData fromJson(String jsonString) throws JsonProcessingException { + public static SaleTerminalData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleTerminalData.class); } @@ -186,7 +186,7 @@ public static SaleTerminalData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleToIssuerData.java b/src/main/java/com/adyen/model/tapi/SaleToIssuerData.java index b7eaf3510..18fd03cc8 100644 --- a/src/main/java/com/adyen/model/tapi/SaleToIssuerData.java +++ b/src/main/java/com/adyen/model/tapi/SaleToIssuerData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Sale information intended for the Issuer. The POI System receives this information and sends it @@ -161,9 +161,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleToIssuerData - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleToIssuerData + * @throws JacksonException if the JSON string is invalid with respect to SaleToIssuerData */ - public static SaleToIssuerData fromJson(String jsonString) throws JsonProcessingException { + public static SaleToIssuerData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleToIssuerData.class); } @@ -172,7 +172,7 @@ public static SaleToIssuerData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleToPOIRequest.java b/src/main/java/com/adyen/model/tapi/SaleToPOIRequest.java index 0d0ba2b44..f5af0de4b 100644 --- a/src/main/java/com/adyen/model/tapi/SaleToPOIRequest.java +++ b/src/main/java/com/adyen/model/tapi/SaleToPOIRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * The SaleToPOIRequest message pair is a container for the request message content. It contains a @@ -1184,9 +1184,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleToPOIRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleToPOIRequest + * @throws JacksonException if the JSON string is invalid with respect to SaleToPOIRequest */ - public static SaleToPOIRequest fromJson(String jsonString) throws JsonProcessingException { + public static SaleToPOIRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleToPOIRequest.class); } @@ -1195,7 +1195,7 @@ public static SaleToPOIRequest fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SaleToPOIResponse.java b/src/main/java/com/adyen/model/tapi/SaleToPOIResponse.java index 1073cf53b..6c6452585 100644 --- a/src/main/java/com/adyen/model/tapi/SaleToPOIResponse.java +++ b/src/main/java/com/adyen/model/tapi/SaleToPOIResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * The SaleToPOIResponse message pair is a container for the response message content. It contains a @@ -1089,9 +1089,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SaleToPOIResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to SaleToPOIResponse + * @throws JacksonException if the JSON string is invalid with respect to SaleToPOIResponse */ - public static SaleToPOIResponse fromJson(String jsonString) throws JsonProcessingException { + public static SaleToPOIResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SaleToPOIResponse.class); } @@ -1100,7 +1100,7 @@ public static SaleToPOIResponse fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SecurityTrailer.java b/src/main/java/com/adyen/model/tapi/SecurityTrailer.java index 83aca0c98..494a320e7 100644 --- a/src/main/java/com/adyen/model/tapi/SecurityTrailer.java +++ b/src/main/java/com/adyen/model/tapi/SecurityTrailer.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; +import tools.jackson.core.JacksonException; /** * It contains information related to the security of the message. SecurityTrailer as used by Adyen. @@ -365,9 +365,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SecurityTrailer - * @throws JsonProcessingException if the JSON string is invalid with respect to SecurityTrailer + * @throws JacksonException if the JSON string is invalid with respect to SecurityTrailer */ - public static SecurityTrailer fromJson(String jsonString) throws JsonProcessingException { + public static SecurityTrailer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SecurityTrailer.class); } @@ -376,7 +376,7 @@ public static SecurityTrailer fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SensitiveCardData.java b/src/main/java/com/adyen/model/tapi/SensitiveCardData.java index a9953f3ab..fbeeaf232 100644 --- a/src/main/java/com/adyen/model/tapi/SensitiveCardData.java +++ b/src/main/java/com/adyen/model/tapi/SensitiveCardData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * This data structure could be CMS protected (EnvelopedData). In this case the data structure @@ -332,9 +332,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SensitiveCardData - * @throws JsonProcessingException if the JSON string is invalid with respect to SensitiveCardData + * @throws JacksonException if the JSON string is invalid with respect to SensitiveCardData */ - public static SensitiveCardData fromJson(String jsonString) throws JsonProcessingException { + public static SensitiveCardData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SensitiveCardData.class); } @@ -343,7 +343,7 @@ public static SensitiveCardData fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SensitiveMobileData.java b/src/main/java/com/adyen/model/tapi/SensitiveMobileData.java index cbb084ef3..a53db526d 100644 --- a/src/main/java/com/adyen/model/tapi/SensitiveMobileData.java +++ b/src/main/java/com/adyen/model/tapi/SensitiveMobileData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SensitiveMobileData */ @JsonPropertyOrder({ @@ -277,10 +277,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SensitiveMobileData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * SensitiveMobileData + * @throws JacksonException if the JSON string is invalid with respect to SensitiveMobileData */ - public static SensitiveMobileData fromJson(String jsonString) throws JsonProcessingException { + public static SensitiveMobileData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SensitiveMobileData.class); } @@ -289,7 +288,7 @@ public static SensitiveMobileData fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/SoundContent.java b/src/main/java/com/adyen/model/tapi/SoundContent.java index 391a7f267..9ea5843df 100644 --- a/src/main/java/com/adyen/model/tapi/SoundContent.java +++ b/src/main/java/com/adyen/model/tapi/SoundContent.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** SoundContent */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SoundContent - * @throws JsonProcessingException if the JSON string is invalid with respect to SoundContent + * @throws JacksonException if the JSON string is invalid with respect to SoundContent */ - public static SoundContent fromJson(String jsonString) throws JsonProcessingException { + public static SoundContent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SoundContent.class); } @@ -323,7 +323,7 @@ public static SoundContent fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueAccountID.java b/src/main/java/com/adyen/model/tapi/StoredValueAccountID.java index 29f5cb99e..a08ccc63b 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueAccountID.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueAccountID.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** * Identification of the stored value account or the stored value card and the associated product @@ -573,10 +573,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueAccountID - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueAccountID + * @throws JacksonException if the JSON string is invalid with respect to StoredValueAccountID */ - public static StoredValueAccountID fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueAccountID fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueAccountID.class); } @@ -585,7 +584,7 @@ public static StoredValueAccountID fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueAccountStatus.java b/src/main/java/com/adyen/model/tapi/StoredValueAccountStatus.java index 87e51425d..2f6167e1d 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueAccountStatus.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueAccountStatus.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** StoredValueAccountStatus */ @JsonPropertyOrder({ @@ -213,11 +213,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueAccountStatus - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueAccountStatus + * @throws JacksonException if the JSON string is invalid with respect to StoredValueAccountStatus */ - public static StoredValueAccountStatus fromJson(String jsonString) - throws JsonProcessingException { + public static StoredValueAccountStatus fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueAccountStatus.class); } @@ -226,7 +224,7 @@ public static StoredValueAccountStatus fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueData.java b/src/main/java/com/adyen/model/tapi/StoredValueData.java index 36447b156..fd6c2daaa 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueData.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueData.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * It contains: - the identification of the stored value accounts or the stored value cards, if @@ -540,9 +540,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueData - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueData + * @throws JacksonException if the JSON string is invalid with respect to StoredValueData */ - public static StoredValueData fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueData.class); } @@ -551,7 +551,7 @@ public static StoredValueData fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueRequest.java b/src/main/java/com/adyen/model/tapi/StoredValueRequest.java index 61e156192..3f07bff82 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueRequest.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Stored Value transaction to process. Content of the Stored @@ -221,10 +221,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueRequest + * @throws JacksonException if the JSON string is invalid with respect to StoredValueRequest */ - public static StoredValueRequest fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueRequest.class); } @@ -233,7 +232,7 @@ public static StoredValueRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueResponse.java b/src/main/java/com/adyen/model/tapi/StoredValueResponse.java index 7edddac13..788eac8e1 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueResponse.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * It conveys Information related to the Stored Value transaction processed by the POI System. @@ -392,10 +392,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * StoredValueResponse + * @throws JacksonException if the JSON string is invalid with respect to StoredValueResponse */ - public static StoredValueResponse fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueResponse.class); } @@ -404,7 +403,7 @@ public static StoredValueResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/StoredValueResult.java b/src/main/java/com/adyen/model/tapi/StoredValueResult.java index edf5a7f1a..56302f702 100644 --- a/src/main/java/com/adyen/model/tapi/StoredValueResult.java +++ b/src/main/java/com/adyen/model/tapi/StoredValueResult.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.math.BigDecimal; import java.util.*; +import tools.jackson.core.JacksonException; /** * For each stored value card loaded or reloaded, in the StoredValue response message. Result of @@ -477,9 +477,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of StoredValueResult - * @throws JsonProcessingException if the JSON string is invalid with respect to StoredValueResult + * @throws JacksonException if the JSON string is invalid with respect to StoredValueResult */ - public static StoredValueResult fromJson(String jsonString) throws JsonProcessingException { + public static StoredValueResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, StoredValueResult.class); } @@ -488,7 +488,7 @@ public static StoredValueResult fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TerminalAPIRequest.java b/src/main/java/com/adyen/model/tapi/TerminalAPIRequest.java index 81b5cb692..698fdb2fe 100644 --- a/src/main/java/com/adyen/model/tapi/TerminalAPIRequest.java +++ b/src/main/java/com/adyen/model/tapi/TerminalAPIRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** The request payload of the Adyen Terminal API. */ @JsonPropertyOrder({TerminalAPIRequest.JSON_PROPERTY_SALE_TO_P_O_I_REQUEST}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalAPIRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAPIRequest + * @throws JacksonException if the JSON string is invalid with respect to TerminalAPIRequest */ - public static TerminalAPIRequest fromJson(String jsonString) throws JsonProcessingException { + public static TerminalAPIRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalAPIRequest.class); } @@ -170,7 +169,7 @@ public static TerminalAPIRequest fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TerminalAPIResponse.java b/src/main/java/com/adyen/model/tapi/TerminalAPIResponse.java index cd8beb794..24bb3c904 100644 --- a/src/main/java/com/adyen/model/tapi/TerminalAPIResponse.java +++ b/src/main/java/com/adyen/model/tapi/TerminalAPIResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** The response payload of the Adyen Terminal API. */ @JsonPropertyOrder({TerminalAPIResponse.JSON_PROPERTY_SALE_TO_P_O_I_RESPONSE}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TerminalAPIResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TerminalAPIResponse + * @throws JacksonException if the JSON string is invalid with respect to TerminalAPIResponse */ - public static TerminalAPIResponse fromJson(String jsonString) throws JsonProcessingException { + public static TerminalAPIResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TerminalAPIResponse.class); } @@ -170,7 +169,7 @@ public static TerminalAPIResponse fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TotalFilter.java b/src/main/java/com/adyen/model/tapi/TotalFilter.java index f483461d8..a90952aa0 100644 --- a/src/main/java/com/adyen/model/tapi/TotalFilter.java +++ b/src/main/java/com/adyen/model/tapi/TotalFilter.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TotalFilter */ @JsonPropertyOrder({ @@ -368,9 +368,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TotalFilter - * @throws JsonProcessingException if the JSON string is invalid with respect to TotalFilter + * @throws JacksonException if the JSON string is invalid with respect to TotalFilter */ - public static TotalFilter fromJson(String jsonString) throws JsonProcessingException { + public static TotalFilter fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TotalFilter.class); } @@ -379,7 +379,7 @@ public static TotalFilter fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TrackData.java b/src/main/java/com/adyen/model/tapi/TrackData.java index b831a4ed6..e2fa68043 100644 --- a/src/main/java/com/adyen/model/tapi/TrackData.java +++ b/src/main/java/com/adyen/model/tapi/TrackData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Magnetic track or magnetic ink characters line. ISO 7813 - ISO 4909. Generic data structure for a @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TrackData - * @throws JsonProcessingException if the JSON string is invalid with respect to TrackData + * @throws JacksonException if the JSON string is invalid with respect to TrackData */ - public static TrackData fromJson(String jsonString) throws JsonProcessingException { + public static TrackData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TrackData.class); } @@ -273,7 +273,7 @@ public static TrackData fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TransactionConditions.java b/src/main/java/com/adyen/model/tapi/TransactionConditions.java index c50711ddb..d233526ef 100644 --- a/src/main/java/com/adyen/model/tapi/TransactionConditions.java +++ b/src/main/java/com/adyen/model/tapi/TransactionConditions.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Conditions on which the transaction must be processed. */ @JsonPropertyOrder({ @@ -711,10 +711,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionConditions - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionConditions + * @throws JacksonException if the JSON string is invalid with respect to TransactionConditions */ - public static TransactionConditions fromJson(String jsonString) throws JsonProcessingException { + public static TransactionConditions fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionConditions.class); } @@ -723,7 +722,7 @@ public static TransactionConditions fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TransactionIDType.java b/src/main/java/com/adyen/model/tapi/TransactionIDType.java index ca3891560..d777ee764 100644 --- a/src/main/java/com/adyen/model/tapi/TransactionIDType.java +++ b/src/main/java/com/adyen/model/tapi/TransactionIDType.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Identification of a transaction for the Sale System or the POI System. */ @JsonPropertyOrder({ @@ -227,9 +227,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionIDType - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionIDType + * @throws JacksonException if the JSON string is invalid with respect to TransactionIDType */ - public static TransactionIDType fromJson(String jsonString) throws JsonProcessingException { + public static TransactionIDType fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionIDType.class); } @@ -238,7 +238,7 @@ public static TransactionIDType fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TransactionStatusRequest.java b/src/main/java/com/adyen/model/tapi/TransactionStatusRequest.java index 0b9b60973..d1d1879d0 100644 --- a/src/main/java/com/adyen/model/tapi/TransactionStatusRequest.java +++ b/src/main/java/com/adyen/model/tapi/TransactionStatusRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * Content of the TransactionStatus Request message. It conveys Information requested for status of @@ -306,11 +306,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionStatusRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionStatusRequest + * @throws JacksonException if the JSON string is invalid with respect to TransactionStatusRequest */ - public static TransactionStatusRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionStatusRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionStatusRequest.class); } @@ -319,7 +317,7 @@ public static TransactionStatusRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TransactionStatusResponse.java b/src/main/java/com/adyen/model/tapi/TransactionStatusResponse.java index 55c840015..ec870d17e 100644 --- a/src/main/java/com/adyen/model/tapi/TransactionStatusResponse.java +++ b/src/main/java/com/adyen/model/tapi/TransactionStatusResponse.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** * Content of the TransactionStatus Response message. It conveys Information related to the status @@ -272,11 +272,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionStatusResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionStatusResponse */ - public static TransactionStatusResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionStatusResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionStatusResponse.class); } @@ -285,7 +284,7 @@ public static TransactionStatusResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/TransactionTotals.java b/src/main/java/com/adyen/model/tapi/TransactionTotals.java index 92416488f..3a037d431 100644 --- a/src/main/java/com/adyen/model/tapi/TransactionTotals.java +++ b/src/main/java/com/adyen/model/tapi/TransactionTotals.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** * If Result is Success, contains all the totals, classified as required by the Sale in the message @@ -718,9 +718,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionTotals - * @throws JsonProcessingException if the JSON string is invalid with respect to TransactionTotals + * @throws JacksonException if the JSON string is invalid with respect to TransactionTotals */ - public static TransactionTotals fromJson(String jsonString) throws JsonProcessingException { + public static TransactionTotals fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionTotals.class); } @@ -729,7 +729,7 @@ public static TransactionTotals fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tapi/UTMCoordinates.java b/src/main/java/com/adyen/model/tapi/UTMCoordinates.java index d890b1754..5b4f8b60f 100644 --- a/src/main/java/com/adyen/model/tapi/UTMCoordinates.java +++ b/src/main/java/com/adyen/model/tapi/UTMCoordinates.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** UTMCoordinates */ @JsonPropertyOrder({ @@ -263,9 +263,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UTMCoordinates - * @throws JsonProcessingException if the JSON string is invalid with respect to UTMCoordinates + * @throws JacksonException if the JSON string is invalid with respect to UTMCoordinates */ - public static UTMCoordinates fromJson(String jsonString) throws JsonProcessingException { + public static UTMCoordinates fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UTMCoordinates.class); } @@ -274,7 +274,7 @@ public static UTMCoordinates fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java index 56f45af8e..04be0296b 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java index ac1530659..e19f02a08 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringToken.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RecurringToken */ @JsonPropertyOrder({ @@ -227,9 +227,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RecurringToken - * @throws JsonProcessingException if the JSON string is invalid with respect to RecurringToken + * @throws JacksonException if the JSON string is invalid with respect to RecurringToken */ - public static RecurringToken fromJson(String jsonString) throws JsonProcessingException { + public static RecurringToken fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringToken.class); } @@ -238,7 +238,7 @@ public static RecurringToken fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java index 36dc749db..fca6090a0 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/RecurringTokenStoreOperation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RecurringTokenStoreOperation */ @JsonPropertyOrder({ @@ -270,11 +270,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RecurringTokenStoreOperation - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * RecurringTokenStoreOperation */ - public static RecurringTokenStoreOperation fromJson(String jsonString) - throws JsonProcessingException { + public static RecurringTokenStoreOperation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RecurringTokenStoreOperation.class); } @@ -283,7 +282,7 @@ public static RecurringTokenStoreOperation fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java index 7b2892b57..7ce38e628 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationAlreadyExistingDetailsNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TokenizationAlreadyExistingDetailsNotificationRequest */ @JsonPropertyOrder({ @@ -402,11 +402,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenizationAlreadyExistingDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenizationAlreadyExistingDetailsNotificationRequest */ public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, TokenizationAlreadyExistingDetailsNotificationRequest.class); } @@ -416,7 +416,7 @@ public static TokenizationAlreadyExistingDetailsNotificationRequest fromJson(Str * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java index f104f3526..41b7636d2 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationCreatedDetailsNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TokenizationCreatedDetailsNotificationRequest */ @JsonPropertyOrder({ @@ -393,11 +393,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenizationCreatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenizationCreatedDetailsNotificationRequest */ public static TokenizationCreatedDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, TokenizationCreatedDetailsNotificationRequest.class); } @@ -407,7 +407,7 @@ public static TokenizationCreatedDetailsNotificationRequest fromJson(String json * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java index ef9974e36..d5bf86d10 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationDisabledDetailsNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TokenizationDisabledDetailsNotificationRequest */ @JsonPropertyOrder({ @@ -393,11 +393,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenizationDisabledDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenizationDisabledDetailsNotificationRequest */ public static TokenizationDisabledDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, TokenizationDisabledDetailsNotificationRequest.class); } @@ -407,7 +407,7 @@ public static TokenizationDisabledDetailsNotificationRequest fromJson(String jso * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java index e47741c80..b6f30c8c9 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TokenizationNotificationResponse */ @JsonPropertyOrder({TokenizationNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenizationNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenizationNotificationResponse */ public static TokenizationNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TokenizationNotificationResponse.class); } @@ -124,7 +124,7 @@ public static TokenizationNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java index 09cc67bbb..817775332 100644 --- a/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java +++ b/src/main/java/com/adyen/model/tokenizationwebhooks/TokenizationUpdatedDetailsNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TokenizationUpdatedDetailsNotificationRequest */ @JsonPropertyOrder({ @@ -393,11 +393,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TokenizationUpdatedDetailsNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TokenizationUpdatedDetailsNotificationRequest */ public static TokenizationUpdatedDetailsNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper() .readValue(jsonString, TokenizationUpdatedDetailsNotificationRequest.class); } @@ -407,7 +407,7 @@ public static TokenizationUpdatedDetailsNotificationRequest fromJson(String json * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java index cde08ff1b..262a8702c 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java index 639e14f1e..fd438e3ca 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java index 3e5ae9030..289234c18 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/BankCategoryData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankCategoryData */ @JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) @@ -302,9 +302,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to BankCategoryData + * @throws JacksonException if the JSON string is invalid with respect to BankCategoryData */ - public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static BankCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } @@ -313,7 +313,7 @@ public static BankCategoryData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java index 73fed0ff6..c69b686c3 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/InternalCategoryData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InternalCategoryData */ @JsonPropertyOrder({ @@ -233,10 +233,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JacksonException if the JSON string is invalid with respect to InternalCategoryData */ - public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static InternalCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } @@ -245,7 +244,7 @@ public static InternalCategoryData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java index ddf94117f..87a39a348 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/IssuedCard.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IssuedCard */ @JsonPropertyOrder({ @@ -655,9 +655,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IssuedCard - * @throws JsonProcessingException if the JSON string is invalid with respect to IssuedCard + * @throws JacksonException if the JSON string is invalid with respect to IssuedCard */ - public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { + public static IssuedCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } @@ -666,7 +666,7 @@ public static IssuedCard fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java index 2dd25328b..684ce406a 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java index ad51ffa3c..74f40a145 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PaymentInstrument.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -219,9 +219,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -230,7 +230,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java index f69bf5ac3..1a89bf64e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/PlatformPayment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PlatformPayment */ @JsonPropertyOrder({ @@ -582,9 +582,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PlatformPayment - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPayment + * @throws JacksonException if the JSON string is invalid with respect to PlatformPayment */ - public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { + public static PlatformPayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } @@ -593,7 +593,7 @@ public static PlatformPayment fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java index 00a7565d7..005791530 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/RelayedAuthorisationData.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** RelayedAuthorisationData */ @JsonPropertyOrder({ @@ -157,11 +157,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JacksonException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } @@ -170,7 +168,7 @@ public static RelayedAuthorisationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java index 925b9380f..16ea6662c 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java index da124b0c4..3e247620e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java index 1754e5771..a0623d86e 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/ThreeDSecure.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDSecure */ @JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) @@ -100,9 +100,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ThreeDSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecure + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecure */ - public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } @@ -111,7 +111,7 @@ public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java index e583a0cdc..b6d1eb879 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/Transaction.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Transaction */ @JsonPropertyOrder({ @@ -673,9 +673,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Transaction - * @throws JsonProcessingException if the JSON string is invalid with respect to Transaction + * @throws JacksonException if the JSON string is invalid with respect to Transaction */ - public static Transaction fromJson(String jsonString) throws JsonProcessingException { + public static Transaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Transaction.class); } @@ -684,7 +684,7 @@ public static Transaction fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java index 0caf28581..7a4f9700b 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransactionNotificationRequestV4.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransactionNotificationRequestV4 */ @JsonPropertyOrder({ @@ -271,11 +271,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionNotificationRequestV4 - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionNotificationRequestV4 */ public static TransactionNotificationRequestV4 fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionNotificationRequestV4.class); } @@ -284,7 +284,7 @@ public static TransactionNotificationRequestV4 fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java index f12636eac..c906e304b 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferNotificationValidationFact.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationValidationFact */ @JsonPropertyOrder({ @@ -144,11 +144,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationValidationFact */ public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } @@ -157,7 +157,7 @@ public static TransferNotificationValidationFact fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java index dfb76fec0..d69c6cc1d 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferView.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferView */ @JsonPropertyOrder({ @@ -198,9 +198,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferView - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferView + * @throws JacksonException if the JSON string is invalid with respect to TransferView */ - public static TransferView fromJson(String jsonString) throws JsonProcessingException { + public static TransferView fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferView.class); } @@ -209,7 +209,7 @@ public static TransferView fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java index bdadc17da..88f19aa78 100644 --- a/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java +++ b/src/main/java/com/adyen/model/transactionwebhooks/TransferViewCategoryData.java @@ -11,19 +11,6 @@ package com.adyen.model.transactionwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferViewCategoryData.TransferViewCategoryDataDeserializer.class) @JsonSerialize(using = TransferViewCategoryData.TransferViewCategoryDataSerializer.class) @@ -50,9 +49,9 @@ public TransferViewCategoryDataSerializer() { @Override public void serialize( - TransferViewCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferViewCategoryData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferViewCategoryDataDeserializer(Class vc) { @Override public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize BankCategoryData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, BankCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -139,7 +137,7 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + deserialized = ctxt.readTreeAsValue(tree, IssuedCard.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -165,7 +163,7 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + deserialized = ctxt.readTreeAsValue(tree, PlatformPayment.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -183,7 +181,8 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferViewCategoryData: %d classes match result, expected 1", match)); @@ -192,8 +191,8 @@ public TransferViewCategoryData deserialize(JsonParser jp, DeserializationContex /** Handle deserialization of the 'null' value. */ @Override public TransferViewCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferViewCategoryData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferViewCategoryData cannot be null"); } } @@ -355,7 +354,7 @@ public static TransferViewCategoryData fromJson(String jsonString) throws IOExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java index 392afce25..6189fb15d 100644 --- a/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AULocalAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } @@ -318,7 +317,7 @@ public static AULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java index f4b23da23..acadbd2d4 100644 --- a/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transfers/AdditionalBankIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentification */ @JsonPropertyOrder({ @@ -322,11 +322,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } @@ -335,7 +334,7 @@ public static AdditionalBankIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Address.java b/src/main/java/com/adyen/model/transfers/Address.java index 637c885ca..c70201374 100644 --- a/src/main/java/com/adyen/model/transfers/Address.java +++ b/src/main/java/com/adyen/model/transfers/Address.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -457,9 +457,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -468,7 +468,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Airline.java b/src/main/java/com/adyen/model/transfers/Airline.java index 501771e08..226832195 100644 --- a/src/main/java/com/adyen/model/transfers/Airline.java +++ b/src/main/java/com/adyen/model/transfers/Airline.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Airline */ @JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) @@ -215,9 +215,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Airline - * @throws JsonProcessingException if the JSON string is invalid with respect to Airline + * @throws JacksonException if the JSON string is invalid with respect to Airline */ - public static Airline fromJson(String jsonString) throws JsonProcessingException { + public static Airline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Airline.class); } @@ -226,7 +226,7 @@ public static Airline fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Amount.java b/src/main/java/com/adyen/model/transfers/Amount.java index 05e7fa74a..cdc074f59 100644 --- a/src/main/java/com/adyen/model/transfers/Amount.java +++ b/src/main/java/com/adyen/model/transfers/Amount.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -223,9 +223,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -234,7 +234,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java index 232b0574a..b9b6c3952 100644 --- a/src/main/java/com/adyen/model/transfers/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transfers/AmountAdjustment.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmountAdjustment */ @JsonPropertyOrder({ @@ -323,9 +323,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of AmountAdjustment - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountAdjustment + * @throws JacksonException if the JSON string is invalid with respect to AmountAdjustment */ - public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { + public static AmountAdjustment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } @@ -334,7 +334,7 @@ public static AmountAdjustment fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java index 52972b57c..75c922098 100644 --- a/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/ApproveTransfersRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** ApproveTransfersRequest */ @JsonPropertyOrder({ApproveTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ApproveTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ApproveTransfersRequest + * @throws JacksonException if the JSON string is invalid with respect to ApproveTransfersRequest */ - public static ApproveTransfersRequest fromJson(String jsonString) throws JsonProcessingException { + public static ApproveTransfersRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ApproveTransfersRequest.class); } @@ -180,7 +179,7 @@ public static ApproveTransfersRequest fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java index 5bb71069a..7719af0f2 100644 --- a/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BRLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BRLocalAccountIdentification */ @JsonPropertyOrder({ @@ -405,11 +405,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } @@ -418,7 +417,7 @@ public static BRLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/BalanceMutation.java b/src/main/java/com/adyen/model/transfers/BalanceMutation.java index 55df98e74..fc89659f8 100644 --- a/src/main/java/com/adyen/model/transfers/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transfers/BalanceMutation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalanceMutation */ @JsonPropertyOrder({ @@ -336,9 +336,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BalanceMutation - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceMutation + * @throws JacksonException if the JSON string is invalid with respect to BalanceMutation */ - public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { + public static BalanceMutation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } @@ -347,7 +347,7 @@ public static BalanceMutation fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3.java b/src/main/java/com/adyen/model/transfers/BankAccountV3.java index 9379cdd31..eca3e978e 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountV3 */ @JsonPropertyOrder({ @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankAccountV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountV3 + * @throws JacksonException if the JSON string is invalid with respect to BankAccountV3 */ - public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountV3 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } @@ -285,7 +285,7 @@ public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java index 1a51eb0a2..ace93c04c 100644 --- a/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/BankAccountV3AccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) @@ -54,9 +53,9 @@ public BankAccountV3AccountIdentificationSerializer() { @Override public void serialize( - BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -72,12 +71,11 @@ public BankAccountV3AccountIdentificationDeserializer(Class vc) { @Override public BankAccountV3AccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AULocalAccountIdentification try { boolean attemptParsing = true; @@ -91,8 +89,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, AULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -118,8 +115,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, BRLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -145,8 +141,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CALocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -172,8 +167,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -199,8 +193,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, DKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -226,8 +219,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -253,8 +245,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -280,8 +271,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -307,8 +297,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NOLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -334,8 +323,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -361,8 +349,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NumberAndBicAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -389,8 +376,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, PLLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -416,8 +402,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SELocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -443,8 +428,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SGLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -470,8 +454,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -497,8 +480,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, USLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -516,7 +498,8 @@ public BankAccountV3AccountIdentification deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); @@ -525,9 +508,8 @@ public BankAccountV3AccountIdentification deserialize( /** Handle deserialization of the 'null' value. */ @Override public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "BankAccountV3AccountIdentification cannot be null"); } } @@ -995,7 +977,7 @@ public static BankAccountV3AccountIdentification fromJson(String jsonString) thr * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/BankCategoryData.java b/src/main/java/com/adyen/model/transfers/BankCategoryData.java index 1bcead249..5a859bd35 100644 --- a/src/main/java/com/adyen/model/transfers/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/BankCategoryData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankCategoryData */ @JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) @@ -369,9 +369,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of BankCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to BankCategoryData + * @throws JacksonException if the JSON string is invalid with respect to BankCategoryData */ - public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static BankCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } @@ -380,7 +380,7 @@ public static BankCategoryData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java index 5325a8f1c..c4a92509a 100644 --- a/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CALocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CALocalAccountIdentification */ @JsonPropertyOrder({ @@ -452,11 +452,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } @@ -465,7 +464,7 @@ public static CALocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java index 442215c6d..f1837c7a1 100644 --- a/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -324,11 +324,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } @@ -337,7 +336,7 @@ public static CZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java index 5e28e1f37..2dd8e988f 100644 --- a/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java +++ b/src/main/java/com/adyen/model/transfers/CancelTransfersRequest.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CancelTransfersRequest */ @JsonPropertyOrder({CancelTransfersRequest.JSON_PROPERTY_TRANSFER_IDS}) @@ -168,10 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CancelTransfersRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CancelTransfersRequest + * @throws JacksonException if the JSON string is invalid with respect to CancelTransfersRequest */ - public static CancelTransfersRequest fromJson(String jsonString) throws JsonProcessingException { + public static CancelTransfersRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CancelTransfersRequest.class); } @@ -180,7 +179,7 @@ public static CancelTransfersRequest fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CapitalBalance.java b/src/main/java/com/adyen/model/transfers/CapitalBalance.java index 729e42001..c3a6c6352 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalBalance.java +++ b/src/main/java/com/adyen/model/transfers/CapitalBalance.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CapitalBalance */ @JsonPropertyOrder({ @@ -311,9 +311,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalBalance - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalBalance + * @throws JacksonException if the JSON string is invalid with respect to CapitalBalance */ - public static CapitalBalance fromJson(String jsonString) throws JsonProcessingException { + public static CapitalBalance fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalBalance.class); } @@ -322,7 +322,7 @@ public static CapitalBalance fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrant.java b/src/main/java/com/adyen/model/transfers/CapitalGrant.java index 94df0f44d..126442ddd 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrant.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrant.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CapitalGrant */ @JsonPropertyOrder({ @@ -630,9 +630,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalGrant - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalGrant + * @throws JacksonException if the JSON string is invalid with respect to CapitalGrant */ - public static CapitalGrant fromJson(String jsonString) throws JsonProcessingException { + public static CapitalGrant fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalGrant.class); } @@ -641,7 +641,7 @@ public static CapitalGrant fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java index fb98a8794..0279e28b7 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrantInfo.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CapitalGrantInfo */ @JsonPropertyOrder({ @@ -268,9 +268,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalGrantInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalGrantInfo + * @throws JacksonException if the JSON string is invalid with respect to CapitalGrantInfo */ - public static CapitalGrantInfo fromJson(String jsonString) throws JsonProcessingException { + public static CapitalGrantInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalGrantInfo.class); } @@ -279,7 +279,7 @@ public static CapitalGrantInfo fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CapitalGrants.java b/src/main/java/com/adyen/model/transfers/CapitalGrants.java index a1b9c31d8..0755be099 100644 --- a/src/main/java/com/adyen/model/transfers/CapitalGrants.java +++ b/src/main/java/com/adyen/model/transfers/CapitalGrants.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CapitalGrants */ @JsonPropertyOrder({CapitalGrants.JSON_PROPERTY_GRANTS}) @@ -168,9 +168,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CapitalGrants - * @throws JsonProcessingException if the JSON string is invalid with respect to CapitalGrants + * @throws JacksonException if the JSON string is invalid with respect to CapitalGrants */ - public static CapitalGrants fromJson(String jsonString) throws JsonProcessingException { + public static CapitalGrants fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CapitalGrants.class); } @@ -179,7 +179,7 @@ public static CapitalGrants fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Card.java b/src/main/java/com/adyen/model/transfers/Card.java index bcbf09510..dacf507ea 100644 --- a/src/main/java/com/adyen/model/transfers/Card.java +++ b/src/main/java/com/adyen/model/transfers/Card.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -216,7 +216,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CardIdentification.java b/src/main/java/com/adyen/model/transfers/CardIdentification.java index c8370980f..0ece856c4 100644 --- a/src/main/java/com/adyen/model/transfers/CardIdentification.java +++ b/src/main/java/com/adyen/model/transfers/CardIdentification.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardIdentification */ @JsonPropertyOrder({ @@ -504,10 +504,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardIdentification + * @throws JacksonException if the JSON string is invalid with respect to CardIdentification */ - public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CardIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } @@ -516,7 +515,7 @@ public static CardIdentification fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CashOut.java b/src/main/java/com/adyen/model/transfers/CashOut.java index 8753b33fa..2262b0c7b 100644 --- a/src/main/java/com/adyen/model/transfers/CashOut.java +++ b/src/main/java/com/adyen/model/transfers/CashOut.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** CashOut */ @JsonPropertyOrder({ @@ -663,9 +663,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashOut - * @throws JsonProcessingException if the JSON string is invalid with respect to CashOut + * @throws JacksonException if the JSON string is invalid with respect to CashOut */ - public static CashOut fromJson(String jsonString) throws JsonProcessingException { + public static CashOut fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashOut.class); } @@ -674,7 +674,7 @@ public static CashOut fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CashOutInfo.java b/src/main/java/com/adyen/model/transfers/CashOutInfo.java index 223558a7a..82f5b774c 100644 --- a/src/main/java/com/adyen/model/transfers/CashOutInfo.java +++ b/src/main/java/com/adyen/model/transfers/CashOutInfo.java @@ -17,8 +17,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CashOutInfo */ @JsonPropertyOrder({ @@ -587,9 +587,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashOutInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to CashOutInfo + * @throws JacksonException if the JSON string is invalid with respect to CashOutInfo */ - public static CashOutInfo fromJson(String jsonString) throws JsonProcessingException { + public static CashOutInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashOutInfo.class); } @@ -598,7 +598,7 @@ public static CashOutInfo fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CashOutInfoCounterparty.java b/src/main/java/com/adyen/model/transfers/CashOutInfoCounterparty.java index 5bef90256..28296ac56 100644 --- a/src/main/java/com/adyen/model/transfers/CashOutInfoCounterparty.java +++ b/src/main/java/com/adyen/model/transfers/CashOutInfoCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CashOutInfoCounterparty */ @JsonPropertyOrder({CashOutInfoCounterparty.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID}) @@ -173,10 +173,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashOutInfoCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CashOutInfoCounterparty + * @throws JacksonException if the JSON string is invalid with respect to CashOutInfoCounterparty */ - public static CashOutInfoCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static CashOutInfoCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashOutInfoCounterparty.class); } @@ -185,7 +184,7 @@ public static CashOutInfoCounterparty fromJson(String jsonString) throws JsonPro * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CashOutTransfer.java b/src/main/java/com/adyen/model/transfers/CashOutTransfer.java index 33ca43c5b..f26a08cb3 100644 --- a/src/main/java/com/adyen/model/transfers/CashOutTransfer.java +++ b/src/main/java/com/adyen/model/transfers/CashOutTransfer.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CashOutTransfer */ @JsonPropertyOrder({ @@ -320,9 +320,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CashOutTransfer - * @throws JsonProcessingException if the JSON string is invalid with respect to CashOutTransfer + * @throws JacksonException if the JSON string is invalid with respect to CashOutTransfer */ - public static CashOutTransfer fromJson(String jsonString) throws JsonProcessingException { + public static CashOutTransfer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CashOutTransfer.class); } @@ -331,7 +331,7 @@ public static CashOutTransfer fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java index 116e9466c..92d66f540 100644 --- a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ConfirmationTrackingData */ @JsonPropertyOrder({ @@ -317,11 +317,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ConfirmationTrackingData + * @throws JacksonException if the JSON string is invalid with respect to ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } @@ -330,7 +328,7 @@ public static ConfirmationTrackingData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java index e0d74dbc2..77153430d 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyInfoV3.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CounterpartyInfoV3 */ @JsonPropertyOrder({ @@ -327,10 +327,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CounterpartyInfoV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CounterpartyInfoV3 + * @throws JacksonException if the JSON string is invalid with respect to CounterpartyInfoV3 */ - public static CounterpartyInfoV3 fromJson(String jsonString) throws JsonProcessingException { + public static CounterpartyInfoV3 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CounterpartyInfoV3.class); } @@ -339,7 +338,7 @@ public static CounterpartyInfoV3 fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java index 57bd81164..6e60dce25 100644 --- a/src/main/java/com/adyen/model/transfers/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transfers/CounterpartyV3.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CounterpartyV3 */ @JsonPropertyOrder({ @@ -376,9 +376,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of CounterpartyV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyV3 + * @throws JacksonException if the JSON string is invalid with respect to CounterpartyV3 */ - public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { + public static CounterpartyV3 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } @@ -387,7 +387,7 @@ public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java index 38f7b9bd7..22ae2205c 100644 --- a/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/DKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -304,11 +304,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } @@ -317,7 +316,7 @@ public static DKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/transfers/DefaultErrorResponseEntity.java index 47bcac886..dc541e2d0 100644 --- a/src/main/java/com/adyen/model/transfers/DefaultErrorResponseEntity.java +++ b/src/main/java/com/adyen/model/transfers/DefaultErrorResponseEntity.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Standardized error response following RFC-7807 format */ @JsonPropertyOrder({ @@ -528,11 +528,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DefaultErrorResponseEntity - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DefaultErrorResponseEntity */ - public static DefaultErrorResponseEntity fromJson(String jsonString) - throws JsonProcessingException { + public static DefaultErrorResponseEntity fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); } @@ -541,7 +540,7 @@ public static DefaultErrorResponseEntity fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java index 20dd43393..2de19ed82 100644 --- a/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transfers/DirectDebitInformation.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** DirectDebitInformation */ @JsonPropertyOrder({ @@ -325,10 +325,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DirectDebitInformation + * @throws JacksonException if the JSON string is invalid with respect to DirectDebitInformation */ - public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { + public static DirectDebitInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } @@ -337,7 +336,7 @@ public static DirectDebitInformation fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java index 5981821ac..dfc1100cc 100644 --- a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EstimationTrackingData */ @JsonPropertyOrder({ @@ -265,10 +265,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EstimationTrackingData + * @throws JacksonException if the JSON string is invalid with respect to EstimationTrackingData */ - public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static EstimationTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } @@ -277,7 +276,7 @@ public static EstimationTrackingData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ExecutionDate.java b/src/main/java/com/adyen/model/transfers/ExecutionDate.java index e20b135b9..0cc4168d2 100644 --- a/src/main/java/com/adyen/model/transfers/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transfers/ExecutionDate.java @@ -16,9 +16,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** ExecutionDate */ @JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) @@ -236,9 +236,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExecutionDate - * @throws JsonProcessingException if the JSON string is invalid with respect to ExecutionDate + * @throws JacksonException if the JSON string is invalid with respect to ExecutionDate */ - public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { + public static ExecutionDate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } @@ -247,7 +247,7 @@ public static ExecutionDate fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ExternalReason.java b/src/main/java/com/adyen/model/transfers/ExternalReason.java index 52d443dc3..7223ef609 100644 --- a/src/main/java/com/adyen/model/transfers/ExternalReason.java +++ b/src/main/java/com/adyen/model/transfers/ExternalReason.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ExternalReason */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ExternalReason - * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalReason + * @throws JacksonException if the JSON string is invalid with respect to ExternalReason */ - public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { + public static ExternalReason fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } @@ -267,7 +267,7 @@ public static ExternalReason fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Fee.java b/src/main/java/com/adyen/model/transfers/Fee.java index 12aa1f9e3..adfac7a9d 100644 --- a/src/main/java/com/adyen/model/transfers/Fee.java +++ b/src/main/java/com/adyen/model/transfers/Fee.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Fee */ @JsonPropertyOrder({Fee.JSON_PROPERTY_AMOUNT}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Fee - * @throws JsonProcessingException if the JSON string is invalid with respect to Fee + * @throws JacksonException if the JSON string is invalid with respect to Fee */ - public static Fee fromJson(String jsonString) throws JsonProcessingException { + public static Fee fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Fee.class); } @@ -169,7 +169,7 @@ public static Fee fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java index 04cbde9e6..aa07df5d5 100644 --- a/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java +++ b/src/main/java/com/adyen/model/transfers/FindTransfersResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** FindTransfersResponse */ @JsonPropertyOrder({ @@ -218,10 +218,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FindTransfersResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * FindTransfersResponse + * @throws JacksonException if the JSON string is invalid with respect to FindTransfersResponse */ - public static FindTransfersResponse fromJson(String jsonString) throws JsonProcessingException { + public static FindTransfersResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FindTransfersResponse.class); } @@ -230,7 +229,7 @@ public static FindTransfersResponse fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/FundingInstrument.java b/src/main/java/com/adyen/model/transfers/FundingInstrument.java index b68018e81..2c6c1395d 100644 --- a/src/main/java/com/adyen/model/transfers/FundingInstrument.java +++ b/src/main/java/com/adyen/model/transfers/FundingInstrument.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** FundingInstrument */ @JsonPropertyOrder({ @@ -381,9 +381,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of FundingInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to FundingInstrument + * @throws JacksonException if the JSON string is invalid with respect to FundingInstrument */ - public static FundingInstrument fromJson(String jsonString) throws JsonProcessingException { + public static FundingInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundingInstrument.class); } @@ -392,7 +392,7 @@ public static FundingInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/GrantCounterparty.java b/src/main/java/com/adyen/model/transfers/GrantCounterparty.java index 6497c9493..aed8ad102 100644 --- a/src/main/java/com/adyen/model/transfers/GrantCounterparty.java +++ b/src/main/java/com/adyen/model/transfers/GrantCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantCounterparty */ @JsonPropertyOrder({ @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to GrantCounterparty + * @throws JacksonException if the JSON string is invalid with respect to GrantCounterparty */ - public static GrantCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static GrantCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantCounterparty.class); } @@ -285,7 +285,7 @@ public static GrantCounterparty fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/GrantInfoCounterparty.java b/src/main/java/com/adyen/model/transfers/GrantInfoCounterparty.java index d277c3218..96b0a78ca 100644 --- a/src/main/java/com/adyen/model/transfers/GrantInfoCounterparty.java +++ b/src/main/java/com/adyen/model/transfers/GrantInfoCounterparty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** GrantInfoCounterparty */ @JsonPropertyOrder({ @@ -221,10 +221,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of GrantInfoCounterparty - * @throws JsonProcessingException if the JSON string is invalid with respect to - * GrantInfoCounterparty + * @throws JacksonException if the JSON string is invalid with respect to GrantInfoCounterparty */ - public static GrantInfoCounterparty fromJson(String jsonString) throws JsonProcessingException { + public static GrantInfoCounterparty fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, GrantInfoCounterparty.class); } @@ -233,7 +232,7 @@ public static GrantInfoCounterparty fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java index cb959913d..ea1510dfe 100644 --- a/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static HKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java index 84dcf415d..d2e941df5 100644 --- a/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/HULocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HULocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static HULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java index 01436fea1..79e9a1910 100644 --- a/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/IbanAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -305,11 +305,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -318,7 +317,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/InterchangeData.java b/src/main/java/com/adyen/model/transfers/InterchangeData.java index ea93fbac2..a3d246e2e 100644 --- a/src/main/java/com/adyen/model/transfers/InterchangeData.java +++ b/src/main/java/com/adyen/model/transfers/InterchangeData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InterchangeData */ @JsonPropertyOrder({ @@ -329,9 +329,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InterchangeData - * @throws JsonProcessingException if the JSON string is invalid with respect to InterchangeData + * @throws JacksonException if the JSON string is invalid with respect to InterchangeData */ - public static InterchangeData fromJson(String jsonString) throws JsonProcessingException { + public static InterchangeData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InterchangeData.class); } @@ -340,7 +340,7 @@ public static InterchangeData fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java index 81e81edfe..ccf4516fe 100644 --- a/src/main/java/com/adyen/model/transfers/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/InternalCategoryData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InternalCategoryData */ @JsonPropertyOrder({ @@ -319,10 +319,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JacksonException if the JSON string is invalid with respect to InternalCategoryData */ - public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static InternalCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } @@ -331,7 +330,7 @@ public static InternalCategoryData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java index 87eb45f38..1a057cd96 100644 --- a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InternalReviewTrackingData */ @JsonPropertyOrder({ @@ -423,11 +423,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } @@ -436,7 +435,7 @@ public static InternalReviewTrackingData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/InvalidField.java b/src/main/java/com/adyen/model/transfers/InvalidField.java index f2ab81bb7..0661ae0fa 100644 --- a/src/main/java/com/adyen/model/transfers/InvalidField.java +++ b/src/main/java/com/adyen/model/transfers/InvalidField.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** InvalidField */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of InvalidField - * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + * @throws JacksonException if the JSON string is invalid with respect to InvalidField */ - public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + public static InvalidField fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InvalidField.class); } @@ -267,7 +267,7 @@ public static InvalidField fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/IssuedCard.java b/src/main/java/com/adyen/model/transfers/IssuedCard.java index cf0ab7347..806dd958d 100644 --- a/src/main/java/com/adyen/model/transfers/IssuedCard.java +++ b/src/main/java/com/adyen/model/transfers/IssuedCard.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IssuedCard */ @JsonPropertyOrder({ @@ -796,9 +796,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IssuedCard - * @throws JsonProcessingException if the JSON string is invalid with respect to IssuedCard + * @throws JacksonException if the JSON string is invalid with respect to IssuedCard */ - public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { + public static IssuedCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } @@ -807,7 +807,7 @@ public static IssuedCard fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java index 04c4d3358..4a565d8b5 100644 --- a/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transfers/IssuingTransactionData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IssuingTransactionData */ @JsonPropertyOrder({ @@ -260,10 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IssuingTransactionData + * @throws JacksonException if the JSON string is invalid with respect to IssuingTransactionData */ - public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { + public static IssuingTransactionData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } @@ -272,7 +271,7 @@ public static IssuingTransactionData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/JSON.java b/src/main/java/com/adyen/model/transfers/JSON.java index a2553c3ed..b742b60ea 100644 --- a/src/main/java/com/adyen/model/transfers/JSON.java +++ b/src/main/java/com/adyen/model/transfers/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/transfers/Leg.java b/src/main/java/com/adyen/model/transfers/Leg.java index 585a75c90..fc7a10f96 100644 --- a/src/main/java/com/adyen/model/transfers/Leg.java +++ b/src/main/java/com/adyen/model/transfers/Leg.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Leg */ @JsonPropertyOrder({ @@ -426,9 +426,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Leg - * @throws JsonProcessingException if the JSON string is invalid with respect to Leg + * @throws JacksonException if the JSON string is invalid with respect to Leg */ - public static Leg fromJson(String jsonString) throws JsonProcessingException { + public static Leg fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Leg.class); } @@ -437,7 +437,7 @@ public static Leg fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Link.java b/src/main/java/com/adyen/model/transfers/Link.java index 34db842ac..05339a801 100644 --- a/src/main/java/com/adyen/model/transfers/Link.java +++ b/src/main/java/com/adyen/model/transfers/Link.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Link */ @JsonPropertyOrder({Link.JSON_PROPERTY_HREF}) @@ -157,9 +157,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Link - * @throws JsonProcessingException if the JSON string is invalid with respect to Link + * @throws JacksonException if the JSON string is invalid with respect to Link */ - public static Link fromJson(String jsonString) throws JsonProcessingException { + public static Link fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Link.class); } @@ -168,7 +168,7 @@ public static Link fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Links.java b/src/main/java/com/adyen/model/transfers/Links.java index 56d87e22c..f82538eee 100644 --- a/src/main/java/com/adyen/model/transfers/Links.java +++ b/src/main/java/com/adyen/model/transfers/Links.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Links */ @JsonPropertyOrder({Links.JSON_PROPERTY_NEXT, Links.JSON_PROPERTY_PREV}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Links - * @throws JsonProcessingException if the JSON string is invalid with respect to Links + * @throws JacksonException if the JSON string is invalid with respect to Links */ - public static Links fromJson(String jsonString) throws JsonProcessingException { + public static Links fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Links.class); } @@ -216,7 +216,7 @@ public static Links fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Lodging.java b/src/main/java/com/adyen/model/transfers/Lodging.java index 97767c25d..7b0c102bb 100644 --- a/src/main/java/com/adyen/model/transfers/Lodging.java +++ b/src/main/java/com/adyen/model/transfers/Lodging.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Lodging */ @JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) @@ -205,9 +205,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Lodging - * @throws JsonProcessingException if the JSON string is invalid with respect to Lodging + * @throws JacksonException if the JSON string is invalid with respect to Lodging */ - public static Lodging fromJson(String jsonString) throws JsonProcessingException { + public static Lodging fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Lodging.class); } @@ -216,7 +216,7 @@ public static Lodging fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/MerchantData.java b/src/main/java/com/adyen/model/transfers/MerchantData.java index 5fad8f6c0..fa1e9da0e 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantData */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantData + * @throws JacksonException if the JSON string is invalid with respect to MerchantData */ - public static MerchantData fromJson(String jsonString) throws JsonProcessingException { + public static MerchantData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } @@ -373,7 +373,7 @@ public static MerchantData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java index c7afd2d53..598245ca4 100644 --- a/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transfers/MerchantPurchaseData.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantPurchaseData */ @JsonPropertyOrder({ @@ -314,10 +314,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantPurchaseData + * @throws JacksonException if the JSON string is invalid with respect to MerchantPurchaseData */ - public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { + public static MerchantPurchaseData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } @@ -326,7 +325,7 @@ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Modification.java b/src/main/java/com/adyen/model/transfers/Modification.java index 765348761..4d13fc3f8 100644 --- a/src/main/java/com/adyen/model/transfers/Modification.java +++ b/src/main/java/com/adyen/model/transfers/Modification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Modification */ @JsonPropertyOrder({ @@ -543,9 +543,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Modification - * @throws JsonProcessingException if the JSON string is invalid with respect to Modification + * @throws JacksonException if the JSON string is invalid with respect to Modification */ - public static Modification fromJson(String jsonString) throws JsonProcessingException { + public static Modification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Modification.class); } @@ -554,7 +554,7 @@ public static Modification fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java index d21f0ab66..ed5211dcd 100644 --- a/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NOLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NOLocalAccountIdentification */ @JsonPropertyOrder({ @@ -251,11 +251,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } @@ -264,7 +263,7 @@ public static NOLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java index 9d6a292fa..1640524a4 100644 --- a/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NZLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static NZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/NameLocation.java b/src/main/java/com/adyen/model/transfers/NameLocation.java index 60307e0d7..99471476d 100644 --- a/src/main/java/com/adyen/model/transfers/NameLocation.java +++ b/src/main/java/com/adyen/model/transfers/NameLocation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NameLocation */ @JsonPropertyOrder({ @@ -430,9 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NameLocation - * @throws JsonProcessingException if the JSON string is invalid with respect to NameLocation + * @throws JacksonException if the JSON string is invalid with respect to NameLocation */ - public static NameLocation fromJson(String jsonString) throws JsonProcessingException { + public static NameLocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } @@ -441,7 +441,7 @@ public static NameLocation fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/NetworkReason.java b/src/main/java/com/adyen/model/transfers/NetworkReason.java index 567e5b391..a4758b796 100644 --- a/src/main/java/com/adyen/model/transfers/NetworkReason.java +++ b/src/main/java/com/adyen/model/transfers/NetworkReason.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NetworkReason */ @JsonPropertyOrder({ @@ -317,9 +317,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NetworkReason - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkReason + * @throws JacksonException if the JSON string is invalid with respect to NetworkReason */ - public static NetworkReason fromJson(String jsonString) throws JsonProcessingException { + public static NetworkReason fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkReason.class); } @@ -328,7 +328,7 @@ public static NetworkReason fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java index 8ad3d6c54..6b8cc5e7a 100644 --- a/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/NumberAndBicAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ @@ -377,11 +377,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NumberAndBicAccountIdentification */ public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } @@ -390,7 +390,7 @@ public static NumberAndBicAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java index 63f08af04..51c4d3c38 100644 --- a/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PLLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PLLocalAccountIdentification */ @JsonPropertyOrder({ @@ -263,11 +263,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } @@ -276,7 +275,7 @@ public static PLLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/PartyIdentification.java b/src/main/java/com/adyen/model/transfers/PartyIdentification.java index 025a14a8a..044e51077 100644 --- a/src/main/java/com/adyen/model/transfers/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/PartyIdentification.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PartyIdentification */ @JsonPropertyOrder({ @@ -686,10 +686,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PartyIdentification + * @throws JacksonException if the JSON string is invalid with respect to PartyIdentification */ - public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } @@ -698,7 +697,7 @@ public static PartyIdentification fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java index ff8adbba5..b2a1580f3 100644 --- a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -312,9 +312,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -323,7 +323,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/PlatformPayment.java b/src/main/java/com/adyen/model/transfers/PlatformPayment.java index 9c45bb54e..4515eb7e1 100644 --- a/src/main/java/com/adyen/model/transfers/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transfers/PlatformPayment.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PlatformPayment */ @JsonPropertyOrder({ @@ -696,9 +696,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of PlatformPayment - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPayment + * @throws JacksonException if the JSON string is invalid with respect to PlatformPayment */ - public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { + public static PlatformPayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } @@ -707,7 +707,7 @@ public static PlatformPayment fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java index 94c72a1e0..359a87222 100644 --- a/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transfers/RelayedAuthorisationData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** RelayedAuthorisationData */ @JsonPropertyOrder({ @@ -224,11 +224,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JacksonException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } @@ -237,7 +235,7 @@ public static RelayedAuthorisationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Repayment.java b/src/main/java/com/adyen/model/transfers/Repayment.java index 5659905bd..fe1570e40 100644 --- a/src/main/java/com/adyen/model/transfers/Repayment.java +++ b/src/main/java/com/adyen/model/transfers/Repayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Repayment */ @JsonPropertyOrder({ @@ -262,9 +262,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Repayment - * @throws JsonProcessingException if the JSON string is invalid with respect to Repayment + * @throws JacksonException if the JSON string is invalid with respect to Repayment */ - public static Repayment fromJson(String jsonString) throws JsonProcessingException { + public static Repayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Repayment.class); } @@ -273,7 +273,7 @@ public static Repayment fromJson(String jsonString) throws JsonProcessingExcepti * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java index d6bb08354..ecdcbb91b 100644 --- a/src/main/java/com/adyen/model/transfers/RepaymentTerm.java +++ b/src/main/java/com/adyen/model/transfers/RepaymentTerm.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** RepaymentTerm */ @JsonPropertyOrder({ @@ -214,9 +214,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RepaymentTerm - * @throws JsonProcessingException if the JSON string is invalid with respect to RepaymentTerm + * @throws JacksonException if the JSON string is invalid with respect to RepaymentTerm */ - public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingException { + public static RepaymentTerm fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RepaymentTerm.class); } @@ -225,7 +225,7 @@ public static RepaymentTerm fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ResourceReference.java b/src/main/java/com/adyen/model/transfers/ResourceReference.java index e2e451ba4..217d64409 100644 --- a/src/main/java/com/adyen/model/transfers/ResourceReference.java +++ b/src/main/java/com/adyen/model/transfers/ResourceReference.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -256,9 +256,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -267,7 +267,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/RestServiceError.java b/src/main/java/com/adyen/model/transfers/RestServiceError.java index c6ff3772b..93ae7cd70 100644 --- a/src/main/java/com/adyen/model/transfers/RestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/RestServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** RestServiceError */ @JsonPropertyOrder({ @@ -581,9 +581,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to RestServiceError + * @throws JacksonException if the JSON string is invalid with respect to RestServiceError */ - public static RestServiceError fromJson(String jsonString) throws JsonProcessingException { + public static RestServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RestServiceError.class); } @@ -592,7 +592,7 @@ public static RestServiceError fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java index 9ce5e82b0..3c2fc1416 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferRequest.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ReturnTransferRequest */ @JsonPropertyOrder({ @@ -229,10 +229,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReturnTransferRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReturnTransferRequest + * @throws JacksonException if the JSON string is invalid with respect to ReturnTransferRequest */ - public static ReturnTransferRequest fromJson(String jsonString) throws JsonProcessingException { + public static ReturnTransferRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReturnTransferRequest.class); } @@ -241,7 +240,7 @@ public static ReturnTransferRequest fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java index f86f1fdbc..9bee583f9 100644 --- a/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java +++ b/src/main/java/com/adyen/model/transfers/ReturnTransferResponse.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ReturnTransferResponse */ @JsonPropertyOrder({ @@ -353,10 +353,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ReturnTransferResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ReturnTransferResponse + * @throws JacksonException if the JSON string is invalid with respect to ReturnTransferResponse */ - public static ReturnTransferResponse fromJson(String jsonString) throws JsonProcessingException { + public static ReturnTransferResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ReturnTransferResponse.class); } @@ -365,7 +364,7 @@ public static ReturnTransferResponse fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/RoutingDetails.java b/src/main/java/com/adyen/model/transfers/RoutingDetails.java index 190d3162d..55d405323 100644 --- a/src/main/java/com/adyen/model/transfers/RoutingDetails.java +++ b/src/main/java/com/adyen/model/transfers/RoutingDetails.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** RoutingDetails */ @JsonPropertyOrder({ @@ -430,9 +430,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of RoutingDetails - * @throws JsonProcessingException if the JSON string is invalid with respect to RoutingDetails + * @throws JacksonException if the JSON string is invalid with respect to RoutingDetails */ - public static RoutingDetails fromJson(String jsonString) throws JsonProcessingException { + public static RoutingDetails fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RoutingDetails.class); } @@ -441,7 +441,7 @@ public static RoutingDetails fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java index dac78227c..de1134688 100644 --- a/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SELocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SELocalAccountIdentification */ @JsonPropertyOrder({ @@ -325,11 +325,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } @@ -338,7 +337,7 @@ public static SELocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java index 350b8ba69..b850d6048 100644 --- a/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/SGLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SGLocalAccountIdentification */ @JsonPropertyOrder({ @@ -299,11 +299,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } @@ -312,7 +311,7 @@ public static SGLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ServiceError.java b/src/main/java/com/adyen/model/transfers/ServiceError.java index 2c88c1a89..c37ece3b0 100644 --- a/src/main/java/com/adyen/model/transfers/ServiceError.java +++ b/src/main/java/com/adyen/model/transfers/ServiceError.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ServiceError */ @JsonPropertyOrder({ @@ -362,9 +362,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to ServiceError + * @throws JacksonException if the JSON string is invalid with respect to ServiceError */ - public static ServiceError fromJson(String jsonString) throws JsonProcessingException { + public static ServiceError fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ServiceError.class); } @@ -373,7 +373,7 @@ public static ServiceError fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java index 08495476f..64c95e0fb 100644 --- a/src/main/java/com/adyen/model/transfers/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transfers/ThreeDSecure.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDSecure */ @JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) @@ -158,9 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThreeDSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecure + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecure */ - public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } @@ -169,7 +169,7 @@ public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java index e0807837b..47e757336 100644 --- a/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java +++ b/src/main/java/com/adyen/model/transfers/ThresholdRepayment.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThresholdRepayment */ @JsonPropertyOrder({ThresholdRepayment.JSON_PROPERTY_AMOUNT}) @@ -158,10 +158,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of ThresholdRepayment - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ThresholdRepayment + * @throws JacksonException if the JSON string is invalid with respect to ThresholdRepayment */ - public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessingException { + public static ThresholdRepayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThresholdRepayment.class); } @@ -170,7 +169,7 @@ public static ThresholdRepayment fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Transaction.java b/src/main/java/com/adyen/model/transfers/Transaction.java index 989ac5391..c722378ae 100644 --- a/src/main/java/com/adyen/model/transfers/Transaction.java +++ b/src/main/java/com/adyen/model/transfers/Transaction.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Transaction */ @JsonPropertyOrder({ @@ -853,9 +853,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Transaction - * @throws JsonProcessingException if the JSON string is invalid with respect to Transaction + * @throws JacksonException if the JSON string is invalid with respect to Transaction */ - public static Transaction fromJson(String jsonString) throws JsonProcessingException { + public static Transaction fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Transaction.class); } @@ -864,7 +864,7 @@ public static Transaction fromJson(String jsonString) throws JsonProcessingExcep * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java index b97ae7297..80be9d27a 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transfers/TransactionEventViolation.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionEventViolation */ @JsonPropertyOrder({ @@ -267,11 +267,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } @@ -280,7 +279,7 @@ public static TransactionEventViolation fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java index bb51d05ed..9f56fecb9 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleReference.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleReference */ @JsonPropertyOrder({ @@ -368,11 +368,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleReference + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } @@ -381,7 +379,7 @@ public static TransactionRuleReference fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java index 135ab9c7d..dd7bee634 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRuleSource.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleSource */ @JsonPropertyOrder({ @@ -226,10 +226,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleSource + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleSource */ - public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } @@ -238,7 +237,7 @@ public static TransactionRuleSource fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java index 436f03884..010348bf5 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transfers/TransactionRulesResult.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransactionRulesResult */ @JsonPropertyOrder({ @@ -341,10 +341,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResult + * @throws JacksonException if the JSON string is invalid with respect to TransactionRulesResult */ - public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRulesResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } @@ -353,7 +352,7 @@ public static TransactionRulesResult fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java index d8b2ecae8..d5595b8f3 100644 --- a/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java +++ b/src/main/java/com/adyen/model/transfers/TransactionSearchResponse.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransactionSearchResponse */ @JsonPropertyOrder({ @@ -218,11 +218,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransactionSearchResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionSearchResponse */ - public static TransactionSearchResponse fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionSearchResponse fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionSearchResponse.class); } @@ -231,7 +230,7 @@ public static TransactionSearchResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/Transfer.java b/src/main/java/com/adyen/model/transfers/Transfer.java index d5cc5642e..828987735 100644 --- a/src/main/java/com/adyen/model/transfers/Transfer.java +++ b/src/main/java/com/adyen/model/transfers/Transfer.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Transfer */ @JsonPropertyOrder({ @@ -1939,9 +1939,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of Transfer - * @throws JsonProcessingException if the JSON string is invalid with respect to Transfer + * @throws JacksonException if the JSON string is invalid with respect to Transfer */ - public static Transfer fromJson(String jsonString) throws JsonProcessingException { + public static Transfer fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Transfer.class); } @@ -1950,7 +1950,7 @@ public static Transfer fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java index 7953af02f..55ba61c33 100644 --- a/src/main/java/com/adyen/model/transfers/TransferCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/TransferCategoryData.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferCategoryData.TransferCategoryDataDeserializer.class) @JsonSerialize(using = TransferCategoryData.TransferCategoryDataSerializer.class) @@ -49,9 +48,9 @@ public TransferCategoryDataSerializer() { @Override public void serialize( - TransferCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferCategoryData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -67,12 +66,11 @@ public TransferCategoryDataDeserializer(Class vc) { @Override public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize BankCategoryData try { boolean attemptParsing = true; @@ -86,7 +84,7 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, BankCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -112,7 +110,7 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -138,7 +136,7 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + deserialized = ctxt.readTreeAsValue(tree, IssuedCard.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -164,7 +162,7 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + deserialized = ctxt.readTreeAsValue(tree, PlatformPayment.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -182,7 +180,8 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferCategoryData: %d classes match result, expected 1", match)); @@ -190,9 +189,8 @@ public TransferCategoryData deserialize(JsonParser jp, DeserializationContext ct /** Handle deserialization of the 'null' value. */ @Override - public TransferCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferCategoryData cannot be null"); + public TransferCategoryData getNullValue(DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from(ctxt, "TransferCategoryData cannot be null"); } } @@ -354,7 +352,7 @@ public static TransferCategoryData fromJson(String jsonString) throws IOExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferData.java b/src/main/java/com/adyen/model/transfers/TransferData.java index 3ec915bcb..3c2850cb0 100644 --- a/src/main/java/com/adyen/model/transfers/TransferData.java +++ b/src/main/java/com/adyen/model/transfers/TransferData.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferData */ @JsonPropertyOrder({ @@ -2536,9 +2536,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferData - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferData + * @throws JacksonException if the JSON string is invalid with respect to TransferData */ - public static TransferData fromJson(String jsonString) throws JsonProcessingException { + public static TransferData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferData.class); } @@ -2547,7 +2547,7 @@ public static TransferData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferDataTracing.java b/src/main/java/com/adyen/model/transfers/TransferDataTracing.java index 361ef650b..cd28c846d 100644 --- a/src/main/java/com/adyen/model/transfers/TransferDataTracing.java +++ b/src/main/java/com/adyen/model/transfers/TransferDataTracing.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferDataTracing.TransferDataTracingDeserializer.class) @JsonSerialize(using = TransferDataTracing.TransferDataTracingSerializer.class) @@ -49,9 +48,9 @@ public TransferDataTracingSerializer() { @Override public void serialize( - TransferDataTracing value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferDataTracing value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -66,12 +65,11 @@ public TransferDataTracingDeserializer(Class vc) { @Override public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize UKFpsTracingData try { boolean attemptParsing = true; @@ -85,7 +83,7 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKFpsTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, UKFpsTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -111,7 +109,7 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USAchTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, USAchTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -129,7 +127,8 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferDataTracing: %d classes match result, expected 1", match)); @@ -137,9 +136,8 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx /** Handle deserialization of the 'null' value. */ @Override - public TransferDataTracing getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracing cannot be null"); + public TransferDataTracing getNullValue(DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from(ctxt, "TransferDataTracing cannot be null"); } } @@ -249,7 +247,7 @@ public static TransferDataTracing fromJson(String jsonString) throws IOException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java index a8cafef99..975599e49 100644 --- a/src/main/java/com/adyen/model/transfers/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transfers/TransferDataTracking.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) @@ -49,9 +48,9 @@ public TransferDataTrackingSerializer() { @Override public void serialize( - TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferDataTracking value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -67,12 +66,11 @@ public TransferDataTrackingDeserializer(Class vc) { @Override public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ConfirmationTrackingData try { boolean attemptParsing = true; @@ -86,7 +84,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, ConfirmationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -112,7 +110,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, EstimationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -138,8 +136,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalReviewTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -157,7 +154,8 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); @@ -165,9 +163,8 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct /** Handle deserialization of the 'null' value. */ @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + public TransferDataTracking getNullValue(DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from(ctxt, "TransferDataTracking cannot be null"); } } @@ -305,7 +302,7 @@ public static TransferDataTracking fromJson(String jsonString) throws IOExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEvent.java b/src/main/java/com/adyen/model/transfers/TransferEvent.java index 84b3f29c4..9a08ab923 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEvent.java +++ b/src/main/java/com/adyen/model/transfers/TransferEvent.java @@ -18,13 +18,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferEvent */ @JsonPropertyOrder({ @@ -1545,9 +1545,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferEvent - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferEvent + * @throws JacksonException if the JSON string is invalid with respect to TransferEvent */ - public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { + public static TransferEvent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } @@ -1556,7 +1556,7 @@ public static TransferEvent fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java index cc42d38e8..f8089a6e8 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventEventsDataInner.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @@ -51,9 +50,9 @@ public TransferEventEventsDataInnerSerializer() { @Override public void serialize( - TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventEventsDataInner value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -69,12 +68,11 @@ public TransferEventEventsDataInnerDeserializer(Class vc) { @Override public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize InterchangeData try { boolean attemptParsing = true; @@ -88,7 +86,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InterchangeData.class); + deserialized = ctxt.readTreeAsValue(tree, InterchangeData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -114,7 +112,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + deserialized = ctxt.readTreeAsValue(tree, IssuingTransactionData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -140,7 +138,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + deserialized = ctxt.readTreeAsValue(tree, MerchantPurchaseData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -158,7 +156,8 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); @@ -167,9 +166,8 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo /** Handle deserialization of the 'null' value. */ @Override public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventEventsDataInner cannot be null"); } } @@ -306,7 +304,7 @@ public static TransferEventEventsDataInner fromJson(String jsonString) throws IO * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventTracingData.java b/src/main/java/com/adyen/model/transfers/TransferEventTracingData.java index 53b95df1d..48556c92d 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventTracingData.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventTracingData.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferEventTracingData.TransferEventTracingDataDeserializer.class) @JsonSerialize(using = TransferEventTracingData.TransferEventTracingDataSerializer.class) @@ -50,9 +49,9 @@ public TransferEventTracingDataSerializer() { @Override public void serialize( - TransferEventTracingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventTracingData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferEventTracingDataDeserializer(Class vc) { @Override public TransferEventTracingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize UKFpsTracingData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKFpsTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, UKFpsTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USAchTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, USAchTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -131,7 +129,8 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventTracingData: %d classes match result, expected 1", match)); @@ -140,8 +139,8 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex /** Handle deserialization of the 'null' value. */ @Override public TransferEventTracingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTracingData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventTracingData cannot be null"); } } @@ -251,7 +250,7 @@ public static TransferEventTracingData fromJson(String jsonString) throws IOExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java index 6a1027998..6599ddbd7 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/TransferEventTrackingData.java @@ -11,19 +11,6 @@ package com.adyen.model.transfers; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) @@ -50,9 +49,9 @@ public TransferEventTrackingDataSerializer() { @Override public void serialize( - TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventTrackingData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferEventTrackingDataDeserializer(Class vc) { @Override public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ConfirmationTrackingData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, ConfirmationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, EstimationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -139,8 +137,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalReviewTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -158,7 +155,8 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); @@ -167,8 +165,8 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte /** Handle deserialization of the 'null' value. */ @Override public TransferEventTrackingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventTrackingData cannot be null"); } } @@ -306,7 +304,7 @@ public static TransferEventTrackingData fromJson(String jsonString) throws IOExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferInfo.java b/src/main/java/com/adyen/model/transfers/TransferInfo.java index 81513f1dc..3a02e42e6 100644 --- a/src/main/java/com/adyen/model/transfers/TransferInfo.java +++ b/src/main/java/com/adyen/model/transfers/TransferInfo.java @@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferInfo */ @JsonPropertyOrder({ @@ -1384,9 +1384,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferInfo - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferInfo + * @throws JacksonException if the JSON string is invalid with respect to TransferInfo */ - public static TransferInfo fromJson(String jsonString) throws JsonProcessingException { + public static TransferInfo fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferInfo.class); } @@ -1395,7 +1395,7 @@ public static TransferInfo fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java index f30bc2af3..4ca5f243c 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationCounterParty.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationCounterParty */ @JsonPropertyOrder({ @@ -386,11 +386,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationCounterParty */ public static TransferNotificationCounterParty fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } @@ -399,7 +399,7 @@ public static TransferNotificationCounterParty fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java index e3bd9d616..534e4bb5e 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationMerchantData.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationMerchantData */ @JsonPropertyOrder({ @@ -527,11 +527,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationMerchantData */ public static TransferNotificationMerchantData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } @@ -540,7 +540,7 @@ public static TransferNotificationMerchantData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java index 3e0af60d3..8e68235e5 100644 --- a/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transfers/TransferNotificationValidationFact.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationValidationFact */ @JsonPropertyOrder({ @@ -211,11 +211,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationValidationFact */ public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } @@ -224,7 +224,7 @@ public static TransferNotificationValidationFact fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java index 3a6d88127..30ca8a1a3 100644 --- a/src/main/java/com/adyen/model/transfers/TransferRequestReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferRequestReview.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferRequestReview */ @JsonPropertyOrder({ @@ -251,10 +251,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferRequestReview - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransferRequestReview + * @throws JacksonException if the JSON string is invalid with respect to TransferRequestReview */ - public static TransferRequestReview fromJson(String jsonString) throws JsonProcessingException { + public static TransferRequestReview fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferRequestReview.class); } @@ -263,7 +262,7 @@ public static TransferRequestReview fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferReview.java b/src/main/java/com/adyen/model/transfers/TransferReview.java index 1934c9795..839302d8e 100644 --- a/src/main/java/com/adyen/model/transfers/TransferReview.java +++ b/src/main/java/com/adyen/model/transfers/TransferReview.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferReview */ @JsonPropertyOrder({ @@ -284,9 +284,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferReview - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferReview + * @throws JacksonException if the JSON string is invalid with respect to TransferReview */ - public static TransferReview fromJson(String jsonString) throws JsonProcessingException { + public static TransferReview fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } @@ -295,7 +295,7 @@ public static TransferReview fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java index 8d2be0be8..026618e9a 100644 --- a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java +++ b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransferServiceRestServiceError */ @JsonPropertyOrder({ @@ -658,11 +658,11 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferServiceRestServiceError - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferServiceRestServiceError */ public static TransferServiceRestServiceError fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferServiceRestServiceError.class); } @@ -671,7 +671,7 @@ public static TransferServiceRestServiceError fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/TransferView.java b/src/main/java/com/adyen/model/transfers/TransferView.java index 41458ce7a..26de097ca 100644 --- a/src/main/java/com/adyen/model/transfers/TransferView.java +++ b/src/main/java/com/adyen/model/transfers/TransferView.java @@ -16,8 +16,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferView */ @JsonPropertyOrder({ @@ -274,9 +274,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of TransferView - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferView + * @throws JacksonException if the JSON string is invalid with respect to TransferView */ - public static TransferView fromJson(String jsonString) throws JsonProcessingException { + public static TransferView fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferView.class); } @@ -285,7 +285,7 @@ public static TransferView fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/UKFpsTracingData.java b/src/main/java/com/adyen/model/transfers/UKFpsTracingData.java index 87db8f8f9..31a5e7bf5 100644 --- a/src/main/java/com/adyen/model/transfers/UKFpsTracingData.java +++ b/src/main/java/com/adyen/model/transfers/UKFpsTracingData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKFpsTracingData */ @JsonPropertyOrder({UKFpsTracingData.JSON_PROPERTY_FPID, UKFpsTracingData.JSON_PROPERTY_TYPE}) @@ -254,9 +254,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKFpsTracingData - * @throws JsonProcessingException if the JSON string is invalid with respect to UKFpsTracingData + * @throws JacksonException if the JSON string is invalid with respect to UKFpsTracingData */ - public static UKFpsTracingData fromJson(String jsonString) throws JsonProcessingException { + public static UKFpsTracingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKFpsTracingData.class); } @@ -265,7 +265,7 @@ public static UKFpsTracingData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java index 1db60eb9e..d24597f55 100644 --- a/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UKLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -306,11 +306,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } @@ -319,7 +318,7 @@ public static UKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/USAchTracingData.java b/src/main/java/com/adyen/model/transfers/USAchTracingData.java index 9d25dd8dc..974679a5b 100644 --- a/src/main/java/com/adyen/model/transfers/USAchTracingData.java +++ b/src/main/java/com/adyen/model/transfers/USAchTracingData.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USAchTracingData */ @JsonPropertyOrder({ @@ -260,9 +260,9 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USAchTracingData - * @throws JsonProcessingException if the JSON string is invalid with respect to USAchTracingData + * @throws JacksonException if the JSON string is invalid with respect to USAchTracingData */ - public static USAchTracingData fromJson(String jsonString) throws JsonProcessingException { + public static USAchTracingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USAchTracingData.class); } @@ -271,7 +271,7 @@ public static USAchTracingData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java index 6e4f99962..bf1367e0e 100644 --- a/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transfers/USLocalAccountIdentification.java @@ -18,10 +18,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USLocalAccountIdentification */ @JsonPropertyOrder({ @@ -410,11 +410,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } @@ -423,7 +422,7 @@ public static USLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java index 73c108bb5..75a6e9f46 100644 --- a/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java +++ b/src/main/java/com/adyen/model/transfers/UltimatePartyIdentification.java @@ -18,11 +18,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UltimatePartyIdentification */ @JsonPropertyOrder({ @@ -737,11 +737,10 @@ private void addIfNull(Map map, String key, Object value) { * * @param jsonString JSON string * @return An instance of UltimatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UltimatePartyIdentification */ - public static UltimatePartyIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UltimatePartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimatePartyIdentification.class); } @@ -750,7 +749,7 @@ public static UltimatePartyIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java index 840af2718..62ad71b43 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AULocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AULocalAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AULocalAccountIdentification */ - public static AULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AULocalAccountIdentification.class); } @@ -242,7 +241,7 @@ public static AULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java index 2cd17d0bb..0abfdce3b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AdditionalBankIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AdditionalBankIdentification */ @JsonPropertyOrder({ @@ -255,11 +255,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AdditionalBankIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * AdditionalBankIdentification */ - public static AdditionalBankIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static AdditionalBankIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AdditionalBankIdentification.class); } @@ -268,7 +267,7 @@ public static AdditionalBankIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Address.java b/src/main/java/com/adyen/model/transferwebhooks/Address.java index d7ed7cc91..7b02012b6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Address.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Address.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Address */ @JsonPropertyOrder({ @@ -342,9 +342,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Address - * @throws JsonProcessingException if the JSON string is invalid with respect to Address + * @throws JacksonException if the JSON string is invalid with respect to Address */ - public static Address fromJson(String jsonString) throws JsonProcessingException { + public static Address fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Address.class); } @@ -353,7 +353,7 @@ public static Address fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Airline.java b/src/main/java/com/adyen/model/transferwebhooks/Airline.java index bfe6ad80c..0396bafc0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Airline.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Airline.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** Airline */ @JsonPropertyOrder({Airline.JSON_PROPERTY_LEGS, Airline.JSON_PROPERTY_TICKET_NUMBER}) @@ -148,9 +148,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Airline - * @throws JsonProcessingException if the JSON string is invalid with respect to Airline + * @throws JacksonException if the JSON string is invalid with respect to Airline */ - public static Airline fromJson(String jsonString) throws JsonProcessingException { + public static Airline fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Airline.class); } @@ -159,7 +159,7 @@ public static Airline fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Amount.java b/src/main/java/com/adyen/model/transferwebhooks/Amount.java index 0cd70f18a..97b61b80a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Amount.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Amount.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Amount */ @JsonPropertyOrder({Amount.JSON_PROPERTY_CURRENCY, Amount.JSON_PROPERTY_VALUE}) @@ -156,9 +156,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Amount - * @throws JsonProcessingException if the JSON string is invalid with respect to Amount + * @throws JacksonException if the JSON string is invalid with respect to Amount */ - public static Amount fromJson(String jsonString) throws JsonProcessingException { + public static Amount fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Amount.class); } @@ -167,7 +167,7 @@ public static Amount fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java index 00fff8f3a..2e04e6969 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/AmountAdjustment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** AmountAdjustment */ @JsonPropertyOrder({ @@ -240,9 +240,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of AmountAdjustment - * @throws JsonProcessingException if the JSON string is invalid with respect to AmountAdjustment + * @throws JacksonException if the JSON string is invalid with respect to AmountAdjustment */ - public static AmountAdjustment fromJson(String jsonString) throws JsonProcessingException { + public static AmountAdjustment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, AmountAdjustment.class); } @@ -251,7 +251,7 @@ public static AmountAdjustment fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java index 12730df5f..c14343478 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BRLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BRLocalAccountIdentification */ @JsonPropertyOrder({ @@ -301,11 +301,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BRLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BRLocalAccountIdentification */ - public static BRLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static BRLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class); } @@ -314,7 +313,7 @@ public static BRLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java index a23e484bf..8cc4eadd5 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalanceMutation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalanceMutation */ @JsonPropertyOrder({ @@ -243,9 +243,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalanceMutation - * @throws JsonProcessingException if the JSON string is invalid with respect to BalanceMutation + * @throws JacksonException if the JSON string is invalid with respect to BalanceMutation */ - public static BalanceMutation fromJson(String jsonString) throws JsonProcessingException { + public static BalanceMutation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BalanceMutation.class); } @@ -254,7 +254,7 @@ public static BalanceMutation fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java index 6f13538f7..05251417b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BalancePlatformNotificationResponse */ @JsonPropertyOrder({BalancePlatformNotificationResponse.JSON_PROPERTY_NOTIFICATION_RESPONSE}) @@ -111,11 +111,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BalancePlatformNotificationResponse - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * BalancePlatformNotificationResponse */ public static BalancePlatformNotificationResponse fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, BalancePlatformNotificationResponse.class); } @@ -124,7 +124,7 @@ public static BalancePlatformNotificationResponse fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java index 53e309721..3d87c62c3 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** BankAccountV3 */ @JsonPropertyOrder({ @@ -191,9 +191,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankAccountV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountV3 + * @throws JacksonException if the JSON string is invalid with respect to BankAccountV3 */ - public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingException { + public static BankAccountV3 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankAccountV3.class); } @@ -202,7 +202,7 @@ public static BankAccountV3 fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java index e19901b50..2f0350593 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankAccountV3AccountIdentification.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = BankAccountV3AccountIdentification.BankAccountV3AccountIdentificationDeserializer.class) @@ -54,9 +53,9 @@ public BankAccountV3AccountIdentificationSerializer() { @Override public void serialize( - BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + BankAccountV3AccountIdentification value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -72,12 +71,11 @@ public BankAccountV3AccountIdentificationDeserializer(Class vc) { @Override public BankAccountV3AccountIdentification deserialize( - JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize AULocalAccountIdentification try { boolean attemptParsing = true; @@ -91,8 +89,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(AULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, AULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -118,8 +115,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(BRLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, BRLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -145,8 +141,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CALocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CALocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -172,8 +167,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(CZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, CZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -199,8 +193,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(DKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, DKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -226,8 +219,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -253,8 +245,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(HULocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, HULocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -280,8 +271,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(IbanAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, IbanAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -307,8 +297,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NOLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NOLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -334,8 +323,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NZLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NZLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -361,8 +349,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(NumberAndBicAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, NumberAndBicAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -389,8 +376,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(PLLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, PLLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -416,8 +402,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SELocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SELocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -443,8 +428,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(SGLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, SGLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -470,8 +454,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(UKLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, UKLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -497,8 +480,7 @@ public BankAccountV3AccountIdentification deserialize( } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(USLocalAccountIdentification.class); + deserialized = ctxt.readTreeAsValue(tree, USLocalAccountIdentification.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -516,7 +498,8 @@ public BankAccountV3AccountIdentification deserialize( ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for BankAccountV3AccountIdentification: %d classes match result, expected 1", match)); @@ -525,9 +508,8 @@ public BankAccountV3AccountIdentification deserialize( /** Handle deserialization of the 'null' value. */ @Override public BankAccountV3AccountIdentification getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "BankAccountV3AccountIdentification cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "BankAccountV3AccountIdentification cannot be null"); } } @@ -995,7 +977,7 @@ public static BankAccountV3AccountIdentification fromJson(String jsonString) thr * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java index 8365dfedd..7a59d8101 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** BankCategoryData */ @JsonPropertyOrder({BankCategoryData.JSON_PROPERTY_PRIORITY, BankCategoryData.JSON_PROPERTY_TYPE}) @@ -302,9 +302,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of BankCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to BankCategoryData + * @throws JacksonException if the JSON string is invalid with respect to BankCategoryData */ - public static BankCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static BankCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, BankCategoryData.class); } @@ -313,7 +313,7 @@ public static BankCategoryData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java index e1c0ce47d..9d041b50e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CALocalAccountIdentification */ @JsonPropertyOrder({ @@ -347,11 +347,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CALocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CALocalAccountIdentification */ - public static CALocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CALocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class); } @@ -360,7 +359,7 @@ public static CALocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java index a46f58f0b..05377f613 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CZLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** CZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -247,11 +247,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * CZLocalAccountIdentification */ - public static CZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static CZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CZLocalAccountIdentification.class); } @@ -260,7 +259,7 @@ public static CZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Card.java b/src/main/java/com/adyen/model/transferwebhooks/Card.java index f7fe6a73b..bafbe8dc0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Card.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Card.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Card */ @JsonPropertyOrder({Card.JSON_PROPERTY_CARD_HOLDER, Card.JSON_PROPERTY_CARD_IDENTIFICATION}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Card - * @throws JsonProcessingException if the JSON string is invalid with respect to Card + * @throws JacksonException if the JSON string is invalid with respect to Card */ - public static Card fromJson(String jsonString) throws JsonProcessingException { + public static Card fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Card.class); } @@ -149,7 +149,7 @@ public static Card fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java index 5b6e43a02..cc34aed7e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CardIdentification.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CardIdentification */ @JsonPropertyOrder({ @@ -378,10 +378,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CardIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * CardIdentification + * @throws JacksonException if the JSON string is invalid with respect to CardIdentification */ - public static CardIdentification fromJson(String jsonString) throws JsonProcessingException { + public static CardIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CardIdentification.class); } @@ -390,7 +389,7 @@ public static CardIdentification fromJson(String jsonString) throws JsonProcessi * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java index 37c66d92c..efa439eb1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** ConfirmationTrackingData */ @JsonPropertyOrder({ @@ -250,11 +250,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ConfirmationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * ConfirmationTrackingData + * @throws JacksonException if the JSON string is invalid with respect to ConfirmationTrackingData */ - public static ConfirmationTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static ConfirmationTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ConfirmationTrackingData.class); } @@ -263,7 +261,7 @@ public static ConfirmationTrackingData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java index bb8a1a793..94516f3eb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java +++ b/src/main/java/com/adyen/model/transferwebhooks/CounterpartyV3.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** CounterpartyV3 */ @JsonPropertyOrder({ @@ -272,9 +272,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of CounterpartyV3 - * @throws JsonProcessingException if the JSON string is invalid with respect to CounterpartyV3 + * @throws JacksonException if the JSON string is invalid with respect to CounterpartyV3 */ - public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingException { + public static CounterpartyV3 fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, CounterpartyV3.class); } @@ -283,7 +283,7 @@ public static CounterpartyV3 fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java index 86a651b02..f7e714882 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DKLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** DKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -227,11 +227,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * DKLocalAccountIdentification */ - public static DKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static DKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DKLocalAccountIdentification.class); } @@ -240,7 +239,7 @@ public static DKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java index c4944dac4..eed1208b7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/DirectDebitInformation.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** DirectDebitInformation */ @JsonPropertyOrder({ @@ -232,10 +232,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of DirectDebitInformation - * @throws JsonProcessingException if the JSON string is invalid with respect to - * DirectDebitInformation + * @throws JacksonException if the JSON string is invalid with respect to DirectDebitInformation */ - public static DirectDebitInformation fromJson(String jsonString) throws JsonProcessingException { + public static DirectDebitInformation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, DirectDebitInformation.class); } @@ -244,7 +243,7 @@ public static DirectDebitInformation fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java index 15e7f11e8..b6b0f68fa 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** EstimationTrackingData */ @JsonPropertyOrder({ @@ -197,10 +197,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of EstimationTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * EstimationTrackingData + * @throws JacksonException if the JSON string is invalid with respect to EstimationTrackingData */ - public static EstimationTrackingData fromJson(String jsonString) throws JsonProcessingException { + public static EstimationTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, EstimationTrackingData.class); } @@ -209,7 +208,7 @@ public static EstimationTrackingData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java index 7590e2320..9527b5e43 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExecutionDate.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; +import tools.jackson.core.JacksonException; /** ExecutionDate */ @JsonPropertyOrder({ExecutionDate.JSON_PROPERTY_DATE, ExecutionDate.JSON_PROPERTY_TIMEZONE}) @@ -169,9 +169,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ExecutionDate - * @throws JsonProcessingException if the JSON string is invalid with respect to ExecutionDate + * @throws JacksonException if the JSON string is invalid with respect to ExecutionDate */ - public static ExecutionDate fromJson(String jsonString) throws JsonProcessingException { + public static ExecutionDate fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExecutionDate.class); } @@ -180,7 +180,7 @@ public static ExecutionDate fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java index 23eb589fe..af404ce4e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ExternalReason */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ExternalReason - * @throws JsonProcessingException if the JSON string is invalid with respect to ExternalReason + * @throws JacksonException if the JSON string is invalid with respect to ExternalReason */ - public static ExternalReason fromJson(String jsonString) throws JsonProcessingException { + public static ExternalReason fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ExternalReason.class); } @@ -191,7 +191,7 @@ public static ExternalReason fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/FundingInstrument.java b/src/main/java/com/adyen/model/transferwebhooks/FundingInstrument.java index a6f820a8c..876f71c9f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/FundingInstrument.java +++ b/src/main/java/com/adyen/model/transferwebhooks/FundingInstrument.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** FundingInstrument */ @JsonPropertyOrder({ @@ -287,9 +287,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of FundingInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to FundingInstrument + * @throws JacksonException if the JSON string is invalid with respect to FundingInstrument */ - public static FundingInstrument fromJson(String jsonString) throws JsonProcessingException { + public static FundingInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, FundingInstrument.class); } @@ -298,7 +298,7 @@ public static FundingInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java index 01fcbfd81..01f3b256b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HKLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of HKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HKLocalAccountIdentification */ - public static HKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class); } @@ -242,7 +241,7 @@ public static HKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java index fccfad5ec..54f06380d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/HULocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** HULocalAccountIdentification */ @JsonPropertyOrder({ @@ -184,11 +184,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of HULocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * HULocalAccountIdentification */ - public static HULocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static HULocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, HULocalAccountIdentification.class); } @@ -197,7 +196,7 @@ public static HULocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java index d1df4ba48..a4089b7dd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IbanAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IbanAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IbanAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * IbanAccountIdentification */ - public static IbanAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static IbanAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IbanAccountIdentification.class); } @@ -242,7 +241,7 @@ public static IbanAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InterchangeData.java b/src/main/java/com/adyen/model/transferwebhooks/InterchangeData.java index 3446e6ea0..bf3a86ec0 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InterchangeData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InterchangeData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InterchangeData */ @JsonPropertyOrder({ @@ -246,9 +246,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InterchangeData - * @throws JsonProcessingException if the JSON string is invalid with respect to InterchangeData + * @throws JacksonException if the JSON string is invalid with respect to InterchangeData */ - public static InterchangeData fromJson(String jsonString) throws JsonProcessingException { + public static InterchangeData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InterchangeData.class); } @@ -257,7 +257,7 @@ public static InterchangeData fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java index 3139106aa..0378087ee 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalCategoryData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InternalCategoryData */ @JsonPropertyOrder({ @@ -233,10 +233,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InternalCategoryData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * InternalCategoryData + * @throws JacksonException if the JSON string is invalid with respect to InternalCategoryData */ - public static InternalCategoryData fromJson(String jsonString) throws JsonProcessingException { + public static InternalCategoryData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InternalCategoryData.class); } @@ -245,7 +244,7 @@ public static InternalCategoryData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java index a67616193..360651d1d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** InternalReviewTrackingData */ @JsonPropertyOrder({ @@ -347,11 +347,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of InternalReviewTrackingData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * InternalReviewTrackingData */ - public static InternalReviewTrackingData fromJson(String jsonString) - throws JsonProcessingException { + public static InternalReviewTrackingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, InternalReviewTrackingData.class); } @@ -360,7 +359,7 @@ public static InternalReviewTrackingData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java index e8e9f58e8..f4b56b578 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IssuedCard */ @JsonPropertyOrder({ @@ -655,9 +655,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IssuedCard - * @throws JsonProcessingException if the JSON string is invalid with respect to IssuedCard + * @throws JacksonException if the JSON string is invalid with respect to IssuedCard */ - public static IssuedCard fromJson(String jsonString) throws JsonProcessingException { + public static IssuedCard fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IssuedCard.class); } @@ -666,7 +666,7 @@ public static IssuedCard fromJson(String jsonString) throws JsonProcessingExcept * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java index f290bcec6..4e161b4b3 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuingTransactionData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** IssuingTransactionData */ @JsonPropertyOrder({ @@ -193,10 +193,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of IssuingTransactionData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * IssuingTransactionData + * @throws JacksonException if the JSON string is invalid with respect to IssuingTransactionData */ - public static IssuingTransactionData fromJson(String jsonString) throws JsonProcessingException { + public static IssuingTransactionData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, IssuingTransactionData.class); } @@ -205,7 +204,7 @@ public static IssuingTransactionData fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/JSON.java b/src/main/java/com/adyen/model/transferwebhooks/JSON.java index 96b83a20b..21abe3be2 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/JSON.java +++ b/src/main/java/com/adyen/model/transferwebhooks/JSON.java @@ -3,9 +3,6 @@ import com.adyen.serializer.ByteArrayDeserializer; import com.adyen.serializer.ByteArraySerializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.module.SimpleModule; -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; import java.text.DateFormat; @@ -13,26 +10,34 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion( + ignored -> + JsonInclude.Value.construct( + JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -41,7 +46,7 @@ private JSON() { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/src/main/java/com/adyen/model/transferwebhooks/Leg.java b/src/main/java/com/adyen/model/transferwebhooks/Leg.java index 01040e074..f277b120c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Leg.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Leg.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Leg */ @JsonPropertyOrder({ @@ -317,9 +317,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Leg - * @throws JsonProcessingException if the JSON string is invalid with respect to Leg + * @throws JacksonException if the JSON string is invalid with respect to Leg */ - public static Leg fromJson(String jsonString) throws JsonProcessingException { + public static Leg fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Leg.class); } @@ -328,7 +328,7 @@ public static Leg fromJson(String jsonString) throws JsonProcessingException { * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java index c007d2416..afcc5622a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Lodging.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Lodging.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** Lodging */ @JsonPropertyOrder({Lodging.JSON_PROPERTY_CHECK_IN_DATE, Lodging.JSON_PROPERTY_NUMBER_OF_NIGHTS}) @@ -138,9 +138,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Lodging - * @throws JsonProcessingException if the JSON string is invalid with respect to Lodging + * @throws JacksonException if the JSON string is invalid with respect to Lodging */ - public static Lodging fromJson(String jsonString) throws JsonProcessingException { + public static Lodging fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Lodging.class); } @@ -149,7 +149,7 @@ public static Lodging fromJson(String jsonString) throws JsonProcessingException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java index cae5b9a6d..8123f0ff9 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** MerchantData */ @JsonPropertyOrder({ @@ -258,9 +258,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to MerchantData + * @throws JacksonException if the JSON string is invalid with respect to MerchantData */ - public static MerchantData fromJson(String jsonString) throws JsonProcessingException { + public static MerchantData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantData.class); } @@ -269,7 +269,7 @@ public static MerchantData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java index 52c0ae910..9258cf270 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/MerchantPurchaseData.java @@ -16,12 +16,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** MerchantPurchaseData */ @JsonPropertyOrder({ @@ -238,10 +238,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of MerchantPurchaseData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * MerchantPurchaseData + * @throws JacksonException if the JSON string is invalid with respect to MerchantPurchaseData */ - public static MerchantPurchaseData fromJson(String jsonString) throws JsonProcessingException { + public static MerchantPurchaseData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, MerchantPurchaseData.class); } @@ -250,7 +249,7 @@ public static MerchantPurchaseData fromJson(String jsonString) throws JsonProces * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Modification.java b/src/main/java/com/adyen/model/transferwebhooks/Modification.java index 79d4fe480..0d8913773 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Modification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Modification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** Modification */ @JsonPropertyOrder({ @@ -439,9 +439,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Modification - * @throws JsonProcessingException if the JSON string is invalid with respect to Modification + * @throws JacksonException if the JSON string is invalid with respect to Modification */ - public static Modification fromJson(String jsonString) throws JsonProcessingException { + public static Modification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Modification.class); } @@ -450,7 +450,7 @@ public static Modification fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java index 250b05d9b..d9ebd67a3 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NOLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NOLocalAccountIdentification */ @JsonPropertyOrder({ @@ -184,11 +184,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NOLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NOLocalAccountIdentification */ - public static NOLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NOLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NOLocalAccountIdentification.class); } @@ -197,7 +196,7 @@ public static NOLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java index 14798f3aa..74826c614 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NZLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NZLocalAccountIdentification */ @JsonPropertyOrder({ @@ -196,11 +196,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NZLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NZLocalAccountIdentification */ - public static NZLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static NZLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NZLocalAccountIdentification.class); } @@ -209,7 +208,7 @@ public static NZLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java index dcd9872ea..ad5b78d10 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NameLocation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** NameLocation */ @JsonPropertyOrder({ @@ -315,9 +315,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NameLocation - * @throws JsonProcessingException if the JSON string is invalid with respect to NameLocation + * @throws JacksonException if the JSON string is invalid with respect to NameLocation */ - public static NameLocation fromJson(String jsonString) throws JsonProcessingException { + public static NameLocation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NameLocation.class); } @@ -326,7 +326,7 @@ public static NameLocation fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NetworkReason.java b/src/main/java/com/adyen/model/transferwebhooks/NetworkReason.java index 12882907f..45ed6a7a7 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NetworkReason.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NetworkReason.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NetworkReason */ @JsonPropertyOrder({ @@ -241,9 +241,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NetworkReason - * @throws JsonProcessingException if the JSON string is invalid with respect to NetworkReason + * @throws JacksonException if the JSON string is invalid with respect to NetworkReason */ - public static NetworkReason fromJson(String jsonString) throws JsonProcessingException { + public static NetworkReason fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, NetworkReason.class); } @@ -252,7 +252,7 @@ public static NetworkReason fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java index 49ad71cb7..494bf640b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/NumberAndBicAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** NumberAndBicAccountIdentification */ @JsonPropertyOrder({ @@ -280,11 +280,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of NumberAndBicAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * NumberAndBicAccountIdentification */ public static NumberAndBicAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, NumberAndBicAccountIdentification.class); } @@ -293,7 +293,7 @@ public static NumberAndBicAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java index 5cc7835eb..35272ed8a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PLLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PLLocalAccountIdentification */ @JsonPropertyOrder({ @@ -196,11 +196,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PLLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * PLLocalAccountIdentification */ - public static PLLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static PLLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PLLocalAccountIdentification.class); } @@ -209,7 +208,7 @@ public static PLLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java index f4f324c6d..e08195872 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PartyIdentification.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PartyIdentification */ @JsonPropertyOrder({ @@ -539,10 +539,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to - * PartyIdentification + * @throws JacksonException if the JSON string is invalid with respect to PartyIdentification */ - public static PartyIdentification fromJson(String jsonString) throws JsonProcessingException { + public static PartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PartyIdentification.class); } @@ -551,7 +550,7 @@ public static PartyIdentification fromJson(String jsonString) throws JsonProcess * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java index 0a21fdd52..79490422a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** PaymentInstrument */ @JsonPropertyOrder({ @@ -219,9 +219,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PaymentInstrument - * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentInstrument + * @throws JacksonException if the JSON string is invalid with respect to PaymentInstrument */ - public static PaymentInstrument fromJson(String jsonString) throws JsonProcessingException { + public static PaymentInstrument fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PaymentInstrument.class); } @@ -230,7 +230,7 @@ public static PaymentInstrument fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java index 89ec8e856..c90bf8cd9 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** PlatformPayment */ @JsonPropertyOrder({ @@ -582,9 +582,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of PlatformPayment - * @throws JsonProcessingException if the JSON string is invalid with respect to PlatformPayment + * @throws JacksonException if the JSON string is invalid with respect to PlatformPayment */ - public static PlatformPayment fromJson(String jsonString) throws JsonProcessingException { + public static PlatformPayment fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, PlatformPayment.class); } @@ -593,7 +593,7 @@ public static PlatformPayment fromJson(String jsonString) throws JsonProcessingE * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java index ddc54408d..29d7421a6 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/RelayedAuthorisationData.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.HashMap; import java.util.Map; +import tools.jackson.core.JacksonException; /** RelayedAuthorisationData */ @JsonPropertyOrder({ @@ -157,11 +157,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of RelayedAuthorisationData - * @throws JsonProcessingException if the JSON string is invalid with respect to - * RelayedAuthorisationData + * @throws JacksonException if the JSON string is invalid with respect to RelayedAuthorisationData */ - public static RelayedAuthorisationData fromJson(String jsonString) - throws JsonProcessingException { + public static RelayedAuthorisationData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, RelayedAuthorisationData.class); } @@ -170,7 +168,7 @@ public static RelayedAuthorisationData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/Resource.java b/src/main/java/com/adyen/model/transferwebhooks/Resource.java index 960a64abd..f04ee139c 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/Resource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/Resource.java @@ -14,9 +14,9 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; +import tools.jackson.core.JacksonException; /** Resource */ @JsonPropertyOrder({ @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of Resource - * @throws JsonProcessingException if the JSON string is invalid with respect to Resource + * @throws JacksonException if the JSON string is invalid with respect to Resource */ - public static Resource fromJson(String jsonString) throws JsonProcessingException { + public static Resource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, Resource.class); } @@ -198,7 +198,7 @@ public static Resource fromJson(String jsonString) throws JsonProcessingExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java index b3fe1de89..bc6604b3d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ResourceReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ResourceReference */ @JsonPropertyOrder({ @@ -180,9 +180,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ResourceReference - * @throws JsonProcessingException if the JSON string is invalid with respect to ResourceReference + * @throws JacksonException if the JSON string is invalid with respect to ResourceReference */ - public static ResourceReference fromJson(String jsonString) throws JsonProcessingException { + public static ResourceReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ResourceReference.class); } @@ -191,7 +191,7 @@ public static ResourceReference fromJson(String jsonString) throws JsonProcessin * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java index cbebe8b71..85651f563 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SELocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SELocalAccountIdentification */ @JsonPropertyOrder({ @@ -247,11 +247,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SELocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SELocalAccountIdentification */ - public static SELocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SELocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SELocalAccountIdentification.class); } @@ -260,7 +259,7 @@ public static SELocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java index 1d088d87f..ebb43d403 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/SGLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** SGLocalAccountIdentification */ @JsonPropertyOrder({ @@ -223,11 +223,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of SGLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * SGLocalAccountIdentification */ - public static SGLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static SGLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, SGLocalAccountIdentification.class); } @@ -236,7 +235,7 @@ public static SGLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java index bda7e6d8f..f80043d55 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ThreeDSecure.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** ThreeDSecure */ @JsonPropertyOrder({ThreeDSecure.JSON_PROPERTY_ACS_TRANSACTION_ID}) @@ -100,9 +100,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of ThreeDSecure - * @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSecure + * @throws JacksonException if the JSON string is invalid with respect to ThreeDSecure */ - public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingException { + public static ThreeDSecure fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, ThreeDSecure.class); } @@ -111,7 +111,7 @@ public static ThreeDSecure fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java index bf42d1869..8aa099200 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionEventViolation.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionEventViolation */ @JsonPropertyOrder({ @@ -184,11 +184,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionEventViolation - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransactionEventViolation */ - public static TransactionEventViolation fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionEventViolation fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionEventViolation.class); } @@ -197,7 +196,7 @@ public static TransactionEventViolation fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java index 73caf743b..fba6a9fdd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleReference.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleReference */ @JsonPropertyOrder({ @@ -264,11 +264,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRuleReference - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleReference + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleReference */ - public static TransactionRuleReference fromJson(String jsonString) - throws JsonProcessingException { + public static TransactionRuleReference fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleReference.class); } @@ -277,7 +275,7 @@ public static TransactionRuleReference fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java index 73cab0fca..a73a86f26 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRuleSource.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransactionRuleSource */ @JsonPropertyOrder({ @@ -159,10 +159,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRuleSource - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRuleSource + * @throws JacksonException if the JSON string is invalid with respect to TransactionRuleSource */ - public static TransactionRuleSource fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRuleSource fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRuleSource.class); } @@ -171,7 +170,7 @@ public static TransactionRuleSource fromJson(String jsonString) throws JsonProce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java index 8a6be6073..0694f887f 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransactionRulesResult.java @@ -14,10 +14,10 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.ArrayList; import java.util.List; +import tools.jackson.core.JacksonException; /** TransactionRulesResult */ @JsonPropertyOrder({ @@ -245,10 +245,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransactionRulesResult - * @throws JsonProcessingException if the JSON string is invalid with respect to - * TransactionRulesResult + * @throws JacksonException if the JSON string is invalid with respect to TransactionRulesResult */ - public static TransactionRulesResult fromJson(String jsonString) throws JsonProcessingException { + public static TransactionRulesResult fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransactionRulesResult.class); } @@ -257,7 +256,7 @@ public static TransactionRulesResult fromJson(String jsonString) throws JsonProc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java index e900f1690..be1d6fbd5 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferData */ @JsonPropertyOrder({ @@ -2164,9 +2164,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferData - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferData + * @throws JacksonException if the JSON string is invalid with respect to TransferData */ - public static TransferData fromJson(String jsonString) throws JsonProcessingException { + public static TransferData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferData.class); } @@ -2175,7 +2175,7 @@ public static TransferData fromJson(String jsonString) throws JsonProcessingExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java index 10bd19bc7..df3c82b5d 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataCategoryData.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferDataCategoryData.TransferDataCategoryDataDeserializer.class) @JsonSerialize(using = TransferDataCategoryData.TransferDataCategoryDataSerializer.class) @@ -50,9 +49,9 @@ public TransferDataCategoryDataSerializer() { @Override public void serialize( - TransferDataCategoryData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferDataCategoryData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferDataCategoryDataDeserializer(Class vc) { @Override public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize BankCategoryData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(BankCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, BankCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InternalCategoryData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalCategoryData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -139,7 +137,7 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuedCard.class); + deserialized = ctxt.readTreeAsValue(tree, IssuedCard.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -165,7 +163,7 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(PlatformPayment.class); + deserialized = ctxt.readTreeAsValue(tree, PlatformPayment.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -183,7 +181,8 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferDataCategoryData: %d classes match result, expected 1", match)); @@ -192,8 +191,8 @@ public TransferDataCategoryData deserialize(JsonParser jp, DeserializationContex /** Handle deserialization of the 'null' value. */ @Override public TransferDataCategoryData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataCategoryData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferDataCategoryData cannot be null"); } } @@ -355,7 +354,7 @@ public static TransferDataCategoryData fromJson(String jsonString) throws IOExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracing.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracing.java index b8f7ede96..33fe6a7c2 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracing.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracing.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferDataTracing.TransferDataTracingDeserializer.class) @JsonSerialize(using = TransferDataTracing.TransferDataTracingSerializer.class) @@ -49,9 +48,9 @@ public TransferDataTracingSerializer() { @Override public void serialize( - TransferDataTracing value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferDataTracing value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -66,12 +65,11 @@ public TransferDataTracingDeserializer(Class vc) { @Override public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize UKFpsTracingData try { boolean attemptParsing = true; @@ -85,7 +83,7 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKFpsTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, UKFpsTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -111,7 +109,7 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USAchTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, USAchTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -129,7 +127,8 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferDataTracing: %d classes match result, expected 1", match)); @@ -137,9 +136,8 @@ public TransferDataTracing deserialize(JsonParser jp, DeserializationContext ctx /** Handle deserialization of the 'null' value. */ @Override - public TransferDataTracing getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracing cannot be null"); + public TransferDataTracing getNullValue(DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from(ctxt, "TransferDataTracing cannot be null"); } } @@ -249,7 +247,7 @@ public static TransferDataTracing fromJson(String jsonString) throws IOException * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java index 5d2000f23..5d8e6f80e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferDataTracking.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferDataTracking.TransferDataTrackingDeserializer.class) @JsonSerialize(using = TransferDataTracking.TransferDataTrackingSerializer.class) @@ -49,9 +48,9 @@ public TransferDataTrackingSerializer() { @Override public void serialize( - TransferDataTracking value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferDataTracking value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -67,12 +66,11 @@ public TransferDataTrackingDeserializer(Class vc) { @Override public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ConfirmationTrackingData try { boolean attemptParsing = true; @@ -86,7 +84,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, ConfirmationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -112,7 +110,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, EstimationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -138,8 +136,7 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalReviewTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -157,7 +154,8 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferDataTracking: %d classes match result, expected 1", match)); @@ -165,9 +163,8 @@ public TransferDataTracking deserialize(JsonParser jp, DeserializationContext ct /** Handle deserialization of the 'null' value. */ @Override - public TransferDataTracking getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferDataTracking cannot be null"); + public TransferDataTracking getNullValue(DeserializationContext ctxt) throws DatabindException { + throw DatabindException.from(ctxt, "TransferDataTracking cannot be null"); } } @@ -305,7 +302,7 @@ public static TransferDataTracking fromJson(String jsonString) throws IOExceptio * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java index a51b4ae98..7b2331eaa 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java @@ -16,13 +16,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferEvent */ @JsonPropertyOrder({ @@ -1306,9 +1306,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferEvent - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferEvent + * @throws JacksonException if the JSON string is invalid with respect to TransferEvent */ - public static TransferEvent fromJson(String jsonString) throws JsonProcessingException { + public static TransferEvent fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferEvent.class); } @@ -1317,7 +1317,7 @@ public static TransferEvent fromJson(String jsonString) throws JsonProcessingExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java index 710664986..b7aca2290 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventEventsDataInner.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize( using = TransferEventEventsDataInner.TransferEventEventsDataInnerDeserializer.class) @@ -51,9 +50,9 @@ public TransferEventEventsDataInnerSerializer() { @Override public void serialize( - TransferEventEventsDataInner value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventEventsDataInner value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -69,12 +68,11 @@ public TransferEventEventsDataInnerDeserializer(Class vc) { @Override public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize InterchangeData try { boolean attemptParsing = true; @@ -88,7 +86,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(InterchangeData.class); + deserialized = ctxt.readTreeAsValue(tree, InterchangeData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -114,7 +112,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(IssuingTransactionData.class); + deserialized = ctxt.readTreeAsValue(tree, IssuingTransactionData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -140,7 +138,7 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(MerchantPurchaseData.class); + deserialized = ctxt.readTreeAsValue(tree, MerchantPurchaseData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -158,7 +156,8 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventEventsDataInner: %d classes match result, expected 1", match)); @@ -167,9 +166,8 @@ public TransferEventEventsDataInner deserialize(JsonParser jp, DeserializationCo /** Handle deserialization of the 'null' value. */ @Override public TransferEventEventsDataInner getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException( - ctxt.getParser(), "TransferEventEventsDataInner cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventEventsDataInner cannot be null"); } } @@ -306,7 +304,7 @@ public static TransferEventEventsDataInner fromJson(String jsonString) throws IO * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTracingData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTracingData.java index e49673b23..a4bf7146e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTracingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTracingData.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferEventTracingData.TransferEventTracingDataDeserializer.class) @JsonSerialize(using = TransferEventTracingData.TransferEventTracingDataSerializer.class) @@ -50,9 +49,9 @@ public TransferEventTracingDataSerializer() { @Override public void serialize( - TransferEventTracingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventTracingData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferEventTracingDataDeserializer(Class vc) { @Override public TransferEventTracingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize UKFpsTracingData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UKFpsTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, UKFpsTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(USAchTracingData.class); + deserialized = ctxt.readTreeAsValue(tree, USAchTracingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -131,7 +129,8 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventTracingData: %d classes match result, expected 1", match)); @@ -140,8 +139,8 @@ public TransferEventTracingData deserialize(JsonParser jp, DeserializationContex /** Handle deserialization of the 'null' value. */ @Override public TransferEventTracingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTracingData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventTracingData cannot be null"); } } @@ -251,7 +250,7 @@ public static TransferEventTracingData fromJson(String jsonString) throws IOExce * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java index 63734cc01..e079e86d5 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEventTrackingData.java @@ -11,19 +11,6 @@ package com.adyen.model.transferwebhooks; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; import jakarta.ws.rs.core.GenericType; import java.io.IOException; import java.util.*; @@ -32,6 +19,18 @@ import java.util.HashSet; import java.util.logging.Level; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; @JsonDeserialize(using = TransferEventTrackingData.TransferEventTrackingDataDeserializer.class) @JsonSerialize(using = TransferEventTrackingData.TransferEventTrackingDataSerializer.class) @@ -50,9 +49,9 @@ public TransferEventTrackingDataSerializer() { @Override public void serialize( - TransferEventTrackingData value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + TransferEventTrackingData value, JsonGenerator jgen, SerializationContext context) + throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -68,12 +67,11 @@ public TransferEventTrackingDataDeserializer(Class vc) { @Override public TransferEventTrackingData deserialize(JsonParser jp, DeserializationContext ctxt) - throws IOException, JsonProcessingException { + throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); // deserialize ConfirmationTrackingData try { boolean attemptParsing = true; @@ -87,7 +85,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(ConfirmationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, ConfirmationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -113,7 +111,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(EstimationTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, EstimationTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -139,8 +137,7 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte } if (typeMatch) { - deserialized = - tree.traverse(jp.getCodec()).readValueAs(InternalReviewTrackingData.class); + deserialized = ctxt.readTreeAsValue(tree, InternalReviewTrackingData.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -158,7 +155,8 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte ret.setActualInstance(deserialized); return ret; } - throw new IOException( + throw DatabindException.from( + ctxt, String.format( "Failed deserialization for TransferEventTrackingData: %d classes match result, expected 1", match)); @@ -167,8 +165,8 @@ public TransferEventTrackingData deserialize(JsonParser jp, DeserializationConte /** Handle deserialization of the 'null' value. */ @Override public TransferEventTrackingData getNullValue(DeserializationContext ctxt) - throws JsonMappingException { - throw new JsonMappingException(ctxt.getParser(), "TransferEventTrackingData cannot be null"); + throws DatabindException { + throw DatabindException.from(ctxt, "TransferEventTrackingData cannot be null"); } } @@ -306,7 +304,7 @@ public static TransferEventTrackingData fromJson(String jsonString) throws IOExc * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java index cb9c7a255..953f685bd 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationCounterParty.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationCounterParty */ @JsonPropertyOrder({ @@ -279,11 +279,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferNotificationCounterParty - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationCounterParty */ public static TransferNotificationCounterParty fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationCounterParty.class); } @@ -292,7 +292,7 @@ public static TransferNotificationCounterParty fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java index df23d1bcf..95707ad4a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationMerchantData.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationMerchantData */ @JsonPropertyOrder({ @@ -390,11 +390,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferNotificationMerchantData - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationMerchantData */ public static TransferNotificationMerchantData fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationMerchantData.class); } @@ -403,7 +403,7 @@ public static TransferNotificationMerchantData fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java index 3807a8fb1..9127beddb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationRequest.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.OffsetDateTime; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferNotificationRequest */ @JsonPropertyOrder({ @@ -268,11 +268,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferNotificationRequest - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationRequest */ - public static TransferNotificationRequest fromJson(String jsonString) - throws JsonProcessingException { + public static TransferNotificationRequest fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationRequest.class); } @@ -281,7 +280,7 @@ public static TransferNotificationRequest fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java index efaaecffd..2fc304e85 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferNotificationValidationFact.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; +import tools.jackson.core.JacksonException; /** TransferNotificationValidationFact */ @JsonPropertyOrder({ @@ -144,11 +144,11 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferNotificationValidationFact - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * TransferNotificationValidationFact */ public static TransferNotificationValidationFact fromJson(String jsonString) - throws JsonProcessingException { + throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferNotificationValidationFact.class); } @@ -157,7 +157,7 @@ public static TransferNotificationValidationFact fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java index 6d8f4bd11..24fa5d4af 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferReview.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** TransferReview */ @JsonPropertyOrder({ @@ -212,9 +212,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of TransferReview - * @throws JsonProcessingException if the JSON string is invalid with respect to TransferReview + * @throws JacksonException if the JSON string is invalid with respect to TransferReview */ - public static TransferReview fromJson(String jsonString) throws JsonProcessingException { + public static TransferReview fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, TransferReview.class); } @@ -223,7 +223,7 @@ public static TransferReview fromJson(String jsonString) throws JsonProcessingEx * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/UKFpsTracingData.java b/src/main/java/com/adyen/model/transferwebhooks/UKFpsTracingData.java index 5e0246ba5..d828e7de1 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/UKFpsTracingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/UKFpsTracingData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKFpsTracingData */ @JsonPropertyOrder({UKFpsTracingData.JSON_PROPERTY_FPID, UKFpsTracingData.JSON_PROPERTY_TYPE}) @@ -187,9 +187,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UKFpsTracingData - * @throws JsonProcessingException if the JSON string is invalid with respect to UKFpsTracingData + * @throws JacksonException if the JSON string is invalid with respect to UKFpsTracingData */ - public static UKFpsTracingData fromJson(String jsonString) throws JsonProcessingException { + public static UKFpsTracingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKFpsTracingData.class); } @@ -198,7 +198,7 @@ public static UKFpsTracingData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java index 726a08c59..db77a9bba 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UKLocalAccountIdentification */ @JsonPropertyOrder({ @@ -229,11 +229,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UKLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UKLocalAccountIdentification */ - public static UKLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UKLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UKLocalAccountIdentification.class); } @@ -242,7 +241,7 @@ public static UKLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/USAchTracingData.java b/src/main/java/com/adyen/model/transferwebhooks/USAchTracingData.java index 6818e4dea..39f084180 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/USAchTracingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/USAchTracingData.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USAchTracingData */ @JsonPropertyOrder({ @@ -193,9 +193,9 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of USAchTracingData - * @throws JsonProcessingException if the JSON string is invalid with respect to USAchTracingData + * @throws JacksonException if the JSON string is invalid with respect to USAchTracingData */ - public static USAchTracingData fromJson(String jsonString) throws JsonProcessingException { + public static USAchTracingData fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USAchTracingData.class); } @@ -204,7 +204,7 @@ public static USAchTracingData fromJson(String jsonString) throws JsonProcessing * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java index d11a9c0a2..17552e3cb 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/USLocalAccountIdentification.java @@ -16,10 +16,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** USLocalAccountIdentification */ @JsonPropertyOrder({ @@ -317,11 +317,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of USLocalAccountIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * USLocalAccountIdentification */ - public static USLocalAccountIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static USLocalAccountIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class); } @@ -330,7 +329,7 @@ public static USLocalAccountIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/model/transferwebhooks/UltimatePartyIdentification.java b/src/main/java/com/adyen/model/transferwebhooks/UltimatePartyIdentification.java index de47c2996..dc227b071 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/UltimatePartyIdentification.java +++ b/src/main/java/com/adyen/model/transferwebhooks/UltimatePartyIdentification.java @@ -16,11 +16,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.LocalDate; import java.util.*; import java.util.Arrays; import java.util.logging.Logger; +import tools.jackson.core.JacksonException; /** UltimatePartyIdentification */ @JsonPropertyOrder({ @@ -587,11 +587,10 @@ private String toIndentedString(Object o) { * * @param jsonString JSON string * @return An instance of UltimatePartyIdentification - * @throws JsonProcessingException if the JSON string is invalid with respect to + * @throws JacksonException if the JSON string is invalid with respect to * UltimatePartyIdentification */ - public static UltimatePartyIdentification fromJson(String jsonString) - throws JsonProcessingException { + public static UltimatePartyIdentification fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, UltimatePartyIdentification.class); } @@ -600,7 +599,7 @@ public static UltimatePartyIdentification fromJson(String jsonString) * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } diff --git a/src/main/java/com/adyen/serializer/ByteArrayDeserializer.java b/src/main/java/com/adyen/serializer/ByteArrayDeserializer.java index 94462d1b7..3723e4fb0 100644 --- a/src/main/java/com/adyen/serializer/ByteArrayDeserializer.java +++ b/src/main/java/com/adyen/serializer/ByteArrayDeserializer.java @@ -1,11 +1,10 @@ package com.adyen.serializer; -import com.fasterxml.jackson.core.JacksonException; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import java.io.IOException; import java.nio.charset.StandardCharsets; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonParser; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.deser.std.StdDeserializer; public class ByteArrayDeserializer extends StdDeserializer { public ByteArrayDeserializer() { @@ -14,7 +13,7 @@ public ByteArrayDeserializer() { @Override public byte[] deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) - throws IOException, JacksonException { + throws JacksonException { return jsonParser.getValueAsString().getBytes(StandardCharsets.UTF_8); } } diff --git a/src/main/java/com/adyen/serializer/ByteArraySerializer.java b/src/main/java/com/adyen/serializer/ByteArraySerializer.java index df5b05774..33152c9c2 100644 --- a/src/main/java/com/adyen/serializer/ByteArraySerializer.java +++ b/src/main/java/com/adyen/serializer/ByteArraySerializer.java @@ -1,9 +1,10 @@ package com.adyen.serializer; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; +import java.nio.charset.StandardCharsets; +import tools.jackson.core.JacksonException; +import tools.jackson.core.JsonGenerator; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.ser.std.StdSerializer; public class ByteArraySerializer extends StdSerializer { public ByteArraySerializer() { @@ -12,9 +13,9 @@ public ByteArraySerializer() { @Override public void serialize( - byte[] bytes, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) - throws IOException { - String yourReadableString = new String(bytes); + byte[] bytes, JsonGenerator jsonGenerator, SerializationContext serializationContext) + throws JacksonException { + String yourReadableString = new String(bytes, StandardCharsets.UTF_8); jsonGenerator.writeString(yourReadableString); } } diff --git a/src/main/java/com/adyen/service/clouddevice/EncryptedCloudDeviceApi.java b/src/main/java/com/adyen/service/clouddevice/EncryptedCloudDeviceApi.java index 8a0da21a7..412b4de6d 100644 --- a/src/main/java/com/adyen/service/clouddevice/EncryptedCloudDeviceApi.java +++ b/src/main/java/com/adyen/service/clouddevice/EncryptedCloudDeviceApi.java @@ -29,10 +29,10 @@ import com.adyen.security.clouddevice.NexoSecurityManager; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; -import com.fasterxml.jackson.databind.JsonNode; import java.io.IOException; import java.util.HashMap; import java.util.Map; +import tools.jackson.databind.JsonNode; /** Service of the Cloud Device API with encrypted payloads */ public class EncryptedCloudDeviceApi extends Service { diff --git a/src/main/java/com/adyen/util/tapi/SaleToAcquirerDataParser.java b/src/main/java/com/adyen/util/tapi/SaleToAcquirerDataParser.java index 7c658afdd..a0f99e74d 100644 --- a/src/main/java/com/adyen/util/tapi/SaleToAcquirerDataParser.java +++ b/src/main/java/com/adyen/util/tapi/SaleToAcquirerDataParser.java @@ -1,12 +1,13 @@ package com.adyen.util.tapi; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.ObjectMapper; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.HashMap; import java.util.Map; +import tools.jackson.databind.DeserializationFeature; +import tools.jackson.databind.ObjectMapper; +import tools.jackson.databind.json.JsonMapper; /** * Parses and serializes {@link SaleToAcquirerData} objects from/to their wire formats. @@ -22,7 +23,9 @@ public final class SaleToAcquirerDataParser { private static final ObjectMapper MAPPER = - new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + JsonMapper.builderWithJackson2Defaults() + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + .build(); private SaleToAcquirerDataParser() {} diff --git a/src/test/java/com/adyen/BalancePlatformTest.java b/src/test/java/com/adyen/BalancePlatformTest.java index d8031b7fa..c18af3533 100644 --- a/src/test/java/com/adyen/BalancePlatformTest.java +++ b/src/test/java/com/adyen/BalancePlatformTest.java @@ -12,13 +12,13 @@ import com.adyen.model.RequestOptions; import com.adyen.model.balanceplatform.*; import com.adyen.service.balanceplatform.*; -import com.fasterxml.jackson.core.JsonProcessingException; import java.lang.reflect.Field; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; +import tools.jackson.core.JacksonException; public class BalancePlatformTest extends BaseTest { @@ -311,7 +311,7 @@ public void cronSweepScheduleTest() throws Exception { } @Test - public void cronSweepScheduleToJsonTest() throws JsonProcessingException { + public void cronSweepScheduleToJsonTest() throws JacksonException { SweepConfigurationV2 request = new SweepConfigurationV2(); request.setType(SweepConfigurationV2.TypeEnum.PULL); SweepSchedule cron = new SweepSchedule(); @@ -327,7 +327,7 @@ public void cronSweepScheduleToJsonTest() throws JsonProcessingException { } @Test - public void sweepScheduleToJsonTest() throws JsonProcessingException { + public void sweepScheduleToJsonTest() throws JacksonException { SweepConfigurationV2 request = new SweepConfigurationV2(); request.setType(SweepConfigurationV2.TypeEnum.PUSH); SweepSchedule schedule = new SweepSchedule(); diff --git a/src/test/java/com/adyen/CheckoutTest.java b/src/test/java/com/adyen/CheckoutTest.java index aa88ca5eb..0da54d6e7 100644 --- a/src/test/java/com/adyen/CheckoutTest.java +++ b/src/test/java/com/adyen/CheckoutTest.java @@ -29,8 +29,6 @@ import com.adyen.model.RequestOptions; import com.adyen.model.checkout.*; import com.adyen.service.checkout.*; -import com.fasterxml.jackson.databind.JsonNode; -import java.io.IOException; import java.lang.reflect.Field; import java.time.OffsetDateTime; import java.util.*; @@ -42,6 +40,8 @@ import org.junit.jupiter.params.provider.MethodSource; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.ArgumentCaptor; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.JsonNode; public class CheckoutTest extends BaseTest { @@ -720,8 +720,7 @@ public void testSessionsCheckDefaultValues() throws Exception { isNull()); // Comparing JSON - final com.fasterxml.jackson.databind.ObjectMapper mapper = - new com.fasterxml.jackson.databind.ObjectMapper(); + final tools.jackson.databind.ObjectMapper mapper = new tools.jackson.databind.ObjectMapper(); final JsonNode expected = mapper.readTree(EXPECTED_REQUEST_PAYLOAD); final JsonNode actual = mapper.readTree(captor.getValue()); assertEquals(expected, actual); @@ -1011,8 +1010,8 @@ public void testPaymentRedirectSuccess( "{\"storedPaymentMethodId\":\"M5N7TQ4TG5PFWR50\"}" // no type discriminator at all }) public void testCheckoutPaymentMethodDeserializationFailure(String json) { - IOException exception = - assertThrows(IOException.class, () -> CheckoutPaymentMethod.fromJson(json)); + DatabindException exception = + assertThrows(DatabindException.class, () -> CheckoutPaymentMethod.fromJson(json)); assertTrue(exception.getMessage().contains("Failed deserialization for CheckoutPaymentMethod")); } diff --git a/src/test/java/com/adyen/Jackson3CompatibilityTest.java b/src/test/java/com/adyen/Jackson3CompatibilityTest.java new file mode 100644 index 000000000..682b1372a --- /dev/null +++ b/src/test/java/com/adyen/Jackson3CompatibilityTest.java @@ -0,0 +1,142 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen Java API Library + * + * Copyright (c) 2026 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ +package com.adyen; + +import static java.nio.charset.StandardCharsets.UTF_8; +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertInstanceOf; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNotSame; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.adyen.model.paymentsapp.JSON; +import com.adyen.model.transfers.TransferDataTracing; +import com.adyen.model.transfers.USAchTracingData; +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.TimeZone; +import java.util.concurrent.CyclicBarrier; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Test; +import tools.jackson.databind.DeserializationFeature; +import tools.jackson.databind.ObjectMapper; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.util.StdDateFormat; + +class Jackson3CompatibilityTest { + + private static final String UTF_8_TEXT = "Jackson 3 – UTF-8 ✓"; + + @AfterEach + void restoreDefaultDateFormat() { + JSON.getDefault().setDateFormat(StdDateFormat.instance); + } + + @Test + void setDateFormatRebuildsMapperWithoutLosingModulesOrConfiguration() throws Exception { + ObjectMapper before = JSON.getMapper(); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd"); + dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + + JSON.getDefault().setDateFormat(dateFormat); + + ObjectMapper after = JSON.getMapper(); + assertNotSame(before, after); + assertFalse(after.isEnabled(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)); + assertTrue(after.isEnabled(EnumFeature.WRITE_ENUMS_USING_TO_STRING)); + assertEquals("\"1970/01/01\"", after.writeValueAsString(new Date(0))); + + byte[] bytes = UTF_8_TEXT.getBytes(UTF_8); + assertArrayEquals(bytes, after.readValue(after.writeValueAsString(bytes), byte[].class)); + } + + @Test + void mapperIsVisibleDuringConcurrentReconfiguration() throws Exception { + Field mapperField = JSON.class.getDeclaredField("mapper"); + assertTrue(Modifier.isVolatile(mapperField.getModifiers())); + + int taskCount = 5; + CyclicBarrier start = new CyclicBarrier(taskCount); + ExecutorService executor = Executors.newFixedThreadPool(taskCount); + List> futures = new ArrayList<>(); + try { + futures.add( + executor.submit( + () -> { + start.await(); + for (int i = 0; i < 100; i++) { + JSON.getDefault() + .setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX")); + } + return null; + })); + for (int task = 1; task < taskCount; task++) { + futures.add( + executor.submit( + () -> { + start.await(); + for (int i = 0; i < 100; i++) { + ObjectMapper mapper = JSON.getMapper(); + assertNotNull(mapper); + assertTrue(mapper.readTree("{\"visible\":true}").get("visible").asBoolean()); + } + return null; + })); + } + + for (Future future : futures) { + future.get(); + } + } finally { + executor.shutdownNow(); + } + } + + @Test + void deserializesOneOfModelWithJackson3() throws Exception { + TransferDataTracing tracing = + TransferDataTracing.fromJson("{\"type\":\"usAch\",\"traceNumber\":\"091000010000001\"}"); + + USAchTracingData usAch = assertInstanceOf(USAchTracingData.class, tracing.getActualInstance()); + assertEquals(USAchTracingData.TypeEnum.USACH, usAch.getType()); + assertEquals("091000010000001", usAch.getTraceNumber()); + } + + @Test + void serializesByteArraysAsUtf8AndRoundTripsThem() throws Exception { + ObjectMapper mapper = JSON.getMapper(); + byte[] bytes = UTF_8_TEXT.getBytes(UTF_8); + + String serialized = mapper.writeValueAsString(bytes); + + assertEquals("\"" + UTF_8_TEXT + "\"", serialized); + assertArrayEquals(bytes, mapper.readValue(serialized, byte[].class)); + } +} diff --git a/src/test/java/com/adyen/serializer/ModelTest.java b/src/test/java/com/adyen/serializer/ModelTest.java index b7fe44a90..c880973fa 100644 --- a/src/test/java/com/adyen/serializer/ModelTest.java +++ b/src/test/java/com/adyen/serializer/ModelTest.java @@ -18,18 +18,18 @@ import com.adyen.model.tapi.Result; import com.adyen.model.tapi.SaleData; import com.adyen.model.tapi.TransactionIDType; -import com.fasterxml.jackson.core.JsonProcessingException; import java.time.Month; import java.time.OffsetDateTime; import java.time.ZoneId; import java.time.ZoneOffset; import org.junit.jupiter.api.Test; +import tools.jackson.core.JacksonException; /** Test model serialization (toJson) and deserialization (fromJson) */ public class ModelTest { @Test - public void testFromJsonLegalEntity() throws JsonProcessingException { + public void testFromJsonLegalEntity() throws JacksonException { String json = "{\n" + " \"id\": \"LE3227C223222B5BPCMFXD2XG\",\n" @@ -68,7 +68,7 @@ public void testFromJsonLegalEntity() throws JsonProcessingException { } @Test - public void testFromJsonLegalEntityWithInvalidEnum() throws JsonProcessingException { + public void testFromJsonLegalEntityWithInvalidEnum() throws JacksonException { String json = "{\n" + " \"id\": \"LE3227C223222B5BPCMFXD2XG\",\n" @@ -102,7 +102,7 @@ public void testFromJsonLegalEntityWithInvalidEnum() throws JsonProcessingExcept } @Test - public void testToJsonLegalEntity() throws JsonProcessingException { + public void testToJsonLegalEntity() throws JacksonException { LegalEntity legalEntity = new LegalEntity() .reference("YOUR_REFERENCE_12345") @@ -127,7 +127,7 @@ public void testToJsonLegalEntity() throws JsonProcessingException { } @Test - public void testFromJsonCreateCheckoutSessionResponse() throws JsonProcessingException { + public void testFromJsonCreateCheckoutSessionResponse() throws JacksonException { String json = "{\n" + " \"amount\": {\n" @@ -207,7 +207,7 @@ public void testFromJsonCheckoutPaymentMethodBcmcMobile() throws Exception { } @Test - public void testTapiTimestampDeserialization() throws JsonProcessingException { + public void testTapiTimestampDeserialization() throws JacksonException { String json = "{" + "\"Response\":{\"Result\":\"Success\"}," @@ -245,7 +245,7 @@ public void testTapiTimestampDeserialization() throws JsonProcessingException { } @Test - public void testTapiTimestampSerialization() throws JsonProcessingException { + public void testTapiTimestampSerialization() throws JacksonException { OffsetDateTime timestamp = OffsetDateTime.of(2024, 1, 15, 10, 30, 0, 0, ZoneOffset.of("+01:00")); @@ -264,7 +264,7 @@ public void testTapiTimestampSerialization() throws JsonProcessingException { } @Test - public void testTapiPaymentResponseWithUnknownAttribute() throws JsonProcessingException { + public void testTapiPaymentResponseWithUnknownAttribute() throws JacksonException { String json = "{" + "\"Response\":{\"Result\":\"Success\"}," @@ -287,7 +287,7 @@ public void testTapiPaymentResponseWithUnknownAttribute() throws JsonProcessingE // test unknown enum value for tapi model @Test - public void testFromJsonTapiResponseWithInvalidEnum() throws JsonProcessingException { + public void testFromJsonTapiResponseWithInvalidEnum() throws JacksonException { String json = "{\n" + " \"Result\": \"UNKNOWN_RESULT\",\n" @@ -303,7 +303,7 @@ public void testFromJsonTapiResponseWithInvalidEnum() throws JsonProcessingExcep // test null values are not serialized @Test - public void testToJsonTerminalSettingsSurchargeNotSet() throws JsonProcessingException { + public void testToJsonTerminalSettingsSurchargeNotSet() throws JacksonException { TerminalSettings terminalSettings = new TerminalSettings(); terminalSettings.setConnectivity( new Connectivity().simcardStatus(Connectivity.SimcardStatusEnum.ACTIVATED)); @@ -314,7 +314,7 @@ public void testToJsonTerminalSettingsSurchargeNotSet() throws JsonProcessingExc // test values set as null are not serialized when includeNullValues is false @Test public void testToJsonTerminalSettingsSurchargeSetToNullWithoutEnablingIncludeNullValues() - throws JsonProcessingException { + throws JacksonException { TerminalSettings terminalSettings = new TerminalSettings(); terminalSettings .connectivity(new Connectivity().simcardStatus(Connectivity.SimcardStatusEnum.ACTIVATED)) @@ -325,7 +325,7 @@ public void testToJsonTerminalSettingsSurchargeSetToNullWithoutEnablingIncludeNu // test values set as null (using setters) are serialized @Test - public void testToJsonTerminalSettingsSurchargeSetToNull() throws JsonProcessingException { + public void testToJsonTerminalSettingsSurchargeSetToNull() throws JacksonException { TerminalSettings terminalSettings = new TerminalSettings(); terminalSettings.includeNullValues(true); terminalSettings.setConnectivity( @@ -337,7 +337,7 @@ public void testToJsonTerminalSettingsSurchargeSetToNull() throws JsonProcessing // test values set as null (using build methods) are serialized @Test - public void testToJsonTerminalSettingsSurchargeChainToNull() throws JsonProcessingException { + public void testToJsonTerminalSettingsSurchargeChainToNull() throws JacksonException { TerminalSettings terminalSettings = new TerminalSettings(); terminalSettings .includeNullValues(true) @@ -350,7 +350,7 @@ public void testToJsonTerminalSettingsSurchargeChainToNull() throws JsonProcessi // test values, that are not explicitly SET as null, are not serialized (even when // includeNullValues is true) @Test - public void testToJsonFlagTrueButFieldNotSet() throws JsonProcessingException { + public void testToJsonFlagTrueButFieldNotSet() throws JacksonException { TerminalSettings terminalSettings = new TerminalSettings(); // must consider null values that are explicitly set terminalSettings.includeNullValues(true); diff --git a/src/test/java/com/adyen/service/clouddevice/CloudDeviceApiTest.java b/src/test/java/com/adyen/service/clouddevice/CloudDeviceApiTest.java index d4bdf3716..70fcf1626 100644 --- a/src/test/java/com/adyen/service/clouddevice/CloudDeviceApiTest.java +++ b/src/test/java/com/adyen/service/clouddevice/CloudDeviceApiTest.java @@ -11,13 +11,13 @@ import com.adyen.enums.Region; import com.adyen.model.clouddevice.*; import com.adyen.model.tapi.*; -import com.fasterxml.jackson.databind.JsonNode; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import tools.jackson.databind.JsonNode; public class CloudDeviceApiTest extends BaseTest { diff --git a/templates-v7/libraries/jersey3/JSON.mustache b/templates-v7/libraries/jersey3/JSON.mustache index c3e9f9fa0..10157d6f1 100644 --- a/templates-v7/libraries/jersey3/JSON.mustache +++ b/templates-v7/libraries/jersey3/JSON.mustache @@ -3,15 +3,16 @@ package {{modelPackage}}; import com.adyen.serializer.ByteArraySerializer; import com.adyen.serializer.ByteArrayDeserializer; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; -import com.fasterxml.jackson.databind.module.SimpleModule; +import tools.jackson.databind.*; +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +import tools.jackson.databind.json.JsonMapper; +import tools.jackson.databind.module.SimpleModule; {{#openApiNullable}} import org.openapitools.jackson.nullable.JsonNullableModule; {{/openApiNullable}} -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; {{#joda}} -import com.fasterxml.jackson.datatype.joda.JodaModule; +import tools.jackson.datatype.joda.JodaModule; {{/joda}} {{#models.0}} import {{modelPackage}}.*; @@ -26,31 +27,31 @@ import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; public class JSON implements ContextResolver { - private static ObjectMapper mapper; + private static volatile ObjectMapper mapper; private JSON() { - mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - mapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); - mapper.registerModule(new JavaTimeModule()); + JsonMapper.Builder builder = JsonMapper.builderWithJackson2Defaults(); + builder.changeDefaultPropertyInclusion(ignored -> JsonInclude.Value.construct(JsonInclude.Include.NON_NULL, JsonInclude.Include.USE_DEFAULTS)); + builder.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, true); + builder.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + builder.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + builder.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS); + builder.disable(DateTimeFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + builder.enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING); + builder.enable(EnumFeature.READ_ENUMS_USING_TO_STRING); {{#joda}} - mapper.registerModule(new JodaModule()); + builder.addModule(new JodaModule()); {{/joda}} {{#openApiNullable}} JsonNullableModule jnm = new JsonNullableModule(); - mapper.registerModule(jnm); + builder.addModule(jnm); {{/openApiNullable}} // Custom ByteSerializer SimpleModule simpleModule = new SimpleModule(); simpleModule.addSerializer(byte[].class, new ByteArraySerializer()); simpleModule.addDeserializer(byte[].class, new ByteArrayDeserializer()); - mapper.registerModule(simpleModule); + builder.addModule(simpleModule); + mapper = builder.build(); } /** @@ -58,7 +59,7 @@ public class JSON implements ContextResolver { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); + mapper = mapper.rebuild().defaultDateFormat(dateFormat).build(); } @Override diff --git a/templates-v7/libraries/jersey3/model.mustache b/templates-v7/libraries/jersey3/model.mustache index 3bfb44d9a..149a28fd6 100644 --- a/templates-v7/libraries/jersey3/model.mustache +++ b/templates-v7/libraries/jersey3/model.mustache @@ -27,9 +27,9 @@ import java.io.Serializable; {{/serializableModel}} {{#jackson}} import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.core.JsonProcessingException; +import tools.jackson.core.JacksonException; {{#withXml}} -import com.fasterxml.jackson.dataformat.xml.annotation.*; +import tools.jackson.dataformat.xml.annotation.*; {{/withXml}} {{#vendorExtensions.x-has-readonly-properties}} import com.fasterxml.jackson.annotation.JsonCreator; @@ -54,10 +54,10 @@ import org.hibernate.validator.constraints.*; {{#model}} {{#oneOf}} {{#-first}} -import com.fasterxml.jackson.core.type.TypeReference; +import tools.jackson.core.type.TypeReference; {{/-first}} {{/oneOf}} {{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#oneOf}}{{#-first}}{{>oneof_model}}{{/-first}}{{/oneOf}}{{^oneOf}}{{#anyOf}}{{#-first}}{{>anyof_model}}{{/-first}}{{/anyOf}}{{^anyOf}}{{>pojo}}{{/anyOf}}{{/oneOf}}{{/isEnum}} {{/model}} -{{/models}} \ No newline at end of file +{{/models}} diff --git a/templates-v7/libraries/jersey3/oneof_model.mustache b/templates-v7/libraries/jersey3/oneof_model.mustache index 87c894dc6..ecc42a4e9 100644 --- a/templates-v7/libraries/jersey3/oneof_model.mustache +++ b/templates-v7/libraries/jersey3/oneof_model.mustache @@ -7,20 +7,19 @@ import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import tools.jackson.core.JsonGenerator; +import tools.jackson.core.JsonParser; +import tools.jackson.core.JacksonException; +import tools.jackson.core.type.TypeReference; +import tools.jackson.databind.DeserializationContext; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.JsonNode; +import tools.jackson.databind.MapperFeature; +import tools.jackson.databind.SerializationContext; +import tools.jackson.databind.annotation.JsonDeserialize; +import tools.jackson.databind.annotation.JsonSerialize; +import tools.jackson.databind.deser.std.StdDeserializer; +import tools.jackson.databind.ser.std.StdSerializer; {{>additionalModelTypeAnnotations}}{{>xmlAnnotation}} @JsonDeserialize(using = {{classname}}.{{classname}}Deserializer.class) @@ -38,8 +37,8 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public void serialize({{classname}} value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { - jgen.writeObject(value.getActualInstance()); + public void serialize({{classname}} value, JsonGenerator jgen, SerializationContext context) throws JacksonException { + context.writeValue(jgen, value.getActualInstance()); } } @@ -53,18 +52,18 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws JacksonException { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; {{#useOneOfDiscriminatorLookup}} {{#discriminator}} {{classname}} new{{classname}} = new {{classname}}(); - Map result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference>() {}); + Map result2 = ctxt.readTreeAsValue(tree, new TypeReference>() {}); String discriminatorValue = (String)result2.get("{{{propertyBaseName}}}"); switch (discriminatorValue) { {{#mappedModels}} case "{{{mappingName}}}": - deserialized = tree.traverse(jp.getCodec()).readValueAs({{{modelName}}}.class); + deserialized = ctxt.readTreeAsValue(tree, {{{modelName}}}.class); new{{classname}}.setActualInstance(deserialized); return new{{classname}}; {{/mappedModels}} @@ -76,7 +75,6 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{/useOneOfDiscriminatorLookup}} boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; - JsonToken token = tree.traverse(jp.getCodec()).nextToken(); {{#composedSchemas}} {{#oneOf}} // deserialize {{{dataType}}}{{#isNullable}} (nullable){{/isNullable}} @@ -87,34 +85,34 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im attemptParsing = typeCoercion; //respect type coercion setting if (!attemptParsing) { {{#isString}} - attemptParsing |= (token == JsonToken.VALUE_STRING); + attemptParsing |= tree.isString(); {{/isString}} {{#isInteger}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= tree.isIntegralNumber(); {{/isInteger}} {{#isLong}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= tree.isIntegralNumber(); {{/isLong}} {{#isShort}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= tree.isIntegralNumber(); {{/isShort}} {{#isFloat}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= tree.isFloatingPointNumber(); {{/isFloat}} {{#isDouble}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= tree.isFloatingPointNumber(); {{/isDouble}} {{#isNumber}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= tree.isFloatingPointNumber(); {{/isNumber}} {{#isDecimal}} - attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= tree.isFloatingPointNumber(); {{/isDecimal}} {{#isBoolean}} - attemptParsing |= (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE); + attemptParsing |= tree.isBoolean(); {{/isBoolean}} {{#isNullable}} - attemptParsing |= (token == JsonToken.VALUE_NULL); + attemptParsing |= tree.isNull(); {{/isNullable}} } {{/isPrimitiveType}} @@ -128,10 +126,10 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if(typeMatch) { {{#isMap}} final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; - deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + deserialized = ctxt.readTreeAsValue(tree, ref); {{/isMap}} {{^isMap}} - deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); + deserialized = ctxt.readTreeAsValue(tree, {{{dataType}}}.class); {{/isMap}} // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON @@ -142,9 +140,9 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/isArray}} {{#isArray}} - if (token == JsonToken.START_ARRAY) { + if (tree.isArray()) { final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; - deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + deserialized = ctxt.readTreeAsValue(tree, ref); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -164,19 +162,19 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im ret.setActualInstance(deserialized); return ret; } - throw new IOException(String.format("Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); + throw DatabindException.from(ctxt, String.format("Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); } /** * Handle deserialization of the 'null' value. */ @Override - public {{classname}} getNullValue(DeserializationContext ctxt) throws JsonMappingException { + public {{classname}} getNullValue(DeserializationContext ctxt) throws DatabindException { {{#isNullable}} return null; {{/isNullable}} {{^isNullable}} - throw new JsonMappingException(ctxt.getParser(), "{{classname}} cannot be null"); + throw DatabindException.from(ctxt, "{{classname}} cannot be null"); {{/isNullable}} } } @@ -311,8 +309,8 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } -} \ No newline at end of file +} diff --git a/templates-v7/libraries/jersey3/pojo.mustache b/templates-v7/libraries/jersey3/pojo.mustache index aa777da2c..0a443c3eb 100644 --- a/templates-v7/libraries/jersey3/pojo.mustache +++ b/templates-v7/libraries/jersey3/pojo.mustache @@ -497,9 +497,9 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens * * @param jsonString JSON string * @return An instance of {{classname}} - * @throws JsonProcessingException if the JSON string is invalid with respect to {{classname}} + * @throws JacksonException if the JSON string is invalid with respect to {{classname}} */ - public static {{{classname}}} fromJson(String jsonString) throws JsonProcessingException { + public static {{{classname}}} fromJson(String jsonString) throws JacksonException { return JSON.getMapper().readValue(jsonString, {{{classname}}}.class); } /** @@ -507,7 +507,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens * * @return JSON string */ - public String toJson() throws JsonProcessingException { + public String toJson() throws JacksonException { return JSON.getMapper().writeValueAsString(this); } } \ No newline at end of file