io.swagger.client.model.PaymentTransaction Maven / Gradle / Ivy
/*
* DocxMerge
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.client.model.Tenant;
import io.swagger.client.model.User;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import org.threeten.bp.OffsetDateTime;
/**
* PaymentTransaction
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class PaymentTransaction {
@SerializedName("user")
private User user = null;
@SerializedName("userId")
private String userId = null;
@SerializedName("price")
private Integer price = null;
@SerializedName("credits")
private Integer credits = null;
@SerializedName("customerId")
private String customerId = null;
@SerializedName("chargeId")
private String chargeId = null;
@SerializedName("id")
private String id = null;
@SerializedName("created")
private OffsetDateTime created = null;
@SerializedName("modified")
private OffsetDateTime modified = null;
@SerializedName("tenant")
private Tenant tenant = null;
@SerializedName("tenantId")
private String tenantId = null;
public PaymentTransaction user(User user) {
this.user = user;
return this;
}
/**
* Get user
* @return user
**/
@Schema(description = "")
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public PaymentTransaction userId(String userId) {
this.userId = userId;
return this;
}
/**
* Get userId
* @return userId
**/
@Schema(description = "")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public PaymentTransaction price(Integer price) {
this.price = price;
return this;
}
/**
* Get price
* @return price
**/
@Schema(description = "")
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public PaymentTransaction credits(Integer credits) {
this.credits = credits;
return this;
}
/**
* Get credits
* @return credits
**/
@Schema(description = "")
public Integer getCredits() {
return credits;
}
public void setCredits(Integer credits) {
this.credits = credits;
}
public PaymentTransaction customerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* Get customerId
* @return customerId
**/
@Schema(description = "")
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public PaymentTransaction chargeId(String chargeId) {
this.chargeId = chargeId;
return this;
}
/**
* Get chargeId
* @return chargeId
**/
@Schema(description = "")
public String getChargeId() {
return chargeId;
}
public void setChargeId(String chargeId) {
this.chargeId = chargeId;
}
public PaymentTransaction id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PaymentTransaction created(OffsetDateTime created) {
this.created = created;
return this;
}
/**
* Get created
* @return created
**/
@Schema(description = "")
public OffsetDateTime getCreated() {
return created;
}
public void setCreated(OffsetDateTime created) {
this.created = created;
}
public PaymentTransaction modified(OffsetDateTime modified) {
this.modified = modified;
return this;
}
/**
* Get modified
* @return modified
**/
@Schema(description = "")
public OffsetDateTime getModified() {
return modified;
}
public void setModified(OffsetDateTime modified) {
this.modified = modified;
}
public PaymentTransaction tenant(Tenant tenant) {
this.tenant = tenant;
return this;
}
/**
* Get tenant
* @return tenant
**/
@Schema(description = "")
public Tenant getTenant() {
return tenant;
}
public void setTenant(Tenant tenant) {
this.tenant = tenant;
}
public PaymentTransaction tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* Get tenantId
* @return tenantId
**/
@Schema(required = true, description = "")
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentTransaction paymentTransaction = (PaymentTransaction) o;
return Objects.equals(this.user, paymentTransaction.user) &&
Objects.equals(this.userId, paymentTransaction.userId) &&
Objects.equals(this.price, paymentTransaction.price) &&
Objects.equals(this.credits, paymentTransaction.credits) &&
Objects.equals(this.customerId, paymentTransaction.customerId) &&
Objects.equals(this.chargeId, paymentTransaction.chargeId) &&
Objects.equals(this.id, paymentTransaction.id) &&
Objects.equals(this.created, paymentTransaction.created) &&
Objects.equals(this.modified, paymentTransaction.modified) &&
Objects.equals(this.tenant, paymentTransaction.tenant) &&
Objects.equals(this.tenantId, paymentTransaction.tenantId);
}
@Override
public int hashCode() {
return java.util.Objects.hash(user, userId, price, credits, customerId, chargeId, id, created, modified, tenant, tenantId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentTransaction {\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" credits: ").append(toIndentedString(credits)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" chargeId: ").append(toIndentedString(chargeId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy