[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libeufin] branch master updated: JSON types for INI/HIA le
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libeufin] branch master updated: JSON types for INI/HIA letters |
Date: |
Mon, 30 Sep 2019 17:02:39 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 9f97cad JSON types for INI/HIA letters
9f97cad is described below
commit 9f97caddceb2ff30222d4dfef79ecb4cc716c369
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Sep 30 17:02:32 2019 +0200
JSON types for INI/HIA letters
---
src/main/kotlin/tech/libeufin/JSON.kt | 47 +++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 5 deletions(-)
diff --git a/src/main/kotlin/tech/libeufin/JSON.kt
b/src/main/kotlin/tech/libeufin/JSON.kt
index 2b36b7d..40c3483 100644
--- a/src/main/kotlin/tech/libeufin/JSON.kt
+++ b/src/main/kotlin/tech/libeufin/JSON.kt
@@ -3,7 +3,7 @@ package tech.libeufin
/**
* Error message.
*/
-data class SandboxError (
+data class SandboxError(
val message: String
)
@@ -11,22 +11,59 @@ data class SandboxError (
/**
* Request for POST /admin/customers
*/
-data class CustomerRequest (
+data class CustomerRequest(
val name: String
)
-data class CustomerResponse (
+data class CustomerResponse(
val id: Int
)
/**
* Response for GET /admin/customers/:id
*/
-data class CustomerInfo (
+data class CustomerInfo(
val name: String,
val customerEbicsInfo: CustomerEbicsInfo
)
-data class CustomerEbicsInfo (
+data class CustomerEbicsInfo(
val userId: Int
+)
+
+/**
+ * Request for INI / HIA letter(s).
+ */
+data class IniHiaLetters(
+
+ val userId: String,
+ val customerId: String,
+ val name: String,
+ val date: String,
+ val time: String,
+ val recipient: String,
+ val exponent: String,
+ val modulus: String,
+ val hash: String,
+ val INI: IniVersion,
+ val HIA: HiaVersion
+)
+
+/**
+ * INI specific version numbers
+ */
+data class IniVersion(
+ // Signature key
+ val es_version: String
+)
+
+/**
+ * INI specific version numbers
+ */
+data class HiaVersion(
+
+ // Identification and authentication key
+ val ia_version: String,
+ // Encryption key
+ val enc_version: String
)
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libeufin] branch master updated: JSON types for INI/HIA letters,
gnunet <=