Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Nov 18, 2021
1 parent c8e9941 commit 3b72b6b
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 166 deletions.
221 changes: 110 additions & 111 deletions tests/fixtures/kamereon/vehicles/duster.1.json
Original file line number Diff line number Diff line change
@@ -1,117 +1,116 @@
{
"accountId": "account-id-7",
"country": "RU",
"vehicleLinks": [
{
"accountId": "account-id-7",
"country": "RU",
"vehicleLinks": [
{
"brand": "RENAULT",
"vin": "VF1AAAA1234567876",
"status": "ACTIVE",
"linkType": "USER",
"garageBrand": "renault",
"mileage": 500,
"mileageUnit": "km",
"mileageDate": "2021-10-29",
"startDate": "2021-03-01",
"createdDate": "2021-04-01T11:00:00.648452Z",
"lastModifiedDate": "2021-10-29T08:26:03.648452Z",
"cancellationReason": {},
"preferredDealer": {
"dealerId": "51214321_001",
"brand": "RENAULT",
"createdDate": "2018-01-01T19:27:14.798452",
"lastModifiedDate": "8-01-1:27:14.798452"
},
"connectedDriver": {
"role": "MAIN_DRIVER",
"createdDate": "2021-03-03T00:01:02.648452Z",
"lastModifiedDate": "2021-03-03T00:01:02.648452Z"
},
"vehicleDetails": {
"vin": "VF1AAAA1234567876",
"status": "ACTIVE",
"linkType": "USER",
"garageBrand": "renault",
"mileage": 500,
"mileageUnit": "km",
"mileageDate": "2021-10-29",
"startDate": "2021-03-01",
"createdDate": "2021-04-01T11:00:00.648452Z",
"lastModifiedDate": "2021-10-29T08:26:03.648452Z",
"cancellationReason": {},
"preferredDealer": {
"dealerId": "51214321_001",
"brand": "RENAULT",
"createdDate": "2018-01-01T19:27:14.798452",
"lastModifiedDate": "8-01-1:27:14.798452"
"engineType": "H5H",
"engineRatio": "460",
"modelSCR": "JD1",
"deliveryCountry": {
"code": "RU",
"label": "RUSSIA"
},
"connectedDriver": {
"role": "MAIN_DRIVER",
"createdDate": "2021-03-03T00:01:02.648452Z",
"lastModifiedDate": "2021-03-03T00:01:02.648452Z"
"family": {
"code": "XJD",
"label": "XJD FAMILY",
"group": "007"
},
"vehicleDetails": {
"vin": "VF1AAAA1234567876",
"engineType": "H5H",
"engineRatio": "460",
"modelSCR": "JD1",
"deliveryCountry": {
"code": "RU",
"label": "RUSSIA"
},
"family": {
"code": "XJD",
"label": "XJD FAMILY",
"group": "007"
},
"tcu": {
"code": "AIVCT",
"label": "WITH AIVC CONNECTION UNIT",
"group": "E70"
},
"navigationAssistanceLevel": {
"code": "",
"label": "",
"group": ""
},
"battery": {
"code": "SANBAT",
"label": "",
"group": "968"
},
"radioType": {
"code": "RA41A",
"label": "ENDAFFM (SCREEN ATTACH), AUDIO 7 (2 BO + 2 BI + 2 TWEETER, DOUBLE-MICRO",
"group": "425"
},
"registrationCountry": {
"code": "RU"
},
"brand": {
"label": "RENAULT"
},
"model": {
"code": "XJD1SU",
"label": "NEW DUSTER",
"group": "971"
},
"gearbox": {
"code": "BVM6",
"label": "6-SPEED MANUAL GEARBOX",
"group": "427"
},
"version": {
"code": "B2 4 M3M 5C"
},
"energy": {
"code": "ESS",
"label": "PETROL",
"group": "019"
},
"registrationNumber": "REG-NUMBER",
"vcd": "STANDA/XJD/HJD/EA2/M3/ESS/DG/GDFROI/TR4X4/AFURGE/RV/ABS/BARLO2/CA02/PBCH/LAC/VT/CPE/RET03/1RVLG/PROJAB/RALU16/CEAVFX/ADAC/AIRBA2/SERIE/DRA/DRAP07/HARM02/ATAR02/SGAV05/SGAR02/TECNW/BANAL/KM/PTCAV2/TPRM3/AVREPL/SSDECA/ABLAV/ESPDES/ALEVA/SOPC2C/SPRGAZ/STHPLG/KITGRV/VLCUIR/TRGAS/REPNTC/LVCIPE/LVAREL/SASURV/RSEC01/SGACHA/RUS01/APL03/AIRAR/VOLRHP/FSTPO/ALOUCC/CMAR3P/RA41A/BVM6/RDIF03/ISOFIX/ENPB01/HRGM01/SANFLT/CSRBA2/SANACF/SCHSTA/TLRP21/PRODIS/SAN613/SSFAP/AIRBDE/CHC03/E05C/ADFR/SSPTLP/SANCML/SSFLEX/SEXTIN/PE2017/PHAS1/SAN913/THABT1/SSTYAD/SSHYB/SSCABA/SANBAT/VEC654/XJD1SU/SSNBT/H5H/SDLIGM/SOUVCF/RMEGS/KITPOU/KITPGR/DPSEC/SSPREM/FDIU1/SSMAP/RCALL/PROCBO/SDANGM/ECOMOD/AIVCT/AVGSI/ITPK1/PERN02/VOLCHA/R134A/SFSSAC/SSVOLP/TCHA0/SPMIR/RRCAM/TCHC0/HTNZA",
"assets": [
{
"assetType": "PICTURE",
"renditions": [
{
"resolutionType": "ONE_MYRENAULT_LARGE",
"url": "https://3dv.renault.com/ImageFromBookmark?configuration=HJD%2FEA2%2FDG%2FTR4X4%2FRV%2FABS%2FBARLO2%2FCA02%2FPBCH%2FRET03%2FPROJAB%2FRALU16%2FDRA%2FDRAP07%2FHARM02%2FATAR02%2FSGAV05%2FTECNW%2FKM%2FABLAV%2FESPDES%2FALEVA%2FSOPC2C%2FVLCUIR%2FLVCIPE%2FLVAREL%2FSGACHA%2FAPL03%2FVOLRHP%2FCMAR3P%2FRA41A%2FBVM6%2FRDIF03%2FENPB01%2FCSRBA2%2FSANACF%2FSAN913%2FH5H%2FRCALL%2FSDANGM%2FECOMOD%2FITPK1%2FPERN02%2FVOLCHA%2FRRCAM&databaseId=42b2c477-c47a-40c9-8ed2-a6966c244777&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_LARGE"
},
{
"resolutionType": "ONE_MYRENAULT_SMALL",
"url": "https://3dv.renault.com/ImageFromBookmark?configuration=HJD%2FEA2%2FDG%2FTR4X4%2FRV%2FABS%2FBARLO2%2FCA02%2FPBCH%2FRET03%2FPROJAB%2FRALU16%2FDRA%2FDRAP07%2FHARM02%2FATAR02%2FSGAV05%2FTECNW%2FKM%2FABLAV%2FESPDES%2FALEVA%2FSOPC2C%2FVLCUIR%2FLVCIPE%2FLVAREL%2FSGACHA%2FAPL03%2FVOLRHP%2FCMAR3P%2FRA41A%2FBVM6%2FRDIF03%2FENPB01%2FCSRBA2%2FSANACF%2FSAN913%2FH5H%2FRCALL%2FSDANGM%2FECOMOD%2FITPK1%2FPERN02%2FVOLCHA%2FRRCAM&databaseId=42b2c477-c47a-40c9-8ed2-a6966c244777&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_SMALL_V2"
}
]
}
],
"yearsOfMaintenance": 12,
"connectivityTechnology": "NONE",
"easyConnectStore": false,
"electrical": false,
"rlinkStore": false,
"deliveryDate": "2021-03-01",
"retrievedFromDhs": false,
"engineEnergyType": "OTHER",
"radioCode": "1234"
}
"tcu": {
"code": "AIVCT",
"label": "WITH AIVC CONNECTION UNIT",
"group": "E70"
},
"navigationAssistanceLevel": {
"code": "",
"label": "",
"group": ""
},
"battery": {
"code": "SANBAT",
"label": "",
"group": "968"
},
"radioType": {
"code": "RA41A",
"label": "ENDAFFM (SCREEN ATTACH), AUDIO 7 (2 BO + 2 BI + 2 TWEETER, DOUBLE-MICRO",
"group": "425"
},
"registrationCountry": {
"code": "RU"
},
"brand": {
"label": "RENAULT"
},
"model": {
"code": "XJD1SU",
"label": "NEW DUSTER",
"group": "971"
},
"gearbox": {
"code": "BVM6",
"label": "6-SPEED MANUAL GEARBOX",
"group": "427"
},
"version": {
"code": "B2 4 M3M 5C"
},
"energy": {
"code": "ESS",
"label": "PETROL",
"group": "019"
},
"registrationNumber": "REG-NUMBER",
"vcd": "STANDA/XJD/HJD/EA2/M3/ESS/DG/GDFROI/TR4X4/AFURGE/RV/ABS/BARLO2/CA02/PBCH/LAC/VT/CPE/RET03/1RVLG/PROJAB/RALU16/CEAVFX/ADAC/AIRBA2/SERIE/DRA/DRAP07/HARM02/ATAR02/SGAV05/SGAR02/TECNW/BANAL/KM/PTCAV2/TPRM3/AVREPL/SSDECA/ABLAV/ESPDES/ALEVA/SOPC2C/SPRGAZ/STHPLG/KITGRV/VLCUIR/TRGAS/REPNTC/LVCIPE/LVAREL/SASURV/RSEC01/SGACHA/RUS01/APL03/AIRAR/VOLRHP/FSTPO/ALOUCC/CMAR3P/RA41A/BVM6/RDIF03/ISOFIX/ENPB01/HRGM01/SANFLT/CSRBA2/SANACF/SCHSTA/TLRP21/PRODIS/SAN613/SSFAP/AIRBDE/CHC03/E05C/ADFR/SSPTLP/SANCML/SSFLEX/SEXTIN/PE2017/PHAS1/SAN913/THABT1/SSTYAD/SSHYB/SSCABA/SANBAT/VEC654/XJD1SU/SSNBT/H5H/SDLIGM/SOUVCF/RMEGS/KITPOU/KITPGR/DPSEC/SSPREM/FDIU1/SSMAP/RCALL/PROCBO/SDANGM/ECOMOD/AIVCT/AVGSI/ITPK1/PERN02/VOLCHA/R134A/SFSSAC/SSVOLP/TCHA0/SPMIR/RRCAM/TCHC0/HTNZA",
"assets": [
{
"assetType": "PICTURE",
"renditions": [
{
"resolutionType": "ONE_MYRENAULT_LARGE",
"url": "https://3dv.renault.com/ImageFromBookmark?configuration=HJD%2FEA2%2FDG%2FTR4X4%2FRV%2FABS%2FBARLO2%2FCA02%2FPBCH%2FRET03%2FPROJAB%2FRALU16%2FDRA%2FDRAP07%2FHARM02%2FATAR02%2FSGAV05%2FTECNW%2FKM%2FABLAV%2FESPDES%2FALEVA%2FSOPC2C%2FVLCUIR%2FLVCIPE%2FLVAREL%2FSGACHA%2FAPL03%2FVOLRHP%2FCMAR3P%2FRA41A%2FBVM6%2FRDIF03%2FENPB01%2FCSRBA2%2FSANACF%2FSAN913%2FH5H%2FRCALL%2FSDANGM%2FECOMOD%2FITPK1%2FPERN02%2FVOLCHA%2FRRCAM&databaseId=42b2c477-c47a-40c9-8ed2-a6966c244777&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_LARGE"
},
{
"resolutionType": "ONE_MYRENAULT_SMALL",
"url": "https://3dv.renault.com/ImageFromBookmark?configuration=HJD%2FEA2%2FDG%2FTR4X4%2FRV%2FABS%2FBARLO2%2FCA02%2FPBCH%2FRET03%2FPROJAB%2FRALU16%2FDRA%2FDRAP07%2FHARM02%2FATAR02%2FSGAV05%2FTECNW%2FKM%2FABLAV%2FESPDES%2FALEVA%2FSOPC2C%2FVLCUIR%2FLVCIPE%2FLVAREL%2FSGACHA%2FAPL03%2FVOLRHP%2FCMAR3P%2FRA41A%2FBVM6%2FRDIF03%2FENPB01%2FCSRBA2%2FSANACF%2FSAN913%2FH5H%2FRCALL%2FSDANGM%2FECOMOD%2FITPK1%2FPERN02%2FVOLCHA%2FRRCAM&databaseId=42b2c477-c47a-40c9-8ed2-a6966c244777&bookmarkSet=RSITE&bookmark=EXT_34_DESSUS&profile=HELIOS_OWNERSERVICES_SMALL_V2"
}
]
}
],
"yearsOfMaintenance": 12,
"connectivityTechnology": "NONE",
"easyConnectStore": false,
"electrical": false,
"rlinkStore": false,
"deliveryDate": "2021-03-01",
"retrievedFromDhs": false,
"engineEnergyType": "OTHER",
"radioCode": "1234"
}
]
}
}
]
}
109 changes: 54 additions & 55 deletions tests/fixtures/kamereon/vehicles/gateway/duster.1.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,57 @@
{
"data": {
"type": "Car",
"id": "db5c1177-1c3d-46ec-8717-31746d0b3266",
"attributes": {
"vin": "VF1AAAA1234567876",
"vehicleId": 12345,
"batteryCode": "SANBAT",
"bin": null,
"brand": "RENAULT",
"canGeneration": "C1A",
"carGateway": "AVN",
"color": null,
"dealerId": null,
"deliveryCountry": "RU ",
"deliveryDate": null,
"deviceSerialNumber": null,
"electricityUnitCost": null,
"energy": "gasoline",
"engineType": "H5H",
"familyCode": "XJD",
"firstRegistrationDate": null,
"fuelUnitCost": null,
"gearbox": "MANUAL",
"modelCode": "HJD",
"modelCodeDetail": "XJD1SU",
"modelName": "NEW DUSTER",
"modelYear": null,
"navigAssistCode": null,
"nickname": null,
"packId": null,
"packManufacturingDate": null,
"packNominalCapacity": null,
"packType": null,
"pictureUrl": null,
"radioType": "RA41A",
"region": "RU",
"registrationCountry": "RU ",
"registrationNumber": "",
"sourceReferenceId": null,
"tcuCode": "AIVCT",
"temperatureUnit": null,
"upholstery": null,
"vehicleSourceReference": null,
"vehicleSourceType": null,
"vehicleType": null,
"versionCode": "B2 4 M3M 5C",
"versionName": null,
"privacyMode": "off",
"privacyModeUpdateDate": null,
"svtFlag": false,
"svtLastUpdateTime": null,
"svtBlockFlag": false,
"svtBlockLastUpdateTime": null
}
"data": {
"type": "Car",
"id": "db5c1177-1c3d-46ec-8717-31746d0b3266",
"attributes": {
"vin": "VF1AAAA1234567876",
"vehicleId": 12345,
"batteryCode": "SANBAT",
"bin": null,
"brand": "RENAULT",
"canGeneration": "C1A",
"carGateway": "AVN",
"color": null,
"dealerId": null,
"deliveryCountry": "RU ",
"deliveryDate": null,
"deviceSerialNumber": null,
"electricityUnitCost": null,
"energy": "gasoline",
"engineType": "H5H",
"familyCode": "XJD",
"firstRegistrationDate": null,
"fuelUnitCost": null,
"gearbox": "MANUAL",
"modelCode": "HJD",
"modelCodeDetail": "XJD1SU",
"modelName": "NEW DUSTER",
"modelYear": null,
"navigAssistCode": null,
"nickname": null,
"packId": null,
"packManufacturingDate": null,
"packNominalCapacity": null,
"packType": null,
"pictureUrl": null,
"radioType": "RA41A",
"region": "RU",
"registrationCountry": "RU ",
"registrationNumber": "",
"sourceReferenceId": null,
"tcuCode": "AIVCT",
"temperatureUnit": null,
"upholstery": null,
"vehicleSourceReference": null,
"vehicleSourceType": null,
"vehicleType": null,
"versionCode": "B2 4 M3M 5C",
"versionName": null,
"privacyMode": "off",
"privacyModeUpdateDate": null,
"svtFlag": false,
"svtLastUpdateTime": null,
"svtBlockFlag": false,
"svtBlockLastUpdateTime": null
}
}
}

0 comments on commit 3b72b6b

Please sign in to comment.