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.util.Objects;
16
 
17
import com.fasterxml.jackson.annotation.JsonProperty;
18
import com.google.gson.annotations.SerializedName;
19
 
20
/**
21
 * Documents
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 Documents {
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_STATUS = "status";
31
	@JsonProperty(SERIALIZED_NAME_STATUS)
32
	@SerializedName(SERIALIZED_NAME_STATUS)
33
	private DocumentStatusEnum status;
34
 
35
	public static final String SERIALIZED_NAME_DOCUMENT_TYPE = "document_type";
36
	@JsonProperty(SERIALIZED_NAME_DOCUMENT_TYPE)
37
	@SerializedName(SERIALIZED_NAME_DOCUMENT_TYPE)
38
	private DocumentTypesEnum documentType;
39
 
40
	public static final String SERIALIZED_NAME_REASON = "reason";
41
	@JsonProperty(SERIALIZED_NAME_REASON)
42
	@SerializedName(SERIALIZED_NAME_REASON)
43
	private String reason;
44
 
45
	public Documents name(String name) {
46
 
47
		this.name = name;
48
		return this;
49
	}
50
 
51
	/**
52
	 * Get name
53
	 * 
54
	 * @return name
55
	 **/
56
 
57
	public String getName() {
58
		return name;
59
	}
60
 
61
	public void setName(String name) {
62
		this.name = name;
63
	}
64
 
65
	public Documents status(DocumentStatusEnum status) {
66
 
67
		this.status = status;
68
		return this;
69
	}
70
 
71
	/**
72
	 * Get status
73
	 * 
74
	 * @return status
75
	 **/
76
 
77
	public DocumentStatusEnum getStatus() {
78
		return status;
79
	}
80
 
81
	public void setStatus(DocumentStatusEnum status) {
82
		this.status = status;
83
	}
84
 
85
	public Documents documentType(DocumentTypesEnum documentType) {
86
 
87
		this.documentType = documentType;
88
		return this;
89
	}
90
 
91
	/**
92
	 * Get documentType
93
	 * 
94
	 * @return documentType
95
	 **/
96
 
97
	public DocumentTypesEnum getDocumentType() {
98
		return documentType;
99
	}
100
 
101
	public void setDocumentType(DocumentTypesEnum documentType) {
102
		this.documentType = documentType;
103
	}
104
 
105
	public Documents reason(String reason) {
106
 
107
		this.reason = reason;
108
		return this;
109
	}
110
 
111
	/**
112
	 * Get reason
113
	 * 
114
	 * @return reason
115
	 **/
116
	public String getReason() {
117
		return reason;
118
	}
119
 
120
	public void setReason(String reason) {
121
		this.reason = reason;
122
	}
123
 
124
	@Override
125
	public boolean equals(Object o) {
126
		if (this == o) {
127
			return true;
128
		}
129
		if (o == null || getClass() != o.getClass()) {
130
			return false;
131
		}
132
		Documents documents = (Documents) o;
133
		return Objects.equals(this.name, documents.name) && Objects.equals(this.status, documents.status)
134
				&& Objects.equals(this.documentType, documents.documentType)
135
				&& Objects.equals(this.reason, documents.reason);
136
	}
137
 
138
	@Override
139
	public int hashCode() {
140
		return Objects.hash(name, status, documentType, reason);
141
	}
142
 
143
	@Override
144
	public String toString() {
145
		StringBuilder sb = new StringBuilder();
146
		sb.append("class Documents {\n");
147
		sb.append("    name: ").append(toIndentedString(name)).append("\n");
148
		sb.append("    status: ").append(toIndentedString(status)).append("\n");
149
		sb.append("    documentType: ").append(toIndentedString(documentType)).append("\n");
150
		sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
151
		sb.append("}");
152
		return sb.toString();
153
	}
154
 
155
	/**
156
	 * Convert the given object to string with each line indented by 4 spaces
157
	 * (except the first line).
158
	 */
159
	private String toIndentedString(Object o) {
160
		if (o == null) {
161
			return "null";
162
		}
163
		return o.toString().replace("\n", "\n    ");
164
	}
165
 
166
}