Java Full SDK v8.8.0

This release adds the ability to cancel an invoice by GUID and addresses a few bugs. The full release can be found here.

Changes

  • Added Dependabot!
  • Added getRates() to retrieve the exchange rate table maintained by BitPay by baseCurrency
  • Added getRate() to retrieve the rates for a cryptocurrency / fiat pair
  • Added ability to retrieve an event token
  • Added the ability to cancel an invoice by GUID
  • Bumped version to 8.8.0

Bug fixes

  • Invoices now respect a custom GUID passed to them

Details

Dependabot

Now that we have a more robust test suite, we have installed and configured Dependabot to contribute pull requests for package updates.

Get Rates (new)

public Rates getRates() throws RateQueryException {}

Get Rate (new)

public Rate getRate(String baseCurrency, String currency) throws RateQueryException {}

Retrieve an Event Token (new)

public InvoiceEventToken getInvoiceEventToken(String invoiceId) throws BitPayException {}

Cancel Invoice by GUID (new)

Default call, will set forceCancel false.

public Invoice cancelInvoiceByGuid(String guid) throws BitPayException {

Cancel Invoice by GUID

Allow for forceCancel to be set explicitly.

public Invoice cancelInvoiceByGuid(String guid, Boolean forceCancel) throws BitPayException {}

Invoices now respect a custom GUID passed to them (bug fix)

  • If the Invoice object sent to createInvoice() has setGuid() set, that GUID will be used for the invoice
  • If the Invoice object sent to createInvoice() does not have setGuid() set, a UUIDv4 will be generated for you