| 123 |
ashish |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.payments;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.util.Arrays;
|
|
|
19 |
import org.slf4j.Logger;
|
|
|
20 |
import org.slf4j.LoggerFactory;
|
|
|
21 |
|
|
|
22 |
import org.apache.thrift.*;
|
|
|
23 |
import org.apache.thrift.meta_data.*;
|
|
|
24 |
import org.apache.thrift.protocol.*;
|
|
|
25 |
|
|
|
26 |
public class Payment implements TBase<Payment._Fields>, java.io.Serializable, Cloneable {
|
|
|
27 |
private static final TStruct STRUCT_DESC = new TStruct("Payment");
|
|
|
28 |
|
| 420 |
ashish |
29 |
private static final TField MERCHANT_TX_ID_FIELD_DESC = new TField("merchant_tx_id", TType.STRING, (short)1);
|
|
|
30 |
private static final TField BANK_TX_ID_FIELD_DESC = new TField("bank_tx_id", TType.STRING, (short)2);
|
| 123 |
ashish |
31 |
private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)3);
|
|
|
32 |
private static final TField INIT_TIMESTAMP_FIELD_DESC = new TField("init_timestamp", TType.I64, (short)4);
|
|
|
33 |
private static final TField BANK_ACK_TIMESTAMP_FIELD_DESC = new TField("bank_ack_timestamp", TType.I64, (short)5);
|
|
|
34 |
private static final TField BANK_STATUS_FIELD_DESC = new TField("bank_status", TType.STRING, (short)6);
|
|
|
35 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)7);
|
|
|
36 |
private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)8);
|
|
|
37 |
private static final TField USER_ID_FIELD_DESC = new TField("user_id", TType.I64, (short)9);
|
|
|
38 |
private static final TField CART_ID_FIELD_DESC = new TField("cart_id", TType.I64, (short)10);
|
|
|
39 |
private static final TField OTHER_INFO_FIELD_DESC = new TField("other_info", TType.MAP, (short)11);
|
| 420 |
ashish |
40 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gateway_id", TType.I64, (short)12);
|
|
|
41 |
private static final TField PAYMENT_ID_FIELD_DESC = new TField("payment_id", TType.STRING, (short)13);
|
|
|
42 |
private static final TField ERROR_CODE_FIELD_DESC = new TField("error_code", TType.STRING, (short)14);
|
|
|
43 |
private static final TField SESSION_ID_FIELD_DESC = new TField("session_id", TType.STRING, (short)15);
|
|
|
44 |
private static final TField REF_CODE_FIELD_DESC = new TField("ref_code", TType.STRING, (short)16);
|
|
|
45 |
private static final TField AUTH_CODE_FIELD_DESC = new TField("auth_code", TType.STRING, (short)17);
|
|
|
46 |
private static final TField POST_DATE_FIELD_DESC = new TField("post_date", TType.STRING, (short)18);
|
| 123 |
ashish |
47 |
|
| 420 |
ashish |
48 |
private String merchant_tx_id;
|
|
|
49 |
private String bank_tx_id;
|
| 123 |
ashish |
50 |
private double amount;
|
|
|
51 |
private long init_timestamp;
|
|
|
52 |
private long bank_ack_timestamp;
|
|
|
53 |
private String bank_status;
|
|
|
54 |
private PaymentStatus status;
|
|
|
55 |
private String message;
|
|
|
56 |
private long user_id;
|
|
|
57 |
private long cart_id;
|
|
|
58 |
private Map<String,String> other_info;
|
| 420 |
ashish |
59 |
private long gateway_id;
|
|
|
60 |
private String payment_id;
|
|
|
61 |
private String error_code;
|
|
|
62 |
private String session_id;
|
|
|
63 |
private String ref_code;
|
|
|
64 |
private String auth_code;
|
|
|
65 |
private String post_date;
|
| 123 |
ashish |
66 |
|
|
|
67 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
68 |
public enum _Fields implements TFieldIdEnum {
|
|
|
69 |
MERCHANT_TX_ID((short)1, "merchant_tx_id"),
|
|
|
70 |
BANK_TX_ID((short)2, "bank_tx_id"),
|
|
|
71 |
AMOUNT((short)3, "amount"),
|
|
|
72 |
INIT_TIMESTAMP((short)4, "init_timestamp"),
|
|
|
73 |
BANK_ACK_TIMESTAMP((short)5, "bank_ack_timestamp"),
|
|
|
74 |
BANK_STATUS((short)6, "bank_status"),
|
|
|
75 |
/**
|
|
|
76 |
*
|
|
|
77 |
* @see PaymentStatus
|
|
|
78 |
*/
|
|
|
79 |
STATUS((short)7, "status"),
|
|
|
80 |
MESSAGE((short)8, "message"),
|
|
|
81 |
USER_ID((short)9, "user_id"),
|
|
|
82 |
CART_ID((short)10, "cart_id"),
|
|
|
83 |
OTHER_INFO((short)11, "other_info"),
|
| 420 |
ashish |
84 |
GATEWAY_ID((short)12, "gateway_id"),
|
|
|
85 |
PAYMENT_ID((short)13, "payment_id"),
|
|
|
86 |
ERROR_CODE((short)14, "error_code"),
|
|
|
87 |
SESSION_ID((short)15, "session_id"),
|
|
|
88 |
REF_CODE((short)16, "ref_code"),
|
|
|
89 |
AUTH_CODE((short)17, "auth_code"),
|
|
|
90 |
POST_DATE((short)18, "post_date");
|
| 123 |
ashish |
91 |
|
|
|
92 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
93 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
94 |
|
|
|
95 |
static {
|
|
|
96 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
97 |
byId.put((int)field._thriftId, field);
|
|
|
98 |
byName.put(field.getFieldName(), field);
|
|
|
99 |
}
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
104 |
*/
|
|
|
105 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
106 |
return byId.get(fieldId);
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
111 |
* if it is not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
114 |
_Fields fields = findByThriftId(fieldId);
|
|
|
115 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
116 |
return fields;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByName(String name) {
|
|
|
123 |
return byName.get(name);
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
private final short _thriftId;
|
|
|
127 |
private final String _fieldName;
|
|
|
128 |
|
|
|
129 |
_Fields(short thriftId, String fieldName) {
|
|
|
130 |
_thriftId = thriftId;
|
|
|
131 |
_fieldName = fieldName;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public short getThriftFieldId() {
|
|
|
135 |
return _thriftId;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public String getFieldName() {
|
|
|
139 |
return _fieldName;
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
// isset id assignments
|
| 420 |
ashish |
144 |
private static final int __AMOUNT_ISSET_ID = 0;
|
|
|
145 |
private static final int __INIT_TIMESTAMP_ISSET_ID = 1;
|
|
|
146 |
private static final int __BANK_ACK_TIMESTAMP_ISSET_ID = 2;
|
|
|
147 |
private static final int __USER_ID_ISSET_ID = 3;
|
|
|
148 |
private static final int __CART_ID_ISSET_ID = 4;
|
|
|
149 |
private static final int __GATEWAY_ID_ISSET_ID = 5;
|
|
|
150 |
private BitSet __isset_bit_vector = new BitSet(6);
|
| 123 |
ashish |
151 |
|
|
|
152 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
153 |
put(_Fields.MERCHANT_TX_ID, new FieldMetaData("merchant_tx_id", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
154 |
new FieldValueMetaData(TType.STRING)));
|
| 123 |
ashish |
155 |
put(_Fields.BANK_TX_ID, new FieldMetaData("bank_tx_id", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
156 |
new FieldValueMetaData(TType.STRING)));
|
| 123 |
ashish |
157 |
put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT,
|
|
|
158 |
new FieldValueMetaData(TType.DOUBLE)));
|
|
|
159 |
put(_Fields.INIT_TIMESTAMP, new FieldMetaData("init_timestamp", TFieldRequirementType.DEFAULT,
|
|
|
160 |
new FieldValueMetaData(TType.I64)));
|
|
|
161 |
put(_Fields.BANK_ACK_TIMESTAMP, new FieldMetaData("bank_ack_timestamp", TFieldRequirementType.DEFAULT,
|
|
|
162 |
new FieldValueMetaData(TType.I64)));
|
|
|
163 |
put(_Fields.BANK_STATUS, new FieldMetaData("bank_status", TFieldRequirementType.DEFAULT,
|
|
|
164 |
new FieldValueMetaData(TType.STRING)));
|
|
|
165 |
put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,
|
|
|
166 |
new EnumMetaData(TType.ENUM, PaymentStatus.class)));
|
|
|
167 |
put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,
|
|
|
168 |
new FieldValueMetaData(TType.STRING)));
|
|
|
169 |
put(_Fields.USER_ID, new FieldMetaData("user_id", TFieldRequirementType.DEFAULT,
|
|
|
170 |
new FieldValueMetaData(TType.I64)));
|
|
|
171 |
put(_Fields.CART_ID, new FieldMetaData("cart_id", TFieldRequirementType.DEFAULT,
|
|
|
172 |
new FieldValueMetaData(TType.I64)));
|
|
|
173 |
put(_Fields.OTHER_INFO, new FieldMetaData("other_info", TFieldRequirementType.DEFAULT,
|
|
|
174 |
new MapMetaData(TType.MAP,
|
|
|
175 |
new FieldValueMetaData(TType.STRING),
|
|
|
176 |
new FieldValueMetaData(TType.STRING))));
|
| 420 |
ashish |
177 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gateway_id", TFieldRequirementType.DEFAULT,
|
|
|
178 |
new FieldValueMetaData(TType.I64)));
|
|
|
179 |
put(_Fields.PAYMENT_ID, new FieldMetaData("payment_id", TFieldRequirementType.DEFAULT,
|
|
|
180 |
new FieldValueMetaData(TType.STRING)));
|
|
|
181 |
put(_Fields.ERROR_CODE, new FieldMetaData("error_code", TFieldRequirementType.DEFAULT,
|
|
|
182 |
new FieldValueMetaData(TType.STRING)));
|
|
|
183 |
put(_Fields.SESSION_ID, new FieldMetaData("session_id", TFieldRequirementType.DEFAULT,
|
|
|
184 |
new FieldValueMetaData(TType.STRING)));
|
|
|
185 |
put(_Fields.REF_CODE, new FieldMetaData("ref_code", TFieldRequirementType.DEFAULT,
|
|
|
186 |
new FieldValueMetaData(TType.STRING)));
|
|
|
187 |
put(_Fields.AUTH_CODE, new FieldMetaData("auth_code", TFieldRequirementType.DEFAULT,
|
|
|
188 |
new FieldValueMetaData(TType.STRING)));
|
|
|
189 |
put(_Fields.POST_DATE, new FieldMetaData("post_date", TFieldRequirementType.DEFAULT,
|
|
|
190 |
new FieldValueMetaData(TType.STRING)));
|
| 123 |
ashish |
191 |
}});
|
|
|
192 |
|
|
|
193 |
static {
|
|
|
194 |
FieldMetaData.addStructMetaDataMap(Payment.class, metaDataMap);
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
public Payment() {
|
|
|
198 |
}
|
|
|
199 |
|
|
|
200 |
public Payment(
|
| 420 |
ashish |
201 |
String merchant_tx_id,
|
|
|
202 |
String bank_tx_id,
|
| 123 |
ashish |
203 |
double amount,
|
|
|
204 |
long init_timestamp,
|
|
|
205 |
long bank_ack_timestamp,
|
|
|
206 |
String bank_status,
|
|
|
207 |
PaymentStatus status,
|
|
|
208 |
String message,
|
|
|
209 |
long user_id,
|
|
|
210 |
long cart_id,
|
|
|
211 |
Map<String,String> other_info,
|
| 420 |
ashish |
212 |
long gateway_id,
|
|
|
213 |
String payment_id,
|
|
|
214 |
String error_code,
|
|
|
215 |
String session_id,
|
|
|
216 |
String ref_code,
|
|
|
217 |
String auth_code,
|
|
|
218 |
String post_date)
|
| 123 |
ashish |
219 |
{
|
|
|
220 |
this();
|
|
|
221 |
this.merchant_tx_id = merchant_tx_id;
|
|
|
222 |
this.bank_tx_id = bank_tx_id;
|
|
|
223 |
this.amount = amount;
|
|
|
224 |
setAmountIsSet(true);
|
|
|
225 |
this.init_timestamp = init_timestamp;
|
|
|
226 |
setInit_timestampIsSet(true);
|
|
|
227 |
this.bank_ack_timestamp = bank_ack_timestamp;
|
|
|
228 |
setBank_ack_timestampIsSet(true);
|
|
|
229 |
this.bank_status = bank_status;
|
|
|
230 |
this.status = status;
|
|
|
231 |
this.message = message;
|
|
|
232 |
this.user_id = user_id;
|
|
|
233 |
setUser_idIsSet(true);
|
|
|
234 |
this.cart_id = cart_id;
|
|
|
235 |
setCart_idIsSet(true);
|
|
|
236 |
this.other_info = other_info;
|
| 420 |
ashish |
237 |
this.gateway_id = gateway_id;
|
|
|
238 |
setGateway_idIsSet(true);
|
|
|
239 |
this.payment_id = payment_id;
|
|
|
240 |
this.error_code = error_code;
|
|
|
241 |
this.session_id = session_id;
|
|
|
242 |
this.ref_code = ref_code;
|
|
|
243 |
this.auth_code = auth_code;
|
|
|
244 |
this.post_date = post_date;
|
| 123 |
ashish |
245 |
}
|
|
|
246 |
|
|
|
247 |
/**
|
|
|
248 |
* Performs a deep copy on <i>other</i>.
|
|
|
249 |
*/
|
|
|
250 |
public Payment(Payment other) {
|
|
|
251 |
__isset_bit_vector.clear();
|
|
|
252 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 420 |
ashish |
253 |
if (other.isSetMerchant_tx_id()) {
|
|
|
254 |
this.merchant_tx_id = other.merchant_tx_id;
|
|
|
255 |
}
|
|
|
256 |
if (other.isSetBank_tx_id()) {
|
|
|
257 |
this.bank_tx_id = other.bank_tx_id;
|
|
|
258 |
}
|
| 123 |
ashish |
259 |
this.amount = other.amount;
|
|
|
260 |
this.init_timestamp = other.init_timestamp;
|
|
|
261 |
this.bank_ack_timestamp = other.bank_ack_timestamp;
|
|
|
262 |
if (other.isSetBank_status()) {
|
|
|
263 |
this.bank_status = other.bank_status;
|
|
|
264 |
}
|
|
|
265 |
if (other.isSetStatus()) {
|
|
|
266 |
this.status = other.status;
|
|
|
267 |
}
|
|
|
268 |
if (other.isSetMessage()) {
|
|
|
269 |
this.message = other.message;
|
|
|
270 |
}
|
|
|
271 |
this.user_id = other.user_id;
|
|
|
272 |
this.cart_id = other.cart_id;
|
|
|
273 |
if (other.isSetOther_info()) {
|
|
|
274 |
Map<String,String> __this__other_info = new HashMap<String,String>();
|
|
|
275 |
for (Map.Entry<String, String> other_element : other.other_info.entrySet()) {
|
|
|
276 |
|
|
|
277 |
String other_element_key = other_element.getKey();
|
|
|
278 |
String other_element_value = other_element.getValue();
|
|
|
279 |
|
|
|
280 |
String __this__other_info_copy_key = other_element_key;
|
|
|
281 |
|
|
|
282 |
String __this__other_info_copy_value = other_element_value;
|
|
|
283 |
|
|
|
284 |
__this__other_info.put(__this__other_info_copy_key, __this__other_info_copy_value);
|
|
|
285 |
}
|
|
|
286 |
this.other_info = __this__other_info;
|
|
|
287 |
}
|
| 420 |
ashish |
288 |
this.gateway_id = other.gateway_id;
|
|
|
289 |
if (other.isSetPayment_id()) {
|
|
|
290 |
this.payment_id = other.payment_id;
|
| 123 |
ashish |
291 |
}
|
| 420 |
ashish |
292 |
if (other.isSetError_code()) {
|
|
|
293 |
this.error_code = other.error_code;
|
|
|
294 |
}
|
|
|
295 |
if (other.isSetSession_id()) {
|
|
|
296 |
this.session_id = other.session_id;
|
|
|
297 |
}
|
|
|
298 |
if (other.isSetRef_code()) {
|
|
|
299 |
this.ref_code = other.ref_code;
|
|
|
300 |
}
|
|
|
301 |
if (other.isSetAuth_code()) {
|
|
|
302 |
this.auth_code = other.auth_code;
|
|
|
303 |
}
|
|
|
304 |
if (other.isSetPost_date()) {
|
|
|
305 |
this.post_date = other.post_date;
|
|
|
306 |
}
|
| 123 |
ashish |
307 |
}
|
|
|
308 |
|
|
|
309 |
public Payment deepCopy() {
|
|
|
310 |
return new Payment(this);
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
@Deprecated
|
|
|
314 |
public Payment clone() {
|
|
|
315 |
return new Payment(this);
|
|
|
316 |
}
|
|
|
317 |
|
| 420 |
ashish |
318 |
public String getMerchant_tx_id() {
|
| 123 |
ashish |
319 |
return this.merchant_tx_id;
|
|
|
320 |
}
|
|
|
321 |
|
| 420 |
ashish |
322 |
public Payment setMerchant_tx_id(String merchant_tx_id) {
|
| 123 |
ashish |
323 |
this.merchant_tx_id = merchant_tx_id;
|
|
|
324 |
return this;
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void unsetMerchant_tx_id() {
|
| 420 |
ashish |
328 |
this.merchant_tx_id = null;
|
| 123 |
ashish |
329 |
}
|
|
|
330 |
|
|
|
331 |
/** Returns true if field merchant_tx_id is set (has been asigned a value) and false otherwise */
|
|
|
332 |
public boolean isSetMerchant_tx_id() {
|
| 420 |
ashish |
333 |
return this.merchant_tx_id != null;
|
| 123 |
ashish |
334 |
}
|
|
|
335 |
|
|
|
336 |
public void setMerchant_tx_idIsSet(boolean value) {
|
| 420 |
ashish |
337 |
if (!value) {
|
|
|
338 |
this.merchant_tx_id = null;
|
|
|
339 |
}
|
| 123 |
ashish |
340 |
}
|
|
|
341 |
|
| 420 |
ashish |
342 |
public String getBank_tx_id() {
|
| 123 |
ashish |
343 |
return this.bank_tx_id;
|
|
|
344 |
}
|
|
|
345 |
|
| 420 |
ashish |
346 |
public Payment setBank_tx_id(String bank_tx_id) {
|
| 123 |
ashish |
347 |
this.bank_tx_id = bank_tx_id;
|
|
|
348 |
return this;
|
|
|
349 |
}
|
|
|
350 |
|
|
|
351 |
public void unsetBank_tx_id() {
|
| 420 |
ashish |
352 |
this.bank_tx_id = null;
|
| 123 |
ashish |
353 |
}
|
|
|
354 |
|
|
|
355 |
/** Returns true if field bank_tx_id is set (has been asigned a value) and false otherwise */
|
|
|
356 |
public boolean isSetBank_tx_id() {
|
| 420 |
ashish |
357 |
return this.bank_tx_id != null;
|
| 123 |
ashish |
358 |
}
|
|
|
359 |
|
|
|
360 |
public void setBank_tx_idIsSet(boolean value) {
|
| 420 |
ashish |
361 |
if (!value) {
|
|
|
362 |
this.bank_tx_id = null;
|
|
|
363 |
}
|
| 123 |
ashish |
364 |
}
|
|
|
365 |
|
|
|
366 |
public double getAmount() {
|
|
|
367 |
return this.amount;
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public Payment setAmount(double amount) {
|
|
|
371 |
this.amount = amount;
|
|
|
372 |
setAmountIsSet(true);
|
|
|
373 |
return this;
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void unsetAmount() {
|
|
|
377 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
/** Returns true if field amount is set (has been asigned a value) and false otherwise */
|
|
|
381 |
public boolean isSetAmount() {
|
|
|
382 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
public void setAmountIsSet(boolean value) {
|
|
|
386 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
public long getInit_timestamp() {
|
|
|
390 |
return this.init_timestamp;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public Payment setInit_timestamp(long init_timestamp) {
|
|
|
394 |
this.init_timestamp = init_timestamp;
|
|
|
395 |
setInit_timestampIsSet(true);
|
|
|
396 |
return this;
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public void unsetInit_timestamp() {
|
|
|
400 |
__isset_bit_vector.clear(__INIT_TIMESTAMP_ISSET_ID);
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
/** Returns true if field init_timestamp is set (has been asigned a value) and false otherwise */
|
|
|
404 |
public boolean isSetInit_timestamp() {
|
|
|
405 |
return __isset_bit_vector.get(__INIT_TIMESTAMP_ISSET_ID);
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
public void setInit_timestampIsSet(boolean value) {
|
|
|
409 |
__isset_bit_vector.set(__INIT_TIMESTAMP_ISSET_ID, value);
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public long getBank_ack_timestamp() {
|
|
|
413 |
return this.bank_ack_timestamp;
|
|
|
414 |
}
|
|
|
415 |
|
|
|
416 |
public Payment setBank_ack_timestamp(long bank_ack_timestamp) {
|
|
|
417 |
this.bank_ack_timestamp = bank_ack_timestamp;
|
|
|
418 |
setBank_ack_timestampIsSet(true);
|
|
|
419 |
return this;
|
|
|
420 |
}
|
|
|
421 |
|
|
|
422 |
public void unsetBank_ack_timestamp() {
|
|
|
423 |
__isset_bit_vector.clear(__BANK_ACK_TIMESTAMP_ISSET_ID);
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
/** Returns true if field bank_ack_timestamp is set (has been asigned a value) and false otherwise */
|
|
|
427 |
public boolean isSetBank_ack_timestamp() {
|
|
|
428 |
return __isset_bit_vector.get(__BANK_ACK_TIMESTAMP_ISSET_ID);
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
public void setBank_ack_timestampIsSet(boolean value) {
|
|
|
432 |
__isset_bit_vector.set(__BANK_ACK_TIMESTAMP_ISSET_ID, value);
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public String getBank_status() {
|
|
|
436 |
return this.bank_status;
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public Payment setBank_status(String bank_status) {
|
|
|
440 |
this.bank_status = bank_status;
|
|
|
441 |
return this;
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
public void unsetBank_status() {
|
|
|
445 |
this.bank_status = null;
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
/** Returns true if field bank_status is set (has been asigned a value) and false otherwise */
|
|
|
449 |
public boolean isSetBank_status() {
|
|
|
450 |
return this.bank_status != null;
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
public void setBank_statusIsSet(boolean value) {
|
|
|
454 |
if (!value) {
|
|
|
455 |
this.bank_status = null;
|
|
|
456 |
}
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
/**
|
|
|
460 |
*
|
|
|
461 |
* @see PaymentStatus
|
|
|
462 |
*/
|
|
|
463 |
public PaymentStatus getStatus() {
|
|
|
464 |
return this.status;
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
/**
|
|
|
468 |
*
|
|
|
469 |
* @see PaymentStatus
|
|
|
470 |
*/
|
|
|
471 |
public Payment setStatus(PaymentStatus status) {
|
|
|
472 |
this.status = status;
|
|
|
473 |
return this;
|
|
|
474 |
}
|
|
|
475 |
|
|
|
476 |
public void unsetStatus() {
|
|
|
477 |
this.status = null;
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
/** Returns true if field status is set (has been asigned a value) and false otherwise */
|
|
|
481 |
public boolean isSetStatus() {
|
|
|
482 |
return this.status != null;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
public void setStatusIsSet(boolean value) {
|
|
|
486 |
if (!value) {
|
|
|
487 |
this.status = null;
|
|
|
488 |
}
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public String getMessage() {
|
|
|
492 |
return this.message;
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public Payment setMessage(String message) {
|
|
|
496 |
this.message = message;
|
|
|
497 |
return this;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void unsetMessage() {
|
|
|
501 |
this.message = null;
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
/** Returns true if field message is set (has been asigned a value) and false otherwise */
|
|
|
505 |
public boolean isSetMessage() {
|
|
|
506 |
return this.message != null;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setMessageIsSet(boolean value) {
|
|
|
510 |
if (!value) {
|
|
|
511 |
this.message = null;
|
|
|
512 |
}
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public long getUser_id() {
|
|
|
516 |
return this.user_id;
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
public Payment setUser_id(long user_id) {
|
|
|
520 |
this.user_id = user_id;
|
|
|
521 |
setUser_idIsSet(true);
|
|
|
522 |
return this;
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
public void unsetUser_id() {
|
|
|
526 |
__isset_bit_vector.clear(__USER_ID_ISSET_ID);
|
|
|
527 |
}
|
|
|
528 |
|
|
|
529 |
/** Returns true if field user_id is set (has been asigned a value) and false otherwise */
|
|
|
530 |
public boolean isSetUser_id() {
|
|
|
531 |
return __isset_bit_vector.get(__USER_ID_ISSET_ID);
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public void setUser_idIsSet(boolean value) {
|
|
|
535 |
__isset_bit_vector.set(__USER_ID_ISSET_ID, value);
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
public long getCart_id() {
|
|
|
539 |
return this.cart_id;
|
|
|
540 |
}
|
|
|
541 |
|
|
|
542 |
public Payment setCart_id(long cart_id) {
|
|
|
543 |
this.cart_id = cart_id;
|
|
|
544 |
setCart_idIsSet(true);
|
|
|
545 |
return this;
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
public void unsetCart_id() {
|
|
|
549 |
__isset_bit_vector.clear(__CART_ID_ISSET_ID);
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
/** Returns true if field cart_id is set (has been asigned a value) and false otherwise */
|
|
|
553 |
public boolean isSetCart_id() {
|
|
|
554 |
return __isset_bit_vector.get(__CART_ID_ISSET_ID);
|
|
|
555 |
}
|
|
|
556 |
|
|
|
557 |
public void setCart_idIsSet(boolean value) {
|
|
|
558 |
__isset_bit_vector.set(__CART_ID_ISSET_ID, value);
|
|
|
559 |
}
|
|
|
560 |
|
|
|
561 |
public int getOther_infoSize() {
|
|
|
562 |
return (this.other_info == null) ? 0 : this.other_info.size();
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
public void putToOther_info(String key, String val) {
|
|
|
566 |
if (this.other_info == null) {
|
|
|
567 |
this.other_info = new HashMap<String,String>();
|
|
|
568 |
}
|
|
|
569 |
this.other_info.put(key, val);
|
|
|
570 |
}
|
|
|
571 |
|
|
|
572 |
public Map<String,String> getOther_info() {
|
|
|
573 |
return this.other_info;
|
|
|
574 |
}
|
|
|
575 |
|
|
|
576 |
public Payment setOther_info(Map<String,String> other_info) {
|
|
|
577 |
this.other_info = other_info;
|
|
|
578 |
return this;
|
|
|
579 |
}
|
|
|
580 |
|
|
|
581 |
public void unsetOther_info() {
|
|
|
582 |
this.other_info = null;
|
|
|
583 |
}
|
|
|
584 |
|
|
|
585 |
/** Returns true if field other_info is set (has been asigned a value) and false otherwise */
|
|
|
586 |
public boolean isSetOther_info() {
|
|
|
587 |
return this.other_info != null;
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
public void setOther_infoIsSet(boolean value) {
|
|
|
591 |
if (!value) {
|
|
|
592 |
this.other_info = null;
|
|
|
593 |
}
|
|
|
594 |
}
|
|
|
595 |
|
| 420 |
ashish |
596 |
public long getGateway_id() {
|
|
|
597 |
return this.gateway_id;
|
| 123 |
ashish |
598 |
}
|
|
|
599 |
|
| 420 |
ashish |
600 |
public Payment setGateway_id(long gateway_id) {
|
|
|
601 |
this.gateway_id = gateway_id;
|
|
|
602 |
setGateway_idIsSet(true);
|
| 123 |
ashish |
603 |
return this;
|
|
|
604 |
}
|
|
|
605 |
|
| 420 |
ashish |
606 |
public void unsetGateway_id() {
|
|
|
607 |
__isset_bit_vector.clear(__GATEWAY_ID_ISSET_ID);
|
| 123 |
ashish |
608 |
}
|
|
|
609 |
|
| 420 |
ashish |
610 |
/** Returns true if field gateway_id is set (has been asigned a value) and false otherwise */
|
|
|
611 |
public boolean isSetGateway_id() {
|
|
|
612 |
return __isset_bit_vector.get(__GATEWAY_ID_ISSET_ID);
|
| 123 |
ashish |
613 |
}
|
|
|
614 |
|
| 420 |
ashish |
615 |
public void setGateway_idIsSet(boolean value) {
|
|
|
616 |
__isset_bit_vector.set(__GATEWAY_ID_ISSET_ID, value);
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
public String getPayment_id() {
|
|
|
620 |
return this.payment_id;
|
|
|
621 |
}
|
|
|
622 |
|
|
|
623 |
public Payment setPayment_id(String payment_id) {
|
|
|
624 |
this.payment_id = payment_id;
|
|
|
625 |
return this;
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
public void unsetPayment_id() {
|
|
|
629 |
this.payment_id = null;
|
|
|
630 |
}
|
|
|
631 |
|
|
|
632 |
/** Returns true if field payment_id is set (has been asigned a value) and false otherwise */
|
|
|
633 |
public boolean isSetPayment_id() {
|
|
|
634 |
return this.payment_id != null;
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public void setPayment_idIsSet(boolean value) {
|
| 123 |
ashish |
638 |
if (!value) {
|
| 420 |
ashish |
639 |
this.payment_id = null;
|
| 123 |
ashish |
640 |
}
|
|
|
641 |
}
|
|
|
642 |
|
| 420 |
ashish |
643 |
public String getError_code() {
|
|
|
644 |
return this.error_code;
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
public Payment setError_code(String error_code) {
|
|
|
648 |
this.error_code = error_code;
|
|
|
649 |
return this;
|
|
|
650 |
}
|
|
|
651 |
|
|
|
652 |
public void unsetError_code() {
|
|
|
653 |
this.error_code = null;
|
|
|
654 |
}
|
|
|
655 |
|
|
|
656 |
/** Returns true if field error_code is set (has been asigned a value) and false otherwise */
|
|
|
657 |
public boolean isSetError_code() {
|
|
|
658 |
return this.error_code != null;
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void setError_codeIsSet(boolean value) {
|
|
|
662 |
if (!value) {
|
|
|
663 |
this.error_code = null;
|
|
|
664 |
}
|
|
|
665 |
}
|
|
|
666 |
|
|
|
667 |
public String getSession_id() {
|
|
|
668 |
return this.session_id;
|
|
|
669 |
}
|
|
|
670 |
|
|
|
671 |
public Payment setSession_id(String session_id) {
|
|
|
672 |
this.session_id = session_id;
|
|
|
673 |
return this;
|
|
|
674 |
}
|
|
|
675 |
|
|
|
676 |
public void unsetSession_id() {
|
|
|
677 |
this.session_id = null;
|
|
|
678 |
}
|
|
|
679 |
|
|
|
680 |
/** Returns true if field session_id is set (has been asigned a value) and false otherwise */
|
|
|
681 |
public boolean isSetSession_id() {
|
|
|
682 |
return this.session_id != null;
|
|
|
683 |
}
|
|
|
684 |
|
|
|
685 |
public void setSession_idIsSet(boolean value) {
|
|
|
686 |
if (!value) {
|
|
|
687 |
this.session_id = null;
|
|
|
688 |
}
|
|
|
689 |
}
|
|
|
690 |
|
|
|
691 |
public String getRef_code() {
|
|
|
692 |
return this.ref_code;
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
public Payment setRef_code(String ref_code) {
|
|
|
696 |
this.ref_code = ref_code;
|
|
|
697 |
return this;
|
|
|
698 |
}
|
|
|
699 |
|
|
|
700 |
public void unsetRef_code() {
|
|
|
701 |
this.ref_code = null;
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
/** Returns true if field ref_code is set (has been asigned a value) and false otherwise */
|
|
|
705 |
public boolean isSetRef_code() {
|
|
|
706 |
return this.ref_code != null;
|
|
|
707 |
}
|
|
|
708 |
|
|
|
709 |
public void setRef_codeIsSet(boolean value) {
|
|
|
710 |
if (!value) {
|
|
|
711 |
this.ref_code = null;
|
|
|
712 |
}
|
|
|
713 |
}
|
|
|
714 |
|
|
|
715 |
public String getAuth_code() {
|
|
|
716 |
return this.auth_code;
|
|
|
717 |
}
|
|
|
718 |
|
|
|
719 |
public Payment setAuth_code(String auth_code) {
|
|
|
720 |
this.auth_code = auth_code;
|
|
|
721 |
return this;
|
|
|
722 |
}
|
|
|
723 |
|
|
|
724 |
public void unsetAuth_code() {
|
|
|
725 |
this.auth_code = null;
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
/** Returns true if field auth_code is set (has been asigned a value) and false otherwise */
|
|
|
729 |
public boolean isSetAuth_code() {
|
|
|
730 |
return this.auth_code != null;
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
public void setAuth_codeIsSet(boolean value) {
|
|
|
734 |
if (!value) {
|
|
|
735 |
this.auth_code = null;
|
|
|
736 |
}
|
|
|
737 |
}
|
|
|
738 |
|
|
|
739 |
public String getPost_date() {
|
|
|
740 |
return this.post_date;
|
|
|
741 |
}
|
|
|
742 |
|
|
|
743 |
public Payment setPost_date(String post_date) {
|
|
|
744 |
this.post_date = post_date;
|
|
|
745 |
return this;
|
|
|
746 |
}
|
|
|
747 |
|
|
|
748 |
public void unsetPost_date() {
|
|
|
749 |
this.post_date = null;
|
|
|
750 |
}
|
|
|
751 |
|
|
|
752 |
/** Returns true if field post_date is set (has been asigned a value) and false otherwise */
|
|
|
753 |
public boolean isSetPost_date() {
|
|
|
754 |
return this.post_date != null;
|
|
|
755 |
}
|
|
|
756 |
|
|
|
757 |
public void setPost_dateIsSet(boolean value) {
|
|
|
758 |
if (!value) {
|
|
|
759 |
this.post_date = null;
|
|
|
760 |
}
|
|
|
761 |
}
|
|
|
762 |
|
| 123 |
ashish |
763 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
764 |
switch (field) {
|
|
|
765 |
case MERCHANT_TX_ID:
|
|
|
766 |
if (value == null) {
|
|
|
767 |
unsetMerchant_tx_id();
|
|
|
768 |
} else {
|
| 420 |
ashish |
769 |
setMerchant_tx_id((String)value);
|
| 123 |
ashish |
770 |
}
|
|
|
771 |
break;
|
|
|
772 |
|
|
|
773 |
case BANK_TX_ID:
|
|
|
774 |
if (value == null) {
|
|
|
775 |
unsetBank_tx_id();
|
|
|
776 |
} else {
|
| 420 |
ashish |
777 |
setBank_tx_id((String)value);
|
| 123 |
ashish |
778 |
}
|
|
|
779 |
break;
|
|
|
780 |
|
|
|
781 |
case AMOUNT:
|
|
|
782 |
if (value == null) {
|
|
|
783 |
unsetAmount();
|
|
|
784 |
} else {
|
|
|
785 |
setAmount((Double)value);
|
|
|
786 |
}
|
|
|
787 |
break;
|
|
|
788 |
|
|
|
789 |
case INIT_TIMESTAMP:
|
|
|
790 |
if (value == null) {
|
|
|
791 |
unsetInit_timestamp();
|
|
|
792 |
} else {
|
|
|
793 |
setInit_timestamp((Long)value);
|
|
|
794 |
}
|
|
|
795 |
break;
|
|
|
796 |
|
|
|
797 |
case BANK_ACK_TIMESTAMP:
|
|
|
798 |
if (value == null) {
|
|
|
799 |
unsetBank_ack_timestamp();
|
|
|
800 |
} else {
|
|
|
801 |
setBank_ack_timestamp((Long)value);
|
|
|
802 |
}
|
|
|
803 |
break;
|
|
|
804 |
|
|
|
805 |
case BANK_STATUS:
|
|
|
806 |
if (value == null) {
|
|
|
807 |
unsetBank_status();
|
|
|
808 |
} else {
|
|
|
809 |
setBank_status((String)value);
|
|
|
810 |
}
|
|
|
811 |
break;
|
|
|
812 |
|
|
|
813 |
case STATUS:
|
|
|
814 |
if (value == null) {
|
|
|
815 |
unsetStatus();
|
|
|
816 |
} else {
|
|
|
817 |
setStatus((PaymentStatus)value);
|
|
|
818 |
}
|
|
|
819 |
break;
|
|
|
820 |
|
|
|
821 |
case MESSAGE:
|
|
|
822 |
if (value == null) {
|
|
|
823 |
unsetMessage();
|
|
|
824 |
} else {
|
|
|
825 |
setMessage((String)value);
|
|
|
826 |
}
|
|
|
827 |
break;
|
|
|
828 |
|
|
|
829 |
case USER_ID:
|
|
|
830 |
if (value == null) {
|
|
|
831 |
unsetUser_id();
|
|
|
832 |
} else {
|
|
|
833 |
setUser_id((Long)value);
|
|
|
834 |
}
|
|
|
835 |
break;
|
|
|
836 |
|
|
|
837 |
case CART_ID:
|
|
|
838 |
if (value == null) {
|
|
|
839 |
unsetCart_id();
|
|
|
840 |
} else {
|
|
|
841 |
setCart_id((Long)value);
|
|
|
842 |
}
|
|
|
843 |
break;
|
|
|
844 |
|
|
|
845 |
case OTHER_INFO:
|
|
|
846 |
if (value == null) {
|
|
|
847 |
unsetOther_info();
|
|
|
848 |
} else {
|
|
|
849 |
setOther_info((Map<String,String>)value);
|
|
|
850 |
}
|
|
|
851 |
break;
|
|
|
852 |
|
| 420 |
ashish |
853 |
case GATEWAY_ID:
|
| 123 |
ashish |
854 |
if (value == null) {
|
| 420 |
ashish |
855 |
unsetGateway_id();
|
| 123 |
ashish |
856 |
} else {
|
| 420 |
ashish |
857 |
setGateway_id((Long)value);
|
| 123 |
ashish |
858 |
}
|
|
|
859 |
break;
|
|
|
860 |
|
| 420 |
ashish |
861 |
case PAYMENT_ID:
|
|
|
862 |
if (value == null) {
|
|
|
863 |
unsetPayment_id();
|
|
|
864 |
} else {
|
|
|
865 |
setPayment_id((String)value);
|
|
|
866 |
}
|
|
|
867 |
break;
|
|
|
868 |
|
|
|
869 |
case ERROR_CODE:
|
|
|
870 |
if (value == null) {
|
|
|
871 |
unsetError_code();
|
|
|
872 |
} else {
|
|
|
873 |
setError_code((String)value);
|
|
|
874 |
}
|
|
|
875 |
break;
|
|
|
876 |
|
|
|
877 |
case SESSION_ID:
|
|
|
878 |
if (value == null) {
|
|
|
879 |
unsetSession_id();
|
|
|
880 |
} else {
|
|
|
881 |
setSession_id((String)value);
|
|
|
882 |
}
|
|
|
883 |
break;
|
|
|
884 |
|
|
|
885 |
case REF_CODE:
|
|
|
886 |
if (value == null) {
|
|
|
887 |
unsetRef_code();
|
|
|
888 |
} else {
|
|
|
889 |
setRef_code((String)value);
|
|
|
890 |
}
|
|
|
891 |
break;
|
|
|
892 |
|
|
|
893 |
case AUTH_CODE:
|
|
|
894 |
if (value == null) {
|
|
|
895 |
unsetAuth_code();
|
|
|
896 |
} else {
|
|
|
897 |
setAuth_code((String)value);
|
|
|
898 |
}
|
|
|
899 |
break;
|
|
|
900 |
|
|
|
901 |
case POST_DATE:
|
|
|
902 |
if (value == null) {
|
|
|
903 |
unsetPost_date();
|
|
|
904 |
} else {
|
|
|
905 |
setPost_date((String)value);
|
|
|
906 |
}
|
|
|
907 |
break;
|
|
|
908 |
|
| 123 |
ashish |
909 |
}
|
|
|
910 |
}
|
|
|
911 |
|
|
|
912 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
913 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
914 |
}
|
|
|
915 |
|
|
|
916 |
public Object getFieldValue(_Fields field) {
|
|
|
917 |
switch (field) {
|
|
|
918 |
case MERCHANT_TX_ID:
|
| 420 |
ashish |
919 |
return getMerchant_tx_id();
|
| 123 |
ashish |
920 |
|
|
|
921 |
case BANK_TX_ID:
|
| 420 |
ashish |
922 |
return getBank_tx_id();
|
| 123 |
ashish |
923 |
|
|
|
924 |
case AMOUNT:
|
|
|
925 |
return new Double(getAmount());
|
|
|
926 |
|
|
|
927 |
case INIT_TIMESTAMP:
|
|
|
928 |
return new Long(getInit_timestamp());
|
|
|
929 |
|
|
|
930 |
case BANK_ACK_TIMESTAMP:
|
|
|
931 |
return new Long(getBank_ack_timestamp());
|
|
|
932 |
|
|
|
933 |
case BANK_STATUS:
|
|
|
934 |
return getBank_status();
|
|
|
935 |
|
|
|
936 |
case STATUS:
|
|
|
937 |
return getStatus();
|
|
|
938 |
|
|
|
939 |
case MESSAGE:
|
|
|
940 |
return getMessage();
|
|
|
941 |
|
|
|
942 |
case USER_ID:
|
|
|
943 |
return new Long(getUser_id());
|
|
|
944 |
|
|
|
945 |
case CART_ID:
|
|
|
946 |
return new Long(getCart_id());
|
|
|
947 |
|
|
|
948 |
case OTHER_INFO:
|
|
|
949 |
return getOther_info();
|
|
|
950 |
|
| 420 |
ashish |
951 |
case GATEWAY_ID:
|
|
|
952 |
return new Long(getGateway_id());
|
| 123 |
ashish |
953 |
|
| 420 |
ashish |
954 |
case PAYMENT_ID:
|
|
|
955 |
return getPayment_id();
|
|
|
956 |
|
|
|
957 |
case ERROR_CODE:
|
|
|
958 |
return getError_code();
|
|
|
959 |
|
|
|
960 |
case SESSION_ID:
|
|
|
961 |
return getSession_id();
|
|
|
962 |
|
|
|
963 |
case REF_CODE:
|
|
|
964 |
return getRef_code();
|
|
|
965 |
|
|
|
966 |
case AUTH_CODE:
|
|
|
967 |
return getAuth_code();
|
|
|
968 |
|
|
|
969 |
case POST_DATE:
|
|
|
970 |
return getPost_date();
|
|
|
971 |
|
| 123 |
ashish |
972 |
}
|
|
|
973 |
throw new IllegalStateException();
|
|
|
974 |
}
|
|
|
975 |
|
|
|
976 |
public Object getFieldValue(int fieldId) {
|
|
|
977 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
978 |
}
|
|
|
979 |
|
|
|
980 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
981 |
public boolean isSet(_Fields field) {
|
|
|
982 |
switch (field) {
|
|
|
983 |
case MERCHANT_TX_ID:
|
|
|
984 |
return isSetMerchant_tx_id();
|
|
|
985 |
case BANK_TX_ID:
|
|
|
986 |
return isSetBank_tx_id();
|
|
|
987 |
case AMOUNT:
|
|
|
988 |
return isSetAmount();
|
|
|
989 |
case INIT_TIMESTAMP:
|
|
|
990 |
return isSetInit_timestamp();
|
|
|
991 |
case BANK_ACK_TIMESTAMP:
|
|
|
992 |
return isSetBank_ack_timestamp();
|
|
|
993 |
case BANK_STATUS:
|
|
|
994 |
return isSetBank_status();
|
|
|
995 |
case STATUS:
|
|
|
996 |
return isSetStatus();
|
|
|
997 |
case MESSAGE:
|
|
|
998 |
return isSetMessage();
|
|
|
999 |
case USER_ID:
|
|
|
1000 |
return isSetUser_id();
|
|
|
1001 |
case CART_ID:
|
|
|
1002 |
return isSetCart_id();
|
|
|
1003 |
case OTHER_INFO:
|
|
|
1004 |
return isSetOther_info();
|
| 420 |
ashish |
1005 |
case GATEWAY_ID:
|
|
|
1006 |
return isSetGateway_id();
|
|
|
1007 |
case PAYMENT_ID:
|
|
|
1008 |
return isSetPayment_id();
|
|
|
1009 |
case ERROR_CODE:
|
|
|
1010 |
return isSetError_code();
|
|
|
1011 |
case SESSION_ID:
|
|
|
1012 |
return isSetSession_id();
|
|
|
1013 |
case REF_CODE:
|
|
|
1014 |
return isSetRef_code();
|
|
|
1015 |
case AUTH_CODE:
|
|
|
1016 |
return isSetAuth_code();
|
|
|
1017 |
case POST_DATE:
|
|
|
1018 |
return isSetPost_date();
|
| 123 |
ashish |
1019 |
}
|
|
|
1020 |
throw new IllegalStateException();
|
|
|
1021 |
}
|
|
|
1022 |
|
|
|
1023 |
public boolean isSet(int fieldID) {
|
|
|
1024 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
1025 |
}
|
|
|
1026 |
|
|
|
1027 |
@Override
|
|
|
1028 |
public boolean equals(Object that) {
|
|
|
1029 |
if (that == null)
|
|
|
1030 |
return false;
|
|
|
1031 |
if (that instanceof Payment)
|
|
|
1032 |
return this.equals((Payment)that);
|
|
|
1033 |
return false;
|
|
|
1034 |
}
|
|
|
1035 |
|
|
|
1036 |
public boolean equals(Payment that) {
|
|
|
1037 |
if (that == null)
|
|
|
1038 |
return false;
|
|
|
1039 |
|
| 420 |
ashish |
1040 |
boolean this_present_merchant_tx_id = true && this.isSetMerchant_tx_id();
|
|
|
1041 |
boolean that_present_merchant_tx_id = true && that.isSetMerchant_tx_id();
|
| 123 |
ashish |
1042 |
if (this_present_merchant_tx_id || that_present_merchant_tx_id) {
|
|
|
1043 |
if (!(this_present_merchant_tx_id && that_present_merchant_tx_id))
|
|
|
1044 |
return false;
|
| 420 |
ashish |
1045 |
if (!this.merchant_tx_id.equals(that.merchant_tx_id))
|
| 123 |
ashish |
1046 |
return false;
|
|
|
1047 |
}
|
|
|
1048 |
|
| 420 |
ashish |
1049 |
boolean this_present_bank_tx_id = true && this.isSetBank_tx_id();
|
|
|
1050 |
boolean that_present_bank_tx_id = true && that.isSetBank_tx_id();
|
| 123 |
ashish |
1051 |
if (this_present_bank_tx_id || that_present_bank_tx_id) {
|
|
|
1052 |
if (!(this_present_bank_tx_id && that_present_bank_tx_id))
|
|
|
1053 |
return false;
|
| 420 |
ashish |
1054 |
if (!this.bank_tx_id.equals(that.bank_tx_id))
|
| 123 |
ashish |
1055 |
return false;
|
|
|
1056 |
}
|
|
|
1057 |
|
|
|
1058 |
boolean this_present_amount = true;
|
|
|
1059 |
boolean that_present_amount = true;
|
|
|
1060 |
if (this_present_amount || that_present_amount) {
|
|
|
1061 |
if (!(this_present_amount && that_present_amount))
|
|
|
1062 |
return false;
|
|
|
1063 |
if (this.amount != that.amount)
|
|
|
1064 |
return false;
|
|
|
1065 |
}
|
|
|
1066 |
|
|
|
1067 |
boolean this_present_init_timestamp = true;
|
|
|
1068 |
boolean that_present_init_timestamp = true;
|
|
|
1069 |
if (this_present_init_timestamp || that_present_init_timestamp) {
|
|
|
1070 |
if (!(this_present_init_timestamp && that_present_init_timestamp))
|
|
|
1071 |
return false;
|
|
|
1072 |
if (this.init_timestamp != that.init_timestamp)
|
|
|
1073 |
return false;
|
|
|
1074 |
}
|
|
|
1075 |
|
|
|
1076 |
boolean this_present_bank_ack_timestamp = true;
|
|
|
1077 |
boolean that_present_bank_ack_timestamp = true;
|
|
|
1078 |
if (this_present_bank_ack_timestamp || that_present_bank_ack_timestamp) {
|
|
|
1079 |
if (!(this_present_bank_ack_timestamp && that_present_bank_ack_timestamp))
|
|
|
1080 |
return false;
|
|
|
1081 |
if (this.bank_ack_timestamp != that.bank_ack_timestamp)
|
|
|
1082 |
return false;
|
|
|
1083 |
}
|
|
|
1084 |
|
|
|
1085 |
boolean this_present_bank_status = true && this.isSetBank_status();
|
|
|
1086 |
boolean that_present_bank_status = true && that.isSetBank_status();
|
|
|
1087 |
if (this_present_bank_status || that_present_bank_status) {
|
|
|
1088 |
if (!(this_present_bank_status && that_present_bank_status))
|
|
|
1089 |
return false;
|
|
|
1090 |
if (!this.bank_status.equals(that.bank_status))
|
|
|
1091 |
return false;
|
|
|
1092 |
}
|
|
|
1093 |
|
|
|
1094 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
1095 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
1096 |
if (this_present_status || that_present_status) {
|
|
|
1097 |
if (!(this_present_status && that_present_status))
|
|
|
1098 |
return false;
|
|
|
1099 |
if (!this.status.equals(that.status))
|
|
|
1100 |
return false;
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
boolean this_present_message = true && this.isSetMessage();
|
|
|
1104 |
boolean that_present_message = true && that.isSetMessage();
|
|
|
1105 |
if (this_present_message || that_present_message) {
|
|
|
1106 |
if (!(this_present_message && that_present_message))
|
|
|
1107 |
return false;
|
|
|
1108 |
if (!this.message.equals(that.message))
|
|
|
1109 |
return false;
|
|
|
1110 |
}
|
|
|
1111 |
|
|
|
1112 |
boolean this_present_user_id = true;
|
|
|
1113 |
boolean that_present_user_id = true;
|
|
|
1114 |
if (this_present_user_id || that_present_user_id) {
|
|
|
1115 |
if (!(this_present_user_id && that_present_user_id))
|
|
|
1116 |
return false;
|
|
|
1117 |
if (this.user_id != that.user_id)
|
|
|
1118 |
return false;
|
|
|
1119 |
}
|
|
|
1120 |
|
|
|
1121 |
boolean this_present_cart_id = true;
|
|
|
1122 |
boolean that_present_cart_id = true;
|
|
|
1123 |
if (this_present_cart_id || that_present_cart_id) {
|
|
|
1124 |
if (!(this_present_cart_id && that_present_cart_id))
|
|
|
1125 |
return false;
|
|
|
1126 |
if (this.cart_id != that.cart_id)
|
|
|
1127 |
return false;
|
|
|
1128 |
}
|
|
|
1129 |
|
|
|
1130 |
boolean this_present_other_info = true && this.isSetOther_info();
|
|
|
1131 |
boolean that_present_other_info = true && that.isSetOther_info();
|
|
|
1132 |
if (this_present_other_info || that_present_other_info) {
|
|
|
1133 |
if (!(this_present_other_info && that_present_other_info))
|
|
|
1134 |
return false;
|
|
|
1135 |
if (!this.other_info.equals(that.other_info))
|
|
|
1136 |
return false;
|
|
|
1137 |
}
|
|
|
1138 |
|
| 420 |
ashish |
1139 |
boolean this_present_gateway_id = true;
|
|
|
1140 |
boolean that_present_gateway_id = true;
|
|
|
1141 |
if (this_present_gateway_id || that_present_gateway_id) {
|
|
|
1142 |
if (!(this_present_gateway_id && that_present_gateway_id))
|
| 123 |
ashish |
1143 |
return false;
|
| 420 |
ashish |
1144 |
if (this.gateway_id != that.gateway_id)
|
| 123 |
ashish |
1145 |
return false;
|
|
|
1146 |
}
|
|
|
1147 |
|
| 420 |
ashish |
1148 |
boolean this_present_payment_id = true && this.isSetPayment_id();
|
|
|
1149 |
boolean that_present_payment_id = true && that.isSetPayment_id();
|
|
|
1150 |
if (this_present_payment_id || that_present_payment_id) {
|
|
|
1151 |
if (!(this_present_payment_id && that_present_payment_id))
|
|
|
1152 |
return false;
|
|
|
1153 |
if (!this.payment_id.equals(that.payment_id))
|
|
|
1154 |
return false;
|
|
|
1155 |
}
|
|
|
1156 |
|
|
|
1157 |
boolean this_present_error_code = true && this.isSetError_code();
|
|
|
1158 |
boolean that_present_error_code = true && that.isSetError_code();
|
|
|
1159 |
if (this_present_error_code || that_present_error_code) {
|
|
|
1160 |
if (!(this_present_error_code && that_present_error_code))
|
|
|
1161 |
return false;
|
|
|
1162 |
if (!this.error_code.equals(that.error_code))
|
|
|
1163 |
return false;
|
|
|
1164 |
}
|
|
|
1165 |
|
|
|
1166 |
boolean this_present_session_id = true && this.isSetSession_id();
|
|
|
1167 |
boolean that_present_session_id = true && that.isSetSession_id();
|
|
|
1168 |
if (this_present_session_id || that_present_session_id) {
|
|
|
1169 |
if (!(this_present_session_id && that_present_session_id))
|
|
|
1170 |
return false;
|
|
|
1171 |
if (!this.session_id.equals(that.session_id))
|
|
|
1172 |
return false;
|
|
|
1173 |
}
|
|
|
1174 |
|
|
|
1175 |
boolean this_present_ref_code = true && this.isSetRef_code();
|
|
|
1176 |
boolean that_present_ref_code = true && that.isSetRef_code();
|
|
|
1177 |
if (this_present_ref_code || that_present_ref_code) {
|
|
|
1178 |
if (!(this_present_ref_code && that_present_ref_code))
|
|
|
1179 |
return false;
|
|
|
1180 |
if (!this.ref_code.equals(that.ref_code))
|
|
|
1181 |
return false;
|
|
|
1182 |
}
|
|
|
1183 |
|
|
|
1184 |
boolean this_present_auth_code = true && this.isSetAuth_code();
|
|
|
1185 |
boolean that_present_auth_code = true && that.isSetAuth_code();
|
|
|
1186 |
if (this_present_auth_code || that_present_auth_code) {
|
|
|
1187 |
if (!(this_present_auth_code && that_present_auth_code))
|
|
|
1188 |
return false;
|
|
|
1189 |
if (!this.auth_code.equals(that.auth_code))
|
|
|
1190 |
return false;
|
|
|
1191 |
}
|
|
|
1192 |
|
|
|
1193 |
boolean this_present_post_date = true && this.isSetPost_date();
|
|
|
1194 |
boolean that_present_post_date = true && that.isSetPost_date();
|
|
|
1195 |
if (this_present_post_date || that_present_post_date) {
|
|
|
1196 |
if (!(this_present_post_date && that_present_post_date))
|
|
|
1197 |
return false;
|
|
|
1198 |
if (!this.post_date.equals(that.post_date))
|
|
|
1199 |
return false;
|
|
|
1200 |
}
|
|
|
1201 |
|
| 123 |
ashish |
1202 |
return true;
|
|
|
1203 |
}
|
|
|
1204 |
|
|
|
1205 |
@Override
|
|
|
1206 |
public int hashCode() {
|
|
|
1207 |
return 0;
|
|
|
1208 |
}
|
|
|
1209 |
|
|
|
1210 |
public void read(TProtocol iprot) throws TException {
|
|
|
1211 |
TField field;
|
|
|
1212 |
iprot.readStructBegin();
|
|
|
1213 |
while (true)
|
|
|
1214 |
{
|
|
|
1215 |
field = iprot.readFieldBegin();
|
|
|
1216 |
if (field.type == TType.STOP) {
|
|
|
1217 |
break;
|
|
|
1218 |
}
|
|
|
1219 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1220 |
if (fieldId == null) {
|
|
|
1221 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1222 |
} else {
|
|
|
1223 |
switch (fieldId) {
|
|
|
1224 |
case MERCHANT_TX_ID:
|
| 420 |
ashish |
1225 |
if (field.type == TType.STRING) {
|
|
|
1226 |
this.merchant_tx_id = iprot.readString();
|
| 123 |
ashish |
1227 |
} else {
|
|
|
1228 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1229 |
}
|
|
|
1230 |
break;
|
|
|
1231 |
case BANK_TX_ID:
|
| 420 |
ashish |
1232 |
if (field.type == TType.STRING) {
|
|
|
1233 |
this.bank_tx_id = iprot.readString();
|
| 123 |
ashish |
1234 |
} else {
|
|
|
1235 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1236 |
}
|
|
|
1237 |
break;
|
|
|
1238 |
case AMOUNT:
|
|
|
1239 |
if (field.type == TType.DOUBLE) {
|
|
|
1240 |
this.amount = iprot.readDouble();
|
|
|
1241 |
setAmountIsSet(true);
|
|
|
1242 |
} else {
|
|
|
1243 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1244 |
}
|
|
|
1245 |
break;
|
|
|
1246 |
case INIT_TIMESTAMP:
|
|
|
1247 |
if (field.type == TType.I64) {
|
|
|
1248 |
this.init_timestamp = iprot.readI64();
|
|
|
1249 |
setInit_timestampIsSet(true);
|
|
|
1250 |
} else {
|
|
|
1251 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1252 |
}
|
|
|
1253 |
break;
|
|
|
1254 |
case BANK_ACK_TIMESTAMP:
|
|
|
1255 |
if (field.type == TType.I64) {
|
|
|
1256 |
this.bank_ack_timestamp = iprot.readI64();
|
|
|
1257 |
setBank_ack_timestampIsSet(true);
|
|
|
1258 |
} else {
|
|
|
1259 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1260 |
}
|
|
|
1261 |
break;
|
|
|
1262 |
case BANK_STATUS:
|
|
|
1263 |
if (field.type == TType.STRING) {
|
|
|
1264 |
this.bank_status = iprot.readString();
|
|
|
1265 |
} else {
|
|
|
1266 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1267 |
}
|
|
|
1268 |
break;
|
|
|
1269 |
case STATUS:
|
|
|
1270 |
if (field.type == TType.I32) {
|
|
|
1271 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
1272 |
} else {
|
|
|
1273 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1274 |
}
|
|
|
1275 |
break;
|
|
|
1276 |
case MESSAGE:
|
|
|
1277 |
if (field.type == TType.STRING) {
|
|
|
1278 |
this.message = iprot.readString();
|
|
|
1279 |
} else {
|
|
|
1280 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1281 |
}
|
|
|
1282 |
break;
|
|
|
1283 |
case USER_ID:
|
|
|
1284 |
if (field.type == TType.I64) {
|
|
|
1285 |
this.user_id = iprot.readI64();
|
|
|
1286 |
setUser_idIsSet(true);
|
|
|
1287 |
} else {
|
|
|
1288 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1289 |
}
|
|
|
1290 |
break;
|
|
|
1291 |
case CART_ID:
|
|
|
1292 |
if (field.type == TType.I64) {
|
|
|
1293 |
this.cart_id = iprot.readI64();
|
|
|
1294 |
setCart_idIsSet(true);
|
|
|
1295 |
} else {
|
|
|
1296 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1297 |
}
|
|
|
1298 |
break;
|
|
|
1299 |
case OTHER_INFO:
|
|
|
1300 |
if (field.type == TType.MAP) {
|
|
|
1301 |
{
|
| 420 |
ashish |
1302 |
TMap _map5 = iprot.readMapBegin();
|
|
|
1303 |
this.other_info = new HashMap<String,String>(2*_map5.size);
|
|
|
1304 |
for (int _i6 = 0; _i6 < _map5.size; ++_i6)
|
| 123 |
ashish |
1305 |
{
|
| 420 |
ashish |
1306 |
String _key7;
|
|
|
1307 |
String _val8;
|
|
|
1308 |
_key7 = iprot.readString();
|
|
|
1309 |
_val8 = iprot.readString();
|
|
|
1310 |
this.other_info.put(_key7, _val8);
|
| 123 |
ashish |
1311 |
}
|
|
|
1312 |
iprot.readMapEnd();
|
|
|
1313 |
}
|
|
|
1314 |
} else {
|
|
|
1315 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1316 |
}
|
|
|
1317 |
break;
|
| 420 |
ashish |
1318 |
case GATEWAY_ID:
|
|
|
1319 |
if (field.type == TType.I64) {
|
|
|
1320 |
this.gateway_id = iprot.readI64();
|
|
|
1321 |
setGateway_idIsSet(true);
|
| 123 |
ashish |
1322 |
} else {
|
|
|
1323 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1324 |
}
|
|
|
1325 |
break;
|
| 420 |
ashish |
1326 |
case PAYMENT_ID:
|
|
|
1327 |
if (field.type == TType.STRING) {
|
|
|
1328 |
this.payment_id = iprot.readString();
|
|
|
1329 |
} else {
|
|
|
1330 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1331 |
}
|
|
|
1332 |
break;
|
|
|
1333 |
case ERROR_CODE:
|
|
|
1334 |
if (field.type == TType.STRING) {
|
|
|
1335 |
this.error_code = iprot.readString();
|
|
|
1336 |
} else {
|
|
|
1337 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1338 |
}
|
|
|
1339 |
break;
|
|
|
1340 |
case SESSION_ID:
|
|
|
1341 |
if (field.type == TType.STRING) {
|
|
|
1342 |
this.session_id = iprot.readString();
|
|
|
1343 |
} else {
|
|
|
1344 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1345 |
}
|
|
|
1346 |
break;
|
|
|
1347 |
case REF_CODE:
|
|
|
1348 |
if (field.type == TType.STRING) {
|
|
|
1349 |
this.ref_code = iprot.readString();
|
|
|
1350 |
} else {
|
|
|
1351 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1352 |
}
|
|
|
1353 |
break;
|
|
|
1354 |
case AUTH_CODE:
|
|
|
1355 |
if (field.type == TType.STRING) {
|
|
|
1356 |
this.auth_code = iprot.readString();
|
|
|
1357 |
} else {
|
|
|
1358 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1359 |
}
|
|
|
1360 |
break;
|
|
|
1361 |
case POST_DATE:
|
|
|
1362 |
if (field.type == TType.STRING) {
|
|
|
1363 |
this.post_date = iprot.readString();
|
|
|
1364 |
} else {
|
|
|
1365 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1366 |
}
|
|
|
1367 |
break;
|
| 123 |
ashish |
1368 |
}
|
|
|
1369 |
iprot.readFieldEnd();
|
|
|
1370 |
}
|
|
|
1371 |
}
|
|
|
1372 |
iprot.readStructEnd();
|
|
|
1373 |
validate();
|
|
|
1374 |
}
|
|
|
1375 |
|
|
|
1376 |
public void write(TProtocol oprot) throws TException {
|
|
|
1377 |
validate();
|
|
|
1378 |
|
|
|
1379 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 420 |
ashish |
1380 |
if (this.merchant_tx_id != null) {
|
|
|
1381 |
oprot.writeFieldBegin(MERCHANT_TX_ID_FIELD_DESC);
|
|
|
1382 |
oprot.writeString(this.merchant_tx_id);
|
|
|
1383 |
oprot.writeFieldEnd();
|
|
|
1384 |
}
|
|
|
1385 |
if (this.bank_tx_id != null) {
|
|
|
1386 |
oprot.writeFieldBegin(BANK_TX_ID_FIELD_DESC);
|
|
|
1387 |
oprot.writeString(this.bank_tx_id);
|
|
|
1388 |
oprot.writeFieldEnd();
|
|
|
1389 |
}
|
| 123 |
ashish |
1390 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1391 |
oprot.writeDouble(this.amount);
|
|
|
1392 |
oprot.writeFieldEnd();
|
|
|
1393 |
oprot.writeFieldBegin(INIT_TIMESTAMP_FIELD_DESC);
|
|
|
1394 |
oprot.writeI64(this.init_timestamp);
|
|
|
1395 |
oprot.writeFieldEnd();
|
|
|
1396 |
oprot.writeFieldBegin(BANK_ACK_TIMESTAMP_FIELD_DESC);
|
|
|
1397 |
oprot.writeI64(this.bank_ack_timestamp);
|
|
|
1398 |
oprot.writeFieldEnd();
|
|
|
1399 |
if (this.bank_status != null) {
|
|
|
1400 |
oprot.writeFieldBegin(BANK_STATUS_FIELD_DESC);
|
|
|
1401 |
oprot.writeString(this.bank_status);
|
|
|
1402 |
oprot.writeFieldEnd();
|
|
|
1403 |
}
|
|
|
1404 |
if (this.status != null) {
|
|
|
1405 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
1406 |
oprot.writeI32(this.status.getValue());
|
|
|
1407 |
oprot.writeFieldEnd();
|
|
|
1408 |
}
|
|
|
1409 |
if (this.message != null) {
|
|
|
1410 |
oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
|
|
|
1411 |
oprot.writeString(this.message);
|
|
|
1412 |
oprot.writeFieldEnd();
|
|
|
1413 |
}
|
|
|
1414 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
1415 |
oprot.writeI64(this.user_id);
|
|
|
1416 |
oprot.writeFieldEnd();
|
|
|
1417 |
oprot.writeFieldBegin(CART_ID_FIELD_DESC);
|
|
|
1418 |
oprot.writeI64(this.cart_id);
|
|
|
1419 |
oprot.writeFieldEnd();
|
|
|
1420 |
if (this.other_info != null) {
|
|
|
1421 |
oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
|
|
|
1422 |
{
|
|
|
1423 |
oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.other_info.size()));
|
| 420 |
ashish |
1424 |
for (Map.Entry<String, String> _iter9 : this.other_info.entrySet())
|
| 123 |
ashish |
1425 |
{
|
| 420 |
ashish |
1426 |
oprot.writeString(_iter9.getKey());
|
|
|
1427 |
oprot.writeString(_iter9.getValue());
|
| 123 |
ashish |
1428 |
}
|
|
|
1429 |
oprot.writeMapEnd();
|
|
|
1430 |
}
|
|
|
1431 |
oprot.writeFieldEnd();
|
|
|
1432 |
}
|
| 420 |
ashish |
1433 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
|
|
1434 |
oprot.writeI64(this.gateway_id);
|
|
|
1435 |
oprot.writeFieldEnd();
|
|
|
1436 |
if (this.payment_id != null) {
|
|
|
1437 |
oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
|
|
|
1438 |
oprot.writeString(this.payment_id);
|
| 123 |
ashish |
1439 |
oprot.writeFieldEnd();
|
|
|
1440 |
}
|
| 420 |
ashish |
1441 |
if (this.error_code != null) {
|
|
|
1442 |
oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
|
|
|
1443 |
oprot.writeString(this.error_code);
|
|
|
1444 |
oprot.writeFieldEnd();
|
|
|
1445 |
}
|
|
|
1446 |
if (this.session_id != null) {
|
|
|
1447 |
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
|
|
|
1448 |
oprot.writeString(this.session_id);
|
|
|
1449 |
oprot.writeFieldEnd();
|
|
|
1450 |
}
|
|
|
1451 |
if (this.ref_code != null) {
|
|
|
1452 |
oprot.writeFieldBegin(REF_CODE_FIELD_DESC);
|
|
|
1453 |
oprot.writeString(this.ref_code);
|
|
|
1454 |
oprot.writeFieldEnd();
|
|
|
1455 |
}
|
|
|
1456 |
if (this.auth_code != null) {
|
|
|
1457 |
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
|
|
|
1458 |
oprot.writeString(this.auth_code);
|
|
|
1459 |
oprot.writeFieldEnd();
|
|
|
1460 |
}
|
|
|
1461 |
if (this.post_date != null) {
|
|
|
1462 |
oprot.writeFieldBegin(POST_DATE_FIELD_DESC);
|
|
|
1463 |
oprot.writeString(this.post_date);
|
|
|
1464 |
oprot.writeFieldEnd();
|
|
|
1465 |
}
|
| 123 |
ashish |
1466 |
oprot.writeFieldStop();
|
|
|
1467 |
oprot.writeStructEnd();
|
|
|
1468 |
}
|
|
|
1469 |
|
|
|
1470 |
@Override
|
|
|
1471 |
public String toString() {
|
|
|
1472 |
StringBuilder sb = new StringBuilder("Payment(");
|
|
|
1473 |
boolean first = true;
|
|
|
1474 |
|
|
|
1475 |
sb.append("merchant_tx_id:");
|
| 420 |
ashish |
1476 |
if (this.merchant_tx_id == null) {
|
|
|
1477 |
sb.append("null");
|
|
|
1478 |
} else {
|
|
|
1479 |
sb.append(this.merchant_tx_id);
|
|
|
1480 |
}
|
| 123 |
ashish |
1481 |
first = false;
|
|
|
1482 |
if (!first) sb.append(", ");
|
|
|
1483 |
sb.append("bank_tx_id:");
|
| 420 |
ashish |
1484 |
if (this.bank_tx_id == null) {
|
|
|
1485 |
sb.append("null");
|
|
|
1486 |
} else {
|
|
|
1487 |
sb.append(this.bank_tx_id);
|
|
|
1488 |
}
|
| 123 |
ashish |
1489 |
first = false;
|
|
|
1490 |
if (!first) sb.append(", ");
|
|
|
1491 |
sb.append("amount:");
|
|
|
1492 |
sb.append(this.amount);
|
|
|
1493 |
first = false;
|
|
|
1494 |
if (!first) sb.append(", ");
|
|
|
1495 |
sb.append("init_timestamp:");
|
|
|
1496 |
sb.append(this.init_timestamp);
|
|
|
1497 |
first = false;
|
|
|
1498 |
if (!first) sb.append(", ");
|
|
|
1499 |
sb.append("bank_ack_timestamp:");
|
|
|
1500 |
sb.append(this.bank_ack_timestamp);
|
|
|
1501 |
first = false;
|
|
|
1502 |
if (!first) sb.append(", ");
|
|
|
1503 |
sb.append("bank_status:");
|
|
|
1504 |
if (this.bank_status == null) {
|
|
|
1505 |
sb.append("null");
|
|
|
1506 |
} else {
|
|
|
1507 |
sb.append(this.bank_status);
|
|
|
1508 |
}
|
|
|
1509 |
first = false;
|
|
|
1510 |
if (!first) sb.append(", ");
|
|
|
1511 |
sb.append("status:");
|
|
|
1512 |
if (this.status == null) {
|
|
|
1513 |
sb.append("null");
|
|
|
1514 |
} else {
|
|
|
1515 |
String status_name = status.name();
|
|
|
1516 |
if (status_name != null) {
|
|
|
1517 |
sb.append(status_name);
|
|
|
1518 |
sb.append(" (");
|
|
|
1519 |
}
|
|
|
1520 |
sb.append(this.status);
|
|
|
1521 |
if (status_name != null) {
|
|
|
1522 |
sb.append(")");
|
|
|
1523 |
}
|
|
|
1524 |
}
|
|
|
1525 |
first = false;
|
|
|
1526 |
if (!first) sb.append(", ");
|
|
|
1527 |
sb.append("message:");
|
|
|
1528 |
if (this.message == null) {
|
|
|
1529 |
sb.append("null");
|
|
|
1530 |
} else {
|
|
|
1531 |
sb.append(this.message);
|
|
|
1532 |
}
|
|
|
1533 |
first = false;
|
|
|
1534 |
if (!first) sb.append(", ");
|
|
|
1535 |
sb.append("user_id:");
|
|
|
1536 |
sb.append(this.user_id);
|
|
|
1537 |
first = false;
|
|
|
1538 |
if (!first) sb.append(", ");
|
|
|
1539 |
sb.append("cart_id:");
|
|
|
1540 |
sb.append(this.cart_id);
|
|
|
1541 |
first = false;
|
|
|
1542 |
if (!first) sb.append(", ");
|
|
|
1543 |
sb.append("other_info:");
|
|
|
1544 |
if (this.other_info == null) {
|
|
|
1545 |
sb.append("null");
|
|
|
1546 |
} else {
|
|
|
1547 |
sb.append(this.other_info);
|
|
|
1548 |
}
|
|
|
1549 |
first = false;
|
|
|
1550 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
1551 |
sb.append("gateway_id:");
|
|
|
1552 |
sb.append(this.gateway_id);
|
|
|
1553 |
first = false;
|
|
|
1554 |
if (!first) sb.append(", ");
|
|
|
1555 |
sb.append("payment_id:");
|
|
|
1556 |
if (this.payment_id == null) {
|
| 123 |
ashish |
1557 |
sb.append("null");
|
|
|
1558 |
} else {
|
| 420 |
ashish |
1559 |
sb.append(this.payment_id);
|
| 123 |
ashish |
1560 |
}
|
|
|
1561 |
first = false;
|
| 420 |
ashish |
1562 |
if (!first) sb.append(", ");
|
|
|
1563 |
sb.append("error_code:");
|
|
|
1564 |
if (this.error_code == null) {
|
|
|
1565 |
sb.append("null");
|
|
|
1566 |
} else {
|
|
|
1567 |
sb.append(this.error_code);
|
|
|
1568 |
}
|
|
|
1569 |
first = false;
|
|
|
1570 |
if (!first) sb.append(", ");
|
|
|
1571 |
sb.append("session_id:");
|
|
|
1572 |
if (this.session_id == null) {
|
|
|
1573 |
sb.append("null");
|
|
|
1574 |
} else {
|
|
|
1575 |
sb.append(this.session_id);
|
|
|
1576 |
}
|
|
|
1577 |
first = false;
|
|
|
1578 |
if (!first) sb.append(", ");
|
|
|
1579 |
sb.append("ref_code:");
|
|
|
1580 |
if (this.ref_code == null) {
|
|
|
1581 |
sb.append("null");
|
|
|
1582 |
} else {
|
|
|
1583 |
sb.append(this.ref_code);
|
|
|
1584 |
}
|
|
|
1585 |
first = false;
|
|
|
1586 |
if (!first) sb.append(", ");
|
|
|
1587 |
sb.append("auth_code:");
|
|
|
1588 |
if (this.auth_code == null) {
|
|
|
1589 |
sb.append("null");
|
|
|
1590 |
} else {
|
|
|
1591 |
sb.append(this.auth_code);
|
|
|
1592 |
}
|
|
|
1593 |
first = false;
|
|
|
1594 |
if (!first) sb.append(", ");
|
|
|
1595 |
sb.append("post_date:");
|
|
|
1596 |
if (this.post_date == null) {
|
|
|
1597 |
sb.append("null");
|
|
|
1598 |
} else {
|
|
|
1599 |
sb.append(this.post_date);
|
|
|
1600 |
}
|
|
|
1601 |
first = false;
|
| 123 |
ashish |
1602 |
sb.append(")");
|
|
|
1603 |
return sb.toString();
|
|
|
1604 |
}
|
|
|
1605 |
|
|
|
1606 |
public void validate() throws TException {
|
|
|
1607 |
// check for required fields
|
|
|
1608 |
}
|
|
|
1609 |
|
|
|
1610 |
}
|
|
|
1611 |
|