diff options
| author | Ioan Bizău <i@ibz.me> | 2023-10-31 15:48:04 +0200 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-10-31 15:54:25 -0300 |
| commit | a328831a07defcd11924c2330b5aaf4f65ec40aa (patch) | |
| tree | a1925a83071677588c59fa945194d4a5a1f2050e | |
| parent | 4b9f13d983245e4dd166f102308afc28b8bb1603 (diff) | |
Unlimited quantity possible in NIP-15.
| -rw-r--r-- | 15.md | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -88,7 +88,7 @@ Fields that are not self-explanatory: | |||
| 88 | "images": <[String], array of image URLs, optional>, | 88 | "images": <[String], array of image URLs, optional>, |
| 89 | "currency": <String, currency used>, | 89 | "currency": <String, currency used>, |
| 90 | "price": <float, cost of product>, | 90 | "price": <float, cost of product>, |
| 91 | "quantity": <int, available items>, | 91 | "quantity": <int or null, available items>, |
| 92 | "specs": [ | 92 | "specs": [ |
| 93 | [<String, spec key>, <String, spec value>] | 93 | [<String, spec key>, <String, spec value>] |
| 94 | ], | 94 | ], |
| @@ -102,6 +102,7 @@ Fields that are not self-explanatory: | |||
| 102 | ``` | 102 | ``` |
| 103 | 103 | ||
| 104 | Fields that are not self-explanatory: | 104 | Fields that are not self-explanatory: |
| 105 | - `quantity` can be null in the case of items with unlimited abailability, like digital items, or services | ||
| 105 | - `specs`: | 106 | - `specs`: |
| 106 | - an optional array of key pair values. It allows for the Customer UI to present product specifications in a structure mode. It also allows comparison between products | 107 | - an optional array of key pair values. It allows for the Customer UI to present product specifications in a structure mode. It also allows comparison between products |
| 107 | - eg: `[["operating_system", "Android 12.0"], ["screen_size", "6.4 inches"], ["connector_type", "USB Type C"]]` | 108 | - eg: `[["operating_system", "Android 12.0"], ["screen_size", "6.4 inches"], ["connector_type", "USB Type C"]]` |