
io.electrum.suv.api.models.RefundResponse Maven / Gradle / Ivy
package io.electrum.suv.api.models;
import java.util.Objects;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.electrum.vas.model.Amounts;
import io.electrum.vas.model.Transaction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(description = "Information about the voucher redemption outcome.")
public final class RefundResponse extends Transaction {
private Amounts amounts = null;
private Voucher voucher = null;
public RefundResponse amounts(Amounts amounts) {
this.amounts = amounts;
return this;
}
/**
* Indicates the amount for which the voucher was refunded.
*
*
**/
@JsonProperty("amounts")
@ApiModelProperty(value = "Indicates the amount for which the voucher was refunded. ")
@Valid
public Amounts getAmounts() {
return amounts;
}
public void setAmounts(Amounts amounts) {
this.amounts = amounts;
}
public RefundResponse voucher(Voucher voucher) {
this.voucher = voucher;
return this;
}
/**
* The voucher that was refunded.
*
*
**/
@JsonProperty("voucher")
@ApiModelProperty(value = "The voucher that was refunded.")
@Valid
public Voucher getVoucher() {
return voucher;
}
public void setVoucher(Voucher voucher) {
this.voucher = voucher;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
if (!super.equals(o))
return false;
RefundResponse that = (RefundResponse) o;
return Objects.equals(amounts, that.amounts) && Objects.equals(voucher, that.voucher);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), amounts, voucher);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RefundResponse {\n");
sb.append(" id: ").append(Utils.toIndentedString(id)).append("\n");
sb.append(" time: ").append(Utils.toIndentedString(time)).append("\n");
sb.append(" originator: ").append(Utils.toIndentedString(originator)).append("\n");
sb.append(" client: ").append(Utils.toIndentedString(client)).append("\n");
sb.append(" settlementEntity: ").append(Utils.toIndentedString(settlementEntity)).append("\n");
sb.append(" receiver: ").append(Utils.toIndentedString(receiver)).append("\n");
sb.append(" thirdPartyIdentifiers: ").append(Utils.toIndentedString(thirdPartyIdentifiers)).append("\n");
sb.append(" slipData: ").append(Utils.toIndentedString(slipData)).append("\n");
sb.append(" basketRef: ").append(Utils.toIndentedString(basketRef)).append("\n");
sb.append(" tranType: ").append(Utils.toIndentedString(tranType)).append("\n");
sb.append(" srcAccType: ").append(Utils.toIndentedString(srcAccType)).append("\n");
sb.append(" destAccType: ").append(Utils.toIndentedString(destAccType)).append("\n");
sb.append(" amounts: ").append(Utils.toIndentedString(amounts)).append("\n");
sb.append(" voucher: ").append(Utils.toIndentedString(voucher)).append("\n");
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy