com.conekta.model.PayoutOrderPayoutsItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ct-conekta-java Show documentation
Show all versions of ct-conekta-java Show documentation
This is a java library that allows interaction with https://api.conekta.io API.
The newest version!
/*
* 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.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.conekta.JSON;
/**
* PayoutOrderPayoutsItem
*/
@JsonPropertyOrder({
PayoutOrderPayoutsItem.JSON_PROPERTY_AMOUNT,
PayoutOrderPayoutsItem.JSON_PROPERTY_CURRENCY,
PayoutOrderPayoutsItem.JSON_PROPERTY_EXPIRES_AT,
PayoutOrderPayoutsItem.JSON_PROPERTY_ID,
PayoutOrderPayoutsItem.JSON_PROPERTY_LIVEMODE,
PayoutOrderPayoutsItem.JSON_PROPERTY_OBJECT,
PayoutOrderPayoutsItem.JSON_PROPERTY_PAYOUT_ORDER_ID,
PayoutOrderPayoutsItem.JSON_PROPERTY_STATUS
})
@JsonTypeName("payout_order_payouts_item")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class PayoutOrderPayoutsItem {
public static final String JSON_PROPERTY_AMOUNT = "amount";
private Integer amount;
public static final String JSON_PROPERTY_CURRENCY = "currency";
private String currency;
public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at";
private Long expiresAt;
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_OBJECT = "object";
private String _object;
public static final String JSON_PROPERTY_PAYOUT_ORDER_ID = "payout_order_id";
private String payoutOrderId;
public static final String JSON_PROPERTY_STATUS = "status";
private String status;
public PayoutOrderPayoutsItem() {
}
public PayoutOrderPayoutsItem amount(Integer amount) {
this.amount = amount;
return this;
}
/**
* The amount of the payout.
* @return amount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getAmount() {
return amount;
}
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAmount(Integer amount) {
this.amount = amount;
}
public PayoutOrderPayoutsItem currency(String currency) {
this.currency = currency;
return this;
}
/**
* The currency in which the payout is made.
* @return currency
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCurrency() {
return currency;
}
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCurrency(String currency) {
this.currency = currency;
}
public PayoutOrderPayoutsItem expiresAt(Long expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* The expiration date of the payout.
* @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 PayoutOrderPayoutsItem id(String id) {
this.id = id;
return this;
}
/**
* The id of the payout.
* @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 PayoutOrderPayoutsItem livemode(Boolean livemode) {
this.livemode = livemode;
return this;
}
/**
* The live mode of the payout.
* @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 PayoutOrderPayoutsItem _object(String _object) {
this._object = _object;
return this;
}
/**
* The object of the payout.
* @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 PayoutOrderPayoutsItem payoutOrderId(String payoutOrderId) {
this.payoutOrderId = payoutOrderId;
return this;
}
/**
* The id of the payout order.
* @return payoutOrderId
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAYOUT_ORDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPayoutOrderId() {
return payoutOrderId;
}
@JsonProperty(JSON_PROPERTY_PAYOUT_ORDER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPayoutOrderId(String payoutOrderId) {
this.payoutOrderId = payoutOrderId;
}
public PayoutOrderPayoutsItem status(String status) {
this.status = status;
return this;
}
/**
* The status of the payout.
* @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;
}
/**
* Return true if this payout_order_payouts_item object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PayoutOrderPayoutsItem payoutOrderPayoutsItem = (PayoutOrderPayoutsItem) o;
return Objects.equals(this.amount, payoutOrderPayoutsItem.amount) &&
Objects.equals(this.currency, payoutOrderPayoutsItem.currency) &&
Objects.equals(this.expiresAt, payoutOrderPayoutsItem.expiresAt) &&
Objects.equals(this.id, payoutOrderPayoutsItem.id) &&
Objects.equals(this.livemode, payoutOrderPayoutsItem.livemode) &&
Objects.equals(this._object, payoutOrderPayoutsItem._object) &&
Objects.equals(this.payoutOrderId, payoutOrderPayoutsItem.payoutOrderId) &&
Objects.equals(this.status, payoutOrderPayoutsItem.status);
}
@Override
public int hashCode() {
return Objects.hash(amount, currency, expiresAt, id, livemode, _object, payoutOrderId, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PayoutOrderPayoutsItem {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" livemode: ").append(toIndentedString(livemode)).append("\n");
sb.append(" _object: ").append(toIndentedString(_object)).append("\n");
sb.append(" payoutOrderId: ").append(toIndentedString(payoutOrderId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}