From 9e2287415f58b807202ad0b55f82ce7063774a1d Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Wed, 8 Mar 2023 18:26:24 -0600 Subject: [PATCH] offers: enable label for invoicerequest --- doc/schemas/invoicerequest.request.json | 4 ++++ plugins/offers_offer.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/schemas/invoicerequest.request.json b/doc/schemas/invoicerequest.request.json index 5ba071da9..e94b190ba 100644 --- a/doc/schemas/invoicerequest.request.json +++ b/doc/schemas/invoicerequest.request.json @@ -20,6 +20,10 @@ "type": "string", "description": "" }, + "label": { + "type": "string", + "description": "" + }, "absolute_expiry": { "type": "u64", "description": "" diff --git a/plugins/offers_offer.c b/plugins/offers_offer.c index d4ec501df..e3559b73f 100644 --- a/plugins/offers_offer.c +++ b/plugins/offers_offer.c @@ -467,7 +467,7 @@ struct command_result *json_invoicerequest(struct command *cmd, json_add_bool(req->js, "exposeid", true); json_add_bool(req->js, "single_use", *single_use); if (label) - json_add_string(req->js, "label", label); + json_add_string(req->js, "recurrence_label", label); return send_outreq(cmd->plugin, req); }