Commit 73c97c2
Feat/update rates table (#398)
* feat: add SMS pricing data files including country rates, prefixes, and DLR snapshots
* feat: implement international billing rates updater with supporting tests
* feat: add README for SMS pricing updater with usage instructions and validation checklist
* task: regenerate billing rates table
* feat: update recipient validation tests to utilize international billing rates
* fix: update paths in README and test files to reflect new directory structure
* chore: fix mypy issues
* fix: update paths in README for international billing rates and updater script
* Update scripts/sms_pricing/country_list.txt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix readme paths
* chore: rename pricing file
* feat: add argument parsing for price file in international billing rates updater
* feat: add PRICE_FILE requirement for update-rates target in Makefile and update README
* fix: update AWS SMS price file reference in README and tests
* fix: correct DEFAULT_BASE_RATE value in international billing rates updater to be USD since AWS rates are USD
* feat: update billable units for various countries in international billing rates
* refactor: remove shared prefix strategy parameter from billing rate functions
* feat: add refresh-dlr-snapshot target to Makefile and update README instructions
* chore: rename country list file for clarity
* chore: fix references to allowed country list
* feat: replace allowed_country_list.txt with allowed_country_list.csv for improved structure
* chore: add Guadeloupe to country prefixes list
* feat: update allowed country list handling to support CSV format and improve billing rate calculations
* chore: re-generate full list of countries and multipliers including ones we cant send to
* feat: enhance international rates merging logic to handle multiple country prefixes
* chore: re-generate rates table
* feat: enhance international rates calculation to resolve conflicting billable units using max strategy
* feat: update country prefixes handling and refactor related logic in billing rates updater
* chore: regen billing rates
* feat: update attribute name from 'we_can_send' to 'can_send' in international billing rates
* feat: update attribute name from 'we_can_send' to 'can_send' in tests for international billing rates
* chore: regen billing rate table
* feat: enhance price loading function to return country names and improve compatibility
* chore: regen billing rates using AWS country names
* docs: update README to correct allowed country list file format and clarify updater instructions
* feat: add test to verify allowed countries are reflected in YAML output
* fix: improve compatibility message for optional parameters in build_international_rates function
* chore: update version to 53.2.16 in requirements and pyproject files
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent c37ffbe commit 73c97c2
15 files changed
Lines changed: 1991 additions & 1847 deletions
File tree
- .github/actions/waffles
- notifications_utils
- scripts
- sms_pricing
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments