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.conekta.model.CheckoutResponse Maven / Gradle / Ivy
Go to download
This is a java library that allows interaction with https://api.conekta.io API.
/*
* Conekta API
* Conekta sdk
*
* The version of the OpenAPI document: 2.1.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.conekta.model;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.conekta.JSON;
/**
* checkout response
*/
@JsonPropertyOrder({
CheckoutResponse.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS,
CheckoutResponse.JSON_PROPERTY_CAN_NOT_EXPIRE,
CheckoutResponse.JSON_PROPERTY_EMAILS_SENT,
CheckoutResponse.JSON_PROPERTY_EXCLUDE_CARD_NETWORKS,
CheckoutResponse.JSON_PROPERTY_EXPIRES_AT,
CheckoutResponse.JSON_PROPERTY_FAILURE_URL,
CheckoutResponse.JSON_PROPERTY_FORCE3DS_FLOW,
CheckoutResponse.JSON_PROPERTY_ID,
CheckoutResponse.JSON_PROPERTY_LIVEMODE,
CheckoutResponse.JSON_PROPERTY_METADATA,
CheckoutResponse.JSON_PROPERTY_MONTHLY_INSTALLMENTS_ENABLED,
CheckoutResponse.JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS,
CheckoutResponse.JSON_PROPERTY_NAME,
CheckoutResponse.JSON_PROPERTY_NEEDS_SHIPPING_CONTACT,
CheckoutResponse.JSON_PROPERTY_OBJECT,
CheckoutResponse.JSON_PROPERTY_PAID_PAYMENTS_COUNT,
CheckoutResponse.JSON_PROPERTY_PAYMENTS_LIMIT_COUNT,
CheckoutResponse.JSON_PROPERTY_RECURRENT,
CheckoutResponse.JSON_PROPERTY_SLUG,
CheckoutResponse.JSON_PROPERTY_SMS_SENT,
CheckoutResponse.JSON_PROPERTY_STARTS_AT,
CheckoutResponse.JSON_PROPERTY_STATUS,
CheckoutResponse.JSON_PROPERTY_SUCCESS_URL,
CheckoutResponse.JSON_PROPERTY_TYPE,
CheckoutResponse.JSON_PROPERTY_URL
})
@JsonTypeName("checkout_response")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class CheckoutResponse {
public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowed_payment_methods";
private List allowedPaymentMethods = new ArrayList<>();
public static final String JSON_PROPERTY_CAN_NOT_EXPIRE = "can_not_expire";
private Boolean canNotExpire;
public static final String JSON_PROPERTY_EMAILS_SENT = "emails_sent";
private Integer emailsSent;
public static final String JSON_PROPERTY_EXCLUDE_CARD_NETWORKS = "exclude_card_networks";
private List excludeCardNetworks = new ArrayList<>();
public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at";
private Long expiresAt;
public static final String JSON_PROPERTY_FAILURE_URL = "failure_url";
private String failureUrl;
public static final String JSON_PROPERTY_FORCE3DS_FLOW = "force_3ds_flow";
private Boolean force3dsFlow;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_LIVEMODE = "livemode";
private Boolean livemode;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map metadata = new HashMap<>();
public static final String JSON_PROPERTY_MONTHLY_INSTALLMENTS_ENABLED = "monthly_installments_enabled";
private Boolean monthlyInstallmentsEnabled;
public static final String JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS = "monthly_installments_options";
private List monthlyInstallmentsOptions = new ArrayList<>();
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_NEEDS_SHIPPING_CONTACT = "needs_shipping_contact";
private Boolean needsShippingContact;
public static final String JSON_PROPERTY_OBJECT = "object";
private String _object;
public static final String JSON_PROPERTY_PAID_PAYMENTS_COUNT = "paid_payments_count";
private Integer paidPaymentsCount;
public static final String JSON_PROPERTY_PAYMENTS_LIMIT_COUNT = "payments_limit_count";
private Integer paymentsLimitCount;
public static final String JSON_PROPERTY_RECURRENT = "recurrent";
private Boolean recurrent;
public static final String JSON_PROPERTY_SLUG = "slug";
private String slug;
public static final String JSON_PROPERTY_SMS_SENT = "sms_sent";
private Integer smsSent;
public static final String JSON_PROPERTY_STARTS_AT = "starts_at";
private Integer startsAt;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
public static final String JSON_PROPERTY_SUCCESS_URL = "success_url";
private String successUrl;
public static final String JSON_PROPERTY_TYPE = "type";
private String type;
public static final String JSON_PROPERTY_URL = "url";
private URI url;
public CheckoutResponse() {
}
public CheckoutResponse allowedPaymentMethods(List allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
return this;
}
public CheckoutResponse addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
if (this.allowedPaymentMethods == null) {
this.allowedPaymentMethods = new ArrayList<>();
}
this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
return this;
}
/**
* Get allowedPaymentMethods
* @return allowedPaymentMethods
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAllowedPaymentMethods() {
return allowedPaymentMethods;
}
@JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAllowedPaymentMethods(List allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
}
public CheckoutResponse canNotExpire(Boolean canNotExpire) {
this.canNotExpire = canNotExpire;
return this;
}
/**
* Get canNotExpire
* @return canNotExpire
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CAN_NOT_EXPIRE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getCanNotExpire() {
return canNotExpire;
}
@JsonProperty(JSON_PROPERTY_CAN_NOT_EXPIRE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCanNotExpire(Boolean canNotExpire) {
this.canNotExpire = canNotExpire;
}
public CheckoutResponse emailsSent(Integer emailsSent) {
this.emailsSent = emailsSent;
return this;
}
/**
* Get emailsSent
* @return emailsSent
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EMAILS_SENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getEmailsSent() {
return emailsSent;
}
@JsonProperty(JSON_PROPERTY_EMAILS_SENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmailsSent(Integer emailsSent) {
this.emailsSent = emailsSent;
}
public CheckoutResponse excludeCardNetworks(List excludeCardNetworks) {
this.excludeCardNetworks = excludeCardNetworks;
return this;
}
public CheckoutResponse addExcludeCardNetworksItem(Object excludeCardNetworksItem) {
if (this.excludeCardNetworks == null) {
this.excludeCardNetworks = new ArrayList<>();
}
this.excludeCardNetworks.add(excludeCardNetworksItem);
return this;
}
/**
* Get excludeCardNetworks
* @return excludeCardNetworks
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXCLUDE_CARD_NETWORKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getExcludeCardNetworks() {
return excludeCardNetworks;
}
@JsonProperty(JSON_PROPERTY_EXCLUDE_CARD_NETWORKS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExcludeCardNetworks(List excludeCardNetworks) {
this.excludeCardNetworks = excludeCardNetworks;
}
public CheckoutResponse expiresAt(Long expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* Get expiresAt
* @return expiresAt
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getExpiresAt() {
return expiresAt;
}
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiresAt(Long expiresAt) {
this.expiresAt = expiresAt;
}
public CheckoutResponse failureUrl(String failureUrl) {
this.failureUrl = failureUrl;
return this;
}
/**
* Get failureUrl
* @return failureUrl
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FAILURE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFailureUrl() {
return failureUrl;
}
@JsonProperty(JSON_PROPERTY_FAILURE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFailureUrl(String failureUrl) {
this.failureUrl = failureUrl;
}
public CheckoutResponse force3dsFlow(Boolean force3dsFlow) {
this.force3dsFlow = force3dsFlow;
return this;
}
/**
* Get force3dsFlow
* @return force3dsFlow
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FORCE3DS_FLOW)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getForce3dsFlow() {
return force3dsFlow;
}
@JsonProperty(JSON_PROPERTY_FORCE3DS_FLOW)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setForce3dsFlow(Boolean force3dsFlow) {
this.force3dsFlow = force3dsFlow;
}
public CheckoutResponse id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public CheckoutResponse livemode(Boolean livemode) {
this.livemode = livemode;
return this;
}
/**
* Get livemode
* @return livemode
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LIVEMODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getLivemode() {
return livemode;
}
@JsonProperty(JSON_PROPERTY_LIVEMODE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLivemode(Boolean livemode) {
this.livemode = livemode;
}
public CheckoutResponse metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public CheckoutResponse putMetadataItem(String key, Object metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Get metadata
* @return metadata
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public Map getMetadata() {
return metadata;
}
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public CheckoutResponse monthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) {
this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled;
return this;
}
/**
* Get monthlyInstallmentsEnabled
* @return monthlyInstallmentsEnabled
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MONTHLY_INSTALLMENTS_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getMonthlyInstallmentsEnabled() {
return monthlyInstallmentsEnabled;
}
@JsonProperty(JSON_PROPERTY_MONTHLY_INSTALLMENTS_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) {
this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled;
}
public CheckoutResponse monthlyInstallmentsOptions(List monthlyInstallmentsOptions) {
this.monthlyInstallmentsOptions = monthlyInstallmentsOptions;
return this;
}
public CheckoutResponse addMonthlyInstallmentsOptionsItem(Integer monthlyInstallmentsOptionsItem) {
if (this.monthlyInstallmentsOptions == null) {
this.monthlyInstallmentsOptions = new ArrayList<>();
}
this.monthlyInstallmentsOptions.add(monthlyInstallmentsOptionsItem);
return this;
}
/**
* Get monthlyInstallmentsOptions
* @return monthlyInstallmentsOptions
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMonthlyInstallmentsOptions() {
return monthlyInstallmentsOptions;
}
@JsonProperty(JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) {
this.monthlyInstallmentsOptions = monthlyInstallmentsOptions;
}
public CheckoutResponse name(String name) {
this.name = name;
return this;
}
/**
* Reason for charge
* @return name
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public CheckoutResponse needsShippingContact(Boolean needsShippingContact) {
this.needsShippingContact = needsShippingContact;
return this;
}
/**
* Get needsShippingContact
* @return needsShippingContact
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NEEDS_SHIPPING_CONTACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNeedsShippingContact() {
return needsShippingContact;
}
@JsonProperty(JSON_PROPERTY_NEEDS_SHIPPING_CONTACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNeedsShippingContact(Boolean needsShippingContact) {
this.needsShippingContact = needsShippingContact;
}
public CheckoutResponse _object(String _object) {
this._object = _object;
return this;
}
/**
* Get _object
* @return _object
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_OBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getObject() {
return _object;
}
@JsonProperty(JSON_PROPERTY_OBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setObject(String _object) {
this._object = _object;
}
public CheckoutResponse paidPaymentsCount(Integer paidPaymentsCount) {
this.paidPaymentsCount = paidPaymentsCount;
return this;
}
/**
* Get paidPaymentsCount
* @return paidPaymentsCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAID_PAYMENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPaidPaymentsCount() {
return paidPaymentsCount;
}
@JsonProperty(JSON_PROPERTY_PAID_PAYMENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaidPaymentsCount(Integer paidPaymentsCount) {
this.paidPaymentsCount = paidPaymentsCount;
}
public CheckoutResponse paymentsLimitCount(Integer paymentsLimitCount) {
this.paymentsLimitCount = paymentsLimitCount;
return this;
}
/**
* Get paymentsLimitCount
* @return paymentsLimitCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYMENTS_LIMIT_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPaymentsLimitCount() {
return paymentsLimitCount;
}
@JsonProperty(JSON_PROPERTY_PAYMENTS_LIMIT_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentsLimitCount(Integer paymentsLimitCount) {
this.paymentsLimitCount = paymentsLimitCount;
}
public CheckoutResponse recurrent(Boolean recurrent) {
this.recurrent = recurrent;
return this;
}
/**
* Get recurrent
* @return recurrent
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECURRENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getRecurrent() {
return recurrent;
}
@JsonProperty(JSON_PROPERTY_RECURRENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecurrent(Boolean recurrent) {
this.recurrent = recurrent;
}
public CheckoutResponse slug(String slug) {
this.slug = slug;
return this;
}
/**
* Get slug
* @return slug
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SLUG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSlug() {
return slug;
}
@JsonProperty(JSON_PROPERTY_SLUG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSlug(String slug) {
this.slug = slug;
}
public CheckoutResponse smsSent(Integer smsSent) {
this.smsSent = smsSent;
return this;
}
/**
* Get smsSent
* @return smsSent
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SMS_SENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSmsSent() {
return smsSent;
}
@JsonProperty(JSON_PROPERTY_SMS_SENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmsSent(Integer smsSent) {
this.smsSent = smsSent;
}
public CheckoutResponse startsAt(Integer startsAt) {
this.startsAt = startsAt;
return this;
}
/**
* Get startsAt
* @return startsAt
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTS_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getStartsAt() {
return startsAt;
}
@JsonProperty(JSON_PROPERTY_STARTS_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartsAt(Integer startsAt) {
this.startsAt = startsAt;
}
public CheckoutResponse status(String status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(String status) {
this.status = status;
}
public CheckoutResponse successUrl(String successUrl) {
this.successUrl = successUrl;
return this;
}
/**
* Get successUrl
* @return successUrl
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUCCESS_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSuccessUrl() {
return successUrl;
}
@JsonProperty(JSON_PROPERTY_SUCCESS_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuccessUrl(String successUrl) {
this.successUrl = successUrl;
}
public CheckoutResponse type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
}
public CheckoutResponse url(URI url) {
this.url = url;
return this;
}
/**
* Get url
* @return url
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public URI getUrl() {
return url;
}
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUrl(URI url) {
this.url = url;
}
/**
* Return true if this checkout_response object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CheckoutResponse checkoutResponse = (CheckoutResponse) o;
return Objects.equals(this.allowedPaymentMethods, checkoutResponse.allowedPaymentMethods) &&
Objects.equals(this.canNotExpire, checkoutResponse.canNotExpire) &&
Objects.equals(this.emailsSent, checkoutResponse.emailsSent) &&
Objects.equals(this.excludeCardNetworks, checkoutResponse.excludeCardNetworks) &&
Objects.equals(this.expiresAt, checkoutResponse.expiresAt) &&
Objects.equals(this.failureUrl, checkoutResponse.failureUrl) &&
Objects.equals(this.force3dsFlow, checkoutResponse.force3dsFlow) &&
Objects.equals(this.id, checkoutResponse.id) &&
Objects.equals(this.livemode, checkoutResponse.livemode) &&
Objects.equals(this.metadata, checkoutResponse.metadata) &&
Objects.equals(this.monthlyInstallmentsEnabled, checkoutResponse.monthlyInstallmentsEnabled) &&
Objects.equals(this.monthlyInstallmentsOptions, checkoutResponse.monthlyInstallmentsOptions) &&
Objects.equals(this.name, checkoutResponse.name) &&
Objects.equals(this.needsShippingContact, checkoutResponse.needsShippingContact) &&
Objects.equals(this._object, checkoutResponse._object) &&
Objects.equals(this.paidPaymentsCount, checkoutResponse.paidPaymentsCount) &&
Objects.equals(this.paymentsLimitCount, checkoutResponse.paymentsLimitCount) &&
Objects.equals(this.recurrent, checkoutResponse.recurrent) &&
Objects.equals(this.slug, checkoutResponse.slug) &&
Objects.equals(this.smsSent, checkoutResponse.smsSent) &&
Objects.equals(this.startsAt, checkoutResponse.startsAt) &&
Objects.equals(this.status, checkoutResponse.status) &&
Objects.equals(this.successUrl, checkoutResponse.successUrl) &&
Objects.equals(this.type, checkoutResponse.type) &&
Objects.equals(this.url, checkoutResponse.url);
}
@Override
public int hashCode() {
return Objects.hash(allowedPaymentMethods, canNotExpire, emailsSent, excludeCardNetworks, expiresAt, failureUrl, force3dsFlow, id, livemode, metadata, monthlyInstallmentsEnabled, monthlyInstallmentsOptions, name, needsShippingContact, _object, paidPaymentsCount, paymentsLimitCount, recurrent, slug, smsSent, startsAt, status, successUrl, type, url);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckoutResponse {\n");
sb.append(" allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
sb.append(" canNotExpire: ").append(toIndentedString(canNotExpire)).append("\n");
sb.append(" emailsSent: ").append(toIndentedString(emailsSent)).append("\n");
sb.append(" excludeCardNetworks: ").append(toIndentedString(excludeCardNetworks)).append("\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" failureUrl: ").append(toIndentedString(failureUrl)).append("\n");
sb.append(" force3dsFlow: ").append(toIndentedString(force3dsFlow)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" livemode: ").append(toIndentedString(livemode)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" monthlyInstallmentsEnabled: ").append(toIndentedString(monthlyInstallmentsEnabled)).append("\n");
sb.append(" monthlyInstallmentsOptions: ").append(toIndentedString(monthlyInstallmentsOptions)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" needsShippingContact: ").append(toIndentedString(needsShippingContact)).append("\n");
sb.append(" _object: ").append(toIndentedString(_object)).append("\n");
sb.append(" paidPaymentsCount: ").append(toIndentedString(paidPaymentsCount)).append("\n");
sb.append(" paymentsLimitCount: ").append(toIndentedString(paymentsLimitCount)).append("\n");
sb.append(" recurrent: ").append(toIndentedString(recurrent)).append("\n");
sb.append(" slug: ").append(toIndentedString(slug)).append("\n");
sb.append(" smsSent: ").append(toIndentedString(smsSent)).append("\n");
sb.append(" startsAt: ").append(toIndentedString(startsAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" successUrl: ").append(toIndentedString(successUrl)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}