otrs-somconnexio 0.6.1__tar.gz → 0.6.3__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.
Files changed (198) hide show
  1. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/PKG-INFO +1 -1
  2. otrs_somconnexio-0.6.3/otrs_somconnexio/otrs_models/configurations/querys/we_call_you.py +26 -0
  3. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/fiber_dynamic_fields.py +0 -4
  4. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/mobile_data.py +2 -0
  5. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/mobile_dynamic_fields.py +0 -4
  6. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/provision_dynamic_fields.py +4 -0
  7. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_factory.py +1 -1
  8. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket.py +17 -3
  9. otrs_somconnexio-0.6.1/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py → otrs_somconnexio-0.6.3/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_mobile_pack.py +8 -11
  10. otrs_somconnexio-0.6.3/otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py +22 -0
  11. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py +18 -5
  12. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/PKG-INFO +1 -1
  13. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/SOURCES.txt +2 -0
  14. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/setup.py +1 -1
  15. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/integration/test_ticket_factory.py +5 -2
  16. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_switchboard_dynamic_fields.py +6 -0
  17. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_ticket_factory.py +14 -1
  18. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_tariff.py +104 -7
  19. otrs_somconnexio-0.6.1/tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py → otrs_somconnexio-0.6.3/tests/otrs_models/ticket_types/test_change_tariff_mobile_pack.py +18 -18
  20. otrs_somconnexio-0.6.3/tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py +65 -0
  21. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_we_call_you.py +35 -10
  22. otrs_somconnexio-0.6.1/otrs_somconnexio/otrs_models/configurations/querys/we_call_you.py +0 -15
  23. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/README.md +0 -0
  24. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/__init__.py +0 -0
  25. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/client.py +0 -0
  26. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/exceptions.py +0 -0
  27. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/__init__.py +0 -0
  28. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/abstract_article.py +0 -0
  29. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/adsl_data.py +0 -0
  30. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/adsl_dynamic_fields.py +0 -0
  31. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/adsl_ticket.py +0 -0
  32. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/__init__.py +0 -0
  33. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/__init__.py +0 -0
  34. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/add_data.py +0 -0
  35. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_email.py +0 -0
  36. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_iban.py +0 -0
  37. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_owner.py +0 -0
  38. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_shared_bond.py +0 -0
  39. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff.py +0 -0
  40. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff_adsl.py +0 -0
  41. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/changes/change_tariff_fiber.py +0 -0
  42. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/__init__.py +0 -0
  43. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/adsl_ticket.py +0 -0
  44. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/fiber_ticket.py +0 -0
  45. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/mobile_ticket.py +0 -0
  46. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/router_4G_ticket.py +0 -0
  47. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/provision/switchboard_ticket.py +0 -0
  48. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/querys/__init__.py +0 -0
  49. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/configurations/querys/check_coverage.py +0 -0
  50. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/__init__.py +0 -0
  51. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/adsl.py +0 -0
  52. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/asociatel_fiber.py +0 -0
  53. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/mm_fiber.py +0 -0
  54. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/orange_fiber.py +0 -0
  55. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage/vdf_fiber.py +0 -0
  56. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage_article.py +0 -0
  57. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/coverage_ticket.py +0 -0
  58. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/customer_data.py +0 -0
  59. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/customer_user.py +0 -0
  60. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/fiber_data.py +0 -0
  61. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/fiber_ticket.py +0 -0
  62. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/internet_data.py +0 -0
  63. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/internet_dynamic_fields.py +0 -0
  64. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/mobile_ticket.py +0 -0
  65. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/process_ticket/__init__.py +0 -0
  66. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/process_ticket/internet.py +0 -0
  67. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/process_ticket/mobile.py +0 -0
  68. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/process_ticket/process_ticket.py +0 -0
  69. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/providers.py +0 -0
  70. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/provision_article.py +0 -0
  71. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/provision_ticket.py +0 -0
  72. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/router_4G_data.py +0 -0
  73. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/router_4G_dynamic_fields.py +0 -0
  74. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/router_4G_ticket.py +0 -0
  75. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/service.py +0 -0
  76. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/switchboard_data.py +0 -0
  77. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/switchboard_dynamic_fields.py +0 -0
  78. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/switchboard_ticket.py +0 -0
  79. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/telecom_company.py +0 -0
  80. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/__init__.py +0 -0
  81. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/add_data_ticket.py +0 -0
  82. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/base_change_tariff_ba_ticket.py +0 -0
  83. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/base_change_ticket.py +0 -0
  84. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/base_customer_ticket.py +0 -0
  85. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/base_ticket.py +0 -0
  86. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_email_ticket.py +0 -0
  87. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_iban_ticket.py +0 -0
  88. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_owner_ticket.py +0 -0
  89. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_personal_email_ticket.py +0 -0
  90. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_shared_bond_ticket.py +0 -0
  91. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_landline_ticket.py +0 -0
  92. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_out_landline_ticket.py +0 -0
  93. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_adsl_ticket.py +0 -0
  94. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/change_tariff_fiber_ticket.py +0 -0
  95. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/ticket_types/check_coverage_ticket.py +0 -0
  96. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/otrs_models/vf_provisioning_article.py +0 -0
  97. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/responses/__init__.py +0 -0
  98. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/responses/ticket_creation.py +0 -0
  99. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/__init__.py +0 -0
  100. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/activate_change_tarriff_mobile_tickets.py +0 -0
  101. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/base_get_ticket_by_number.py +0 -0
  102. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/change_to_confirm_ticket.py +0 -0
  103. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/get_mobile_related_tickets.py +0 -0
  104. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/get_sharing_data_mobile_tickets.py +0 -0
  105. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/get_ticket_title.py +0 -0
  106. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/mapping_mobile_minutes.py +0 -0
  107. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/mapping_services.py +0 -0
  108. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/move_sharing_data_mobile_tickets.py +0 -0
  109. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/search_tickets_mobile_change_tariff.py +0 -0
  110. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/search_tickets_service.py +0 -0
  111. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/set_SIM_recieved_mobile_ticket.py +0 -0
  112. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/set_SIM_returned_mobile_ticket.py +0 -0
  113. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/set_fiber_contract_code_mobile_ticket.py +0 -0
  114. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/unblock_mobile_pack_ticket.py +0 -0
  115. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/update_process_ticket_with_VF_provisioning.py +0 -0
  116. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/update_process_ticket_with_coverage_tickets_info_service.py +0 -0
  117. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/update_ticket_DF.py +0 -0
  118. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/services/update_ticket_with_provider_info.py +0 -0
  119. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/user_management_client/__init__.py +0 -0
  120. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/user_management_client/client.py +0 -0
  121. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio/user_management_client/user_management_response.py +0 -0
  122. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/dependency_links.txt +0 -0
  123. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/not-zip-safe +0 -0
  124. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/requires.txt +0 -0
  125. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/otrs_somconnexio.egg-info/top_level.txt +0 -0
  126. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/setup.cfg +0 -0
  127. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/data/__init__.py +0 -0
  128. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/data/otrs_raw_responses.py +0 -0
  129. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/integration/__init__.py +0 -0
  130. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/integration/test_change_customer_language.py +0 -0
  131. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/integration/test_update_ticket_with_coverage_data.py +0 -0
  132. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/__init__.py +0 -0
  133. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/common_helper.py +0 -0
  134. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/__init__.py +0 -0
  135. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/changes/__init__.py +0 -0
  136. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/changes/test_change_tariff_ticket.py +0 -0
  137. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/provision/__init__.py +0 -0
  138. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/provision/test_adsl_ticket.py +0 -0
  139. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/provision/test_fiber_ticket.py +0 -0
  140. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/configuration/provision/test_mobile_ticket.py +0 -0
  141. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/process_ticket/__init__.py +0 -0
  142. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/process_ticket/test_internet_process_ticket.py +0 -0
  143. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/process_ticket/test_mobile_process_ticket.py +0 -0
  144. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_abstract_article.py +0 -0
  145. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_adsl_data.py +0 -0
  146. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_adsl_dynamic_fields.py +0 -0
  147. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_adsl_ticket.py +0 -0
  148. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_coverage_article.py +0 -0
  149. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_coverage_ticket.py +0 -0
  150. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_customer_user.py +0 -0
  151. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_fiber_data.py +0 -0
  152. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_fiber_dynamic_fields.py +0 -0
  153. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_fiber_ticket.py +0 -0
  154. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_mobile_data.py +0 -0
  155. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_mobile_dynamic_fields.py +0 -0
  156. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_mobile_paused_ticket.py +0 -0
  157. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_mobile_ticket.py +0 -0
  158. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_provision_article.py +0 -0
  159. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_router_4G_data.py +0 -0
  160. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_router_4G_dynamic_fields.py +0 -0
  161. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_router_4G_ticket.py +0 -0
  162. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_service.py +0 -0
  163. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_switchboard_data.py +0 -0
  164. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_telecom_company.py +0 -0
  165. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/test_vf_provisioning_article.py +0 -0
  166. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/__init__.py +0 -0
  167. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_add_data.py +0 -0
  168. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_email.py +0 -0
  169. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_iban.py +0 -0
  170. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_owner.py +0 -0
  171. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_personal_email.py +0 -0
  172. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_tariff_adsl_landline.py +0 -0
  173. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_tariff_adsl_out_landline.py +0 -0
  174. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_change_tariff_fiber.py +0 -0
  175. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_check_coverage.py +0 -0
  176. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/otrs_models/ticket_types/test_shared_bond.py +0 -0
  177. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/responses/__init__.py +0 -0
  178. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/responses/test_ticket_creation.py +0 -0
  179. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/__init__.py +0 -0
  180. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_activate_change_tariff_mobile_tickets.py +0 -0
  181. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_change_to_confirm_ticket.py +0 -0
  182. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_get_mobile_related_tickets.py +0 -0
  183. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_get_sharing_data_mobile_tickets.py +0 -0
  184. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_mapping_mobile_minutes.py +0 -0
  185. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_mapping_services.py +0 -0
  186. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_move_sharing_data_mobile_tickets.py +0 -0
  187. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_search_tickets_mobile_change_tariff.py +0 -0
  188. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_search_tickets_service.py +0 -0
  189. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_set_SIM_recieved_mobile_ticket_service.py +0 -0
  190. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_set_SIM_returned_mobile_ticket_service.py +0 -0
  191. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_set_fiber_contract_code_mobile_ticket_service.py +0 -0
  192. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_unblock_mobile_pack_ticket.py +0 -0
  193. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_update_process_ticket_with_VF_provisioning.py +0 -0
  194. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_update_process_ticket_with_coverage_tickets_info_service.py +0 -0
  195. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/services/test_update_ticket_with_provider_info.py +0 -0
  196. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/user_management_client/__init__.py +0 -0
  197. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/user_management_client/test_client.py +0 -0
  198. {otrs_somconnexio-0.6.1 → otrs_somconnexio-0.6.3}/tests/user_management_client/test_user_management_response.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otrs_somconnexio
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Python package for Somconnexio data syncing in OTRS
5
5
  Home-page: https://gitlab.com/coopdevs/otrs_somconnexio
