Skip to content

Commit

Permalink
Merge pull request #2 from TransbankDevelopers/feat/implementation-sd…
Browse files Browse the repository at this point in the history
…k-java

Feat/implementation sdk java
  • Loading branch information
Alfredo Fiebig authored Mar 13, 2020
2 parents 0b5e008 + b78bb67 commit fbd3059
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gitignore
.idea
*.iml
target
Expand All @@ -12,4 +13,5 @@ dependency-reduced-pom.xml
/out
build/
*.DS_Store
._*
._*
src/main/java/cl/transbank/pos/SDKTest.java
13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@

<groupId>com.github.transbankdevelopers</groupId>
<artifactId>transbank-sdk-pos-java</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.13.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.1</version>
</dependency>
</dependencies>
<build>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/cl/transbank/pos/POS.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import cl.transbank.pos.utils.TbkBaudRate;
import cl.transbank.pos.utils.TbkReturn;
import cl.transbank.pos.utils.TransbankWrap;
import org.apache.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -26,7 +27,7 @@

public class POS {

private static final Logger logger = Logger.getLogger(POS.class);
private static final Logger logger = LogManager.getLogger(POS.class);

public static final String NATIVE_TRANSBANK_WRAP = "NATIVE_TRANSBANK_WRAP";

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cl/transbank/pos/helper/StringUtils.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package cl.transbank.pos.helper;

import cl.transbank.pos.SDKTest;
import cl.transbank.pos.exceptions.NotInstantiableException;
import org.apache.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class StringUtils {

private static final Logger logger = Logger.getLogger(StringUtils.class);
private static final Logger logger = LogManager.getLogger(StringUtils.class);

private StringUtils() {
throw new NotInstantiableException("Do not instantiate this!");
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cl/transbank/pos/responses/DetailResponse.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package cl.transbank.pos.responses;

import cl.transbank.pos.SDKTest;
import cl.transbank.pos.exceptions.TransbankParseException;
import org.apache.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.time.LocalDate;
import java.time.LocalDateTime;
Expand All @@ -17,7 +19,7 @@

public class DetailResponse {

private static final Logger logger = Logger.getLogger(DetailResponse.class);
private static final Logger logger = LogManager.getLogger(DetailResponse.class);

public static final Map<String, Integer> map;

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cl/transbank/pos/responses/KeysResponse.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package cl.transbank.pos.responses;

import cl.transbank.pos.SDKTest;
import cl.transbank.pos.utils.BaseResponse;
import org.apache.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class KeysResponse {

private static final Logger logger = Logger.getLogger(TotalsResponse.class);
private static final Logger logger = LogManager.getLogger(KeysResponse.class);

private final int functionCode;
private final int responseCode;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cl/transbank/pos/responses/SaleResponse.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cl.transbank.pos.responses;

import org.apache.log4j.Logger;
import cl.transbank.pos.SDKTest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.time.LocalDate;
import java.time.LocalDateTime;
Expand All @@ -13,7 +15,7 @@

public class SaleResponse {

private static final Logger logger = Logger.getLogger(SaleResponse.class);
private static final Logger logger = LogManager.getLogger(SaleResponse.class);

public static final Map<String, Integer> map;

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/cl/transbank/pos/responses/TotalsResponse.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package cl.transbank.pos.responses;

import cl.transbank.pos.SDKTest;
import cl.transbank.pos.utils.TotalsCResponse;
import org.apache.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class TotalsResponse {

private static final Logger logger = Logger.getLogger(TotalsResponse.class);
private static final Logger logger = LogManager.getLogger(TotalsResponse.class);

private final int txCount;
private final int txTotal;
Expand Down

0 comments on commit fbd3059

Please sign in to comment.