@financial-times/n-conversion-forms
Version:
Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).
71 lines (67 loc) • 1.22 kB
JavaScript
const { flattenObj } = require('./utilities');
const supportedPostcodeExamples = {
cemeaV1: {
AUT: '1708',
ARE: '', //match anything
BEL: '6596',
BGR: '4000',
HRV: '10000',
CZE: '122 00',
DNK: '1819',
EST: '10120',
FIN: '39500',
DEU: '17087',
GRC: '241 00',
HUN: '3821',
ISL: '149',
ISR: '1234567',
ITA: '23844',
LIE: '9485',
LTU: 'LT-12345',
LVA: 'LV-1010',
MLT: 'MST 2020',
MNE: '81250',
NLD: '6971 HJ',
NOR: '1608',
POL: '43-190',
PRT: '2525-517',
QAT: '', //match anything
ROU: '712341',
RUS: '191028',
SVK: '98401',
SVN: '8263',
TTO: '500234',
ZAF: '5189',
ESP: '37752',
SWE: '260 38',
CHE: '9424',
SRB: '11000',
},
cemeaV2: {
FRA: '95000',
LUX: '1009',
MCO: '98000',
},
apac: {
AUS: '2000',
CHN: '610000',
HKG: '', //match anything
IND: '401107',
IDN: '55165',
JPN: '100-0001',
KOR: '46500',
MYS: '59100',
NZL: '6011',
PHL: '2799',
SGP: '584163',
TWN: '100',
THA: '10330',
},
other: {
GBR: 'EC4M 9BT',
USA: '60411',
CAN: 'M5H 3E5',
},
};
const allSupportedPostcodeExamples = flattenObj(supportedPostcodeExamples);
module.exports = { allSupportedPostcodeExamples, supportedPostcodeExamples };