Skip to content

Commit

Permalink
Merge pull request #614 from vtex/loc/16501-main
Browse files Browse the repository at this point in the history
Add new postal codes to DOM.ts
  • Loading branch information
GeorgeLimaDev authored Oct 2, 2024
2 parents bcb6f4b + 25de6ad commit 65b1b90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit 65b1b90

Please sign in to comment.