taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6013852a99ceec3a98dfdaf69461ff78f36b9d00
parent af64bee36a35e6460ab3c390752e786311eee0d4
Author: Florian Dold <dold@taler.net>
Date:   Wed, 19 Aug 2026 18:16:34 +0200

taler-util: allow partial merchant product updates

Diffstat:
Mpackages/taler-util/src/types-taler-merchant.ts | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/packages/taler-util/src/types-taler-merchant.ts b/packages/taler-util/src/types-taler-merchant.ts @@ -1246,8 +1246,7 @@ export interface MerchantVersionResponse { // used with. currencies: { [currency: string]: CurrencySpecification }; - // Maps available report generator configuration section names - // to descriptions of the respective report generator. + // Available report generator configuration section names. // Since **v25**. report_generators: string[]; @@ -2605,7 +2604,7 @@ export interface ProductPatchDetailRequest { product_name?: string; // Human-readable product description. - description: string; + description?: string; // Map from IETF BCP 47 language tags to localized descriptions. description_i18n?: { [lang_tag: string]: string }; @@ -2616,14 +2615,14 @@ export interface ProductPatchDetailRequest { categories?: Integer[]; // Unit in which the product is measured (liters, kilograms, packages, etc.). - unit: string; + unit?: string; // The price for one unit of the product. Zero is used // to imply that this product is not sold separately, or // that the price is not fixed, and must be supplied by the // front-end. If non-zero, this price MUST include applicable // taxes. - price: AmountString; + price?: AmountString; // An optional base64-encoded product image. image?: ImageDataUrl; @@ -2635,10 +2634,10 @@ export interface ProductPatchDetailRequest { // including all existing sales ever. Given in product-specific // units. // A value of -1 indicates "infinite" (i.e. for "electronic" books). - total_stock: Integer; + total_stock?: Integer; // Number of units of the product that have already been sold. - total_sold: Integer; + total_sold?: Integer; // Number of units of the product that were lost (spoiled, stolen, etc.). total_lost?: Integer;