taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 09749213f3e91d327f61850d4c07bc8e22aac724
parent c15191a43a2195a2bb5af1f1be88783ba6029e79
Author: Antoine A <>
Date:   Mon, 16 Jun 2025 18:52:44 +0200

corebank: update conversion rate class API

Diffstat:
Mcore/api-corebank.rst | 34++++++++++++++++++++++++++++++----
1 file changed, 30 insertions(+), 4 deletions(-)

diff --git a/core/api-corebank.rst b/core/api-corebank.rst @@ -758,7 +758,36 @@ Account Management // Conversion rate class to which the user belongs // @since **v9** - conversion_rate_class?: ConversionRateClass; + conversion_rate_class?: AccountConversionRateClass; + } + + interface AccountConversionRateClass { + // Class unique ID + conversion_rate_class_id: Integer; + + // Minimum fiat amount authorised for cashin before conversion + cashin_min_amount?: Amount; + + // Exchange rate to buy regional currency from fiat + cashin_ratio?: DecimalNumber; + + // Regional amount fee to subtract after applying the cashin ratio. + cashin_fee?: Amount; + + // Rounding mode used during cashin conversion + cashin_rounding_mode?: "zero" | "up" | "nearest"; + + // Minimum regional amount authorised for cashout before conversion + cashout_min_amount?: Amount; + + // Exchange rate to sell regional currency for fiat + cashout_ratio?: DecimalNumber; + + // Fiat amount fee to subtract after applying the cashout ratio. + cashout_fee?: Amount; + + // Rounding mode used during cashout conversion + cashout_rounding_mode?: "zero" | "up" | "nearest"; } Transactions @@ -1455,9 +1484,6 @@ Conversion rate class // Number of users affected to this class num_users: Integer; - // Applied conversion rate - conversion_rate: ConversionRate; - // Minimum fiat amount authorised for cashin before conversion cashin_min_amount?: Amount;