
Model.Upv1capturecontextsOrderInformationBillToCompany 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;
/**
* Upv1capturecontextsOrderInformationBillToCompany
*/
public class Upv1capturecontextsOrderInformationBillToCompany {
@SerializedName("name")
private String name = null;
@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;
public Upv1capturecontextsOrderInformationBillToCompany name(String name) {
this.name = name;
return this;
}
/**
* Name of the customer's company.
* @return name
**/
@ApiModelProperty(example = "Visa Inc", value = "Name of the customer's company.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Upv1capturecontextsOrderInformationBillToCompany address1(String address1) {
this.address1 = address1;
return this;
}
/**
* Payment card billing street address as it appears on the credit card issuer's records.
* @return address1
**/
@ApiModelProperty(example = "277 Park Avenue", value = "Payment card billing street address as it appears on the credit card issuer's records. ")
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
public Upv1capturecontextsOrderInformationBillToCompany address2(String address2) {
this.address2 = address2;
return this;
}
/**
* Used for additional address information. For example: _Attention: Accounts Payable_ Optional field.
* @return address2
**/
@ApiModelProperty(example = "50th Floor", value = "Used for additional address information. For example: _Attention: Accounts Payable_ Optional field. ")
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
this.address2 = address2;
}
public Upv1capturecontextsOrderInformationBillToCompany address3(String address3) {
this.address3 = address3;
return this;
}
/**
* Additional address information (third line of the billing address)
* @return address3
**/
@ApiModelProperty(example = "Desk NY-50110", value = "Additional address information (third line of the billing address)")
public String getAddress3() {
return address3;
}
public void setAddress3(String address3) {
this.address3 = address3;
}
public Upv1capturecontextsOrderInformationBillToCompany address4(String address4) {
this.address4 = address4;
return this;
}
/**
* Additional address information (fourth line of the billing address)
* @return address4
**/
@ApiModelProperty(example = "address4", value = "Additional address information (fourth line of the billing address) ")
public String getAddress4() {
return address4;
}
public void setAddress4(String address4) {
this.address4 = address4;
}
public Upv1capturecontextsOrderInformationBillToCompany administrativeArea(String administrativeArea) {
this.administrativeArea = administrativeArea;
return this;
}
/**
* State or province of the billing 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 = "NY", value = "State or province of the billing 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 Upv1capturecontextsOrderInformationBillToCompany buildingNumber(String buildingNumber) {
this.buildingNumber = buildingNumber;
return this;
}
/**
* Building number in the street address.
* @return buildingNumber
**/
@ApiModelProperty(example = "buildingNumber", value = "Building number in the street address. ")
public String getBuildingNumber() {
return buildingNumber;
}
public void setBuildingNumber(String buildingNumber) {
this.buildingNumber = buildingNumber;
}
public Upv1capturecontextsOrderInformationBillToCompany country(String country) {
this.country = country;
return this;
}
/**
* Payment card billing country. Use the two-character [ISO Standard Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf).
* @return country
**/
@ApiModelProperty(example = "US", value = "Payment card billing country. 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 Upv1capturecontextsOrderInformationBillToCompany district(String district) {
this.district = district;
return this;
}
/**
* Customer's neighborhood, community, or region (a barrio in Brazil) within the city or municipality
* @return district
**/
@ApiModelProperty(example = "district", value = "Customer's neighborhood, community, or region (a barrio in Brazil) within the city or municipality ")
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
public Upv1capturecontextsOrderInformationBillToCompany locality(String locality) {
this.locality = locality;
return this;
}
/**
* Payment card billing city.
* @return locality
**/
@ApiModelProperty(example = "New York", value = "Payment card billing city. ")
public String getLocality() {
return locality;
}
public void setLocality(String locality) {
this.locality = locality;
}
public Upv1capturecontextsOrderInformationBillToCompany postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Postal code for the billing address. The postal code must consist of 5 to 9 digits.
* @return postalCode
**/
@ApiModelProperty(example = "10172", value = "Postal code for the billing address. The postal code must consist of 5 to 9 digits. ")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Upv1capturecontextsOrderInformationBillToCompany upv1capturecontextsOrderInformationBillToCompany = (Upv1capturecontextsOrderInformationBillToCompany) o;
return Objects.equals(this.name, upv1capturecontextsOrderInformationBillToCompany.name) &&
Objects.equals(this.address1, upv1capturecontextsOrderInformationBillToCompany.address1) &&
Objects.equals(this.address2, upv1capturecontextsOrderInformationBillToCompany.address2) &&
Objects.equals(this.address3, upv1capturecontextsOrderInformationBillToCompany.address3) &&
Objects.equals(this.address4, upv1capturecontextsOrderInformationBillToCompany.address4) &&
Objects.equals(this.administrativeArea, upv1capturecontextsOrderInformationBillToCompany.administrativeArea) &&
Objects.equals(this.buildingNumber, upv1capturecontextsOrderInformationBillToCompany.buildingNumber) &&
Objects.equals(this.country, upv1capturecontextsOrderInformationBillToCompany.country) &&
Objects.equals(this.district, upv1capturecontextsOrderInformationBillToCompany.district) &&
Objects.equals(this.locality, upv1capturecontextsOrderInformationBillToCompany.locality) &&
Objects.equals(this.postalCode, upv1capturecontextsOrderInformationBillToCompany.postalCode);
}
@Override
public int hashCode() {
return Objects.hash(name, address1, address2, address3, address4, administrativeArea, buildingNumber, country, district, locality, postalCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Upv1capturecontextsOrderInformationBillToCompany {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" address1: ").append(toIndentedString(address1)).append("\n");
sb.append(" address2: ").append(toIndentedString(address2)).append("\n");
sb.append(" address3: ").append(toIndentedString(address3)).append("\n");
sb.append(" address4: ").append(toIndentedString(address4)).append("\n");
sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n");
sb.append(" buildingNumber: ").append(toIndentedString(buildingNumber)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" district: ").append(toIndentedString(district)).append("\n");
sb.append(" locality: ").append(toIndentedString(locality)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).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