Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c54ba51
feat: add SMS pricing data files including country rates, prefixes, a…
andrewleith Mar 4, 2026
4978203
feat: implement international billing rates updater with supporting t…
andrewleith Mar 4, 2026
6f910b7
feat: add README for SMS pricing updater with usage instructions and …
andrewleith Mar 4, 2026
4406906
task: regenerate billing rates table
andrewleith Mar 4, 2026
b9ab44e
feat: update recipient validation tests to utilize international bill…
andrewleith Mar 5, 2026
9003418
fix: update paths in README and test files to reflect new directory s…
andrewleith Mar 5, 2026
afa2251
chore: fix mypy issues
andrewleith Mar 5, 2026
782d521
fix: update paths in README for international billing rates and updat…
andrewleith Mar 5, 2026
a7c968c
Update scripts/sms_pricing/country_list.txt
andrewleith Mar 5, 2026
0f67220
fix readme paths
andrewleith Mar 5, 2026
a7f5ac7
chore: rename pricing file
andrewleith Mar 5, 2026
bed7c3e
feat: add argument parsing for price file in international billing ra…
andrewleith Mar 5, 2026
17faf72
feat: add PRICE_FILE requirement for update-rates target in Makefile …
andrewleith Mar 5, 2026
fa91d8b
fix: update AWS SMS price file reference in README and tests
andrewleith Mar 5, 2026
11f3217
fix: correct DEFAULT_BASE_RATE value in international billing rates u…
andrewleith Mar 5, 2026
5f02592
feat: update billable units for various countries in international bi…
andrewleith Mar 5, 2026
56950d8
refactor: remove shared prefix strategy parameter from billing rate f…
andrewleith Mar 5, 2026
21d9712
feat: add refresh-dlr-snapshot target to Makefile and update README i…
andrewleith Mar 5, 2026
475bd2a
chore: rename country list file for clarity
andrewleith Mar 5, 2026
0561c70
chore: fix references to allowed country list
andrewleith Mar 6, 2026
fcafac3
feat: replace allowed_country_list.txt with allowed_country_list.csv …
andrewleith Mar 6, 2026
9863487
chore: add Guadeloupe to country prefixes list
andrewleith Mar 6, 2026
fb51492
feat: update allowed country list handling to support CSV format and …
andrewleith Mar 6, 2026
b9bf7ac
chore: re-generate full list of countries and multipliers including o…
andrewleith Mar 6, 2026
a2a4c5f
feat: enhance international rates merging logic to handle multiple co…
andrewleith Mar 6, 2026
442f76c
chore: re-generate rates table
andrewleith Mar 6, 2026
be65bfe
feat: enhance international rates calculation to resolve conflicting …
andrewleith Mar 6, 2026
afb794f
feat: update country prefixes handling and refactor related logic in …
andrewleith Mar 6, 2026
8ae7855
chore: regen billing rates
andrewleith Mar 6, 2026
3c839bd
feat: update attribute name from 'we_can_send' to 'can_send' in inter…
andrewleith Mar 6, 2026
3348a8d
feat: update attribute name from 'we_can_send' to 'can_send' in tests…
andrewleith Mar 6, 2026
7cdfc4b
chore: regen billing rate table
andrewleith Mar 6, 2026
159081e
feat: enhance price loading function to return country names and impr…
andrewleith Mar 6, 2026
4109b06
chore: regen billing rates using AWS country names
andrewleith Mar 6, 2026
195fb7a
docs: update README to correct allowed country list file format and c…
andrewleith Mar 6, 2026
966f161
feat: add test to verify allowed countries are reflected in YAML output
andrewleith Mar 6, 2026
870f639
fix: improve compatibility message for optional parameters in build_i…
andrewleith Mar 6, 2026
7237d1d
chore: update version to 53.2.16 in requirements and pyproject files
andrewleith Mar 9, 2026
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 .github/actions/waffles/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ docopt==0.6.2
Flask==2.3.3
markupsafe==2.1.5
setuptools==78.1.1 # required for distutils in Python 3.12
git+https://github.com/cds-snc/notifier-utils.git@53.2.15#egg=notifications-utils
git+https://github.com/cds-snc/notifier-utils.git@53.2.16#egg=notifications-utils
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,13 @@ format:
poetry sort

clean:
rm -rf cache venv
rm -rf cache venv

.PHONY: update-rates
update-rates: ## Regenerate `notifications_utils/international_billing_rates.yml`. `PRICE_FILE` must be provided.
@/bin/bash -c 'if [ -z """$(PRICE_FILE)""" ]; then echo "ERROR: PRICE_FILE is required. Example: make update-rates PRICE_FILE=scripts/sms_pricing/aws_prices_sms_mar_2026.csv"; exit 1; fi'
python3 scripts/sms_pricing/international_billing_rates_updater.py --price-file $(PRICE_FILE)

.PHONY: refresh-dlr-snapshot
refresh-dlr-snapshot: ## Rebuild `scripts/sms_pricing/dlr_snapshot.yml` from current output YAML
python3 -c 'from scripts.sms_pricing.international_billing_rates_updater import DEFAULT_DLR_SNAPSHOT_PATH, DEFAULT_OUTPUT_PATH, build_dlr_snapshot, write_yaml_file; write_yaml_file(build_dlr_snapshot(DEFAULT_OUTPUT_PATH), DEFAULT_DLR_SNAPSHOT_PATH)'
Loading
Loading