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

Model.Upv1capturecontextsCaptureMandate Maven / Gradle / Ivy

/*
 * 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 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;
import java.util.ArrayList;
import java.util.List;

/**
 * Upv1capturecontextsCaptureMandate
 */

public class Upv1capturecontextsCaptureMandate {
  @SerializedName("billingType")
  private String billingType = null;

  @SerializedName("requestEmail")
  private Boolean requestEmail = null;

  @SerializedName("requestPhone")
  private Boolean requestPhone = null;

  @SerializedName("requestShipping")
  private Boolean requestShipping = null;

  @SerializedName("shipToCountries")
  private List shipToCountries = null;

  @SerializedName("showAcceptedNetworkIcons")
  private Boolean showAcceptedNetworkIcons = null;

  public Upv1capturecontextsCaptureMandate billingType(String billingType) {
    this.billingType = billingType;
    return this;
  }

   /**
   * This field defines the type of Billing Address information captured through the Manual card Entry UX. FULL, PARTIAL
   * @return billingType
  **/
  @ApiModelProperty(example = "FULL", value = "This field defines the type of Billing Address information captured through the Manual card Entry UX. FULL, PARTIAL")
  public String getBillingType() {
    return billingType;
  }

  public void setBillingType(String billingType) {
    this.billingType = billingType;
  }

  public Upv1capturecontextsCaptureMandate requestEmail(Boolean requestEmail) {
    this.requestEmail = requestEmail;
    return this;
  }

   /**
   * Capture email contact information in the manual card acceptance screens.
   * @return requestEmail
  **/
  @ApiModelProperty(value = "Capture email contact information in the manual card acceptance screens.")
  public Boolean isRequestEmail() {
    return requestEmail;
  }

  public void setRequestEmail(Boolean requestEmail) {
    this.requestEmail = requestEmail;
  }

  public Upv1capturecontextsCaptureMandate requestPhone(Boolean requestPhone) {
    this.requestPhone = requestPhone;
    return this;
  }

   /**
   * Capture email contact information in the manual card acceptance screens.
   * @return requestPhone
  **/
  @ApiModelProperty(value = "Capture email contact information in the manual card acceptance screens.")
  public Boolean isRequestPhone() {
    return requestPhone;
  }

  public void setRequestPhone(Boolean requestPhone) {
    this.requestPhone = requestPhone;
  }

  public Upv1capturecontextsCaptureMandate requestShipping(Boolean requestShipping) {
    this.requestShipping = requestShipping;
    return this;
  }

   /**
   * Capture email contact information in the manual card acceptance screens.
   * @return requestShipping
  **/
  @ApiModelProperty(value = "Capture email contact information in the manual card acceptance screens.")
  public Boolean isRequestShipping() {
    return requestShipping;
  }

  public void setRequestShipping(Boolean requestShipping) {
    this.requestShipping = requestShipping;
  }

  public Upv1capturecontextsCaptureMandate shipToCountries(List shipToCountries) {
    this.shipToCountries = shipToCountries;
    return this;
  }

  public Upv1capturecontextsCaptureMandate addShipToCountriesItem(String shipToCountriesItem) {
    if (this.shipToCountries == null) {
      this.shipToCountries = new ArrayList();
    }
    this.shipToCountries.add(shipToCountriesItem);
    return this;
  }

   /**
   * List of countries available to ship to. Use the two- character ISO Standard Country Codes.
   * @return shipToCountries
  **/
  @ApiModelProperty(value = "List of countries available to ship to. Use the two- character ISO Standard Country Codes.")
  public List getShipToCountries() {
    return shipToCountries;
  }

  public void setShipToCountries(List shipToCountries) {
    this.shipToCountries = shipToCountries;
  }

  public Upv1capturecontextsCaptureMandate showAcceptedNetworkIcons(Boolean showAcceptedNetworkIcons) {
    this.showAcceptedNetworkIcons = showAcceptedNetworkIcons;
    return this;
  }

   /**
   * Show the list of accepted payment icons in the payment button
   * @return showAcceptedNetworkIcons
  **/
  @ApiModelProperty(value = "Show the list of accepted payment icons in the payment button")
  public Boolean isShowAcceptedNetworkIcons() {
    return showAcceptedNetworkIcons;
  }

  public void setShowAcceptedNetworkIcons(Boolean showAcceptedNetworkIcons) {
    this.showAcceptedNetworkIcons = showAcceptedNetworkIcons;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Upv1capturecontextsCaptureMandate upv1capturecontextsCaptureMandate = (Upv1capturecontextsCaptureMandate) o;
    return Objects.equals(this.billingType, upv1capturecontextsCaptureMandate.billingType) &&
        Objects.equals(this.requestEmail, upv1capturecontextsCaptureMandate.requestEmail) &&
        Objects.equals(this.requestPhone, upv1capturecontextsCaptureMandate.requestPhone) &&
        Objects.equals(this.requestShipping, upv1capturecontextsCaptureMandate.requestShipping) &&
        Objects.equals(this.shipToCountries, upv1capturecontextsCaptureMandate.shipToCountries) &&
        Objects.equals(this.showAcceptedNetworkIcons, upv1capturecontextsCaptureMandate.showAcceptedNetworkIcons);
  }

  @Override
  public int hashCode() {
    return Objects.hash(billingType, requestEmail, requestPhone, requestShipping, shipToCountries, showAcceptedNetworkIcons);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Upv1capturecontextsCaptureMandate {\n");
    
    sb.append("    billingType: ").append(toIndentedString(billingType)).append("\n");
    sb.append("    requestEmail: ").append(toIndentedString(requestEmail)).append("\n");
    sb.append("    requestPhone: ").append(toIndentedString(requestPhone)).append("\n");
    sb.append("    requestShipping: ").append(toIndentedString(requestShipping)).append("\n");
    sb.append("    shipToCountries: ").append(toIndentedString(shipToCountries)).append("\n");
    sb.append("    showAcceptedNetworkIcons: ").append(toIndentedString(showAcceptedNetworkIcons)).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