
io.electrum.cardaccount.model.Fee 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 javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.electrum.vas.model.LedgerAmount;
import io.swagger.annotations.ApiModelProperty;
/**
* Fee
*/
public class Fee {
@JsonProperty("feeType")
private FeeType feeType = null;
@JsonProperty("feeAmount")
private LedgerAmount feeAmount = null;
@JsonProperty("reference")
private String reference = null;
@JsonProperty("feeDescription")
private String feeDescription = null;
public Fee feeType(FeeType feeType) {
this.feeType = feeType;
return this;
}
/**
* Get feeType
*
* @return feeType
**/
@JsonProperty("feeType")
@ApiModelProperty(required = true, value = "")
@NotNull
@Size(min = 0, max = 40)
public FeeType getFeeType() {
return feeType;
}
public void setFeeType(FeeType feeType) {
this.feeType = feeType;
}
public Fee feeAmount(LedgerAmount feeAmount) {
this.feeAmount = feeAmount;
return this;
}
/**
* Get feeAmount
*
* @return feeAmount
**/
@JsonProperty("feeAmount")
@ApiModelProperty(required = true, value = "")
@NotNull
public LedgerAmount getFeeAmount() {
return feeAmount;
}
public void setFeeAmount(LedgerAmount feeAmount) {
this.feeAmount = feeAmount;
}
public Fee reference(String reference) {
this.reference = reference;
return this;
}
/**
* A unique value to reference the fee.
*
* @return reference
**/
@JsonProperty("reference")
@ApiModelProperty(required = true, value = "A unique value to reference the fee.")
@NotNull
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public Fee feeDescription(String feeDescription) {
this.feeDescription = feeDescription;
return this;
}
/**
* A description for the fee.
*
* @return feeDescription
**/
@JsonProperty("feeDescription")
@ApiModelProperty(value = "A description for the fee.")
@Size(min = 0, max = 15)
public String getFeeDescription() {
return feeDescription;
}
public void setFeeDescription(String feeDescription) {
this.feeDescription = feeDescription;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Fee fee = (Fee) o;
return Objects.equals(this.feeType, fee.feeType) && Objects.equals(this.feeAmount, fee.feeAmount)
&& Objects.equals(this.reference, fee.reference) && Objects.equals(this.feeDescription, fee.feeDescription);
}
@Override
public int hashCode() {
return Objects.hash(feeType, feeAmount, reference, feeDescription);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Fee {\n");
sb.append(" feeType: ").append(Utils.toIndentedString(feeType)).append("\n");
sb.append(" feeAmount: ").append(Utils.toIndentedString(feeAmount)).append("\n");
sb.append(" reference: ").append(Utils.toIndentedString(reference)).append("\n");
sb.append(" feeDescription: ").append(Utils.toIndentedString(feeDescription)).append("\n");
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy