Merge pull request #661 from ilyasovalbert/fix/add_postcode

Add postcode method
This commit is contained in:
Ricky Yim
2021-12-21 20:38:28 +11:00
committed by GitHub
@@ -35,6 +35,10 @@ public class Address {
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);
}