dev.crashteam.openapi.uzumanalytics.model.DiscountPromoCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-uzum-analytics Show documentation
Show all versions of openapi-uzum-analytics Show documentation
Generates jar artifact containing compiled openapi classes based on generated openapi yaml files
/*
* CrashTeam Uzum Analytics API
* CrashTeam Dev Uzum Analytics API
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package dev.crashteam.openapi.uzumanalytics.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import dev.crashteam.openapi.uzumanalytics.model.PromoCodeContext;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DiscountPromoCode
*/
@JsonPropertyOrder({
DiscountPromoCode.JSON_PROPERTY_DISCOUNT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-21T16:53:18.489277710Z[Etc/UTC]")
@JsonIgnoreProperties(
value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization
allowSetters = true // allows the type to be set during deserialization
)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
public class DiscountPromoCode extends PromoCodeContext {
public static final String JSON_PROPERTY_DISCOUNT = "discount";
private Integer discount;
public DiscountPromoCode() {
}
public DiscountPromoCode discount(Integer discount) {
this.discount = discount;
return this;
}
/**
* Скидка при покупке
* minimum: 1
* maximum: 99
* @return discount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DISCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getDiscount() {
return discount;
}
@JsonProperty(JSON_PROPERTY_DISCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDiscount(Integer discount) {
this.discount = discount;
}
@Override
public DiscountPromoCode type(TypeEnum type) {
this.setType(type);
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DiscountPromoCode discountPromoCode = (DiscountPromoCode) o;
return Objects.equals(this.discount, discountPromoCode.discount) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(discount, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DiscountPromoCode {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" discount: ").append(toIndentedString(discount)).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