Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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.math.BigDecimal;
16
import java.util.Objects;
17
 
18
import com.fasterxml.jackson.annotation.JsonProperty;
19
import com.google.gson.annotations.SerializedName;
20
 
21
/**
22
 * Item
23
 */
24
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-13T10:59:30.263+05:30[Asia/Kolkata]")
25
public class Item {
26
	public static final String SERIALIZED_NAME_NAME = "name";
27
	@JsonProperty(SERIALIZED_NAME_NAME)
28
	@SerializedName(SERIALIZED_NAME_NAME)
29
	private String name;
30
 
31
	public static final String SERIALIZED_NAME_SKU = "sku";
32
	@JsonProperty(SERIALIZED_NAME_SKU)
33
	@SerializedName(SERIALIZED_NAME_SKU)
34
	private String sku;
35
 
36
	public static final String SERIALIZED_NAME_QUANTITY = "quantity";
37
	@JsonProperty(SERIALIZED_NAME_QUANTITY)
38
	@SerializedName(SERIALIZED_NAME_QUANTITY)
39
	private BigDecimal quantity;
40
 
41
	public static final String SERIALIZED_NAME_PRICE = "price";
42
	@JsonProperty(SERIALIZED_NAME_PRICE)
43
	@SerializedName(SERIALIZED_NAME_PRICE)
44
	private Amount price;
45
 
46
	public Item name(String name) {
47
 
48
		this.name = name;
49
		return this;
50
	}
51
 
52
	public String getName() {
53
		return name;
54
	}
55
 
56
	public void setName(String name) {
57
		this.name = name;
58
	}
59
 
60
	public Item sku(String sku) {
61
 
62
		this.sku = sku;
63
		return this;
64
	}
65
 
66
	public void setSku(String sku) {
67
		this.sku = sku;
68
	}
69
 
70
	public Item quantity(BigDecimal quantity) {
71
 
72
		this.quantity = quantity;
73
		return this;
74
	}
75
 
76
	public BigDecimal getQuantity() {
77
		return quantity;
78
	}
79
 
80
	public void setQuantity(BigDecimal quantity) {
81
		this.quantity = quantity;
82
	}
83
 
84
	public Item price(Amount price) {
85
 
86
		this.price = price;
87
		return this;
88
	}
89
 
90
	public Amount getPrice() {
91
		return price;
92
	}
93
 
94
	public void setPrice(Amount price) {
95
		this.price = price;
96
	}
97
 
98
	@Override
99
	public boolean equals(Object o) {
100
		if (this == o) {
101
			return true;
102
		}
103
		if (o == null || getClass() != o.getClass()) {
104
			return false;
105
		}
106
		Item item = (Item) o;
107
		return Objects.equals(this.name, item.name) && Objects.equals(this.sku, item.sku)
108
				&& Objects.equals(this.quantity, item.quantity) && Objects.equals(this.price, item.price);
109
	}
110
 
111
	@Override
112
	public int hashCode() {
113
		return Objects.hash(name, sku, quantity, price);
114
	}
115
 
116
	@Override
117
	public String toString() {
118
		StringBuilder sb = new StringBuilder();
119
		sb.append("class Item {\n");
120
		sb.append("    name: ").append(toIndentedString(name)).append("\n");
121
		sb.append("    sku: ").append(toIndentedString(sku)).append("\n");
122
		sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
123
		sb.append("    price: ").append(toIndentedString(price)).append("\n");
124
		sb.append("}");
125
		return sb.toString();
126
	}
127
 
128
	/**
129
	 * Convert the given object to string with each line indented by 4 spaces
130
	 * (except the first line).
131
	 */
132
	private String toIndentedString(Object o) {
133
		if (o == null) {
134
			return "null";
135
		}
136
		return o.toString().replace("\n", "\n    ");
137
	}
138
 
139
}