org.openapitools.client.model.PaymentTransactions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.Payment;
import org.openapitools.jackson.nullable.JsonNullable;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* PaymentTransactions
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaymentTransactions {
public static final String SERIALIZED_NAME_PAYMENT_NUMBER = "payment_number";
@SerializedName(SERIALIZED_NAME_PAYMENT_NUMBER)
private String paymentNumber;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private List amount = null;
public static final String SERIALIZED_NAME_STATE = "state";
@SerializedName(SERIALIZED_NAME_STATE)
private Object state;
public static final String SERIALIZED_NAME_PAYMENTS = "payments";
@SerializedName(SERIALIZED_NAME_PAYMENTS)
private Payment payments;
public PaymentTransactions() {
}
public PaymentTransactions paymentNumber(String paymentNumber) {
this.paymentNumber = paymentNumber;
return this;
}
/**
* The number of the payment.
* @return paymentNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of the payment.")
public String getPaymentNumber() {
return paymentNumber;
}
public void setPaymentNumber(String paymentNumber) {
this.paymentNumber = paymentNumber;
}
public PaymentTransactions amount(List amount) {
this.amount = amount;
return this;
}
public PaymentTransactions addAmountItem(String amountItem) {
if (this.amount == null) {
this.amount = new ArrayList();
}
this.amount.add(amountItem);
return this;
}
/**
* The payment transaction amount.
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The payment transaction amount.")
public List getAmount() {
return amount;
}
public void setAmount(List amount) {
this.amount = amount;
}
public PaymentTransactions state(Object state) {
this.state = state;
return this;
}
/**
* The state of the payment.
* @return state
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The state of the payment.")
public Object getState() {
return state;
}
public void setState(Object state) {
this.state = state;
}
public PaymentTransactions payments(Payment payments) {
this.payments = payments;
return this;
}
/**
* The related payments.
* @return payments
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The related payments.")
public Payment getPayments() {
return payments;
}
public void setPayments(Payment payments) {
this.payments = payments;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentTransactions paymentTransactions = (PaymentTransactions) o;
return Objects.equals(this.paymentNumber, paymentTransactions.paymentNumber) &&
Objects.equals(this.amount, paymentTransactions.amount) &&
Objects.equals(this.state, paymentTransactions.state) &&
Objects.equals(this.payments, paymentTransactions.payments);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(paymentNumber, amount, state, payments);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentTransactions {\n");
sb.append(" paymentNumber: ").append(toIndentedString(paymentNumber)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" payments: ").append(toIndentedString(payments)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy