com.docusign.esign.model.PaymentMethodWithOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official Docusign eSignature JAVA client is based on version 2.1 of the Docusign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/**
* This object contains information about a payment method that the gateway accepts and the payment
* options that are compatible with it..
*/
@Schema(
description =
"This object contains information about a payment method that the gateway accepts and the payment options that are compatible with it.")
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
*/
@Schema(description = "")
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
*/
@Schema(description = "")
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
*/
@Schema(description = "")
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 ");
}
}