| 123 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 123 |
ashish |
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;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 123 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class Payment implements org.apache.thrift.TBase<Payment, Payment._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Payment");
|
| 123 |
ashish |
25 |
|
| 3430 |
rajveer |
26 |
private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField GATEWAY_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayPaymentId", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnId", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnStatus", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.STRING, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField AUTH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("authCode", org.apache.thrift.protocol.TType.STRING, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)13);
|
|
|
39 |
private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)14);
|
|
|
40 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnDate", org.apache.thrift.protocol.TType.STRING, (short)15);
|
|
|
41 |
private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)16);
|
|
|
42 |
private static final org.apache.thrift.protocol.TField INIT_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("initTimestamp", org.apache.thrift.protocol.TType.I64, (short)17);
|
|
|
43 |
private static final org.apache.thrift.protocol.TField SUCCESS_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("successTimestamp", org.apache.thrift.protocol.TType.I64, (short)18);
|
|
|
44 |
private static final org.apache.thrift.protocol.TField ERROR_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("errorTimestamp", org.apache.thrift.protocol.TType.I64, (short)19);
|
| 4421 |
mandeep.dh |
45 |
private static final org.apache.thrift.protocol.TField PROVISIONAL_CAPTURE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("provisionalCaptureTimestamp", org.apache.thrift.protocol.TType.I64, (short)20);
|
| 6050 |
anupam.sin |
46 |
private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)21);
|
| 123 |
ashish |
47 |
|
| 3430 |
rajveer |
48 |
private long paymentId; // required
|
|
|
49 |
private long gatewayId; // required
|
|
|
50 |
private String gatewayPaymentId; // required
|
|
|
51 |
private long merchantTxnId; // required
|
|
|
52 |
private String gatewayTxnId; // required
|
|
|
53 |
private double amount; // required
|
|
|
54 |
private String gatewayTxnStatus; // required
|
|
|
55 |
private PaymentStatus status; // required
|
|
|
56 |
private long userId; // required
|
|
|
57 |
private String errorCode; // required
|
|
|
58 |
private String description; // required
|
|
|
59 |
private String authCode; // required
|
|
|
60 |
private String referenceCode; // required
|
|
|
61 |
private String sessionId; // required
|
|
|
62 |
private String gatewayTxnDate; // required
|
|
|
63 |
private List<Attribute> attributes; // required
|
|
|
64 |
private long initTimestamp; // required
|
|
|
65 |
private long successTimestamp; // required
|
|
|
66 |
private long errorTimestamp; // required
|
| 4421 |
mandeep.dh |
67 |
private long provisionalCaptureTimestamp; // required
|
| 6050 |
anupam.sin |
68 |
private boolean isDigital; // required
|
| 123 |
ashish |
69 |
|
|
|
70 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
71 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
72 |
PAYMENT_ID((short)1, "paymentId"),
|
|
|
73 |
GATEWAY_ID((short)2, "gatewayId"),
|
|
|
74 |
GATEWAY_PAYMENT_ID((short)3, "gatewayPaymentId"),
|
|
|
75 |
MERCHANT_TXN_ID((short)4, "merchantTxnId"),
|
|
|
76 |
GATEWAY_TXN_ID((short)5, "gatewayTxnId"),
|
|
|
77 |
AMOUNT((short)6, "amount"),
|
|
|
78 |
GATEWAY_TXN_STATUS((short)7, "gatewayTxnStatus"),
|
| 123 |
ashish |
79 |
/**
|
|
|
80 |
*
|
|
|
81 |
* @see PaymentStatus
|
|
|
82 |
*/
|
| 695 |
rajveer |
83 |
STATUS((short)8, "status"),
|
|
|
84 |
USER_ID((short)9, "userId"),
|
|
|
85 |
ERROR_CODE((short)10, "errorCode"),
|
|
|
86 |
DESCRIPTION((short)11, "description"),
|
|
|
87 |
AUTH_CODE((short)12, "authCode"),
|
|
|
88 |
REFERENCE_CODE((short)13, "referenceCode"),
|
|
|
89 |
SESSION_ID((short)14, "sessionId"),
|
|
|
90 |
GATEWAY_TXN_DATE((short)15, "gatewayTxnDate"),
|
|
|
91 |
ATTRIBUTES((short)16, "attributes"),
|
|
|
92 |
INIT_TIMESTAMP((short)17, "initTimestamp"),
|
|
|
93 |
SUCCESS_TIMESTAMP((short)18, "successTimestamp"),
|
| 4421 |
mandeep.dh |
94 |
ERROR_TIMESTAMP((short)19, "errorTimestamp"),
|
| 6050 |
anupam.sin |
95 |
PROVISIONAL_CAPTURE_TIMESTAMP((short)20, "provisionalCaptureTimestamp"),
|
|
|
96 |
IS_DIGITAL((short)21, "isDigital");
|
| 123 |
ashish |
97 |
|
|
|
98 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
99 |
|
|
|
100 |
static {
|
|
|
101 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
102 |
byName.put(field.getFieldName(), field);
|
|
|
103 |
}
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
/**
|
|
|
107 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
108 |
*/
|
|
|
109 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
110 |
switch(fieldId) {
|
|
|
111 |
case 1: // PAYMENT_ID
|
|
|
112 |
return PAYMENT_ID;
|
|
|
113 |
case 2: // GATEWAY_ID
|
|
|
114 |
return GATEWAY_ID;
|
|
|
115 |
case 3: // GATEWAY_PAYMENT_ID
|
|
|
116 |
return GATEWAY_PAYMENT_ID;
|
|
|
117 |
case 4: // MERCHANT_TXN_ID
|
|
|
118 |
return MERCHANT_TXN_ID;
|
|
|
119 |
case 5: // GATEWAY_TXN_ID
|
|
|
120 |
return GATEWAY_TXN_ID;
|
|
|
121 |
case 6: // AMOUNT
|
|
|
122 |
return AMOUNT;
|
|
|
123 |
case 7: // GATEWAY_TXN_STATUS
|
|
|
124 |
return GATEWAY_TXN_STATUS;
|
|
|
125 |
case 8: // STATUS
|
|
|
126 |
return STATUS;
|
|
|
127 |
case 9: // USER_ID
|
|
|
128 |
return USER_ID;
|
|
|
129 |
case 10: // ERROR_CODE
|
|
|
130 |
return ERROR_CODE;
|
|
|
131 |
case 11: // DESCRIPTION
|
|
|
132 |
return DESCRIPTION;
|
|
|
133 |
case 12: // AUTH_CODE
|
|
|
134 |
return AUTH_CODE;
|
|
|
135 |
case 13: // REFERENCE_CODE
|
|
|
136 |
return REFERENCE_CODE;
|
|
|
137 |
case 14: // SESSION_ID
|
|
|
138 |
return SESSION_ID;
|
|
|
139 |
case 15: // GATEWAY_TXN_DATE
|
|
|
140 |
return GATEWAY_TXN_DATE;
|
|
|
141 |
case 16: // ATTRIBUTES
|
|
|
142 |
return ATTRIBUTES;
|
|
|
143 |
case 17: // INIT_TIMESTAMP
|
|
|
144 |
return INIT_TIMESTAMP;
|
|
|
145 |
case 18: // SUCCESS_TIMESTAMP
|
|
|
146 |
return SUCCESS_TIMESTAMP;
|
|
|
147 |
case 19: // ERROR_TIMESTAMP
|
|
|
148 |
return ERROR_TIMESTAMP;
|
| 4421 |
mandeep.dh |
149 |
case 20: // PROVISIONAL_CAPTURE_TIMESTAMP
|
|
|
150 |
return PROVISIONAL_CAPTURE_TIMESTAMP;
|
| 6050 |
anupam.sin |
151 |
case 21: // IS_DIGITAL
|
|
|
152 |
return IS_DIGITAL;
|
| 3430 |
rajveer |
153 |
default:
|
|
|
154 |
return null;
|
|
|
155 |
}
|
| 123 |
ashish |
156 |
}
|
|
|
157 |
|
|
|
158 |
/**
|
|
|
159 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
160 |
* if it is not found.
|
|
|
161 |
*/
|
|
|
162 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
163 |
_Fields fields = findByThriftId(fieldId);
|
|
|
164 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
165 |
return fields;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
/**
|
|
|
169 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
170 |
*/
|
|
|
171 |
public static _Fields findByName(String name) {
|
|
|
172 |
return byName.get(name);
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
private final short _thriftId;
|
|
|
176 |
private final String _fieldName;
|
|
|
177 |
|
|
|
178 |
_Fields(short thriftId, String fieldName) {
|
|
|
179 |
_thriftId = thriftId;
|
|
|
180 |
_fieldName = fieldName;
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public short getThriftFieldId() {
|
|
|
184 |
return _thriftId;
|
|
|
185 |
}
|
|
|
186 |
|
|
|
187 |
public String getFieldName() {
|
|
|
188 |
return _fieldName;
|
|
|
189 |
}
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
// isset id assignments
|
| 695 |
rajveer |
193 |
private static final int __PAYMENTID_ISSET_ID = 0;
|
|
|
194 |
private static final int __GATEWAYID_ISSET_ID = 1;
|
| 705 |
chandransh |
195 |
private static final int __MERCHANTTXNID_ISSET_ID = 2;
|
|
|
196 |
private static final int __AMOUNT_ISSET_ID = 3;
|
|
|
197 |
private static final int __USERID_ISSET_ID = 4;
|
|
|
198 |
private static final int __INITTIMESTAMP_ISSET_ID = 5;
|
|
|
199 |
private static final int __SUCCESSTIMESTAMP_ISSET_ID = 6;
|
|
|
200 |
private static final int __ERRORTIMESTAMP_ISSET_ID = 7;
|
| 4421 |
mandeep.dh |
201 |
private static final int __PROVISIONALCAPTURETIMESTAMP_ISSET_ID = 8;
|
| 6050 |
anupam.sin |
202 |
private static final int __ISDIGITAL_ISSET_ID = 9;
|
|
|
203 |
private BitSet __isset_bit_vector = new BitSet(10);
|
| 123 |
ashish |
204 |
|
| 3430 |
rajveer |
205 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
206 |
static {
|
| 3430 |
rajveer |
207 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
208 |
tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
209 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
210 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
211 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
212 |
tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
213 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
214 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
215 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
216 |
tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
217 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
218 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
219 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
220 |
tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
221 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
222 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
223 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
224 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
225 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
226 |
tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
227 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
228 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
229 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
230 |
tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
231 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
232 |
tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
233 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
234 |
tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
235 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
236 |
tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
237 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
238 |
tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
239 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
240 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
|
|
|
241 |
tmpMap.put(_Fields.INIT_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("initTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
242 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
243 |
tmpMap.put(_Fields.SUCCESS_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("successTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
244 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
245 |
tmpMap.put(_Fields.ERROR_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("errorTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
246 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4421 |
mandeep.dh |
247 |
tmpMap.put(_Fields.PROVISIONAL_CAPTURE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("provisionalCaptureTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
248 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6050 |
anupam.sin |
249 |
tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
250 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 3430 |
rajveer |
251 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
252 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Payment.class, metaDataMap);
|
| 123 |
ashish |
253 |
}
|
|
|
254 |
|
|
|
255 |
public Payment() {
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
public Payment(
|
| 695 |
rajveer |
259 |
long paymentId,
|
|
|
260 |
long gatewayId,
|
|
|
261 |
String gatewayPaymentId,
|
| 705 |
chandransh |
262 |
long merchantTxnId,
|
| 695 |
rajveer |
263 |
String gatewayTxnId,
|
| 123 |
ashish |
264 |
double amount,
|
| 695 |
rajveer |
265 |
String gatewayTxnStatus,
|
| 123 |
ashish |
266 |
PaymentStatus status,
|
| 695 |
rajveer |
267 |
long userId,
|
|
|
268 |
String errorCode,
|
|
|
269 |
String description,
|
|
|
270 |
String authCode,
|
|
|
271 |
String referenceCode,
|
|
|
272 |
String sessionId,
|
|
|
273 |
String gatewayTxnDate,
|
|
|
274 |
List<Attribute> attributes,
|
|
|
275 |
long initTimestamp,
|
|
|
276 |
long successTimestamp,
|
| 4421 |
mandeep.dh |
277 |
long errorTimestamp,
|
| 6050 |
anupam.sin |
278 |
long provisionalCaptureTimestamp,
|
|
|
279 |
boolean isDigital)
|
| 123 |
ashish |
280 |
{
|
|
|
281 |
this();
|
| 695 |
rajveer |
282 |
this.paymentId = paymentId;
|
|
|
283 |
setPaymentIdIsSet(true);
|
|
|
284 |
this.gatewayId = gatewayId;
|
|
|
285 |
setGatewayIdIsSet(true);
|
|
|
286 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
287 |
this.merchantTxnId = merchantTxnId;
|
| 705 |
chandransh |
288 |
setMerchantTxnIdIsSet(true);
|
| 695 |
rajveer |
289 |
this.gatewayTxnId = gatewayTxnId;
|
| 123 |
ashish |
290 |
this.amount = amount;
|
|
|
291 |
setAmountIsSet(true);
|
| 695 |
rajveer |
292 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 123 |
ashish |
293 |
this.status = status;
|
| 695 |
rajveer |
294 |
this.userId = userId;
|
|
|
295 |
setUserIdIsSet(true);
|
|
|
296 |
this.errorCode = errorCode;
|
|
|
297 |
this.description = description;
|
|
|
298 |
this.authCode = authCode;
|
|
|
299 |
this.referenceCode = referenceCode;
|
|
|
300 |
this.sessionId = sessionId;
|
|
|
301 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
302 |
this.attributes = attributes;
|
|
|
303 |
this.initTimestamp = initTimestamp;
|
|
|
304 |
setInitTimestampIsSet(true);
|
|
|
305 |
this.successTimestamp = successTimestamp;
|
|
|
306 |
setSuccessTimestampIsSet(true);
|
|
|
307 |
this.errorTimestamp = errorTimestamp;
|
|
|
308 |
setErrorTimestampIsSet(true);
|
| 4421 |
mandeep.dh |
309 |
this.provisionalCaptureTimestamp = provisionalCaptureTimestamp;
|
|
|
310 |
setProvisionalCaptureTimestampIsSet(true);
|
| 6050 |
anupam.sin |
311 |
this.isDigital = isDigital;
|
|
|
312 |
setIsDigitalIsSet(true);
|
| 123 |
ashish |
313 |
}
|
|
|
314 |
|
|
|
315 |
/**
|
|
|
316 |
* Performs a deep copy on <i>other</i>.
|
|
|
317 |
*/
|
|
|
318 |
public Payment(Payment other) {
|
|
|
319 |
__isset_bit_vector.clear();
|
|
|
320 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
321 |
this.paymentId = other.paymentId;
|
|
|
322 |
this.gatewayId = other.gatewayId;
|
|
|
323 |
if (other.isSetGatewayPaymentId()) {
|
|
|
324 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
| 420 |
ashish |
325 |
}
|
| 705 |
chandransh |
326 |
this.merchantTxnId = other.merchantTxnId;
|
| 695 |
rajveer |
327 |
if (other.isSetGatewayTxnId()) {
|
|
|
328 |
this.gatewayTxnId = other.gatewayTxnId;
|
|
|
329 |
}
|
| 123 |
ashish |
330 |
this.amount = other.amount;
|
| 695 |
rajveer |
331 |
if (other.isSetGatewayTxnStatus()) {
|
|
|
332 |
this.gatewayTxnStatus = other.gatewayTxnStatus;
|
| 123 |
ashish |
333 |
}
|
|
|
334 |
if (other.isSetStatus()) {
|
|
|
335 |
this.status = other.status;
|
|
|
336 |
}
|
| 695 |
rajveer |
337 |
this.userId = other.userId;
|
|
|
338 |
if (other.isSetErrorCode()) {
|
|
|
339 |
this.errorCode = other.errorCode;
|
| 123 |
ashish |
340 |
}
|
| 695 |
rajveer |
341 |
if (other.isSetDescription()) {
|
|
|
342 |
this.description = other.description;
|
| 123 |
ashish |
343 |
}
|
| 695 |
rajveer |
344 |
if (other.isSetAuthCode()) {
|
|
|
345 |
this.authCode = other.authCode;
|
| 123 |
ashish |
346 |
}
|
| 695 |
rajveer |
347 |
if (other.isSetReferenceCode()) {
|
|
|
348 |
this.referenceCode = other.referenceCode;
|
| 420 |
ashish |
349 |
}
|
| 695 |
rajveer |
350 |
if (other.isSetSessionId()) {
|
|
|
351 |
this.sessionId = other.sessionId;
|
| 420 |
ashish |
352 |
}
|
| 695 |
rajveer |
353 |
if (other.isSetGatewayTxnDate()) {
|
|
|
354 |
this.gatewayTxnDate = other.gatewayTxnDate;
|
| 420 |
ashish |
355 |
}
|
| 695 |
rajveer |
356 |
if (other.isSetAttributes()) {
|
|
|
357 |
List<Attribute> __this__attributes = new ArrayList<Attribute>();
|
|
|
358 |
for (Attribute other_element : other.attributes) {
|
|
|
359 |
__this__attributes.add(new Attribute(other_element));
|
|
|
360 |
}
|
|
|
361 |
this.attributes = __this__attributes;
|
| 420 |
ashish |
362 |
}
|
| 695 |
rajveer |
363 |
this.initTimestamp = other.initTimestamp;
|
|
|
364 |
this.successTimestamp = other.successTimestamp;
|
|
|
365 |
this.errorTimestamp = other.errorTimestamp;
|
| 4421 |
mandeep.dh |
366 |
this.provisionalCaptureTimestamp = other.provisionalCaptureTimestamp;
|
| 6050 |
anupam.sin |
367 |
this.isDigital = other.isDigital;
|
| 123 |
ashish |
368 |
}
|
|
|
369 |
|
|
|
370 |
public Payment deepCopy() {
|
|
|
371 |
return new Payment(this);
|
|
|
372 |
}
|
|
|
373 |
|
| 3430 |
rajveer |
374 |
@Override
|
|
|
375 |
public void clear() {
|
|
|
376 |
setPaymentIdIsSet(false);
|
|
|
377 |
this.paymentId = 0;
|
|
|
378 |
setGatewayIdIsSet(false);
|
|
|
379 |
this.gatewayId = 0;
|
|
|
380 |
this.gatewayPaymentId = null;
|
|
|
381 |
setMerchantTxnIdIsSet(false);
|
|
|
382 |
this.merchantTxnId = 0;
|
|
|
383 |
this.gatewayTxnId = null;
|
|
|
384 |
setAmountIsSet(false);
|
|
|
385 |
this.amount = 0.0;
|
|
|
386 |
this.gatewayTxnStatus = null;
|
|
|
387 |
this.status = null;
|
|
|
388 |
setUserIdIsSet(false);
|
|
|
389 |
this.userId = 0;
|
|
|
390 |
this.errorCode = null;
|
|
|
391 |
this.description = null;
|
|
|
392 |
this.authCode = null;
|
|
|
393 |
this.referenceCode = null;
|
|
|
394 |
this.sessionId = null;
|
|
|
395 |
this.gatewayTxnDate = null;
|
|
|
396 |
this.attributes = null;
|
|
|
397 |
setInitTimestampIsSet(false);
|
|
|
398 |
this.initTimestamp = 0;
|
|
|
399 |
setSuccessTimestampIsSet(false);
|
|
|
400 |
this.successTimestamp = 0;
|
|
|
401 |
setErrorTimestampIsSet(false);
|
|
|
402 |
this.errorTimestamp = 0;
|
| 4421 |
mandeep.dh |
403 |
setProvisionalCaptureTimestampIsSet(false);
|
|
|
404 |
this.provisionalCaptureTimestamp = 0;
|
| 6050 |
anupam.sin |
405 |
setIsDigitalIsSet(false);
|
|
|
406 |
this.isDigital = false;
|
| 123 |
ashish |
407 |
}
|
|
|
408 |
|
| 695 |
rajveer |
409 |
public long getPaymentId() {
|
|
|
410 |
return this.paymentId;
|
| 123 |
ashish |
411 |
}
|
|
|
412 |
|
| 3430 |
rajveer |
413 |
public void setPaymentId(long paymentId) {
|
| 695 |
rajveer |
414 |
this.paymentId = paymentId;
|
|
|
415 |
setPaymentIdIsSet(true);
|
| 123 |
ashish |
416 |
}
|
|
|
417 |
|
| 695 |
rajveer |
418 |
public void unsetPaymentId() {
|
|
|
419 |
__isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
|
| 123 |
ashish |
420 |
}
|
|
|
421 |
|
| 3430 |
rajveer |
422 |
/** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
423 |
public boolean isSetPaymentId() {
|
|
|
424 |
return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
|
| 123 |
ashish |
425 |
}
|
|
|
426 |
|
| 695 |
rajveer |
427 |
public void setPaymentIdIsSet(boolean value) {
|
|
|
428 |
__isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
|
| 123 |
ashish |
429 |
}
|
|
|
430 |
|
| 695 |
rajveer |
431 |
public long getGatewayId() {
|
|
|
432 |
return this.gatewayId;
|
| 123 |
ashish |
433 |
}
|
|
|
434 |
|
| 3430 |
rajveer |
435 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
436 |
this.gatewayId = gatewayId;
|
|
|
437 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
438 |
}
|
|
|
439 |
|
| 695 |
rajveer |
440 |
public void unsetGatewayId() {
|
|
|
441 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
442 |
}
|
|
|
443 |
|
| 3430 |
rajveer |
444 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
445 |
public boolean isSetGatewayId() {
|
|
|
446 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
447 |
}
|
|
|
448 |
|
| 695 |
rajveer |
449 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
450 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
public String getGatewayPaymentId() {
|
|
|
454 |
return this.gatewayPaymentId;
|
|
|
455 |
}
|
|
|
456 |
|
| 3430 |
rajveer |
457 |
public void setGatewayPaymentId(String gatewayPaymentId) {
|
| 695 |
rajveer |
458 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public void unsetGatewayPaymentId() {
|
|
|
462 |
this.gatewayPaymentId = null;
|
|
|
463 |
}
|
|
|
464 |
|
| 3430 |
rajveer |
465 |
/** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
466 |
public boolean isSetGatewayPaymentId() {
|
|
|
467 |
return this.gatewayPaymentId != null;
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public void setGatewayPaymentIdIsSet(boolean value) {
|
| 420 |
ashish |
471 |
if (!value) {
|
| 695 |
rajveer |
472 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
473 |
}
|
| 123 |
ashish |
474 |
}
|
|
|
475 |
|
| 705 |
chandransh |
476 |
public long getMerchantTxnId() {
|
| 695 |
rajveer |
477 |
return this.merchantTxnId;
|
| 123 |
ashish |
478 |
}
|
|
|
479 |
|
| 3430 |
rajveer |
480 |
public void setMerchantTxnId(long merchantTxnId) {
|
| 695 |
rajveer |
481 |
this.merchantTxnId = merchantTxnId;
|
| 705 |
chandransh |
482 |
setMerchantTxnIdIsSet(true);
|
| 123 |
ashish |
483 |
}
|
|
|
484 |
|
| 695 |
rajveer |
485 |
public void unsetMerchantTxnId() {
|
| 705 |
chandransh |
486 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
| 123 |
ashish |
487 |
}
|
|
|
488 |
|
| 3430 |
rajveer |
489 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
490 |
public boolean isSetMerchantTxnId() {
|
| 705 |
chandransh |
491 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
| 123 |
ashish |
492 |
}
|
|
|
493 |
|
| 695 |
rajveer |
494 |
public void setMerchantTxnIdIsSet(boolean value) {
|
| 705 |
chandransh |
495 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
| 123 |
ashish |
496 |
}
|
|
|
497 |
|
| 695 |
rajveer |
498 |
public String getGatewayTxnId() {
|
|
|
499 |
return this.gatewayTxnId;
|
| 123 |
ashish |
500 |
}
|
|
|
501 |
|
| 3430 |
rajveer |
502 |
public void setGatewayTxnId(String gatewayTxnId) {
|
| 695 |
rajveer |
503 |
this.gatewayTxnId = gatewayTxnId;
|
| 123 |
ashish |
504 |
}
|
|
|
505 |
|
| 695 |
rajveer |
506 |
public void unsetGatewayTxnId() {
|
|
|
507 |
this.gatewayTxnId = null;
|
| 123 |
ashish |
508 |
}
|
|
|
509 |
|
| 3430 |
rajveer |
510 |
/** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
511 |
public boolean isSetGatewayTxnId() {
|
|
|
512 |
return this.gatewayTxnId != null;
|
| 123 |
ashish |
513 |
}
|
|
|
514 |
|
| 695 |
rajveer |
515 |
public void setGatewayTxnIdIsSet(boolean value) {
|
|
|
516 |
if (!value) {
|
|
|
517 |
this.gatewayTxnId = null;
|
|
|
518 |
}
|
| 123 |
ashish |
519 |
}
|
|
|
520 |
|
| 695 |
rajveer |
521 |
public double getAmount() {
|
|
|
522 |
return this.amount;
|
| 123 |
ashish |
523 |
}
|
|
|
524 |
|
| 3430 |
rajveer |
525 |
public void setAmount(double amount) {
|
| 695 |
rajveer |
526 |
this.amount = amount;
|
|
|
527 |
setAmountIsSet(true);
|
| 123 |
ashish |
528 |
}
|
|
|
529 |
|
| 695 |
rajveer |
530 |
public void unsetAmount() {
|
|
|
531 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
| 123 |
ashish |
532 |
}
|
|
|
533 |
|
| 3430 |
rajveer |
534 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
535 |
public boolean isSetAmount() {
|
|
|
536 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
| 123 |
ashish |
537 |
}
|
|
|
538 |
|
| 695 |
rajveer |
539 |
public void setAmountIsSet(boolean value) {
|
|
|
540 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
| 123 |
ashish |
541 |
}
|
|
|
542 |
|
| 695 |
rajveer |
543 |
public String getGatewayTxnStatus() {
|
|
|
544 |
return this.gatewayTxnStatus;
|
| 123 |
ashish |
545 |
}
|
|
|
546 |
|
| 3430 |
rajveer |
547 |
public void setGatewayTxnStatus(String gatewayTxnStatus) {
|
| 695 |
rajveer |
548 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 123 |
ashish |
549 |
}
|
|
|
550 |
|
| 695 |
rajveer |
551 |
public void unsetGatewayTxnStatus() {
|
|
|
552 |
this.gatewayTxnStatus = null;
|
| 123 |
ashish |
553 |
}
|
|
|
554 |
|
| 3430 |
rajveer |
555 |
/** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
556 |
public boolean isSetGatewayTxnStatus() {
|
|
|
557 |
return this.gatewayTxnStatus != null;
|
| 123 |
ashish |
558 |
}
|
|
|
559 |
|
| 695 |
rajveer |
560 |
public void setGatewayTxnStatusIsSet(boolean value) {
|
| 123 |
ashish |
561 |
if (!value) {
|
| 695 |
rajveer |
562 |
this.gatewayTxnStatus = null;
|
| 123 |
ashish |
563 |
}
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
/**
|
|
|
567 |
*
|
|
|
568 |
* @see PaymentStatus
|
|
|
569 |
*/
|
|
|
570 |
public PaymentStatus getStatus() {
|
|
|
571 |
return this.status;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
/**
|
|
|
575 |
*
|
|
|
576 |
* @see PaymentStatus
|
|
|
577 |
*/
|
| 3430 |
rajveer |
578 |
public void setStatus(PaymentStatus status) {
|
| 123 |
ashish |
579 |
this.status = status;
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
public void unsetStatus() {
|
|
|
583 |
this.status = null;
|
|
|
584 |
}
|
|
|
585 |
|
| 3430 |
rajveer |
586 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
587 |
public boolean isSetStatus() {
|
|
|
588 |
return this.status != null;
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
public void setStatusIsSet(boolean value) {
|
|
|
592 |
if (!value) {
|
|
|
593 |
this.status = null;
|
|
|
594 |
}
|
|
|
595 |
}
|
|
|
596 |
|
| 695 |
rajveer |
597 |
public long getUserId() {
|
|
|
598 |
return this.userId;
|
| 123 |
ashish |
599 |
}
|
|
|
600 |
|
| 3430 |
rajveer |
601 |
public void setUserId(long userId) {
|
| 695 |
rajveer |
602 |
this.userId = userId;
|
|
|
603 |
setUserIdIsSet(true);
|
| 123 |
ashish |
604 |
}
|
|
|
605 |
|
| 695 |
rajveer |
606 |
public void unsetUserId() {
|
|
|
607 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
| 123 |
ashish |
608 |
}
|
|
|
609 |
|
| 3430 |
rajveer |
610 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
611 |
public boolean isSetUserId() {
|
|
|
612 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
| 123 |
ashish |
613 |
}
|
|
|
614 |
|
| 695 |
rajveer |
615 |
public void setUserIdIsSet(boolean value) {
|
|
|
616 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
| 123 |
ashish |
617 |
}
|
|
|
618 |
|
| 695 |
rajveer |
619 |
public String getErrorCode() {
|
|
|
620 |
return this.errorCode;
|
| 123 |
ashish |
621 |
}
|
|
|
622 |
|
| 3430 |
rajveer |
623 |
public void setErrorCode(String errorCode) {
|
| 695 |
rajveer |
624 |
this.errorCode = errorCode;
|
| 123 |
ashish |
625 |
}
|
|
|
626 |
|
| 695 |
rajveer |
627 |
public void unsetErrorCode() {
|
|
|
628 |
this.errorCode = null;
|
| 123 |
ashish |
629 |
}
|
|
|
630 |
|
| 3430 |
rajveer |
631 |
/** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
632 |
public boolean isSetErrorCode() {
|
|
|
633 |
return this.errorCode != null;
|
| 123 |
ashish |
634 |
}
|
|
|
635 |
|
| 695 |
rajveer |
636 |
public void setErrorCodeIsSet(boolean value) {
|
|
|
637 |
if (!value) {
|
|
|
638 |
this.errorCode = null;
|
|
|
639 |
}
|
| 123 |
ashish |
640 |
}
|
|
|
641 |
|
| 695 |
rajveer |
642 |
public String getDescription() {
|
|
|
643 |
return this.description;
|
| 123 |
ashish |
644 |
}
|
|
|
645 |
|
| 3430 |
rajveer |
646 |
public void setDescription(String description) {
|
| 695 |
rajveer |
647 |
this.description = description;
|
| 123 |
ashish |
648 |
}
|
|
|
649 |
|
| 695 |
rajveer |
650 |
public void unsetDescription() {
|
|
|
651 |
this.description = null;
|
| 123 |
ashish |
652 |
}
|
|
|
653 |
|
| 3430 |
rajveer |
654 |
/** Returns true if field description is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
655 |
public boolean isSetDescription() {
|
|
|
656 |
return this.description != null;
|
| 123 |
ashish |
657 |
}
|
|
|
658 |
|
| 695 |
rajveer |
659 |
public void setDescriptionIsSet(boolean value) {
|
|
|
660 |
if (!value) {
|
|
|
661 |
this.description = null;
|
| 123 |
ashish |
662 |
}
|
|
|
663 |
}
|
|
|
664 |
|
| 695 |
rajveer |
665 |
public String getAuthCode() {
|
|
|
666 |
return this.authCode;
|
| 123 |
ashish |
667 |
}
|
|
|
668 |
|
| 3430 |
rajveer |
669 |
public void setAuthCode(String authCode) {
|
| 695 |
rajveer |
670 |
this.authCode = authCode;
|
| 123 |
ashish |
671 |
}
|
|
|
672 |
|
| 695 |
rajveer |
673 |
public void unsetAuthCode() {
|
|
|
674 |
this.authCode = null;
|
| 123 |
ashish |
675 |
}
|
|
|
676 |
|
| 3430 |
rajveer |
677 |
/** Returns true if field authCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
678 |
public boolean isSetAuthCode() {
|
|
|
679 |
return this.authCode != null;
|
| 123 |
ashish |
680 |
}
|
|
|
681 |
|
| 695 |
rajveer |
682 |
public void setAuthCodeIsSet(boolean value) {
|
| 123 |
ashish |
683 |
if (!value) {
|
| 695 |
rajveer |
684 |
this.authCode = null;
|
| 123 |
ashish |
685 |
}
|
|
|
686 |
}
|
|
|
687 |
|
| 695 |
rajveer |
688 |
public String getReferenceCode() {
|
|
|
689 |
return this.referenceCode;
|
| 123 |
ashish |
690 |
}
|
|
|
691 |
|
| 3430 |
rajveer |
692 |
public void setReferenceCode(String referenceCode) {
|
| 695 |
rajveer |
693 |
this.referenceCode = referenceCode;
|
| 123 |
ashish |
694 |
}
|
|
|
695 |
|
| 695 |
rajveer |
696 |
public void unsetReferenceCode() {
|
|
|
697 |
this.referenceCode = null;
|
| 123 |
ashish |
698 |
}
|
|
|
699 |
|
| 3430 |
rajveer |
700 |
/** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
701 |
public boolean isSetReferenceCode() {
|
|
|
702 |
return this.referenceCode != null;
|
| 123 |
ashish |
703 |
}
|
|
|
704 |
|
| 695 |
rajveer |
705 |
public void setReferenceCodeIsSet(boolean value) {
|
|
|
706 |
if (!value) {
|
|
|
707 |
this.referenceCode = null;
|
|
|
708 |
}
|
| 420 |
ashish |
709 |
}
|
|
|
710 |
|
| 695 |
rajveer |
711 |
public String getSessionId() {
|
|
|
712 |
return this.sessionId;
|
| 420 |
ashish |
713 |
}
|
|
|
714 |
|
| 3430 |
rajveer |
715 |
public void setSessionId(String sessionId) {
|
| 695 |
rajveer |
716 |
this.sessionId = sessionId;
|
| 420 |
ashish |
717 |
}
|
|
|
718 |
|
| 695 |
rajveer |
719 |
public void unsetSessionId() {
|
|
|
720 |
this.sessionId = null;
|
| 420 |
ashish |
721 |
}
|
|
|
722 |
|
| 3430 |
rajveer |
723 |
/** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
724 |
public boolean isSetSessionId() {
|
|
|
725 |
return this.sessionId != null;
|
| 420 |
ashish |
726 |
}
|
|
|
727 |
|
| 695 |
rajveer |
728 |
public void setSessionIdIsSet(boolean value) {
|
| 123 |
ashish |
729 |
if (!value) {
|
| 695 |
rajveer |
730 |
this.sessionId = null;
|
| 123 |
ashish |
731 |
}
|
|
|
732 |
}
|
|
|
733 |
|
| 695 |
rajveer |
734 |
public String getGatewayTxnDate() {
|
|
|
735 |
return this.gatewayTxnDate;
|
| 420 |
ashish |
736 |
}
|
|
|
737 |
|
| 3430 |
rajveer |
738 |
public void setGatewayTxnDate(String gatewayTxnDate) {
|
| 695 |
rajveer |
739 |
this.gatewayTxnDate = gatewayTxnDate;
|
| 420 |
ashish |
740 |
}
|
|
|
741 |
|
| 695 |
rajveer |
742 |
public void unsetGatewayTxnDate() {
|
|
|
743 |
this.gatewayTxnDate = null;
|
| 420 |
ashish |
744 |
}
|
|
|
745 |
|
| 3430 |
rajveer |
746 |
/** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
747 |
public boolean isSetGatewayTxnDate() {
|
|
|
748 |
return this.gatewayTxnDate != null;
|
| 420 |
ashish |
749 |
}
|
|
|
750 |
|
| 695 |
rajveer |
751 |
public void setGatewayTxnDateIsSet(boolean value) {
|
| 420 |
ashish |
752 |
if (!value) {
|
| 695 |
rajveer |
753 |
this.gatewayTxnDate = null;
|
| 420 |
ashish |
754 |
}
|
|
|
755 |
}
|
|
|
756 |
|
| 695 |
rajveer |
757 |
public int getAttributesSize() {
|
|
|
758 |
return (this.attributes == null) ? 0 : this.attributes.size();
|
| 420 |
ashish |
759 |
}
|
|
|
760 |
|
| 695 |
rajveer |
761 |
public java.util.Iterator<Attribute> getAttributesIterator() {
|
|
|
762 |
return (this.attributes == null) ? null : this.attributes.iterator();
|
|
|
763 |
}
|
|
|
764 |
|
|
|
765 |
public void addToAttributes(Attribute elem) {
|
|
|
766 |
if (this.attributes == null) {
|
|
|
767 |
this.attributes = new ArrayList<Attribute>();
|
|
|
768 |
}
|
|
|
769 |
this.attributes.add(elem);
|
|
|
770 |
}
|
|
|
771 |
|
|
|
772 |
public List<Attribute> getAttributes() {
|
|
|
773 |
return this.attributes;
|
|
|
774 |
}
|
|
|
775 |
|
| 3430 |
rajveer |
776 |
public void setAttributes(List<Attribute> attributes) {
|
| 695 |
rajveer |
777 |
this.attributes = attributes;
|
| 420 |
ashish |
778 |
}
|
|
|
779 |
|
| 695 |
rajveer |
780 |
public void unsetAttributes() {
|
|
|
781 |
this.attributes = null;
|
| 420 |
ashish |
782 |
}
|
|
|
783 |
|
| 3430 |
rajveer |
784 |
/** Returns true if field attributes is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
785 |
public boolean isSetAttributes() {
|
|
|
786 |
return this.attributes != null;
|
| 420 |
ashish |
787 |
}
|
|
|
788 |
|
| 695 |
rajveer |
789 |
public void setAttributesIsSet(boolean value) {
|
| 420 |
ashish |
790 |
if (!value) {
|
| 695 |
rajveer |
791 |
this.attributes = null;
|
| 420 |
ashish |
792 |
}
|
|
|
793 |
}
|
|
|
794 |
|
| 695 |
rajveer |
795 |
public long getInitTimestamp() {
|
|
|
796 |
return this.initTimestamp;
|
| 420 |
ashish |
797 |
}
|
|
|
798 |
|
| 3430 |
rajveer |
799 |
public void setInitTimestamp(long initTimestamp) {
|
| 695 |
rajveer |
800 |
this.initTimestamp = initTimestamp;
|
|
|
801 |
setInitTimestampIsSet(true);
|
| 420 |
ashish |
802 |
}
|
|
|
803 |
|
| 695 |
rajveer |
804 |
public void unsetInitTimestamp() {
|
|
|
805 |
__isset_bit_vector.clear(__INITTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
806 |
}
|
|
|
807 |
|
| 3430 |
rajveer |
808 |
/** Returns true if field initTimestamp is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
809 |
public boolean isSetInitTimestamp() {
|
|
|
810 |
return __isset_bit_vector.get(__INITTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
811 |
}
|
|
|
812 |
|
| 695 |
rajveer |
813 |
public void setInitTimestampIsSet(boolean value) {
|
|
|
814 |
__isset_bit_vector.set(__INITTIMESTAMP_ISSET_ID, value);
|
| 420 |
ashish |
815 |
}
|
|
|
816 |
|
| 695 |
rajveer |
817 |
public long getSuccessTimestamp() {
|
|
|
818 |
return this.successTimestamp;
|
| 420 |
ashish |
819 |
}
|
|
|
820 |
|
| 3430 |
rajveer |
821 |
public void setSuccessTimestamp(long successTimestamp) {
|
| 695 |
rajveer |
822 |
this.successTimestamp = successTimestamp;
|
|
|
823 |
setSuccessTimestampIsSet(true);
|
| 420 |
ashish |
824 |
}
|
|
|
825 |
|
| 695 |
rajveer |
826 |
public void unsetSuccessTimestamp() {
|
|
|
827 |
__isset_bit_vector.clear(__SUCCESSTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
828 |
}
|
|
|
829 |
|
| 3430 |
rajveer |
830 |
/** Returns true if field successTimestamp is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
831 |
public boolean isSetSuccessTimestamp() {
|
|
|
832 |
return __isset_bit_vector.get(__SUCCESSTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
833 |
}
|
|
|
834 |
|
| 695 |
rajveer |
835 |
public void setSuccessTimestampIsSet(boolean value) {
|
|
|
836 |
__isset_bit_vector.set(__SUCCESSTIMESTAMP_ISSET_ID, value);
|
| 420 |
ashish |
837 |
}
|
|
|
838 |
|
| 695 |
rajveer |
839 |
public long getErrorTimestamp() {
|
|
|
840 |
return this.errorTimestamp;
|
| 420 |
ashish |
841 |
}
|
|
|
842 |
|
| 3430 |
rajveer |
843 |
public void setErrorTimestamp(long errorTimestamp) {
|
| 695 |
rajveer |
844 |
this.errorTimestamp = errorTimestamp;
|
|
|
845 |
setErrorTimestampIsSet(true);
|
| 420 |
ashish |
846 |
}
|
|
|
847 |
|
| 695 |
rajveer |
848 |
public void unsetErrorTimestamp() {
|
|
|
849 |
__isset_bit_vector.clear(__ERRORTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
850 |
}
|
|
|
851 |
|
| 3430 |
rajveer |
852 |
/** Returns true if field errorTimestamp is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
853 |
public boolean isSetErrorTimestamp() {
|
|
|
854 |
return __isset_bit_vector.get(__ERRORTIMESTAMP_ISSET_ID);
|
| 420 |
ashish |
855 |
}
|
|
|
856 |
|
| 695 |
rajveer |
857 |
public void setErrorTimestampIsSet(boolean value) {
|
|
|
858 |
__isset_bit_vector.set(__ERRORTIMESTAMP_ISSET_ID, value);
|
| 420 |
ashish |
859 |
}
|
|
|
860 |
|
| 4421 |
mandeep.dh |
861 |
public long getProvisionalCaptureTimestamp() {
|
|
|
862 |
return this.provisionalCaptureTimestamp;
|
|
|
863 |
}
|
|
|
864 |
|
|
|
865 |
public void setProvisionalCaptureTimestamp(long provisionalCaptureTimestamp) {
|
|
|
866 |
this.provisionalCaptureTimestamp = provisionalCaptureTimestamp;
|
|
|
867 |
setProvisionalCaptureTimestampIsSet(true);
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
public void unsetProvisionalCaptureTimestamp() {
|
|
|
871 |
__isset_bit_vector.clear(__PROVISIONALCAPTURETIMESTAMP_ISSET_ID);
|
|
|
872 |
}
|
|
|
873 |
|
|
|
874 |
/** Returns true if field provisionalCaptureTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
875 |
public boolean isSetProvisionalCaptureTimestamp() {
|
|
|
876 |
return __isset_bit_vector.get(__PROVISIONALCAPTURETIMESTAMP_ISSET_ID);
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
public void setProvisionalCaptureTimestampIsSet(boolean value) {
|
|
|
880 |
__isset_bit_vector.set(__PROVISIONALCAPTURETIMESTAMP_ISSET_ID, value);
|
|
|
881 |
}
|
|
|
882 |
|
| 6050 |
anupam.sin |
883 |
public boolean isIsDigital() {
|
|
|
884 |
return this.isDigital;
|
|
|
885 |
}
|
|
|
886 |
|
|
|
887 |
public void setIsDigital(boolean isDigital) {
|
|
|
888 |
this.isDigital = isDigital;
|
|
|
889 |
setIsDigitalIsSet(true);
|
|
|
890 |
}
|
|
|
891 |
|
|
|
892 |
public void unsetIsDigital() {
|
|
|
893 |
__isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
|
|
|
894 |
}
|
|
|
895 |
|
|
|
896 |
/** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
|
|
|
897 |
public boolean isSetIsDigital() {
|
|
|
898 |
return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
public void setIsDigitalIsSet(boolean value) {
|
|
|
902 |
__isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
|
|
|
903 |
}
|
|
|
904 |
|
| 123 |
ashish |
905 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
906 |
switch (field) {
|
| 695 |
rajveer |
907 |
case PAYMENT_ID:
|
| 123 |
ashish |
908 |
if (value == null) {
|
| 695 |
rajveer |
909 |
unsetPaymentId();
|
| 123 |
ashish |
910 |
} else {
|
| 695 |
rajveer |
911 |
setPaymentId((Long)value);
|
| 123 |
ashish |
912 |
}
|
|
|
913 |
break;
|
|
|
914 |
|
| 695 |
rajveer |
915 |
case GATEWAY_ID:
|
| 123 |
ashish |
916 |
if (value == null) {
|
| 695 |
rajveer |
917 |
unsetGatewayId();
|
| 123 |
ashish |
918 |
} else {
|
| 695 |
rajveer |
919 |
setGatewayId((Long)value);
|
| 123 |
ashish |
920 |
}
|
|
|
921 |
break;
|
|
|
922 |
|
| 695 |
rajveer |
923 |
case GATEWAY_PAYMENT_ID:
|
| 123 |
ashish |
924 |
if (value == null) {
|
| 695 |
rajveer |
925 |
unsetGatewayPaymentId();
|
| 123 |
ashish |
926 |
} else {
|
| 695 |
rajveer |
927 |
setGatewayPaymentId((String)value);
|
| 123 |
ashish |
928 |
}
|
|
|
929 |
break;
|
|
|
930 |
|
| 695 |
rajveer |
931 |
case MERCHANT_TXN_ID:
|
| 123 |
ashish |
932 |
if (value == null) {
|
| 695 |
rajveer |
933 |
unsetMerchantTxnId();
|
| 123 |
ashish |
934 |
} else {
|
| 705 |
chandransh |
935 |
setMerchantTxnId((Long)value);
|
| 123 |
ashish |
936 |
}
|
|
|
937 |
break;
|
|
|
938 |
|
| 695 |
rajveer |
939 |
case GATEWAY_TXN_ID:
|
| 123 |
ashish |
940 |
if (value == null) {
|
| 695 |
rajveer |
941 |
unsetGatewayTxnId();
|
| 123 |
ashish |
942 |
} else {
|
| 695 |
rajveer |
943 |
setGatewayTxnId((String)value);
|
| 123 |
ashish |
944 |
}
|
|
|
945 |
break;
|
|
|
946 |
|
| 695 |
rajveer |
947 |
case AMOUNT:
|
| 123 |
ashish |
948 |
if (value == null) {
|
| 695 |
rajveer |
949 |
unsetAmount();
|
| 123 |
ashish |
950 |
} else {
|
| 695 |
rajveer |
951 |
setAmount((Double)value);
|
| 123 |
ashish |
952 |
}
|
|
|
953 |
break;
|
|
|
954 |
|
| 695 |
rajveer |
955 |
case GATEWAY_TXN_STATUS:
|
|
|
956 |
if (value == null) {
|
|
|
957 |
unsetGatewayTxnStatus();
|
|
|
958 |
} else {
|
|
|
959 |
setGatewayTxnStatus((String)value);
|
|
|
960 |
}
|
|
|
961 |
break;
|
|
|
962 |
|
| 123 |
ashish |
963 |
case STATUS:
|
|
|
964 |
if (value == null) {
|
|
|
965 |
unsetStatus();
|
|
|
966 |
} else {
|
|
|
967 |
setStatus((PaymentStatus)value);
|
|
|
968 |
}
|
|
|
969 |
break;
|
|
|
970 |
|
| 695 |
rajveer |
971 |
case USER_ID:
|
| 123 |
ashish |
972 |
if (value == null) {
|
| 695 |
rajveer |
973 |
unsetUserId();
|
| 123 |
ashish |
974 |
} else {
|
| 695 |
rajveer |
975 |
setUserId((Long)value);
|
| 123 |
ashish |
976 |
}
|
|
|
977 |
break;
|
|
|
978 |
|
| 695 |
rajveer |
979 |
case ERROR_CODE:
|
| 123 |
ashish |
980 |
if (value == null) {
|
| 695 |
rajveer |
981 |
unsetErrorCode();
|
| 123 |
ashish |
982 |
} else {
|
| 695 |
rajveer |
983 |
setErrorCode((String)value);
|
| 123 |
ashish |
984 |
}
|
|
|
985 |
break;
|
|
|
986 |
|
| 695 |
rajveer |
987 |
case DESCRIPTION:
|
| 123 |
ashish |
988 |
if (value == null) {
|
| 695 |
rajveer |
989 |
unsetDescription();
|
| 123 |
ashish |
990 |
} else {
|
| 695 |
rajveer |
991 |
setDescription((String)value);
|
| 123 |
ashish |
992 |
}
|
|
|
993 |
break;
|
|
|
994 |
|
| 695 |
rajveer |
995 |
case AUTH_CODE:
|
| 123 |
ashish |
996 |
if (value == null) {
|
| 695 |
rajveer |
997 |
unsetAuthCode();
|
| 123 |
ashish |
998 |
} else {
|
| 695 |
rajveer |
999 |
setAuthCode((String)value);
|
| 123 |
ashish |
1000 |
}
|
|
|
1001 |
break;
|
|
|
1002 |
|
| 695 |
rajveer |
1003 |
case REFERENCE_CODE:
|
| 123 |
ashish |
1004 |
if (value == null) {
|
| 695 |
rajveer |
1005 |
unsetReferenceCode();
|
| 123 |
ashish |
1006 |
} else {
|
| 695 |
rajveer |
1007 |
setReferenceCode((String)value);
|
| 123 |
ashish |
1008 |
}
|
|
|
1009 |
break;
|
|
|
1010 |
|
| 695 |
rajveer |
1011 |
case SESSION_ID:
|
| 420 |
ashish |
1012 |
if (value == null) {
|
| 695 |
rajveer |
1013 |
unsetSessionId();
|
| 420 |
ashish |
1014 |
} else {
|
| 695 |
rajveer |
1015 |
setSessionId((String)value);
|
| 420 |
ashish |
1016 |
}
|
|
|
1017 |
break;
|
|
|
1018 |
|
| 695 |
rajveer |
1019 |
case GATEWAY_TXN_DATE:
|
| 420 |
ashish |
1020 |
if (value == null) {
|
| 695 |
rajveer |
1021 |
unsetGatewayTxnDate();
|
| 420 |
ashish |
1022 |
} else {
|
| 695 |
rajveer |
1023 |
setGatewayTxnDate((String)value);
|
| 420 |
ashish |
1024 |
}
|
|
|
1025 |
break;
|
|
|
1026 |
|
| 695 |
rajveer |
1027 |
case ATTRIBUTES:
|
| 420 |
ashish |
1028 |
if (value == null) {
|
| 695 |
rajveer |
1029 |
unsetAttributes();
|
| 420 |
ashish |
1030 |
} else {
|
| 695 |
rajveer |
1031 |
setAttributes((List<Attribute>)value);
|
| 420 |
ashish |
1032 |
}
|
|
|
1033 |
break;
|
|
|
1034 |
|
| 695 |
rajveer |
1035 |
case INIT_TIMESTAMP:
|
| 420 |
ashish |
1036 |
if (value == null) {
|
| 695 |
rajveer |
1037 |
unsetInitTimestamp();
|
| 420 |
ashish |
1038 |
} else {
|
| 695 |
rajveer |
1039 |
setInitTimestamp((Long)value);
|
| 420 |
ashish |
1040 |
}
|
|
|
1041 |
break;
|
|
|
1042 |
|
| 695 |
rajveer |
1043 |
case SUCCESS_TIMESTAMP:
|
| 420 |
ashish |
1044 |
if (value == null) {
|
| 695 |
rajveer |
1045 |
unsetSuccessTimestamp();
|
| 420 |
ashish |
1046 |
} else {
|
| 695 |
rajveer |
1047 |
setSuccessTimestamp((Long)value);
|
| 420 |
ashish |
1048 |
}
|
|
|
1049 |
break;
|
|
|
1050 |
|
| 695 |
rajveer |
1051 |
case ERROR_TIMESTAMP:
|
| 420 |
ashish |
1052 |
if (value == null) {
|
| 695 |
rajveer |
1053 |
unsetErrorTimestamp();
|
| 420 |
ashish |
1054 |
} else {
|
| 695 |
rajveer |
1055 |
setErrorTimestamp((Long)value);
|
| 420 |
ashish |
1056 |
}
|
|
|
1057 |
break;
|
|
|
1058 |
|
| 4421 |
mandeep.dh |
1059 |
case PROVISIONAL_CAPTURE_TIMESTAMP:
|
|
|
1060 |
if (value == null) {
|
|
|
1061 |
unsetProvisionalCaptureTimestamp();
|
|
|
1062 |
} else {
|
|
|
1063 |
setProvisionalCaptureTimestamp((Long)value);
|
|
|
1064 |
}
|
|
|
1065 |
break;
|
|
|
1066 |
|
| 6050 |
anupam.sin |
1067 |
case IS_DIGITAL:
|
|
|
1068 |
if (value == null) {
|
|
|
1069 |
unsetIsDigital();
|
|
|
1070 |
} else {
|
|
|
1071 |
setIsDigital((Boolean)value);
|
|
|
1072 |
}
|
|
|
1073 |
break;
|
|
|
1074 |
|
| 123 |
ashish |
1075 |
}
|
|
|
1076 |
}
|
|
|
1077 |
|
|
|
1078 |
public Object getFieldValue(_Fields field) {
|
|
|
1079 |
switch (field) {
|
| 695 |
rajveer |
1080 |
case PAYMENT_ID:
|
| 3430 |
rajveer |
1081 |
return Long.valueOf(getPaymentId());
|
| 123 |
ashish |
1082 |
|
| 695 |
rajveer |
1083 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
1084 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
1085 |
|
| 695 |
rajveer |
1086 |
case GATEWAY_PAYMENT_ID:
|
|
|
1087 |
return getGatewayPaymentId();
|
|
|
1088 |
|
|
|
1089 |
case MERCHANT_TXN_ID:
|
| 3430 |
rajveer |
1090 |
return Long.valueOf(getMerchantTxnId());
|
| 695 |
rajveer |
1091 |
|
|
|
1092 |
case GATEWAY_TXN_ID:
|
|
|
1093 |
return getGatewayTxnId();
|
|
|
1094 |
|
| 123 |
ashish |
1095 |
case AMOUNT:
|
| 3430 |
rajveer |
1096 |
return Double.valueOf(getAmount());
|
| 123 |
ashish |
1097 |
|
| 695 |
rajveer |
1098 |
case GATEWAY_TXN_STATUS:
|
|
|
1099 |
return getGatewayTxnStatus();
|
| 123 |
ashish |
1100 |
|
|
|
1101 |
case STATUS:
|
|
|
1102 |
return getStatus();
|
|
|
1103 |
|
|
|
1104 |
case USER_ID:
|
| 3430 |
rajveer |
1105 |
return Long.valueOf(getUserId());
|
| 123 |
ashish |
1106 |
|
| 695 |
rajveer |
1107 |
case ERROR_CODE:
|
|
|
1108 |
return getErrorCode();
|
| 123 |
ashish |
1109 |
|
| 695 |
rajveer |
1110 |
case DESCRIPTION:
|
|
|
1111 |
return getDescription();
|
| 123 |
ashish |
1112 |
|
| 695 |
rajveer |
1113 |
case AUTH_CODE:
|
|
|
1114 |
return getAuthCode();
|
| 123 |
ashish |
1115 |
|
| 695 |
rajveer |
1116 |
case REFERENCE_CODE:
|
|
|
1117 |
return getReferenceCode();
|
| 420 |
ashish |
1118 |
|
|
|
1119 |
case SESSION_ID:
|
| 695 |
rajveer |
1120 |
return getSessionId();
|
| 420 |
ashish |
1121 |
|
| 695 |
rajveer |
1122 |
case GATEWAY_TXN_DATE:
|
|
|
1123 |
return getGatewayTxnDate();
|
| 420 |
ashish |
1124 |
|
| 695 |
rajveer |
1125 |
case ATTRIBUTES:
|
|
|
1126 |
return getAttributes();
|
| 420 |
ashish |
1127 |
|
| 695 |
rajveer |
1128 |
case INIT_TIMESTAMP:
|
| 3430 |
rajveer |
1129 |
return Long.valueOf(getInitTimestamp());
|
| 420 |
ashish |
1130 |
|
| 695 |
rajveer |
1131 |
case SUCCESS_TIMESTAMP:
|
| 3430 |
rajveer |
1132 |
return Long.valueOf(getSuccessTimestamp());
|
| 695 |
rajveer |
1133 |
|
|
|
1134 |
case ERROR_TIMESTAMP:
|
| 3430 |
rajveer |
1135 |
return Long.valueOf(getErrorTimestamp());
|
| 695 |
rajveer |
1136 |
|
| 4421 |
mandeep.dh |
1137 |
case PROVISIONAL_CAPTURE_TIMESTAMP:
|
|
|
1138 |
return Long.valueOf(getProvisionalCaptureTimestamp());
|
|
|
1139 |
|
| 6050 |
anupam.sin |
1140 |
case IS_DIGITAL:
|
|
|
1141 |
return Boolean.valueOf(isIsDigital());
|
|
|
1142 |
|
| 123 |
ashish |
1143 |
}
|
|
|
1144 |
throw new IllegalStateException();
|
|
|
1145 |
}
|
|
|
1146 |
|
| 3430 |
rajveer |
1147 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1148 |
public boolean isSet(_Fields field) {
|
|
|
1149 |
if (field == null) {
|
|
|
1150 |
throw new IllegalArgumentException();
|
|
|
1151 |
}
|
| 123 |
ashish |
1152 |
|
|
|
1153 |
switch (field) {
|
| 695 |
rajveer |
1154 |
case PAYMENT_ID:
|
|
|
1155 |
return isSetPaymentId();
|
|
|
1156 |
case GATEWAY_ID:
|
|
|
1157 |
return isSetGatewayId();
|
|
|
1158 |
case GATEWAY_PAYMENT_ID:
|
|
|
1159 |
return isSetGatewayPaymentId();
|
|
|
1160 |
case MERCHANT_TXN_ID:
|
|
|
1161 |
return isSetMerchantTxnId();
|
|
|
1162 |
case GATEWAY_TXN_ID:
|
|
|
1163 |
return isSetGatewayTxnId();
|
| 123 |
ashish |
1164 |
case AMOUNT:
|
|
|
1165 |
return isSetAmount();
|
| 695 |
rajveer |
1166 |
case GATEWAY_TXN_STATUS:
|
|
|
1167 |
return isSetGatewayTxnStatus();
|
| 123 |
ashish |
1168 |
case STATUS:
|
|
|
1169 |
return isSetStatus();
|
|
|
1170 |
case USER_ID:
|
| 695 |
rajveer |
1171 |
return isSetUserId();
|
| 420 |
ashish |
1172 |
case ERROR_CODE:
|
| 695 |
rajveer |
1173 |
return isSetErrorCode();
|
|
|
1174 |
case DESCRIPTION:
|
|
|
1175 |
return isSetDescription();
|
|
|
1176 |
case AUTH_CODE:
|
|
|
1177 |
return isSetAuthCode();
|
|
|
1178 |
case REFERENCE_CODE:
|
|
|
1179 |
return isSetReferenceCode();
|
| 420 |
ashish |
1180 |
case SESSION_ID:
|
| 695 |
rajveer |
1181 |
return isSetSessionId();
|
|
|
1182 |
case GATEWAY_TXN_DATE:
|
|
|
1183 |
return isSetGatewayTxnDate();
|
|
|
1184 |
case ATTRIBUTES:
|
|
|
1185 |
return isSetAttributes();
|
|
|
1186 |
case INIT_TIMESTAMP:
|
|
|
1187 |
return isSetInitTimestamp();
|
|
|
1188 |
case SUCCESS_TIMESTAMP:
|
|
|
1189 |
return isSetSuccessTimestamp();
|
|
|
1190 |
case ERROR_TIMESTAMP:
|
|
|
1191 |
return isSetErrorTimestamp();
|
| 4421 |
mandeep.dh |
1192 |
case PROVISIONAL_CAPTURE_TIMESTAMP:
|
|
|
1193 |
return isSetProvisionalCaptureTimestamp();
|
| 6050 |
anupam.sin |
1194 |
case IS_DIGITAL:
|
|
|
1195 |
return isSetIsDigital();
|
| 123 |
ashish |
1196 |
}
|
|
|
1197 |
throw new IllegalStateException();
|
|
|
1198 |
}
|
|
|
1199 |
|
|
|
1200 |
@Override
|
|
|
1201 |
public boolean equals(Object that) {
|
|
|
1202 |
if (that == null)
|
|
|
1203 |
return false;
|
|
|
1204 |
if (that instanceof Payment)
|
|
|
1205 |
return this.equals((Payment)that);
|
|
|
1206 |
return false;
|
|
|
1207 |
}
|
|
|
1208 |
|
|
|
1209 |
public boolean equals(Payment that) {
|
|
|
1210 |
if (that == null)
|
|
|
1211 |
return false;
|
|
|
1212 |
|
| 695 |
rajveer |
1213 |
boolean this_present_paymentId = true;
|
|
|
1214 |
boolean that_present_paymentId = true;
|
|
|
1215 |
if (this_present_paymentId || that_present_paymentId) {
|
|
|
1216 |
if (!(this_present_paymentId && that_present_paymentId))
|
| 123 |
ashish |
1217 |
return false;
|
| 695 |
rajveer |
1218 |
if (this.paymentId != that.paymentId)
|
| 123 |
ashish |
1219 |
return false;
|
|
|
1220 |
}
|
|
|
1221 |
|
| 695 |
rajveer |
1222 |
boolean this_present_gatewayId = true;
|
|
|
1223 |
boolean that_present_gatewayId = true;
|
|
|
1224 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
1225 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
1226 |
return false;
|
| 695 |
rajveer |
1227 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
1228 |
return false;
|
|
|
1229 |
}
|
|
|
1230 |
|
| 695 |
rajveer |
1231 |
boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
|
|
|
1232 |
boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
|
|
|
1233 |
if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
|
|
|
1234 |
if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
|
| 123 |
ashish |
1235 |
return false;
|
| 695 |
rajveer |
1236 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
| 123 |
ashish |
1237 |
return false;
|
|
|
1238 |
}
|
|
|
1239 |
|
| 705 |
chandransh |
1240 |
boolean this_present_merchantTxnId = true;
|
|
|
1241 |
boolean that_present_merchantTxnId = true;
|
| 695 |
rajveer |
1242 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
1243 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
| 123 |
ashish |
1244 |
return false;
|
| 705 |
chandransh |
1245 |
if (this.merchantTxnId != that.merchantTxnId)
|
| 123 |
ashish |
1246 |
return false;
|
|
|
1247 |
}
|
|
|
1248 |
|
| 695 |
rajveer |
1249 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
|
|
1250 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
|
|
1251 |
if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
|
|
|
1252 |
if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
|
| 123 |
ashish |
1253 |
return false;
|
| 695 |
rajveer |
1254 |
if (!this.gatewayTxnId.equals(that.gatewayTxnId))
|
| 123 |
ashish |
1255 |
return false;
|
|
|
1256 |
}
|
|
|
1257 |
|
| 695 |
rajveer |
1258 |
boolean this_present_amount = true;
|
|
|
1259 |
boolean that_present_amount = true;
|
|
|
1260 |
if (this_present_amount || that_present_amount) {
|
|
|
1261 |
if (!(this_present_amount && that_present_amount))
|
| 123 |
ashish |
1262 |
return false;
|
| 695 |
rajveer |
1263 |
if (this.amount != that.amount)
|
| 123 |
ashish |
1264 |
return false;
|
|
|
1265 |
}
|
|
|
1266 |
|
| 695 |
rajveer |
1267 |
boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
|
|
|
1268 |
boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
|
|
|
1269 |
if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
|
|
|
1270 |
if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
|
|
|
1271 |
return false;
|
|
|
1272 |
if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
|
|
|
1273 |
return false;
|
|
|
1274 |
}
|
|
|
1275 |
|
| 123 |
ashish |
1276 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
1277 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
1278 |
if (this_present_status || that_present_status) {
|
|
|
1279 |
if (!(this_present_status && that_present_status))
|
|
|
1280 |
return false;
|
|
|
1281 |
if (!this.status.equals(that.status))
|
|
|
1282 |
return false;
|
|
|
1283 |
}
|
|
|
1284 |
|
| 695 |
rajveer |
1285 |
boolean this_present_userId = true;
|
|
|
1286 |
boolean that_present_userId = true;
|
|
|
1287 |
if (this_present_userId || that_present_userId) {
|
|
|
1288 |
if (!(this_present_userId && that_present_userId))
|
| 123 |
ashish |
1289 |
return false;
|
| 695 |
rajveer |
1290 |
if (this.userId != that.userId)
|
| 123 |
ashish |
1291 |
return false;
|
|
|
1292 |
}
|
|
|
1293 |
|
| 695 |
rajveer |
1294 |
boolean this_present_errorCode = true && this.isSetErrorCode();
|
|
|
1295 |
boolean that_present_errorCode = true && that.isSetErrorCode();
|
|
|
1296 |
if (this_present_errorCode || that_present_errorCode) {
|
|
|
1297 |
if (!(this_present_errorCode && that_present_errorCode))
|
| 123 |
ashish |
1298 |
return false;
|
| 695 |
rajveer |
1299 |
if (!this.errorCode.equals(that.errorCode))
|
| 123 |
ashish |
1300 |
return false;
|
|
|
1301 |
}
|
|
|
1302 |
|
| 695 |
rajveer |
1303 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
1304 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
1305 |
if (this_present_description || that_present_description) {
|
|
|
1306 |
if (!(this_present_description && that_present_description))
|
| 123 |
ashish |
1307 |
return false;
|
| 695 |
rajveer |
1308 |
if (!this.description.equals(that.description))
|
| 123 |
ashish |
1309 |
return false;
|
|
|
1310 |
}
|
|
|
1311 |
|
| 695 |
rajveer |
1312 |
boolean this_present_authCode = true && this.isSetAuthCode();
|
|
|
1313 |
boolean that_present_authCode = true && that.isSetAuthCode();
|
|
|
1314 |
if (this_present_authCode || that_present_authCode) {
|
|
|
1315 |
if (!(this_present_authCode && that_present_authCode))
|
| 123 |
ashish |
1316 |
return false;
|
| 695 |
rajveer |
1317 |
if (!this.authCode.equals(that.authCode))
|
| 123 |
ashish |
1318 |
return false;
|
|
|
1319 |
}
|
|
|
1320 |
|
| 695 |
rajveer |
1321 |
boolean this_present_referenceCode = true && this.isSetReferenceCode();
|
|
|
1322 |
boolean that_present_referenceCode = true && that.isSetReferenceCode();
|
|
|
1323 |
if (this_present_referenceCode || that_present_referenceCode) {
|
|
|
1324 |
if (!(this_present_referenceCode && that_present_referenceCode))
|
| 123 |
ashish |
1325 |
return false;
|
| 695 |
rajveer |
1326 |
if (!this.referenceCode.equals(that.referenceCode))
|
| 123 |
ashish |
1327 |
return false;
|
|
|
1328 |
}
|
|
|
1329 |
|
| 695 |
rajveer |
1330 |
boolean this_present_sessionId = true && this.isSetSessionId();
|
|
|
1331 |
boolean that_present_sessionId = true && that.isSetSessionId();
|
|
|
1332 |
if (this_present_sessionId || that_present_sessionId) {
|
|
|
1333 |
if (!(this_present_sessionId && that_present_sessionId))
|
| 420 |
ashish |
1334 |
return false;
|
| 695 |
rajveer |
1335 |
if (!this.sessionId.equals(that.sessionId))
|
| 420 |
ashish |
1336 |
return false;
|
|
|
1337 |
}
|
|
|
1338 |
|
| 695 |
rajveer |
1339 |
boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
|
|
|
1340 |
boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
|
|
|
1341 |
if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
|
|
|
1342 |
if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
|
| 420 |
ashish |
1343 |
return false;
|
| 695 |
rajveer |
1344 |
if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
|
| 420 |
ashish |
1345 |
return false;
|
|
|
1346 |
}
|
|
|
1347 |
|
| 695 |
rajveer |
1348 |
boolean this_present_attributes = true && this.isSetAttributes();
|
|
|
1349 |
boolean that_present_attributes = true && that.isSetAttributes();
|
|
|
1350 |
if (this_present_attributes || that_present_attributes) {
|
|
|
1351 |
if (!(this_present_attributes && that_present_attributes))
|
| 420 |
ashish |
1352 |
return false;
|
| 695 |
rajveer |
1353 |
if (!this.attributes.equals(that.attributes))
|
| 420 |
ashish |
1354 |
return false;
|
|
|
1355 |
}
|
|
|
1356 |
|
| 695 |
rajveer |
1357 |
boolean this_present_initTimestamp = true;
|
|
|
1358 |
boolean that_present_initTimestamp = true;
|
|
|
1359 |
if (this_present_initTimestamp || that_present_initTimestamp) {
|
|
|
1360 |
if (!(this_present_initTimestamp && that_present_initTimestamp))
|
| 420 |
ashish |
1361 |
return false;
|
| 695 |
rajveer |
1362 |
if (this.initTimestamp != that.initTimestamp)
|
| 420 |
ashish |
1363 |
return false;
|
|
|
1364 |
}
|
|
|
1365 |
|
| 695 |
rajveer |
1366 |
boolean this_present_successTimestamp = true;
|
|
|
1367 |
boolean that_present_successTimestamp = true;
|
|
|
1368 |
if (this_present_successTimestamp || that_present_successTimestamp) {
|
|
|
1369 |
if (!(this_present_successTimestamp && that_present_successTimestamp))
|
| 420 |
ashish |
1370 |
return false;
|
| 695 |
rajveer |
1371 |
if (this.successTimestamp != that.successTimestamp)
|
| 420 |
ashish |
1372 |
return false;
|
|
|
1373 |
}
|
|
|
1374 |
|
| 695 |
rajveer |
1375 |
boolean this_present_errorTimestamp = true;
|
|
|
1376 |
boolean that_present_errorTimestamp = true;
|
|
|
1377 |
if (this_present_errorTimestamp || that_present_errorTimestamp) {
|
|
|
1378 |
if (!(this_present_errorTimestamp && that_present_errorTimestamp))
|
| 420 |
ashish |
1379 |
return false;
|
| 695 |
rajveer |
1380 |
if (this.errorTimestamp != that.errorTimestamp)
|
| 420 |
ashish |
1381 |
return false;
|
|
|
1382 |
}
|
|
|
1383 |
|
| 4421 |
mandeep.dh |
1384 |
boolean this_present_provisionalCaptureTimestamp = true;
|
|
|
1385 |
boolean that_present_provisionalCaptureTimestamp = true;
|
|
|
1386 |
if (this_present_provisionalCaptureTimestamp || that_present_provisionalCaptureTimestamp) {
|
|
|
1387 |
if (!(this_present_provisionalCaptureTimestamp && that_present_provisionalCaptureTimestamp))
|
|
|
1388 |
return false;
|
|
|
1389 |
if (this.provisionalCaptureTimestamp != that.provisionalCaptureTimestamp)
|
|
|
1390 |
return false;
|
|
|
1391 |
}
|
|
|
1392 |
|
| 6050 |
anupam.sin |
1393 |
boolean this_present_isDigital = true;
|
|
|
1394 |
boolean that_present_isDigital = true;
|
|
|
1395 |
if (this_present_isDigital || that_present_isDigital) {
|
|
|
1396 |
if (!(this_present_isDigital && that_present_isDigital))
|
|
|
1397 |
return false;
|
|
|
1398 |
if (this.isDigital != that.isDigital)
|
|
|
1399 |
return false;
|
|
|
1400 |
}
|
|
|
1401 |
|
| 123 |
ashish |
1402 |
return true;
|
|
|
1403 |
}
|
|
|
1404 |
|
|
|
1405 |
@Override
|
|
|
1406 |
public int hashCode() {
|
|
|
1407 |
return 0;
|
|
|
1408 |
}
|
|
|
1409 |
|
| 695 |
rajveer |
1410 |
public int compareTo(Payment other) {
|
|
|
1411 |
if (!getClass().equals(other.getClass())) {
|
|
|
1412 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1413 |
}
|
|
|
1414 |
|
|
|
1415 |
int lastComparison = 0;
|
|
|
1416 |
Payment typedOther = (Payment)other;
|
|
|
1417 |
|
| 3430 |
rajveer |
1418 |
lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
|
| 695 |
rajveer |
1419 |
if (lastComparison != 0) {
|
|
|
1420 |
return lastComparison;
|
|
|
1421 |
}
|
| 3430 |
rajveer |
1422 |
if (isSetPaymentId()) {
|
|
|
1423 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
|
|
|
1424 |
if (lastComparison != 0) {
|
|
|
1425 |
return lastComparison;
|
|
|
1426 |
}
|
| 695 |
rajveer |
1427 |
}
|
| 3430 |
rajveer |
1428 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 695 |
rajveer |
1429 |
if (lastComparison != 0) {
|
|
|
1430 |
return lastComparison;
|
|
|
1431 |
}
|
| 3430 |
rajveer |
1432 |
if (isSetGatewayId()) {
|
|
|
1433 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
1434 |
if (lastComparison != 0) {
|
|
|
1435 |
return lastComparison;
|
|
|
1436 |
}
|
| 695 |
rajveer |
1437 |
}
|
| 3430 |
rajveer |
1438 |
lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
|
| 695 |
rajveer |
1439 |
if (lastComparison != 0) {
|
|
|
1440 |
return lastComparison;
|
|
|
1441 |
}
|
| 3430 |
rajveer |
1442 |
if (isSetGatewayPaymentId()) {
|
|
|
1443 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
|
|
|
1444 |
if (lastComparison != 0) {
|
|
|
1445 |
return lastComparison;
|
|
|
1446 |
}
|
| 695 |
rajveer |
1447 |
}
|
| 3430 |
rajveer |
1448 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
| 695 |
rajveer |
1449 |
if (lastComparison != 0) {
|
|
|
1450 |
return lastComparison;
|
|
|
1451 |
}
|
| 3430 |
rajveer |
1452 |
if (isSetMerchantTxnId()) {
|
|
|
1453 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
1454 |
if (lastComparison != 0) {
|
|
|
1455 |
return lastComparison;
|
|
|
1456 |
}
|
| 695 |
rajveer |
1457 |
}
|
| 3430 |
rajveer |
1458 |
lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
|
| 695 |
rajveer |
1459 |
if (lastComparison != 0) {
|
|
|
1460 |
return lastComparison;
|
|
|
1461 |
}
|
| 3430 |
rajveer |
1462 |
if (isSetGatewayTxnId()) {
|
|
|
1463 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
|
|
|
1464 |
if (lastComparison != 0) {
|
|
|
1465 |
return lastComparison;
|
|
|
1466 |
}
|
| 695 |
rajveer |
1467 |
}
|
| 3430 |
rajveer |
1468 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
| 695 |
rajveer |
1469 |
if (lastComparison != 0) {
|
|
|
1470 |
return lastComparison;
|
|
|
1471 |
}
|
| 3430 |
rajveer |
1472 |
if (isSetAmount()) {
|
|
|
1473 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
1474 |
if (lastComparison != 0) {
|
|
|
1475 |
return lastComparison;
|
|
|
1476 |
}
|
| 695 |
rajveer |
1477 |
}
|
| 3430 |
rajveer |
1478 |
lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
|
| 695 |
rajveer |
1479 |
if (lastComparison != 0) {
|
|
|
1480 |
return lastComparison;
|
|
|
1481 |
}
|
| 3430 |
rajveer |
1482 |
if (isSetGatewayTxnStatus()) {
|
|
|
1483 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
|
|
|
1484 |
if (lastComparison != 0) {
|
|
|
1485 |
return lastComparison;
|
|
|
1486 |
}
|
| 695 |
rajveer |
1487 |
}
|
| 3430 |
rajveer |
1488 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 695 |
rajveer |
1489 |
if (lastComparison != 0) {
|
|
|
1490 |
return lastComparison;
|
|
|
1491 |
}
|
| 3430 |
rajveer |
1492 |
if (isSetStatus()) {
|
|
|
1493 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
1494 |
if (lastComparison != 0) {
|
|
|
1495 |
return lastComparison;
|
|
|
1496 |
}
|
| 695 |
rajveer |
1497 |
}
|
| 3430 |
rajveer |
1498 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 695 |
rajveer |
1499 |
if (lastComparison != 0) {
|
|
|
1500 |
return lastComparison;
|
|
|
1501 |
}
|
| 3430 |
rajveer |
1502 |
if (isSetUserId()) {
|
|
|
1503 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
1504 |
if (lastComparison != 0) {
|
|
|
1505 |
return lastComparison;
|
|
|
1506 |
}
|
| 695 |
rajveer |
1507 |
}
|
| 3430 |
rajveer |
1508 |
lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
|
| 695 |
rajveer |
1509 |
if (lastComparison != 0) {
|
|
|
1510 |
return lastComparison;
|
|
|
1511 |
}
|
| 3430 |
rajveer |
1512 |
if (isSetErrorCode()) {
|
|
|
1513 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
|
|
|
1514 |
if (lastComparison != 0) {
|
|
|
1515 |
return lastComparison;
|
|
|
1516 |
}
|
| 695 |
rajveer |
1517 |
}
|
| 3430 |
rajveer |
1518 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
|
| 695 |
rajveer |
1519 |
if (lastComparison != 0) {
|
|
|
1520 |
return lastComparison;
|
|
|
1521 |
}
|
| 3430 |
rajveer |
1522 |
if (isSetDescription()) {
|
|
|
1523 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
|
|
|
1524 |
if (lastComparison != 0) {
|
|
|
1525 |
return lastComparison;
|
|
|
1526 |
}
|
| 695 |
rajveer |
1527 |
}
|
| 3430 |
rajveer |
1528 |
lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
|
| 695 |
rajveer |
1529 |
if (lastComparison != 0) {
|
|
|
1530 |
return lastComparison;
|
|
|
1531 |
}
|
| 3430 |
rajveer |
1532 |
if (isSetAuthCode()) {
|
|
|
1533 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
|
|
|
1534 |
if (lastComparison != 0) {
|
|
|
1535 |
return lastComparison;
|
|
|
1536 |
}
|
| 695 |
rajveer |
1537 |
}
|
| 3430 |
rajveer |
1538 |
lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
|
| 695 |
rajveer |
1539 |
if (lastComparison != 0) {
|
|
|
1540 |
return lastComparison;
|
|
|
1541 |
}
|
| 3430 |
rajveer |
1542 |
if (isSetReferenceCode()) {
|
|
|
1543 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
|
|
|
1544 |
if (lastComparison != 0) {
|
|
|
1545 |
return lastComparison;
|
|
|
1546 |
}
|
| 695 |
rajveer |
1547 |
}
|
| 3430 |
rajveer |
1548 |
lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
|
| 695 |
rajveer |
1549 |
if (lastComparison != 0) {
|
|
|
1550 |
return lastComparison;
|
|
|
1551 |
}
|
| 3430 |
rajveer |
1552 |
if (isSetSessionId()) {
|
|
|
1553 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
|
|
|
1554 |
if (lastComparison != 0) {
|
|
|
1555 |
return lastComparison;
|
|
|
1556 |
}
|
| 695 |
rajveer |
1557 |
}
|
| 3430 |
rajveer |
1558 |
lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
|
| 695 |
rajveer |
1559 |
if (lastComparison != 0) {
|
|
|
1560 |
return lastComparison;
|
|
|
1561 |
}
|
| 3430 |
rajveer |
1562 |
if (isSetGatewayTxnDate()) {
|
|
|
1563 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
|
|
|
1564 |
if (lastComparison != 0) {
|
|
|
1565 |
return lastComparison;
|
|
|
1566 |
}
|
| 695 |
rajveer |
1567 |
}
|
| 3430 |
rajveer |
1568 |
lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
|
| 695 |
rajveer |
1569 |
if (lastComparison != 0) {
|
|
|
1570 |
return lastComparison;
|
|
|
1571 |
}
|
| 3430 |
rajveer |
1572 |
if (isSetAttributes()) {
|
|
|
1573 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
|
|
|
1574 |
if (lastComparison != 0) {
|
|
|
1575 |
return lastComparison;
|
|
|
1576 |
}
|
| 695 |
rajveer |
1577 |
}
|
| 3430 |
rajveer |
1578 |
lastComparison = Boolean.valueOf(isSetInitTimestamp()).compareTo(typedOther.isSetInitTimestamp());
|
| 695 |
rajveer |
1579 |
if (lastComparison != 0) {
|
|
|
1580 |
return lastComparison;
|
|
|
1581 |
}
|
| 3430 |
rajveer |
1582 |
if (isSetInitTimestamp()) {
|
|
|
1583 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initTimestamp, typedOther.initTimestamp);
|
|
|
1584 |
if (lastComparison != 0) {
|
|
|
1585 |
return lastComparison;
|
|
|
1586 |
}
|
| 695 |
rajveer |
1587 |
}
|
| 3430 |
rajveer |
1588 |
lastComparison = Boolean.valueOf(isSetSuccessTimestamp()).compareTo(typedOther.isSetSuccessTimestamp());
|
| 695 |
rajveer |
1589 |
if (lastComparison != 0) {
|
|
|
1590 |
return lastComparison;
|
|
|
1591 |
}
|
| 3430 |
rajveer |
1592 |
if (isSetSuccessTimestamp()) {
|
|
|
1593 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successTimestamp, typedOther.successTimestamp);
|
|
|
1594 |
if (lastComparison != 0) {
|
|
|
1595 |
return lastComparison;
|
|
|
1596 |
}
|
| 695 |
rajveer |
1597 |
}
|
| 3430 |
rajveer |
1598 |
lastComparison = Boolean.valueOf(isSetErrorTimestamp()).compareTo(typedOther.isSetErrorTimestamp());
|
| 695 |
rajveer |
1599 |
if (lastComparison != 0) {
|
|
|
1600 |
return lastComparison;
|
|
|
1601 |
}
|
| 3430 |
rajveer |
1602 |
if (isSetErrorTimestamp()) {
|
|
|
1603 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorTimestamp, typedOther.errorTimestamp);
|
|
|
1604 |
if (lastComparison != 0) {
|
|
|
1605 |
return lastComparison;
|
|
|
1606 |
}
|
| 695 |
rajveer |
1607 |
}
|
| 4421 |
mandeep.dh |
1608 |
lastComparison = Boolean.valueOf(isSetProvisionalCaptureTimestamp()).compareTo(typedOther.isSetProvisionalCaptureTimestamp());
|
|
|
1609 |
if (lastComparison != 0) {
|
|
|
1610 |
return lastComparison;
|
|
|
1611 |
}
|
|
|
1612 |
if (isSetProvisionalCaptureTimestamp()) {
|
|
|
1613 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.provisionalCaptureTimestamp, typedOther.provisionalCaptureTimestamp);
|
|
|
1614 |
if (lastComparison != 0) {
|
|
|
1615 |
return lastComparison;
|
|
|
1616 |
}
|
|
|
1617 |
}
|
| 6050 |
anupam.sin |
1618 |
lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
|
|
|
1619 |
if (lastComparison != 0) {
|
|
|
1620 |
return lastComparison;
|
|
|
1621 |
}
|
|
|
1622 |
if (isSetIsDigital()) {
|
|
|
1623 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
|
|
|
1624 |
if (lastComparison != 0) {
|
|
|
1625 |
return lastComparison;
|
|
|
1626 |
}
|
|
|
1627 |
}
|
| 695 |
rajveer |
1628 |
return 0;
|
|
|
1629 |
}
|
|
|
1630 |
|
| 3430 |
rajveer |
1631 |
public _Fields fieldForId(int fieldId) {
|
|
|
1632 |
return _Fields.findByThriftId(fieldId);
|
|
|
1633 |
}
|
|
|
1634 |
|
|
|
1635 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1636 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
1637 |
iprot.readStructBegin();
|
|
|
1638 |
while (true)
|
|
|
1639 |
{
|
|
|
1640 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1641 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
1642 |
break;
|
|
|
1643 |
}
|
| 3430 |
rajveer |
1644 |
switch (field.id) {
|
|
|
1645 |
case 1: // PAYMENT_ID
|
|
|
1646 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1647 |
this.paymentId = iprot.readI64();
|
|
|
1648 |
setPaymentIdIsSet(true);
|
|
|
1649 |
} else {
|
|
|
1650 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1651 |
}
|
|
|
1652 |
break;
|
|
|
1653 |
case 2: // GATEWAY_ID
|
|
|
1654 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1655 |
this.gatewayId = iprot.readI64();
|
|
|
1656 |
setGatewayIdIsSet(true);
|
|
|
1657 |
} else {
|
|
|
1658 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1659 |
}
|
|
|
1660 |
break;
|
|
|
1661 |
case 3: // GATEWAY_PAYMENT_ID
|
|
|
1662 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1663 |
this.gatewayPaymentId = iprot.readString();
|
|
|
1664 |
} else {
|
|
|
1665 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1666 |
}
|
|
|
1667 |
break;
|
|
|
1668 |
case 4: // MERCHANT_TXN_ID
|
|
|
1669 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1670 |
this.merchantTxnId = iprot.readI64();
|
|
|
1671 |
setMerchantTxnIdIsSet(true);
|
|
|
1672 |
} else {
|
|
|
1673 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1674 |
}
|
|
|
1675 |
break;
|
|
|
1676 |
case 5: // GATEWAY_TXN_ID
|
|
|
1677 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1678 |
this.gatewayTxnId = iprot.readString();
|
|
|
1679 |
} else {
|
|
|
1680 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1681 |
}
|
|
|
1682 |
break;
|
|
|
1683 |
case 6: // AMOUNT
|
|
|
1684 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1685 |
this.amount = iprot.readDouble();
|
|
|
1686 |
setAmountIsSet(true);
|
|
|
1687 |
} else {
|
|
|
1688 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1689 |
}
|
|
|
1690 |
break;
|
|
|
1691 |
case 7: // GATEWAY_TXN_STATUS
|
|
|
1692 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1693 |
this.gatewayTxnStatus = iprot.readString();
|
|
|
1694 |
} else {
|
|
|
1695 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1696 |
}
|
|
|
1697 |
break;
|
|
|
1698 |
case 8: // STATUS
|
|
|
1699 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1700 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
1701 |
} else {
|
|
|
1702 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1703 |
}
|
|
|
1704 |
break;
|
|
|
1705 |
case 9: // USER_ID
|
|
|
1706 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1707 |
this.userId = iprot.readI64();
|
|
|
1708 |
setUserIdIsSet(true);
|
|
|
1709 |
} else {
|
|
|
1710 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1711 |
}
|
|
|
1712 |
break;
|
|
|
1713 |
case 10: // ERROR_CODE
|
|
|
1714 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1715 |
this.errorCode = iprot.readString();
|
|
|
1716 |
} else {
|
|
|
1717 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1718 |
}
|
|
|
1719 |
break;
|
|
|
1720 |
case 11: // DESCRIPTION
|
|
|
1721 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1722 |
this.description = iprot.readString();
|
|
|
1723 |
} else {
|
|
|
1724 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1725 |
}
|
|
|
1726 |
break;
|
|
|
1727 |
case 12: // AUTH_CODE
|
|
|
1728 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1729 |
this.authCode = iprot.readString();
|
|
|
1730 |
} else {
|
|
|
1731 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1732 |
}
|
|
|
1733 |
break;
|
|
|
1734 |
case 13: // REFERENCE_CODE
|
|
|
1735 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1736 |
this.referenceCode = iprot.readString();
|
|
|
1737 |
} else {
|
|
|
1738 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1739 |
}
|
|
|
1740 |
break;
|
|
|
1741 |
case 14: // SESSION_ID
|
|
|
1742 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1743 |
this.sessionId = iprot.readString();
|
|
|
1744 |
} else {
|
|
|
1745 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1746 |
}
|
|
|
1747 |
break;
|
|
|
1748 |
case 15: // GATEWAY_TXN_DATE
|
|
|
1749 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1750 |
this.gatewayTxnDate = iprot.readString();
|
|
|
1751 |
} else {
|
|
|
1752 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1753 |
}
|
|
|
1754 |
break;
|
|
|
1755 |
case 16: // ATTRIBUTES
|
|
|
1756 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1757 |
{
|
|
|
1758 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
1759 |
this.attributes = new ArrayList<Attribute>(_list4.size);
|
|
|
1760 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 695 |
rajveer |
1761 |
{
|
| 3430 |
rajveer |
1762 |
Attribute _elem6; // required
|
|
|
1763 |
_elem6 = new Attribute();
|
|
|
1764 |
_elem6.read(iprot);
|
|
|
1765 |
this.attributes.add(_elem6);
|
| 695 |
rajveer |
1766 |
}
|
| 3430 |
rajveer |
1767 |
iprot.readListEnd();
|
| 420 |
ashish |
1768 |
}
|
| 3430 |
rajveer |
1769 |
} else {
|
|
|
1770 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1771 |
}
|
|
|
1772 |
break;
|
|
|
1773 |
case 17: // INIT_TIMESTAMP
|
|
|
1774 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1775 |
this.initTimestamp = iprot.readI64();
|
|
|
1776 |
setInitTimestampIsSet(true);
|
|
|
1777 |
} else {
|
|
|
1778 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1779 |
}
|
|
|
1780 |
break;
|
|
|
1781 |
case 18: // SUCCESS_TIMESTAMP
|
|
|
1782 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1783 |
this.successTimestamp = iprot.readI64();
|
|
|
1784 |
setSuccessTimestampIsSet(true);
|
|
|
1785 |
} else {
|
|
|
1786 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1787 |
}
|
|
|
1788 |
break;
|
|
|
1789 |
case 19: // ERROR_TIMESTAMP
|
|
|
1790 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1791 |
this.errorTimestamp = iprot.readI64();
|
|
|
1792 |
setErrorTimestampIsSet(true);
|
|
|
1793 |
} else {
|
|
|
1794 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1795 |
}
|
|
|
1796 |
break;
|
| 4421 |
mandeep.dh |
1797 |
case 20: // PROVISIONAL_CAPTURE_TIMESTAMP
|
|
|
1798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1799 |
this.provisionalCaptureTimestamp = iprot.readI64();
|
|
|
1800 |
setProvisionalCaptureTimestampIsSet(true);
|
|
|
1801 |
} else {
|
|
|
1802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1803 |
}
|
|
|
1804 |
break;
|
| 6050 |
anupam.sin |
1805 |
case 21: // IS_DIGITAL
|
|
|
1806 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1807 |
this.isDigital = iprot.readBool();
|
|
|
1808 |
setIsDigitalIsSet(true);
|
|
|
1809 |
} else {
|
|
|
1810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1811 |
}
|
|
|
1812 |
break;
|
| 3430 |
rajveer |
1813 |
default:
|
|
|
1814 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
1815 |
}
|
| 3430 |
rajveer |
1816 |
iprot.readFieldEnd();
|
| 123 |
ashish |
1817 |
}
|
|
|
1818 |
iprot.readStructEnd();
|
|
|
1819 |
validate();
|
|
|
1820 |
}
|
|
|
1821 |
|
| 3430 |
rajveer |
1822 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1823 |
validate();
|
|
|
1824 |
|
|
|
1825 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 695 |
rajveer |
1826 |
oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
|
|
|
1827 |
oprot.writeI64(this.paymentId);
|
|
|
1828 |
oprot.writeFieldEnd();
|
|
|
1829 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
|
|
1830 |
oprot.writeI64(this.gatewayId);
|
|
|
1831 |
oprot.writeFieldEnd();
|
|
|
1832 |
if (this.gatewayPaymentId != null) {
|
|
|
1833 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
|
|
1834 |
oprot.writeString(this.gatewayPaymentId);
|
| 420 |
ashish |
1835 |
oprot.writeFieldEnd();
|
|
|
1836 |
}
|
| 705 |
chandransh |
1837 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
1838 |
oprot.writeI64(this.merchantTxnId);
|
|
|
1839 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
1840 |
if (this.gatewayTxnId != null) {
|
|
|
1841 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
|
|
1842 |
oprot.writeString(this.gatewayTxnId);
|
|
|
1843 |
oprot.writeFieldEnd();
|
|
|
1844 |
}
|
| 123 |
ashish |
1845 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1846 |
oprot.writeDouble(this.amount);
|
|
|
1847 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
1848 |
if (this.gatewayTxnStatus != null) {
|
|
|
1849 |
oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
|
|
|
1850 |
oprot.writeString(this.gatewayTxnStatus);
|
| 123 |
ashish |
1851 |
oprot.writeFieldEnd();
|
|
|
1852 |
}
|
|
|
1853 |
if (this.status != null) {
|
|
|
1854 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
1855 |
oprot.writeI32(this.status.getValue());
|
|
|
1856 |
oprot.writeFieldEnd();
|
|
|
1857 |
}
|
|
|
1858 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
| 695 |
rajveer |
1859 |
oprot.writeI64(this.userId);
|
| 123 |
ashish |
1860 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
1861 |
if (this.errorCode != null) {
|
|
|
1862 |
oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
|
|
|
1863 |
oprot.writeString(this.errorCode);
|
| 123 |
ashish |
1864 |
oprot.writeFieldEnd();
|
|
|
1865 |
}
|
| 695 |
rajveer |
1866 |
if (this.description != null) {
|
|
|
1867 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
1868 |
oprot.writeString(this.description);
|
| 123 |
ashish |
1869 |
oprot.writeFieldEnd();
|
|
|
1870 |
}
|
| 695 |
rajveer |
1871 |
if (this.authCode != null) {
|
|
|
1872 |
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
|
|
|
1873 |
oprot.writeString(this.authCode);
|
| 420 |
ashish |
1874 |
oprot.writeFieldEnd();
|
|
|
1875 |
}
|
| 695 |
rajveer |
1876 |
if (this.referenceCode != null) {
|
|
|
1877 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
|
|
1878 |
oprot.writeString(this.referenceCode);
|
| 420 |
ashish |
1879 |
oprot.writeFieldEnd();
|
|
|
1880 |
}
|
| 695 |
rajveer |
1881 |
if (this.sessionId != null) {
|
|
|
1882 |
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
|
|
|
1883 |
oprot.writeString(this.sessionId);
|
| 420 |
ashish |
1884 |
oprot.writeFieldEnd();
|
|
|
1885 |
}
|
| 695 |
rajveer |
1886 |
if (this.gatewayTxnDate != null) {
|
|
|
1887 |
oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
|
|
|
1888 |
oprot.writeString(this.gatewayTxnDate);
|
| 420 |
ashish |
1889 |
oprot.writeFieldEnd();
|
|
|
1890 |
}
|
| 695 |
rajveer |
1891 |
if (this.attributes != null) {
|
|
|
1892 |
oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
|
|
|
1893 |
{
|
| 3430 |
rajveer |
1894 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
|
| 695 |
rajveer |
1895 |
for (Attribute _iter7 : this.attributes)
|
|
|
1896 |
{
|
|
|
1897 |
_iter7.write(oprot);
|
|
|
1898 |
}
|
|
|
1899 |
oprot.writeListEnd();
|
|
|
1900 |
}
|
| 420 |
ashish |
1901 |
oprot.writeFieldEnd();
|
|
|
1902 |
}
|
| 695 |
rajveer |
1903 |
oprot.writeFieldBegin(INIT_TIMESTAMP_FIELD_DESC);
|
|
|
1904 |
oprot.writeI64(this.initTimestamp);
|
|
|
1905 |
oprot.writeFieldEnd();
|
|
|
1906 |
oprot.writeFieldBegin(SUCCESS_TIMESTAMP_FIELD_DESC);
|
|
|
1907 |
oprot.writeI64(this.successTimestamp);
|
|
|
1908 |
oprot.writeFieldEnd();
|
|
|
1909 |
oprot.writeFieldBegin(ERROR_TIMESTAMP_FIELD_DESC);
|
|
|
1910 |
oprot.writeI64(this.errorTimestamp);
|
|
|
1911 |
oprot.writeFieldEnd();
|
| 4421 |
mandeep.dh |
1912 |
oprot.writeFieldBegin(PROVISIONAL_CAPTURE_TIMESTAMP_FIELD_DESC);
|
|
|
1913 |
oprot.writeI64(this.provisionalCaptureTimestamp);
|
|
|
1914 |
oprot.writeFieldEnd();
|
| 6050 |
anupam.sin |
1915 |
oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
|
|
|
1916 |
oprot.writeBool(this.isDigital);
|
|
|
1917 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
1918 |
oprot.writeFieldStop();
|
|
|
1919 |
oprot.writeStructEnd();
|
|
|
1920 |
}
|
|
|
1921 |
|
|
|
1922 |
@Override
|
|
|
1923 |
public String toString() {
|
|
|
1924 |
StringBuilder sb = new StringBuilder("Payment(");
|
|
|
1925 |
boolean first = true;
|
|
|
1926 |
|
| 695 |
rajveer |
1927 |
sb.append("paymentId:");
|
|
|
1928 |
sb.append(this.paymentId);
|
|
|
1929 |
first = false;
|
|
|
1930 |
if (!first) sb.append(", ");
|
|
|
1931 |
sb.append("gatewayId:");
|
|
|
1932 |
sb.append(this.gatewayId);
|
|
|
1933 |
first = false;
|
|
|
1934 |
if (!first) sb.append(", ");
|
|
|
1935 |
sb.append("gatewayPaymentId:");
|
|
|
1936 |
if (this.gatewayPaymentId == null) {
|
| 420 |
ashish |
1937 |
sb.append("null");
|
|
|
1938 |
} else {
|
| 695 |
rajveer |
1939 |
sb.append(this.gatewayPaymentId);
|
| 420 |
ashish |
1940 |
}
|
| 123 |
ashish |
1941 |
first = false;
|
|
|
1942 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1943 |
sb.append("merchantTxnId:");
|
| 705 |
chandransh |
1944 |
sb.append(this.merchantTxnId);
|
| 123 |
ashish |
1945 |
first = false;
|
|
|
1946 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1947 |
sb.append("gatewayTxnId:");
|
|
|
1948 |
if (this.gatewayTxnId == null) {
|
|
|
1949 |
sb.append("null");
|
|
|
1950 |
} else {
|
|
|
1951 |
sb.append(this.gatewayTxnId);
|
|
|
1952 |
}
|
|
|
1953 |
first = false;
|
|
|
1954 |
if (!first) sb.append(", ");
|
| 123 |
ashish |
1955 |
sb.append("amount:");
|
|
|
1956 |
sb.append(this.amount);
|
|
|
1957 |
first = false;
|
|
|
1958 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1959 |
sb.append("gatewayTxnStatus:");
|
|
|
1960 |
if (this.gatewayTxnStatus == null) {
|
| 123 |
ashish |
1961 |
sb.append("null");
|
|
|
1962 |
} else {
|
| 695 |
rajveer |
1963 |
sb.append(this.gatewayTxnStatus);
|
| 123 |
ashish |
1964 |
}
|
|
|
1965 |
first = false;
|
|
|
1966 |
if (!first) sb.append(", ");
|
|
|
1967 |
sb.append("status:");
|
|
|
1968 |
if (this.status == null) {
|
|
|
1969 |
sb.append("null");
|
|
|
1970 |
} else {
|
|
|
1971 |
sb.append(this.status);
|
|
|
1972 |
}
|
|
|
1973 |
first = false;
|
|
|
1974 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1975 |
sb.append("userId:");
|
|
|
1976 |
sb.append(this.userId);
|
| 123 |
ashish |
1977 |
first = false;
|
|
|
1978 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1979 |
sb.append("errorCode:");
|
|
|
1980 |
if (this.errorCode == null) {
|
| 123 |
ashish |
1981 |
sb.append("null");
|
|
|
1982 |
} else {
|
| 695 |
rajveer |
1983 |
sb.append(this.errorCode);
|
| 123 |
ashish |
1984 |
}
|
|
|
1985 |
first = false;
|
|
|
1986 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1987 |
sb.append("description:");
|
|
|
1988 |
if (this.description == null) {
|
| 123 |
ashish |
1989 |
sb.append("null");
|
|
|
1990 |
} else {
|
| 695 |
rajveer |
1991 |
sb.append(this.description);
|
| 123 |
ashish |
1992 |
}
|
|
|
1993 |
first = false;
|
| 420 |
ashish |
1994 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1995 |
sb.append("authCode:");
|
|
|
1996 |
if (this.authCode == null) {
|
| 420 |
ashish |
1997 |
sb.append("null");
|
|
|
1998 |
} else {
|
| 695 |
rajveer |
1999 |
sb.append(this.authCode);
|
| 420 |
ashish |
2000 |
}
|
|
|
2001 |
first = false;
|
|
|
2002 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2003 |
sb.append("referenceCode:");
|
|
|
2004 |
if (this.referenceCode == null) {
|
| 420 |
ashish |
2005 |
sb.append("null");
|
|
|
2006 |
} else {
|
| 695 |
rajveer |
2007 |
sb.append(this.referenceCode);
|
| 420 |
ashish |
2008 |
}
|
|
|
2009 |
first = false;
|
|
|
2010 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2011 |
sb.append("sessionId:");
|
|
|
2012 |
if (this.sessionId == null) {
|
| 420 |
ashish |
2013 |
sb.append("null");
|
|
|
2014 |
} else {
|
| 695 |
rajveer |
2015 |
sb.append(this.sessionId);
|
| 420 |
ashish |
2016 |
}
|
|
|
2017 |
first = false;
|
|
|
2018 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2019 |
sb.append("gatewayTxnDate:");
|
|
|
2020 |
if (this.gatewayTxnDate == null) {
|
| 420 |
ashish |
2021 |
sb.append("null");
|
|
|
2022 |
} else {
|
| 695 |
rajveer |
2023 |
sb.append(this.gatewayTxnDate);
|
| 420 |
ashish |
2024 |
}
|
|
|
2025 |
first = false;
|
|
|
2026 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2027 |
sb.append("attributes:");
|
|
|
2028 |
if (this.attributes == null) {
|
| 420 |
ashish |
2029 |
sb.append("null");
|
|
|
2030 |
} else {
|
| 695 |
rajveer |
2031 |
sb.append(this.attributes);
|
| 420 |
ashish |
2032 |
}
|
|
|
2033 |
first = false;
|
| 695 |
rajveer |
2034 |
if (!first) sb.append(", ");
|
|
|
2035 |
sb.append("initTimestamp:");
|
|
|
2036 |
sb.append(this.initTimestamp);
|
|
|
2037 |
first = false;
|
|
|
2038 |
if (!first) sb.append(", ");
|
|
|
2039 |
sb.append("successTimestamp:");
|
|
|
2040 |
sb.append(this.successTimestamp);
|
|
|
2041 |
first = false;
|
|
|
2042 |
if (!first) sb.append(", ");
|
|
|
2043 |
sb.append("errorTimestamp:");
|
|
|
2044 |
sb.append(this.errorTimestamp);
|
|
|
2045 |
first = false;
|
| 4421 |
mandeep.dh |
2046 |
if (!first) sb.append(", ");
|
|
|
2047 |
sb.append("provisionalCaptureTimestamp:");
|
|
|
2048 |
sb.append(this.provisionalCaptureTimestamp);
|
|
|
2049 |
first = false;
|
| 6050 |
anupam.sin |
2050 |
if (!first) sb.append(", ");
|
|
|
2051 |
sb.append("isDigital:");
|
|
|
2052 |
sb.append(this.isDigital);
|
|
|
2053 |
first = false;
|
| 123 |
ashish |
2054 |
sb.append(")");
|
|
|
2055 |
return sb.toString();
|
|
|
2056 |
}
|
|
|
2057 |
|
| 3430 |
rajveer |
2058 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
2059 |
// check for required fields
|
|
|
2060 |
}
|
|
|
2061 |
|
| 3430 |
rajveer |
2062 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2063 |
try {
|
|
|
2064 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2065 |
} catch (org.apache.thrift.TException te) {
|
|
|
2066 |
throw new java.io.IOException(te);
|
|
|
2067 |
}
|
|
|
2068 |
}
|
|
|
2069 |
|
|
|
2070 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2071 |
try {
|
|
|
2072 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2073 |
__isset_bit_vector = new BitSet(1);
|
|
|
2074 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2075 |
} catch (org.apache.thrift.TException te) {
|
|
|
2076 |
throw new java.io.IOException(te);
|
|
|
2077 |
}
|
|
|
2078 |
}
|
|
|
2079 |
|
| 123 |
ashish |
2080 |
}
|
|
|
2081 |
|