All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.docusign.esign.model.PaymentDetails Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** PaymentDetails. */
public class PaymentDetails {
@JsonProperty("allowedPaymentMethods")
private java.util.List allowedPaymentMethods = null;
@JsonProperty("chargeId")
private String chargeId = null;
@JsonProperty("currencyCode")
private String currencyCode = null;
@JsonProperty("currencyCodeMetadata")
private PropertyMetadata currencyCodeMetadata = null;
@JsonProperty("customerId")
private String customerId = null;
@JsonProperty("customMetadata")
private String customMetadata = null;
@JsonProperty("customMetadataRequired")
private Boolean customMetadataRequired = null;
@JsonProperty("gatewayAccountId")
private String gatewayAccountId = null;
@JsonProperty("gatewayAccountIdMetadata")
private PropertyMetadata gatewayAccountIdMetadata = null;
@JsonProperty("gatewayDisplayName")
private String gatewayDisplayName = null;
@JsonProperty("gatewayName")
private String gatewayName = null;
@JsonProperty("lineItems")
private java.util.List lineItems = null;
@JsonProperty("paymentOption")
private String paymentOption = null;
@JsonProperty("paymentSourceId")
private String paymentSourceId = null;
@JsonProperty("signerValues")
private PaymentSignerValues signerValues = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("total")
private Money total = null;
/**
* allowedPaymentMethods.
*
* @return PaymentDetails
*/
public PaymentDetails allowedPaymentMethods(java.util.List allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
return this;
}
/**
* addAllowedPaymentMethodsItem.
*
* @return PaymentDetails
*/
public PaymentDetails addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
if (this.allowedPaymentMethods == null) {
this.allowedPaymentMethods = new java.util.ArrayList();
}
this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
return this;
}
/**
* .
*
* @return allowedPaymentMethods
*/
@ApiModelProperty(value = "")
public java.util.List getAllowedPaymentMethods() {
return allowedPaymentMethods;
}
/** setAllowedPaymentMethods. */
public void setAllowedPaymentMethods(java.util.List allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
}
/**
* chargeId.
*
* @return PaymentDetails
*/
public PaymentDetails chargeId(String chargeId) {
this.chargeId = chargeId;
return this;
}
/**
* .
*
* @return chargeId
*/
@ApiModelProperty(value = "")
public String getChargeId() {
return chargeId;
}
/** setChargeId. */
public void setChargeId(String chargeId) {
this.chargeId = chargeId;
}
/**
* currencyCode.
*
* @return PaymentDetails
*/
public PaymentDetails currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* .
*
* @return currencyCode
*/
@ApiModelProperty(value = "")
public String getCurrencyCode() {
return currencyCode;
}
/** setCurrencyCode. */
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
/**
* currencyCodeMetadata.
*
* @return PaymentDetails
*/
public PaymentDetails currencyCodeMetadata(PropertyMetadata currencyCodeMetadata) {
this.currencyCodeMetadata = currencyCodeMetadata;
return this;
}
/**
* Get currencyCodeMetadata.
*
* @return currencyCodeMetadata
*/
@ApiModelProperty(value = "")
public PropertyMetadata getCurrencyCodeMetadata() {
return currencyCodeMetadata;
}
/** setCurrencyCodeMetadata. */
public void setCurrencyCodeMetadata(PropertyMetadata currencyCodeMetadata) {
this.currencyCodeMetadata = currencyCodeMetadata;
}
/**
* customerId.
*
* @return PaymentDetails
*/
public PaymentDetails customerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* .
*
* @return customerId
*/
@ApiModelProperty(value = "")
public String getCustomerId() {
return customerId;
}
/** setCustomerId. */
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
/**
* customMetadata.
*
* @return PaymentDetails
*/
public PaymentDetails customMetadata(String customMetadata) {
this.customMetadata = customMetadata;
return this;
}
/**
* .
*
* @return customMetadata
*/
@ApiModelProperty(value = "")
public String getCustomMetadata() {
return customMetadata;
}
/** setCustomMetadata. */
public void setCustomMetadata(String customMetadata) {
this.customMetadata = customMetadata;
}
/**
* customMetadataRequired.
*
* @return PaymentDetails
*/
public PaymentDetails customMetadataRequired(Boolean customMetadataRequired) {
this.customMetadataRequired = customMetadataRequired;
return this;
}
/**
* .
*
* @return customMetadataRequired
*/
@ApiModelProperty(value = "")
public Boolean isCustomMetadataRequired() {
return customMetadataRequired;
}
/** setCustomMetadataRequired. */
public void setCustomMetadataRequired(Boolean customMetadataRequired) {
this.customMetadataRequired = customMetadataRequired;
}
/**
* gatewayAccountId.
*
* @return PaymentDetails
*/
public PaymentDetails gatewayAccountId(String gatewayAccountId) {
this.gatewayAccountId = gatewayAccountId;
return this;
}
/**
* .
*
* @return gatewayAccountId
*/
@ApiModelProperty(value = "")
public String getGatewayAccountId() {
return gatewayAccountId;
}
/** setGatewayAccountId. */
public void setGatewayAccountId(String gatewayAccountId) {
this.gatewayAccountId = gatewayAccountId;
}
/**
* gatewayAccountIdMetadata.
*
* @return PaymentDetails
*/
public PaymentDetails gatewayAccountIdMetadata(PropertyMetadata gatewayAccountIdMetadata) {
this.gatewayAccountIdMetadata = gatewayAccountIdMetadata;
return this;
}
/**
* Get gatewayAccountIdMetadata.
*
* @return gatewayAccountIdMetadata
*/
@ApiModelProperty(value = "")
public PropertyMetadata getGatewayAccountIdMetadata() {
return gatewayAccountIdMetadata;
}
/** setGatewayAccountIdMetadata. */
public void setGatewayAccountIdMetadata(PropertyMetadata gatewayAccountIdMetadata) {
this.gatewayAccountIdMetadata = gatewayAccountIdMetadata;
}
/**
* gatewayDisplayName.
*
* @return PaymentDetails
*/
public PaymentDetails gatewayDisplayName(String gatewayDisplayName) {
this.gatewayDisplayName = gatewayDisplayName;
return this;
}
/**
* .
*
* @return gatewayDisplayName
*/
@ApiModelProperty(value = "")
public String getGatewayDisplayName() {
return gatewayDisplayName;
}
/** setGatewayDisplayName. */
public void setGatewayDisplayName(String gatewayDisplayName) {
this.gatewayDisplayName = gatewayDisplayName;
}
/**
* gatewayName.
*
* @return PaymentDetails
*/
public PaymentDetails gatewayName(String gatewayName) {
this.gatewayName = gatewayName;
return this;
}
/**
* .
*
* @return gatewayName
*/
@ApiModelProperty(value = "")
public String getGatewayName() {
return gatewayName;
}
/** setGatewayName. */
public void setGatewayName(String gatewayName) {
this.gatewayName = gatewayName;
}
/**
* lineItems.
*
* @return PaymentDetails
*/
public PaymentDetails lineItems(java.util.List lineItems) {
this.lineItems = lineItems;
return this;
}
/**
* addLineItemsItem.
*
* @return PaymentDetails
*/
public PaymentDetails addLineItemsItem(PaymentLineItem lineItemsItem) {
if (this.lineItems == null) {
this.lineItems = new java.util.ArrayList();
}
this.lineItems.add(lineItemsItem);
return this;
}
/**
* .
*
* @return lineItems
*/
@ApiModelProperty(value = "")
public java.util.List getLineItems() {
return lineItems;
}
/** setLineItems. */
public void setLineItems(java.util.List lineItems) {
this.lineItems = lineItems;
}
/**
* paymentOption.
*
* @return PaymentDetails
*/
public PaymentDetails paymentOption(String paymentOption) {
this.paymentOption = paymentOption;
return this;
}
/**
* .
*
* @return paymentOption
*/
@ApiModelProperty(value = "")
public String getPaymentOption() {
return paymentOption;
}
/** setPaymentOption. */
public void setPaymentOption(String paymentOption) {
this.paymentOption = paymentOption;
}
/**
* paymentSourceId.
*
* @return PaymentDetails
*/
public PaymentDetails paymentSourceId(String paymentSourceId) {
this.paymentSourceId = paymentSourceId;
return this;
}
/**
* .
*
* @return paymentSourceId
*/
@ApiModelProperty(value = "")
public String getPaymentSourceId() {
return paymentSourceId;
}
/** setPaymentSourceId. */
public void setPaymentSourceId(String paymentSourceId) {
this.paymentSourceId = paymentSourceId;
}
/**
* signerValues.
*
* @return PaymentDetails
*/
public PaymentDetails signerValues(PaymentSignerValues signerValues) {
this.signerValues = signerValues;
return this;
}
/**
* Get signerValues.
*
* @return signerValues
*/
@ApiModelProperty(value = "")
public PaymentSignerValues getSignerValues() {
return signerValues;
}
/** setSignerValues. */
public void setSignerValues(PaymentSignerValues signerValues) {
this.signerValues = signerValues;
}
/**
* status.
*
* @return PaymentDetails
*/
public PaymentDetails status(String status) {
this.status = status;
return this;
}
/**
* Indicates the envelope status. Valid values are: * sent - The envelope is sent to the
* recipients. * created - The envelope is saved as a draft and can be modified and sent later..
*
* @return status
*/
@ApiModelProperty(
value =
"Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.")
public String getStatus() {
return status;
}
/** setStatus. */
public void setStatus(String status) {
this.status = status;
}
/**
* total.
*
* @return PaymentDetails
*/
public PaymentDetails total(Money total) {
this.total = total;
return this;
}
/**
* Get total.
*
* @return total
*/
@ApiModelProperty(value = "")
public Money getTotal() {
return total;
}
/** setTotal. */
public void setTotal(Money total) {
this.total = total;
}
/**
* 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;
}
PaymentDetails paymentDetails = (PaymentDetails) o;
return Objects.equals(this.allowedPaymentMethods, paymentDetails.allowedPaymentMethods)
&& Objects.equals(this.chargeId, paymentDetails.chargeId)
&& Objects.equals(this.currencyCode, paymentDetails.currencyCode)
&& Objects.equals(this.currencyCodeMetadata, paymentDetails.currencyCodeMetadata)
&& Objects.equals(this.customerId, paymentDetails.customerId)
&& Objects.equals(this.customMetadata, paymentDetails.customMetadata)
&& Objects.equals(this.customMetadataRequired, paymentDetails.customMetadataRequired)
&& Objects.equals(this.gatewayAccountId, paymentDetails.gatewayAccountId)
&& Objects.equals(this.gatewayAccountIdMetadata, paymentDetails.gatewayAccountIdMetadata)
&& Objects.equals(this.gatewayDisplayName, paymentDetails.gatewayDisplayName)
&& Objects.equals(this.gatewayName, paymentDetails.gatewayName)
&& Objects.equals(this.lineItems, paymentDetails.lineItems)
&& Objects.equals(this.paymentOption, paymentDetails.paymentOption)
&& Objects.equals(this.paymentSourceId, paymentDetails.paymentSourceId)
&& Objects.equals(this.signerValues, paymentDetails.signerValues)
&& Objects.equals(this.status, paymentDetails.status)
&& Objects.equals(this.total, paymentDetails.total);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(
allowedPaymentMethods,
chargeId,
currencyCode,
currencyCodeMetadata,
customerId,
customMetadata,
customMetadataRequired,
gatewayAccountId,
gatewayAccountIdMetadata,
gatewayDisplayName,
gatewayName,
lineItems,
paymentOption,
paymentSourceId,
signerValues,
status,
total);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentDetails {\n");
sb.append(" allowedPaymentMethods: ")
.append(toIndentedString(allowedPaymentMethods))
.append("\n");
sb.append(" chargeId: ").append(toIndentedString(chargeId)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" currencyCodeMetadata: ")
.append(toIndentedString(currencyCodeMetadata))
.append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" customMetadata: ").append(toIndentedString(customMetadata)).append("\n");
sb.append(" customMetadataRequired: ")
.append(toIndentedString(customMetadataRequired))
.append("\n");
sb.append(" gatewayAccountId: ").append(toIndentedString(gatewayAccountId)).append("\n");
sb.append(" gatewayAccountIdMetadata: ")
.append(toIndentedString(gatewayAccountIdMetadata))
.append("\n");
sb.append(" gatewayDisplayName: ").append(toIndentedString(gatewayDisplayName)).append("\n");
sb.append(" gatewayName: ").append(toIndentedString(gatewayName)).append("\n");
sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n");
sb.append(" paymentOption: ").append(toIndentedString(paymentOption)).append("\n");
sb.append(" paymentSourceId: ").append(toIndentedString(paymentSourceId)).append("\n");
sb.append(" signerValues: ").append(toIndentedString(signerValues)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).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 ");
}
}