
io.electrum.cardaccount.model.FundsTransfer Maven / Gradle / Ivy
The newest version!
/*
* Electrum Gateway Card-Account API
* The Electrum Gateway Card-Account API defines an interface for card and account management.
*
* OpenAPI spec version: 0.0.600
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.electrum.cardaccount.model;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.electrum.vas.model.LedgerAmount;
import io.swagger.annotations.ApiModelProperty;
/**
* FundsTransfer
*/
public class FundsTransfer {
@JsonProperty("amount")
private LedgerAmount amount = null;
@JsonProperty("fromEntityId")
private String fromEntityId = null;
@JsonProperty("toEntityId")
private String toEntityId = null;
@JsonProperty("transferType")
private FundsTransferType transferType;
public FundsTransfer amount(LedgerAmount amount) {
this.amount = amount;
return this;
}
/**
* Get amount
*
* @return amount
**/
@JsonProperty("amount")
@ApiModelProperty(required = true, value = "")
@NotNull
public LedgerAmount getAmount() {
return amount;
}
public void setAmount(LedgerAmount amount) {
this.amount = amount;
}
public FundsTransfer fromId(String fromEntityId) {
this.fromEntityId = fromEntityId;
return this;
}
/**
* The ID of the card/account from which to deduct funds.
*
* @return fromId
**/
@JsonProperty("fromEntityId")
@ApiModelProperty(required = true, value = "The ID of the card/account from which to deduct funds.")
@NotNull
public String getFromEntityId() {
return fromEntityId;
}
public void setFromEntityId(String fromEntityId) {
this.fromEntityId = fromEntityId;
}
public FundsTransfer toEntityId(String toEntityId) {
this.toEntityId = toEntityId;
return this;
}
/**
* The ID of the card/account onto which to load the funds.
*
* @return toId
**/
@JsonProperty("toEntityId")
@ApiModelProperty(required = true, value = "The ID of the card/account onto which to load the funds.")
@NotNull
public String getToEntityId() {
return toEntityId;
}
public void setToEntityId(String toEntityId) {
this.toEntityId = toEntityId;
}
/**
* Get the funds transfer type.
*
* @return amount
**/
@JsonProperty("transferType")
@ApiModelProperty(required = true, value = "")
@NotNull
public FundsTransferType getTransferType() {
return transferType;
}
public void setTransferType(FundsTransferType transferType) {
this.transferType = transferType;
}
public FundsTransfer transferType(FundsTransferType transferType) {
this.transferType = transferType;
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FundsTransfer fundsTransfer = (FundsTransfer) o;
return Objects.equals(this.amount, fundsTransfer.amount)
&& Objects.equals(this.fromEntityId, fundsTransfer.fromEntityId)
&& Objects.equals(this.toEntityId, fundsTransfer.toEntityId)
&& Objects.equals(this.transferType, fundsTransfer.transferType);
}
@Override
public int hashCode() {
return Objects.hash(amount, fromEntityId, toEntityId, transferType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountFundsTransfer {\n");
sb.append(" amount: ").append(Utils.toIndentedString(amount)).append("\n");
sb.append(" fromAccountId: ").append(Utils.toIndentedString(fromEntityId)).append("\n");
sb.append(" toAccountId: ").append(Utils.toIndentedString(toEntityId)).append("\n");
sb.append(" transferType: ").append(Utils.toIndentedString(transferType)).append("\n");
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy