otrs-somconnexio 0.6.0__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/PKG-INFO +1 -1
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/fiber_dynamic_fields.py +0 -4
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/mobile_data.py +2 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/mobile_dynamic_fields.py +0 -4
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/provision_dynamic_fields.py +4 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/switchboard_data.py +2 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/switchboard_dynamic_fields.py +5 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_factory.py +1 -1
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket.py +17 -3
- otrs_somconnexio-0.6.0/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py → otrs_somconnexio-0.6.2/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_mobile_pack.py +8 -11
- otrs_somconnexio-0.6.2/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py +22 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/PKG-INFO +1 -1
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/SOURCES.txt +2 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/setup.py +1 -1
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/integration/test_ticket_factory.py +6 -2
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_switchboard_data.py +1 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_switchboard_dynamic_fields.py +13 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_ticket_factory.py +14 -1
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_tariff.py +104 -7
- otrs_somconnexio-0.6.0/tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py → otrs_somconnexio-0.6.2/tests/otrs_models/ticket_types/test_change_tariff_mobile_pack.py +18 -18
- otrs_somconnexio-0.6.2/tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py +65 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/README.md +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/client.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/exceptions.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/abstract_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/adsl_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/adsl_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/adsl_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/add_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_email.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_iban.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_owner.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_shared_bond.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff_adsl.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/adsl_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/fiber_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/router_4G_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/provision/switchboard_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/querys/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/querys/check_coverage.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/configurations/querys/we_call_you.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/adsl.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/asociatel_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/mm_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/orange_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage/vdf_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/coverage_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/customer_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/customer_user.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/fiber_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/fiber_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/internet_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/internet_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/process_ticket/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/process_ticket/internet.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/process_ticket/mobile.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/process_ticket/process_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/providers.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/provision_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/provision_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/router_4G_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/router_4G_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/router_4G_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/switchboard_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/telecom_company.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/add_data_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/base_change_tariff_ba_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/base_change_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/base_customer_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/base_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_email_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_iban_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_owner_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_personal_email_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_shared_bond_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_landline_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_out_landline_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_fiber_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/check_coverage_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/vf_provisioning_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/responses/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/responses/ticket_creation.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/activate_change_tarriff_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/base_get_ticket_by_number.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/change_to_confirm_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/get_mobile_related_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/get_sharing_data_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/get_ticket_title.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/mapping_mobile_minutes.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/mapping_services.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/move_sharing_data_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/search_tickets_mobile_change_tariff.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/search_tickets_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/set_SIM_recieved_mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/set_SIM_returned_mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/set_fiber_contract_code_mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/unblock_mobile_pack_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/update_process_ticket_with_VF_provisioning.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/update_process_ticket_with_coverage_tickets_info_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/update_ticket_DF.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/services/update_ticket_with_provider_info.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/user_management_client/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/user_management_client/client.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/user_management_client/user_management_response.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/dependency_links.txt +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/not-zip-safe +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/requires.txt +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio.egg-info/top_level.txt +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/setup.cfg +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/data/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/data/otrs_raw_responses.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/integration/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/integration/test_change_customer_language.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/integration/test_update_ticket_with_coverage_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/common_helper.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/changes/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/changes/test_change_tariff_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/provision/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/provision/test_adsl_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/provision/test_fiber_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/configuration/provision/test_mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/process_ticket/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/process_ticket/test_internet_process_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/process_ticket/test_mobile_process_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_abstract_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_adsl_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_adsl_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_adsl_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_coverage_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_coverage_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_customer_user.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_fiber_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_fiber_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_fiber_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_mobile_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_mobile_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_mobile_paused_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_mobile_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_provision_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_router_4G_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_router_4G_dynamic_fields.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_router_4G_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_telecom_company.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/test_vf_provisioning_article.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_add_data.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_email.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_iban.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_owner.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_personal_email.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_tariff_adsl_landline.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_tariff_adsl_out_landline.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_change_tariff_fiber.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_check_coverage.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_shared_bond.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/otrs_models/ticket_types/test_we_call_you.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/responses/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/responses/test_ticket_creation.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_activate_change_tariff_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_change_to_confirm_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_get_mobile_related_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_get_sharing_data_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_mapping_mobile_minutes.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_mapping_services.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_move_sharing_data_mobile_tickets.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_search_tickets_mobile_change_tariff.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_search_tickets_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_set_SIM_recieved_mobile_ticket_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_set_SIM_returned_mobile_ticket_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_set_fiber_contract_code_mobile_ticket_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_unblock_mobile_pack_ticket.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_update_process_ticket_with_VF_provisioning.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_update_process_ticket_with_coverage_tickets_info_service.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/services/test_update_ticket_with_provider_info.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/user_management_client/__init__.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/user_management_client/test_client.py +0 -0
- {otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/tests/user_management_client/test_user_management_response.py +0 -0
|
@@ -15,7 +15,6 @@ class FiberDynamicFields(InternetDynamicFields):
|
|
|
15
15
|
self._df_mobile_pack_contracts(),
|
|
16
16
|
self._df_all_grouped_SIMS_recieved(),
|
|
17
17
|
self._df_has_previous_owner_with_mobile_pack_contracts(),
|
|
18
|
-
self._df_has_documentation(),
|
|
19
18
|
self._df_product_ba_mm(),
|
|
20
19
|
self._keep_landline_number(),
|
|
21
20
|
]
|
|
@@ -60,9 +59,6 @@ class FiberDynamicFields(InternetDynamicFields):
|
|
|
60
59
|
value=has_grouped_mobile_with_previous_owner,
|
|
61
60
|
)
|
|
62
61
|
|
|
63
|
-
def _df_has_documentation(self):
|
|
64
|
-
return DynamicField(name="flagDocumentacio", value="0")
|
|
65
|
-
|
|
66
62
|
def _df_product_ba_mm(self):
|
|
67
63
|
return DynamicField(name="productBAMM", value=self.service_data.product_ba_mm)
|
|
68
64
|
|
{otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/mobile_data.py
RENAMED
|
@@ -27,6 +27,7 @@ class MobileData:
|
|
|
27
27
|
activation_notes="",
|
|
28
28
|
notes="",
|
|
29
29
|
is_grouped_with_fiber=False,
|
|
30
|
+
is_from_pack=False,
|
|
30
31
|
fiber_linked="",
|
|
31
32
|
shared_bond_id="",
|
|
32
33
|
):
|
|
@@ -53,6 +54,7 @@ class MobileData:
|
|
|
53
54
|
self.activation_notes = activation_notes
|
|
54
55
|
self.notes = notes
|
|
55
56
|
self.is_grouped_with_fiber = is_grouped_with_fiber
|
|
57
|
+
self.is_from_pack = is_from_pack
|
|
56
58
|
self.fiber_linked = fiber_linked
|
|
57
59
|
self.shared_bond_id = shared_bond_id
|
|
58
60
|
self.contact_phone = contact_phone
|
|
@@ -27,7 +27,6 @@ class MobileDynamicFields(ProvisionDynamicFields):
|
|
|
27
27
|
self._delivery_state(),
|
|
28
28
|
self._fiber_linked(),
|
|
29
29
|
self._shared_bond_id(),
|
|
30
|
-
self._has_documentation(),
|
|
31
30
|
self._confirm_doc(),
|
|
32
31
|
]
|
|
33
32
|
|
|
@@ -114,8 +113,5 @@ class MobileDynamicFields(ProvisionDynamicFields):
|
|
|
114
113
|
name="IDAbonamentCompartit", value=self.service_data.shared_bond_id
|
|
115
114
|
)
|
|
116
115
|
|
|
117
|
-
def _has_documentation(self):
|
|
118
|
-
return DynamicField(name="flagDocumentacio", value="0")
|
|
119
|
-
|
|
120
116
|
def _confirm_doc(self):
|
|
121
117
|
return DynamicField(name="confirmDoc", value="no")
|
|
@@ -27,6 +27,7 @@ class ProvisionDynamicFields:
|
|
|
27
27
|
self._service_technology(),
|
|
28
28
|
self._sales_team(),
|
|
29
29
|
self._has_active_contracts(),
|
|
30
|
+
self._has_documentation(),
|
|
30
31
|
self._lang(),
|
|
31
32
|
]
|
|
32
33
|
dynamic_fields += self._build_specific_dynamic_fields()
|
|
@@ -96,3 +97,6 @@ class ProvisionDynamicFields:
|
|
|
96
97
|
name="equipVendes",
|
|
97
98
|
value=sales_team_dct.get(self.service_data.sales_team, ""),
|
|
98
99
|
)
|
|
100
|
+
|
|
101
|
+
def _has_documentation(self):
|
|
102
|
+
return DynamicField(name="flagDocumentacio", value="0")
|
{otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/switchboard_data.py
RENAMED
|
@@ -14,6 +14,7 @@ class SwitchboardData:
|
|
|
14
14
|
landline,
|
|
15
15
|
landline_2,
|
|
16
16
|
icc,
|
|
17
|
+
has_sim,
|
|
17
18
|
extension,
|
|
18
19
|
agent_name,
|
|
19
20
|
agent_email,
|
|
@@ -38,6 +39,7 @@ class SwitchboardData:
|
|
|
38
39
|
self.landline = landline
|
|
39
40
|
self.landline_2 = landline_2
|
|
40
41
|
self.icc = icc
|
|
42
|
+
self.has_sim = has_sim
|
|
41
43
|
self.extension = extension
|
|
42
44
|
self.agent_name = agent_name
|
|
43
45
|
self.agent_email = agent_email
|
|
@@ -10,6 +10,7 @@ class SwitchboardDynamicFields(ProvisionDynamicFields):
|
|
|
10
10
|
self._landline(),
|
|
11
11
|
self._landline_2(),
|
|
12
12
|
self._icc(),
|
|
13
|
+
self._sim_received(),
|
|
13
14
|
self._extension(),
|
|
14
15
|
self._agent_name(),
|
|
15
16
|
self._agent_email(),
|
|
@@ -35,6 +36,10 @@ class SwitchboardDynamicFields(ProvisionDynamicFields):
|
|
|
35
36
|
def _icc(self):
|
|
36
37
|
return DynamicField(name="ICCSC", value=self.service_data.icc)
|
|
37
38
|
|
|
39
|
+
def _sim_received(self):
|
|
40
|
+
sim_recieved = "1" if self.service_data.has_sim else "0"
|
|
41
|
+
return DynamicField("SIMrebuda", sim_recieved)
|
|
42
|
+
|
|
38
43
|
def _extension(self):
|
|
39
44
|
return DynamicField(name="extensio", value=self.service_data.extension)
|
|
40
45
|
|
{otrs_somconnexio-0.6.0 → otrs_somconnexio-0.6.2}/otrs_somconnexio/otrs_models/ticket_factory.py
RENAMED
|
@@ -25,7 +25,7 @@ class TicketFactory(object):
|
|
|
25
25
|
elif self.service_data.service_type == "mobile":
|
|
26
26
|
if self.service_data.is_grouped_with_fiber and (
|
|
27
27
|
self.service_data.type == "portability"
|
|
28
|
-
or self.service_data.
|
|
28
|
+
or self.service_data.is_from_pack
|
|
29
29
|
):
|
|
30
30
|
TicketClass = MobilePausedTicket
|
|
31
31
|
else:
|
|
@@ -40,7 +40,6 @@ class ChangeTariffTicket(BaseCustomerTicket):
|
|
|
40
40
|
"enviarNotificacio": self._transform_boolean_df(
|
|
41
41
|
self.fields.get("send_notification", "1")
|
|
42
42
|
),
|
|
43
|
-
"IDAbonamentCompartit": self.fields.get("shared_bond_id", ""),
|
|
44
43
|
"TecDelServei": "Mobil",
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -54,7 +53,19 @@ class ChangeTariffExceptionalTicket(ChangeTariffTicket):
|
|
|
54
53
|
return "Sol·licitud Canvi de tarifa excepcional"
|
|
55
54
|
|
|
56
55
|
|
|
57
|
-
class
|
|
56
|
+
class ChangeTariffMobilePackTicket(ChangeTariffTicket):
|
|
57
|
+
def _get_subject(self):
|
|
58
|
+
return "Sol·licitud canvi de tarifa pack apinyades"
|
|
59
|
+
|
|
60
|
+
def _get_dynamic_fields(self):
|
|
61
|
+
dynamic_fields = super()._get_dynamic_fields()
|
|
62
|
+
dynamic_fields.update(
|
|
63
|
+
{"creadorAbonament": bool(self.fields.get("pack_creator", False))}
|
|
64
|
+
)
|
|
65
|
+
return dynamic_fields
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class ChangeTariffSharedBondTicket(ChangeTariffMobilePackTicket):
|
|
58
69
|
def __init__(
|
|
59
70
|
self,
|
|
60
71
|
username,
|
|
@@ -65,9 +76,12 @@ class ChangeTariffSharedBondTicket(ChangeTariffTicket):
|
|
|
65
76
|
super().__init__(username, customer_code, fields_dict, override_ticket_ids)
|
|
66
77
|
self.configuration = ChangeTariffSharedBondTicketConfiguration()
|
|
67
78
|
|
|
79
|
+
def _get_subject(self):
|
|
80
|
+
return "Sol·licitud canvi de tarifa pack amb dades compartides"
|
|
81
|
+
|
|
68
82
|
def _get_dynamic_fields(self):
|
|
69
83
|
dynamic_fields = super()._get_dynamic_fields()
|
|
70
84
|
dynamic_fields.update(
|
|
71
|
-
{"
|
|
85
|
+
{"IDAbonamentCompartit": self.fields.get("shared_bond_id", "")}
|
|
72
86
|
)
|
|
73
87
|
return dynamic_fields
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
from otrs_somconnexio.client import OTRSClient
|
|
2
|
-
from otrs_somconnexio.otrs_models.configurations.changes.change_tariff import (
|
|
3
|
-
ChangeTariffSharedBondTicketConfiguration,
|
|
4
|
-
)
|
|
5
2
|
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket import (
|
|
6
|
-
|
|
3
|
+
ChangeTariffMobilePackTicket,
|
|
7
4
|
)
|
|
8
5
|
|
|
9
6
|
|
|
10
|
-
class
|
|
7
|
+
class ChangeTariffTicketMobilePack:
|
|
11
8
|
def __init__(
|
|
12
9
|
self,
|
|
13
10
|
username,
|
|
@@ -21,7 +18,7 @@ class ChangeTariffTicketSharedBond:
|
|
|
21
18
|
self.customer_code = customer_code
|
|
22
19
|
self.fields = fields_dict
|
|
23
20
|
self.override_ticket_ids = override_ticket_ids
|
|
24
|
-
self.
|
|
21
|
+
self.TicketClass = ChangeTariffMobilePackTicket
|
|
25
22
|
|
|
26
23
|
def create(self):
|
|
27
24
|
fields = self.fields
|
|
@@ -29,7 +26,7 @@ class ChangeTariffTicketSharedBond:
|
|
|
29
26
|
otrs_client = OTRSClient()
|
|
30
27
|
|
|
31
28
|
fields_creator = fields.copy()
|
|
32
|
-
fields_creator.update({"
|
|
29
|
+
fields_creator.update({"pack_creator": True})
|
|
33
30
|
ticket_creator = self._create_ticket(
|
|
34
31
|
fields_creator, contracts.pop(0), self.override_ticket_ids
|
|
35
32
|
)
|
|
@@ -44,11 +41,11 @@ class ChangeTariffTicketSharedBond:
|
|
|
44
41
|
fields["current_product_code"] = contract["current_product_code"]
|
|
45
42
|
fields["subscription_email"] = contract["subscription_email"]
|
|
46
43
|
|
|
47
|
-
return
|
|
44
|
+
return self.TicketClass(
|
|
48
45
|
self.username, self.customer_code, fields, override_ticket_ids
|
|
49
46
|
).create()
|
|
50
47
|
|
|
51
48
|
def update(self, ticket_id, article=None, dynamic_fields=None, state=None):
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
)
|
|
49
|
+
self.TicketClass(self.username, self.customer_code, {}).update(
|
|
50
|
+
ticket_id, article, dynamic_fields, state
|
|
51
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack import (
|
|
2
|
+
ChangeTariffTicketMobilePack,
|
|
3
|
+
)
|
|
4
|
+
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket import (
|
|
5
|
+
ChangeTariffSharedBondTicket,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChangeTariffTicketSharedBond(ChangeTariffTicketMobilePack):
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
username,
|
|
13
|
+
customer_code,
|
|
14
|
+
fields_dict,
|
|
15
|
+
override_ticket_ids=[],
|
|
16
|
+
# TODO: Can we remove this field?
|
|
17
|
+
fallback_path="/tmp/tickets/",
|
|
18
|
+
):
|
|
19
|
+
super(ChangeTariffTicketSharedBond, self).__init__(
|
|
20
|
+
username, customer_code, fields_dict, override_ticket_ids, fallback_path
|
|
21
|
+
)
|
|
22
|
+
self.TicketClass = ChangeTariffSharedBondTicket
|
|
@@ -85,6 +85,7 @@ otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_out_landline_ticket
|
|
|
85
85
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_ticket.py
|
|
86
86
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_fiber_ticket.py
|
|
87
87
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket.py
|
|
88
|
+
otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_mobile_pack.py
|
|
88
89
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py
|
|
89
90
|
otrs_somconnexio/otrs_models/ticket_types/check_coverage_ticket.py
|
|
90
91
|
otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py
|
|
@@ -165,6 +166,7 @@ tests/otrs_models/ticket_types/test_change_tariff.py
|
|
|
165
166
|
tests/otrs_models/ticket_types/test_change_tariff_adsl_landline.py
|
|
166
167
|
tests/otrs_models/ticket_types/test_change_tariff_adsl_out_landline.py
|
|
167
168
|
tests/otrs_models/ticket_types/test_change_tariff_fiber.py
|
|
169
|
+
tests/otrs_models/ticket_types/test_change_tariff_mobile_pack.py
|
|
168
170
|
tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py
|
|
169
171
|
tests/otrs_models/ticket_types/test_check_coverage.py
|
|
170
172
|
tests/otrs_models/ticket_types/test_shared_bond.py
|
|
@@ -55,6 +55,7 @@ class TicketFactoryIntegrationTestCase(unittest.TestCase):
|
|
|
55
55
|
"activation_notes",
|
|
56
56
|
"technology",
|
|
57
57
|
"sales_team",
|
|
58
|
+
"is_from_pack",
|
|
58
59
|
"fiber_linked",
|
|
59
60
|
"shared_bond_id",
|
|
60
61
|
]
|
|
@@ -105,6 +106,7 @@ class TicketFactoryIntegrationTestCase(unittest.TestCase):
|
|
|
105
106
|
"activation_notes",
|
|
106
107
|
"technology",
|
|
107
108
|
"sales_team",
|
|
109
|
+
"is_from_pack",
|
|
108
110
|
"fiber_linked",
|
|
109
111
|
"shared_bond_id",
|
|
110
112
|
]
|
|
@@ -131,7 +133,7 @@ class TicketFactoryIntegrationTestCase(unittest.TestCase):
|
|
|
131
133
|
self.assertIsInstance(ticket, MobilePausedTicket)
|
|
132
134
|
|
|
133
135
|
@patch("otrs_somconnexio.otrs_models.provision_ticket.OTRSClient")
|
|
134
|
-
def
|
|
136
|
+
def test_create_mobile_is_from_pack_paused_ticket_factory(self, MockOTRSClient):
|
|
135
137
|
mobile_data = Mock(
|
|
136
138
|
spec=[
|
|
137
139
|
"order_id",
|
|
@@ -158,14 +160,15 @@ class TicketFactoryIntegrationTestCase(unittest.TestCase):
|
|
|
158
160
|
"activation_notes",
|
|
159
161
|
"technology",
|
|
160
162
|
"sales_team",
|
|
163
|
+
"is_from_pack",
|
|
161
164
|
"fiber_linked",
|
|
162
165
|
"shared_bond_id",
|
|
163
166
|
]
|
|
164
167
|
)
|
|
165
168
|
|
|
166
169
|
mobile_data.service_type = "mobile"
|
|
167
|
-
mobile_data.product = "SE_SC_REC_MOBILE_PACK_UNL_20480"
|
|
168
170
|
mobile_data.is_grouped_with_fiber = True
|
|
171
|
+
mobile_data.is_from_pack = True
|
|
169
172
|
|
|
170
173
|
otrs_process_ticket = Mock(spec=["id"])
|
|
171
174
|
otrs_process_ticket.id = 234
|
|
@@ -380,6 +383,7 @@ class TicketFactoryIntegrationTestCase(unittest.TestCase):
|
|
|
380
383
|
"previous_owner_surname",
|
|
381
384
|
"extension",
|
|
382
385
|
"icc",
|
|
386
|
+
"has_sim",
|
|
383
387
|
"shipment_address",
|
|
384
388
|
"shipment_city",
|
|
385
389
|
"shipment_zip",
|
|
@@ -32,6 +32,7 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
|
|
|
32
32
|
landline=faker.phone_number(),
|
|
33
33
|
landline_2=faker.phone_number(),
|
|
34
34
|
icc=faker.bban(),
|
|
35
|
+
has_sim=faker.boolean(),
|
|
35
36
|
extension=faker.phone_number(),
|
|
36
37
|
agent_name=faker.name(),
|
|
37
38
|
agent_email=faker.email(),
|
|
@@ -98,6 +99,12 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
|
|
|
98
99
|
self.service_data.icc,
|
|
99
100
|
)
|
|
100
101
|
|
|
102
|
+
def test_has_sim_field(self):
|
|
103
|
+
self.assertEqual(
|
|
104
|
+
self.dynamic_fields_dct["SIMrebuda"],
|
|
105
|
+
"1" if self.service_data.has_sim else "0",
|
|
106
|
+
)
|
|
107
|
+
|
|
101
108
|
def test_agent_name_field(self):
|
|
102
109
|
self.assertEqual(
|
|
103
110
|
self.dynamic_fields_dct["nomAgentCV"],
|
|
@@ -133,3 +140,9 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
|
|
|
133
140
|
self.dynamic_fields_dct["provinciaEnviament"],
|
|
134
141
|
self.service_data.shipment_subdivision,
|
|
135
142
|
)
|
|
143
|
+
|
|
144
|
+
def test_documentation(self):
|
|
145
|
+
self.assertEqual(
|
|
146
|
+
self.dynamic_fields_dct["flagDocumentacio"],
|
|
147
|
+
"0",
|
|
148
|
+
)
|
|
@@ -23,7 +23,7 @@ class TicketFactoryTestCase(unittest.TestCase):
|
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
@patch("otrs_somconnexio.otrs_models.ticket_factory.MobilePausedTicket")
|
|
26
|
-
def
|
|
26
|
+
def test_build_mobile_paused_ticket_portability(self, MockMobilePausedTicket):
|
|
27
27
|
self.service_data.service_type = "mobile"
|
|
28
28
|
self.service_data.type = "portability"
|
|
29
29
|
self.service_data.is_grouped_with_fiber = True
|
|
@@ -34,6 +34,19 @@ class TicketFactoryTestCase(unittest.TestCase):
|
|
|
34
34
|
service_data=self.service_data, customer_data=self.customer_data
|
|
35
35
|
)
|
|
36
36
|
|
|
37
|
+
@patch("otrs_somconnexio.otrs_models.ticket_factory.MobilePausedTicket")
|
|
38
|
+
def test_build_mobile_paused_ticket_fiber_linked(self, MockMobilePausedTicket):
|
|
39
|
+
self.service_data.service_type = "mobile"
|
|
40
|
+
self.service_data.type = "new"
|
|
41
|
+
self.service_data.is_grouped_with_fiber = True
|
|
42
|
+
self.service_data.is_from_pack = True
|
|
43
|
+
|
|
44
|
+
TicketFactory(self.service_data, self.customer_data).build()
|
|
45
|
+
|
|
46
|
+
MockMobilePausedTicket.assert_called_once_with(
|
|
47
|
+
service_data=self.service_data, customer_data=self.customer_data
|
|
48
|
+
)
|
|
49
|
+
|
|
37
50
|
@patch("otrs_somconnexio.otrs_models.ticket_factory.ADSLTicket")
|
|
38
51
|
def test_build_adsl_ticket(self, MockADSLTicket):
|
|
39
52
|
self.service_data.service_type = "adsl"
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket import (
|
|
2
2
|
ChangeTariffTicket,
|
|
3
3
|
ChangeTariffExceptionalTicket,
|
|
4
|
+
ChangeTariffMobilePackTicket,
|
|
5
|
+
ChangeTariffSharedBondTicket,
|
|
4
6
|
)
|
|
5
7
|
from otrs_somconnexio.otrs_models.configurations.changes.change_tariff import (
|
|
6
8
|
ChangeTariffTicketConfiguration,
|
|
7
9
|
ChangeTariffExceptionalTicketConfiguration,
|
|
10
|
+
ChangeTariffSharedBondTicketConfiguration,
|
|
8
11
|
)
|
|
9
12
|
|
|
10
13
|
|
|
@@ -248,7 +251,9 @@ class TestCaseChangeTariffExceptionalTicket:
|
|
|
248
251
|
attachments=None,
|
|
249
252
|
)
|
|
250
253
|
|
|
251
|
-
|
|
254
|
+
|
|
255
|
+
class TestCaseChangeTariffMobilePackTicket:
|
|
256
|
+
def test_create(self, mocker):
|
|
252
257
|
username = "7456787G"
|
|
253
258
|
customer_code = "1234"
|
|
254
259
|
|
|
@@ -275,7 +280,7 @@ class TestCaseChangeTariffExceptionalTicket:
|
|
|
275
280
|
)
|
|
276
281
|
|
|
277
282
|
expected_ticket_data = {
|
|
278
|
-
"Title": "Sol·licitud
|
|
283
|
+
"Title": "Sol·licitud canvi de tarifa pack apinyades",
|
|
279
284
|
"QueueID": ChangeTariffTicketConfiguration.queue_id,
|
|
280
285
|
"State": ChangeTariffTicketConfiguration.state,
|
|
281
286
|
"Type": ChangeTariffTicketConfiguration.type,
|
|
@@ -284,7 +289,7 @@ class TestCaseChangeTariffExceptionalTicket:
|
|
|
284
289
|
"CustomerID": customer_code,
|
|
285
290
|
}
|
|
286
291
|
expected_article_data = {
|
|
287
|
-
"Subject": "Sol·licitud
|
|
292
|
+
"Subject": "Sol·licitud canvi de tarifa pack apinyades",
|
|
288
293
|
"Body": "-",
|
|
289
294
|
}
|
|
290
295
|
|
|
@@ -297,16 +302,18 @@ class TestCaseChangeTariffExceptionalTicket:
|
|
|
297
302
|
"subscription_email": "fakeemail@email.coop",
|
|
298
303
|
"language": "ca_ES",
|
|
299
304
|
"send_notification": False,
|
|
300
|
-
"shared_bond_id": "C03457456M",
|
|
301
305
|
}
|
|
302
306
|
|
|
303
|
-
ticket =
|
|
307
|
+
ticket = ChangeTariffMobilePackTicket(
|
|
308
|
+
username, customer_code, fields_dict
|
|
309
|
+
).create()
|
|
304
310
|
|
|
305
311
|
TicketMock.assert_called_once_with(expected_ticket_data)
|
|
306
312
|
ArticleMock.assert_called_once_with(expected_article_data)
|
|
307
313
|
calls = [
|
|
308
314
|
mocker.call(
|
|
309
|
-
"ProcessManagementProcessID",
|
|
315
|
+
"ProcessManagementProcessID",
|
|
316
|
+
ChangeTariffTicketConfiguration.process_id,
|
|
310
317
|
),
|
|
311
318
|
mocker.call(
|
|
312
319
|
"ProcessManagementActivityID",
|
|
@@ -320,9 +327,99 @@ class TestCaseChangeTariffExceptionalTicket:
|
|
|
320
327
|
mocker.call("correuElectronic", "fakeemail@email.coop"),
|
|
321
328
|
mocker.call("idioma", "ca_ES"),
|
|
322
329
|
mocker.call("enviarNotificacio", "0"),
|
|
323
|
-
mocker.call("IDAbonamentCompartit", "C03457456M"),
|
|
324
330
|
mocker.call("TecDelServei", "Mobil"),
|
|
325
331
|
]
|
|
332
|
+
|
|
333
|
+
DynamicFieldMock.assert_has_calls(calls)
|
|
334
|
+
OTRSClientMock.return_value.create_otrs_process_ticket.assert_called_once_with( # noqa
|
|
335
|
+
TicketMock.return_value,
|
|
336
|
+
article=ArticleMock.return_value,
|
|
337
|
+
dynamic_fields=[mocker.ANY for call in calls],
|
|
338
|
+
attachments=None,
|
|
339
|
+
)
|
|
340
|
+
assert ticket.id == "1"
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
class TestCaseChangeTariffSharedBondTicket:
|
|
344
|
+
def test_create_with_shared_bond_id(self, mocker):
|
|
345
|
+
username = "7456787G"
|
|
346
|
+
customer_code = "1234"
|
|
347
|
+
|
|
348
|
+
OTRSClientMock = mocker.patch(
|
|
349
|
+
"otrs_somconnexio.otrs_models.ticket_types.base_ticket.OTRSClient",
|
|
350
|
+
return_value=mocker.Mock(),
|
|
351
|
+
)
|
|
352
|
+
OTRSClientMock.return_value.create_otrs_process_ticket.return_value = (
|
|
353
|
+
mocker.Mock(spec=["id"])
|
|
354
|
+
)
|
|
355
|
+
OTRSClientMock.return_value.create_otrs_process_ticket.return_value.id = "1"
|
|
356
|
+
|
|
357
|
+
TicketMock = mocker.patch(
|
|
358
|
+
"otrs_somconnexio.otrs_models.ticket_types.base_ticket.Ticket",
|
|
359
|
+
return_value=mocker.Mock(),
|
|
360
|
+
)
|
|
361
|
+
ArticleMock = mocker.patch(
|
|
362
|
+
"otrs_somconnexio.otrs_models.ticket_types.base_ticket.Article",
|
|
363
|
+
return_value=mocker.Mock(),
|
|
364
|
+
)
|
|
365
|
+
DynamicFieldMock = mocker.patch(
|
|
366
|
+
"otrs_somconnexio.otrs_models.ticket_types.base_ticket.DynamicField",
|
|
367
|
+
return_value=mocker.Mock(),
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
expected_ticket_data = {
|
|
371
|
+
"Title": "Sol·licitud canvi de tarifa pack amb dades compartides",
|
|
372
|
+
"QueueID": ChangeTariffSharedBondTicketConfiguration.queue_id,
|
|
373
|
+
"State": ChangeTariffSharedBondTicketConfiguration.state,
|
|
374
|
+
"Type": ChangeTariffSharedBondTicketConfiguration.type,
|
|
375
|
+
"Priority": ChangeTariffSharedBondTicketConfiguration.priority,
|
|
376
|
+
"CustomerUser": customer_code,
|
|
377
|
+
"CustomerID": customer_code,
|
|
378
|
+
}
|
|
379
|
+
expected_article_data = {
|
|
380
|
+
"Subject": "Sol·licitud canvi de tarifa pack amb dades compartides",
|
|
381
|
+
"Body": "-",
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
fields_dict = {
|
|
385
|
+
"phone_number": "666666666",
|
|
386
|
+
"new_product_code": "NEW_PRODUCT_CODE",
|
|
387
|
+
"current_product_code": "CURRENT_PRODUCT_CODE",
|
|
388
|
+
"effective_date": "tomorrow",
|
|
389
|
+
"fiber_linked": "",
|
|
390
|
+
"subscription_email": "fakeemail@email.coop",
|
|
391
|
+
"language": "ca_ES",
|
|
392
|
+
"send_notification": False,
|
|
393
|
+
"shared_bond_id": "C03457456M",
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
ticket = ChangeTariffSharedBondTicket(
|
|
397
|
+
username, customer_code, fields_dict
|
|
398
|
+
).create()
|
|
399
|
+
|
|
400
|
+
TicketMock.assert_called_once_with(expected_ticket_data)
|
|
401
|
+
ArticleMock.assert_called_once_with(expected_article_data)
|
|
402
|
+
calls = [
|
|
403
|
+
mocker.call(
|
|
404
|
+
"ProcessManagementProcessID",
|
|
405
|
+
ChangeTariffSharedBondTicketConfiguration.process_id,
|
|
406
|
+
),
|
|
407
|
+
mocker.call(
|
|
408
|
+
"ProcessManagementActivityID",
|
|
409
|
+
ChangeTariffSharedBondTicketConfiguration.activity_id,
|
|
410
|
+
),
|
|
411
|
+
mocker.call("renovaCanviTarifa", "0"),
|
|
412
|
+
mocker.call("liniaMobil", "666666666"),
|
|
413
|
+
mocker.call("productMobil", "NEW_PRODUCT_CODE"),
|
|
414
|
+
mocker.call("tarifaAntiga", "CURRENT_PRODUCT_CODE"),
|
|
415
|
+
mocker.call("dataExecucioCanviTarifa", "tomorrow"),
|
|
416
|
+
mocker.call("correuElectronic", "fakeemail@email.coop"),
|
|
417
|
+
mocker.call("idioma", "ca_ES"),
|
|
418
|
+
mocker.call("enviarNotificacio", "0"),
|
|
419
|
+
mocker.call("TecDelServei", "Mobil"),
|
|
420
|
+
mocker.call("IDAbonamentCompartit", "C03457456M"),
|
|
421
|
+
]
|
|
422
|
+
|
|
326
423
|
DynamicFieldMock.assert_has_calls(calls)
|
|
327
424
|
OTRSClientMock.return_value.create_otrs_process_ticket.assert_called_once_with( # noqa
|
|
328
425
|
TicketMock.return_value,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket import (
|
|
2
|
-
|
|
2
|
+
ChangeTariffMobilePackTicket,
|
|
3
3
|
)
|
|
4
|
-
from otrs_somconnexio.otrs_models.ticket_types.
|
|
5
|
-
|
|
4
|
+
from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack import (
|
|
5
|
+
ChangeTariffTicketMobilePack,
|
|
6
6
|
)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class TestCaseChangeTariffTicketMobilePack:
|
|
10
10
|
def test_create(self, mocker):
|
|
11
11
|
username = "7456787G"
|
|
12
12
|
customer_code = "1234"
|
|
@@ -14,7 +14,7 @@ class TestCaseChangeTariffTicketSharedBonds:
|
|
|
14
14
|
ticket_id = "2"
|
|
15
15
|
|
|
16
16
|
OTRSClientMock = mocker.patch(
|
|
17
|
-
"otrs_somconnexio.otrs_models.ticket_types.
|
|
17
|
+
"otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack.OTRSClient",
|
|
18
18
|
return_value=mocker.Mock(),
|
|
19
19
|
)
|
|
20
20
|
|
|
@@ -26,13 +26,13 @@ class TestCaseChangeTariffTicketSharedBonds:
|
|
|
26
26
|
ticket_creator_mock.create.return_value.id = ticket_creator_id
|
|
27
27
|
|
|
28
28
|
def side_effect(uname, customer_c, fields, override):
|
|
29
|
-
if fields.get("
|
|
29
|
+
if fields.get("pack_creator"):
|
|
30
30
|
return ticket_creator_mock
|
|
31
31
|
else:
|
|
32
32
|
return ticket_mock
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
"otrs_somconnexio.otrs_models.ticket_types.
|
|
34
|
+
ChangeTariffMobilePackTicketMock = mocker.patch(
|
|
35
|
+
"otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack.ChangeTariffMobilePackTicket",
|
|
36
36
|
side_effect=side_effect,
|
|
37
37
|
)
|
|
38
38
|
|
|
@@ -57,9 +57,9 @@ class TestCaseChangeTariffTicketSharedBonds:
|
|
|
57
57
|
"send_notification": True,
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
ChangeTariffTicketMobilePack(username, customer_code, fields_dict).create()
|
|
61
61
|
|
|
62
|
-
assert
|
|
62
|
+
assert ChangeTariffMobilePackTicketMock.call_count == 2
|
|
63
63
|
ticket_mock.create.assert_called_once_with()
|
|
64
64
|
ticket_creator_mock.create.assert_called_once_with()
|
|
65
65
|
OTRSClientMock.return_value.link_tickets.assert_called_once_with(
|
|
@@ -75,23 +75,23 @@ class TestCaseChangeTariffTicketSharedBonds:
|
|
|
75
75
|
article = "article"
|
|
76
76
|
dynamic_fields = "dynamic_fields"
|
|
77
77
|
state = "state"
|
|
78
|
-
|
|
79
|
-
"otrs_somconnexio.otrs_models.ticket_types.
|
|
78
|
+
ChangeTariffMobilePackTicketMock = mocker.patch(
|
|
79
|
+
"otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack.ChangeTariffMobilePackTicket",
|
|
80
80
|
return_value=mocker.Mock(spec=["update"]),
|
|
81
81
|
)
|
|
82
|
-
|
|
82
|
+
ChangeTariffTicketMobilePack(username, customer_code, {}).update(
|
|
83
83
|
ticket_id, article, dynamic_fields, state
|
|
84
84
|
)
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
ChangeTariffMobilePackTicketMock.assert_called_once_with(
|
|
87
87
|
username, customer_code, {}
|
|
88
88
|
)
|
|
89
|
-
|
|
89
|
+
ChangeTariffMobilePackTicketMock.return_value.update.assert_called_once_with(
|
|
90
90
|
ticket_id, article, dynamic_fields, state
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
class
|
|
94
|
+
class TestCaseChangeTariffMobilePackTicket:
|
|
95
95
|
def test_create(self, mocker):
|
|
96
96
|
username = "7456787G"
|
|
97
97
|
customer_code = "1234"
|
|
@@ -104,7 +104,7 @@ class TestCaseChangeTariffSharedBondTicket:
|
|
|
104
104
|
"fiber_linked": "28",
|
|
105
105
|
"language": "ca_ES",
|
|
106
106
|
"send_notification": True,
|
|
107
|
-
"
|
|
107
|
+
"pack_creator": True,
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
ticket_mock = mocker.Mock(spec=["id"])
|
|
@@ -120,7 +120,7 @@ class TestCaseChangeTariffSharedBondTicket:
|
|
|
120
120
|
"otrs_somconnexio.otrs_models.ticket_types.base_ticket.DynamicField",
|
|
121
121
|
)
|
|
122
122
|
|
|
123
|
-
ticket =
|
|
123
|
+
ticket = ChangeTariffMobilePackTicket(
|
|
124
124
|
username, customer_code, fields_dict
|
|
125
125
|
).create()
|
|
126
126
|
|