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

net.rrworld.henrikval.gen.model.BundleRawItemsInner Maven / Gradle / Ivy

The newest version!
package net.rrworld.henrikval.gen.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.math.BigDecimal;
import net.rrworld.henrikval.gen.model.BundleRawItemsInnerItem;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import javax.annotation.Generated;

/**
 * BundleRawItemsInner
 */

@JsonTypeName("bundle_raw_Items_inner")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-26T19:32:28.190871Z[Etc/UTC]", comments = "Generator version: 7.8.0")
public class BundleRawItemsInner {

  private BundleRawItemsInnerItem item;

  private Integer basePrice;

  private String currencyID;

  private BigDecimal discountPercent;

  private Integer discountedPrice;

  private Boolean isPromoItem;

  public BundleRawItemsInner item(BundleRawItemsInnerItem item) {
    this.item = item;
    return this;
  }

  /**
   * Get item
   * @return item
   */
  @Valid 
  @Schema(name = "Item", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("Item")
  public BundleRawItemsInnerItem getItem() {
    return item;
  }

  public void setItem(BundleRawItemsInnerItem item) {
    this.item = item;
  }

  public BundleRawItemsInner basePrice(Integer basePrice) {
    this.basePrice = basePrice;
    return this;
  }

  /**
   * Get basePrice
   * @return basePrice
   */
  
  @Schema(name = "BasePrice", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("BasePrice")
  public Integer getBasePrice() {
    return basePrice;
  }

  public void setBasePrice(Integer basePrice) {
    this.basePrice = basePrice;
  }

  public BundleRawItemsInner currencyID(String currencyID) {
    this.currencyID = currencyID;
    return this;
  }

  /**
   * Get currencyID
   * @return currencyID
   */
  
  @Schema(name = "CurrencyID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("CurrencyID")
  public String getCurrencyID() {
    return currencyID;
  }

  public void setCurrencyID(String currencyID) {
    this.currencyID = currencyID;
  }

  public BundleRawItemsInner discountPercent(BigDecimal discountPercent) {
    this.discountPercent = discountPercent;
    return this;
  }

  /**
   * Get discountPercent
   * @return discountPercent
   */
  @Valid 
  @Schema(name = "DiscountPercent", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("DiscountPercent")
  public BigDecimal getDiscountPercent() {
    return discountPercent;
  }

  public void setDiscountPercent(BigDecimal discountPercent) {
    this.discountPercent = discountPercent;
  }

  public BundleRawItemsInner discountedPrice(Integer discountedPrice) {
    this.discountedPrice = discountedPrice;
    return this;
  }

  /**
   * Get discountedPrice
   * @return discountedPrice
   */
  
  @Schema(name = "DiscountedPrice", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("DiscountedPrice")
  public Integer getDiscountedPrice() {
    return discountedPrice;
  }

  public void setDiscountedPrice(Integer discountedPrice) {
    this.discountedPrice = discountedPrice;
  }

  public BundleRawItemsInner isPromoItem(Boolean isPromoItem) {
    this.isPromoItem = isPromoItem;
    return this;
  }

  /**
   * Get isPromoItem
   * @return isPromoItem
   */
  
  @Schema(name = "IsPromoItem", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("IsPromoItem")
  public Boolean getIsPromoItem() {
    return isPromoItem;
  }

  public void setIsPromoItem(Boolean isPromoItem) {
    this.isPromoItem = isPromoItem;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BundleRawItemsInner bundleRawItemsInner = (BundleRawItemsInner) o;
    return Objects.equals(this.item, bundleRawItemsInner.item) &&
        Objects.equals(this.basePrice, bundleRawItemsInner.basePrice) &&
        Objects.equals(this.currencyID, bundleRawItemsInner.currencyID) &&
        Objects.equals(this.discountPercent, bundleRawItemsInner.discountPercent) &&
        Objects.equals(this.discountedPrice, bundleRawItemsInner.discountedPrice) &&
        Objects.equals(this.isPromoItem, bundleRawItemsInner.isPromoItem);
  }

  @Override
  public int hashCode() {
    return Objects.hash(item, basePrice, currencyID, discountPercent, discountedPrice, isPromoItem);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BundleRawItemsInner {\n");
    sb.append("    item: ").append(toIndentedString(item)).append("\n");
    sb.append("    basePrice: ").append(toIndentedString(basePrice)).append("\n");
    sb.append("    currencyID: ").append(toIndentedString(currencyID)).append("\n");
    sb.append("    discountPercent: ").append(toIndentedString(discountPercent)).append("\n");
    sb.append("    discountedPrice: ").append(toIndentedString(discountedPrice)).append("\n");
    sb.append("    isPromoItem: ").append(toIndentedString(isPromoItem)).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 - 2024 Weber Informatics LLC | Privacy Policy