summaryrefslogtreecommitdiff
path: root/core/api-common.rst
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-03-10 15:18:23 -0300
committerTorsten Grote <t@grobox.de>2020-03-10 15:18:23 -0300
commit6f81ed1c54dc39de23bc63e9637633ceb8608943 (patch)
tree72eca34cd9afdaf6a688921276dd46d000a3a0d8 /core/api-common.rst
parente66cef79127bb9816cbfb1fddf665db43977d513 (diff)
downloaddocs-6f81ed1c54dc39de23bc63e9637633ceb8608943.tar.gz
docs-6f81ed1c54dc39de23bc63e9637633ceb8608943.tar.bz2
docs-6f81ed1c54dc39de23bc63e9637633ceb8608943.zip
Add product images to ContractTerms and PoS config
Diffstat (limited to 'core/api-common.rst')
-rw-r--r--core/api-common.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/api-common.rst b/core/api-common.rst
index a7ebe3a..8a885f0 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -342,6 +342,20 @@ When no sign is present, the amount is assumed to be positive.
type SignedAmount = string;
+Images
+^^^^^^
+
+.. ts:def:: ImageDataUrl
+
+ // The string must be a data URL according to RFC 2397
+ // with explicit mediatype and base64 parameters.
+ //
+ // ``data:<mediatype>;base64,<data>``
+ //
+ // Supported mediatypes are ``image/jpeg`` and ``image/png``.
+ // Invalid strings will be rejected by the wallet.
+ type ImageDataUrl = string;
+
--------------
Binary Formats