Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18240_Expiring_Emails #2306

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion queue_services/entity-emailer/src/entity_emailer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class _Config(): # pylint: disable=too-few-public-methods
DECIDE_BUSINESS_URL = os.getenv('DECIDE_BUSINESS_URL', '')
COLIN_URL = os.getenv('COLIN_URL', '')
CORP_FORMS_URL = os.getenv('CORP_FORMS_URL', '')

SOCIETIES_URL = os.getenv('SOCIETIES_URL', '')

class DevConfig(_Config): # pylint: disable=too-few-public-methods
"""Creates the Development Config object."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ def __is_colin(legal_type):
colin_list = ['CR', 'UL', 'CC', 'XCR', 'XUL', 'RLC']
return legal_type in colin_list


def _is_society(legal_type):
society_list = ['SO', 'XSO']
return legal_type in society_list

def __get_instruction_group(legal_type):
if __is_modernized(legal_type):
return 'modernized'
if __is_colin(legal_type):
return 'colin'
if _is_society(legal_type):
return 'so'
return ''


Expand Down Expand Up @@ -92,6 +97,7 @@ def process(email_info: dict, option) -> dict: # pylint: disable-msg=too-many-l
decide_business_url = current_app.config.get('DECIDE_BUSINESS_URL')
corp_online_url = current_app.config.get('COLIN_URL')
form_page_url = current_app.config.get('CORP_FORMS_URL')
societies_url = current_app.config.get('SOCIETIES_URL')

file_name_suffix = option.upper()
if option == Option.BEFORE_EXPIRY.value:
Expand All @@ -115,7 +121,8 @@ def process(email_info: dict, option) -> dict: # pylint: disable-msg=too-many-l
name_request_url=name_request_url,
decide_business_url=decide_business_url,
corp_online_url=corp_online_url,
form_page_url=form_page_url
form_page_url=form_page_url,
societies_url=societies_url
)

# get recipients
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Your Name Request is Expiring Soon

Your name request {{ nr_number }} for **{{ legal_name }}** is due to expire on {{ expiration_date }}.

If your name request expires:

* The approved name is no longer reserved for business registration and becomes available to the public
* You will need to submit and pay for a new name request

Finish registering a business with this name before it expires. If you are not ready to register a business yet, you can renew this name request to extend the expiry date.

---

# Option 1: Finish Registering a Business

Follow these steps to register your business using the approved name:

1. Visit {{ societies_url }}
2. Log in with your BCeID
3. Complete your Society application with the approved Name Request Number

---

# Option 2: Renew your Name Request

You may renew your name request to extend the expiry date by 56 days from the original date of expiry:

1. Visit {{ societies_url }}
2. Log in with your BCeID
3. Request a new name

---

# Your Name Request Details

**Name Request Number:**
{{ nr_number }}

**Name Request Expiry Date and Time:**
{{ expiration_date }}

---

[[nr-footer.html]]
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
Development release segment: .devN
"""

__version__ = '2.94.0' # pylint: disable=invalid-name
__version__ = '2.95.0' # pylint: disable=invalid-name