package platform.ibm.com.customer.api.v0.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; import java.lang.Object; import java.lang.Override; import java.lang.String; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/platforminitiative/customer-api/0.0.1-dev/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * * customer Update Form */ @JsonIgnoreProperties( ignoreUnknown = true ) public class CustomerUpdateForm { private final String financialAccountNumber; private final String customerName; private final String email; private final String address1; private final String address2; private final String city; private final String state; private final String zip; @JsonCreator public CustomerUpdateForm(@JsonProperty("financialAccountNumber") String financialAccountNumber, @JsonProperty("customerName") String customerName, @JsonProperty("email") String email, @JsonProperty("address1") String address1, @JsonProperty("address2") String address2, @JsonProperty("city") String city, @JsonProperty("state") String state, @JsonProperty("zip") String zip) { this.financialAccountNumber = financialAccountNumber; this.customerName = customerName; this.email = email; this.address1 = address1; this.address2 = address2; this.city = city; this.state = state; this.zip = zip; } /** * Financial Account Number */ public String getFinancialAccountNumber() { return financialAccountNumber; } /** * Customer Name */ public String getCustomerName() { return customerName; } /** * Email */ public String getEmail() { return email; } /** * Address1 */ public String getAddress1() { return address1; } /** * Address2 */ public String getAddress2() { return address2; } /** * City */ public String getCity() { return city; } /** * State */ public String getState() { return state; } /** * Zip */ public String getZip() { return zip; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CustomerUpdateForm that = (CustomerUpdateForm) o; if (financialAccountNumber != null ? !financialAccountNumber.equals(that.financialAccountNumber) : that.financialAccountNumber != null) return false; if (customerName != null ? !customerName.equals(that.customerName) : that.customerName != null) return false; if (email != null ? !email.equals(that.email) : that.email != null) return false; if (address1 != null ? !address1.equals(that.address1) : that.address1 != null) return false; if (address2 != null ? !address2.equals(that.address2) : that.address2 != null) return false; if (city != null ? !city.equals(that.city) : that.city != null) return false; if (state != null ? !state.equals(that.state) : that.state != null) return false; if (zip != null ? !zip.equals(that.zip) : that.zip != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (financialAccountNumber != null ? financialAccountNumber.hashCode() : 0); result = 31 * result + (customerName != null ? customerName.hashCode() : 0); result = 31 * result + (email != null ? email.hashCode() : 0); result = 31 * result + (address1 != null ? address1.hashCode() : 0); result = 31 * result + (address2 != null ? address2.hashCode() : 0); result = 31 * result + (city != null ? city.hashCode() : 0); result = 31 * result + (state != null ? state.hashCode() : 0); result = 31 * result + (zip != null ? zip.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return platform.ibm.com.customer.api.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static CustomerUpdateForm parseJson(String json) throws IOException { return platform.ibm.com.customer.api.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, CustomerUpdateForm.class); } }