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

com.klarna.rest.api.checkout.model.CheckoutCheckbox 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;

/**
 * CheckoutCheckbox
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-04-02T15:03:42.622Z")
public class CheckoutCheckbox {
  @JsonProperty("text")
  private String text = null;

  @JsonProperty("checked")
  private Boolean checked = false;

  @JsonProperty("required")
  private Boolean required = false;

  public CheckoutCheckbox text(String text) {
    this.text = text;
    return this;
  }

   /**
   * Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
   * @return text
  **/
  @ApiModelProperty(example = "Please add me to the newsletter list, read more here \\[link\\](http://www.google.com)", required = true, value = "Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)")
  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public CheckoutCheckbox checked(Boolean checked) {
    this.checked = checked;
    return this;
  }

   /**
   * Default state of the additional checkbox. It will use this value when loaded for the first time.
   * @return checked
  **/
  @ApiModelProperty(required = true, value = "Default state of the additional checkbox. It will use this value when loaded for the first time.")
  public Boolean isChecked() {
    return checked;
  }

  public void setChecked(Boolean checked) {
    this.checked = checked;
  }

  public CheckoutCheckbox required(Boolean required) {
    this.required = required;
    return this;
  }

   /**
   * Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
   * @return required
  **/
  @ApiModelProperty(required = true, value = "Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.")
  public Boolean isRequired() {
    return required;
  }

  public void setRequired(Boolean required) {
    this.required = required;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CheckoutCheckbox checkbox = (CheckoutCheckbox) o;
    return Objects.equals(this.text, checkbox.text) &&
        Objects.equals(this.checked, checkbox.checked) &&
        Objects.equals(this.required, checkbox.required);
  }

  @Override
  public int hashCode() {
    return Objects.hash(text, checked, required);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CheckoutCheckbox {\n");
    
    sb.append("    text: ").append(toIndentedString(text)).append("\n");
    sb.append("    checked: ").append(toIndentedString(checked)).append("\n");
    sb.append("    required: ").append(toIndentedString(required)).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 - 2024 Weber Informatics LLC | Privacy Policy