commit af6a47d160e1a7cda6b8a7b9429275dea475fd3f
parent f8d3bdae15b61e846c20a0f1d9348fee452088c0
Author: Antoine A <>
Date: Fri, 21 Jun 2024 17:32:56 +0200
corebank & integration: add support for min and max wire transfer amount
Diffstat:
3 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/core/api-bank-integration.rst b/core/api-bank-integration.rst
@@ -124,6 +124,11 @@ for the withdrawal operation (the ``WITHDRAWAL_ID``) to interact with the withdr
// Optional since **vC2EC**.
suggested_amount?: Amount;
+ // Minimum amount that the wallet can choose to withdraw.
+ // Only applicable when the amount is not fixed.
+ // @since **vC2EC**.
+ min_amount?: Amount;
+
// Maximum amount that the wallet can choose to withdraw.
// Only applicable when the amount is not fixed.
// @since **vC2EC**.
@@ -131,7 +136,8 @@ for the withdrawal operation (the ``WITHDRAWAL_ID``) to interact with the withdr
// The non-Taler card fees the customer will have
// to pay to the bank / payment service provider
- // they are using to make the withdrawal.
+ // they are using to make the withdrawal in addition
+ // to the amount.
// @since **vC2EC**
card_fees?: Amount;
diff --git a/core/api-corebank.rst b/core/api-corebank.rst
@@ -235,9 +235,17 @@ Config
// @since v4, will become mandatory in the next version.
wire_type?: string;
- // Wire transfer execution fees.
+ // Wire transfer execution fees. Only applies to bank transactions and withdrawals.
// @since v4, will become mandatory in the next version.
wire_transfer_fees?: Amount;
+
+ // Minimum wire transfer amount allowed. Only applies to bank transactions and withdrawals.
+ // @since v4, will become mandatory in the next version.
+ min_wire_transfer_amount?: Amount;
+
+ // Maximum wire transfer amount allowed. Only applies to bank transactions and withdrawals.
+ // @since v4, will become mandatory in the next version.
+ max_wire_transfer_amount?: Amount;
}
diff --git a/manpages/libeufin-bank.conf.5.rst b/manpages/libeufin-bank.conf.5.rst
@@ -51,7 +51,13 @@ BASE_URL
The advertised base URL
WIRE_TRANSFER_FEES
- Wire transfer execution fees. Defaults to ``CURRENCY:0`` if not specified.
+ Wire transfer execution fees. Only applies to bank transactions and withdrawals. Defaults to ``CURRENCY:0`` if not specified.
+
+MIN_WIRE_TRANSFER_AMOUNT
+ Minimum wire transfer amount allowed. Only applies to bank transactions and withdrawals. Defaults to ``CURRENCY:0`` if not specified.
+
+MAX_WIRE_TRANSFER_AMOUNT
+ Maximum wire transfer amount allowed. Only applies to bank transactions and withdrawals. Defaults to ``CURRENCY:0`` if not specified.
DEFAULT_DEBT_LIMIT
Default debt limit for newly created accounts. Defaults to ``CURRENCY:0`` if not specified.