commit 28e9043c9004680270467f3d35168cd146936584
parent 41eb1e4ef4823d38e825697d61ea7635d74582c9
Author: Iván Ávalos <avalos@disroot.org>
Date: Tue, 22 Jul 2025 18:07:00 +0200
taler-util: make product_name optional for backward compatibility
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/taler-util/src/types-taler-merchant.ts b/packages/taler-util/src/types-taler-merchant.ts
@@ -2134,7 +2134,7 @@ export interface ProductAddDetail {
// Since API version **v20**. Optional only for
// backwards-compatibility, should be considered mandatory
// moving forward!
- product_name: string;
+ product_name?: string;
// Human-readable product description.
description: string;
@@ -2184,7 +2184,7 @@ export interface ProductPatchDetail {
// Since API version **v20**. Optional only for
// backwards-compatibility, should be considered mandatory
// moving forward!
- product_name: string;
+ product_name?: string;
// Human-readable product description.
description: string;
@@ -2261,7 +2261,7 @@ export interface MerchantPosProductDetail {
// Human-readable product name.
// Since API version **v20**.
- product_name: string;
+ product_name?: string;
// A list of category IDs this product belongs to.
// Typically, a product only belongs to one category, but more than one is supported.
@@ -2313,7 +2313,7 @@ export interface MerchantCategory {
export interface ProductDetail {
// Human-readable product name.
// Since API version **v20**.
- product_name: string;
+ product_name?: string;
// Human-readable product description.
description: string;
@@ -3349,7 +3349,7 @@ export interface Product {
// Since API version **v20**. Optional only for
// backwards-compatibility, should be considered mandatory
// moving forward!
- product_name: string;
+ product_name?: string;
// Human-readable product description.
description: string;
@@ -3846,7 +3846,7 @@ export const codecForMerchantPosProductDetail =
buildCodecForObject<MerchantPosProductDetail>()
.property("product_serial", codecForNumber())
.property("product_id", codecOptional(codecForString()))
- .property("product_name", codecForString())
+ .property("product_name", codecOptional(codecForString()))
.property("categories", codecForList(codecForNumber()))
.property("description", codecForString())
.property("description_i18n", codecForInternationalizedString())