6
6
  Author: Coopdevs
@@ -0,0 +1,26 @@
1
+ class WeCallYouConfiguration:
2
+ process_id = "Process-975190079a628ddf1eb4f0188dce2e4a"
3
+ activity_id = "Activity-1b94759f56e5b7ecf67e1330d1c6afab"
4
+ type = "Petición"
5
+ state = "new"
6
+ priority = "3 normal"
7
+
8
+
9
+ class WeCallYouCATConfiguration(WeCallYouConfiguration):
10
+ queue_id = 144
11
+ subject = "Formulari 'Vols que et truquem?' (CAT)"
12
+
13
+
14
+ class WeCallYouESConfiguration(WeCallYouConfiguration):
15
+ queue_id = 145
16
+ subject = "Formulari 'Vols que et truquem?' (ES)"
17
+
18
+
19
+ class WeCallYouCompanyCATConfiguration(WeCallYouConfiguration):
20
+ queue_id = 230
21
+ subject = "Formulari 'Vols que et truquem?' - Empreses (CAT)"
22
+
23
+
24
+ class WeCallYouCompanyESConfiguration(WeCallYouConfiguration):
25
+ queue_id = 231
26
+ subject = "Formulari 'Vols que et truquem?' - Empreses (ES)"
@@ -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
 
