2021-06-16 03:10:17 +02:00
|
|
|
{
|
2021-11-04 15:15:51 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"offer_id",
|
|
|
|
"active",
|
|
|
|
"single_use",
|
|
|
|
"bolt12",
|
|
|
|
"used",
|
|
|
|
"created"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"offer_id": {
|
2023-01-30 07:24:17 +01:00
|
|
|
"type": "hash",
|
|
|
|
"description": "the id of this offer (merkle hash of non-signature fields)"
|
2021-11-04 15:15:51 +01:00
|
|
|
},
|
|
|
|
"active": {
|
|
|
|
"type": "boolean",
|
|
|
|
"enum": [
|
|
|
|
true
|
|
|
|
],
|
|
|
|
"description": "whether this can still be used"
|
|
|
|
},
|
|
|
|
"single_use": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "whether this expires as soon as it's paid (reflects the *single_use* parameter)"
|
|
|
|
},
|
|
|
|
"bolt12": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "the bolt12 encoding of the offer"
|
|
|
|
},
|
|
|
|
"used": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "True if an associated invoice has been paid"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "false if the offer already existed"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "the (optional) user-specified label"
|
2021-06-16 03:10:17 +02:00
|
|
|
}
|
2021-11-04 15:15:51 +01:00
|
|
|
}
|
2021-06-16 03:10:17 +02:00
|
|
|
}
|