-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BATM-6424 Transaction has at sell via bitgo (#925)
- Loading branch information
Showing
6 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...generalbytes/batm/server/extensions/extra/bitcoin/wallets/bitgo/v2/dto/BitGoTransfer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.generalbytes.batm.server.extensions.extra.bitcoin.wallets.bitgo.v2.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class BitGoTransfer { | ||
|
||
@JsonProperty("txid") | ||
private String transactionHash; | ||
@JsonProperty("valueString") | ||
private BigDecimal value; | ||
@JsonProperty("confirmations") | ||
private int confirmations; | ||
|
||
public String getTransactionHash() { | ||
return transactionHash; | ||
} | ||
|
||
public BigDecimal getValue() { | ||
return value; | ||
} | ||
|
||
public int getConfirmations() { | ||
return confirmations; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...tes/batm/server/extensions/extra/bitcoin/wallets/bitgo/v2/dto/BitGoTransfersResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.generalbytes.batm.server.extensions.extra.bitcoin.wallets.bitgo.v2.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class BitGoTransfersResponse { | ||
|
||
@JsonProperty("transfers") | ||
private List<BitGoTransfer> transfers; | ||
|
||
public List<BitGoTransfer> getTransfers() { | ||
return transfers; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters