
com.infobip.model.WhatsAppInteractiveOrderDetailsImporterAddress Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Importer address. Required when catalogId is not provided. It's supported only for UPI PayU payments.
*/
public class WhatsAppInteractiveOrderDetailsImporterAddress {
private String firstAddressLine;
private String secondAddressLine;
private String city;
private String zoneCode;
private String postalCode;
private String countryCode;
/**
* Sets firstAddressLine.
*
* Field description:
* First line of the address.
*
* @param firstAddressLine
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress firstAddressLine(String firstAddressLine) {
this.firstAddressLine = firstAddressLine;
return this;
}
/**
* Returns firstAddressLine.
*
* Field description:
* First line of the address.
*
* @return firstAddressLine
*/
@JsonProperty("firstAddressLine")
public String getFirstAddressLine() {
return firstAddressLine;
}
/**
* Sets firstAddressLine.
*
* Field description:
* First line of the address.
*
* @param firstAddressLine
*/
@JsonProperty("firstAddressLine")
public void setFirstAddressLine(String firstAddressLine) {
this.firstAddressLine = firstAddressLine;
}
/**
* Sets secondAddressLine.
*
* Field description:
* Second line of the address.
*
* @param secondAddressLine
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress secondAddressLine(String secondAddressLine) {
this.secondAddressLine = secondAddressLine;
return this;
}
/**
* Returns secondAddressLine.
*
* Field description:
* Second line of the address.
*
* @return secondAddressLine
*/
@JsonProperty("secondAddressLine")
public String getSecondAddressLine() {
return secondAddressLine;
}
/**
* Sets secondAddressLine.
*
* Field description:
* Second line of the address.
*
* @param secondAddressLine
*/
@JsonProperty("secondAddressLine")
public void setSecondAddressLine(String secondAddressLine) {
this.secondAddressLine = secondAddressLine;
}
/**
* Sets city.
*
* Field description:
* City.
*
* @param city
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress city(String city) {
this.city = city;
return this;
}
/**
* Returns city.
*
* Field description:
* City.
*
* @return city
*/
@JsonProperty("city")
public String getCity() {
return city;
}
/**
* Sets city.
*
* Field description:
* City.
*
* @param city
*/
@JsonProperty("city")
public void setCity(String city) {
this.city = city;
}
/**
* Sets zoneCode.
*
* Field description:
* Zone code.
*
* @param zoneCode
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress zoneCode(String zoneCode) {
this.zoneCode = zoneCode;
return this;
}
/**
* Returns zoneCode.
*
* Field description:
* Zone code.
*
* @return zoneCode
*/
@JsonProperty("zoneCode")
public String getZoneCode() {
return zoneCode;
}
/**
* Sets zoneCode.
*
* Field description:
* Zone code.
*
* @param zoneCode
*/
@JsonProperty("zoneCode")
public void setZoneCode(String zoneCode) {
this.zoneCode = zoneCode;
}
/**
* Sets postalCode.
*
* Field description:
* Postal code.
*
* @param postalCode
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Returns postalCode.
*
* Field description:
* Postal code.
*
* @return postalCode
*/
@JsonProperty("postalCode")
public String getPostalCode() {
return postalCode;
}
/**
* Sets postalCode.
*
* Field description:
* Postal code.
*
* @param postalCode
*/
@JsonProperty("postalCode")
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
/**
* Sets countryCode.
*
* Field description:
* Country code.
*
* @param countryCode
* @return This {@link WhatsAppInteractiveOrderDetailsImporterAddress instance}.
*/
public WhatsAppInteractiveOrderDetailsImporterAddress countryCode(String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* Returns countryCode.
*
* Field description:
* Country code.
*
* @return countryCode
*/
@JsonProperty("countryCode")
public String getCountryCode() {
return countryCode;
}
/**
* Sets countryCode.
*
* Field description:
* Country code.
*
* @param countryCode
*/
@JsonProperty("countryCode")
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WhatsAppInteractiveOrderDetailsImporterAddress whatsAppInteractiveOrderDetailsImporterAddress =
(WhatsAppInteractiveOrderDetailsImporterAddress) o;
return Objects.equals(this.firstAddressLine, whatsAppInteractiveOrderDetailsImporterAddress.firstAddressLine)
&& Objects.equals(
this.secondAddressLine, whatsAppInteractiveOrderDetailsImporterAddress.secondAddressLine)
&& Objects.equals(this.city, whatsAppInteractiveOrderDetailsImporterAddress.city)
&& Objects.equals(this.zoneCode, whatsAppInteractiveOrderDetailsImporterAddress.zoneCode)
&& Objects.equals(this.postalCode, whatsAppInteractiveOrderDetailsImporterAddress.postalCode)
&& Objects.equals(this.countryCode, whatsAppInteractiveOrderDetailsImporterAddress.countryCode);
}
@Override
public int hashCode() {
return Objects.hash(firstAddressLine, secondAddressLine, city, zoneCode, postalCode, countryCode);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class WhatsAppInteractiveOrderDetailsImporterAddress {")
.append(newLine)
.append(" firstAddressLine: ")
.append(toIndentedString(firstAddressLine))
.append(newLine)
.append(" secondAddressLine: ")
.append(toIndentedString(secondAddressLine))
.append(newLine)
.append(" city: ")
.append(toIndentedString(city))
.append(newLine)
.append(" zoneCode: ")
.append(toIndentedString(zoneCode))
.append(newLine)
.append(" postalCode: ")
.append(toIndentedString(postalCode))
.append(newLine)
.append(" countryCode: ")
.append(toIndentedString(countryCode))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}