| 29495 |
amit.gupta |
1 |
/*
|
|
|
2 |
* MANDII
|
|
|
3 |
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
4 |
*
|
|
|
5 |
* The version of the OpenAPI document: 0.1.0
|
|
|
6 |
*
|
|
|
7 |
*
|
|
|
8 |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
|
9 |
* https://openapi-generator.tech
|
|
|
10 |
* Do not edit the class manually.
|
|
|
11 |
*/
|
|
|
12 |
|
|
|
13 |
package com.spice.profitmandi.common.services.mandii;
|
|
|
14 |
|
|
|
15 |
import java.util.Objects;
|
|
|
16 |
|
|
|
17 |
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
18 |
import com.google.gson.annotations.SerializedName;
|
|
|
19 |
|
|
|
20 |
/**
|
|
|
21 |
* Discount
|
|
|
22 |
*/
|
|
|
23 |
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-13T10:59:30.263+05:30[Asia/Kolkata]")
|
|
|
24 |
public class Discount {
|
|
|
25 |
public static final String SERIALIZED_NAME_NAME = "name";
|
|
|
26 |
@JsonProperty(SERIALIZED_NAME_NAME)
|
|
|
27 |
@SerializedName(SERIALIZED_NAME_NAME)
|
|
|
28 |
private String name;
|
|
|
29 |
|
|
|
30 |
public static final String SERIALIZED_NAME_DISCOUNTED_AMOUNT = "discounted_amount";
|
|
|
31 |
@JsonProperty(SERIALIZED_NAME_DISCOUNTED_AMOUNT)
|
|
|
32 |
@SerializedName(SERIALIZED_NAME_DISCOUNTED_AMOUNT)
|
|
|
33 |
private Amount discountedAmount;
|
|
|
34 |
|
|
|
35 |
public Discount name(String name) {
|
|
|
36 |
|
|
|
37 |
this.name = name;
|
|
|
38 |
return this;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public String getName() {
|
|
|
42 |
return name;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public void setName(String name) {
|
|
|
46 |
this.name = name;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public Discount discountedAmount(Amount discountedAmount) {
|
|
|
50 |
|
|
|
51 |
this.discountedAmount = discountedAmount;
|
|
|
52 |
return this;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
public Amount getDiscountedAmount() {
|
|
|
56 |
return discountedAmount;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
public void setDiscountedAmount(Amount discountedAmount) {
|
|
|
60 |
this.discountedAmount = discountedAmount;
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
@Override
|
|
|
64 |
public boolean equals(Object o) {
|
|
|
65 |
if (this == o) {
|
|
|
66 |
return true;
|
|
|
67 |
}
|
|
|
68 |
if (o == null || getClass() != o.getClass()) {
|
|
|
69 |
return false;
|
|
|
70 |
}
|
|
|
71 |
Discount discount = (Discount) o;
|
|
|
72 |
return Objects.equals(this.name, discount.name)
|
|
|
73 |
&& Objects.equals(this.discountedAmount, discount.discountedAmount);
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
@Override
|
|
|
77 |
public int hashCode() {
|
|
|
78 |
return Objects.hash(name, discountedAmount);
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
@Override
|
|
|
82 |
public String toString() {
|
|
|
83 |
StringBuilder sb = new StringBuilder();
|
|
|
84 |
sb.append("class Discount {\n");
|
|
|
85 |
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
|
86 |
sb.append(" discountedAmount: ").append(toIndentedString(discountedAmount)).append("\n");
|
|
|
87 |
sb.append("}");
|
|
|
88 |
return sb.toString();
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* Convert the given object to string with each line indented by 4 spaces
|
|
|
93 |
* (except the first line).
|
|
|
94 |
*/
|
|
|
95 |
private String toIndentedString(Object o) {
|
|
|
96 |
if (o == null) {
|
|
|
97 |
return "null";
|
|
|
98 |
}
|
|
|
99 |
return o.toString().replace("\n", "\n ");
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
}
|