From 58936765e197652f7e7c606387fa8464e5c49293 Mon Sep 17 00:00:00 2001 From: Anthony Agnone Date: Wed, 17 Feb 2021 20:02:28 -0500 Subject: [PATCH 1/2] Added VSCode-related assets to .gitignore --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c3351f37..459f780d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,8 @@ **/classes/ **/build/ **/out/ -**/application.*.yml \ No newline at end of file +**/application.*.yml +**/.classpath +**/.project +**/.settings +**/.vscode \ No newline at end of file From 978d2bd186900ea35d51fc619844fa1dc15f8ebd Mon Sep 17 00:00:00 2001 From: Anthony Agnone Date: Wed, 17 Feb 2021 20:06:21 -0500 Subject: [PATCH 2/2] Converted Detail and AccountHistory ids Integer -> BigInteger --- .../coinbase/exchange/api/accounts/AccountHistory.java | 7 ++++--- build.gradle | 2 +- .../src/main/java/com/coinbase/exchange/model/Detail.java | 8 +++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/api/src/main/java/com/coinbase/exchange/api/accounts/AccountHistory.java b/api/src/main/java/com/coinbase/exchange/api/accounts/AccountHistory.java index 186ce6bc..2c18376a 100644 --- a/api/src/main/java/com/coinbase/exchange/api/accounts/AccountHistory.java +++ b/api/src/main/java/com/coinbase/exchange/api/accounts/AccountHistory.java @@ -3,12 +3,13 @@ import com.coinbase.exchange.model.Detail; import java.math.BigDecimal; +import java.math.BigInteger; /** * Created by irufus on 2/18/15. */ public class AccountHistory { - private Integer id; + private BigInteger id; private String created_at; private BigDecimal amount; private BigDecimal balance; @@ -17,11 +18,11 @@ public class AccountHistory { public AccountHistory() {} - public Integer getId() { + public BigInteger getId() { return id; } - public void setId(Integer id) { + public void setId(BigInteger id) { this.id = id; } diff --git a/build.gradle b/build.gradle index b7fe9f3f..5a51cb13 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ allprojects { group = 'com.coinbase.exchange' description = 'Client for the Coinbase Pro API' - version = '0.11.0' + version = '0.12.0' repositories { mavenCentral() diff --git a/model/src/main/java/com/coinbase/exchange/model/Detail.java b/model/src/main/java/com/coinbase/exchange/model/Detail.java index 70298865..bf8e9ba0 100644 --- a/model/src/main/java/com/coinbase/exchange/model/Detail.java +++ b/model/src/main/java/com/coinbase/exchange/model/Detail.java @@ -1,11 +1,13 @@ package com.coinbase.exchange.model; +import java.math.BigInteger; + /** * Created by irufus on 2/25/15. */ public class Detail { private String order_id; - private Integer trade_id; + private BigInteger trade_id; private String product_id; public String getOrder_id() { @@ -16,11 +18,11 @@ public void setOrder_id(String order_id) { this.order_id = order_id; } - public Integer getTrade_id() { + public BigInteger getTrade_id() { return trade_id; } - public void setTrade_id(Integer trade_id) { + public void setTrade_id(BigInteger trade_id) { this.trade_id = trade_id; }