Add postcode method

This commit is contained in:
albert
2021-10-06 15:13:49 +08:00
parent 6f72cb24c5
commit 89a63c9f30
@@ -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);
}