Skip to content

Commit 29a08d9

Browse files
committed
SP-934: update satoshisPerByte to Double and bump version
1 parent 376671e commit 29a08d9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/com/bitpay/sdk/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Config {
3434
/**
3535
* BitPay Plugin Info Version.
3636
*/
37-
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.0.1";
37+
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.0.2";
3838
/**
3939
* BitPay Api Frame.
4040
*/

src/main/java/com/bitpay/sdk/model/invoice/MinerFeesItem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@JsonIgnoreProperties(ignoreUnknown = true)
1818
public class MinerFeesItem {
1919

20-
protected Integer satoshisPerByte;
20+
protected Double satoshisPerByte;
2121
protected Integer totalFee;
2222
protected Double fiatAmount;
2323

@@ -33,7 +33,7 @@ public MinerFeesItem() {
3333
* @return the satoshis per byte
3434
*/
3535
@JsonIgnore
36-
public Integer getSatoshisPerByte() {
36+
public Double getSatoshisPerByte() {
3737
return this.satoshisPerByte;
3838
}
3939

@@ -43,7 +43,7 @@ public Integer getSatoshisPerByte() {
4343
* @param satoshisPerByte the satoshis per byte
4444
*/
4545
@JsonProperty("satoshisPerByte")
46-
public void setSatoshisPerByte(Integer satoshisPerByte) {
46+
public void setSatoshisPerByte(Double satoshisPerByte) {
4747
this.satoshisPerByte = satoshisPerByte;
4848
}
4949

src/test/java/com/bitpay/sdk/ConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void it_should_returns_bitpay_api_version() {
5858

5959
@Test
6060
public void it_should_returns_bitpay_plugin_info() {
61-
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.0.1"));
61+
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.0.2"));
6262
}
6363

6464
@Test

0 commit comments

Comments
 (0)