Subversion Repositories SmartDukaan

Rev

Rev 1013 | Rev 4421 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.payments;
6
package in.shop2020.payments;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Payment implements TBase<Payment._Fields>, java.io.Serializable, Cloneable, Comparable<Payment> {
23
public class Payment implements org.apache.thrift.TBase<Payment, Payment._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Payment");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Payment");
28
 
25
 
29
  private static final TField PAYMENT_ID_FIELD_DESC = new TField("paymentId", TType.I64, (short)1);
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);
30
  private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)2);
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);
31
  private static final TField GATEWAY_PAYMENT_ID_FIELD_DESC = new TField("gatewayPaymentId", TType.STRING, (short)3);
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);
32
  private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)4);
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);
33
  private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)5);
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);
34
  private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)6);
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);
35
  private static final TField GATEWAY_TXN_STATUS_FIELD_DESC = new TField("gatewayTxnStatus", TType.STRING, (short)7);
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);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
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);
37
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)9);
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);
38
  private static final TField ERROR_CODE_FIELD_DESC = new TField("errorCode", TType.STRING, (short)10);
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);
39
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)11);
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);
40
  private static final TField AUTH_CODE_FIELD_DESC = new TField("authCode", TType.STRING, (short)12);
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);
41
  private static final TField REFERENCE_CODE_FIELD_DESC = new TField("referenceCode", TType.STRING, (short)13);
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);
42
  private static final TField SESSION_ID_FIELD_DESC = new TField("sessionId", TType.STRING, (short)14);
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);
43
  private static final TField GATEWAY_TXN_DATE_FIELD_DESC = new TField("gatewayTxnDate", TType.STRING, (short)15);
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);
44
  private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)16);
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);
45
  private static final TField INIT_TIMESTAMP_FIELD_DESC = new TField("initTimestamp", TType.I64, (short)17);
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);
46
  private static final TField SUCCESS_TIMESTAMP_FIELD_DESC = new TField("successTimestamp", TType.I64, (short)18);
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);
47
  private static final TField ERROR_TIMESTAMP_FIELD_DESC = new TField("errorTimestamp", TType.I64, (short)19);
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);
48
 
45
 
49
  private long paymentId;
46
  private long paymentId; // required
50
  private long gatewayId;
47
  private long gatewayId; // required
51
  private String gatewayPaymentId;
48
  private String gatewayPaymentId; // required
52
  private long merchantTxnId;
49
  private long merchantTxnId; // required
53
  private String gatewayTxnId;
50
  private String gatewayTxnId; // required
54
  private double amount;
51
  private double amount; // required
55
  private String gatewayTxnStatus;
52
  private String gatewayTxnStatus; // required
56
  private PaymentStatus status;
53
  private PaymentStatus status; // required
57
  private long userId;
54
  private long userId; // required
58
  private String errorCode;
55
  private String errorCode; // required
59
  private String description;
56
  private String description; // required
60
  private String authCode;
57
  private String authCode; // required
61
  private String referenceCode;
58
  private String referenceCode; // required
62
  private String sessionId;
59
  private String sessionId; // required
63
  private String gatewayTxnDate;
60
  private String gatewayTxnDate; // required
64
  private List<Attribute> attributes;
61
  private List<Attribute> attributes; // required
65
  private long initTimestamp;
62
  private long initTimestamp; // required
66
  private long successTimestamp;
63
  private long successTimestamp; // required
67
  private long errorTimestamp;
64
  private long errorTimestamp; // required
68
 
65
 
69
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70
  public enum _Fields implements TFieldIdEnum {
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
71
    PAYMENT_ID((short)1, "paymentId"),
68
    PAYMENT_ID((short)1, "paymentId"),
72
    GATEWAY_ID((short)2, "gatewayId"),
69
    GATEWAY_ID((short)2, "gatewayId"),
73
    GATEWAY_PAYMENT_ID((short)3, "gatewayPaymentId"),
70
    GATEWAY_PAYMENT_ID((short)3, "gatewayPaymentId"),
74
    MERCHANT_TXN_ID((short)4, "merchantTxnId"),
71
    MERCHANT_TXN_ID((short)4, "merchantTxnId"),
75
    GATEWAY_TXN_ID((short)5, "gatewayTxnId"),
72
    GATEWAY_TXN_ID((short)5, "gatewayTxnId"),
Line 90... Line 87...
90
    ATTRIBUTES((short)16, "attributes"),
87
    ATTRIBUTES((short)16, "attributes"),
91
    INIT_TIMESTAMP((short)17, "initTimestamp"),
88
    INIT_TIMESTAMP((short)17, "initTimestamp"),
92
    SUCCESS_TIMESTAMP((short)18, "successTimestamp"),
89
    SUCCESS_TIMESTAMP((short)18, "successTimestamp"),
93
    ERROR_TIMESTAMP((short)19, "errorTimestamp");
90
    ERROR_TIMESTAMP((short)19, "errorTimestamp");
94
 
91
 
95
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
96
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
92
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97
 
93
 
98
    static {
94
    static {
99
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
95
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
100
        byId.put((int)field._thriftId, field);
-
 
101
        byName.put(field.getFieldName(), field);
96
        byName.put(field.getFieldName(), field);
102
      }
97
      }
103
    }
98
    }
104
 
99
 
105
    /**
100
    /**
106
     * Find the _Fields constant that matches fieldId, or null if its not found.
101
     * Find the _Fields constant that matches fieldId, or null if its not found.
107
     */
102
     */
108
    public static _Fields findByThriftId(int fieldId) {
103
    public static _Fields findByThriftId(int fieldId) {
109
      return byId.get(fieldId);
104
      switch(fieldId) {
-
 
105
        case 1: // PAYMENT_ID
-
 
106
          return PAYMENT_ID;
-
 
107
        case 2: // GATEWAY_ID
-
 
108
          return GATEWAY_ID;
-
 
109
        case 3: // GATEWAY_PAYMENT_ID
-
 
110
          return GATEWAY_PAYMENT_ID;
-
 
111
        case 4: // MERCHANT_TXN_ID
-
 
112
          return MERCHANT_TXN_ID;
-
 
113
        case 5: // GATEWAY_TXN_ID
-
 
114
          return GATEWAY_TXN_ID;
-
 
115
        case 6: // AMOUNT
-
 
116
          return AMOUNT;
-
 
117
        case 7: // GATEWAY_TXN_STATUS
-
 
118
          return GATEWAY_TXN_STATUS;
-
 
119
        case 8: // STATUS
-
 
120
          return STATUS;
-
 
121
        case 9: // USER_ID
-
 
122
          return USER_ID;
-
 
123
        case 10: // ERROR_CODE
-
 
124
          return ERROR_CODE;
-
 
125
        case 11: // DESCRIPTION
-
 
126
          return DESCRIPTION;
-
 
127
        case 12: // AUTH_CODE
-
 
128
          return AUTH_CODE;
-
 
129
        case 13: // REFERENCE_CODE
-
 
130
          return REFERENCE_CODE;
-
 
131
        case 14: // SESSION_ID
-
 
132
          return SESSION_ID;
-
 
133
        case 15: // GATEWAY_TXN_DATE
-
 
134
          return GATEWAY_TXN_DATE;
-
 
135
        case 16: // ATTRIBUTES
-
 
136
          return ATTRIBUTES;
-
 
137
        case 17: // INIT_TIMESTAMP
-
 
138
          return INIT_TIMESTAMP;
-
 
139
        case 18: // SUCCESS_TIMESTAMP
-
 
140
          return SUCCESS_TIMESTAMP;
-
 
141
        case 19: // ERROR_TIMESTAMP
-
 
142
          return ERROR_TIMESTAMP;
-
 
143
        default:
-
 
144
          return null;
-
 
145
      }
110
    }
146
    }
111
 
147
 
