taler-go

Utility functions in Go language
Log | Files | Refs | LICENSE

commit ae571e725955255729ab5cbaa5feccf2af21408f
parent bfbfdc8e9a94b38d9998b1aa22376019ff5631a9
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed,  6 Dec 2023 14:04:30 +0100

fix json

Diffstat:
Mpkg/merchant/merchant.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/merchant/merchant.go b/pkg/merchant/merchant.go @@ -14,7 +14,7 @@ import ( type PostOrderRequest struct { // The order must at least contain the minimal // order detail, but can override all. - order MinimalOrderDetail + order MinimalOrderDetail `json:"order"` // If set, the backend will then set the refund deadline to the current // time plus the specified delay. If it's not set, refunds will not be @@ -40,7 +40,7 @@ type PostOrderRequest struct { // be used in case different UUIDs were used for different // products (i.e. in case the user started with multiple // shopping sessions that were combined during checkout). - LockUuids []string `json:"lock_uuids"` + LockUuids []string `json:"lock_uuids,omitempty"` // Should a token for claiming the order be generated? // False can make sense if the ORDER_ID is sufficiently @@ -58,7 +58,7 @@ type MinimalOrderDetail struct { // See documentation of fulfillment_url in ContractTerms. // Either fulfillment_url or fulfillment_message must be specified. - FulfillmentUrl string `json:"fulfillment_url,omitempty"` + FulfillmentUrl string `json:"fulfillment_url"` } // NOTE: Part of the above but optional