All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openapitools.client.model.CreditMemoItemApplicationRequest Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* 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 org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
 * CreditMemoItemApplicationRequest
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreditMemoItemApplicationRequest {
  public static final String SERIALIZED_NAME_CREDIT_MEMO_ITEM_ID = "credit_memo_item_id";
  @SerializedName(SERIALIZED_NAME_CREDIT_MEMO_ITEM_ID)
  private String creditMemoItemId;

  public static final String SERIALIZED_NAME_AMOUNT = "amount";
  @SerializedName(SERIALIZED_NAME_AMOUNT)
  private BigDecimal amount;

  public static final String SERIALIZED_NAME_CREDIT_MEMO_TAXATION_ITEM_ID = "credit_memo_taxation_item_id";
  @SerializedName(SERIALIZED_NAME_CREDIT_MEMO_TAXATION_ITEM_ID)
  private String creditMemoTaxationItemId;

  public static final String SERIALIZED_NAME_TAXATION_ITEM_ID = "taxation_item_id";
  @SerializedName(SERIALIZED_NAME_TAXATION_ITEM_ID)
  private String taxationItemId;

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public CreditMemoItemApplicationRequest() { 
  }

  public CreditMemoItemApplicationRequest creditMemoItemId(String creditMemoItemId) {
    
    this.creditMemoItemId = creditMemoItemId;
    return this;
  }

   /**
   * The identifier of the credit memo item to apply.
   * @return creditMemoItemId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The identifier of the credit memo item to apply.")

  public String getCreditMemoItemId() {
    return creditMemoItemId;
  }


  public void setCreditMemoItemId(String creditMemoItemId) {
    this.creditMemoItemId = creditMemoItemId;
  }


  public CreditMemoItemApplicationRequest amount(BigDecimal amount) {
    
    this.amount = amount;
    return this;
  }

   /**
   * The credit memo amount applied to this billing document item or taxation item.
   * @return amount
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "The credit memo amount applied to this billing document item or taxation item.")

  public BigDecimal getAmount() {
    return amount;
  }


  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }


  public CreditMemoItemApplicationRequest creditMemoTaxationItemId(String creditMemoTaxationItemId) {
    
    this.creditMemoTaxationItemId = creditMemoTaxationItemId;
    return this;
  }

   /**
   * The identifier of the credit memo taxation item to apply.
   * @return creditMemoTaxationItemId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The identifier of the credit memo taxation item to apply.")

  public String getCreditMemoTaxationItemId() {
    return creditMemoTaxationItemId;
  }


  public void setCreditMemoTaxationItemId(String creditMemoTaxationItemId) {
    this.creditMemoTaxationItemId = creditMemoTaxationItemId;
  }


  public CreditMemoItemApplicationRequest taxationItemId(String taxationItemId) {
    
    this.taxationItemId = taxationItemId;
    return this;
  }

   /**
   * The identifier of a taxation item.
   * @return taxationItemId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The identifier of a taxation item.")

  public String getTaxationItemId() {
    return taxationItemId;
  }


  public void setTaxationItemId(String taxationItemId) {
    this.taxationItemId = taxationItemId;
  }


  public CreditMemoItemApplicationRequest id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * The identifier of an invoice item or debit memo item.
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The identifier of an invoice item or debit memo item.")

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreditMemoItemApplicationRequest creditMemoItemApplicationRequest = (CreditMemoItemApplicationRequest) o;
    return Objects.equals(this.creditMemoItemId, creditMemoItemApplicationRequest.creditMemoItemId) &&
        Objects.equals(this.amount, creditMemoItemApplicationRequest.amount) &&
        Objects.equals(this.creditMemoTaxationItemId, creditMemoItemApplicationRequest.creditMemoTaxationItemId) &&
        Objects.equals(this.taxationItemId, creditMemoItemApplicationRequest.taxationItemId) &&
        Objects.equals(this.id, creditMemoItemApplicationRequest.id);
  }

  @Override
  public int hashCode() {
    return Objects.hash(creditMemoItemId, amount, creditMemoTaxationItemId, taxationItemId, id);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreditMemoItemApplicationRequest {\n");
    sb.append("    creditMemoItemId: ").append(toIndentedString(creditMemoItemId)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    creditMemoTaxationItemId: ").append(toIndentedString(creditMemoTaxationItemId)).append("\n");
    sb.append("    taxationItemId: ").append(toIndentedString(taxationItemId)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).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