com.plaid.client.model.TransferRefund 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.343.0
*
*
* 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 com.plaid.client.model.TransferRefundStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;
/**
* Represents a refund within the Transfers API.
*/
@ApiModel(description = "Represents a refund within the Transfers API.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-03-22T21:32:38.660057Z[Etc/UTC]")
public class TransferRefund {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_TRANSFER_ID = "transfer_id";
@SerializedName(SERIALIZED_NAME_TRANSFER_ID)
private String transferId;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private String amount;
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private TransferRefundStatus status;
public static final String SERIALIZED_NAME_CREATED = "created";
@SerializedName(SERIALIZED_NAME_CREATED)
private OffsetDateTime created;
public TransferRefund id(String id) {
this.id = id;
return this;
}
/**
* Plaid’s unique identifier for a refund.
* @return id
**/
@ApiModelProperty(required = true, value = "Plaid’s unique identifier for a refund.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public TransferRefund transferId(String transferId) {
this.transferId = transferId;
return this;
}
/**
* The ID of the transfer to refund.
* @return transferId
**/
@ApiModelProperty(required = true, value = "The ID of the transfer to refund.")
public String getTransferId() {
return transferId;
}
public void setTransferId(String transferId) {
this.transferId = transferId;
}
public TransferRefund amount(String amount) {
this.amount = amount;
return this;
}
/**
* The amount of the refund (decimal string with two digits of precision e.g. \"10.00\").
* @return amount
**/
@ApiModelProperty(required = true, value = "The amount of the refund (decimal string with two digits of precision e.g. \"10.00\").")
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public TransferRefund status(TransferRefundStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public TransferRefundStatus getStatus() {
return status;
}
public void setStatus(TransferRefundStatus status) {
this.status = status;
}
public TransferRefund created(OffsetDateTime created) {
this.created = created;
return this;
}
/**
* The datetime when this refund was created. This will be of the form `2006-01-02T15:04:05Z`
* @return created
**/
@ApiModelProperty(required = true, value = "The datetime when this refund was created. This will be of the form `2006-01-02T15:04:05Z`")
public OffsetDateTime getCreated() {
return created;
}
public void setCreated(OffsetDateTime created) {
this.created = created;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransferRefund transferRefund = (TransferRefund) o;
return Objects.equals(this.id, transferRefund.id) &&
Objects.equals(this.transferId, transferRefund.transferId) &&
Objects.equals(this.amount, transferRefund.amount) &&
Objects.equals(this.status, transferRefund.status) &&
Objects.equals(this.created, transferRefund.created);
}
@Override
public int hashCode() {
return Objects.hash(id, transferId, amount, status, created);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransferRefund {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" transferId: ").append(toIndentedString(transferId)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).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 - 2025 Weber Informatics LLC | Privacy Policy