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

org.openapitools.client.model.BillingDocumentItemPaymentApplicationRequest 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;
/**
 * BillingDocumentItemPaymentApplicationRequest
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BillingDocumentItemPaymentApplicationRequest {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

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

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

  public BillingDocumentItemPaymentApplicationRequest() { 
  }

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

   /**
   * Identifier of an invoice item or a debit memo item.
   * @return id
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "Identifier of an invoice item or a debit memo item.")

  public String getId() {
    return id;
  }


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


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

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

  public BigDecimal getAmount() {
    return amount;
  }


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


  public BillingDocumentItemPaymentApplicationRequest 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;
  }


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

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

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