| Line 27... |
Line 27... |
| 27 |
private static final TStruct STRUCT_DESC = new TStruct("Payment");
|
27 |
private static final TStruct STRUCT_DESC = new TStruct("Payment");
|
| 28 |
|
28 |
|
| 29 |
private static final TField PAYMENT_ID_FIELD_DESC = new TField("paymentId", TType.I64, (short)1);
|
29 |
private static final TField PAYMENT_ID_FIELD_DESC = new TField("paymentId", TType.I64, (short)1);
|
| 30 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)2);
|
30 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)2);
|
| 31 |
private static final TField GATEWAY_PAYMENT_ID_FIELD_DESC = new TField("gatewayPaymentId", TType.STRING, (short)3);
|
31 |
private static final TField GATEWAY_PAYMENT_ID_FIELD_DESC = new TField("gatewayPaymentId", TType.STRING, (short)3);
|
| 32 |
private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.STRING, (short)4);
|
32 |
private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)4);
|
| 33 |
private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)5);
|
33 |
private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)5);
|
| 34 |
private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)6);
|
34 |
private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)6);
|
| 35 |
private static final TField GATEWAY_TXN_STATUS_FIELD_DESC = new TField("gatewayTxnStatus", TType.STRING, (short)7);
|
35 |
private static final TField GATEWAY_TXN_STATUS_FIELD_DESC = new TField("gatewayTxnStatus", TType.STRING, (short)7);
|
| 36 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
|
36 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
|
| 37 |
private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)9);
|
37 |
private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)9);
|
| Line 47... |
Line 47... |
| 47 |
private static final TField ERROR_TIMESTAMP_FIELD_DESC = new TField("errorTimestamp", TType.I64, (short)19);
|
47 |
private static final TField ERROR_TIMESTAMP_FIELD_DESC = new TField("errorTimestamp", TType.I64, (short)19);
|
| 48 |
|
48 |
|
| 49 |
private long paymentId;
|
49 |
private long paymentId;
|
| 50 |
private long gatewayId;
|
50 |
private long gatewayId;
|
| 51 |
private String gatewayPaymentId;
|
51 |
private String gatewayPaymentId;
|
| 52 |
private String merchantTxnId;
|
52 |
private long merchantTxnId;
|
| 53 |
private String gatewayTxnId;
|
53 |
private String gatewayTxnId;
|
| 54 |
private double amount;
|
54 |
private double amount;
|
| 55 |
private String gatewayTxnStatus;
|
55 |
private String gatewayTxnStatus;
|
| 56 |
private PaymentStatus status;
|
56 |
private PaymentStatus status;
|
| 57 |
private long userId;
|
57 |
private long userId;
|
| Line 144... |
Line 144... |
| 144 |
}
|
144 |
}
|
| 145 |
|
145 |
|
| 146 |
// isset id assignments
|
146 |
// isset id assignments
|
| 147 |
private static final int __PAYMENTID_ISSET_ID = 0;
|
147 |
private static final int __PAYMENTID_ISSET_ID = 0;
|
| 148 |
private static final int __GATEWAYID_ISSET_ID = 1;
|
148 |
private static final int __GATEWAYID_ISSET_ID = 1;
|
| - |
|
149 |
private static final int __MERCHANTTXNID_ISSET_ID = 2;
|
| 149 |
private static final int __AMOUNT_ISSET_ID = 2;
|
150 |
private static final int __AMOUNT_ISSET_ID = 3;
|
| 150 |
private static final int __USERID_ISSET_ID = 3;
|
151 |
private static final int __USERID_ISSET_ID = 4;
|
| 151 |
private static final int __INITTIMESTAMP_ISSET_ID = 4;
|
152 |
private static final int __INITTIMESTAMP_ISSET_ID = 5;
|
| 152 |
private static final int __SUCCESSTIMESTAMP_ISSET_ID = 5;
|
153 |
private static final int __SUCCESSTIMESTAMP_ISSET_ID = 6;
|
| 153 |
private static final int __ERRORTIMESTAMP_ISSET_ID = 6;
|
154 |
private static final int __ERRORTIMESTAMP_ISSET_ID = 7;
|
| 154 |
private BitSet __isset_bit_vector = new BitSet(7);
|
155 |
private BitSet __isset_bit_vector = new BitSet(8);
|
| 155 |
|
156 |
|
| 156 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
157 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 157 |
put(_Fields.PAYMENT_ID, new FieldMetaData("paymentId", TFieldRequirementType.DEFAULT,
|
158 |
put(_Fields.PAYMENT_ID, new FieldMetaData("paymentId", TFieldRequirementType.DEFAULT,
|
| 158 |
new FieldValueMetaData(TType.I64)));
|
159 |
new FieldValueMetaData(TType.I64)));
|
| 159 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT,
|
160 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT,
|
| 160 |
new FieldValueMetaData(TType.I64)));
|
161 |
new FieldValueMetaData(TType.I64)));
|
| 161 |
put(_Fields.GATEWAY_PAYMENT_ID, new FieldMetaData("gatewayPaymentId", TFieldRequirementType.DEFAULT,
|
162 |
put(_Fields.GATEWAY_PAYMENT_ID, new FieldMetaData("gatewayPaymentId", TFieldRequirementType.DEFAULT,
|
| 162 |
new FieldValueMetaData(TType.STRING)));
|
163 |
new FieldValueMetaData(TType.STRING)));
|
| 163 |
put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT,
|
164 |
put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT,
|
| 164 |
new FieldValueMetaData(TType.STRING)));
|
165 |
new FieldValueMetaData(TType.I64)));
|
| 165 |
put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT,
|
166 |
put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT,
|
| 166 |
new FieldValueMetaData(TType.STRING)));
|
167 |
new FieldValueMetaData(TType.STRING)));
|
| 167 |
put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT,
|
168 |
put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT,
|
| 168 |
new FieldValueMetaData(TType.DOUBLE)));
|
169 |
new FieldValueMetaData(TType.DOUBLE)));
|
| 169 |
put(_Fields.GATEWAY_TXN_STATUS, new FieldMetaData("gatewayTxnStatus", TFieldRequirementType.DEFAULT,
|
170 |
put(_Fields.GATEWAY_TXN_STATUS, new FieldMetaData("gatewayTxnStatus", TFieldRequirementType.DEFAULT,
|
| Line 204... |
Line 205... |
| 204 |
|
205 |
|
| 205 |
public Payment(
|
206 |
public Payment(
|
| 206 |
long paymentId,
|
207 |
long paymentId,
|
| 207 |
long gatewayId,
|
208 |
long gatewayId,
|
| 208 |
String gatewayPaymentId,
|
209 |
String gatewayPaymentId,
|
| 209 |
String merchantTxnId,
|
210 |
long merchantTxnId,
|
| 210 |
String gatewayTxnId,
|
211 |
String gatewayTxnId,
|
| 211 |
double amount,
|
212 |
double amount,
|
| 212 |
String gatewayTxnStatus,
|
213 |
String gatewayTxnStatus,
|
| 213 |
PaymentStatus status,
|
214 |
PaymentStatus status,
|
| 214 |
long userId,
|
215 |
long userId,
|
| Line 228... |
Line 229... |
| 228 |
setPaymentIdIsSet(true);
|
229 |
setPaymentIdIsSet(true);
|
| 229 |
this.gatewayId = gatewayId;
|
230 |
this.gatewayId = gatewayId;
|
| 230 |
setGatewayIdIsSet(true);
|
231 |
setGatewayIdIsSet(true);
|
| 231 |
this.gatewayPaymentId = gatewayPaymentId;
|
232 |
this.gatewayPaymentId = gatewayPaymentId;
|
| 232 |
this.merchantTxnId = merchantTxnId;
|
233 |
this.merchantTxnId = merchantTxnId;
|
| - |
|
234 |
setMerchantTxnIdIsSet(true);
|
| 233 |
this.gatewayTxnId = gatewayTxnId;
|
235 |
this.gatewayTxnId = gatewayTxnId;
|
| 234 |
this.amount = amount;
|
236 |
this.amount = amount;
|
| 235 |
setAmountIsSet(true);
|
237 |
setAmountIsSet(true);
|
| 236 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
238 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 237 |
this.status = status;
|
239 |
this.status = status;
|
| Line 261... |
Line 263... |
| 261 |
this.paymentId = other.paymentId;
|
263 |
this.paymentId = other.paymentId;
|
| 262 |
this.gatewayId = other.gatewayId;
|
264 |
this.gatewayId = other.gatewayId;
|
| 263 |
if (other.isSetGatewayPaymentId()) {
|
265 |
if (other.isSetGatewayPaymentId()) {
|
| 264 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
266 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
| 265 |
}
|
267 |
}
|
| 266 |
if (other.isSetMerchantTxnId()) {
|
- |
|
| 267 |
this.merchantTxnId = other.merchantTxnId;
|
268 |
this.merchantTxnId = other.merchantTxnId;
|
| 268 |
}
|
- |
|
| 269 |
if (other.isSetGatewayTxnId()) {
|
269 |
if (other.isSetGatewayTxnId()) {
|
| 270 |
this.gatewayTxnId = other.gatewayTxnId;
|
270 |
this.gatewayTxnId = other.gatewayTxnId;
|
| 271 |
}
|
271 |
}
|
| 272 |
this.amount = other.amount;
|
272 |
this.amount = other.amount;
|
| 273 |
if (other.isSetGatewayTxnStatus()) {
|
273 |
if (other.isSetGatewayTxnStatus()) {
|
| Line 384... |
Line 384... |
| 384 |
if (!value) {
|
384 |
if (!value) {
|
| 385 |
this.gatewayPaymentId = null;
|
385 |
this.gatewayPaymentId = null;
|
| 386 |
}
|
386 |
}
|
| 387 |
}
|
387 |
}
|
| 388 |
|
388 |
|
| 389 |
public String getMerchantTxnId() {
|
389 |
public long getMerchantTxnId() {
|
| 390 |
return this.merchantTxnId;
|
390 |
return this.merchantTxnId;
|
| 391 |
}
|
391 |
}
|
| 392 |
|
392 |
|
| 393 |
public Payment setMerchantTxnId(String merchantTxnId) {
|
393 |
public Payment setMerchantTxnId(long merchantTxnId) {
|
| 394 |
this.merchantTxnId = merchantTxnId;
|
394 |
this.merchantTxnId = merchantTxnId;
|
| - |
|
395 |
setMerchantTxnIdIsSet(true);
|
| 395 |
return this;
|
396 |
return this;
|
| 396 |
}
|
397 |
}
|
| 397 |
|
398 |
|
| 398 |
public void unsetMerchantTxnId() {
|
399 |
public void unsetMerchantTxnId() {
|
| 399 |
this.merchantTxnId = null;
|
400 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
| 400 |
}
|
401 |
}
|
| 401 |
|
402 |
|
| 402 |
/** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
|
403 |
/** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
|
| 403 |
public boolean isSetMerchantTxnId() {
|
404 |
public boolean isSetMerchantTxnId() {
|
| 404 |
return this.merchantTxnId != null;
|
405 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
| 405 |
}
|
406 |
}
|
| 406 |
|
407 |
|
| 407 |
public void setMerchantTxnIdIsSet(boolean value) {
|
408 |
public void setMerchantTxnIdIsSet(boolean value) {
|
| 408 |
if (!value) {
|
- |
|
| 409 |
this.merchantTxnId = null;
|
409 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
| 410 |
}
|
- |
|
| 411 |
}
|
410 |
}
|
| 412 |
|
411 |
|
| 413 |
public String getGatewayTxnId() {
|
412 |
public String getGatewayTxnId() {
|
| 414 |
return this.gatewayTxnId;
|
413 |
return this.gatewayTxnId;
|
| 415 |
}
|
414 |
}
|
| Line 816... |
Line 815... |
| 816 |
|
815 |
|
| 817 |
case MERCHANT_TXN_ID:
|
816 |
case MERCHANT_TXN_ID:
|
| 818 |
if (value == null) {
|
817 |
if (value == null) {
|
| 819 |
unsetMerchantTxnId();
|
818 |
unsetMerchantTxnId();
|
| 820 |
} else {
|
819 |
} else {
|
| 821 |
setMerchantTxnId((String)value);
|
820 |
setMerchantTxnId((Long)value);
|
| 822 |
}
|
821 |
}
|
| 823 |
break;
|
822 |
break;
|
| 824 |
|
823 |
|
| 825 |
case GATEWAY_TXN_ID:
|
824 |
case GATEWAY_TXN_ID:
|
| 826 |
if (value == null) {
|
825 |
if (value == null) {
|
| Line 959... |
Line 958... |
| 959 |
|
958 |
|
| 960 |
case GATEWAY_PAYMENT_ID:
|
959 |
case GATEWAY_PAYMENT_ID:
|
| 961 |
return getGatewayPaymentId();
|
960 |
return getGatewayPaymentId();
|
| 962 |
|
961 |
|
| 963 |
case MERCHANT_TXN_ID:
|
962 |
case MERCHANT_TXN_ID:
|
| 964 |
return getMerchantTxnId();
|
963 |
return new Long(getMerchantTxnId());
|
| 965 |
|
964 |
|
| 966 |
case GATEWAY_TXN_ID:
|
965 |
case GATEWAY_TXN_ID:
|
| 967 |
return getGatewayTxnId();
|
966 |
return getGatewayTxnId();
|
| 968 |
|
967 |
|
| 969 |
case AMOUNT:
|
968 |
case AMOUNT:
|
| Line 1103... |
Line 1102... |
| 1103 |
return false;
|
1102 |
return false;
|
| 1104 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
1103 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
| 1105 |
return false;
|
1104 |
return false;
|
| 1106 |
}
|
1105 |
}
|
| 1107 |
|
1106 |
|
| 1108 |
boolean this_present_merchantTxnId = true && this.isSetMerchantTxnId();
|
1107 |
boolean this_present_merchantTxnId = true;
|
| 1109 |
boolean that_present_merchantTxnId = true && that.isSetMerchantTxnId();
|
1108 |
boolean that_present_merchantTxnId = true;
|
| 1110 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
1109 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
| 1111 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
1110 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
| 1112 |
return false;
|
1111 |
return false;
|
| 1113 |
if (!this.merchantTxnId.equals(that.merchantTxnId))
|
1112 |
if (this.merchantTxnId != that.merchantTxnId)
|
| 1114 |
return false;
|
1113 |
return false;
|
| 1115 |
}
|
1114 |
}
|
| 1116 |
|
1115 |
|
| 1117 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
1116 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
| 1118 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
1117 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
| Line 1456... |
Line 1455... |
| 1456 |
} else {
|
1455 |
} else {
|
| 1457 |
TProtocolUtil.skip(iprot, field.type);
|
1456 |
TProtocolUtil.skip(iprot, field.type);
|
| 1458 |
}
|
1457 |
}
|
| 1459 |
break;
|
1458 |
break;
|
| 1460 |
case MERCHANT_TXN_ID:
|
1459 |
case MERCHANT_TXN_ID:
|
| 1461 |
if (field.type == TType.STRING) {
|
1460 |
if (field.type == TType.I64) {
|
| 1462 |
this.merchantTxnId = iprot.readString();
|
1461 |
this.merchantTxnId = iprot.readI64();
|
| - |
|
1462 |
setMerchantTxnIdIsSet(true);
|
| 1463 |
} else {
|
1463 |
} else {
|
| 1464 |
TProtocolUtil.skip(iprot, field.type);
|
1464 |
TProtocolUtil.skip(iprot, field.type);
|
| 1465 |
}
|
1465 |
}
|
| 1466 |
break;
|
1466 |
break;
|
| 1467 |
case GATEWAY_TXN_ID:
|
1467 |
case GATEWAY_TXN_ID:
|
| Line 1606... |
Line 1606... |
| 1606 |
if (this.gatewayPaymentId != null) {
|
1606 |
if (this.gatewayPaymentId != null) {
|
| 1607 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
1607 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
| 1608 |
oprot.writeString(this.gatewayPaymentId);
|
1608 |
oprot.writeString(this.gatewayPaymentId);
|
| 1609 |
oprot.writeFieldEnd();
|
1609 |
oprot.writeFieldEnd();
|
| 1610 |
}
|
1610 |
}
|
| 1611 |
if (this.merchantTxnId != null) {
|
- |
|
| 1612 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
1611 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
| 1613 |
oprot.writeString(this.merchantTxnId);
|
1612 |
oprot.writeI64(this.merchantTxnId);
|
| 1614 |
oprot.writeFieldEnd();
|
1613 |
oprot.writeFieldEnd();
|
| 1615 |
}
|
- |
|
| 1616 |
if (this.gatewayTxnId != null) {
|
1614 |
if (this.gatewayTxnId != null) {
|
| 1617 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
1615 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
| 1618 |
oprot.writeString(this.gatewayTxnId);
|
1616 |
oprot.writeString(this.gatewayTxnId);
|
| 1619 |
oprot.writeFieldEnd();
|
1617 |
oprot.writeFieldEnd();
|
| 1620 |
}
|
1618 |
}
|
| Line 1709... |
Line 1707... |
| 1709 |
sb.append(this.gatewayPaymentId);
|
1707 |
sb.append(this.gatewayPaymentId);
|
| 1710 |
}
|
1708 |
}
|
| 1711 |
first = false;
|
1709 |
first = false;
|
| 1712 |
if (!first) sb.append(", ");
|
1710 |
if (!first) sb.append(", ");
|
| 1713 |
sb.append("merchantTxnId:");
|
1711 |
sb.append("merchantTxnId:");
|
| 1714 |
if (this.merchantTxnId == null) {
|
- |
|
| 1715 |
sb.append("null");
|
- |
|
| 1716 |
} else {
|
- |
|
| 1717 |
sb.append(this.merchantTxnId);
|
1712 |
sb.append(this.merchantTxnId);
|
| 1718 |
}
|
- |
|
| 1719 |
first = false;
|
1713 |
first = false;
|
| 1720 |
if (!first) sb.append(", ");
|
1714 |
if (!first) sb.append(", ");
|
| 1721 |
sb.append("gatewayTxnId:");
|
1715 |
sb.append("gatewayTxnId:");
|
| 1722 |
if (this.gatewayTxnId == null) {
|
1716 |
if (this.gatewayTxnId == null) {
|
| 1723 |
sb.append("null");
|
1717 |
sb.append("null");
|