Skip to content

Commit

Permalink
Merge pull request #57 from wepay/feature-version-2018-10-03
Browse files Browse the repository at this point in the history
Released v11.0.0, updating API support to 2018-10-03
  • Loading branch information
SharonLingqiongTan authored Oct 19, 2018
2 parents bad9731 + 5ec3f58 commit 0fd3021
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2018-10-08
* Released v11.0.0, updating API support to 2018-10-03
* Added AccountFindData.start and AccountFindData.limit

2018-09-25
* Released v10.1.0, updating API support to 2018-08-29
* Added PaymentMethodData.inlineCreditCard
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WePay-Java-SDK

Note
================================
This WePay-Java-SDK is for WePay API Version 2018-08-29. The jars for the previous API versions can be found in the lib folder.
This WePay-Java-SDK is for WePay API Version 2018-10-03. The jars for the previous API versions can be found in the lib folder.

Building
================================
Expand Down
Binary file added lib/wepay-2018-08-29.jar
Binary file not shown.
Binary file modified lib/wepay.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.wepay</groupId>
<artifactId>wepay-java-sdk</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>

<name>wepay-java-sdk</name>
<description>WePay Java SDK</description>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/wepay/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public static Account[] find(AccountFindData findData, HeaderData headerData) th
if (findData.name != null) params.put("name", findData.name);
if (findData.referenceId != null) params.put("reference_id", findData.referenceId);
if (findData.sortOrder != null) params.put("sort_order", findData.sortOrder);
if (findData.start != null) params.put("start", findData.start);
if (findData.limit != null) params.put("limit", findData.limit);
JSONArray results = new JSONArray(request("/account/find", params, headerData));
Account[] found = new Account[results.length()];
for (int i = 0; i < found.length; i++) {
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/wepay/model/data/AccountFindData.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ public class AccountFindData {

public String name;
public String referenceId;
public String sortOrder;
public String sortOrder;
public Integer start;
public Integer limit;

}
4 changes: 2 additions & 2 deletions src/main/java/com/wepay/net/WePayResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ protected static javax.net.ssl.HttpsURLConnection httpsConnect(String call, Head
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/json");
connection.setRequestProperty("Api-Version", "2018-08-29");
connection.setRequestProperty("User-Agent", "WePay Java SDK v10.1.0");
connection.setRequestProperty("Api-Version", "2018-10-03");
connection.setRequestProperty("User-Agent", "WePay Java SDK v11.0.0");

if (headerData != null) {
if (headerData.accessToken != null) {
Expand Down

0 comments on commit 0fd3021

Please sign in to comment.