com.docusign.esign.model.PaymentMethodWithOptions Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** PaymentMethodWithOptions. */
public class PaymentMethodWithOptions {
@JsonProperty("supportedCurrencies")
private java.util.List supportedCurrencies = null;
@JsonProperty("supportedOptions")
private java.util.List supportedOptions = null;
@JsonProperty("type")
private String type = null;
/**
* supportedCurrencies.
*
* @return PaymentMethodWithOptions
*/
public PaymentMethodWithOptions supportedCurrencies(java.util.List supportedCurrencies) {
this.supportedCurrencies = supportedCurrencies;
return this;
}
/**
* addSupportedCurrenciesItem.
*
* @return PaymentMethodWithOptions
*/
public PaymentMethodWithOptions addSupportedCurrenciesItem(String supportedCurrenciesItem) {
if (this.supportedCurrencies == null) {
this.supportedCurrencies = new java.util.ArrayList();
}
this.supportedCurrencies.add(supportedCurrenciesItem);
return this;
}
/**
* .
*
* @return supportedCurrencies
*/
@ApiModelProperty(value = "")
public java.util.List getSupportedCurrencies() {
return supportedCurrencies;
}
/** setSupportedCurrencies. */
public void setSupportedCurrencies(java.util.List supportedCurrencies) {
this.supportedCurrencies = supportedCurrencies;
}
/**
* supportedOptions.
*
* @return PaymentMethodWithOptions
*/
public PaymentMethodWithOptions supportedOptions(java.util.List supportedOptions) {
this.supportedOptions = supportedOptions;
return this;
}
/**
* addSupportedOptionsItem.
*
* @return PaymentMethodWithOptions
*/
public PaymentMethodWithOptions addSupportedOptionsItem(String supportedOptionsItem) {
if (this.supportedOptions == null) {
this.supportedOptions = new java.util.ArrayList();
}
this.supportedOptions.add(supportedOptionsItem);
return this;
}
/**
* .
*
* @return supportedOptions
*/
@ApiModelProperty(value = "")
public java.util.List getSupportedOptions() {
return supportedOptions;
}
/** setSupportedOptions. */
public void setSupportedOptions(java.util.List supportedOptions) {
this.supportedOptions = supportedOptions;
}
/**
* type.
*
* @return PaymentMethodWithOptions
*/
public PaymentMethodWithOptions type(String type) {
this.type = type;
return this;
}
/**
* .
*
* @return type
*/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
/** setType. */
public void setType(String type) {
this.type = type;
}
/**
* Compares objects.
*
* @return true or false depending on comparison result.
*/
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentMethodWithOptions paymentMethodWithOptions = (PaymentMethodWithOptions) o;
return Objects.equals(this.supportedCurrencies, paymentMethodWithOptions.supportedCurrencies)
&& Objects.equals(this.supportedOptions, paymentMethodWithOptions.supportedOptions)
&& Objects.equals(this.type, paymentMethodWithOptions.type);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(supportedCurrencies, supportedOptions, type);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentMethodWithOptions {\n");
sb.append(" supportedCurrencies: ")
.append(toIndentedString(supportedCurrencies))
.append("\n");
sb.append(" supportedOptions: ").append(toIndentedString(supportedOptions)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}