com.klarna.rest.api.checkout.model.CheckoutGui Maven / Gradle / Ivy
The newest version!
/*
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* 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 com.klarna.rest.api.checkout.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* CheckoutGui
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-04-02T15:03:42.622Z")
public class CheckoutGui {
@JsonProperty("options")
private List options = null;
public CheckoutGui options(List options) {
this.options = options;
return this;
}
public CheckoutGui addOptionsItem(String optionsItem) {
if (this.options == null) {
this.options = new ArrayList();
}
this.options.add(optionsItem);
return this;
}
/**
* An array of options to define the checkout behaviour. Supported options: disable_autofocus, minimal_confirmation. The gui object is an array of options to modify checkout client ui behaviours. Examples: [\"disable_autofocus\", \"minimal_confirmation\"]
* @return options
**/
@ApiModelProperty(example = "[\"disable_autofocus\"]", value = "An array of options to define the checkout behaviour. Supported options: disable_autofocus, minimal_confirmation. The gui object is an array of options to modify checkout client ui behaviours. Examples: [\"disable_autofocus\", \"minimal_confirmation\"]")
public List getOptions() {
return options;
}
public void setOptions(List options) {
this.options = options;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckoutGui gui = (CheckoutGui) o;
return Objects.equals(this.options, gui.options);
}
@Override
public int hashCode() {
return Objects.hash(options);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckoutGui {\n");
sb.append(" options: ").append(toIndentedString(options)).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 ");
}
}