org.openapitools.client.model.PrepaidBalance 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.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.PrepaidBalanceTransaction;
import org.threeten.bp.LocalDate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* PrepaidBalance
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PrepaidBalance {
public static final String SERIALIZED_NAME_PREPAID_U_O_M = "prepaid_UOM";
@SerializedName(SERIALIZED_NAME_PREPAID_U_O_M)
private String prepaidUOM;
public static final String SERIALIZED_NAME_START_DATE = "start_date";
@SerializedName(SERIALIZED_NAME_START_DATE)
private LocalDate startDate;
public static final String SERIALIZED_NAME_END_DATE = "end_date";
@SerializedName(SERIALIZED_NAME_END_DATE)
private LocalDate endDate;
public static final String SERIALIZED_NAME_TOTAL_BALANCE = "total_balance";
@SerializedName(SERIALIZED_NAME_TOTAL_BALANCE)
private BigDecimal totalBalance;
public static final String SERIALIZED_NAME_REMAINING_BALANCE = "remaining_balance";
@SerializedName(SERIALIZED_NAME_REMAINING_BALANCE)
private BigDecimal remainingBalance;
public static final String SERIALIZED_NAME_TRANSACTIONS = "transactions";
@SerializedName(SERIALIZED_NAME_TRANSACTIONS)
private List transactions = null;
public PrepaidBalance() {
}
public PrepaidBalance(
List transactions
) {
this();
this.transactions = transactions;
}
public PrepaidBalance prepaidUOM(String prepaidUOM) {
this.prepaidUOM = prepaidUOM;
return this;
}
/**
* Unit of measure for the prepaid balance.
* @return prepaidUOM
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unit of measure for the prepaid balance.")
public String getPrepaidUOM() {
return prepaidUOM;
}
public void setPrepaidUOM(String prepaidUOM) {
this.prepaidUOM = prepaidUOM;
}
public PrepaidBalance startDate(LocalDate startDate) {
this.startDate = startDate;
return this;
}
/**
* Start date of the fund effective period.
* @return startDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sat Jan 01 00:00:00 GMT 2022", value = "Start date of the fund effective period.")
public LocalDate getStartDate() {
return startDate;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public PrepaidBalance endDate(LocalDate endDate) {
this.endDate = endDate;
return this;
}
/**
* End date of the fund effective period.
* @return endDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sun Jan 01 00:00:00 GMT 2023", value = "End date of the fund effective period.")
public LocalDate getEndDate() {
return endDate;
}
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}
public PrepaidBalance totalBalance(BigDecimal totalBalance) {
this.totalBalance = totalBalance;
return this;
}
/**
* The funded balance, which is the total units of the fund.
* @return totalBalance
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The funded balance, which is the total units of the fund. ")
public BigDecimal getTotalBalance() {
return totalBalance;
}
public void setTotalBalance(BigDecimal totalBalance) {
this.totalBalance = totalBalance;
}
public PrepaidBalance remainingBalance(BigDecimal remainingBalance) {
this.remainingBalance = remainingBalance;
return this;
}
/**
* Remaining balance on the fund, which is the remaining units of the fund.
* @return remainingBalance
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Remaining balance on the fund, which is the remaining units of the fund. ")
public BigDecimal getRemainingBalance() {
return remainingBalance;
}
public void setRemainingBalance(BigDecimal remainingBalance) {
this.remainingBalance = remainingBalance;
}
/**
* An array of prepaid balance transactions
* @return transactions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An array of prepaid balance transactions")
public List getTransactions() {
return transactions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PrepaidBalance prepaidBalance = (PrepaidBalance) o;
return Objects.equals(this.prepaidUOM, prepaidBalance.prepaidUOM) &&
Objects.equals(this.startDate, prepaidBalance.startDate) &&
Objects.equals(this.endDate, prepaidBalance.endDate) &&
Objects.equals(this.totalBalance, prepaidBalance.totalBalance) &&
Objects.equals(this.remainingBalance, prepaidBalance.remainingBalance) &&
Objects.equals(this.transactions, prepaidBalance.transactions);
}
@Override
public int hashCode() {
return Objects.hash(prepaidUOM, startDate, endDate, totalBalance, remainingBalance, transactions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PrepaidBalance {\n");
sb.append(" prepaidUOM: ").append(toIndentedString(prepaidUOM)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" totalBalance: ").append(toIndentedString(totalBalance)).append("\n");
sb.append(" remainingBalance: ").append(toIndentedString(remainingBalance)).append("\n");
sb.append(" transactions: ").append(toIndentedString(transactions)).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