Skip to content

Commit 919bbf1

Browse files
committed
Release wallet v2.0.0
1 parent ae1bb6b commit 919bbf1

File tree

16 files changed

+1219
-20
lines changed

16 files changed

+1219
-20
lines changed

clients/wallet/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.0.0 - 2025-06-11
4+
5+
### Added (1)
6+
7+
- `fetchAddressVerificationList()` (`GET /sapi/v1/addressVerify/list`)
8+
39
## 1.1.0 - 2025-05-02
410

511
- Update `binance/common` module to version `1.1.0`.
@@ -8,4 +14,4 @@
814

915
## 1.0.0 - 2025-04-24
1016

11-
- Initial release
17+
- Initial release

clients/wallet/docs/rest-api/migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ With the transition to a modularized structure, the Binance Connector has been s
2222
<dependency>
2323
<groupId>io.github.binance</groupId>
2424
<artifactId>binance-wallet</artifactId>
25-
<version>1.1.0</version>
25+
<version>2.0.0</version>
2626
</dependency>
2727
```
2828

@@ -91,7 +91,7 @@ by:
9191
<dependency>
9292
<groupId>io.github.binance</groupId>
9393
<artifactId>binance-wallet</artifactId>
94-
<version>1.1.0</version>
94+
<version>2.0.0</version>
9595
</dependency>
9696
```
9797

clients/wallet/example_rest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878

