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
 * Amount
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 Amount {
26
	public static final String SERIALIZED_NAME_AMOUNT = "amount";
27
	@JsonProperty(SERIALIZED_NAME_AMOUNT)
28
	@SerializedName(SERIALIZED_NAME_AMOUNT)
29
	private BigDecimal amount;
30
 
31
	public static final String SERIALIZED_NAME_CURRENCY = "currency";
32
	@JsonProperty(SERIALIZED_NAME_CURRENCY)
33
	@SerializedName(SERIALIZED_NAME_CURRENCY)
34
	private CurrencyEnum currency;
35
 
36
	public Amount amount(BigDecimal amount) {
37
 
38
		this.amount = amount;
39
		return this;
40
	}
41
 
42
	public BigDecimal getAmount() {
43
		return amount;
44
	}
45
 
46
	public void setAmount(BigDecimal amount) {
47
		this.amount = amount;
48
	}
49
 
50
	public Amount currency(CurrencyEnum currency) {
51
 
52
		this.currency = currency;
53
		return this;
54
	}
55
 
56
	public CurrencyEnum getCurrency() {
57
		return currency;
58
	}
59
 
60
	public void setCurrency(CurrencyEnum currency) {
61
		this.currency = currency;
62
	}
63
 
64
	@Override
65
	public boolean equals(Object o) {
66
		if (this == o) {
67
			return true;
68
		}
69
		if (o == null || getClass() != o.getClass()) {
70
			return false;
71
		}
72
		Amount amount = (Amount) o;
73
		return Objects.equals(this.amount, amount.amount) && Objects.equals(this.currency, amount.currency);
74
	}
75
 
76
	@Override
77
	public int hashCode() {
78
		return Objects.hash(amount, currency);
79
	}
80
 
81
	@Override
82
	public String toString() {
83
		StringBuilder sb = new StringBuilder();
84
		sb.append("class Amount {\n");
85
		sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
86
		sb.append("    currency: ").append(toIndentedString(currency)).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
}