Skip to content

Commit 89a63c9

Browse files
committed
Add postcode method
1 parent 6f72cb2 commit 89a63c9

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)