Skip to content

Commit 0d65b60

Browse files
authored
Merge pull request #291 from p-maguire/SP-934
SP-934: Change satoshisPerByte to Double, update tests, and bump version
2 parents 376671e + 6b7fb49 commit 0d65b60

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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

src/test/java/com/bitpay/sdk/model/invoice/MinerFeesItemTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class MinerFeesItemTest {
1313
@Test
1414
public void it_should_manipulate_satoshisPerByte() {
1515
// given
16-
Integer expected = 765;
16+
Double expected = 765.1;
1717
MinerFeesItem testedClass = this.getTestedClass();
1818

1919
// when

0 commit comments

Comments
 (0)