112
    /**
148
    /**
113
     * Find the _Fields constant that matches fieldId, throwing an exception
149
     * Find the _Fields constant that matches fieldId, throwing an exception
114
     * if it is not found.
150
     * if it is not found.
Line 152... Line 188...
152
  private static final int __INITTIMESTAMP_ISSET_ID = 5;
188
  private static final int __INITTIMESTAMP_ISSET_ID = 5;
153
  private static final int __SUCCESSTIMESTAMP_ISSET_ID = 6;
189
  private static final int __SUCCESSTIMESTAMP_ISSET_ID = 6;
154
  private static final int __ERRORTIMESTAMP_ISSET_ID = 7;
190
  private static final int __ERRORTIMESTAMP_ISSET_ID = 7;
155
  private BitSet __isset_bit_vector = new BitSet(8);
191
  private BitSet __isset_bit_vector = new BitSet(8);
156
 
192
 
157
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
193
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
158
    put(_Fields.PAYMENT_ID, new FieldMetaData("paymentId", TFieldRequirementType.DEFAULT, 
-
 
159
        new FieldValueMetaData(TType.I64)));
-
 
160
    put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT, 
-
 
161
        new FieldValueMetaData(TType.I64)));
-
 
162
    put(_Fields.GATEWAY_PAYMENT_ID, new FieldMetaData("gatewayPaymentId", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.STRING)));
-
 
164
    put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
-
 
165
        new FieldValueMetaData(TType.I64)));
-
 
166
    put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT, 
-
 
167
        new FieldValueMetaData(TType.STRING)));
-
 
168
    put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
169
        new FieldValueMetaData(TType.DOUBLE)));
-
 
170
    put(_Fields.GATEWAY_TXN_STATUS, new FieldMetaData("gatewayTxnStatus", TFieldRequirementType.DEFAULT, 
-
 
171
        new FieldValueMetaData(TType.STRING)));
-
 
172
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
173
        new EnumMetaData(TType.ENUM, PaymentStatus.class)));
-
 
174
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
175
        new FieldValueMetaData(TType.I64)));
-
 
176
    put(_Fields.ERROR_CODE, new FieldMetaData("errorCode", TFieldRequirementType.DEFAULT, 
-
 
177
        new FieldValueMetaData(TType.STRING)));
-
 
178
    put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-
 
179
        new FieldValueMetaData(TType.STRING)));
-
 
180
    put(_Fields.AUTH_CODE, new FieldMetaData("authCode", TFieldRequirementType.DEFAULT, 
-
 
181
        new FieldValueMetaData(TType.STRING)));
-
 
182
    put(_Fields.REFERENCE_CODE, new FieldMetaData("referenceCode", TFieldRequirementType.DEFAULT, 
-
 
183
        new FieldValueMetaData(TType.STRING)));
-
 
184
    put(_Fields.SESSION_ID, new FieldMetaData("sessionId", TFieldRequirementType.DEFAULT, 
-
 
185
        new FieldValueMetaData(TType.STRING)));
-
 
186
    put(_Fields.GATEWAY_TXN_DATE, new FieldMetaData("gatewayTxnDate", TFieldRequirementType.DEFAULT, 
-
 
187
        new FieldValueMetaData(TType.STRING)));
-
 
188
    put(_Fields.ATTRIBUTES, new FieldMetaData("attributes", TFieldRequirementType.DEFAULT, 
-
 
189
        new ListMetaData(TType.LIST, 
-
 
190
            new StructMetaData(TType.STRUCT, Attribute.class))));
-
 
191
    put(_Fields.INIT_TIMESTAMP, new FieldMetaData("initTimestamp", TFieldRequirementType.DEFAULT, 
-
 
192
        new FieldValueMetaData(TType.I64)));
-
 
193
    put(_Fields.SUCCESS_TIMESTAMP, new FieldMetaData("successTimestamp", TFieldRequirementType.DEFAULT, 
-
 
194
        new FieldValueMetaData(TType.I64)));
-
 
195
    put(_Fields.ERROR_TIMESTAMP, new FieldMetaData("errorTimestamp", TFieldRequirementType.DEFAULT, 
-
 
196
        new FieldValueMetaData(TType.I64)));
-
 
197
  }});
-
 
198
 
-
 
199
  static {
194
  static {
-
 
195
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
196
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
198
    tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
200
    tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
202
    tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
204
    tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
206
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
208
    tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
210
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
211
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
-
 
212
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
214
    tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
216
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
218
    tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
220
    tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
222
    tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
223
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
224
    tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
226
    tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
227
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
228
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
229
    tmpMap.put(_Fields.INIT_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("initTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
231
    tmpMap.put(_Fields.SUCCESS_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("successTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
233
    tmpMap.put(_Fields.ERROR_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("errorTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
235
    metaDataMap = Collections.unmodifiableMap(tmpMap);
200
    FieldMetaData.addStructMetaDataMap(Payment.class, metaDataMap);
236
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Payment.class, metaDataMap);
201
  }
237
  }
202
 
238
 
203
  public Payment() {
239
  public Payment() {
204
  }
240
  }
205
 
241
 
Line 309... Line 345...
309
 
345
 
310
  public Payment deepCopy() {
346
  public Payment deepCopy() {
311
    return new Payment(this);
347
    return new Payment(this);
312
  }
348
  }
313
 
349
 
314
  @Deprecated
350
  @Override
315
  public Payment clone() {
351
  public void clear() {
-
 
352
    setPaymentIdIsSet(false);
-
 
353
    this.paymentId = 0;
-
 
354
    setGatewayIdIsSet(false);
-
 
355
    this.gatewayId = 0;
316
    return new Payment(this);
356
    this.gatewayPaymentId = null;
-
 
357
    setMerchantTxnIdIsSet(false);
-
 
358
    this.merchantTxnId = 0;
-
 
359
    this.gatewayTxnId = null;
-
 
360
    setAmountIsSet(false);
-
 
361
    this.amount = 0.0;
-
 
362
    this.gatewayTxnStatus = null;
-
 
363
    this.status = null;
-
 
364
    setUserIdIsSet(false);
-
 
365
    this.userId = 0;
-
 
366
    this.errorCode = null;
-
 
367
    this.description = null;
-
 
368
    this.authCode = null;
-
 
369
    this.referenceCode = null;
-
 
370
    this.sessionId = null;
-
 
371
    this.gatewayTxnDate = null;
-
 
372
    this.attributes = null;
-
 
373
    setInitTimestampIsSet(false);
-
 
374
    this.initTimestamp = 0;
-
 
375
    setSuccessTimestampIsSet(false);
-
 
376
    this.successTimestamp = 0;
-
 
377
    setErrorTimestampIsSet(false);
-
 
378
    this.errorTimestamp = 0;
317
  }
379
  }
318
 
380
 
319
  public long getPaymentId() {
381
  public long getPaymentId() {
320
    return this.paymentId;
382
    return this.paymentId;
321
  }
383
  }
322
 
384
 
323
  public Payment setPaymentId(long paymentId) {
385
  public void setPaymentId(long paymentId) {
324
    this.paymentId = paymentId;
386
    this.paymentId = paymentId;
325
    setPaymentIdIsSet(true);
387
    setPaymentIdIsSet(true);
326
    return this;
-
 
327
  }
388
  }
328
 
389
 
329
  public void unsetPaymentId() {
390
  public void unsetPaymentId() {
330
    __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
391
    __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
331
  }
392
  }
332
 
393
 
333
  /** Returns true if field paymentId is set (has been asigned a value) and false otherwise */
394
  /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
334
  public boolean isSetPaymentId() {
395
  public boolean isSetPaymentId() {
335
    return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
396
    return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
336
  }
397
  }
337
 
398
 
