@blocklet/payment-react
Version:
Reusable react components for payment kit v2
164 lines (163 loc) • 2.82 kB
TypeScript
export declare const postalCodePatterns: {
GB: RegExp;
JE: RegExp;
GG: RegExp;
IM: RegExp;
US: RegExp;
CA: RegExp;
DE: RegExp;
JP: RegExp;
FR: RegExp;
AU: RegExp;
IT: RegExp;
CH: RegExp;
AT: RegExp;
ES: RegExp;
NL: RegExp;
BE: RegExp;
DK: RegExp;
SE: RegExp;
NO: RegExp;
BR: RegExp;
PT: RegExp;
FI: RegExp;
AX: RegExp;
KR: RegExp;
CN: RegExp;
TW: RegExp;
SG: RegExp;
DZ: RegExp;
AD: RegExp;
AR: RegExp;
AM: RegExp;
AZ: RegExp;
BH: RegExp;
BD: RegExp;
BB: RegExp;
BY: RegExp;
BM: RegExp;
BA: RegExp;
IO: RegExp;
BN: RegExp;
BG: RegExp;
KH: RegExp;
CV: RegExp;
CL: RegExp;
CR: RegExp;
HR: RegExp;
CY: RegExp;
CZ: RegExp;
DO: RegExp;
EC: RegExp;
EG: RegExp;
EE: RegExp;
FO: RegExp;
GE: RegExp;
GR: RegExp;
GL: RegExp;
GT: RegExp;
HT: RegExp;
HN: RegExp;
HU: RegExp;
IS: RegExp;
IN: RegExp;
ID: RegExp;
IL: RegExp;
JO: RegExp;
KZ: RegExp;
KE: RegExp;
KW: RegExp;
LA: RegExp;
LV: RegExp;
LB: RegExp;
LI: RegExp;
LT: RegExp;
LU: RegExp;
MK: RegExp;
MY: RegExp;
MV: RegExp;
MT: RegExp;
MU: RegExp;
MX: RegExp;
MD: RegExp;
MC: RegExp;
MA: RegExp;
NP: RegExp;
NZ: RegExp;
NI: RegExp;
NG: RegExp;
OM: RegExp;
PK: RegExp;
PY: RegExp;
PH: RegExp;
PL: RegExp;
PR: RegExp;
RO: RegExp;
RU: RegExp;
SM: RegExp;
SA: RegExp;
SN: RegExp;
SK: RegExp;
SI: RegExp;
ZA: RegExp;
LK: RegExp;
TJ: RegExp;
TH: RegExp;
TN: RegExp;
TR: RegExp;
TM: RegExp;
UA: RegExp;
UY: RegExp;
UZ: RegExp;
VA: RegExp;
VE: RegExp;
ZM: RegExp;
AS: RegExp;
CC: RegExp;
CK: RegExp;
RS: RegExp;
ME: RegExp;
CS: RegExp;
YU: RegExp;
CX: RegExp;
ET: RegExp;
FK: RegExp;
NF: RegExp;
FM: RegExp;
GF: RegExp;
GN: RegExp;
GP: RegExp;
GS: RegExp;
GU: RegExp;
GW: RegExp;
HM: RegExp;
IQ: RegExp;
KG: RegExp;
LR: RegExp;
LS: RegExp;
MG: RegExp;
MH: RegExp;
MN: RegExp;
MP: RegExp;
MQ: RegExp;
NC: RegExp;
NE: RegExp;
VI: RegExp;
VN: RegExp;
PF: RegExp;
PG: RegExp;
PM: RegExp;
PN: RegExp;
PW: RegExp;
RE: RegExp;
SH: RegExp;
SJ: RegExp;
SO: RegExp;
SZ: RegExp;
TC: RegExp;
WF: RegExp;
XK: RegExp;
YT: RegExp;
};
export declare function validatePostalCode(postalCode: string, country?: string): boolean;
export declare function getFieldValidation(fieldName: string, validations?: Record<string, any>, locale?: string): Record<string, any>;