dev.crashteam.openapi.uzumanalytics.model.DiscountPromoCodeAllOf 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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DiscountPromoCodeAllOf
*/
@JsonPropertyOrder({
DiscountPromoCodeAllOf.JSON_PROPERTY_DISCOUNT
})
@JsonTypeName("DiscountPromoCode_allOf")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-21T16:53:18.489277710Z[Etc/UTC]")
public class DiscountPromoCodeAllOf {
public static final String JSON_PROPERTY_DISCOUNT = "discount";
private Integer discount;
public DiscountPromoCodeAllOf() {
}
public DiscountPromoCodeAllOf 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 boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DiscountPromoCodeAllOf discountPromoCodeAllOf = (DiscountPromoCodeAllOf) o;
return Objects.equals(this.discount, discountPromoCodeAllOf.discount);
}
@Override
public int hashCode() {
return Objects.hash(discount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DiscountPromoCodeAllOf {\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