summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-12-06 14:04:30 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2023-12-06 14:04:30 +0100
commitae571e725955255729ab5cbaa5feccf2af21408f (patch)
tree449244052937f9c1fa361ca04da8b9e38dd48a31
parentbfbfdc8e9a94b38d9998b1aa22376019ff5631a9 (diff)
downloadtaler-go-ae571e725955255729ab5cbaa5feccf2af21408f.tar.gz
taler-go-ae571e725955255729ab5cbaa5feccf2af21408f.tar.bz2
taler-go-ae571e725955255729ab5cbaa5feccf2af21408f.zip
fix json
-rw-r--r--pkg/merchant/merchant.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/merchant/merchant.go b/pkg/merchant/merchant.go
index 7f472c3..e3f8494 100644
--- 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