taler-docs

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

commit 091179afc13caa62f4e701187a18cd8d62df8e86
parent 88be0259aea4fb2dcfc0073b2f13b2252d73060c
Author: Antoine A <>
Date:   Wed, 14 May 2025 18:09:12 +0200

[dd:libeufin-conversion-rate-group] improve API

Diffstat:
Mdesign-documents/063-libeufin-conversion-rate-group.rst | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/design-documents/063-libeufin-conversion-rate-group.rst b/design-documents/063-libeufin-conversion-rate-group.rst @@ -50,7 +50,7 @@ This would become the ``default`` group, that will be used by all created users. .. ts:def:: ConversionRateGroupRequest interface ConversionRateGroupRequest { - // The name of this group, cannot be ``default`` + // The name of this group name: string; // A description of the group @@ -90,7 +90,7 @@ This would become the ``default`` group, that will be used by all created users. .. ts:def:: ConversionRateGroup interface ConversionRateGroup { - // The name of this group, ``default`` is the default group + // The name of this group name: string; // A description of the group @@ -136,6 +136,13 @@ This would become the ``default`` group, that will be used by all created users. cashout_rounding_mode?: "zero" | "up" | "nearest"; } +.. ts:def:: ConversionRateGroups + + interface ConversionRateGroups { + default: ConversionRate; + groups: ConversionRateGroup[]; + } + When we run the conversion logic we take values from the user group and fallback to the default values when they are null. If the ratio is zero it disable the conversion. Taler Conversion Info API @@ -162,7 +169,7 @@ DELETE /conversion-rate-group/$GROUP-ID add /conversion-rate-group/$GROUP-ID/conversion-info/* -We add admin only ``conversion_rate_group`` `Integer` optional field to POST /accounts and PATCH /accounts/$USERNAME. +We add admin only ``conversion_rate_group_id`` `Integer` optional field to POST /accounts and PATCH /accounts/$USERNAME. -We add ``conversion_rate_group`` `Integer` optional field and query filter to GET /accounts +We add ``conversion_rate_group_id`` `Integer` optional field and query filter to GET /accounts We add ``conversion_rate_group`` `ConversionRateGroup` field of GET /accounts/$USERNAME \ No newline at end of file