Skip to content

Commit 8f20178

Browse files
authored
Merge pull request #661 from ilyasovalbert/fix/add_postcode
Add postcode method
2 parents d00e9c1 + 89a63c9 commit 8f20178

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/github/javafaker/Address.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public String zipCode() {
3535
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
3636
}
3737

38+
public String postcode() {
39+
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
40+
}
41+
3842
public String zipCodeByState(String stateAbbr) {
3943
return faker.fakeValuesService().resolve("address.postcode_by_state." + stateAbbr, this, faker);
4044
}

0 commit comments

Comments
 (0)