commit d33158ea13e9e5c1664964f1080fd4293bcbde20
parent 906f92bbbc2f6d3e8f8d54d5a4a80a7ec4c91919
Author: Florian Dold <florian@dold.me>
Date: Thu, 13 Nov 2025 13:32:59 +0100
fix API type
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/types-taler-merchant.ts b/packages/taler-util/src/types-taler-merchant.ts
@@ -2645,7 +2645,7 @@ export interface PostOrderResponse {
// Deadline when the offer expires; the customer must pay before.
// @since protocol **v21**.
- pay_deadline: Timestamp;
+ pay_deadline?: Timestamp;
// Token that authorizes the wallet to claim the order.
// Provided only if "create_token" was set to 'true'
@@ -4180,7 +4180,7 @@ export const codecForTax = (): Codec<Tax> =>
export const codecForPostOrderResponse = (): Codec<PostOrderResponse> =>
buildCodecForObject<PostOrderResponse>()
.property("order_id", codecForString())
- .property("pay_deadline", codecForTimestamp)
+ .property("pay_deadline", codecOptional(codecForTimestamp))
.property("token", codecOptional(codecForString()))
.build("TalerMerchantApi.PostOrderResponse");