Skip to content

Commit

Permalink
Add postcode method
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasovalbert committed Oct 6, 2021
1 parent 6f72cb2 commit 89a63c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/github/javafaker/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public String zipCode() {
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
}

public String postcode() {
return faker.bothify(faker.fakeValuesService().resolve("address.postcode", this,faker));
}

public String zipCodeByState(String stateAbbr) {
return faker.fakeValuesService().resolve("address.postcode_by_state." + stateAbbr, this, faker);
}
Expand Down

0 comments on commit 89a63c9

Please sign in to comment.