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

Add new postal codes to DOM.ts #614

Merged
merged 1 commit into from
Oct 2, 2024
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- Two new postal codes to Dominican Republic (DOM) country file.

### Fixed

- Changed the rules for France (FRA) so the number field is shown to users.
Expand Down
8 changes: 5 additions & 3 deletions react/country/DOM.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TWO_LEVELS } from '../constants'
import { secondLevelPostalCodes } from '../transforms/postalCodes'
import { getOneLevel, getTwoLevels } from '../transforms/addressFieldsOptions'
import { secondLevelPostalCodes } from '../transforms/postalCodes'
import type { PostalCodeRules } from '../types/rules'

// Based on sheet provided by Rodolfo Bússola:
Expand Down Expand Up @@ -44,7 +44,8 @@ const countryData = {
'El Pino': '63400'
},
'Distrito Nacional': {
'Santo Domingo De Guzmán': '10101'
'Santo Domingo De Guzmán': '10101',
'Santo Domingo Distrito Nacional': '10100'
},
Duarte: {
'San Francisco de Macorís': '31000',
Expand All @@ -70,7 +71,8 @@ const countryData = {
Moca: '53011',
'Cayetano Germosén': '56100',
'Gaspar Hernández': '56200',
'Jamao Al Norte': '56400'
'Jamao Al Norte': '56400',
'El Higuerito': '56000'
},
'Hato Mayor': {
'Hato Mayor': '25000',
Expand Down
Loading