From d8d75d9b19e6c66f7d75c771e784cd9dee4d2320 Mon Sep 17 00:00:00 2001 From: Asai Toshiya Date: Tue, 16 Jan 2024 23:28:23 +0900 Subject: Fix some minor nitpicks in NIP-15 and NIP-51 --- 15.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '15.md') diff --git a/15.md b/15.md index e2ba639..55814fb 100644 --- a/15.md +++ b/15.md @@ -56,7 +56,7 @@ A merchant can publish these events: "id": , "name": , "cost": , - "regions": [], + "regions": [] } ] } @@ -101,7 +101,7 @@ Fields that are not self-explanatory: "shipping": [ { "id": , - "cost": , + "cost": } ] } @@ -139,7 +139,7 @@ Fields that are not self-explanatory: ## Checkout events -All checkout events are sent as JSON strings using ([NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md)). +All checkout events are sent as JSON strings using ([NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)). The `merchant` and the `customer` can exchange JSON messages that represent different actions. Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types: @@ -150,19 +150,19 @@ The `merchant` and the `customer` can exchange JSON messages that represent diff | 2 | Merchant | Order Status Update | ### Step 1: `customer` order (event) -The below json goes in content of [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md). +The below JSON goes in content of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). ```json { "id": , "type": 0, "name": , - "address": + "address": , "message": ", "contact": { "nostr": <32-bytes hex of a pubkey>, "phone": , - "email": , + "email": }, "items": [ { @@ -182,7 +182,7 @@ _Open_: is `contact.nostr` required? Sent back from the merchant for payment. Any payment option is valid that the merchant can check. -The below json goes in `content` of [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md). +The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). `payment_options`/`type` include: @@ -217,7 +217,7 @@ The below json goes in `content` of [NIP04](https://github.com/nostr-protocol/ni Once payment has been received and processed. -The below json goes in `content` of [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md). +The below JSON goes in `content` of [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md). ```json { @@ -275,7 +275,7 @@ This event leverages naddr to enable comprehensive customization and sharing of "shipping": [ { "id": , - "cost": , + "cost": } ] } @@ -310,7 +310,7 @@ Bids are simply events of kind `1021` with a `content` field specifying the amou { "status": , "message": , - "duration_extended": , + "duration_extended": } ``` -- cgit v1.2.3