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.BasicRequest;
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 BasicRequest request = null;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy