io.electrum.giftcard.api.model.LookupResponse Maven / Gradle / Ivy
package io.electrum.giftcard.api.model;
import io.electrum.vas.Utils;
import io.electrum.vas.model.Transaction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Information about the result of processing the gift card lookup request.
*/
@ApiModel(description = "Information about the result of processing the gift card lookup request.")
public class LookupResponse extends Transaction {
private GiftcardAmounts amounts = null;
private Card card = null;
private PosInfo posInfo = null;
private Product product = null;
private SlipData slipData = null;
public LookupResponse amounts(GiftcardAmounts amounts) {
this.amounts = amounts;
return this;
}
/**
* Indicates the balance of the gift card at the time of the request.
*
* @return amounts
**/
@ApiModelProperty(required = true, value = "Indicates the balance of the gift card at the time of the request.")
@JsonProperty("amounts")
@NotNull
public GiftcardAmounts getAmounts() {
return amounts;
}
public void setAmounts(GiftcardAmounts amounts) {
this.amounts = amounts;
}
/**
* Information about the gift card for which information is being requested.
*
* @return card
**/
@ApiModelProperty(required = true, value = "Information about the gift card for which information is being requested.")
@JsonProperty("card")
@NotNull
public Card getCard() {
return card;
}
public void setCard(Card card) {
this.card = card;
}
public LookupResponse posInfo(PosInfo posInfo) {
this.posInfo = posInfo;
return this;
}
/**
* Information about how card details were captured at the POS.
*
* @return posInfo
**/
@ApiModelProperty(required = true, value = "Information about how card details were captured at the POS.")
@JsonProperty("posInfo")
@NotNull
public PosInfo getPosInfo() {
return posInfo;
}
public void setPosInfo(PosInfo posInfo) {
this.posInfo = posInfo;
}
public LookupResponse product(Product product) {
this.product = product;
return this;
}
/**
* Information about the product associated with the gift card if the gift card has been activated.
*
* @return product
**/
@ApiModelProperty(value = "Information about the product associated with the gift card if the gift card has been activated.")
@JsonProperty("product")
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LookupResponse {\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(" amounts: ").append(Utils.toIndentedString(amounts)).append("\n");
sb.append(" card: ").append(Utils.toIndentedString(card)).append("\n");
sb.append(" posInfo: ").append(Utils.toIndentedString(posInfo)).append("\n");
sb.append(" product: ").append(Utils.toIndentedString(product)).append("\n");
sb.append(" slipData: ").append(Utils.toIndentedString(slipData)).append("\n");
sb.append("}");
return sb.toString();
}
}