Merge pull request #1379 from lnbits/shippingzone

Added shipping zone
This commit is contained in:
Arc 2023-01-18 17:25:30 +00:00 committed by GitHub
commit 068fc67ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,14 +51,32 @@ ALL fields are optional apart from the `timestamp`. Data from newer events shoul
"name": <String, name of merchant>,
"description": <String, description of merchant>,
"timestamp": <String, unix timestamp>,
"currency": <Str, currency used>,
"action": <String, optional action>,
"shipping": [
{
"id": <String, UUID derived from stall ID>,
"zones": <String, CSV of countries/zones>,
"price": <int, cost>,
},
{
"id": <String, UUID derived from stall ID>,
"zones": <String, CSV of countries/zones>,
"price": <int, cost>,
},
{
"id": <String, UUID derived from stall ID>,
"zones": <String, CSV of countries/zones>,
"price": <int, cost>,
}
],
"stalls": [
{
"id": <UUID derived from merchant public-key>,
"name": <String, stall name>,
"description": <String, stall description>,
"categories": <String, CSV of voluntary categories>,
"currency": <Str, currency used>,
"shipping": <String, CSV of shipping ids>,
"action": <String, optional action>,
"products": [
{
@ -86,7 +104,7 @@ ALL fields are optional apart from the `timestamp`. Data from newer events shoul
"name": <String, stall name>,
"description": <String, stall description>,
"categories": <String, CSV of voluntary categories>,
"currency": <Str, currency used>,
"shipping": <String, CSV of shipping ids>,
"action": <String, optional action>,
"products": [
{