commit ceee494c534c0c13fcb85e42076707473dde93d0 parent e4fa2ddb11d418090dd3489bc41307a46acd6a5f Author: Antoine A <> Date: Mon, 5 Feb 2024 14:44:19 +0100 Add wire_type to bank config Diffstat:
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/API_CHANGES.md b/API_CHANGES.md @@ -33,6 +33,7 @@ This files contains all the API changes for the current release: - Add GET /accounts/USERNAME/taler-revenue/config - Add GET /accounts/USERNAME/taler-wire-gateway/config - Change GET /accounts/USERNAME/taler-revenue/history logic and body type +- GET /config: new wire_type field for the bank supported payment target type ## bank cli diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Constants.kt b/bank/src/main/kotlin/tech/libeufin/bank/Constants.kt @@ -40,7 +40,7 @@ const val IBAN_ALLOCATION_RETRY_COUNTER: Int = 5; const val MAX_BODY_LENGTH: Long = 4 * 1024 // 4kB // API version -const val COREBANK_API_VERSION: String = "4:0:0" +const val COREBANK_API_VERSION: String = "4:1:0" const val CONVERSION_API_VERSION: String = "0:0:0" const val INTEGRATION_API_VERSION: String = "2:0:2" const val WIRE_GATEWAY_API_VERSION: String = "0:2:0" diff --git a/bank/src/main/kotlin/tech/libeufin/bank/CoreBankApi.kt b/bank/src/main/kotlin/tech/libeufin/bank/CoreBankApi.kt @@ -59,7 +59,8 @@ fun Routing.coreBankApi(db: Database, ctx: BankConfig) { default_debit_threshold = ctx.defaultDebtLimit, supported_tan_channels = ctx.tanChannels.keys, allow_edit_name = ctx.allowEditName, - allow_edit_cashout_payto_uri = ctx.allowEditCashout + allow_edit_cashout_payto_uri = ctx.allowEditCashout, + wire_type = ctx.wireMethod ) ) } diff --git a/bank/src/main/kotlin/tech/libeufin/bank/TalerMessage.kt b/bank/src/main/kotlin/tech/libeufin/bank/TalerMessage.kt @@ -286,7 +286,8 @@ data class Config( val allow_edit_name: Boolean, val allow_edit_cashout_payto_uri: Boolean, val default_debit_threshold: TalerAmount, - val supported_tan_channels: Set<TanChannel> + val supported_tan_channels: Set<TanChannel>, + val wire_type: WireMethod ) { val name: String = "libeufin-bank" val version: String = COREBANK_API_VERSION