@@ -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")
@@ -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.product == "SE_SC_REC_MOBILE_PACK_UNL_20480"
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 ChangeTariffSharedBondTicket(ChangeTariffTicket):
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
- {"creadorAbonament": bool(self.fields.get("shared_bond_creator", False))}
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
- ChangeTariffSharedBondTicket,
3
+ ChangeTariffMobilePackTicket,
7
4
  )
8
5
 
9
6
 
10
- class ChangeTariffTicketSharedBond:
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.configuration = ChangeTariffSharedBondTicketConfiguration()
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({"shared_bond_creator": True})
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 ChangeTariffSharedBondTicket(
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
- ChangeTariffSharedBondTicket(
53
- self.username, self.customer_code, {}
54
- ).update(ticket_id, article, dynamic_fields, state)
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
@@ -1,8 +1,12 @@
1
1
  from otrs_somconnexio.otrs_models.configurations.querys.we_call_you import (
2
2
  WeCallYouCATConfiguration,
3
+ WeCallYouCompanyCATConfiguration,
4
+ WeCallYouCompanyESConfiguration,
3
5
  WeCallYouESConfiguration,
4
6
  )
5
- from otrs_somconnexio.otrs_models.ticket_types.base_customer_ticket import BaseCustomerTicket
7
+ from otrs_somconnexio.otrs_models.ticket_types.base_customer_ticket import (
8
+ BaseCustomerTicket,
9
+ )
6
10
 
7
11
 
8
12
  class WeCallYouTicket(BaseCustomerTicket):
@@ -10,10 +14,8 @@ class WeCallYouTicket(BaseCustomerTicket):
10
14
  super(WeCallYouTicket, self).__init__(
11
15
  username, customer_code, fields_dict, *args
12
16
  )
13
- self.configuration = (
14
- WeCallYouCATConfiguration
15
- if fields_dict["language"] == "ca_ES"
16
- else WeCallYouESConfiguration
17
+ self.configuration = self._get_congifuration(
18
+ fields_dict["language"], fields_dict["is_company"]
17
19
  )
18
20
 
19
21
  def _get_activity_id(self):
@@ -34,4 +36,15 @@ class WeCallYouTicket(BaseCustomerTicket):
34
36
  "horariTrucada": self.fields["schedule"],
35
37
  "telefonContacte": self.fields["phone"],
36
38
  "motiuTrucada": self.fields["reason"],
39
+ "midaEmpresa": self.fields.get("company_size"),
37
40
  }
41
+
42
+ def _get_congifuration(self, lang, is_company):
43
+ if lang == "ca_ES":
44
+ if is_company:
45
+ return WeCallYouCompanyCATConfiguration
46
+ return WeCallYouCATConfiguration
47
+ else:
48
+ if is_company:
49
+ return WeCallYouCompanyESConfiguration
50
+ return WeCallYouESConfiguration
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otrs-somconnexio
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Python package for Somconnexio data syncing in OTRS
5
5
  Home-page: https://gitlab.com/coopdevs/otrs_somconnexio
6
6
  Author: Coopdevs
@@ -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
@@ -5,7 +5,7 @@ with open("README.md") as f:
5
5
  README = f.read()
6
6
 
7
7
 
8
- VERSION = "0.6.1"
8
+ VERSION = "0.6.3"
9
9
 
10
10
  setup(
11
11
  name="otrs_somconnexio",
@@ -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 test_create_mobile_pack_product_paused_ticket_factory(self, MockOTRSClient):
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
@@ -140,3 +140,9 @@ class SwitchboardDynamicFieldsTestCase(unittest.TestCase):
140
140
  self.dynamic_fields_dct["provinciaEnviament"],
141
141
  self.service_data.shipment_subdivision,
142
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 test_build_mobile_paused_ticket(self, MockMobilePausedTicket):
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
- def test_create_with_shared_bond_id(self, mocker):
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 Canvi de tarifa oficina virtual",
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 Canvi de tarifa oficina virtual",
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 = ChangeTariffTicket(username, customer_code, fields_dict).create()
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", ChangeTariffTicketConfiguration.process_id
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
- ChangeTariffSharedBondTicket,
2
+ ChangeTariffMobilePackTicket,
3
3
  )
4
- from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_shared_bonds import (
5
- ChangeTariffTicketSharedBond,
4
+ from otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_mobile_pack import (
5
+ ChangeTariffTicketMobilePack,
6
6
  )
7
7
 
8
8
 
9
- class TestCaseChangeTariffTicketSharedBonds:
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.change_tariff_ticket_shared_bonds.OTRSClient",
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("shared_bond_creator"):
29
+ if fields.get("pack_creator"):
30
30
  return ticket_creator_mock
31
31
  else:
32
32
  return ticket_mock
33
33
 
34
- ChangeTariffSharedBondTicketMock = mocker.patch(
35
- "otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_shared_bonds.ChangeTariffSharedBondTicket",
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
- ChangeTariffTicketSharedBond(username, customer_code, fields_dict).create()
60
+ ChangeTariffTicketMobilePack(username, customer_code, fields_dict).create()
61
61
 
62
- assert ChangeTariffSharedBondTicketMock.call_count == 2
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
- ChangeTariffSharedBondTicketMock = mocker.patch(
79
- "otrs_somconnexio.otrs_models.ticket_types.change_tariff_ticket_shared_bonds.ChangeTariffSharedBondTicket",
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
- ChangeTariffTicketSharedBond(username, customer_code, {}).update(
82
+ ChangeTariffTicketMobilePack(username, customer_code, {}).update(
83
83
  ticket_id, article, dynamic_fields, state
84
84
  )
85
85
 
86
- ChangeTariffSharedBondTicketMock.assert_called_once_with(
86
+ ChangeTariffMobilePackTicketMock.assert_called_once_with(
87
87
  username, customer_code, {}
88
88
  )
89
- ChangeTariffSharedBondTicketMock.return_value.update.assert_called_once_with(
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 TestCaseChangeTariffSharedBondTicket:
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
- "shared_bond_creator": True,
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 = ChangeTariffSharedBondTicket(
123
+ ticket = ChangeTariffMobilePackTicket(
124
124
  username, customer_code, fields_dict
125
125
  ).create()
126
126