diff --git a/.codeclimate.yml b/.codeclimate.yml index 8b7d7ba..bc4e5d2 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -33,6 +33,9 @@ plugins: enabled: true config: sonar.java.source: 8 + checks: + squid:S1948: + enabled: false exclude_patterns: - 'config/' - '**/dist/' diff --git a/README.md b/README.md index c9e02ad..5d3bcc8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ [![Javadocs](http://javadoc.io/badge/com.vogle.sbpayment/sbpayment-client.svg)](http://javadoc.io/doc/com.vogle.sbpayment/sbpayment-client) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Gitter](https://badges.gitter.im/vogle/sbpayment.svg)](https://gitter.im/vogle/sbpayment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) -[![Gradle Scan](https://img.shields.io/badge/Gradle-Scan-blue.svg)](https://vogle.page.link/scan) [![Build Status](https://travis-ci.org/vogle/sbpayment-java.svg?branch=master)](https://travis-ci.org/vogle/sbpayment-java) [![Coveralls](https://img.shields.io/coveralls/github/vogle/sbpayment-java.svg)](https://coveralls.io/github/vogle/sbpayment-java?branch=master) @@ -165,6 +164,7 @@ You will be asked to sign a contribution agreement after creating the first one. ## License [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvogle%2Fsbpayment-java.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvogle%2Fsbpayment-java?ref=badge_shield) Copyright 2019 Vogle Labs. diff --git a/README_JA.md b/README_JA.md index 953f4f9..cbce6e9 100644 --- a/README_JA.md +++ b/README_JA.md @@ -5,7 +5,6 @@ [![Javadocs](http://javadoc.io/badge/com.vogle.sbpayment/sbpayment-client.svg)](http://javadoc.io/doc/com.vogle.sbpayment/sbpayment-client) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Gitter](https://badges.gitter.im/vogle/sbpayment.svg)](https://gitter.im/vogle/sbpayment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) -[![Gradle Scan](https://img.shields.io/badge/Gradle-Scan-blue.svg)](https://vogle.page.link/scan) [![Build Status](https://travis-ci.org/vogle/sbpayment-java.svg?branch=master)](https://travis-ci.org/vogle/sbpayment-java) [![Coveralls](https://img.shields.io/coveralls/github/vogle/sbpayment-java.svg)](https://coveralls.io/github/vogle/sbpayment-java?branch=master) @@ -160,6 +159,7 @@ See Interface: [PayEasyPayment](sbpayment-payeasy/src/main/java/com/vogle/sbpaym ## ライセンス [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvogle%2Fsbpayment-java.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvogle%2Fsbpayment-java?ref=badge_shield) Copyright 2019 Vogle Labs. diff --git a/build.gradle b/build.gradle index a2256fc..02fdb18 100644 --- a/build.gradle +++ b/build.gradle @@ -38,12 +38,6 @@ buildScan { } } -task('aa') { - print("aaa") - print(project.hasProperty('gitter.url')) - print(project.property('gitter.url')) -} - // Configuration to apply to all the projects allprojects { @@ -120,36 +114,6 @@ configure(javaprojects) { } } - // Apply sonarqube - apply plugin: 'org.sonarqube' - sonarqube { - properties { - def hasIntegTest = new File(projectDir, 'src/integTest/java').directory - - property "sonar.sourceEncoding", "UTF-8" - property "sonar.sources", "src/main/java" - property "sonar.scm.disabled ", "true" - - if (hasIntegTest) { - property "sonar.tests", "src/test/java,src/integTest/java" - } else { - property "sonar.tests", "src/test/java" - } - - property "sonar.java.coveragePlugin", "jacoco" - if (hasIntegTest) { - property "sonar.jacoco.reportPaths", "build/jacoco/test.exec,build/jacoco/integrationTest.exec" - property "sonar.junit.reportPaths", "build/test-results/test,build/test-results/integrationTest" - } else { - property "sonar.jacoco.reportPaths", "build/jacoco/test.exec" - property "sonar.junit.reportPaths", "build/test-results/test" - } - - property "sonar.java.pmd.reportPaths", "build/reports/pmd/main.xml" - property "sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml" - } - } - } // Configuration to apply to JAVA Projects @@ -214,6 +178,35 @@ configure(publishedprojects) { } } + // Apply sonarqube + apply plugin: 'org.sonarqube' + sonarqube { + properties { + def hasIntegTest = new File(projectDir, 'src/integTest/java').directory + + property "sonar.sourceEncoding", "UTF-8" + property "sonar.sources", "src/main/java" + property "sonar.scm.disabled ", "true" + + if (hasIntegTest) { + property "sonar.tests", "src/test/java,src/integTest/java" + } else { + property "sonar.tests", "src/test/java" + } + + property "sonar.java.coveragePlugin", "jacoco" + if (hasIntegTest) { + property "sonar.jacoco.reportPaths", "build/jacoco/test.exec,build/jacoco/integrationTest.exec" + property "sonar.junit.reportPaths", "build/test-results/test,build/test-results/integrationTest" + } else { + property "sonar.jacoco.reportPaths", "build/jacoco/test.exec" + property "sonar.junit.reportPaths", "build/test-results/test" + } + + property "sonar.java.pmd.reportPaths", "build/reports/pmd/main.xml" + property "sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml" + } + } } // report tools diff --git a/config/vogle-ruleset-6.7.x.xml b/config/vogle-ruleset-6.7.x.xml index e4698dc..200e201 100644 --- a/config/vogle-ruleset-6.7.x.xml +++ b/config/vogle-ruleset-6.7.x.xml @@ -95,7 +95,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -357,7 +357,7 @@ - + diff --git a/gradle.properties b/gradle.properties index fde22b8..fd0e085 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,3 @@ org.gradle.parallel=true -org.gradle.caching=true group=com.vogle.sbpayment \ No newline at end of file diff --git a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/SpsResult.java b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/SpsResult.java index 519779b..74131c0 100644 --- a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/SpsResult.java +++ b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/SpsResult.java @@ -21,6 +21,7 @@ import lombok.Getter; import lombok.ToString; +import java.io.Serializable; import java.util.Map; /** @@ -29,7 +30,9 @@ * @author Allan Im **/ @ToString -public class SpsResult { +public class SpsResult implements Serializable { + + private static final long serialVersionUID = 6757501412149715585L; /** * HTTP Status Code diff --git a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/requests/SpsRequest.java b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/requests/SpsRequest.java index 57ce778..40f1fbf 100644 --- a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/requests/SpsRequest.java +++ b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/requests/SpsRequest.java @@ -18,12 +18,14 @@ import com.vogle.sbpayment.client.responses.SpsResponse; +import java.io.Serializable; + /** * Request interface * * @author Allan Im **/ -public interface SpsRequest { +public interface SpsRequest extends Serializable { /** * Gets a Features ID diff --git a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/CommonElements.java b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/CommonElements.java index 2ce9f3a..5be32d4 100644 --- a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/CommonElements.java +++ b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/CommonElements.java @@ -27,6 +27,8 @@ @Data public abstract class CommonElements implements SpsResponse { + private static final long serialVersionUID = 1550108062521728517L; + @JacksonXmlProperty(isAttribute = true) private String id; diff --git a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/SpsResponse.java b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/SpsResponse.java index 6400e51..a07da9c 100644 --- a/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/SpsResponse.java +++ b/sbpayment-client/src/main/java/com/vogle/sbpayment/client/responses/SpsResponse.java @@ -16,12 +16,14 @@ package com.vogle.sbpayment.client.responses; +import java.io.Serializable; + /** * Response interface * * @author Allan Im **/ -public interface SpsResponse { +public interface SpsResponse extends Serializable { /** * Features ID diff --git a/sbpayment-client/src/test/java/com/vogle/sbpayment/client/SpsClientTest.java b/sbpayment-client/src/test/java/com/vogle/sbpayment/client/SpsClientTest.java index 6e65812..86ca99e 100644 --- a/sbpayment-client/src/test/java/com/vogle/sbpayment/client/SpsClientTest.java +++ b/sbpayment-client/src/test/java/com/vogle/sbpayment/client/SpsClientTest.java @@ -240,6 +240,8 @@ private SpsClient createClient(String merchantId, String serviceId) { public static class TestRequest implements SpsRequest { + private static final long serialVersionUID = -5028610781660847972L; + private String merchantId; private String serviceId; private Integer limitSecond; @@ -308,6 +310,8 @@ public Class responseClass() { public static class TestResponse implements SpsResponse { + private static final long serialVersionUID = -2058777901329574348L; + @Override public String getId() { return null; diff --git a/sbpayment-client/src/test/java/com/vogle/sbpayment/client/convert/SpsDataConverterTest.java b/sbpayment-client/src/test/java/com/vogle/sbpayment/client/convert/SpsDataConverterTest.java index 87cbe6d..d7ef232 100644 --- a/sbpayment-client/src/test/java/com/vogle/sbpayment/client/convert/SpsDataConverterTest.java +++ b/sbpayment-client/src/test/java/com/vogle/sbpayment/client/convert/SpsDataConverterTest.java @@ -19,13 +19,12 @@ import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; +import org.junit.Test; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; -import org.junit.Test; - import static org.assertj.core.api.Assertions.assertThat; /** @@ -286,5 +285,9 @@ private class NoGetterObject { private String cipher; private String encryptedFlg; + + String privateField() { + return some + cipher + encryptedFlg; + } } } \ No newline at end of file diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardAuthorizeRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardAuthorizeRequest.java index 8c27949..e56882e 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardAuthorizeRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardAuthorizeRequest.java @@ -50,6 +50,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardAuthorizeRequest implements SpsRequest { + private static final long serialVersionUID = 465877331331363736L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST01-00131-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCancelRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCancelRequest.java index fabd290..032033d 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCancelRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCancelRequest.java @@ -38,6 +38,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardCancelRequest implements SpsRequest { + private static final long serialVersionUID = -543077522971686858L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST02-00303-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCaptureRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCaptureRequest.java index 96c5681..f5ead26 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCaptureRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCaptureRequest.java @@ -39,6 +39,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardCaptureRequest implements SpsRequest { + private static final long serialVersionUID = -2015573157616140480L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST02-00201-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCommitRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCommitRequest.java index 713af48..29baa0a 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCommitRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardCommitRequest.java @@ -38,6 +38,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardCommitRequest implements SpsRequest { + private static final long serialVersionUID = -6456887097733052460L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST02-00101-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoDeleteRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoDeleteRequest.java index 3b65261..7dcfe17 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoDeleteRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoDeleteRequest.java @@ -37,6 +37,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardInfoDeleteRequest implements SpsRequest { + private static final long serialVersionUID = 2750844474701499089L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00103-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoLookupRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoLookupRequest.java index 7893f2b..b412f38 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoLookupRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoLookupRequest.java @@ -38,6 +38,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardInfoLookupRequest implements SpsRequest { + private static final long serialVersionUID = -8396000256393924712L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00104-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoSaveRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoSaveRequest.java index b0e091f..da0a0e8 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoSaveRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoSaveRequest.java @@ -42,6 +42,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardInfoSaveRequest implements SpsRequest { + private static final long serialVersionUID = -7943963689292565237L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00131-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoUpdateRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoUpdateRequest.java index 881e00f..77f7e06 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoUpdateRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardInfoUpdateRequest.java @@ -42,6 +42,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardInfoUpdateRequest implements SpsRequest { + private static final long serialVersionUID = 4822517482683433947L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00132-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardPartialRefundRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardPartialRefundRequest.java index 20ae579..eb24b6b 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardPartialRefundRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardPartialRefundRequest.java @@ -39,6 +39,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardPartialRefundRequest implements SpsRequest { + private static final long serialVersionUID = 8478011947890931234L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST02-00307-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardReauthorizeRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardReauthorizeRequest.java index c54e299..e9100bb 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardReauthorizeRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardReauthorizeRequest.java @@ -50,6 +50,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardReauthorizeRequest implements SpsRequest { + private static final long serialVersionUID = -3892720023392425048L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST01-00133-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardTranLookupRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardTranLookupRequest.java index 67e5173..00d6107 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardTranLookupRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/CardTranLookupRequest.java @@ -39,6 +39,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class CardTranLookupRequest implements SpsRequest { + private static final long serialVersionUID = 8189957339680131672L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG01-00101-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardAuthorizeRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardAuthorizeRequest.java index bd6e638..ee3859b 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardAuthorizeRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardAuthorizeRequest.java @@ -51,6 +51,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class LegacyCardAuthorizeRequest implements SpsRequest { + private static final long serialVersionUID = -6508743720832796282L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST01-00111-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoSaveRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoSaveRequest.java index 620e337..654a92d 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoSaveRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoSaveRequest.java @@ -43,6 +43,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class LegacyCardInfoSaveRequest implements SpsRequest { + private static final long serialVersionUID = -2123947757052659271L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00101-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoUpdateRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoUpdateRequest.java index 4d0b557..f8d0de9 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoUpdateRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardInfoUpdateRequest.java @@ -43,6 +43,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class LegacyCardInfoUpdateRequest implements SpsRequest { + private static final long serialVersionUID = 1793929715634430616L; + @JacksonXmlProperty(isAttribute = true) private final String id = "MG02-00102-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardReauthorizeRequest.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardReauthorizeRequest.java index 95163a4..2b4e69f 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardReauthorizeRequest.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/requests/LegacyCardReauthorizeRequest.java @@ -48,6 +48,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class LegacyCardReauthorizeRequest implements SpsRequest { + private static final long serialVersionUID = -4208920357259615068L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST01-00113-101"; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardAuthorizeResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardAuthorizeResponse.java index 194d61d..8819e87 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardAuthorizeResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardAuthorizeResponse.java @@ -37,6 +37,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class CardAuthorizeResponse extends CommonElements { + private static final long serialVersionUID = -6750524402871391145L; + @JacksonXmlProperty(localName = "res_tracking_id") private String trackingId; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoDeleteResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoDeleteResponse.java index 2f98194..e34f061 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoDeleteResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoDeleteResponse.java @@ -31,4 +31,5 @@ @ToString(callSuper = true) @JacksonXmlRootElement(localName = "sps-api-response") public class CardInfoDeleteResponse extends CardInfoElements { + private static final long serialVersionUID = 7071320761811913514L; } diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoElements.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoElements.java index 2756fdb..486b36c 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoElements.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoElements.java @@ -34,6 +34,8 @@ @ToString(callSuper = true) public class CardInfoElements extends CommonElements { + private static final long serialVersionUID = -3010164429046847823L; + @JacksonXmlProperty(localName = "res_sps_info") private SpsInfo spsInfo; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoLookupResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoLookupResponse.java index 6da2095..177096d 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoLookupResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoLookupResponse.java @@ -35,6 +35,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class CardInfoLookupResponse extends CardInfoElements { + private static final long serialVersionUID = -7522106873001732654L; + @CipherString @JacksonXmlProperty(localName = "res_pay_method_info") private CardInfoLookupMethodInfo payMethodInfo; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoSaveResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoSaveResponse.java index fb54418..0c70f9f 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoSaveResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoSaveResponse.java @@ -35,6 +35,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class CardInfoSaveResponse extends CardInfoElements { + private static final long serialVersionUID = -578235998642541944L; + @CipherString @JacksonXmlProperty(localName = "res_pay_method_info") private CardInfoMethodInfo payMethodInfo; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoUpdateResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoUpdateResponse.java index 5b49334..39bf640 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoUpdateResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardInfoUpdateResponse.java @@ -35,6 +35,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class CardInfoUpdateResponse extends CardInfoElements { + private static final long serialVersionUID = -2604820766271384636L; + @CipherString @JacksonXmlProperty(localName = "res_pay_method_info") private CardInfoMethodInfo payMethodInfo; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardTranLookupResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardTranLookupResponse.java index 0235c10..14d3107 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardTranLookupResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/CardTranLookupResponse.java @@ -36,6 +36,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class CardTranLookupResponse extends CommonElements { + private static final long serialVersionUID = 3751406957701860987L; + @JacksonXmlProperty(localName = "res_status") private String resStatus; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/DefaultResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/DefaultResponse.java index 4ae76ee..a3153a7 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/DefaultResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/DefaultResponse.java @@ -34,6 +34,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class DefaultResponse extends CommonElements { + private static final long serialVersionUID = 8888111927719731206L; + @Override public String getDescription() { return FeatureHelper.getDescription(this.getId()); diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoSaveResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoSaveResponse.java index 5314d3d..4f11b87 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoSaveResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoSaveResponse.java @@ -35,6 +35,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class LegacyCardInfoSaveResponse extends CardInfoElements { + private static final long serialVersionUID = -8311654050919455516L; + @CipherString @JacksonXmlProperty(localName = "res_pay_method_info") private LegacyCardInfoMethodInfo payMethodInfo; diff --git a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoUpdateResponse.java b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoUpdateResponse.java index 004ea5a..6a2ddff 100644 --- a/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoUpdateResponse.java +++ b/sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/responses/LegacyCardInfoUpdateResponse.java @@ -35,6 +35,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class LegacyCardInfoUpdateResponse extends CardInfoElements { + private static final long serialVersionUID = 3116793370283044407L; + @CipherString @JacksonXmlProperty(localName = "res_pay_method_info") private LegacyCardInfoMethodInfo payMethodInfo; diff --git a/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/requests/PayEasyPaymentRequest.java b/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/requests/PayEasyPaymentRequest.java index 9a6d589..fcd10a7 100644 --- a/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/requests/PayEasyPaymentRequest.java +++ b/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/requests/PayEasyPaymentRequest.java @@ -46,6 +46,8 @@ @JacksonXmlRootElement(localName = "sps-api-request") public class PayEasyPaymentRequest implements SpsRequest { + private static final long serialVersionUID = 7026446177780976327L; + @JacksonXmlProperty(isAttribute = true) private final String id = "ST01-00101-703"; diff --git a/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/responses/PayEasyPaymentResponse.java b/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/responses/PayEasyPaymentResponse.java index 08b243d..9dc2453 100644 --- a/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/responses/PayEasyPaymentResponse.java +++ b/sbpayment-payeasy/src/main/java/com/vogle/sbpayment/payeasy/responses/PayEasyPaymentResponse.java @@ -37,6 +37,8 @@ @JacksonXmlRootElement(localName = "sps-api-response") public class PayEasyPaymentResponse extends CommonElements { + private static final long serialVersionUID = 7851524074256559523L; + @JacksonXmlProperty(localName = "res_tracking_id") private String trackingId;