7979
[GET /sapi/v1/localentity/deposit/history](https://developers.binance.com/docs/wallet/travel-rule/Deposit-History) - depositHistoryTravelRule - [DepositHistoryTravelRuleExample.java:51](/examples/wallet/src/main/java/com/binance/connector/client/wallet/rest/travelrule/DepositHistoryTravelRuleExample.java#L51)
8080

81+
[GET /sapi/v1/addressVerify/list](https://developers.binance.com/docs/wallet/travel-rule/address-verification-list) - fetchAddressVerificationList - [FetchAddressVerificationListExample.java:46](/examples/wallet/src/main/java/com/binance/connector/client/wallet/rest/travelrule/FetchAddressVerificationListExample.java#L46)
82+
8183
[GET /sapi/v1/localentity/vasp](https://developers.binance.com/docs/wallet/travel-rule/Onboarded-VASP-list) - onboardedVaspList - [OnboardedVaspListExample.java:52](/examples/wallet/src/main/java/com/binance/connector/client/wallet/rest/travelrule/OnboardedVaspListExample.java#L52)
8284

8385
[PUT /sapi/v1/localentity/broker/deposit/provide-info](https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info) - submitDepositQuestionnaire - [SubmitDepositQuestionnaireExample.java:52](/examples/wallet/src/main/java/com/binance/connector/client/wallet/rest/travelrule/SubmitDepositQuestionnaireExample.java#L52)

clients/wallet/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>binance-wallet</artifactId>
77
<name>wallet</name>
8-
<version>1.1.0</version>
8+
<version>2.0.0</version>
99
<packaging>jar</packaging>
1010

1111
<parent>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>io.github.binance</groupId>
3333
<artifactId>binance-common</artifactId>
34-
<version>1.1.0</version>
34+
<version>1.2.1</version>
3535
</dependency>
3636
</dependencies>
3737
</project>

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/JSON.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,16 @@ private static Class getClassByDiscriminator(
225225
gsonBuilder.registerTypeAdapterFactory(
226226
new com.binance.connector.client.wallet.rest.model.EnableFastWithdrawSwitchRequest
227227
.CustomTypeAdapterFactory());
228+
gsonBuilder.registerTypeAdapterFactory(
229+
new com.binance.connector.client.wallet.rest.model
230+
.FetchAddressVerificationListResponse.CustomTypeAdapterFactory());
231+
gsonBuilder.registerTypeAdapterFactory(
232+
new com.binance.connector.client.wallet.rest.model
233+
.FetchAddressVerificationListResponseInner.CustomTypeAdapterFactory());
234+
gsonBuilder.registerTypeAdapterFactory(
235+
new com.binance.connector.client.wallet.rest.model
236+
.FetchAddressVerificationListResponseInnerAddressQuestionnaire
237+
.CustomTypeAdapterFactory());
228238
gsonBuilder.registerTypeAdapterFactory(
229239
new com.binance.connector.client.wallet.rest.model
230240
.FetchDepositAddressListWithNetworkResponse.CustomTypeAdapterFactory());

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/api/AccountApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class AccountApi {
4949

5050
private static final String USER_AGENT =
5151
String.format(
52-
"binance-wallet/1.1.0 (Java/%s; %s; %s)",
52+
"binance-wallet/2.0.0 (Java/%s; %s; %s)",
5353
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
5454
private static final boolean HAS_TIME_UNIT = false;
5555

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/api/AssetApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class AssetApi {
6464

6565
private static final String USER_AGENT =
6666
String.format(
67-
"binance-wallet/1.1.0 (Java/%s; %s; %s)",
67+
"binance-wallet/2.0.0 (Java/%s; %s; %s)",
6868
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
6969
private static final boolean HAS_TIME_UNIT = false;
7070

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/api/CapitalApi.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class CapitalApi {
5454

5555
private static final String USER_AGENT =
5656
String.format(
57-
"binance-wallet/1.1.0 (Java/%s; %s; %s)",
57+
"binance-wallet/2.0.0 (Java/%s; %s; %s)",
5858
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
5959
private static final boolean HAS_TIME_UNIT = false;
6060

@@ -1404,7 +1404,8 @@ public ApiResponse<WithdrawResponse> withdraw(@Valid @NotNull WithdrawRequest wi
14041404
* Build call for withdrawHistory
14051405
*
14061406
* @param coin (optional)
1407-
* @param withdrawOrderId (optional)
1407+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1408+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
14081409
* @param status 0(0:Email Sent, 2:Awaiting Approval 3:Rejected 4:Processing 6:Completed)
14091410
* (optional)
14101411
* @param offset Default: 0 (optional)
@@ -1608,7 +1609,8 @@ private okhttp3.Call withdrawHistoryValidateBeforeCall(
16081609
* 10 requests per second
16091610
*
16101611
* @param coin (optional)
1611-
* @param withdrawOrderId (optional)
1612+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1613+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
16121614
* @param status 0(0:Email Sent, 2:Awaiting Approval 3:Rejected 4:Processing 6:Completed)
16131615
* (optional)
16141616
* @param offset Default: 0 (optional)

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/api/OthersApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class OthersApi {
4343

4444
private static final String USER_AGENT =
4545
String.format(
46-
"binance-wallet/1.1.0 (Java/%s; %s; %s)",
46+
"binance-wallet/2.0.0 (Java/%s; %s; %s)",
4747
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
4848
private static final boolean HAS_TIME_UNIT = false;
4949

clients/wallet/src/main/java/com/binance/connector/client/wallet/rest/api/TravelRuleApi.java

Lines changed: 140 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.binance.connector.client.wallet.rest.model.BrokerWithdrawRequest;
2424
import com.binance.connector.client.wallet.rest.model.BrokerWithdrawResponse;
2525
import com.binance.connector.client.wallet.rest.model.DepositHistoryTravelRuleResponse;
26+
import com.binance.connector.client.wallet.rest.model.FetchAddressVerificationListResponse;
2627
import com.binance.connector.client.wallet.rest.model.OnboardedVaspListResponse;
2728
import com.binance.connector.client.wallet.rest.model.SubmitDepositQuestionnaireRequest;
2829
import com.binance.connector.client.wallet.rest.model.SubmitDepositQuestionnaireResponse;
@@ -55,7 +56,7 @@ public class TravelRuleApi {
5556

5657
private static final String USER_AGENT =
5758
String.format(
58-
"binance-wallet/1.1.0 (Java/%s; %s; %s)",
59+
"binance-wallet/2.0.0 (Java/%s; %s; %s)",
5960
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
6061
private static final boolean HAS_TIME_UNIT = false;
6162

@@ -574,6 +575,136 @@ public ApiResponse<DepositHistoryTravelRuleResponse> depositHistoryTravelRule(
574575
return localVarApiClient.execute(localVarCall, localVarReturnType);
575576
}
576577

578+
/**
579+
* Build call for fetchAddressVerificationList
580+
*
581+
* @return Call to execute
582+
* @throws ApiException If fail to serialize the request body object
583+
* @http.response.details
584+
* <table border="1">
585+
* <caption>Response Details</caption>
586+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
587+
* <tr><td> 200 </td><td> Fetch address verification list </td><td> - </td></tr>
588+
* </table>
589+
*
590+
* @see <a
591+
* href="https://developers.binance.com/docs/wallet/travel-rule/address-verification-list">Fetch
592+
* address verification list (USER_DATA) Documentation</a>
593+
*/
594+
private okhttp3.Call fetchAddressVerificationListCall() throws ApiException {
595+
String basePath = null;
596+
// Operation Servers
597+
String[] localBasePaths = new String[] {};
598+
599+
// Determine Base Path to Use
600+
if (localCustomBaseUrl != null) {
601+
basePath = localCustomBaseUrl;
602+
} else if (localBasePaths.length > 0) {
603+
basePath = localBasePaths[localHostIndex];
604+
} else {
605+
basePath = null;
606+
}
607+
608+
Object localVarPostBody = null;
609+
610+
// create path and map variables
611+
String localVarPath = "/sapi/v1/addressVerify/list";
612+
613+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
614+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
615+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
616+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
617+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
618+
619+
final String[] localVarAccepts = {"application/json"};
620+
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
621+
if (localVarAccept != null) {
622+
localVarHeaderParams.put("Accept", localVarAccept);
623+
}
624+
625+
final String[] localVarContentTypes = {"application/x-www-form-urlencoded"};
626+
final String localVarContentType =
627+
localVarApiClient.selectHeaderContentType(localVarContentTypes);
628+
if (localVarContentType != null) {
629+
localVarHeaderParams.put("Content-Type", localVarContentType);
630+
}
631+
List<String> localVarAuthNames = new ArrayList<>();
632+
localVarAuthNames.addAll(
633+
Arrays.asList(
634+
new String[] {
635+
"binanceSignature",
636+
}));
637+
if (HAS_TIME_UNIT) {
638+
localVarAuthNames.add("timeUnit");
639+
}
640+
return localVarApiClient.buildCall(
641+
basePath,
642+
localVarPath,
643+
"GET",
644+
localVarQueryParams,
645+
localVarCollectionQueryParams,
646+
localVarPostBody,
647+
localVarHeaderParams,
648+
localVarCookieParams,
649+
localVarFormParams,
650+
localVarAuthNames.toArray(new String[0]));
651+
}
652+
653+
@SuppressWarnings("rawtypes")
654+
private okhttp3.Call fetchAddressVerificationListValidateBeforeCall() throws ApiException {
655+
try {
656+
Validator validator =
657+
Validation.byDefaultProvider()
658+
.configure()
659+
.messageInterpolator(new ParameterMessageInterpolator())
660+
.buildValidatorFactory()
661+
.getValidator();
662+
ExecutableValidator executableValidator = validator.forExecutables();
663+
664+
Object[] parameterValues = {};
665+
Method method = this.getClass().getMethod("fetchAddressVerificationList");
666+
Set<ConstraintViolation<TravelRuleApi>> violations =
667+
executableValidator.validateParameters(this, method, parameterValues);
668+
669+
if (violations.size() == 0) {
670+
return fetchAddressVerificationListCall();
671+
} else {
672+
throw new ConstraintViolationException((Set) violations);
673+
}
674+
} catch (NoSuchMethodException e) {
675+
e.printStackTrace();
676+
throw new ApiException(e.getMessage());
677+
} catch (SecurityException e) {
678+
e.printStackTrace();
679+
throw new ApiException(e.getMessage());
680+
}
681+
}
682+
683+
/**
684+
* Fetch address verification list (USER_DATA) Fetch address verification list Weight: 10
685+
*
686+
* @return ApiResponse&lt;FetchAddressVerificationListResponse&gt;
687+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
688+
* response body
689+
* @http.response.details
690+
* <table border="1">
691+
* <caption>Response Details</caption>
692+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
693+
* <tr><td> 200 </td><td> Fetch address verification list </td><td> - </td></tr>
694+
* </table>
695+
*
696+
* @see <a
697+
* href="https://developers.binance.com/docs/wallet/travel-rule/address-verification-list">Fetch
698+
* address verification list (USER_DATA) Documentation</a>
699+
*/
700+
public ApiResponse<FetchAddressVerificationListResponse> fetchAddressVerificationList()
701+
throws ApiException {
702+
okhttp3.Call localVarCall = fetchAddressVerificationListValidateBeforeCall();
703+
java.lang.reflect.Type localVarReturnType =
704+
new TypeToken<FetchAddressVerificationListResponse>() {}.getType();
705+
return localVarApiClient.execute(localVarCall, localVarReturnType);
706+
}
707+
577708
/**
578709
* Build call for onboardedVaspList
579710
*
@@ -1076,7 +1207,8 @@ private okhttp3.Call submitDepositQuestionnaireTravelRuleValidateBeforeCall(
10761207
*
10771208
* @param trId Comma(,) separated list of travel rule record Ids. (optional)
10781209
* @param txId (optional)
1079-
* @param withdrawOrderId (optional)
1210+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1211+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
10801212
* @param network (optional)
10811213
* @param coin (optional)
10821214
* @param travelRuleStatus 0:Completed,1:Pending,2:Failed (optional)
@@ -1309,7 +1441,8 @@ private okhttp3.Call withdrawHistoryV1ValidateBeforeCall(
13091441
*
13101442
* @param trId Comma(,) separated list of travel rule record Ids. (optional)
13111443
* @param txId (optional)
1312-
* @param withdrawOrderId (optional)
1444+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1445+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
13131446
* @param network (optional)
13141447
* @param coin (optional)
13151448
* @param travelRuleStatus 0:Completed,1:Pending,2:Failed (optional)
@@ -1369,7 +1502,8 @@ public ApiResponse<WithdrawHistoryV1Response> withdrawHistoryV1(
13691502
*
13701503
* @param trId Comma(,) separated list of travel rule record Ids. (optional)
13711504
* @param txId (optional)
1372-
* @param withdrawOrderId (optional)
1505+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1506+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
13731507
* @param network (optional)
13741508
* @param coin (optional)
13751509
* @param travelRuleStatus 0:Completed,1:Pending,2:Failed (optional)
@@ -1608,7 +1742,8 @@ private okhttp3.Call withdrawHistoryV2ValidateBeforeCall(
16081742
*
16091743
* @param trId Comma(,) separated list of travel rule record Ids. (optional)
16101744
* @param txId (optional)
1611-
* @param withdrawOrderId (optional)
1745+
* @param withdrawOrderId client side id for withdrawal, if provided in POST
1746+
* &#x60;/sapi/v1/capital/withdraw/apply&#x60;, can be used here for query. (optional)
16121747
* @param network (optional)
16131748
* @param coin (optional)
16141749
* @param travelRuleStatus 0:Completed,1:Pending,2:Failed (optional)

0 commit comments

Comments
 (0)