io.electrum.vas.model.TenderAdvice Maven / Gradle / Ivy
package io.electrum.vas.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import static io.electrum.vas.Utils.toIndentedString;
/**
* An advice that notifies of the successful completion of a transaction. Confirmations should only be implemented by
* service implementations where additional information is present in the confirmation. Otherwise, a single message
* implementation is preferable
*/
@ApiModel(description = "An advice that notifies of the successful completion of a transaction. Confirmations should only be implemented by service implementations where additional information is present in the confirmation. Otherwise, a single message implementation is preferable")
public class TenderAdvice extends BasicAdvice {
protected List tenders = new ArrayList<>();
/**
* An array of tenders used to pay for the transaction
**/
public TenderAdvice tenders(List tenders) {
this.tenders = tenders;
return this;
}
@ApiModelProperty(required = true, value = "An array of tenders used to pay for the transaction")
@JsonProperty("tenders")
public List getTenders() {
return tenders;
}
public void setTenders(List tenders) {
this.tenders = tenders;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TenderAdvice {\n");
sb.append(" id: ").append(Utils.toIndentedString(id)).append("\n");
sb.append(" requestId: ").append(Utils.toIndentedString(requestId)).append("\n");
sb.append(" time: ").append(Utils.toIndentedString(time)).append("\n");
sb.append(" linkData: ").append(Utils.toIndentedString(linkData)).append("\n");
sb.append(" tenders: ").append(toIndentedString(tenders)).append("\n");
sb.append("}");
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy