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

com.mastercard.masterpass.merchant.model.AddressExtensionPoint Maven / Gradle / Ivy

Go to download

Masterpass Merchant Checkout SDK on MasterCard Developer Zone (https://developer.mastercard.com)

The newest version!
package com.mastercard.masterpass.merchant.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;



/**
 * This class contains methods to get additional address details.
 **/
@Root(name = "AddressExtensionPoint")
@XmlRootElement (name = "AddressExtensionPoint")
public class AddressExtensionPoint   {
  
  @SerializedName("Line4")
  @Element(name = "Line4", required = false)  
  private String line4 = null;
  
  @SerializedName("Line5")
  @Element(name = "Line5", required = false)  
  private String line5 = null;
  
  
  /**
   * Gets the address line 4 used to additional address information.
   * 
   * @return	the address line 4 used to additional address information.
   **/
  @XmlElement(name = "Line4")
  public String getLine4() {
    return line4;
  }
  
  /**
  * Sets the address line 4 used to additional address information.
  *
  * @param line4 the address line 4 used to additional address information.
  */
    public AddressExtensionPoint line4(String line4) {
    this.line4 = line4;
    return this;
  }
  
  
    

  
  /**
   * Gets the address line 5 used to remaining address information.
   * 
   * @return	the address line 5 used to remaining address information.
   **/
  @XmlElement(name = "Line5")
  public String getLine5() {
    return line5;
  }
  
  /**
  * Sets the address line 5 used to remaining address information.
  *
  * @param line5 the address line 5 used to remaining address information.
  */
    public AddressExtensionPoint line5(String line5) {
    this.line5 = line5;
    return this;
  }
  
  
    

  
  /**
   * Returns true if the arguments are equal to each other and false
   * otherwise. Consequently, if both arguments are null, true is returned and
   * if exactly one argument is null, false is returned. Otherwise, equality
   * is determined by using the equals method of the first argument.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AddressExtensionPoint addressExtensionPoint = (AddressExtensionPoint) o;
    return Objects.equals(line4, addressExtensionPoint.line4) &&
        Objects.equals(line5, addressExtensionPoint.line5);
  }
  
  /**
  *	Generates a hash code for a sequence of input values.
  */
  @Override
  public int hashCode() {
    return Objects.hash(line4, line5);
  }
  
  /**
  *	Returns the result of calling toString for a non-null argument and "null" for a null argument.
  */	
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AddressExtensionPoint {\n");
    
    sb.append("    line4: ").append(toIndentedString(line4)).append("\n");
    sb.append("    line5: ").append(toIndentedString(line5)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy