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

Model.Upv1capturecontextsOrderInformationShipTo 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 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;

/**
 * Upv1capturecontextsOrderInformationShipTo
 */

public class Upv1capturecontextsOrderInformationShipTo {
  @SerializedName("address1")
  private String address1 = null;

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

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

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

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

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

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

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

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

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

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

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

  public Upv1capturecontextsOrderInformationShipTo address1(String address1) {
    this.address1 = address1;
    return this;
  }

   /**
   * First line of the shipping address. 
   * @return address1
  **/
  @ApiModelProperty(example = "CyberSource", value = "First line of the shipping address. ")
  public String getAddress1() {
    return address1;
  }

  public void setAddress1(String address1) {
    this.address1 = address1;
  }

  public Upv1capturecontextsOrderInformationShipTo address2(String address2) {
    this.address2 = address2;
    return this;
  }

   /**
   * Second line of the shipping address. 
   * @return address2
  **/
  @ApiModelProperty(example = "Victoria House", value = "Second line of the shipping address. ")
  public String getAddress2() {
    return address2;
  }

  public void setAddress2(String address2) {
    this.address2 = address2;
  }

  public Upv1capturecontextsOrderInformationShipTo address3(String address3) {
    this.address3 = address3;
    return this;
  }

   /**
   * Third line of the shipping address. 
   * @return address3
  **/
  @ApiModelProperty(example = "15-17 Gloucester Street", value = "Third line of the shipping address. ")
  public String getAddress3() {
    return address3;
  }

  public void setAddress3(String address3) {
    this.address3 = address3;
  }

  public Upv1capturecontextsOrderInformationShipTo address4(String address4) {
    this.address4 = address4;
    return this;
  }

   /**
   * Fourth line of the shipping address.
   * @return address4
  **/
  @ApiModelProperty(example = "string", value = "Fourth line of the shipping address.")
  public String getAddress4() {
    return address4;
  }

  public void setAddress4(String address4) {
    this.address4 = address4;
  }

  public Upv1capturecontextsOrderInformationShipTo administrativeArea(String administrativeArea) {
    this.administrativeArea = administrativeArea;
    return this;
  }

   /**
   * State or province of the shipping address.  Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) 
   * @return administrativeArea
  **/
  @ApiModelProperty(example = "CA", value = "State or province of the shipping address.  Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) ")
  public String getAdministrativeArea() {
    return administrativeArea;
  }

  public void setAdministrativeArea(String administrativeArea) {
    this.administrativeArea = administrativeArea;
  }

  public Upv1capturecontextsOrderInformationShipTo buildingNumber(String buildingNumber) {
    this.buildingNumber = buildingNumber;
    return this;
  }

   /**
   * Building number in the street address. 
   * @return buildingNumber
  **/
  @ApiModelProperty(example = "string", value = "Building number in the street address. ")
  public String getBuildingNumber() {
    return buildingNumber;
  }

  public void setBuildingNumber(String buildingNumber) {
    this.buildingNumber = buildingNumber;
  }

  public Upv1capturecontextsOrderInformationShipTo country(String country) {
    this.country = country;
    return this;
  }

