All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.electrum.vas.example.model.ExampleReversal Maven / Gradle / Ivy

There is a newer version: 3.19.0
Show newest version
package io.electrum.vas.example.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.model.BasicAdvice;
import io.electrum.vas.model.Transaction;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * An advice that notifies of the unsuccessful completion of a transaction
 */
public abstract class ExampleReversal extends BasicAdvice {

   protected Transaction request = null;

   /**
    * The request this reversal refers to
    **/
   public ExampleReversal request(Transaction request) {
      this.request = request;
      return this;
   }

   @ApiModelProperty(required = true, value = "The request this reversal refers to")
   @JsonProperty("request")
   @NotEmpty
   public Transaction getRequests() {
      return request;
   }

   public void setRequest(Transaction request) {
      this.request = request;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy