com.plaid.client.model.PaystubOverrideDistributionBreakdown Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.534.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.plaid.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Information about the accounts that the payment was distributed to.
*/
@ApiModel(description = "Information about the accounts that the payment was distributed to.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-05T19:36:13.426392Z[Etc/UTC]")
public class PaystubOverrideDistributionBreakdown {
public static final String SERIALIZED_NAME_ACCOUNT_NAME = "account_name";
@SerializedName(SERIALIZED_NAME_ACCOUNT_NAME)
private String accountName;
public static final String SERIALIZED_NAME_BANK_NAME = "bank_name";
@SerializedName(SERIALIZED_NAME_BANK_NAME)
private String bankName;
public static final String SERIALIZED_NAME_CURRENT_AMOUNT = "current_amount";
@SerializedName(SERIALIZED_NAME_CURRENT_AMOUNT)
private Double currentAmount;
public static final String SERIALIZED_NAME_CURRENCY = "currency";
@SerializedName(SERIALIZED_NAME_CURRENCY)
private String currency;
public static final String SERIALIZED_NAME_MASK = "mask";
@SerializedName(SERIALIZED_NAME_MASK)
private String mask;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public PaystubOverrideDistributionBreakdown accountName(String accountName) {
this.accountName = accountName;
return this;
}
/**
* Name of the account for the given distribution.
* @return accountName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the account for the given distribution.")
public String getAccountName() {
return accountName;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public PaystubOverrideDistributionBreakdown bankName(String bankName) {
this.bankName = bankName;
return this;
}
/**
* The name of the bank that the payment is being deposited to.
* @return bankName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name of the bank that the payment is being deposited to.")
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public PaystubOverrideDistributionBreakdown currentAmount(Double currentAmount) {
this.currentAmount = currentAmount;
return this;
}
/**
* The amount distributed to this account.
* @return currentAmount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The amount distributed to this account.")
public Double getCurrentAmount() {
return currentAmount;
}
public void setCurrentAmount(Double currentAmount) {
this.currentAmount = currentAmount;
}
public PaystubOverrideDistributionBreakdown currency(String currency) {
this.currency = currency;
return this;
}
/**
* The ISO-4217 currency code of the net pay. Always `null` if `unofficial_currency_code` is non-null.
* @return currency
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The ISO-4217 currency code of the net pay. Always `null` if `unofficial_currency_code` is non-null.")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public PaystubOverrideDistributionBreakdown mask(String mask) {
this.mask = mask;
return this;
}
/**
* The last 2-4 alphanumeric characters of an account's official account number.
* @return mask
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The last 2-4 alphanumeric characters of an account's official account number.")
public String getMask() {
return mask;
}
public void setMask(String mask) {
this.mask = mask;
}
public PaystubOverrideDistributionBreakdown type(String type) {
this.type = type;
return this;
}
/**
* Type of the account that the paystub was sent to (e.g. 'checking').
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Type of the account that the paystub was sent to (e.g. 'checking').")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaystubOverrideDistributionBreakdown paystubOverrideDistributionBreakdown = (PaystubOverrideDistributionBreakdown) o;
return Objects.equals(this.accountName, paystubOverrideDistributionBreakdown.accountName) &&
Objects.equals(this.bankName, paystubOverrideDistributionBreakdown.bankName) &&
Objects.equals(this.currentAmount, paystubOverrideDistributionBreakdown.currentAmount) &&
Objects.equals(this.currency, paystubOverrideDistributionBreakdown.currency) &&
Objects.equals(this.mask, paystubOverrideDistributionBreakdown.mask) &&
Objects.equals(this.type, paystubOverrideDistributionBreakdown.type);
}
@Override
public int hashCode() {
return Objects.hash(accountName, bankName, currentAmount, currency, mask, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaystubOverrideDistributionBreakdown {\n");
sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n");
sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n");
sb.append(" currentAmount: ").append(toIndentedString(currentAmount)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" mask: ").append(toIndentedString(mask)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy