@Override public String getMainEntityName() { return getName(); } }
public void createCountry() { Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States"); countryService.save(country); ISOCountry isoCountry = new ISOCountryImpl(); isoCountry.setAlpha2("US"); isoCountry.setName("UNITED STATES"); isoService.save(isoCountry); }
public CheckoutForm() { shippingAddress = new AddressImpl(); billingAddress = new AddressImpl(); shippingAddress.setPhonePrimary(new PhoneImpl()); billingAddress.setPhonePrimary(new PhoneImpl()); shippingAddress.setPhoneSecondary(new PhoneImpl()); billingAddress.setPhoneSecondary(new PhoneImpl()); shippingAddress.setPhoneFax(new PhoneImpl()); billingAddress.setPhoneFax(new PhoneImpl()); shippingAddress.setIsoCountryAlpha2(new ISOCountryImpl()); billingAddress.setIsoCountryAlpha2(new ISOCountryImpl()); isSameAddress = true; /** * @deprecated - setCountry() and setState() on address have been deprecated in favor of ISO standardization. * Leaving here for legacy implementations. */ shippingAddress.setCountry(new CountryImpl()); billingAddress.setCountry(new CountryImpl()); shippingAddress.setState(new StateImpl()); billingAddress.setState(new StateImpl()); }
private Address buildAddress() { Address address = new AddressImpl(); address.setAddressLine1("123 Test Rd"); address.setCity("Dallas"); address.setFirstName("Jeff"); address.setLastName("Fischer"); address.setPostalCode("75240"); address.setPrimaryPhone("972-978-9067"); State state = new StateImpl(); state.setAbbreviation("ALL"); state.setName("ALL"); address.setState(state); Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States"); state.setCountry(country); address.setCountry(country); ISOCountry isoCountry = new ISOCountryImpl(); isoCountry.setAlpha2("US"); isoCountry.setName("UNITED STATES"); address.setIsoCountryAlpha2(isoCountry); return address; } }
address.setPostalCode("75240"); address.setPrimaryPhone("972-978-9067"); Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States");
group1.setService(ShippingServiceType.BANDED_SHIPPING.getType()); Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States");
address1.setCity("Dallas"); Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States"); address2.setCity("Dallas"); Country country2 = new CountryImpl(); country2.setAbbreviation("US"); country2.setName("United States");
address1.setCity("Dallas"); Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States"); address2.setCity("Dallas"); Country country2 = new CountryImpl(); country2.setAbbreviation("US"); country2.setName("United States");
Country country = new CountryImpl(); country.setAbbreviation("US"); country.setName("United States");