public class BTCPayServerResponseParser
extends java.lang.Object
Constructor and Description |
---|
BTCPayServerResponseParser()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Invoice |
parseInvoice(byte[] jsonResponse)
Method to parse and convert a BTC Pay Server JSON invoice response into a value object
invoice.
|
Token |
parseToken(byte[] jsonResponse)
Method to parse and convert a BTC Pay Server JSON invoice response into a value object
invoice.
|
protected javax.json.JsonObject |
toJsonObject(byte[] jsonResponse) |
public BTCPayServerResponseParser()
public Invoice parseInvoice(byte[] jsonResponse) throws javax.json.JsonException
jsonResponse
- the jsonResponse as a string.javax.json.JsonException
- if problems occurred parsing the json data.public Token parseToken(byte[] jsonResponse) throws javax.json.JsonException
jsonResponse
- the jsonResponse as a string.javax.json.JsonException
- if problems occurred parsing the json data.protected javax.json.JsonObject toJsonObject(byte[] jsonResponse) throws javax.json.JsonException
javax.json.JsonException