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

Model.Body Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * CyberSource Merged Spec
 * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
 *
 * OpenAPI spec version: 0.0.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package Model;

import java.util.Objects;
import java.util.Arrays;
import Model.Accountupdaterv1batchesIncluded;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Body
 */

public class Body {
  @SerializedName("type")
  private String type = "oneOff";

  @SerializedName("included")
  private Accountupdaterv1batchesIncluded included = null;

  @SerializedName("merchantReference")
  private String merchantReference = null;

  @SerializedName("notificationEmail")
  private String notificationEmail = null;

  public Body type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Valid Values:   * oneOff   * amexRegistration 
   * @return type
  **/
  @ApiModelProperty(value = "Valid Values:   * oneOff   * amexRegistration ")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Body included(Accountupdaterv1batchesIncluded included) {
    this.included = included;
    return this;
  }

   /**
   * Get included
   * @return included
  **/
  @ApiModelProperty(required = true, value = "")
  public Accountupdaterv1batchesIncluded getIncluded() {
    return included;
  }

  public void setIncluded(Accountupdaterv1batchesIncluded included) {
    this.included = included;
  }

  public Body merchantReference(String merchantReference) {
    this.merchantReference = merchantReference;
    return this;
  }

   /**
   * Reference used by merchant to identify batch.
   * @return merchantReference
  **/
  @ApiModelProperty(example = "TC50171_3", value = "Reference used by merchant to identify batch.")
  public String getMerchantReference() {
    return merchantReference;
  }

  public void setMerchantReference(String merchantReference) {
    this.merchantReference = merchantReference;
  }

  public Body notificationEmail(String notificationEmail) {
    this.notificationEmail = notificationEmail;
    return this;
  }

   /**
   * Email used to notify the batch status.
   * @return notificationEmail
  **/
  @ApiModelProperty(example = "[email protected]", required = true, value = "Email used to notify the batch status.")
  public String getNotificationEmail() {
    return notificationEmail;
  }

  public void setNotificationEmail(String notificationEmail) {
    this.notificationEmail = notificationEmail;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Body body = (Body) o;
    return Objects.equals(this.type, body.type) &&
        Objects.equals(this.included, body.included) &&
        Objects.equals(this.merchantReference, body.merchantReference) &&
        Objects.equals(this.notificationEmail, body.notificationEmail);
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, included, merchantReference, notificationEmail);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Body {\n");
    
    if (type != null) sb.append("    type: ").append(toIndentedString(type)).append("\n");
    if (included != null) sb.append("    included: ").append(toIndentedString(included)).append("\n");
    if (merchantReference != null) sb.append("    merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
    if (notificationEmail != null) sb.append("    notificationEmail: ").append(toIndentedString(notificationEmail)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      // return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy