Skip to content

Commit c3b8021

Browse files
committed
移除废弃方法;更新字段;更新示例
1 parent 5fd40db commit c3b8021

19 files changed

Lines changed: 59 additions & 408 deletions

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# ChangeLog
22

3+
## 2.3.4 (2018-01-10)
4+
#### 修改
5+
- 移除已废弃接口
6+
- 移除 transfer、batch_transfer 取消接口
7+
- 更新示例
8+
- 移除 order user_from 字段
9+
- settle_account 字段更新
10+
311
## 2.3.3 (2017-12-27)
412
#### 修正
513
- 修正 javadoc

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ maven 远程仓库
3333
<dependency>
3434
<groupId>Pingplusplus</groupId>
3535
<artifactId>pingpp-java</artifactId>
36-
<version>2.3.3</version>
36+
<version>2.3.4</version>
3737
<type>jar</type>
3838
</dependency>
3939
```
@@ -52,7 +52,7 @@ repositories {
5252

5353
安装 Ping++ SDK
5454
```
55-
compile 'Pingplusplus:pingpp-java:2.3.3'
55+
compile 'Pingplusplus:pingpp-java:2.3.4'
5656
```
5757

5858
### 初始化

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.3
1+
2.3.4

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>Pingplusplus</groupId>
55
<artifactId>pingpp-java</artifactId>
6-
<version>2.3.3</version>
6+
<version>2.3.4</version>
77
<dependencies>
88
<dependency>
99
<groupId>com.google.code.gson</groupId>

src/main/java/com/pingplusplus/Pingpp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public abstract class Pingpp {
1111
/**
1212
* version
1313
*/
14-
public static final String VERSION = "2.3.3";
14+
public static final String VERSION = "2.3.4";
1515
/**
1616
* api key
1717
*/

src/main/java/com/pingplusplus/model/BalanceTransaction.java

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -142,47 +142,4 @@ public static BalanceTransactionCollection list(Map<String, Object> params)
142142
APIConnectionException, APIException, ChannelException, RateLimitException {
143143
return request(APIResource.RequestMethod.GET, classURL(BalanceTransaction.class), params, BalanceTransactionCollection.class);
144144
}
145-
146-
/**
147-
* 查询 balance_transaction
148-
*
149-
* @param userId
150-
* @param id
151-
* @return BalanceTransaction
152-
* @throws AuthenticationException
153-
* @throws InvalidRequestException
154-
* @throws APIConnectionException
155-
* @throws APIException
156-
* @throws ChannelException
157-
* @throws RateLimitException
158-
*/
159-
@Deprecated
160-
public static BalanceTransaction retrieve(String userId, String id)
161-
throws AuthenticationException, InvalidRequestException,
162-
APIConnectionException, APIException, ChannelException, RateLimitException {
163-
return request(APIResource.RequestMethod.GET, instanceURL(BalanceTransaction.class, id), null, BalanceTransaction.class);
164-
}
165-
166-
/**
167-
* 查询 balance_transaction 列表
168-
*
169-
* @param userId
170-
* @param params
171-
* @return BalanceTransactionCollection
172-
* @throws AuthenticationException
173-
* @throws InvalidRequestException
174-
* @throws APIConnectionException
175-
* @throws APIException
176-
* @throws ChannelException
177-
* @throws RateLimitException
178-
*/
179-
@Deprecated
180-
public static BalanceTransactionCollection list(String userId, Map<String, Object> params)
181-
throws AuthenticationException, InvalidRequestException,
182-
APIConnectionException, APIException, ChannelException, RateLimitException {
183-
if (params != null) {
184-
params.put("user", userId);
185-
}
186-
return request(APIResource.RequestMethod.GET, classURL(BalanceTransaction.class), params, BalanceTransactionCollection.class);
187-
}
188145
}

src/main/java/com/pingplusplus/model/BatchTransfer.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -326,43 +326,4 @@ public static BatchTransfer update(String id, String apiKey, Map<String, Object>
326326
APIConnectionException, APIException, ChannelException, RateLimitException {
327327
return request(RequestMethod.PUT, instanceURL(BatchTransfer.class, id), apiKey, params, BatchTransfer.class);
328328
}
329-
330-
/**
331-
* 撤销/取消 BatchTransfer
332-
* @param id batch_transfer ID
333-
* @return BatchTransfer
334-
* @throws AuthenticationException
335-
* @throws InvalidRequestException
336-
* @throws APIConnectionException
337-
* @throws APIException
338-
* @throws ChannelException
339-
*/
340-
public static BatchTransfer cancel(String id)
341-
throws AuthenticationException, InvalidRequestException,
342-
APIConnectionException, APIException, ChannelException, RateLimitException {
343-
Map<String, Object> params = new HashMap<String, Object>();
344-
params.put("status", "canceled");
345-
return update(id, params);
346-
}
347-
348-
/**
349-
* 撤销/取消 BatchTransfer
350-
*
351-
* @param id
352-
* @param apiKey Ping++ Apikey
353-
* @return BatchTransfer
354-
* @throws AuthenticationException
355-
* @throws InvalidRequestException
356-
* @throws APIConnectionException
357-
* @throws APIException
358-
* @throws ChannelException
359-
* @throws RateLimitException
360-
*/
361-
public static BatchTransfer cancel(String id, String apiKey)
362-
throws AuthenticationException, InvalidRequestException,
363-
APIConnectionException, APIException, ChannelException, RateLimitException {
364-
Map<String, Object> params = new HashMap<String, Object>();
365-
params.put("status", "canceled");
366-
return update(id, apiKey, params);
367-
}
368329
}

src/main/java/com/pingplusplus/model/Charge.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,4 @@ public static Charge reverse(String id, String apiKey) throws AuthenticationExce
488488
APIException, ChannelException, RateLimitException {
489489
return reverse(id, apiKey, null);
490490
}
491-
492-
@Deprecated
493-
public static ChargeCollection all(Map<String, Object> params)
494-
throws RateLimitException, APIException, ChannelException,
495-
InvalidRequestException, APIConnectionException, AuthenticationException {
496-
return list(params);
497-
}
498-
499491
}

src/main/java/com/pingplusplus/model/ChargeRefundCollection.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ public ChargeRefundCollection list(String apiKey, Map<String, Object> params)
2222
return request(RequestMethod.GET, url, apiKey, params, ChargeRefundCollection.class);
2323
}
2424

25-
@Deprecated
26-
public ChargeRefundCollection all(Map<String, Object> params)
27-
throws AuthenticationException, InvalidRequestException,
28-
APIConnectionException, APIException, ChannelException, RateLimitException {
29-
return list(params);
30-
}
31-
3225
public Refund retrieve(String id)
3326
throws AuthenticationException, InvalidRequestException,
3427
APIConnectionException, APIException, ChannelException, RateLimitException {

src/main/java/com/pingplusplus/model/Notify.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)