commit 31a2428374c048fc200df41e08b4eddf3462a9a4
parent 8ced714561d11ba9de52bad151919e34d9cb31c7
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Thu, 23 Oct 2025 11:03:05 +0200
make instance default delay settings optional in POST/PATCH for cleaner API (related to #9148)
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
@@ -1475,11 +1475,15 @@ Setting up instances
// we tell the exchange to wait to aggregate transactions before
// executing the wire transfer? This delay is added to the current
// time when we generate the advisory execution time for the exchange.
- default_wire_transfer_delay: RelativeTime;
+ // Optional @since **v22** (before the setting was mandatory).
+ // If not provided, the global merchant default will be used.
+ default_wire_transfer_delay?: RelativeTime;
// If the frontend does NOT specify a payment deadline, how long should
// offers we make be valid by default?
- default_pay_delay: RelativeTime;
+ // Optional @since **v22** (before the setting was mandatory).
+ // If not provided, the global merchant default will be used.
+ default_pay_delay?: RelativeTime;
// If the frontend does NOT specify a refund deadline, how long should
// refunds be allowed by default?
@@ -1777,11 +1781,15 @@ Setting up instances
// we tell the exchange to wait to aggregate transactions before
// executing the wire transfer? This delay is added to the current
// time when we generate the advisory execution time for the exchange.
- default_wire_transfer_delay: RelativeTime;
+ // Optional @since **v22** (before the setting was mandatory).
+ // If not provided, the previous setting will now simply be preserved.
+ default_wire_transfer_delay?: RelativeTime;
// If the frontend does NOT specify a payment deadline, how long should
// offers we make be valid by default?
- default_pay_delay: RelativeTime;
+ // Optional @since **v22** (before the setting was mandatory).
+ // If not provided, the previous setting will now simply be preserved.
+ default_pay_delay?: RelativeTime;
// If the frontend does NOT specify a refund deadline, how long should
// refunds be allowed by default?