
Model.GenerateUnifiedCheckoutCaptureContextRequest 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 Model.Upv1capturecontextsCaptureMandate;
import Model.Upv1capturecontextsCheckoutApiInitialization;
import Model.Upv1capturecontextsOrderInformation;
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;
/**
* GenerateUnifiedCheckoutCaptureContextRequest
*/
public class GenerateUnifiedCheckoutCaptureContextRequest {
@SerializedName("targetOrigins")
private List targetOrigins = null;
@SerializedName("clientVersion")
private String clientVersion = null;
@SerializedName("allowedCardNetworks")
private List allowedCardNetworks = null;
@SerializedName("allowedPaymentTypes")
private List allowedPaymentTypes = null;
@SerializedName("country")
private String country = null;
@SerializedName("locale")
private String locale = null;
@SerializedName("captureMandate")
private Upv1capturecontextsCaptureMandate captureMandate = null;
@SerializedName("orderInformation")
private Upv1capturecontextsOrderInformation orderInformation = null;
@SerializedName("checkoutApiInitialization")
private Upv1capturecontextsCheckoutApiInitialization checkoutApiInitialization = null;
public GenerateUnifiedCheckoutCaptureContextRequest targetOrigins(List targetOrigins) {
this.targetOrigins = targetOrigins;
return this;
}
public GenerateUnifiedCheckoutCaptureContextRequest addTargetOriginsItem(String targetOriginsItem) {
if (this.targetOrigins == null) {
this.targetOrigins = new ArrayList();
}
this.targetOrigins.add(targetOriginsItem);
return this;
}
/**
* Get targetOrigins
* @return targetOrigins
**/
@ApiModelProperty(value = "")
public List getTargetOrigins() {
return targetOrigins;
}
public void setTargetOrigins(List targetOrigins) {
this.targetOrigins = targetOrigins;
}
public GenerateUnifiedCheckoutCaptureContextRequest clientVersion(String clientVersion) {
this.clientVersion = clientVersion;
return this;
}
/**
* version number of Unified Checkout being used
* @return clientVersion
**/
@ApiModelProperty(example = "0.19", value = "version number of Unified Checkout being used")
public String getClientVersion() {
return clientVersion;
}
public void setClientVersion(String clientVersion) {
this.clientVersion = clientVersion;
}
public GenerateUnifiedCheckoutCaptureContextRequest allowedCardNetworks(List allowedCardNetworks) {
this.allowedCardNetworks = allowedCardNetworks;
return this;
}
public GenerateUnifiedCheckoutCaptureContextRequest addAllowedCardNetworksItem(String allowedCardNetworksItem) {
if (this.allowedCardNetworks == null) {
this.allowedCardNetworks = new ArrayList();
}
this.allowedCardNetworks.add(allowedCardNetworksItem);
return this;
}
/**
* Get allowedCardNetworks
* @return allowedCardNetworks
**/
@ApiModelProperty(value = "")
public List getAllowedCardNetworks() {
return allowedCardNetworks;
}
public void setAllowedCardNetworks(List allowedCardNetworks) {
this.allowedCardNetworks = allowedCardNetworks;
}
public GenerateUnifiedCheckoutCaptureContextRequest allowedPaymentTypes(List allowedPaymentTypes) {
this.allowedPaymentTypes = allowedPaymentTypes;
return this;
}
public GenerateUnifiedCheckoutCaptureContextRequest addAllowedPaymentTypesItem(String allowedPaymentTypesItem) {
if (this.allowedPaymentTypes == null) {
this.allowedPaymentTypes = new ArrayList();
}
this.allowedPaymentTypes.add(allowedPaymentTypesItem);
return this;
}
/**
* Get allowedPaymentTypes
* @return allowedPaymentTypes
**/
@ApiModelProperty(value = "")
public List getAllowedPaymentTypes() {
return allowedPaymentTypes;
}
public void setAllowedPaymentTypes(List allowedPaymentTypes) {
this.allowedPaymentTypes = allowedPaymentTypes;
}
public GenerateUnifiedCheckoutCaptureContextRequest country(String country) {
this.country = country;
return this;
}
/**
* Country the purchase is originating from (e.g. country of the merchant). Use the two- character ISO Standard
* @return country
**/
@ApiModelProperty(example = "US", value = "Country the purchase is originating from (e.g. country of the merchant). Use the two- character ISO Standard")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public GenerateUnifiedCheckoutCaptureContextRequest locale(String locale) {
this.locale = locale;
return this;
}
/**
* Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code
* @return locale
**/
@ApiModelProperty(example = "en_US", value = "Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code")
public String getLocale() {
return locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
public GenerateUnifiedCheckoutCaptureContextRequest captureMandate(Upv1capturecontextsCaptureMandate captureMandate) {
this.captureMandate = captureMandate;
return this;
}
/**
* Get captureMandate
* @return captureMandate
**/
@ApiModelProperty(value = "")
public Upv1capturecontextsCaptureMandate getCaptureMandate() {
return captureMandate;
}
public void setCaptureMandate(Upv1capturecontextsCaptureMandate captureMandate) {
this.captureMandate = captureMandate;
}
public GenerateUnifiedCheckoutCaptureContextRequest orderInformation(Upv1capturecontextsOrderInformation orderInformation) {
this.orderInformation = orderInformation;
return this;
}
/**
* Get orderInformation
* @return orderInformation
**/
@ApiModelProperty(value = "")
public Upv1capturecontextsOrderInformation getOrderInformation() {
return orderInformation;
}
public void setOrderInformation(Upv1capturecontextsOrderInformation orderInformation) {
this.orderInformation = orderInformation;
}
public GenerateUnifiedCheckoutCaptureContextRequest checkoutApiInitialization(Upv1capturecontextsCheckoutApiInitialization checkoutApiInitialization) {
this.checkoutApiInitialization = checkoutApiInitialization;
return this;
}
/**
* Get checkoutApiInitialization
* @return checkoutApiInitialization
**/
@ApiModelProperty(value = "")
public Upv1capturecontextsCheckoutApiInitialization getCheckoutApiInitialization() {
return checkoutApiInitialization;
}
public void setCheckoutApiInitialization(Upv1capturecontextsCheckoutApiInitialization checkoutApiInitialization) {
this.checkoutApiInitialization = checkoutApiInitialization;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GenerateUnifiedCheckoutCaptureContextRequest generateUnifiedCheckoutCaptureContextRequest = (GenerateUnifiedCheckoutCaptureContextRequest) o;
return Objects.equals(this.targetOrigins, generateUnifiedCheckoutCaptureContextRequest.targetOrigins) &&
Objects.equals(this.clientVersion, generateUnifiedCheckoutCaptureContextRequest.clientVersion) &&
Objects.equals(this.allowedCardNetworks, generateUnifiedCheckoutCaptureContextRequest.allowedCardNetworks) &&
Objects.equals(this.allowedPaymentTypes, generateUnifiedCheckoutCaptureContextRequest.allowedPaymentTypes) &&
Objects.equals(this.country, generateUnifiedCheckoutCaptureContextRequest.country) &&
Objects.equals(this.locale, generateUnifiedCheckoutCaptureContextRequest.locale) &&
Objects.equals(this.captureMandate, generateUnifiedCheckoutCaptureContextRequest.captureMandate) &&
Objects.equals(this.orderInformation, generateUnifiedCheckoutCaptureContextRequest.orderInformation) &&
Objects.equals(this.checkoutApiInitialization, generateUnifiedCheckoutCaptureContextRequest.checkoutApiInitialization);
}
@Override
public int hashCode() {
return Objects.hash(targetOrigins, clientVersion, allowedCardNetworks, allowedPaymentTypes, country, locale, captureMandate, orderInformation, checkoutApiInitialization);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GenerateUnifiedCheckoutCaptureContextRequest {\n");
sb.append(" targetOrigins: ").append(toIndentedString(targetOrigins)).append("\n");
sb.append(" clientVersion: ").append(toIndentedString(clientVersion)).append("\n");
sb.append(" allowedCardNetworks: ").append(toIndentedString(allowedCardNetworks)).append("\n");
sb.append(" allowedPaymentTypes: ").append(toIndentedString(allowedPaymentTypes)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" locale: ").append(toIndentedString(locale)).append("\n");
sb.append(" captureMandate: ").append(toIndentedString(captureMandate)).append("\n");
sb.append(" orderInformation: ").append(toIndentedString(orderInformation)).append("\n");
sb.append(" checkoutApiInitialization: ").append(toIndentedString(checkoutApiInitialization)).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