338
  public void setPaymentIdIsSet(boolean value) {
399
  public void setPaymentIdIsSet(boolean value) {
Line 341... Line 402...
341
 
402
 
342
  public long getGatewayId() {
403
  public long getGatewayId() {
343
    return this.gatewayId;
404
    return this.gatewayId;
344
  }
405
  }
345
 
406
 
346
  public Payment setGatewayId(long gatewayId) {
407
  public void setGatewayId(long gatewayId) {
347
    this.gatewayId = gatewayId;
408
    this.gatewayId = gatewayId;
348
    setGatewayIdIsSet(true);
409
    setGatewayIdIsSet(true);
349
    return this;
-
 
350
  }
410
  }
351
 
411
 
352
  public void unsetGatewayId() {
412
  public void unsetGatewayId() {
353
    __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
413
    __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
354
  }
414
  }
355
 
415
 
356
  /** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
416
  /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
357
  public boolean isSetGatewayId() {
417
  public boolean isSetGatewayId() {
358
    return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
418
    return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
359
  }
419
  }
360
 
420
 
361
  public void setGatewayIdIsSet(boolean value) {
421
  public void setGatewayIdIsSet(boolean value) {
Line 364... Line 424...
364
 
424
 
365
  public String getGatewayPaymentId() {
425
  public String getGatewayPaymentId() {
366
    return this.gatewayPaymentId;
426
    return this.gatewayPaymentId;
367
  }
427
  }
368
 
428
 
369
  public Payment setGatewayPaymentId(String gatewayPaymentId) {
429
  public void setGatewayPaymentId(String gatewayPaymentId) {
370
    this.gatewayPaymentId = gatewayPaymentId;
430
    this.gatewayPaymentId = gatewayPaymentId;
371
    return this;
-
 
372
  }
431
  }
373
 
432
 
374
  public void unsetGatewayPaymentId() {
433
  public void unsetGatewayPaymentId() {
375
    this.gatewayPaymentId = null;
434
    this.gatewayPaymentId = null;
376
  }
435
  }
377
 
436
 
378
  /** Returns true if field gatewayPaymentId is set (has been asigned a value) and false otherwise */
437
  /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
379
  public boolean isSetGatewayPaymentId() {
438
  public boolean isSetGatewayPaymentId() {
380
    return this.gatewayPaymentId != null;
439
    return this.gatewayPaymentId != null;
381
  }
440
  }
382
 
441
 
383
  public void setGatewayPaymentIdIsSet(boolean value) {
442
  public void setGatewayPaymentIdIsSet(boolean value) {
Line 388... Line 447...
388
 
447
 
389
  public long getMerchantTxnId() {
448
  public long getMerchantTxnId() {
390
    return this.merchantTxnId;
449
    return this.merchantTxnId;
391
  }
450
  }
392
 
451
 
393
  public Payment setMerchantTxnId(long merchantTxnId) {
452
  public void setMerchantTxnId(long merchantTxnId) {
394
    this.merchantTxnId = merchantTxnId;
453
    this.merchantTxnId = merchantTxnId;
395
    setMerchantTxnIdIsSet(true);
454
    setMerchantTxnIdIsSet(true);
396
    return this;
-
 
397
  }
455
  }
398
 
456
 
399
  public void unsetMerchantTxnId() {
457
  public void unsetMerchantTxnId() {
400
    __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
458
    __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
401
  }
459
  }
402
 
460
 
403
  /** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
461
  /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
404
  public boolean isSetMerchantTxnId() {
462
  public boolean isSetMerchantTxnId() {
405
    return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
463
    return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
406
  }
464
  }
407
 
465
 
408
  public void setMerchantTxnIdIsSet(boolean value) {
466
  public void setMerchantTxnIdIsSet(boolean value) {
Line 411... Line 469...
411
 
469
 
412
  public String getGatewayTxnId() {
470
  public String getGatewayTxnId() {
413
    return this.gatewayTxnId;
471
    return this.gatewayTxnId;
414
  }
472
  }
415
 
473
 
416
  public Payment setGatewayTxnId(String gatewayTxnId) {
474
  public void setGatewayTxnId(String gatewayTxnId) {
417
    this.gatewayTxnId = gatewayTxnId;
475
    this.gatewayTxnId = gatewayTxnId;
418
    return this;
-
 
419
  }
476
  }
420
 
477
 
421
  public void unsetGatewayTxnId() {
478
  public void unsetGatewayTxnId() {
422
    this.gatewayTxnId = null;
479
    this.gatewayTxnId = null;
423
  }
480
  }
424
 
481
 
425
  /** Returns true if field gatewayTxnId is set (has been asigned a value) and false otherwise */
482
  /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
426
  public boolean isSetGatewayTxnId() {
483
  public boolean isSetGatewayTxnId() {
427
    return this.gatewayTxnId != null;
484
    return this.gatewayTxnId != null;
428
  }
485
  }
429
 
486
 
430
  public void setGatewayTxnIdIsSet(boolean value) {
487
  public void setGatewayTxnIdIsSet(boolean value) {
Line 435... Line 492...
435
 
492
 
436
  public double getAmount() {
493
  public double getAmount() {
437
    return this.amount;
494
    return this.amount;
438
  }
495
  }
439
 
496
 
440
  public Payment setAmount(double amount) {
497
  public void setAmount(double amount) {
441
    this.amount = amount;
498
    this.amount = amount;
442
    setAmountIsSet(true);
499
    setAmountIsSet(true);
443
    return this;
-
 
444
  }
500
  }
445
 
501
 
446
  public void unsetAmount() {
502
  public void unsetAmount() {
447
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
503
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
448
  }
504
  }
449
 
505
 
450
  /** Returns true if field amount is set (has been asigned a value) and false otherwise */
506
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
451
  public boolean isSetAmount() {
507
  public boolean isSetAmount() {
452
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
508
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
453
  }
509
  }
454
 
510
 
455
  public void setAmountIsSet(boolean value) {
511
  public void setAmountIsSet(boolean value) {
Line 458... Line 514...
458
 
514
 
459
  public String getGatewayTxnStatus() {
515
  public String getGatewayTxnStatus() {
460
    return this.gatewayTxnStatus;
516
    return this.gatewayTxnStatus;
461
  }
517
  }
462
 
518
 
463
  public Payment setGatewayTxnStatus(String gatewayTxnStatus) {
519
  public void setGatewayTxnStatus(String gatewayTxnStatus) {
464
    this.gatewayTxnStatus = gatewayTxnStatus;
520
    this.gatewayTxnStatus = gatewayTxnStatus;
465
    return this;
-
 
466
  }
521
  }
467
 
522
 
468
  public void unsetGatewayTxnStatus() {
523
  public void unsetGatewayTxnStatus() {
469
    this.gatewayTxnStatus = null;
524
    this.gatewayTxnStatus = null;
470
  }
525
  }
471
 
526
 
472
  /** Returns true if field gatewayTxnStatus is set (has been asigned a value) and false otherwise */
527
  /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
473
  public boolean isSetGatewayTxnStatus() {
528
  public boolean isSetGatewayTxnStatus() {
474
    return this.gatewayTxnStatus != null;
529
    return this.gatewayTxnStatus != null;
475
  }
530
  }
476
 
531
 
477
  public void setGatewayTxnStatusIsSet(boolean value) {
532
  public void setGatewayTxnStatusIsSet(boolean value) {
Line 490... Line 545...
490
 
545
 
491
  /**
546
  /**
492
   * 
547
   * 
493
   * @see PaymentStatus
548
   * @see PaymentStatus
494
   */
549
   */
495
  public Payment setStatus(PaymentStatus status) {
550
  public void setStatus(PaymentStatus status) {
496
    this.status = status;
551
    this.status = status;
497
    return this;
-
 
498
  }
552
  }
499
 
553
 
500
  public void unsetStatus() {
554
  public void unsetStatus() {
501
    this.status = null;
555
    this.status = null;
502
  }
556
  }
503
 
557
 
504
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
558
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
505
  public boolean isSetStatus() {
559
  public boolean isSetStatus() {
506
    return this.status != null;
560
    return this.status != null;
507
  }
561
  }
508
 
562
 
509
  public void setStatusIsSet(boolean value) {
563
  public void setStatusIsSet(boolean value) {
Line 514... Line 568...
514
 
568
 
515
  public long getUserId() {
569
  public long getUserId() {
516
    return this.userId;
570
    return this.userId;
517
  }
571
  }
518
 
572
 
519
  public Payment setUserId(long userId) {
573
  public void setUserId(long userId) {
520
    this.userId = userId;
574
    this.userId = userId;
521
    setUserIdIsSet(true);
575
    setUserIdIsSet(true);
522
    return this;
-
 
523
  }
576
  }
524
 
577
 
525
  public void unsetUserId() {
578
  public void unsetUserId() {
526
    __isset_bit_vector.clear(__USERID_ISSET_ID);
579
    __isset_bit_vector.clear(__USERID_ISSET_ID);
527
  }
580
  }
528
 
581
 
529
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
582
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
530
  public boolean isSetUserId() {
583
  public boolean isSetUserId() {
531
    return __isset_bit_vector.get(__USERID_ISSET_ID);
584
    return __isset_bit_vector.get(__USERID_ISSET_ID);
532
  }
585
  }
533
 
586
 
534
  public void setUserIdIsSet(boolean value) {
587
  public void setUserIdIsSet(boolean value) {
Line 537... Line 590...
537
 
590
 
538
  public String getErrorCode() {
591
  public String getErrorCode() {
539
    return this.errorCode;
592
    return this.errorCode;
540
  }
593
  }
541
 
594
 
542
  public Payment setErrorCode(String errorCode) {
595
  public void setErrorCode(String errorCode) {
543
    this.errorCode = errorCode;
596
    this.errorCode = errorCode;
544
    return this;
-
 
545
  }
597
  }
546
 
598
 
547
  public void unsetErrorCode() {
599
  public void unsetErrorCode() {
548
    this.errorCode = null;
600
    this.errorCode = null;
549
  }
601
  }
550
 
602
 
551
  /** Returns true if field errorCode is set (has been asigned a value) and false otherwise */
603
  /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
552
  public boolean isSetErrorCode() {
604
  public boolean isSetErrorCode() {
553
    return this.errorCode != null;
605
    return this.errorCode != null;
554
  }
606
  }
555
 
607
 
556
  public void setErrorCodeIsSet(boolean value) {
608
  public void setErrorCodeIsSet(boolean value) {
Line 561... Line 613...
561
 
613
 
562
  public String getDescription() {
614
  public String getDescription() {
563
    return this.description;
615
    return this.description;
564
  }
616
  }
565
 
617
 
566
  public Payment setDescription(String description) {
618
  public void setDescription(String description) {
567
    this.description = description;
619
    this.description = description;
568
    return this;
-
 
569
  }
620
  }
570
 
621
 
571
  public void unsetDescription() {
622
  public void unsetDescription() {
572
    this.description = null;
623
    this.description = null;
573
  }
624
  }
574
 
625
 
575
  /** Returns true if field description is set (has been asigned a value) and false otherwise */
626
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
576
  public boolean isSetDescription() {
627
  public boolean isSetDescription() {
577
    return this.description != null;
628
    return this.description != null;
578
  }
629
  }
579
 
630
 
580
  public void setDescriptionIsSet(boolean value) {
631
  public void setDescriptionIsSet(boolean value) {
Line 585... Line 636...
585
 
636
 
586
  public String getAuthCode() {
637
  public String getAuthCode() {
587
    return this.authCode;
638
    return this.authCode;
588
  }
639
  }
589
 
640
 
590
  public Payment setAuthCode(String authCode) {
641
  public void setAuthCode(String authCode) {
591
    this.authCode = authCode;
642
    this.authCode = authCode;
592
    return this;
-
 
593
  }
643
  }
594
 
644
 
595
  public void unsetAuthCode() {
645
  public void unsetAuthCode() {
596
    this.authCode = null;
646
    this.authCode = null;
597
  }
647
  }
598
 
648
 
599
  /** Returns true if field authCode is set (has been asigned a value) and false otherwise */
649
  /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
600
  public boolean isSetAuthCode() {
650
  public boolean isSetAuthCode() {
601
    return this.authCode != null;
651
    return this.authCode != null;
602
  }
652
  }
603
 
653
 
604
  public void setAuthCodeIsSet(boolean value) {
654
  public void setAuthCodeIsSet(boolean value) {
Line 609... Line 659...
609
 
659
 
610
  public String getReferenceCode() {
660
  public String getReferenceCode() {
611
    return this.referenceCode;
661
    return this.referenceCode;
612
  }
662
  }
613
 
663
 
614
  public Payment setReferenceCode(String referenceCode) {
664
  public void setReferenceCode(String referenceCode) {
615
    this.referenceCode = referenceCode;
665
    this.referenceCode = referenceCode;
616
    return this;
-
 
617
  }
666
  }
618
 
667
 
619
  public void unsetReferenceCode() {
668
  public void unsetReferenceCode() {
620
    this.referenceCode = null;
669
    this.referenceCode = null;
621
  }
670
  }
622
 
671
 
623
  /** Returns true if field referenceCode is set (has been asigned a value) and false otherwise */
672
  /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
624
  public boolean isSetReferenceCode() {
673
  public boolean isSetReferenceCode() {
625
    return this.referenceCode != null;
674
    return this.referenceCode != null;
626
  }
675
  }
627
 
676
 
628
  public void setReferenceCodeIsSet(boolean value) {
677
  public void setReferenceCodeIsSet(boolean value) {
Line 633... Line 682...
633
 
682
 
634
  public String getSessionId() {
683
  public String getSessionId() {
635
    return this.sessionId;
684
    return this.sessionId;
636
  }
685
  }
637
 
686
 
638
  public Payment setSessionId(String sessionId) {
687
  public void setSessionId(String sessionId) {
639
    this.sessionId = sessionId;
688
    this.sessionId = sessionId;
640
    return this;
-
 
641
  }
689
  }
642
 
690
 
643
  public void unsetSessionId() {
691
  public void unsetSessionId() {
644
    this.sessionId = null;
692
    this.sessionId = null;
645
  }
693
  }
646
 
694
 
647
  /** Returns true if field sessionId is set (has been asigned a value) and false otherwise */
695
  /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
648
  public boolean isSetSessionId() {
696
  public boolean isSetSessionId() {
649
    return this.sessionId != null;
697
    return this.sessionId != null;
650
  }
698
  }
651
 
699
 
652
  public void setSessionIdIsSet(boolean value) {
700
  public void setSessionIdIsSet(boolean value) {
Line 657... Line 705...
657
 
705
 
658
  public String getGatewayTxnDate() {
706
  public String getGatewayTxnDate() {
659
    return this.gatewayTxnDate;
707
    return this.gatewayTxnDate;
660
  }
708
  }
661
 
709
 
662
  public Payment setGatewayTxnDate(String gatewayTxnDate) {
710
  public void setGatewayTxnDate(String gatewayTxnDate) {
663
    this.gatewayTxnDate = gatewayTxnDate;
711
    this.gatewayTxnDate = gatewayTxnDate;
664
    return this;
-
 
665
  }
712
  }
666
 
713
 
667
  public void unsetGatewayTxnDate() {
714
  public void unsetGatewayTxnDate() {
668
    this.gatewayTxnDate = null;
715
    this.gatewayTxnDate = null;
669
  }
716
  }
670
 
717
 
671
  /** Returns true if field gatewayTxnDate is set (has been asigned a value) and false otherwise */
718
  /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
672
  public boolean isSetGatewayTxnDate() {
719
  public boolean isSetGatewayTxnDate() {
673
    return this.gatewayTxnDate != null;
720
    return this.gatewayTxnDate != null;
674
  }
721
  }
675
 
722
 
676
  public void setGatewayTxnDateIsSet(boolean value) {
723
  public void setGatewayTxnDateIsSet(boolean value) {
Line 696... Line 743...
696
 
743
 
697
  public List<Attribute> getAttributes() {
744
  public List<Attribute> getAttributes() {
698
    return this.attributes;
745
    return this.attributes;
699
  }
746
  }
700
 
747
 
701
  public Payment setAttributes(List<Attribute> attributes) {
748
  public void setAttributes(List<Attribute> attributes) {
702
    this.attributes = attributes;
749
    this.attributes = attributes;
703
    return this;
-
 
704
  }
750
  }
705
 
751
 
706
  public void unsetAttributes() {
752
  public void unsetAttributes() {
707
    this.attributes = null;
753
    this.attributes = null;
708
  }
754
  }
709
 
755
 
710
  /** Returns true if field attributes is set (has been asigned a value) and false otherwise */
756
  /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
711
  public boolean isSetAttributes() {
757
  public boolean isSetAttributes() {
712
    return this.attributes != null;
758
    return this.attributes != null;
713
  }
759
  }
714
 
760
 
715
  public void setAttributesIsSet(boolean value) {
761
  public void setAttributesIsSet(boolean value) {
Line 720... Line 766...
720
 
766
 
721
  public long getInitTimestamp() {
767
  public long getInitTimestamp() {
722
    return this.initTimestamp;
768
    return this.initTimestamp;
723
  }
769
  }
724
 
770
 
725
  public Payment setInitTimestamp(long initTimestamp) {
771
  public void setInitTimestamp(long initTimestamp) {
726
    this.initTimestamp = initTimestamp;
772
    this.initTimestamp = initTimestamp;
727
    setInitTimestampIsSet(true);
773
    setInitTimestampIsSet(true);
728
    return this;
-
 
729
  }
774
  }
730
 
775
 
731
  public void unsetInitTimestamp() {
776
  public void unsetInitTimestamp() {
732
    __isset_bit_vector.clear(__INITTIMESTAMP_ISSET_ID);
777
    __isset_bit_vector.clear(__INITTIMESTAMP_ISSET_ID);
733
  }
778
  }
734
 
779
 
735
  /** Returns true if field initTimestamp is set (has been asigned a value) and false otherwise */
780
  /** Returns true if field initTimestamp is set (has been assigned a value) and false otherwise */
736
  public boolean isSetInitTimestamp() {
781
  public boolean isSetInitTimestamp() {
737
    return __isset_bit_vector.get(__INITTIMESTAMP_ISSET_ID);
782
    return __isset_bit_vector.get(__INITTIMESTAMP_ISSET_ID);
738
  }
783
  }
739
 
784
 
740
  public void setInitTimestampIsSet(boolean value) {
785
  public void setInitTimestampIsSet(boolean value) {
Line 743... Line 788...
743
 
788
 
744
  public long getSuccessTimestamp() {
789
  public long getSuccessTimestamp() {
745
    return this.successTimestamp;
790
    return this.successTimestamp;
746
  }
791
  }
747
 
792
 
748
  public Payment setSuccessTimestamp(long successTimestamp) {
793
  public void setSuccessTimestamp(long successTimestamp) {
749
    this.successTimestamp = successTimestamp;
794
    this.successTimestamp = successTimestamp;
750
    setSuccessTimestampIsSet(true);
795
    setSuccessTimestampIsSet(true);
751
    return this;
-
 
752
  }
796
  }
753
 
797
 
754
  public void unsetSuccessTimestamp() {
798
  public void unsetSuccessTimestamp() {
755
    __isset_bit_vector.clear(__SUCCESSTIMESTAMP_ISSET_ID);
799
    __isset_bit_vector.clear(__SUCCESSTIMESTAMP_ISSET_ID);
756
  }
800
  }
757
 
801
 
758
  /** Returns true if field successTimestamp is set (has been asigned a value) and false otherwise */
802
  /** Returns true if field successTimestamp is set (has been assigned a value) and false otherwise */
759
  public boolean isSetSuccessTimestamp() {
803
  public boolean isSetSuccessTimestamp() {
760
    return __isset_bit_vector.get(__SUCCESSTIMESTAMP_ISSET_ID);
804
    return __isset_bit_vector.get(__SUCCESSTIMESTAMP_ISSET_ID);
761
  }
805
  }
762
 
806
 
763
  public void setSuccessTimestampIsSet(boolean value) {
807
  public void setSuccessTimestampIsSet(boolean value) {
Line 766... Line 810...
766
 
810
 
767
  public long getErrorTimestamp() {
811
  public long getErrorTimestamp() {
768
    return this.errorTimestamp;
812
    return this.errorTimestamp;
769
  }
813
  }
770
 
814
 
771
  public Payment setErrorTimestamp(long errorTimestamp) {
815
  public void setErrorTimestamp(long errorTimestamp) {
772
    this.errorTimestamp = errorTimestamp;
816
    this.errorTimestamp = errorTimestamp;
773
    setErrorTimestampIsSet(true);
817
    setErrorTimestampIsSet(true);
774
    return this;
-
 
775
  }
818
  }
776
 
819
 
777
  public void unsetErrorTimestamp() {
820
  public void unsetErrorTimestamp() {
778
    __isset_bit_vector.clear(__ERRORTIMESTAMP_ISSET_ID);
821
    __isset_bit_vector.clear(__ERRORTIMESTAMP_ISSET_ID);
779
  }
822
  }
780
 
823
 
781
  /** Returns true if field errorTimestamp is set (has been asigned a value) and false otherwise */
824
  /** Returns true if field errorTimestamp is set (has been assigned a value) and false otherwise */
782
  public boolean isSetErrorTimestamp() {
825
  public boolean isSetErrorTimestamp() {
783
    return __isset_bit_vector.get(__ERRORTIMESTAMP_ISSET_ID);
826
    return __isset_bit_vector.get(__ERRORTIMESTAMP_ISSET_ID);
784
  }
827
  }
785
 
828
 
786
  public void setErrorTimestampIsSet(boolean value) {
829
  public void setErrorTimestampIsSet(boolean value) {
Line 942... Line 985...
942
      break;
985
      break;
943
 
986
 
944
    }
987
    }
945
  }
988
  }
946
 
989
 
947
  public void setFieldValue(int fieldID, Object value) {
-
 
948
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
949
  }
-
 
950
 
-
 
951
  public Object getFieldValue(_Fields field) {
990
  public Object getFieldValue(_Fields field) {
952
    switch (field) {
991
    switch (field) {
953
    case PAYMENT_ID:
992
    case PAYMENT_ID:
954
      return new Long(getPaymentId());
993
      return Long.valueOf(getPaymentId());
955
 
994
 
956
    case GATEWAY_ID:
995
    case GATEWAY_ID:
957
      return new Long(getGatewayId());
996
      return Long.valueOf(getGatewayId());
958
 
997
 
959
    case GATEWAY_PAYMENT_ID:
998
    case GATEWAY_PAYMENT_ID:
960
      return getGatewayPaymentId();
999
      return getGatewayPaymentId();
961
 
1000
 
962
    case MERCHANT_TXN_ID:
1001
    case MERCHANT_TXN_ID:
963
      return new Long(getMerchantTxnId());
1002
      return Long.valueOf(getMerchantTxnId());
964
 
1003
 
965
    case GATEWAY_TXN_ID:
1004
    case GATEWAY_TXN_ID:
966
      return getGatewayTxnId();
1005
      return getGatewayTxnId();
967
 
1006
 
968
    case AMOUNT:
1007
    case AMOUNT:
969
      return new Double(getAmount());
1008
      return Double.valueOf(getAmount());
970
 
1009
 
971
    case GATEWAY_TXN_STATUS:
1010
    case GATEWAY_TXN_STATUS:
972
      return getGatewayTxnStatus();
1011
      return getGatewayTxnStatus();
973
 
1012
 
974
    case STATUS:
1013
    case STATUS:
975
      return getStatus();
1014
      return getStatus();
976
 
1015
 
977
    case USER_ID:
1016
    case USER_ID:
978
      return new Long(getUserId());
1017
      return Long.valueOf(getUserId());
979
 
1018
 
980
    case ERROR_CODE:
1019
    case ERROR_CODE:
981
      return getErrorCode();
1020
      return getErrorCode();
982
 
1021
 
983
    case DESCRIPTION:
1022
    case DESCRIPTION:
Line 997... Line 1036...
997
 
1036
 
998
    case ATTRIBUTES:
1037
    case ATTRIBUTES:
999
      return getAttributes();
1038
      return getAttributes();
1000
 
1039
 
1001
    case INIT_TIMESTAMP:
1040
    case INIT_TIMESTAMP:
1002
      return new Long(getInitTimestamp());
1041
      return Long.valueOf(getInitTimestamp());
1003
 
1042
 
1004
    case SUCCESS_TIMESTAMP:
1043
    case SUCCESS_TIMESTAMP:
1005
      return new Long(getSuccessTimestamp());
1044
      return Long.valueOf(getSuccessTimestamp());
1006
 
1045
 
1007
    case ERROR_TIMESTAMP:
1046
    case ERROR_TIMESTAMP:
1008
      return new Long(getErrorTimestamp());
1047
      return Long.valueOf(getErrorTimestamp());
1009
 
1048
 
1010
    }
1049
    }
1011
    throw new IllegalStateException();
1050
    throw new IllegalStateException();
1012
  }
1051
  }
1013
 
1052
 
1014
  public Object getFieldValue(int fieldId) {
-
 
1015
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1016
  }
-
 
1017
 
-
 
1018
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1053
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1019
  public boolean isSet(_Fields field) {
1054
  public boolean isSet(_Fields field) {
-
 
1055
    if (field == null) {
-
 
1056
      throw new IllegalArgumentException();
-
 
1057
    }
-
 
1058
 
1020
    switch (field) {
1059
    switch (field) {
1021
    case PAYMENT_ID:
1060
    case PAYMENT_ID:
1022
      return isSetPaymentId();
1061
      return isSetPaymentId();
1023
    case GATEWAY_ID:
1062
    case GATEWAY_ID:
1024
      return isSetGatewayId();
1063
      return isSetGatewayId();
Line 1058... Line 1097...
1058
      return isSetErrorTimestamp();
1097
      return isSetErrorTimestamp();
1059
    }
1098
    }
1060
    throw new IllegalStateException();
1099
    throw new IllegalStateException();
1061
  }
1100
  }
1062
 
1101
 
1063
  public boolean isSet(int fieldID) {
-
 
1064
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1065
  }
-
 
1066
 
-
 
1067
  @Override
1102
  @Override
1068
  public boolean equals(Object that) {
1103
  public boolean equals(Object that) {
1069
    if (that == null)
1104
    if (that == null)
1070
      return false;
1105
      return false;
1071
    if (that instanceof Payment)
1106
    if (that instanceof Payment)
Line 1262... Line 1297...
1262
    }
1297
    }
1263
 
1298
 
1264
    int lastComparison = 0;
1299
    int lastComparison = 0;
1265
    Payment typedOther = (Payment)other;
1300
    Payment typedOther = (Payment)other;
1266
 
1301
 
1267
    lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(isSetPaymentId());
1302
    lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
1268
    if (lastComparison != 0) {
1303
    if (lastComparison != 0) {
1269
      return lastComparison;
1304
      return lastComparison;
1270
    }
1305
    }
-
 
1306
    if (isSetPaymentId()) {
1271
    lastComparison = TBaseHelper.compareTo(paymentId, typedOther.paymentId);
1307
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
1272
    if (lastComparison != 0) {
1308
      if (lastComparison != 0) {
1273
      return lastComparison;
1309
        return lastComparison;
-
 
1310
      }
1274
    }
1311
    }
1275
    lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
1312
    lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
1276
    if (lastComparison != 0) {
1313
    if (lastComparison != 0) {
1277
      return lastComparison;
1314
      return lastComparison;
1278
    }
1315
    }
-
 
1316
    if (isSetGatewayId()) {
1279
    lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
1317
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
1280
    if (lastComparison != 0) {
1318
      if (lastComparison != 0) {
1281
      return lastComparison;
1319
        return lastComparison;
-
 
1320
      }
1282
    }
1321
    }
1283
    lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(isSetGatewayPaymentId());
1322
    lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
1284
    if (lastComparison != 0) {
1323
    if (lastComparison != 0) {
1285
      return lastComparison;
1324
      return lastComparison;
1286
    }
1325
    }
-
 
1326
    if (isSetGatewayPaymentId()) {
1287
    lastComparison = TBaseHelper.compareTo(gatewayPaymentId, typedOther.gatewayPaymentId);
1327
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
1288
    if (lastComparison != 0) {
1328
      if (lastComparison != 0) {
1289
      return lastComparison;
1329
        return lastComparison;
-
 
1330
      }
1290
    }
1331
    }
1291
    lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
1332
    lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
1292
    if (lastComparison != 0) {
1333
    if (lastComparison != 0) {
1293
      return lastComparison;
1334
      return lastComparison;
1294
    }
1335
    }
-
 
1336
    if (isSetMerchantTxnId()) {
1295
    lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
1337
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
1296
    if (lastComparison != 0) {
1338
      if (lastComparison != 0) {
1297
      return lastComparison;
1339
        return lastComparison;
-
 
1340
      }
1298
    }
1341
    }
1299
    lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(isSetGatewayTxnId());
1342
    lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
1300
    if (lastComparison != 0) {
1343
    if (lastComparison != 0) {
1301
      return lastComparison;
1344
      return lastComparison;
1302
    }
1345
    }
-
 
1346
    if (isSetGatewayTxnId()) {
1303
    lastComparison = TBaseHelper.compareTo(gatewayTxnId, typedOther.gatewayTxnId);
1347
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
1304
    if (lastComparison != 0) {
1348
      if (lastComparison != 0) {
1305
      return lastComparison;
1349
        return lastComparison;
-
 
1350
      }
1306
    }
1351
    }
1307
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
1352
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
1308
    if (lastComparison != 0) {
1353
    if (lastComparison != 0) {
1309
      return lastComparison;
1354
      return lastComparison;
1310
    }
1355
    }
-
 
1356
    if (isSetAmount()) {
1311
    lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
1357
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1312
    if (lastComparison != 0) {
1358
      if (lastComparison != 0) {
1313
      return lastComparison;
1359
        return lastComparison;
-
 
1360
      }
1314
    }
1361
    }
1315
    lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(isSetGatewayTxnStatus());
1362
    lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
1316
    if (lastComparison != 0) {
1363
    if (lastComparison != 0) {
1317
      return lastComparison;
1364
      return lastComparison;
1318
    }
1365
    }
-
 
1366
    if (isSetGatewayTxnStatus()) {
1319
    lastComparison = TBaseHelper.compareTo(gatewayTxnStatus, typedOther.gatewayTxnStatus);
1367
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
1320
    if (lastComparison != 0) {
1368
      if (lastComparison != 0) {
1321
      return lastComparison;
1369
        return lastComparison;
-
 
1370
      }
1322
    }
1371
    }
1323
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1372
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1324
    if (lastComparison != 0) {
1373
    if (lastComparison != 0) {
1325
      return lastComparison;
1374
      return lastComparison;
1326
    }
1375
    }
-
 
1376
    if (isSetStatus()) {
1327
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
1377
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
1328
    if (lastComparison != 0) {
1378
      if (lastComparison != 0) {
1329
      return lastComparison;
1379
        return lastComparison;
-
 
1380
      }
1330
    }
1381
    }
1331
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
1382
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1332
    if (lastComparison != 0) {
1383
    if (lastComparison != 0) {
1333
      return lastComparison;
1384
      return lastComparison;
1334
    }
1385
    }
-
 
1386
    if (isSetUserId()) {
1335
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
1387
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
1336
    if (lastComparison != 0) {
1388
      if (lastComparison != 0) {
1337
      return lastComparison;
1389
        return lastComparison;
-
 
1390
      }
1338
    }
1391
    }
1339
    lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(isSetErrorCode());
1392
    lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
1340
    if (lastComparison != 0) {
1393
    if (lastComparison != 0) {
1341
      return lastComparison;
1394
      return lastComparison;
1342
    }
1395
    }
-
 
1396
    if (isSetErrorCode()) {
1343
    lastComparison = TBaseHelper.compareTo(errorCode, typedOther.errorCode);
1397
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
1344
    if (lastComparison != 0) {
1398
      if (lastComparison != 0) {
1345
      return lastComparison;
1399
        return lastComparison;
-
 
1400
      }
1346
    }
1401
    }
1347
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
1402
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
1348
    if (lastComparison != 0) {
1403
    if (lastComparison != 0) {
1349
      return lastComparison;
1404
      return lastComparison;
1350
    }
1405
    }
-
 
1406
    if (isSetDescription()) {
1351
    lastComparison = TBaseHelper.compareTo(description, typedOther.description);
1407
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1352
    if (lastComparison != 0) {
1408
      if (lastComparison != 0) {
1353
      return lastComparison;
1409
        return lastComparison;
-
 
1410
      }
1354
    }
1411
    }
1355
    lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(isSetAuthCode());
1412
    lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
1356
    if (lastComparison != 0) {
1413
    if (lastComparison != 0) {
1357
      return lastComparison;
1414
      return lastComparison;
1358
    }
1415
    }
-
 
1416
    if (isSetAuthCode()) {
1359
    lastComparison = TBaseHelper.compareTo(authCode, typedOther.authCode);
1417
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
1360
    if (lastComparison != 0) {
1418
      if (lastComparison != 0) {
1361
      return lastComparison;
1419
        return lastComparison;
-
 
1420
      }
1362
    }
1421
    }
1363
    lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(isSetReferenceCode());
1422
    lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
1364
    if (lastComparison != 0) {
1423
    if (lastComparison != 0) {
1365
      return lastComparison;
1424
      return lastComparison;
1366
    }
1425
    }
-
 
1426
    if (isSetReferenceCode()) {
1367
    lastComparison = TBaseHelper.compareTo(referenceCode, typedOther.referenceCode);
1427
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
1368
    if (lastComparison != 0) {
1428
      if (lastComparison != 0) {
1369
      return lastComparison;
1429
        return lastComparison;
-
 
1430
      }
1370
    }
1431
    }
1371
    lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(isSetSessionId());
1432
    lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
1372
    if (lastComparison != 0) {
1433
    if (lastComparison != 0) {
1373
      return lastComparison;
1434
      return lastComparison;
1374
    }
1435
    }
-
 
1436
    if (isSetSessionId()) {
1375
    lastComparison = TBaseHelper.compareTo(sessionId, typedOther.sessionId);
1437
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
1376
    if (lastComparison != 0) {
1438
      if (lastComparison != 0) {
1377
      return lastComparison;
1439
        return lastComparison;
-
 
1440
      }
1378
    }
1441
    }
1379
    lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(isSetGatewayTxnDate());
1442
    lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1380
    if (lastComparison != 0) {
1443
    if (lastComparison != 0) {
1381
      return lastComparison;
1444
      return lastComparison;
1382
    }
1445
    }
-
 
1446
    if (isSetGatewayTxnDate()) {
1383
    lastComparison = TBaseHelper.compareTo(gatewayTxnDate, typedOther.gatewayTxnDate);
1447
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
1384
    if (lastComparison != 0) {
1448
      if (lastComparison != 0) {
1385
      return lastComparison;
1449
        return lastComparison;
-
 
1450
      }
1386
    }
1451
    }
1387
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
1452
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
1388
    if (lastComparison != 0) {
1453
    if (lastComparison != 0) {
1389
      return lastComparison;
1454
      return lastComparison;
1390
    }
1455
    }
-
 
1456
    if (isSetAttributes()) {
1391
    lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
1457
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
1392
    if (lastComparison != 0) {
1458
      if (lastComparison != 0) {
1393
      return lastComparison;
1459
        return lastComparison;
-
 
1460
      }
1394
    }
1461
    }
1395
    lastComparison = Boolean.valueOf(isSetInitTimestamp()).compareTo(isSetInitTimestamp());
1462
    lastComparison = Boolean.valueOf(isSetInitTimestamp()).compareTo(typedOther.isSetInitTimestamp());
1396
    if (lastComparison != 0) {
1463
    if (lastComparison != 0) {
1397
      return lastComparison;
1464
      return lastComparison;
1398
    }
1465
    }
-
 
1466
    if (isSetInitTimestamp()) {
1399
    lastComparison = TBaseHelper.compareTo(initTimestamp, typedOther.initTimestamp);
1467
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initTimestamp, typedOther.initTimestamp);
1400
    if (lastComparison != 0) {
1468
      if (lastComparison != 0) {
1401
      return lastComparison;
1469
        return lastComparison;
-
 
1470
      }
1402
    }
1471
    }
1403
    lastComparison = Boolean.valueOf(isSetSuccessTimestamp()).compareTo(isSetSuccessTimestamp());
1472
    lastComparison = Boolean.valueOf(isSetSuccessTimestamp()).compareTo(typedOther.isSetSuccessTimestamp());
1404
    if (lastComparison != 0) {
1473
    if (lastComparison != 0) {
1405
      return lastComparison;
1474
      return lastComparison;
1406
    }
1475
    }
-
 
1476
    if (isSetSuccessTimestamp()) {
1407
    lastComparison = TBaseHelper.compareTo(successTimestamp, typedOther.successTimestamp);
1477
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successTimestamp, typedOther.successTimestamp);
1408
    if (lastComparison != 0) {
1478
      if (lastComparison != 0) {
1409
      return lastComparison;
1479
        return lastComparison;
-
 
1480
      }
1410
    }
1481
    }
1411
    lastComparison = Boolean.valueOf(isSetErrorTimestamp()).compareTo(isSetErrorTimestamp());
1482
    lastComparison = Boolean.valueOf(isSetErrorTimestamp()).compareTo(typedOther.isSetErrorTimestamp());
1412
    if (lastComparison != 0) {
1483
    if (lastComparison != 0) {
1413
      return lastComparison;
1484
      return lastComparison;
1414
    }
1485
    }
-
 
1486
    if (isSetErrorTimestamp()) {
1415
    lastComparison = TBaseHelper.compareTo(errorTimestamp, typedOther.errorTimestamp);
1487
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorTimestamp, typedOther.errorTimestamp);
1416
    if (lastComparison != 0) {
1488
      if (lastComparison != 0) {
1417
      return lastComparison;
1489
        return lastComparison;
-
 
1490
      }
1418
    }
1491
    }
1419
    return 0;
1492
    return 0;
1420
  }
1493
  }
1421
 
1494
 
-
 
1495
  public _Fields fieldForId(int fieldId) {
-
 
1496
    return _Fields.findByThriftId(fieldId);
-
 
1497
  }
-
 
1498
 
1422
  public void read(TProtocol iprot) throws TException {
1499
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1423
    TField field;
1500
    org.apache.thrift.protocol.TField field;
1424
    iprot.readStructBegin();
1501
    iprot.readStructBegin();
1425
    while (true)
1502
    while (true)
1426
    {
1503
    {
1427
      field = iprot.readFieldBegin();
1504
      field = iprot.readFieldBegin();
1428
      if (field.type == TType.STOP) { 
1505
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1429
        break;
1506
        break;
1430
      }
1507
      }
1431
      _Fields fieldId = _Fields.findByThriftId(field.id);
1508
      switch (field.id) {
1432
      if (fieldId == null) {
1509
        case 1: // PAYMENT_ID
1433
        TProtocolUtil.skip(iprot, field.type);
1510
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1434
      } else {
1511
            this.paymentId = iprot.readI64();
1435
        switch (fieldId) {
1512
            setPaymentIdIsSet(true);
1436
          case PAYMENT_ID:
1513
          } else { 
1437
            if (field.type == TType.I64) {
1514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1438
              this.paymentId = iprot.readI64();
1515
          }
1439
              setPaymentIdIsSet(true);
1516
          break;
1440
            } else { 
1517
        case 2: // GATEWAY_ID
1441
              TProtocolUtil.skip(iprot, field.type);
1518
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1442
            }
1519
            this.gatewayId = iprot.readI64();
1443
            break;
1520
            setGatewayIdIsSet(true);
1444
          case GATEWAY_ID:
1521
          } else { 
1445
            if (field.type == TType.I64) {
1522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1446
              this.gatewayId = iprot.readI64();
1523
          }
1447
              setGatewayIdIsSet(true);
1524
          break;
1448
            } else { 
1525
        case 3: // GATEWAY_PAYMENT_ID
1449
              TProtocolUtil.skip(iprot, field.type);
1526
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1450
            }
1527
            this.gatewayPaymentId = iprot.readString();
1451
            break;
1528
          } else { 
1452
          case GATEWAY_PAYMENT_ID:
1529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1453
            if (field.type == TType.STRING) {
1530
          }
1454
              this.gatewayPaymentId = iprot.readString();
1531
          break;
1455
            } else { 
1532
        case 4: // MERCHANT_TXN_ID
1456
              TProtocolUtil.skip(iprot, field.type);
1533
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1457
            }
1534
            this.merchantTxnId = iprot.readI64();
1458
            break;
1535
            setMerchantTxnIdIsSet(true);
1459
          case MERCHANT_TXN_ID:
1536
          } else { 
1460
            if (field.type == TType.I64) {
1537
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1461
              this.merchantTxnId = iprot.readI64();
1538
          }
1462
              setMerchantTxnIdIsSet(true);
1539
          break;
1463
            } else { 
1540
        case 5: // GATEWAY_TXN_ID
1464
              TProtocolUtil.skip(iprot, field.type);
1541
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1465
            }
1542
            this.gatewayTxnId = iprot.readString();
1466
            break;
1543
          } else { 
1467
          case GATEWAY_TXN_ID:
1544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1468
            if (field.type == TType.STRING) {
1545
          }
1469
              this.gatewayTxnId = iprot.readString();
1546
          break;
1470
            } else { 
1547
        case 6: // AMOUNT
1471
              TProtocolUtil.skip(iprot, field.type);
1548
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1472
            }
1549
            this.amount = iprot.readDouble();
1473
            break;
1550
            setAmountIsSet(true);
1474
          case AMOUNT:
1551
          } else { 
1475
            if (field.type == TType.DOUBLE) {
1552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1476
              this.amount = iprot.readDouble();
1553
          }
1477
              setAmountIsSet(true);
1554
          break;
1478
            } else { 
1555
        case 7: // GATEWAY_TXN_STATUS
1479
              TProtocolUtil.skip(iprot, field.type);
1556
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1480
            }
1557
            this.gatewayTxnStatus = iprot.readString();
1481
            break;
1558
          } else { 
1482
          case GATEWAY_TXN_STATUS:
1559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1483
            if (field.type == TType.STRING) {
1560
          }
1484
              this.gatewayTxnStatus = iprot.readString();
1561
          break;
1485
            } else { 
1562
        case 8: // STATUS
1486
              TProtocolUtil.skip(iprot, field.type);
1563
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1487
            }
1564
            this.status = PaymentStatus.findByValue(iprot.readI32());
1488
            break;
1565
          } else { 
1489
          case STATUS:
1566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1490
            if (field.type == TType.I32) {
1567
          }
1491
              this.status = PaymentStatus.findByValue(iprot.readI32());
1568
          break;
1492
            } else { 
1569
        case 9: // USER_ID
1493
              TProtocolUtil.skip(iprot, field.type);
1570
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1494
            }
1571
            this.userId = iprot.readI64();
1495
            break;
1572
            setUserIdIsSet(true);
1496
          case USER_ID:
1573
          } else { 
1497
            if (field.type == TType.I64) {
1574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1498
              this.userId = iprot.readI64();
1575
          }
1499
              setUserIdIsSet(true);
1576
          break;
1500
            } else { 
1577
        case 10: // ERROR_CODE
1501
              TProtocolUtil.skip(iprot, field.type);
1578
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1502
            }
1579
            this.errorCode = iprot.readString();
1503
            break;
1580
          } else { 
1504
          case ERROR_CODE:
1581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1505
            if (field.type == TType.STRING) {
1582
          }
1506
              this.errorCode = iprot.readString();
1583
          break;
1507
            } else { 
1584
        case 11: // DESCRIPTION
1508
              TProtocolUtil.skip(iprot, field.type);
1585
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1509
            }
1586
            this.description = iprot.readString();
1510
            break;
1587
          } else { 
1511
          case DESCRIPTION:
1588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1512
            if (field.type == TType.STRING) {
1589
          }
1513
              this.description = iprot.readString();
1590
          break;
1514
            } else { 
1591
        case 12: // AUTH_CODE
1515
              TProtocolUtil.skip(iprot, field.type);
1592
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1516
            }
1593
            this.authCode = iprot.readString();
1517
            break;
1594
          } else { 
1518
          case AUTH_CODE:
1595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1519
            if (field.type == TType.STRING) {
1596
          }
1520
              this.authCode = iprot.readString();
1597
          break;
1521
            } else { 
1598
        case 13: // REFERENCE_CODE
1522
              TProtocolUtil.skip(iprot, field.type);
1599
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1523
            }
1600
            this.referenceCode = iprot.readString();
1524
            break;
1601
          } else { 
1525
          case REFERENCE_CODE:
1602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1526
            if (field.type == TType.STRING) {
1603
          }
1527
              this.referenceCode = iprot.readString();
1604
          break;
1528
            } else { 
1605
        case 14: // SESSION_ID
1529
              TProtocolUtil.skip(iprot, field.type);
1606
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1530
            }
1607
            this.sessionId = iprot.readString();
1531
            break;
1608
          } else { 
1532
          case SESSION_ID:
1609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1533
            if (field.type == TType.STRING) {
1610
          }
1534
              this.sessionId = iprot.readString();
1611
          break;
1535
            } else { 
1612
        case 15: // GATEWAY_TXN_DATE
1536
              TProtocolUtil.skip(iprot, field.type);
1613
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1537
            }
1614
            this.gatewayTxnDate = iprot.readString();
1538
            break;
1615
          } else { 
1539
          case GATEWAY_TXN_DATE:
1616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1540
            if (field.type == TType.STRING) {
1617
          }
1541
              this.gatewayTxnDate = iprot.readString();
1618
          break;
1542
            } else { 
1619
        case 16: // ATTRIBUTES
1543
              TProtocolUtil.skip(iprot, field.type);
1620
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1544
            }
1621
            {
1545
            break;
1622
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
1546
          case ATTRIBUTES:
1623
              this.attributes = new ArrayList<Attribute>(_list4.size);
1547
            if (field.type == TType.LIST) {
1624
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
1548
              {
1625
              {
1549
                TList _list4 = iprot.readListBegin();
-
 
1550
                this.attributes = new ArrayList<Attribute>(_list4.size);
-
 
1551
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
1552
                {
-
 
1553
                  Attribute _elem6;
1626
                Attribute _elem6; // required
1554
                  _elem6 = new Attribute();
1627
                _elem6 = new Attribute();
1555
                  _elem6.read(iprot);
1628
                _elem6.read(iprot);
1556
                  this.attributes.add(_elem6);
1629
                this.attributes.add(_elem6);
1557
                }
-
 
1558
                iprot.readListEnd();
-
 
1559
              }
1630
              }
1560
            } else { 
-
 
1561
              TProtocolUtil.skip(iprot, field.type);
-
 
1562
            }
-
 
1563
            break;
-
 
1564
          case INIT_TIMESTAMP:
-
 
1565
            if (field.type == TType.I64) {
-
 
1566
              this.initTimestamp = iprot.readI64();
-
 
1567
              setInitTimestampIsSet(true);
-
 
1568
            } else { 
-
 
1569
              TProtocolUtil.skip(iprot, field.type);
-
 
1570
            }
-
 
1571
            break;
-
 
1572
          case SUCCESS_TIMESTAMP:
-
 
1573
            if (field.type == TType.I64) {
-
 
1574
              this.successTimestamp = iprot.readI64();
-
 
1575
              setSuccessTimestampIsSet(true);
-
 
1576
            } else { 
-
 
1577
              TProtocolUtil.skip(iprot, field.type);
-
 
1578
            }
-
 
1579
            break;
-
 
1580
          case ERROR_TIMESTAMP:
-
 
1581
            if (field.type == TType.I64) {
-
 
1582
              this.errorTimestamp = iprot.readI64();
-
 
1583
              setErrorTimestampIsSet(true);
1631
              iprot.readListEnd();
1584
            } else { 
-
 
1585
              TProtocolUtil.skip(iprot, field.type);
-
 
1586
            }
1632
            }
-
 
1633
          } else { 
-
 
1634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1635
          }
1587
            break;
1636
          break;
-
 
1637
        case 17: // INIT_TIMESTAMP
-
 
1638
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1639
            this.initTimestamp = iprot.readI64();
-
 
1640
            setInitTimestampIsSet(true);
-
 
1641
          } else { 
-
 
1642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1643
          }
-
 
1644
          break;
-
 
1645
        case 18: // SUCCESS_TIMESTAMP
-
 
1646
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1647
            this.successTimestamp = iprot.readI64();
-
 
1648
            setSuccessTimestampIsSet(true);
-
 
1649
          } else { 
-
 
1650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1651
          }
-
 
1652
          break;
-
 
1653
        case 19: // ERROR_TIMESTAMP
-
 
1654
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1655
            this.errorTimestamp = iprot.readI64();
-
 
1656
            setErrorTimestampIsSet(true);
-
 
1657
          } else { 
-
 
1658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1588
        }
1659
          }
1589
        iprot.readFieldEnd();
1660
          break;
-
 
1661
        default:
-
 
1662
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590
      }
1663
      }
-
 
1664
      iprot.readFieldEnd();
1591
    }
1665
    }
1592
    iprot.readStructEnd();
1666
    iprot.readStructEnd();
1593
    validate();
1667
    validate();
1594
  }
1668
  }
1595
 
1669
 
1596
  public void write(TProtocol oprot) throws TException {
1670
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1597
    validate();
1671
    validate();
1598
 
1672
 
1599
    oprot.writeStructBegin(STRUCT_DESC);
1673
    oprot.writeStructBegin(STRUCT_DESC);
1600
    oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
1674
    oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
1601
    oprot.writeI64(this.paymentId);
1675
    oprot.writeI64(this.paymentId);
Line 1663... Line 1737...
1663
      oprot.writeFieldEnd();
1737
      oprot.writeFieldEnd();
1664
    }
1738
    }
1665
    if (this.attributes != null) {
1739
    if (this.attributes != null) {
1666
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
1740
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
1667
      {
1741
      {
1668
        oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
1742
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
1669
        for (Attribute _iter7 : this.attributes)
1743
        for (Attribute _iter7 : this.attributes)
1670
        {
1744
        {
1671
          _iter7.write(oprot);
1745
          _iter7.write(oprot);
1672
        }
1746
        }
1673
        oprot.writeListEnd();
1747
        oprot.writeListEnd();
Line 1734... Line 1808...
1734
    if (!first) sb.append(", ");
1808
    if (!first) sb.append(", ");
1735
    sb.append("status:");
1809
    sb.append("status:");
1736
    if (this.status == null) {
1810
    if (this.status == null) {
1737
      sb.append("null");
1811
      sb.append("null");
1738
    } else {
1812
    } else {
1739
      String status_name = status.name();
-
 
1740
      if (status_name != null) {
-
 
1741
        sb.append(status_name);
-
 
1742
        sb.append(" (");
-
 
1743
      }
-
 
1744
      sb.append(this.status);
1813
      sb.append(this.status);
1745
      if (status_name != null) {
-
 
1746
        sb.append(")");
-
 
1747
      }
-
 
1748
    }
1814
    }
1749
    first = false;
1815
    first = false;
1750
    if (!first) sb.append(", ");
1816
    if (!first) sb.append(", ");
1751
    sb.append("userId:");
1817
    sb.append("userId:");
1752
    sb.append(this.userId);
1818
    sb.append(this.userId);
Line 1821... Line 1887...
1821
    first = false;
1887
    first = false;
1822
    sb.append(")");
1888
    sb.append(")");
1823
    return sb.toString();
1889
    return sb.toString();
1824
  }
1890
  }
1825
 
1891
 
1826
  public void validate() throws TException {
1892
  public void validate() throws org.apache.thrift.TException {
1827
    // check for required fields
1893
    // check for required fields
1828
  }
1894
  }
1829
 
1895
 
-
 
1896
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1897
    try {
-
 
1898
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1899
    } catch (org.apache.thrift.TException te) {
-
 
1900
      throw new java.io.IOException(te);
-
 
1901
    }
-
 
1902
  }
-
 
1903
 
-
 
1904
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1905
    try {
-
 
1906
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1907
      __isset_bit_vector = new BitSet(1);
-
 
1908
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1909
    } catch (org.apache.thrift.TException te) {
-
 
1910
      throw new java.io.IOException(te);
-
 
1911
    }
-
 
1912
  }
-
 
1913
 
1830
}
1914
}
1831
 
1915