Subversion Repositories SmartDukaan

Rev

Rev 4600 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4600 Rev 4905
Line 21... Line 21...
21
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
22
 
22
 
23
public class PaymentSettlement implements org.apache.thrift.TBase<PaymentSettlement, PaymentSettlement._Fields>, java.io.Serializable, Cloneable {
23
public class PaymentSettlement implements org.apache.thrift.TBase<PaymentSettlement, PaymentSettlement._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PaymentSettlement");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PaymentSettlement");
25
 
25
 
26
  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)1);
-
 
27
  private static final org.apache.thrift.protocol.TField PAYMENT_GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentGatewayId", org.apache.thrift.protocol.TType.I64, (short)2);
26
  private static final org.apache.thrift.protocol.TField PAYMENT_GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentGatewayId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  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)3);
27
  private static final org.apache.thrift.protocol.TField REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceId", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDate", org.apache.thrift.protocol.TType.I64, (short)4);
28
  private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDate", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
29
  private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField OTHER_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("otherCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
30
  private static final org.apache.thrift.protocol.TField OTHER_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("otherCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
32
  private static final org.apache.thrift.protocol.TField NET_COLLECTION_FIELD_DESC = new org.apache.thrift.protocol.TField("netCollection", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
31
  private static final org.apache.thrift.protocol.TField NET_COLLECTION_FIELD_DESC = new org.apache.thrift.protocol.TField("netCollection", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
33
 
32
 
34
  private String gatewayTxnId; // required
-
 
35
  private long paymentGatewayId; // required
33
  private long paymentGatewayId; // required
36
  private long paymentId; // required
34
  private long referenceId; // required
37
  private long settlementDate; // required
35
  private long settlementDate; // required
38
  private double serviceTax; // required
36
  private double serviceTax; // required
39
  private double otherCharges; // required
37
  private double otherCharges; // required
40
  private double netCollection; // required
38
  private double netCollection; // required
41
 
39
 
42
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44
    GATEWAY_TXN_ID((short)1, "gatewayTxnId"),
-
 
45
    PAYMENT_GATEWAY_ID((short)2, "paymentGatewayId"),
42
    PAYMENT_GATEWAY_ID((short)2, "paymentGatewayId"),
46
    PAYMENT_ID((short)3, "paymentId"),
43
    REFERENCE_ID((short)3, "referenceId"),
47
    SETTLEMENT_DATE((short)4, "settlementDate"),
44
    SETTLEMENT_DATE((short)4, "settlementDate"),
48
    SERVICE_TAX((short)5, "serviceTax"),
45
    SERVICE_TAX((short)5, "serviceTax"),
49
    OTHER_CHARGES((short)6, "otherCharges"),
46
    OTHER_CHARGES((short)6, "otherCharges"),
50
    NET_COLLECTION((short)7, "netCollection");
47
    NET_COLLECTION((short)7, "netCollection");
51
 
48
 
Line 60... Line 57...
60
    /**
57
    /**
61
     * Find the _Fields constant that matches fieldId, or null if its not found.
58
     * Find the _Fields constant that matches fieldId, or null if its not found.
62
     */
59
     */
63
    public static _Fields findByThriftId(int fieldId) {
60
    public static _Fields findByThriftId(int fieldId) {
64
      switch(fieldId) {
61
      switch(fieldId) {
65
        case 1: // GATEWAY_TXN_ID
-
 
66
          return GATEWAY_TXN_ID;
-
 
67
        case 2: // PAYMENT_GATEWAY_ID
62
        case 2: // PAYMENT_GATEWAY_ID
68
          return PAYMENT_GATEWAY_ID;
63
          return PAYMENT_GATEWAY_ID;
69
        case 3: // PAYMENT_ID
64
        case 3: // REFERENCE_ID
70
          return PAYMENT_ID;
65
          return REFERENCE_ID;
71
        case 4: // SETTLEMENT_DATE
66
        case 4: // SETTLEMENT_DATE
72
          return SETTLEMENT_DATE;
67
          return SETTLEMENT_DATE;
73
        case 5: // SERVICE_TAX
68
        case 5: // SERVICE_TAX
74
          return SERVICE_TAX;
69
          return SERVICE_TAX;
75
        case 6: // OTHER_CHARGES
70
        case 6: // OTHER_CHARGES
Line 115... Line 110...
115
    }
110
    }
116
  }
111
  }
117
 
112
 
118
  // isset id assignments
113
  // isset id assignments
119
  private static final int __PAYMENTGATEWAYID_ISSET_ID = 0;
114
  private static final int __PAYMENTGATEWAYID_ISSET_ID = 0;
120
  private static final int __PAYMENTID_ISSET_ID = 1;
115
  private static final int __REFERENCEID_ISSET_ID = 1;
121
  private static final int __SETTLEMENTDATE_ISSET_ID = 2;
116
  private static final int __SETTLEMENTDATE_ISSET_ID = 2;
122
  private static final int __SERVICETAX_ISSET_ID = 3;
117
  private static final int __SERVICETAX_ISSET_ID = 3;
123
  private static final int __OTHERCHARGES_ISSET_ID = 4;
118
  private static final int __OTHERCHARGES_ISSET_ID = 4;
124
  private static final int __NETCOLLECTION_ISSET_ID = 5;
119
  private static final int __NETCOLLECTION_ISSET_ID = 5;
125
  private BitSet __isset_bit_vector = new BitSet(6);
120
  private BitSet __isset_bit_vector = new BitSet(6);
126
 
121
 
127
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
122
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
128
  static {
123
  static {
129
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
124
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
130
    tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
132
    tmpMap.put(_Fields.PAYMENT_GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentGatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
    tmpMap.put(_Fields.PAYMENT_GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentGatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
133
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
134
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
    tmpMap.put(_Fields.REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("referenceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
135
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
136
    tmpMap.put(_Fields.SETTLEMENT_DATE, new org.apache.thrift.meta_data.FieldMetaData("settlementDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
    tmpMap.put(_Fields.SETTLEMENT_DATE, new org.apache.thrift.meta_data.FieldMetaData("settlementDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
137
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
130
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
138
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
131
    tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
139
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
132
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
Line 147... Line 140...
147
 
140
 
148
  public PaymentSettlement() {
141
  public PaymentSettlement() {
149
  }
142
  }
150
 
143
 
151
  public PaymentSettlement(
144
  public PaymentSettlement(
152
    String gatewayTxnId,
-
 
153
    long paymentGatewayId,
145
    long paymentGatewayId,
154
    long paymentId,
146
    long referenceId,
155
    long settlementDate,
147
    long settlementDate,
156
    double serviceTax,
148
    double serviceTax,
157
    double otherCharges,
149
    double otherCharges,
158
    double netCollection)
150
    double netCollection)
159
  {
151
  {
160
    this();
152
    this();
161
    this.gatewayTxnId = gatewayTxnId;
-
 
162
    this.paymentGatewayId = paymentGatewayId;
153
    this.paymentGatewayId = paymentGatewayId;
163
    setPaymentGatewayIdIsSet(true);
154
    setPaymentGatewayIdIsSet(true);
164
    this.paymentId = paymentId;
155
    this.referenceId = referenceId;
165
    setPaymentIdIsSet(true);
156
    setReferenceIdIsSet(true);
166
    this.settlementDate = settlementDate;
157
    this.settlementDate = settlementDate;
167
    setSettlementDateIsSet(true);
158
    setSettlementDateIsSet(true);
168
    this.serviceTax = serviceTax;
159
    this.serviceTax = serviceTax;
169
    setServiceTaxIsSet(true);
160
    setServiceTaxIsSet(true);
170
    this.otherCharges = otherCharges;
161
    this.otherCharges = otherCharges;
Line 177... Line 168...
177
   * Performs a deep copy on <i>other</i>.
168
   * Performs a deep copy on <i>other</i>.
178
   */
169
   */
179
  public PaymentSettlement(PaymentSettlement other) {
170
  public PaymentSettlement(PaymentSettlement other) {
180
    __isset_bit_vector.clear();
171
    __isset_bit_vector.clear();
181
    __isset_bit_vector.or(other.__isset_bit_vector);
172
    __isset_bit_vector.or(other.__isset_bit_vector);
182
    if (other.isSetGatewayTxnId()) {
-
 
183
      this.gatewayTxnId = other.gatewayTxnId;
-
 
184
    }
-
 
185
    this.paymentGatewayId = other.paymentGatewayId;
173
    this.paymentGatewayId = other.paymentGatewayId;
186
    this.paymentId = other.paymentId;
174
    this.referenceId = other.referenceId;
187
    this.settlementDate = other.settlementDate;
175
    this.settlementDate = other.settlementDate;
188
    this.serviceTax = other.serviceTax;
176
    this.serviceTax = other.serviceTax;
189
    this.otherCharges = other.otherCharges;
177
    this.otherCharges = other.otherCharges;
190
    this.netCollection = other.netCollection;
178
    this.netCollection = other.netCollection;
191
  }
179
  }
Line 194... Line 182...
194
    return new PaymentSettlement(this);
182
    return new PaymentSettlement(this);
195
  }
183
  }
196
 
184
 
197
  @Override
185
  @Override
198
  public void clear() {
186
  public void clear() {
199
    this.gatewayTxnId = null;
-
 
200
    setPaymentGatewayIdIsSet(false);
187
    setPaymentGatewayIdIsSet(false);
201
    this.paymentGatewayId = 0;
188
    this.paymentGatewayId = 0;
202
    setPaymentIdIsSet(false);
189
    setReferenceIdIsSet(false);
203
    this.paymentId = 0;
190
    this.referenceId = 0;
204
    setSettlementDateIsSet(false);
191
    setSettlementDateIsSet(false);
205
    this.settlementDate = 0;
192
    this.settlementDate = 0;
206
    setServiceTaxIsSet(false);
193
    setServiceTaxIsSet(false);
207
    this.serviceTax = 0.0;
194
    this.serviceTax = 0.0;
208
    setOtherChargesIsSet(false);
195
    setOtherChargesIsSet(false);
209
    this.otherCharges = 0.0;
196
    this.otherCharges = 0.0;
210
    setNetCollectionIsSet(false);
197
    setNetCollectionIsSet(false);
211
    this.netCollection = 0.0;
198
    this.netCollection = 0.0;
212
  }
199
  }
213
 
200
 
214
  public String getGatewayTxnId() {
-
 
215
    return this.gatewayTxnId;
-
 
216
  }
-
 
217
 
-
 
218
  public void setGatewayTxnId(String gatewayTxnId) {
-
 
219
    this.gatewayTxnId = gatewayTxnId;
-
 
220
  }
-
 
221
 
-
 
222
  public void unsetGatewayTxnId() {
-
 
223
    this.gatewayTxnId = null;
-
 
224
  }
-
 
225
 
-
 
226
  /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
-
 
227
  public boolean isSetGatewayTxnId() {
-
 
228
    return this.gatewayTxnId != null;
-
 
229
  }
-
 
230
 
-
 
231
  public void setGatewayTxnIdIsSet(boolean value) {
-
 
232
    if (!value) {
-
 
233
      this.gatewayTxnId = null;
-
 
234
    }
-
 
235
  }
-
 
236
 
-
 
237
  public long getPaymentGatewayId() {
201
  public long getPaymentGatewayId() {
238
    return this.paymentGatewayId;
202
    return this.paymentGatewayId;
239
  }
203
  }
240
 
204
 
241
  public void setPaymentGatewayId(long paymentGatewayId) {
205
  public void setPaymentGatewayId(long paymentGatewayId) {
Line 254... Line 218...
254
 
218
 
255
  public void setPaymentGatewayIdIsSet(boolean value) {
219
  public void setPaymentGatewayIdIsSet(boolean value) {
256
    __isset_bit_vector.set(__PAYMENTGATEWAYID_ISSET_ID, value);
220
    __isset_bit_vector.set(__PAYMENTGATEWAYID_ISSET_ID, value);
257
  }
221
  }
258
 
222
 
259
  public long getPaymentId() {
223
  public long getReferenceId() {
260
    return this.paymentId;
224
    return this.referenceId;
261
  }
225
  }
262
 
226
 
263
  public void setPaymentId(long paymentId) {
227
  public void setReferenceId(long referenceId) {
264
    this.paymentId = paymentId;
228
    this.referenceId = referenceId;
265
    setPaymentIdIsSet(true);
229
    setReferenceIdIsSet(true);
266
  }
230
  }
267
 
231
 
268
  public void unsetPaymentId() {
232
  public void unsetReferenceId() {
269
    __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
233
    __isset_bit_vector.clear(__REFERENCEID_ISSET_ID);
270
  }
234
  }
271
 
235
 
272
  /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
236
  /** Returns true if field referenceId is set (has been assigned a value) and false otherwise */
273
  public boolean isSetPaymentId() {
237
  public boolean isSetReferenceId() {
274
    return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
238
    return __isset_bit_vector.get(__REFERENCEID_ISSET_ID);
275
  }
239
  }
276
 
240
 
277
  public void setPaymentIdIsSet(boolean value) {
241
  public void setReferenceIdIsSet(boolean value) {
278
    __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
242
    __isset_bit_vector.set(__REFERENCEID_ISSET_ID, value);
279
  }
243
  }
280
 
244
 
281
  public long getSettlementDate() {
245
  public long getSettlementDate() {
282
    return this.settlementDate;
246
    return this.settlementDate;
283
  }
247
  }
Line 366... Line 330...
366
    __isset_bit_vector.set(__NETCOLLECTION_ISSET_ID, value);
330
    __isset_bit_vector.set(__NETCOLLECTION_ISSET_ID, value);
367
  }
331
  }
368
 
332
 
369
  public void setFieldValue(_Fields field, Object value) {
333
  public void setFieldValue(_Fields field, Object value) {
370
    switch (field) {
334
    switch (field) {
371
    case GATEWAY_TXN_ID:
-
 
372
      if (value == null) {
-
 
373
        unsetGatewayTxnId();
-
 
374
      } else {
-
 
375
        setGatewayTxnId((String)value);
-
 
376
      }
-
 
377
      break;
-
 
378
 
-
 
379
    case PAYMENT_GATEWAY_ID:
335
    case PAYMENT_GATEWAY_ID:
380
      if (value == null) {
336
      if (value == null) {
381
        unsetPaymentGatewayId();
337
        unsetPaymentGatewayId();
382
      } else {
338
      } else {
383
        setPaymentGatewayId((Long)value);
339
        setPaymentGatewayId((Long)value);
384
      }
340
      }
385
      break;
341
      break;
386
 
342
 
387
    case PAYMENT_ID:
343
    case REFERENCE_ID:
388
      if (value == null) {
344
      if (value == null) {
389
        unsetPaymentId();
345
        unsetReferenceId();
390
      } else {
346
      } else {
391
        setPaymentId((Long)value);
347
        setReferenceId((Long)value);
392
      }
348
      }
393
      break;
349
      break;
394
 
350
 
395
    case SETTLEMENT_DATE:
351
    case SETTLEMENT_DATE:
396
      if (value == null) {
352
      if (value == null) {
Line 427... Line 383...
427
    }
383
    }
428
  }
384
  }
429
 
385
 
430
  public Object getFieldValue(_Fields field) {
386
  public Object getFieldValue(_Fields field) {
431
    switch (field) {
387
    switch (field) {
432
    case GATEWAY_TXN_ID:
-
 
433
      return getGatewayTxnId();
-
 
434
 
-
 
435
    case PAYMENT_GATEWAY_ID:
388
    case PAYMENT_GATEWAY_ID:
436
      return Long.valueOf(getPaymentGatewayId());
389
      return Long.valueOf(getPaymentGatewayId());
437
 
390
 
438
    case PAYMENT_ID:
391
    case REFERENCE_ID:
439
      return Long.valueOf(getPaymentId());
392
      return Long.valueOf(getReferenceId());
440
 
393
 
441
    case SETTLEMENT_DATE:
394
    case SETTLEMENT_DATE:
442
      return Long.valueOf(getSettlementDate());
395
      return Long.valueOf(getSettlementDate());
443
 
396
 
444
    case SERVICE_TAX:
397
    case SERVICE_TAX:
Line 459... Line 412...
459
    if (field == null) {
412
    if (field == null) {
460
      throw new IllegalArgumentException();
413
      throw new IllegalArgumentException();
461
    }
414
    }
462
 
415
 
463
    switch (field) {
416
    switch (field) {
464
    case GATEWAY_TXN_ID:
-
 
465
      return isSetGatewayTxnId();
-
 
466
    case PAYMENT_GATEWAY_ID:
417
    case PAYMENT_GATEWAY_ID:
467
      return isSetPaymentGatewayId();
418
      return isSetPaymentGatewayId();
468
    case PAYMENT_ID:
419
    case REFERENCE_ID:
469
      return isSetPaymentId();
420
      return isSetReferenceId();
470
    case SETTLEMENT_DATE:
421
    case SETTLEMENT_DATE:
471
      return isSetSettlementDate();
422
      return isSetSettlementDate();
472
    case SERVICE_TAX:
423
    case SERVICE_TAX:
473
      return isSetServiceTax();
424
      return isSetServiceTax();
474
    case OTHER_CHARGES:
425
    case OTHER_CHARGES:
Line 490... Line 441...
490
 
441
 
491
  public boolean equals(PaymentSettlement that) {
442
  public boolean equals(PaymentSettlement that) {
492
    if (that == null)
443
    if (that == null)
493
      return false;
444
      return false;
494
 
445
 
495
    boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
-
 
496
    boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
-
 
497
    if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
-
 
498
      if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
-
 
499
        return false;
-
 
500
      if (!this.gatewayTxnId.equals(that.gatewayTxnId))
-
 
501
        return false;
-
 
502
    }
-
 
503
 
-
 
504
    boolean this_present_paymentGatewayId = true;
446
    boolean this_present_paymentGatewayId = true;
505
    boolean that_present_paymentGatewayId = true;
447
    boolean that_present_paymentGatewayId = true;
506
    if (this_present_paymentGatewayId || that_present_paymentGatewayId) {
448
    if (this_present_paymentGatewayId || that_present_paymentGatewayId) {
507
      if (!(this_present_paymentGatewayId && that_present_paymentGatewayId))
449
      if (!(this_present_paymentGatewayId && that_present_paymentGatewayId))
508
        return false;
450
        return false;
509
      if (this.paymentGatewayId != that.paymentGatewayId)
451
      if (this.paymentGatewayId != that.paymentGatewayId)
510
        return false;
452
        return false;
511
    }
453
    }
512
 
454
 
513
    boolean this_present_paymentId = true;
455
    boolean this_present_referenceId = true;
514
    boolean that_present_paymentId = true;
456
    boolean that_present_referenceId = true;
515
    if (this_present_paymentId || that_present_paymentId) {
457
    if (this_present_referenceId || that_present_referenceId) {
516
      if (!(this_present_paymentId && that_present_paymentId))
458
      if (!(this_present_referenceId && that_present_referenceId))
517
        return false;
459
        return false;
518
      if (this.paymentId != that.paymentId)
460
      if (this.referenceId != that.referenceId)
519
        return false;
461
        return false;
520
    }
462
    }
521
 
463
 
522
    boolean this_present_settlementDate = true;
464
    boolean this_present_settlementDate = true;
523
    boolean that_present_settlementDate = true;
465
    boolean that_present_settlementDate = true;
Line 569... Line 511...
569
    }
511
    }
570
 
512
 
571
    int lastComparison = 0;
513
    int lastComparison = 0;
572
    PaymentSettlement typedOther = (PaymentSettlement)other;
514
    PaymentSettlement typedOther = (PaymentSettlement)other;
573
 
515
 
574
    lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
-
 
575
    if (lastComparison != 0) {
-
 
576
      return lastComparison;
-
 
577
    }
-
 
578
    if (isSetGatewayTxnId()) {
-
 
579
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
-
 
580
      if (lastComparison != 0) {
-
 
581
        return lastComparison;
-
 
582
      }
-
 
583
    }
-
 
584
    lastComparison = Boolean.valueOf(isSetPaymentGatewayId()).compareTo(typedOther.isSetPaymentGatewayId());
516
    lastComparison = Boolean.valueOf(isSetPaymentGatewayId()).compareTo(typedOther.isSetPaymentGatewayId());
585
    if (lastComparison != 0) {
517
    if (lastComparison != 0) {
586
      return lastComparison;
518
      return lastComparison;
587
    }
519
    }
588
    if (isSetPaymentGatewayId()) {
520
    if (isSetPaymentGatewayId()) {
589
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentGatewayId, typedOther.paymentGatewayId);
521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentGatewayId, typedOther.paymentGatewayId);
590
      if (lastComparison != 0) {
522
      if (lastComparison != 0) {
591
        return lastComparison;
523
        return lastComparison;
592
      }
524
      }
593
    }
525
    }
594
    lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
526
    lastComparison = Boolean.valueOf(isSetReferenceId()).compareTo(typedOther.isSetReferenceId());
595
    if (lastComparison != 0) {
527
    if (lastComparison != 0) {
596
      return lastComparison;
528
      return lastComparison;
597
    }
529
    }
598
    if (isSetPaymentId()) {
530
    if (isSetReferenceId()) {
599
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceId, typedOther.referenceId);
600
      if (lastComparison != 0) {
532
      if (lastComparison != 0) {
601
        return lastComparison;
533
        return lastComparison;
602
      }
534
      }
603
    }
535
    }
604
    lastComparison = Boolean.valueOf(isSetSettlementDate()).compareTo(typedOther.isSetSettlementDate());
536
    lastComparison = Boolean.valueOf(isSetSettlementDate()).compareTo(typedOther.isSetSettlementDate());
Line 656... Line 588...
656
      field = iprot.readFieldBegin();
588
      field = iprot.readFieldBegin();
657
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
589
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
658
        break;
590
        break;
659
      }
591
      }
660
      switch (field.id) {
592
      switch (field.id) {
661
        case 1: // GATEWAY_TXN_ID
-
 
662
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
663
            this.gatewayTxnId = iprot.readString();
-
 
664
          } else { 
-
 
665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
666
          }
-
 
667
          break;
-
 
668
        case 2: // PAYMENT_GATEWAY_ID
593
        case 2: // PAYMENT_GATEWAY_ID
669
          if (field.type == org.apache.thrift.protocol.TType.I64) {
594
          if (field.type == org.apache.thrift.protocol.TType.I64) {
670
            this.paymentGatewayId = iprot.readI64();
595
            this.paymentGatewayId = iprot.readI64();
671
            setPaymentGatewayIdIsSet(true);
596
            setPaymentGatewayIdIsSet(true);
672
          } else { 
597
          } else { 
673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674
          }
599
          }
675
          break;
600
          break;
676
        case 3: // PAYMENT_ID
601
        case 3: // REFERENCE_ID
677
          if (field.type == org.apache.thrift.protocol.TType.I64) {
602
          if (field.type == org.apache.thrift.protocol.TType.I64) {
678
            this.paymentId = iprot.readI64();
603
            this.referenceId = iprot.readI64();
679
            setPaymentIdIsSet(true);
604
            setReferenceIdIsSet(true);
680
          } else { 
605
          } else { 
681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
682
          }
607
          }
683
          break;
608
          break;
684
        case 4: // SETTLEMENT_DATE
609
        case 4: // SETTLEMENT_DATE
Line 724... Line 649...
724
 
649
 
725
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
650
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
726
    validate();
651
    validate();
727
 
652
 
728
    oprot.writeStructBegin(STRUCT_DESC);
653
    oprot.writeStructBegin(STRUCT_DESC);
729
    if (this.gatewayTxnId != null) {
-
 
730
      oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
-
 
731
      oprot.writeString(this.gatewayTxnId);
-
 
732
      oprot.writeFieldEnd();
-
 
733
    }
-
 
734
    oprot.writeFieldBegin(PAYMENT_GATEWAY_ID_FIELD_DESC);
654
    oprot.writeFieldBegin(PAYMENT_GATEWAY_ID_FIELD_DESC);
735
    oprot.writeI64(this.paymentGatewayId);
655
    oprot.writeI64(this.paymentGatewayId);
736
    oprot.writeFieldEnd();
656
    oprot.writeFieldEnd();
737
    oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
657
    oprot.writeFieldBegin(REFERENCE_ID_FIELD_DESC);
738
    oprot.writeI64(this.paymentId);
658
    oprot.writeI64(this.referenceId);
739
    oprot.writeFieldEnd();
659
    oprot.writeFieldEnd();
740
    oprot.writeFieldBegin(SETTLEMENT_DATE_FIELD_DESC);
660
    oprot.writeFieldBegin(SETTLEMENT_DATE_FIELD_DESC);
741
    oprot.writeI64(this.settlementDate);
661
    oprot.writeI64(this.settlementDate);
742
    oprot.writeFieldEnd();
662
    oprot.writeFieldEnd();
743
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
663
    oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);
Line 756... Line 676...
756
  @Override
676
  @Override
757
  public String toString() {
677
  public String toString() {
758
    StringBuilder sb = new StringBuilder("PaymentSettlement(");
678
    StringBuilder sb = new StringBuilder("PaymentSettlement(");
759
    boolean first = true;
679
    boolean first = true;
760
 
680
 
761
    sb.append("gatewayTxnId:");
-
 
762
    if (this.gatewayTxnId == null) {
-
 
763
      sb.append("null");
-
 
764
    } else {
-
 
765
      sb.append(this.gatewayTxnId);
-
 
766
    }
-
 
767
    first = false;
-
 
768
    if (!first) sb.append(", ");
-
 
769
    sb.append("paymentGatewayId:");
681
    sb.append("paymentGatewayId:");
770
    sb.append(this.paymentGatewayId);
682
    sb.append(this.paymentGatewayId);
771
    first = false;
683
    first = false;
772
    if (!first) sb.append(", ");
684
    if (!first) sb.append(", ");
773
    sb.append("paymentId:");
685
    sb.append("referenceId:");
774
    sb.append(this.paymentId);
686
    sb.append(this.referenceId);
775
    first = false;
687
    first = false;
776
    if (!first) sb.append(", ");
688
    if (!first) sb.append(", ");
777
    sb.append("settlementDate:");
689
    sb.append("settlementDate:");
778
    sb.append(this.settlementDate);
690
    sb.append(this.settlementDate);
779
    first = false;
691
    first = false;