Skip to content

Releases: blnkfinance/blnk-java

1.5.0 — Core 0.15.4

Choose a tag to compare

@ubcodes ubcodes released this 24 Sep 06:25
d877de4

Aligns the Java SDK error catalogue with Blnk Core 0.15.4.

Maven: com.blnkfinance:blnk-java:1.5.0 — publish to Central Portal is separate; this tag is the source of the release.

Added

  • BlnkErrorCodes now mirrors Core's full error_detail.code catalogue, grouped by prefix (GEN_, AUTH_, APIKEY_, TXN_, BAL_, LGR_, ACC_, IDT_, RECON_, META_, HOOK_, QUEUE_, SRCH_, ADMIN_).
  • Codes to branch on from Core 0.15.4: TXN_ALREADY_REFUNDED (409), BAL_NOT_FOUND (404), TXN_VALIDATION_ERROR for split requests that carry both sources and destinations, and GEN_CONFLICT on multi-leg refund failure.
  • search().multiSearch(MultiSearchParams) for Core POST /multi-search.
  • ledgers().list() and ledgerBalances().list() with optional ListOptions (limit/offset).
  • transactions().list() with the same optional ListOptions (Core default page is limit=20).
  • balanceMonitor().listByBalanceId(balanceId) for Core GET /balance-monitors/balances/:balance_id.

Unchanged

  • Existing constants (TXN_INVALID_AMOUNT, GEN_CONFLICT, TXN_VALIDATION_ERROR) keep their values; no caller changes are needed.

1.4.0 — Core 0.15.3

Choose a tag to compare

@ubcodes ubcodes released this 04 Sep 08:37
dd5e5da

Aligns the Java SDK with Blnk Core 0.15.3.

Maven: com.blnkfinance:blnk-java:1.4.0 — publish to Central Portal is separate; this tag is the source of the release.

Added

  • Optional dryRun(boolean) (dry_run) on create, bulk create, refund, inflight update, bulk commit, and bulk void. Previews always return HTTP 200; a projected rejection is would_apply: false, not an HTTP error.
  • Typed dry-run responses: DryRunTransactionResponse, DryRunRejection, DryRunBalanceProjection, DryRunLegProjection, and DryRunBulkTransactionResponse.
  • notes() on both dry-run wrappers for Core advisories (currency mismatch, independent bulk/leg projection). A preview can carry notes while would_apply is still true.
  • Optional indicator(String) on CreateLedgerBalance for internal balances with ledgerId("general_ledger_id").
  • Optional description and metaData on RefundTransactionRequest.
  • BlnkErrorCodes.TXN_INVALID_AMOUNT and BlnkErrorCodes.GEN_CONFLICT.

Confirmed

  • hooks().list() with no type filter lists every hook (PRE and POST).
  • Continue using com.blnkfinance:blnk-java. The older blnk-sdk:1.3.0 remains resolvable; migrate by changing only the artifactId.