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