Skip to content

Commit

Permalink
Merge pull request #249 from mercadopago/fix/account-id-type-issue
Browse files Browse the repository at this point in the history
Change account id types from long to BigInteger
  • Loading branch information
romerosilva-meli authored Dec 13, 2022
2 parents a7bc471 + d9dd4c5 commit 540f64f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ already.
<dependency>
<groupId>com.mercadopago</groupId>
<artifactId>sdk-java</artifactId>
<version>2.1.4</version>
<version>2.1.5</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.mercadopago</groupId>
<artifactId>sdk-java</artifactId>
<version>2.1.4</version>
<version>2.1.5</version>
<packaging>jar</packaging>

<name>Mercadopago SDK</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mercadopago/MercadoPagoConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/** Mercado Pago configuration class. */
public class MercadoPagoConfig {

public static final String CURRENT_VERSION = "2.1.4";
public static final String CURRENT_VERSION = "2.1.5";

public static final String PRODUCT_ID = "BC32A7VTRPP001U8NHJ0";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.mercadopago.resources.payment;

import java.math.BigInteger;
import lombok.Getter;

/** PaymentBankInfoCollector class. */
@Getter
public class PaymentBankInfoCollector {
/** Account ID. */
private Long accountId;
private BigInteger accountId;

/** Account long name. */
private String longName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mercadopago.resources.payment;

import java.math.BigInteger;
import lombok.Getter;

/** PaymentBankInfoPayer class. */
Expand All @@ -9,7 +10,7 @@ public class PaymentBankInfoPayer {
private String email;

/** Account ID. */
private Long accountId;
private BigInteger accountId;

/** Account long name. */
private String longName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"bank_info": {
"is_same_bank_account_owner": null,
"payer": {
"account_id": null,
"account_id": "9224382036864776100",
"id": null,
"long_name": null
},
"collector": {
"account_id": null,
"account_id": "9325372136954476022",
"account_holder_name": "Salazar Tucker",
"long_name": null,
"transfer_account_id": null
Expand Down

0 comments on commit 540f64f

Please sign in to comment.