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>, "name": <String, name of merchant>,
"description": <String, description of merchant>, "description": <String, description of merchant>,
"timestamp": <String, unix timestamp>, "timestamp": <String, unix timestamp>,
"currency": <Str, currency used>,
"action": <String, optional action>, "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": [ "stalls": [
{ {
"id": <UUID derived from merchant public-key>, "id": <UUID derived from merchant public-key>,
"name": <String, stall name>, "name": <String, stall name>,
"description": <String, stall description>, "description": <String, stall description>,
"categories": <String, CSV of voluntary categories>, "categories": <String, CSV of voluntary categories>,
"currency": <Str, currency used>, "shipping": <String, CSV of shipping ids>,
"action": <String, optional action>, "action": <String, optional action>,
"products": [ "products": [
{ {
@ -86,7 +104,7 @@ ALL fields are optional apart from the `timestamp`. Data from newer events shoul
"name": <String, stall name>, "name": <String, stall name>,
"description": <String, stall description>, "description": <String, stall description>,
"categories": <String, CSV of voluntary categories>, "categories": <String, CSV of voluntary categories>,
"currency": <Str, currency used>, "shipping": <String, CSV of shipping ids>,
"action": <String, optional action>, "action": <String, optional action>,
"products": [ "products": [
{ {