   /**
   * Country of the shipping address.  Use the two-character [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) 
   * @return country
  **/
  @ApiModelProperty(example = "GB", value = "Country of the shipping address.  Use the two-character [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) ")
  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }

  public Upv1capturecontextsOrderInformationShipTo district(String district) {
    this.district = district;
    return this;
  }

   /**
   * Neighborhood, community, or region within a city or municipality.
   * @return district
  **/
  @ApiModelProperty(example = "string", value = "Neighborhood, community, or region within a city or municipality.")
  public String getDistrict() {
    return district;
  }

  public void setDistrict(String district) {
    this.district = district;
  }

  public Upv1capturecontextsOrderInformationShipTo locality(String locality) {
    this.locality = locality;
    return this;
  }

   /**
   * City of the shipping address. 
   * @return locality
  **/
  @ApiModelProperty(example = "Belfast", value = "City of the shipping address. ")
  public String getLocality() {
    return locality;
  }

  public void setLocality(String locality) {
    this.locality = locality;
  }

  public Upv1capturecontextsOrderInformationShipTo postalCode(String postalCode) {
    this.postalCode = postalCode;
    return this;
  }

   /**
   * Postal code for the shipping address. The postal code must consist of 5 to 9 digits. 
   * @return postalCode
  **/
  @ApiModelProperty(example = "BT1 4LS", value = "Postal code for the shipping address. The postal code must consist of 5 to 9 digits. ")
  public String getPostalCode() {
    return postalCode;
  }

  public void setPostalCode(String postalCode) {
    this.postalCode = postalCode;
  }

  public Upv1capturecontextsOrderInformationShipTo firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

   /**
   * First name of the recipient
   * @return firstName
  **/
  @ApiModelProperty(example = "John", value = "First name of the recipient")
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public Upv1capturecontextsOrderInformationShipTo lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

   /**
   * Last name of the recipient.
   * @return lastName
  **/
  @ApiModelProperty(example = "Doe", value = "Last name of the recipient.")
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Upv1capturecontextsOrderInformationShipTo upv1capturecontextsOrderInformationShipTo = (Upv1capturecontextsOrderInformationShipTo) o;
    return Objects.equals(this.address1, upv1capturecontextsOrderInformationShipTo.address1) &&
        Objects.equals(this.address2, upv1capturecontextsOrderInformationShipTo.address2) &&
        Objects.equals(this.address3, upv1capturecontextsOrderInformationShipTo.address3) &&
        Objects.equals(this.address4, upv1capturecontextsOrderInformationShipTo.address4) &&
        Objects.equals(this.administrativeArea, upv1capturecontextsOrderInformationShipTo.administrativeArea) &&
        Objects.equals(this.buildingNumber, upv1capturecontextsOrderInformationShipTo.buildingNumber) &&
        Objects.equals(this.country, upv1capturecontextsOrderInformationShipTo.country) &&
        Objects.equals(this.district, upv1capturecontextsOrderInformationShipTo.district) &&
        Objects.equals(this.locality, upv1capturecontextsOrderInformationShipTo.locality) &&
        Objects.equals(this.postalCode, upv1capturecontextsOrderInformationShipTo.postalCode) &&
        Objects.equals(this.firstName, upv1capturecontextsOrderInformationShipTo.firstName) &&
        Objects.equals(this.lastName, upv1capturecontextsOrderInformationShipTo.lastName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(address1, address2, address3, address4, administrativeArea, buildingNumber, country, district, locality, postalCode, firstName, lastName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Upv1capturecontextsOrderInformationShipTo {\n");
    
    if (address1 != null) sb.append("    address1: ").append(toIndentedString(address1)).append("\n");
    if (address2 != null) sb.append("    address2: ").append(toIndentedString(address2)).append("\n");
    if (address3 != null) sb.append("    address3: ").append(toIndentedString(address3)).append("\n");
    if (address4 != null) sb.append("    address4: ").append(toIndentedString(address4)).append("\n");
    if (administrativeArea != null) sb.append("    administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n");
    if (buildingNumber != null) sb.append("    buildingNumber: ").append(toIndentedString(buildingNumber)).append("\n");
    if (country != null) sb.append("    country: ").append(toIndentedString(country)).append("\n");
    if (district != null) sb.append("    district: ").append(toIndentedString(district)).append("\n");
    if (locality != null) sb.append("    locality: ").append(toIndentedString(locality)).append("\n");
    if (postalCode != null) sb.append("    postalCode: ").append(toIndentedString(postalCode)).append("\n");
    if (firstName != null) sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    if (lastName != null) sb.append("    lastName: ").append(toIndentedString(lastName)).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