Skip to content

Commit

Permalink
✨ ✅ normalization for contract test
Browse files Browse the repository at this point in the history
  • Loading branch information
Beatrigz authored and vokimon committed Oct 29, 2024
1 parent b860605 commit f598999
Show file tree
Hide file tree
Showing 8 changed files with 765 additions and 0 deletions.
557 changes: 557 additions & 0 deletions cypress/fixtures/generalContractTerms.html

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions cypress/fixtures/normalizedData/contract20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"cnae": "9820",
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": true,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"process": "C1",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "2.0TD"
}
23 changes: 23 additions & 0 deletions cypress/fixtures/normalizedData/contract20_noservice.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"cnae": "9820",
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": true,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"process": "A3",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "2.0TD"
}
38 changes: 38 additions & 0 deletions cypress/fixtures/normalizedData/contract_20_owner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"cnae": "9820",
"contract_owner":
{"address": "Percebe,",
"city_id": 5386,
"email": "[email protected]",
"is_juridic": false,
"lang": "ca_ES",
"name": "David",
"phone": "636696969",
"postal_code": "17003",
"privacy_conditions": true,
"state_id": 20,
"surname": "Palomo Romero",
"vat": "58291270R"
},
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": false,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"process": "C1",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "2.0TD"
}

31 changes: 31 additions & 0 deletions cypress/fixtures/normalizedData/contract_20selfconsumption.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"cnae": "9820",
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": true,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"process": "C1",
"self_consumption": {
"aux_services": false,
"cau": "ES0353501028615353EE0FA000",
"collective_installation": true,
"installation_power": "3500",
"installation_type": "01",
"technology": "b11"},
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "2.0TD"
}

27 changes: 27 additions & 0 deletions cypress/fixtures/normalizedData/contract_30noselfconsumption.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"cnae": "9820",
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": true,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"power_p3": "10000",
"power_p4": "12000",
"power_p5": "14000",
"power_p6": "16000",
"process": "C1",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "3.0TD"
}
27 changes: 27 additions & 0 deletions cypress/fixtures/normalizedData/contract_30selfconsumption.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"cnae": "9820",
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "38434",
"member_vat": "40323835M",
"owner_is_member": true,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"power_p3": "10000",
"power_p4": "12000",
"power_p5": "14000",
"power_p6": "16000",
"process": "A3",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "3.0TD"
}
39 changes: 39 additions & 0 deletions cypress/fixtures/normalizedData/contract_juridic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"cnae": "9820",
"contract_owner":
{"address": "Percebe, 13",
"city_id": 5386,
"email": "[email protected]",
"is_juridic": true,
"lang": "ca_ES",
"name": "Testing, SL",
"phone": "636696969",
"postal_code": "17003",
"privacy_conditions": true,
"proxy_name": "David Palomo",
"proxy_vat": "40323835M",
"state_id": 20,
"vat": "B07121528"
},
"cups": "ES0024677231634331HA",
"cups_address": "Pedro López, 13",
"cups_city_id": 5386,
"cups_postal_code": "17003",
"cups_state_id": 20,
"donation": true,
"general_contract_terms_accepted": true,
"is_indexed": false,
"member_number": "61444",
"member_vat": "B07121528",
"owner_is_member": false,
"owner_is_payer": true,
"particular_contract_terms_accepted": true,
"payment_iban": "ES77 1234 1234 1612 3456 7890",
"power_p1": "4400",
"power_p2": "8000",
"process": "C1",
"sepa_conditions": true,
"supply_point_accepted": true,
"tariff": "2.0TD"
}

0 comments on commit f598999

Please sign in to comment.