package payp.mard2p.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.Double; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2-dev * User agent: apibuilder app.apibuilder.io/mard/mard2p-api/0.0.2-dev/android_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 and retrofit2 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 * */ @JsonIgnoreProperties( ignoreUnknown = true ) public class AccountForm { private final Long accountid; private final String ownerid; private final Double totalAmount; private final Double sold; private final Double debit; private final String currency; @JsonCreator public AccountForm(@JsonProperty("accountid") Long accountid, @JsonProperty("ownerid") String ownerid, @JsonProperty("total_amount") Double totalAmount, @JsonProperty("sold") Double sold, @JsonProperty("debit") Double debit, @JsonProperty("currency") String currency) { this.accountid = accountid; this.ownerid = ownerid; this.totalAmount = totalAmount; this.sold = sold; this.debit = debit; this.currency = currency; } /** * Internal unique identifier for this account. */ public Long getAccountid() { return accountid; } /** * The username registered in the application. */ public String getOwnerid() { return ownerid; } /** * The amount specific to the debit and sold account. This field allows the process transactions. */ public Double getTotalAmount() { return totalAmount; } /** * The amount specific to the balance account. This field allows the process transactions. */ public Double getSold() { return sold; } /** * The amount specific to the money merchant have to collect and pay. This field allows the process transactions. */ public Double getDebit() { return debit; } /** * The currency specific to location. */ public String getCurrency() { return currency; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AccountForm that = (AccountForm) o; if (accountid != null ? !accountid.equals(that.accountid) : that.accountid != null) return false; if (ownerid != null ? !ownerid.equals(that.ownerid) : that.ownerid != null) return false; if (totalAmount != null ? !totalAmount.equals(that.totalAmount) : that.totalAmount != null) return false; if (sold != null ? !sold.equals(that.sold) : that.sold != null) return false; if (debit != null ? !debit.equals(that.debit) : that.debit != null) return false; if (currency != null ? !currency.equals(that.currency) : that.currency != null) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (accountid != null ? accountid.hashCode() : 0); result = 31 * result + (ownerid != null ? ownerid.hashCode() : 0); result = 31 * result + (totalAmount != null ? totalAmount.hashCode() : 0); result = 31 * result + (sold != null ? sold.hashCode() : 0); result = 31 * result + (debit != null ? debit.hashCode() : 0); result = 31 * result + (currency != null ? currency.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return payp.mard2p.api.v0.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static AccountForm parseJson(String json) throws IOException { return payp.mard2p.api.v0.android.ApiBuilderObjectMapper.getInstance().readValue( json, AccountForm.class); } }