From f5af64ed7bd1602cc0bd4e56054753489ee6e17a Mon Sep 17 00:00:00 2001 From: nicolasrenardcozy <90827214+nicolasrenardcozy@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:56:26 +0100 Subject: [PATCH 1/2] Update io.cozy.identities.md --- docs/io.cozy.identities.md | 76 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/docs/io.cozy.identities.md b/docs/io.cozy.identities.md index d49be16..618ed7e 100644 --- a/docs/io.cozy.identities.md +++ b/docs/io.cozy.identities.md @@ -56,3 +56,79 @@ unique by identifier **and** cozyMetadata.createdByApp } } ``` + +``` +{ + "_id": "62e5d66d6e11d19992b7efce794263f0", + "identifier": "example@email.com", + "contact": { + "addresses": [ + { + "formattedAddress": "2 rue du moulin, 75000 Paris", + "street": "2 rue du moulin", + "postcode": "75000", + "city": "Paris" + } + "emails": [ + { + "address": "example@email.com", + } + ], + "name": { + "familyName": "Dupond", + "givenName": "Jean" + }, + "phones": [ + { + "number": "06 06 06 06 06", + "primary": true, + "type": "mobile" + } + ], + "maritalStatus": "married", + "numberOfDependants": 1 + }, + "tax_informations": [ + { + "year": "2022", + "RFR": "56789.10", + "1AJ": "12345.67", + "1BJ": "23456.78", + "currency": "EUR", + "file": "avis_impot_2022.pdf" + }, + { + "year": "2021", + "RFR": "45678.91", + "1AJ": "34567.89", + "1BJ": "23456.78", + "currency": "EUR", + "file": "avis_impot_2022.pdf" + } +], + "revenues": [ + { + "date": "2022-02-24", #YYYY-MM-DD + "net_monthly_income": "1234.56", #(1AJ+1BJ)/12 + "currency": "EUR" #si on l'a + "file": "fdp_022022.pdf" + } + ], + "cozyMetadata": { + "doctypeVersion": 1, + "createdAt": "2020-11-23T10:36:49.752Z", + "createdByApp": "impots", + "createdByAppVersion": "1.0.0", + "updatedAt": "2021-11-23T10:36:49.752Z", + "updatedByApps": [ + { + "date": "2021-11-23T10:36:49.752Z", + "slug": "impots", + "version": "1.12.4" + } + ] + "sourceAccount": "94263f062e5d66d6e11d19992b7efce7" + "sourceAccountIdentifier": "1234567891011", + } +} +``` From 5095d2944725993bfca57af782000f812174bf04 Mon Sep 17 00:00:00 2001 From: nicolasrenardcozy <90827214+nicolasrenardcozy@users.noreply.github.com> Date: Thu, 17 Feb 2022 11:32:47 +0100 Subject: [PATCH 2/2] Update io.cozy.identities.md update metadata --- docs/io.cozy.identities.md | 55 +++++--------------------------------- 1 file changed, 7 insertions(+), 48 deletions(-) diff --git a/docs/io.cozy.identities.md b/docs/io.cozy.identities.md index 618ed7e..bcb9bd9 100644 --- a/docs/io.cozy.identities.md +++ b/docs/io.cozy.identities.md @@ -16,47 +16,6 @@ Multiple connectors may create an identity for a given identifier. That is why an identity will unique by identifier **and** cozyMetadata.createdByApp -``` -{ - "_id": "62e5d66d6e11d19992b7efce794263f0", - "identifier": "example@email.com", - "contact": { - "address": [ - { - "formattedAddress": "2 rue du moulin, 75000 Paris", - "street": "2 rue du moulin", - "postcode": "75000", - "city": "Paris" - } - "email": [ - { - "address": "example@email.com", - } - ], - "name": { - "familyName": "Dupond", - "givenName": "Jean" - }, - "phone": [ - { - "number": "06 06 06 06 06", - "primary": true, - "type": "mobile" - } - ] - }, - "cozyMetadata": { - "doctypeVersion": 1, - "createdAt": "xxxxx", - "createdByApp": "orange", - "createdByAppVersion": "1.0.0", - "updatedAt": "xxxxx", - "updatedByApps": [ "orange" ], - "sourceAccount": "94263f062e5d66d6e11d19992b7efce7" - } -} -``` - ``` { "_id": "62e5d66d6e11d19992b7efce794263f0", @@ -108,26 +67,26 @@ unique by identifier **and** cozyMetadata.createdByApp ], "revenues": [ { - "date": "2022-02-24", #YYYY-MM-DD - "net_monthly_income": "1234.56", #(1AJ+1BJ)/12 + "date": "2022-02-24", + "net_monthly_income": "1234.56", "currency": "EUR" #si on l'a "file": "fdp_022022.pdf" } ], "cozyMetadata": { "doctypeVersion": 1, - "createdAt": "2020-11-23T10:36:49.752Z", - "createdByApp": "impots", + "createdAt": "xxxxx", + "createdByApp": "orange", "createdByAppVersion": "1.0.0", - "updatedAt": "2021-11-23T10:36:49.752Z", + "updatedAt": "xxxxx", "updatedByApps": [ { "date": "2021-11-23T10:36:49.752Z", - "slug": "impots", + "slug": "connecteur", "version": "1.12.4" } ] - "sourceAccount": "94263f062e5d66d6e11d19992b7efce7" + "sourceAccount": "XXXXXXXXXXXXX" "sourceAccountIdentifier": "1234567891011", } }