Subversion Repositories SmartDukaan

Rev

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

Rev 6000 Rev 6031
Line 21... Line 21...
21
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
22
 
22
 
23
public class RechargeOrder implements org.apache.thrift.TBase<RechargeOrder, RechargeOrder._Fields>, java.io.Serializable, Cloneable {
23
public class RechargeOrder implements org.apache.thrift.TBase<RechargeOrder, RechargeOrder._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeOrder");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeOrder");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
27
  private static final org.apache.thrift.protocol.TField DISPLAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("displayId", org.apache.thrift.protocol.TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField TOTAL_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalAmount", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
29
  private static final org.apache.thrift.protocol.TField WALLET_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("walletAmount", org.apache.thrift.protocol.TType.I64, (short)4);
28
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)3);
30
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)5);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
31
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)6);
30
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);
32
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)7);
31
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)6);
33
  private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)8);
32
  private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)7);
34
  private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)9);
33
  private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderStatus", org.apache.thrift.protocol.TType.I32, (short)8);
35
  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)10);
34
  private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
36
  private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)11);
35
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)10);
37
  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)12);
36
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.I64, (short)11);
38
  private static final org.apache.thrift.protocol.TField USER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmailId", org.apache.thrift.protocol.TType.STRING, (short)13);
37
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)12);
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
38
 
40
 
39
  private String id; // required
41
  private long id; // required
-
 
42
  private String displayId; // required
40
  private long amount; // required
43
  private long totalAmount; // required
-
 
44
  private long walletAmount; // required
41
  private long transactionId; // required
45
  private long transactionId; // required
42
  private String invoiceNumber; // required
46
  private String invoiceNumber; // required
43
  private OrderType orderType; // required
47
  private OrderType orderType; // required
44
  private long operatorId; // required
48
  private long operatorId; // required
45
  private RechargeType rechargeType; // required
49
  private RechargeType rechargeType; // required
46
  private RechargeOrderStatus rechargeOrderStatus; // required
50
  private RechargeOrderStatus status; // required
47
  private String deviceNumber; // required
51
  private String deviceNumber; // required
48
  private long customerId; // required
52
  private long userId; // required
49
  private long customerEmailId; // required
53
  private String userEmailId; // required
50
  private long creationTimestamp; // required
54
  private long creationTimestamp; // required
51
 
55
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
    ID((short)1, "id"),
58
    ID((short)1, "id"),
-
 
59
    DISPLAY_ID((short)2, "displayId"),
55
    AMOUNT((short)2, "amount"),
60
    TOTAL_AMOUNT((short)3, "totalAmount"),
-
 
61
    WALLET_AMOUNT((short)4, "walletAmount"),
56
    TRANSACTION_ID((short)3, "transactionId"),
62
    TRANSACTION_ID((short)5, "transactionId"),
57
    INVOICE_NUMBER((short)4, "invoiceNumber"),
63
    INVOICE_NUMBER((short)6, "invoiceNumber"),
58
    /**
64
    /**
59
     * 
65
     * 
60
     * @see OrderType
66
     * @see OrderType
61
     */
67
     */
62
    ORDER_TYPE((short)5, "orderType"),
68
    ORDER_TYPE((short)7, "orderType"),
63
    OPERATOR_ID((short)6, "operatorId"),
69
    OPERATOR_ID((short)8, "operatorId"),
64
    /**
70
    /**
65
     * 
71
     * 
66
     * @see RechargeType
72
     * @see RechargeType
67
     */
73
     */
68
    RECHARGE_TYPE((short)7, "rechargeType"),
74
    RECHARGE_TYPE((short)9, "rechargeType"),
69
    /**
75
    /**
70
     * 
76
     * 
71
     * @see RechargeOrderStatus
77
     * @see RechargeOrderStatus
72
     */
78
     */
73
    RECHARGE_ORDER_STATUS((short)8, "rechargeOrderStatus"),
79
    STATUS((short)10, "status"),
74
    DEVICE_NUMBER((short)9, "deviceNumber"),
80
    DEVICE_NUMBER((short)11, "deviceNumber"),
75
    CUSTOMER_ID((short)10, "customerId"),
81
    USER_ID((short)12, "userId"),
76
    CUSTOMER_EMAIL_ID((short)11, "customerEmailId"),
82
    USER_EMAIL_ID((short)13, "userEmailId"),
77
    CREATION_TIMESTAMP((short)12, "creationTimestamp");
83
    CREATION_TIMESTAMP((short)14, "creationTimestamp");
78
 
84
 
79
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
85
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
80
 
86
 
81
    static {
87
    static {
82
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
88
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 89... Line 95...
89
     */
95
     */
90
    public static _Fields findByThriftId(int fieldId) {
96
    public static _Fields findByThriftId(int fieldId) {
91
      switch(fieldId) {
97
      switch(fieldId) {
92
        case 1: // ID
98
        case 1: // ID
93
          return ID;
99
          return ID;
-
 
100
        case 2: // DISPLAY_ID
-
 
101
          return DISPLAY_ID;
94
        case 2: // AMOUNT
102
        case 3: // TOTAL_AMOUNT
95
          return AMOUNT;
103
          return TOTAL_AMOUNT;
-
 
104
        case 4: // WALLET_AMOUNT
-
 
105
          return WALLET_AMOUNT;
96
        case 3: // TRANSACTION_ID
106
        case 5: // TRANSACTION_ID
97
          return TRANSACTION_ID;
107
          return TRANSACTION_ID;
98
        case 4: // INVOICE_NUMBER
108
        case 6: // INVOICE_NUMBER
99
          return INVOICE_NUMBER;
109
          return INVOICE_NUMBER;
100
        case 5: // ORDER_TYPE
110
        case 7: // ORDER_TYPE
101
          return ORDER_TYPE;
111
          return ORDER_TYPE;
102
        case 6: // OPERATOR_ID
112
        case 8: // OPERATOR_ID
103
          return OPERATOR_ID;
113
          return OPERATOR_ID;
104
        case 7: // RECHARGE_TYPE
114
        case 9: // RECHARGE_TYPE
105
          return RECHARGE_TYPE;
115
          return RECHARGE_TYPE;
106
        case 8: // RECHARGE_ORDER_STATUS
116
        case 10: // STATUS
107
          return RECHARGE_ORDER_STATUS;
117
          return STATUS;
108
        case 9: // DEVICE_NUMBER
118
        case 11: // DEVICE_NUMBER
109
          return DEVICE_NUMBER;
119
          return DEVICE_NUMBER;
110
        case 10: // CUSTOMER_ID
120
        case 12: // USER_ID
111
          return CUSTOMER_ID;
121
          return USER_ID;
112
        case 11: // CUSTOMER_EMAIL_ID
122
        case 13: // USER_EMAIL_ID
113
          return CUSTOMER_EMAIL_ID;
123
          return USER_EMAIL_ID;
114
        case 12: // CREATION_TIMESTAMP
124
        case 14: // CREATION_TIMESTAMP
115
          return CREATION_TIMESTAMP;
125
          return CREATION_TIMESTAMP;
116
        default:
126
        default:
117
          return null;
127
          return null;
118
      }
128
      }
119
    }
129
    }
Line 151... Line 161...
151
      return _fieldName;
161
      return _fieldName;
152
    }
162
    }
153
  }
163
  }
154
 
164
 
155
  // isset id assignments
165
  // isset id assignments
156
  private static final int __AMOUNT_ISSET_ID = 0;
166
  private static final int __ID_ISSET_ID = 0;
157
  private static final int __TRANSACTIONID_ISSET_ID = 1;
167
  private static final int __TOTALAMOUNT_ISSET_ID = 1;
-
 
168
  private static final int __WALLETAMOUNT_ISSET_ID = 2;
158
  private static final int __OPERATORID_ISSET_ID = 2;
169
  private static final int __TRANSACTIONID_ISSET_ID = 3;
159
  private static final int __CUSTOMERID_ISSET_ID = 3;
170
  private static final int __OPERATORID_ISSET_ID = 4;
160
  private static final int __CUSTOMEREMAILID_ISSET_ID = 4;
171
  private static final int __USERID_ISSET_ID = 5;
161
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 5;
172
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 6;
162
  private BitSet __isset_bit_vector = new BitSet(6);
173
  private BitSet __isset_bit_vector = new BitSet(7);
163
 
174
 
164
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
175
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
165
  static {
176
  static {
166
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
177
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
167
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
180
    tmpMap.put(_Fields.DISPLAY_ID, new org.apache.thrift.meta_data.FieldMetaData("displayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
    tmpMap.put(_Fields.TOTAL_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("totalAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
184
    tmpMap.put(_Fields.WALLET_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("walletAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
188
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
Line 176... Line 191...
176
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
191
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
177
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
    tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
179
    tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
194
    tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
195
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
181
    tmpMap.put(_Fields.RECHARGE_ORDER_STATUS, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
197
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
183
    tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
    tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
185
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
187
    tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
188
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
202
    tmpMap.put(_Fields.USER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("userEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
189
    tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
    tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
191
    metaDataMap = Collections.unmodifiableMap(tmpMap);
206
    metaDataMap = Collections.unmodifiableMap(tmpMap);
192
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
207
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
193
  }
208
  }
194
 
209
 
195
  public RechargeOrder() {
210
  public RechargeOrder() {
196
  }
211
  }
197
 
212
 
198
  public RechargeOrder(
213
  public RechargeOrder(
199
    String id,
214
    long id,
-
 
215
    String displayId,
200
    long amount,
216
    long totalAmount,
-
 
217
    long walletAmount,
201
    long transactionId,
218
    long transactionId,
202
    String invoiceNumber,
219
    String invoiceNumber,
203
    OrderType orderType,
220
    OrderType orderType,
204
    long operatorId,
221
    long operatorId,
205
    RechargeType rechargeType,
222
    RechargeType rechargeType,
206
    RechargeOrderStatus rechargeOrderStatus,
223
    RechargeOrderStatus status,
207
    String deviceNumber,
224
    String deviceNumber,
208
    long customerId,
225
    long userId,
209
    long customerEmailId,
226
    String userEmailId,
210
    long creationTimestamp)
227
    long creationTimestamp)
211
  {
228
  {
212
    this();
229
    this();
213
    this.id = id;
230
    this.id = id;
-
 
231
    setIdIsSet(true);
-
 
232
    this.displayId = displayId;
214
    this.amount = amount;
233
    this.totalAmount = totalAmount;
215
    setAmountIsSet(true);
234
    setTotalAmountIsSet(true);
-
 
235
    this.walletAmount = walletAmount;
-
 
236
    setWalletAmountIsSet(true);
216
    this.transactionId = transactionId;
237
    this.transactionId = transactionId;
217
    setTransactionIdIsSet(true);
238
    setTransactionIdIsSet(true);
218
    this.invoiceNumber = invoiceNumber;
239
    this.invoiceNumber = invoiceNumber;
219
    this.orderType = orderType;
240
    this.orderType = orderType;
220
    this.operatorId = operatorId;
241
    this.operatorId = operatorId;
221
    setOperatorIdIsSet(true);
242
    setOperatorIdIsSet(true);
222
    this.rechargeType = rechargeType;
243
    this.rechargeType = rechargeType;
223
    this.rechargeOrderStatus = rechargeOrderStatus;
244
    this.status = status;
224
    this.deviceNumber = deviceNumber;
245
    this.deviceNumber = deviceNumber;
225
    this.customerId = customerId;
246
    this.userId = userId;
226
    setCustomerIdIsSet(true);
247
    setUserIdIsSet(true);
227
    this.customerEmailId = customerEmailId;
248
    this.userEmailId = userEmailId;
228
    setCustomerEmailIdIsSet(true);
-
 
229
    this.creationTimestamp = creationTimestamp;
249
    this.creationTimestamp = creationTimestamp;
230
    setCreationTimestampIsSet(true);
250
    setCreationTimestampIsSet(true);
231
  }
251
  }
232
 
252
 
233
  /**
253
  /**
234
   * Performs a deep copy on <i>other</i>.
254
   * Performs a deep copy on <i>other</i>.
235
   */
255
   */
236
  public RechargeOrder(RechargeOrder other) {
256
  public RechargeOrder(RechargeOrder other) {
237
    __isset_bit_vector.clear();
257
    __isset_bit_vector.clear();
238
    __isset_bit_vector.or(other.__isset_bit_vector);
258
    __isset_bit_vector.or(other.__isset_bit_vector);
-
 
259
    this.id = other.id;
239
    if (other.isSetId()) {
260
    if (other.isSetDisplayId()) {
240
      this.id = other.id;
261
      this.displayId = other.displayId;
241
    }
262
    }
242
    this.amount = other.amount;
263
    this.totalAmount = other.totalAmount;
-
 
264
    this.walletAmount = other.walletAmount;
243
    this.transactionId = other.transactionId;
265
    this.transactionId = other.transactionId;
244
    if (other.isSetInvoiceNumber()) {
266
    if (other.isSetInvoiceNumber()) {
245
      this.invoiceNumber = other.invoiceNumber;
267
      this.invoiceNumber = other.invoiceNumber;
246
    }
268
    }
247
    if (other.isSetOrderType()) {
269
    if (other.isSetOrderType()) {
Line 249... Line 271...
249
    }
271
    }
250
    this.operatorId = other.operatorId;
272
    this.operatorId = other.operatorId;
251
    if (other.isSetRechargeType()) {
273
    if (other.isSetRechargeType()) {
252
      this.rechargeType = other.rechargeType;
274
      this.rechargeType = other.rechargeType;
253
    }
275
    }
254
    if (other.isSetRechargeOrderStatus()) {
276
    if (other.isSetStatus()) {
255
      this.rechargeOrderStatus = other.rechargeOrderStatus;
277
      this.status = other.status;
256
    }
278
    }
257
    if (other.isSetDeviceNumber()) {
279
    if (other.isSetDeviceNumber()) {
258
      this.deviceNumber = other.deviceNumber;
280
      this.deviceNumber = other.deviceNumber;
259
    }
281
    }
260
    this.customerId = other.customerId;
282
    this.userId = other.userId;
-
 
283
    if (other.isSetUserEmailId()) {
261
    this.customerEmailId = other.customerEmailId;
284
      this.userEmailId = other.userEmailId;
-
 
285
    }
262
    this.creationTimestamp = other.creationTimestamp;
286
    this.creationTimestamp = other.creationTimestamp;
263
  }
287
  }
264
 
288
 
265
  public RechargeOrder deepCopy() {
289
  public RechargeOrder deepCopy() {
266
    return new RechargeOrder(this);
290
    return new RechargeOrder(this);
267
  }
291
  }
268
 
292
 
269
  @Override
293
  @Override
270
  public void clear() {
294
  public void clear() {
-
 
295
    setIdIsSet(false);
271
    this.id = null;
296
    this.id = 0;
-
 
297
    this.displayId = null;
272
    setAmountIsSet(false);
298
    setTotalAmountIsSet(false);
273
    this.amount = 0;
299
    this.totalAmount = 0;
-
 
300
    setWalletAmountIsSet(false);
-
 
301
    this.walletAmount = 0;
274
    setTransactionIdIsSet(false);
302
    setTransactionIdIsSet(false);
275
    this.transactionId = 0;
303
    this.transactionId = 0;
276
    this.invoiceNumber = null;
304
    this.invoiceNumber = null;
277
    this.orderType = null;
305
    this.orderType = null;
278
    setOperatorIdIsSet(false);
306
    setOperatorIdIsSet(false);
279
    this.operatorId = 0;
307
    this.operatorId = 0;
280
    this.rechargeType = null;
308
    this.rechargeType = null;
281
    this.rechargeOrderStatus = null;
309
    this.status = null;
282
    this.deviceNumber = null;
310
    this.deviceNumber = null;
283
    setCustomerIdIsSet(false);
311
    setUserIdIsSet(false);
284
    this.customerId = 0;
312
    this.userId = 0;
285
    setCustomerEmailIdIsSet(false);
-
 
286
    this.customerEmailId = 0;
313
    this.userEmailId = null;
287
    setCreationTimestampIsSet(false);
314
    setCreationTimestampIsSet(false);
288
    this.creationTimestamp = 0;
315
    this.creationTimestamp = 0;
289
  }
316
  }
290
 
317
 
291
  public String getId() {
318
  public long getId() {
292
    return this.id;
319
    return this.id;
293
  }
320
  }
294
 
321
 
295
  public void setId(String id) {
322
  public void setId(long id) {
296
    this.id = id;
323
    this.id = id;
-
 
324
    setIdIsSet(true);
297
  }
325
  }
298
 
326
 
299
  public void unsetId() {
327
  public void unsetId() {
300
    this.id = null;
328
    __isset_bit_vector.clear(__ID_ISSET_ID);
301
  }
329
  }
302
 
330
 
303
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
331
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
304
  public boolean isSetId() {
332
  public boolean isSetId() {
305
    return this.id != null;
333
    return __isset_bit_vector.get(__ID_ISSET_ID);
306
  }
334
  }
307
 
335
 
308
  public void setIdIsSet(boolean value) {
336
  public void setIdIsSet(boolean value) {
-
 
337
    __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
338
  }
-
 
339
 
-
 
340
  public String getDisplayId() {
-
 
341
    return this.displayId;
-
 
342
  }
-
 
343
 
-
 
344
  public void setDisplayId(String displayId) {
-
 
345
    this.displayId = displayId;
-
 
346
  }
-
 
347
 
-
 
348
  public void unsetDisplayId() {
-
 
349
    this.displayId = null;
-
 
350
  }
-
 
351
 
-
 
352
  /** Returns true if field displayId is set (has been assigned a value) and false otherwise */
-
 
353
  public boolean isSetDisplayId() {
-
 
354
    return this.displayId != null;
-
 
355
  }
-
 
356
 
-
 
357
  public void setDisplayIdIsSet(boolean value) {
309
    if (!value) {
358
    if (!value) {
310
      this.id = null;
359
      this.displayId = null;
311
    }
360
    }
312
  }
361
  }
313
 
362
 
314
  public long getAmount() {
363
  public long getTotalAmount() {
315
    return this.amount;
364
    return this.totalAmount;
-
 
365
  }
-
 
366
 
-
 
367
  public void setTotalAmount(long totalAmount) {
-
 
368
    this.totalAmount = totalAmount;
-
 
369
    setTotalAmountIsSet(true);
-
 
370
  }
-
 
371
 
-
 
372
  public void unsetTotalAmount() {
-
 
373
    __isset_bit_vector.clear(__TOTALAMOUNT_ISSET_ID);
-
 
374
  }
-
 
375
 
-
 
376
  /** Returns true if field totalAmount is set (has been assigned a value) and false otherwise */
-
 
377
  public boolean isSetTotalAmount() {
-
 
378
    return __isset_bit_vector.get(__TOTALAMOUNT_ISSET_ID);
316
  }
379
  }
317
 
380
 
318
  public void setAmount(long amount) {
381
  public void setTotalAmountIsSet(boolean value) {
319
    this.amount = amount;
-
 
320
    setAmountIsSet(true);
382
    __isset_bit_vector.set(__TOTALAMOUNT_ISSET_ID, value);
321
  }
383
  }
322
 
384
 
323
  public void unsetAmount() {
385
  public long getWalletAmount() {
324
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
386
    return this.walletAmount;
325
  }
387
  }
326
 
388
 
327
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
389
  public void setWalletAmount(long walletAmount) {
328
  public boolean isSetAmount() {
390
    this.walletAmount = walletAmount;
329
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
391
    setWalletAmountIsSet(true);
330
  }
392
  }
331
 
393
 
-
 
394
  public void unsetWalletAmount() {
-
 
395
    __isset_bit_vector.clear(__WALLETAMOUNT_ISSET_ID);
-
 
396
  }
-
 
397
 
-
 
398
  /** Returns true if field walletAmount is set (has been assigned a value) and false otherwise */
-
 
399
  public boolean isSetWalletAmount() {
-
 
400
    return __isset_bit_vector.get(__WALLETAMOUNT_ISSET_ID);
-
 
401
  }
-
 
402
 
332
  public void setAmountIsSet(boolean value) {
403
  public void setWalletAmountIsSet(boolean value) {
333
    __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
404
    __isset_bit_vector.set(__WALLETAMOUNT_ISSET_ID, value);
334
  }
405
  }
335
 
406
 
336
  public long getTransactionId() {
407
  public long getTransactionId() {
337
    return this.transactionId;
408
    return this.transactionId;
338
  }
409
  }
Line 464... Line 535...
464
 
535
 
465
  /**
536
  /**
466
   * 
537
   * 
467
   * @see RechargeOrderStatus
538
   * @see RechargeOrderStatus
468
   */
539
   */
469
  public RechargeOrderStatus getRechargeOrderStatus() {
540
  public RechargeOrderStatus getStatus() {
470
    return this.rechargeOrderStatus;
541
    return this.status;
471
  }
542
  }
472
 
543
 
473
  /**
544
  /**
474
   * 
545
   * 
475
   * @see RechargeOrderStatus
546
   * @see RechargeOrderStatus
476
   */
547
   */
477
  public void setRechargeOrderStatus(RechargeOrderStatus rechargeOrderStatus) {
548
  public void setStatus(RechargeOrderStatus status) {
478
    this.rechargeOrderStatus = rechargeOrderStatus;
549
    this.status = status;
479
  }
550
  }
480
 
551
 
481
  public void unsetRechargeOrderStatus() {
552
  public void unsetStatus() {
482
    this.rechargeOrderStatus = null;
553
    this.status = null;
483
  }
554
  }
484
 
555
 
485
  /** Returns true if field rechargeOrderStatus is set (has been assigned a value) and false otherwise */
556
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
486
  public boolean isSetRechargeOrderStatus() {
557
  public boolean isSetStatus() {
487
    return this.rechargeOrderStatus != null;
558
    return this.status != null;
488
  }
559
  }
489
 
560
 
490
  public void setRechargeOrderStatusIsSet(boolean value) {
561
  public void setStatusIsSet(boolean value) {
491
    if (!value) {
562
    if (!value) {
492
      this.rechargeOrderStatus = null;
563
      this.status = null;
493
    }
564
    }
494
  }
565
  }
495
 
566
 
496
  public String getDeviceNumber() {
567
  public String getDeviceNumber() {
497
    return this.deviceNumber;
568
    return this.deviceNumber;
Line 514... Line 585...
514
    if (!value) {
585
    if (!value) {
515
      this.deviceNumber = null;
586
      this.deviceNumber = null;
516
    }
587
    }
517
  }
588
  }
518
 
589
 
519
  public long getCustomerId() {
590
  public long getUserId() {
520
    return this.customerId;
591
    return this.userId;
521
  }
592
  }
522
 
593
 
523
  public void setCustomerId(long customerId) {
594
  public void setUserId(long userId) {
524
    this.customerId = customerId;
595
    this.userId = userId;
525
    setCustomerIdIsSet(true);
596
    setUserIdIsSet(true);
526
  }
597
  }
527
 
598
 
528
  public void unsetCustomerId() {
599
  public void unsetUserId() {
529
    __isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
600
    __isset_bit_vector.clear(__USERID_ISSET_ID);
530
  }
601
  }
531
 
602
 
532
  /** Returns true if field customerId is set (has been assigned a value) and false otherwise */
603
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
533
  public boolean isSetCustomerId() {
604
  public boolean isSetUserId() {
534
    return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
605
    return __isset_bit_vector.get(__USERID_ISSET_ID);
535
  }
606
  }
536
 
607
 
537
  public void setCustomerIdIsSet(boolean value) {
608
  public void setUserIdIsSet(boolean value) {
538
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
609
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
539
  }
610
  }
540
 
611
 
541
  public long getCustomerEmailId() {
612
  public String getUserEmailId() {
542
    return this.customerEmailId;
613
    return this.userEmailId;
543
  }
614
  }
544
 
615
 
545
  public void setCustomerEmailId(long customerEmailId) {
616
  public void setUserEmailId(String userEmailId) {
546
    this.customerEmailId = customerEmailId;
617
    this.userEmailId = userEmailId;
547
    setCustomerEmailIdIsSet(true);
-
 
548
  }
618
  }
549
 
619
 
550
  public void unsetCustomerEmailId() {
620
  public void unsetUserEmailId() {
551
    __isset_bit_vector.clear(__CUSTOMEREMAILID_ISSET_ID);
621
    this.userEmailId = null;
552
  }
622
  }
553
 
623
 
554
  /** Returns true if field customerEmailId is set (has been assigned a value) and false otherwise */
624
  /** Returns true if field userEmailId is set (has been assigned a value) and false otherwise */
555
  public boolean isSetCustomerEmailId() {
625
  public boolean isSetUserEmailId() {
556
    return __isset_bit_vector.get(__CUSTOMEREMAILID_ISSET_ID);
626
    return this.userEmailId != null;
557
  }
627
  }
558
 
628
 
559
  public void setCustomerEmailIdIsSet(boolean value) {
629
  public void setUserEmailIdIsSet(boolean value) {
-
 
630
    if (!value) {
560
    __isset_bit_vector.set(__CUSTOMEREMAILID_ISSET_ID, value);
631
      this.userEmailId = null;
-
 
632
    }
561
  }
633
  }
562
 
634
 
563
  public long getCreationTimestamp() {
635
  public long getCreationTimestamp() {
564
    return this.creationTimestamp;
636
    return this.creationTimestamp;
565
  }
637
  }
Line 586... Line 658...
586
    switch (field) {
658
    switch (field) {
587
    case ID:
659
    case ID:
588
      if (value == null) {
660
      if (value == null) {
589
        unsetId();
661
        unsetId();
590
      } else {
662
      } else {
591
        setId((String)value);
663
        setId((Long)value);
-
 
664
      }
-
 
665
      break;
-
 
666
 
-
 
667
    case DISPLAY_ID:
-
 
668
      if (value == null) {
-
 
669
        unsetDisplayId();
-
 
670
      } else {
-
 
671
        setDisplayId((String)value);
592
      }
672
      }
593
      break;
673
      break;
594
 
674
 
595
    case AMOUNT:
675
    case TOTAL_AMOUNT:
596
      if (value == null) {
676
      if (value == null) {
597
        unsetAmount();
677
        unsetTotalAmount();
598
      } else {
678
      } else {
599
        setAmount((Long)value);
679
        setTotalAmount((Long)value);
-
 
680
      }
-
 
681
      break;
-
 
682
 
-
 
683
    case WALLET_AMOUNT:
-
 
684
      if (value == null) {
-
 
685
        unsetWalletAmount();
-
 
686
      } else {
-
 
687
        setWalletAmount((Long)value);
600
      }
688
      }
601
      break;
689
      break;
602
 
690
 
603
    case TRANSACTION_ID:
691
    case TRANSACTION_ID:
604
      if (value == null) {
692
      if (value == null) {
Line 638... Line 726...
638
      } else {
726
      } else {
639
        setRechargeType((RechargeType)value);
727
        setRechargeType((RechargeType)value);
640
      }
728
      }
641
      break;
729
      break;
642
 
730
 
643
    case RECHARGE_ORDER_STATUS:
731
    case STATUS:
644
      if (value == null) {
732
      if (value == null) {
645
        unsetRechargeOrderStatus();
733
        unsetStatus();
646
      } else {
734
      } else {
647
        setRechargeOrderStatus((RechargeOrderStatus)value);
735
        setStatus((RechargeOrderStatus)value);
648
      }
736
      }
649
      break;
737
      break;
650
 
738
 
651
    case DEVICE_NUMBER:
739
    case DEVICE_NUMBER:
652
      if (value == null) {
740
      if (value == null) {
Line 654... Line 742...
654
      } else {
742
      } else {
655
        setDeviceNumber((String)value);
743
        setDeviceNumber((String)value);
656
      }
744
      }
657
      break;
745
      break;
658
 
746
 
659
    case CUSTOMER_ID:
747
    case USER_ID:
660
      if (value == null) {
748
      if (value == null) {
661
        unsetCustomerId();
749
        unsetUserId();
662
      } else {
750
      } else {
663
        setCustomerId((Long)value);
751
        setUserId((Long)value);
664
      }
752
      }
665
      break;
753
      break;
666
 
754
 
667
    case CUSTOMER_EMAIL_ID:
755
    case USER_EMAIL_ID:
668
      if (value == null) {
756
      if (value == null) {
669
        unsetCustomerEmailId();
757
        unsetUserEmailId();
670
      } else {
758
      } else {
671
        setCustomerEmailId((Long)value);
759
        setUserEmailId((String)value);
672
      }
760
      }
673
      break;
761
      break;
674
 
762
 
675
    case CREATION_TIMESTAMP:
763
    case CREATION_TIMESTAMP:
676
      if (value == null) {
764
      if (value == null) {
Line 684... Line 772...
684
  }
772
  }
685
 
773
 
686
  public Object getFieldValue(_Fields field) {
774
  public Object getFieldValue(_Fields field) {
687
    switch (field) {
775
    switch (field) {
688
    case ID:
776
    case ID:
689
      return getId();
777
      return Long.valueOf(getId());
690
 
778
 
-
 
779
    case DISPLAY_ID:
-
 
780
      return getDisplayId();
-
 
781
 
691
    case AMOUNT:
782
    case TOTAL_AMOUNT:
692
      return Long.valueOf(getAmount());
783
      return Long.valueOf(getTotalAmount());
-
 
784
 
-
 
785
    case WALLET_AMOUNT:
-
 
786
      return Long.valueOf(getWalletAmount());
693
 
787
 
694
    case TRANSACTION_ID:
788
    case TRANSACTION_ID:
695
      return Long.valueOf(getTransactionId());
789
      return Long.valueOf(getTransactionId());
696
 
790
 
697
    case INVOICE_NUMBER:
791
    case INVOICE_NUMBER:
Line 704... Line 798...
704
      return Long.valueOf(getOperatorId());
798
      return Long.valueOf(getOperatorId());
705
 
799
 
706
    case RECHARGE_TYPE:
800
    case RECHARGE_TYPE:
707
      return getRechargeType();
801
      return getRechargeType();
708
 
802
 
709
    case RECHARGE_ORDER_STATUS:
803
    case STATUS:
710
      return getRechargeOrderStatus();
804
      return getStatus();
711
 
805
 
712
    case DEVICE_NUMBER:
806
    case DEVICE_NUMBER:
713
      return getDeviceNumber();
807
      return getDeviceNumber();
714
 
808
 
715
    case CUSTOMER_ID:
809
    case USER_ID:
716
      return Long.valueOf(getCustomerId());
810
      return Long.valueOf(getUserId());
717
 
811
 
718
    case CUSTOMER_EMAIL_ID:
812
    case USER_EMAIL_ID:
719
      return Long.valueOf(getCustomerEmailId());
813
      return getUserEmailId();
720
 
814
 
721
    case CREATION_TIMESTAMP:
815
    case CREATION_TIMESTAMP:
722
      return Long.valueOf(getCreationTimestamp());
816
      return Long.valueOf(getCreationTimestamp());
723
 
817
 
724
    }
818
    }
Line 732... Line 826...
732
    }
826
    }
733
 
827
 
734
    switch (field) {
828
    switch (field) {
735
    case ID:
829
    case ID:
736
      return isSetId();
830
      return isSetId();
-
 
831
    case DISPLAY_ID:
-
 
832
      return isSetDisplayId();
737
    case AMOUNT:
833
    case TOTAL_AMOUNT:
738
      return isSetAmount();
834
      return isSetTotalAmount();
-
 
835
    case WALLET_AMOUNT:
-
 
836
      return isSetWalletAmount();
739
    case TRANSACTION_ID:
837
    case TRANSACTION_ID:
740
      return isSetTransactionId();
838
      return isSetTransactionId();
741
    case INVOICE_NUMBER:
839
    case INVOICE_NUMBER:
742
      return isSetInvoiceNumber();
840
      return isSetInvoiceNumber();
743
    case ORDER_TYPE:
841
    case ORDER_TYPE:
744
      return isSetOrderType();
842
      return isSetOrderType();
745
    case OPERATOR_ID:
843
    case OPERATOR_ID:
746
      return isSetOperatorId();
844
      return isSetOperatorId();
747
    case RECHARGE_TYPE:
845
    case RECHARGE_TYPE:
748
      return isSetRechargeType();
846
      return isSetRechargeType();
749
    case RECHARGE_ORDER_STATUS:
847
    case STATUS:
750
      return isSetRechargeOrderStatus();
848
      return isSetStatus();
751
    case DEVICE_NUMBER:
849
    case DEVICE_NUMBER:
752
      return isSetDeviceNumber();
850
      return isSetDeviceNumber();
753
    case CUSTOMER_ID:
851
    case USER_ID:
754
      return isSetCustomerId();
852
      return isSetUserId();
755
    case CUSTOMER_EMAIL_ID:
853
    case USER_EMAIL_ID:
756
      return isSetCustomerEmailId();
854
      return isSetUserEmailId();
757
    case CREATION_TIMESTAMP:
855
    case CREATION_TIMESTAMP:
758
      return isSetCreationTimestamp();
856
      return isSetCreationTimestamp();
759
    }
857
    }
760
    throw new IllegalStateException();
858
    throw new IllegalStateException();
761
  }
859
  }
Line 771... Line 869...
771
 
869
 
772
  public boolean equals(RechargeOrder that) {
870
  public boolean equals(RechargeOrder that) {
773
    if (that == null)
871
    if (that == null)
774
      return false;
872
      return false;
775
 
873
 
776
    boolean this_present_id = true && this.isSetId();
874
    boolean this_present_id = true;
777
    boolean that_present_id = true && that.isSetId();
875
    boolean that_present_id = true;
778
    if (this_present_id || that_present_id) {
876
    if (this_present_id || that_present_id) {
779
      if (!(this_present_id && that_present_id))
877
      if (!(this_present_id && that_present_id))
780
        return false;
878
        return false;
781
      if (!this.id.equals(that.id))
879
      if (this.id != that.id)
-
 
880
        return false;
-
 
881
    }
-
 
882
 
-
 
883
    boolean this_present_displayId = true && this.isSetDisplayId();
-
 
884
    boolean that_present_displayId = true && that.isSetDisplayId();
-
 
885
    if (this_present_displayId || that_present_displayId) {
-
 
886
      if (!(this_present_displayId && that_present_displayId))
-
 
887
        return false;
-
 
888
      if (!this.displayId.equals(that.displayId))
-
 
889
        return false;
-
 
890
    }
-
 
891
 
-
 
892
    boolean this_present_totalAmount = true;
-
 
893
    boolean that_present_totalAmount = true;
-
 
894
    if (this_present_totalAmount || that_present_totalAmount) {
-
 
895
      if (!(this_present_totalAmount && that_present_totalAmount))
-
 
896
        return false;
-
 
897
      if (this.totalAmount != that.totalAmount)
782
        return false;
898
        return false;
783
    }
899
    }
784
 
900
 
785
    boolean this_present_amount = true;
901
    boolean this_present_walletAmount = true;
786
    boolean that_present_amount = true;
902
    boolean that_present_walletAmount = true;
787
    if (this_present_amount || that_present_amount) {
903
    if (this_present_walletAmount || that_present_walletAmount) {
788
      if (!(this_present_amount && that_present_amount))
904
      if (!(this_present_walletAmount && that_present_walletAmount))
789
        return false;
905
        return false;
790
      if (this.amount != that.amount)
906
      if (this.walletAmount != that.walletAmount)
791
        return false;
907
        return false;
792
    }
908
    }
793
 
909
 
794
    boolean this_present_transactionId = true;
910
    boolean this_present_transactionId = true;
795
    boolean that_present_transactionId = true;
911
    boolean that_present_transactionId = true;
Line 834... Line 950...
834
        return false;
950
        return false;
835
      if (!this.rechargeType.equals(that.rechargeType))
951
      if (!this.rechargeType.equals(that.rechargeType))
836
        return false;
952
        return false;
837
    }
953
    }
838
 
954
 
839
    boolean this_present_rechargeOrderStatus = true && this.isSetRechargeOrderStatus();
955
    boolean this_present_status = true && this.isSetStatus();
840
    boolean that_present_rechargeOrderStatus = true && that.isSetRechargeOrderStatus();
956
    boolean that_present_status = true && that.isSetStatus();
841
    if (this_present_rechargeOrderStatus || that_present_rechargeOrderStatus) {
957
    if (this_present_status || that_present_status) {
842
      if (!(this_present_rechargeOrderStatus && that_present_rechargeOrderStatus))
958
      if (!(this_present_status && that_present_status))
843
        return false;
959
        return false;
844
      if (!this.rechargeOrderStatus.equals(that.rechargeOrderStatus))
960
      if (!this.status.equals(that.status))
845
        return false;
961
        return false;
846
    }
962
    }
847
 
963
 
848
    boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
964
    boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
849
    boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
965
    boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
Line 852... Line 968...
852
        return false;
968
        return false;
853
      if (!this.deviceNumber.equals(that.deviceNumber))
969
      if (!this.deviceNumber.equals(that.deviceNumber))
854
        return false;
970
        return false;
855
    }
971
    }
856
 
972
 
857
    boolean this_present_customerId = true;
973
    boolean this_present_userId = true;
858
    boolean that_present_customerId = true;
974
    boolean that_present_userId = true;
859
    if (this_present_customerId || that_present_customerId) {
975
    if (this_present_userId || that_present_userId) {
860
      if (!(this_present_customerId && that_present_customerId))
976
      if (!(this_present_userId && that_present_userId))
861
        return false;
977
        return false;
862
      if (this.customerId != that.customerId)
978
      if (this.userId != that.userId)
863
        return false;
979
        return false;
864
    }
980
    }
865
 
981
 
866
    boolean this_present_customerEmailId = true;
982
    boolean this_present_userEmailId = true && this.isSetUserEmailId();
867
    boolean that_present_customerEmailId = true;
983
    boolean that_present_userEmailId = true && that.isSetUserEmailId();
868
    if (this_present_customerEmailId || that_present_customerEmailId) {
984
    if (this_present_userEmailId || that_present_userEmailId) {
869
      if (!(this_present_customerEmailId && that_present_customerEmailId))
985
      if (!(this_present_userEmailId && that_present_userEmailId))
870
        return false;
986
        return false;
871
      if (this.customerEmailId != that.customerEmailId)
987
      if (!this.userEmailId.equals(that.userEmailId))
872
        return false;
988
        return false;
873
    }
989
    }
874
 
990
 
875
    boolean this_present_creationTimestamp = true;
991
    boolean this_present_creationTimestamp = true;
876
    boolean that_present_creationTimestamp = true;
992
    boolean that_present_creationTimestamp = true;
Line 905... Line 1021...
905
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1021
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
906
      if (lastComparison != 0) {
1022
      if (lastComparison != 0) {
907
        return lastComparison;
1023
        return lastComparison;
908
      }
1024
      }
909
    }
1025
    }
-
 
1026
    lastComparison = Boolean.valueOf(isSetDisplayId()).compareTo(typedOther.isSetDisplayId());
-
 
1027
    if (lastComparison != 0) {
-
 
1028
      return lastComparison;
-
 
1029
    }
-
 
1030
    if (isSetDisplayId()) {
-
 
1031
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayId, typedOther.displayId);
-
 
1032
      if (lastComparison != 0) {
-
 
1033
        return lastComparison;
-
 
1034
      }
-
 
1035
    }
910
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
1036
    lastComparison = Boolean.valueOf(isSetTotalAmount()).compareTo(typedOther.isSetTotalAmount());
911
    if (lastComparison != 0) {
1037
    if (lastComparison != 0) {
912
      return lastComparison;
1038
      return lastComparison;
913
    }
1039
    }
914
    if (isSetAmount()) {
1040
    if (isSetTotalAmount()) {
915
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1041
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalAmount, typedOther.totalAmount);
-
 
1042
      if (lastComparison != 0) {
-
 
1043
        return lastComparison;
-
 
1044
      }
-
 
1045
    }
-
 
1046
    lastComparison = Boolean.valueOf(isSetWalletAmount()).compareTo(typedOther.isSetWalletAmount());
-
 
1047
    if (lastComparison != 0) {
-
 
1048
      return lastComparison;
-
 
1049
    }
-
 
1050
    if (isSetWalletAmount()) {
-
 
1051
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.walletAmount, typedOther.walletAmount);
916
      if (lastComparison != 0) {
1052
      if (lastComparison != 0) {
917
        return lastComparison;
1053
        return lastComparison;
918
      }
1054
      }
919
    }
1055
    }
920
    lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
1056
    lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
Line 965... Line 1101...
965
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
1101
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
966
      if (lastComparison != 0) {
1102
      if (lastComparison != 0) {
967
        return lastComparison;
1103
        return lastComparison;
968
      }
1104
      }
969
    }
1105
    }
970
    lastComparison = Boolean.valueOf(isSetRechargeOrderStatus()).compareTo(typedOther.isSetRechargeOrderStatus());
1106
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
971
    if (lastComparison != 0) {
1107
    if (lastComparison != 0) {
972
      return lastComparison;
1108
      return lastComparison;
973
    }
1109
    }
974
    if (isSetRechargeOrderStatus()) {
1110
    if (isSetStatus()) {
975
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderStatus, typedOther.rechargeOrderStatus);
1111
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
976
      if (lastComparison != 0) {
1112
      if (lastComparison != 0) {
977
        return lastComparison;
1113
        return lastComparison;
978
      }
1114
      }
979
    }
1115
    }
980
    lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
1116
    lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
Line 985... Line 1121...
985
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
1121
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
986
      if (lastComparison != 0) {
1122
      if (lastComparison != 0) {
987
        return lastComparison;
1123
        return lastComparison;
988
      }
1124
      }
989
    }
1125
    }
990
    lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
1126
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
991
    if (lastComparison != 0) {
1127
    if (lastComparison != 0) {
992
      return lastComparison;
1128
      return lastComparison;
993
    }
1129
    }
994
    if (isSetCustomerId()) {
1130
    if (isSetUserId()) {
995
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
1131
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
996
      if (lastComparison != 0) {
1132
      if (lastComparison != 0) {
997
        return lastComparison;
1133
        return lastComparison;
998
      }
1134
      }
999
    }
1135
    }
1000
    lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(typedOther.isSetCustomerEmailId());
1136
    lastComparison = Boolean.valueOf(isSetUserEmailId()).compareTo(typedOther.isSetUserEmailId());
1001
    if (lastComparison != 0) {
1137
    if (lastComparison != 0) {
1002
      return lastComparison;
1138
      return lastComparison;
1003
    }
1139
    }
1004
    if (isSetCustomerEmailId()) {
1140
    if (isSetUserEmailId()) {
1005
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerEmailId, typedOther.customerEmailId);
1141
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userEmailId, typedOther.userEmailId);
1006
      if (lastComparison != 0) {
1142
      if (lastComparison != 0) {
1007
        return lastComparison;
1143
        return lastComparison;
1008
      }
1144
      }
1009
    }
1145
    }
1010
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
1146
    lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
Line 1033... Line 1169...
1033
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1169
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1034
        break;
1170
        break;
1035
      }
1171
      }
1036
      switch (field.id) {
1172
      switch (field.id) {
1037
        case 1: // ID
1173
        case 1: // ID
-
 
1174
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1175
            this.id = iprot.readI64();
-
 
1176
            setIdIsSet(true);
-
 
1177
          } else { 
-
 
1178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1179
          }
-
 
1180
          break;
-
 
1181
        case 2: // DISPLAY_ID
1038
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1182
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1039
            this.id = iprot.readString();
1183
            this.displayId = iprot.readString();
1040
          } else { 
1184
          } else { 
1041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1185
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1042
          }
1186
          }
1043
          break;
1187
          break;
1044
        case 2: // AMOUNT
1188
        case 3: // TOTAL_AMOUNT
1045
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1189
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1046
            this.amount = iprot.readI64();
1190
            this.totalAmount = iprot.readI64();
1047
            setAmountIsSet(true);
1191
            setTotalAmountIsSet(true);
1048
          } else { 
1192
          } else { 
1049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1050
          }
1194
          }
1051
          break;
1195
          break;
-
 
1196
        case 4: // WALLET_AMOUNT
-
 
1197
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1198
            this.walletAmount = iprot.readI64();
-
 
1199
            setWalletAmountIsSet(true);
-
 
1200
          } else { 
-
 
1201
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1202
          }
-
 
1203
          break;
1052
        case 3: // TRANSACTION_ID
1204
        case 5: // TRANSACTION_ID
1053
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1205
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1054
            this.transactionId = iprot.readI64();
1206
            this.transactionId = iprot.readI64();
1055
            setTransactionIdIsSet(true);
1207
            setTransactionIdIsSet(true);
1056
          } else { 
1208
          } else { 
1057
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1058
          }
1210
          }
1059
          break;
1211
          break;
1060
        case 4: // INVOICE_NUMBER
1212
        case 6: // INVOICE_NUMBER
1061
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1213
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1062
            this.invoiceNumber = iprot.readString();
1214
            this.invoiceNumber = iprot.readString();
1063
          } else { 
1215
          } else { 
1064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1065
          }
1217
          }
1066
          break;
1218
          break;
1067
        case 5: // ORDER_TYPE
1219
        case 7: // ORDER_TYPE
1068
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1220
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1069
            this.orderType = OrderType.findByValue(iprot.readI32());
1221
            this.orderType = OrderType.findByValue(iprot.readI32());
1070
          } else { 
1222
          } else { 
1071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1072
          }
1224
          }
1073
          break;
1225
          break;
1074
        case 6: // OPERATOR_ID
1226
        case 8: // OPERATOR_ID
1075
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1227
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1076
            this.operatorId = iprot.readI64();
1228
            this.operatorId = iprot.readI64();
1077
            setOperatorIdIsSet(true);
1229
            setOperatorIdIsSet(true);
1078
          } else { 
1230
          } else { 
1079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1231
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1080
          }
1232
          }
1081
          break;
1233
          break;
1082
        case 7: // RECHARGE_TYPE
1234
        case 9: // RECHARGE_TYPE
1083
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1235
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1084
            this.rechargeType = RechargeType.findByValue(iprot.readI32());
1236
            this.rechargeType = RechargeType.findByValue(iprot.readI32());
1085
          } else { 
1237
          } else { 
1086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1087
          }
1239
          }
1088
          break;
1240
          break;
1089
        case 8: // RECHARGE_ORDER_STATUS
1241
        case 10: // STATUS
1090
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1242
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1091
            this.rechargeOrderStatus = RechargeOrderStatus.findByValue(iprot.readI32());
1243
            this.status = RechargeOrderStatus.findByValue(iprot.readI32());
1092
          } else { 
1244
          } else { 
1093
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1245
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1094
          }
1246
          }
1095
          break;
1247
          break;
1096
        case 9: // DEVICE_NUMBER
1248
        case 11: // DEVICE_NUMBER
1097
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1249
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1098
            this.deviceNumber = iprot.readString();
1250
            this.deviceNumber = iprot.readString();
1099
          } else { 
1251
          } else { 
1100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1101
          }
1253
          }
1102
          break;
1254
          break;
1103
        case 10: // CUSTOMER_ID
1255
        case 12: // USER_ID
1104
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1256
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1105
            this.customerId = iprot.readI64();
1257
            this.userId = iprot.readI64();
1106
            setCustomerIdIsSet(true);
1258
            setUserIdIsSet(true);
1107
          } else { 
1259
          } else { 
1108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1109
          }
1261
          }
1110
          break;
1262
          break;
1111
        case 11: // CUSTOMER_EMAIL_ID
1263
        case 13: // USER_EMAIL_ID
1112
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1264
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1113
            this.customerEmailId = iprot.readI64();
1265
            this.userEmailId = iprot.readString();
1114
            setCustomerEmailIdIsSet(true);
-
 
1115
          } else { 
1266
          } else { 
1116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1267
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1117
          }
1268
          }
1118
          break;
1269
          break;
1119
        case 12: // CREATION_TIMESTAMP
1270
        case 14: // CREATION_TIMESTAMP
1120
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1271
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1121
            this.creationTimestamp = iprot.readI64();
1272
            this.creationTimestamp = iprot.readI64();
1122
            setCreationTimestampIsSet(true);
1273
            setCreationTimestampIsSet(true);
1123
          } else { 
1274
          } else { 
1124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1275
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1135... Line 1286...
1135
 
1286
 
1136
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1287
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1137
    validate();
1288
    validate();
1138
 
1289
 
1139
    oprot.writeStructBegin(STRUCT_DESC);
1290
    oprot.writeStructBegin(STRUCT_DESC);
-
 
1291
    oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
1292
    oprot.writeI64(this.id);
-
 
1293
    oprot.writeFieldEnd();
1140
    if (this.id != null) {
1294
    if (this.displayId != null) {
1141
      oprot.writeFieldBegin(ID_FIELD_DESC);
1295
      oprot.writeFieldBegin(DISPLAY_ID_FIELD_DESC);
1142
      oprot.writeString(this.id);
1296
      oprot.writeString(this.displayId);
1143
      oprot.writeFieldEnd();
1297
      oprot.writeFieldEnd();
1144
    }
1298
    }
1145
    oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
1299
    oprot.writeFieldBegin(TOTAL_AMOUNT_FIELD_DESC);
1146
    oprot.writeI64(this.amount);
1300
    oprot.writeI64(this.totalAmount);
-
 
1301
    oprot.writeFieldEnd();
-
 
1302
    oprot.writeFieldBegin(WALLET_AMOUNT_FIELD_DESC);
-
 
1303
    oprot.writeI64(this.walletAmount);
1147
    oprot.writeFieldEnd();
1304
    oprot.writeFieldEnd();
1148
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
1305
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
1149
    oprot.writeI64(this.transactionId);
1306
    oprot.writeI64(this.transactionId);
1150
    oprot.writeFieldEnd();
1307
    oprot.writeFieldEnd();
1151
    if (this.invoiceNumber != null) {
1308
    if (this.invoiceNumber != null) {
Line 1164... Line 1321...
1164
    if (this.rechargeType != null) {
1321
    if (this.rechargeType != null) {
1165
      oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
1322
      oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
1166
      oprot.writeI32(this.rechargeType.getValue());
1323
      oprot.writeI32(this.rechargeType.getValue());
1167
      oprot.writeFieldEnd();
1324
      oprot.writeFieldEnd();
1168
    }
1325
    }
1169
    if (this.rechargeOrderStatus != null) {
1326
    if (this.status != null) {
1170
      oprot.writeFieldBegin(RECHARGE_ORDER_STATUS_FIELD_DESC);
1327
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1171
      oprot.writeI32(this.rechargeOrderStatus.getValue());
1328
      oprot.writeI32(this.status.getValue());
1172
      oprot.writeFieldEnd();
1329
      oprot.writeFieldEnd();
1173
    }
1330
    }
1174
    if (this.deviceNumber != null) {
1331
    if (this.deviceNumber != null) {
1175
      oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
1332
      oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
1176
      oprot.writeString(this.deviceNumber);
1333
      oprot.writeString(this.deviceNumber);
1177
      oprot.writeFieldEnd();
1334
      oprot.writeFieldEnd();
1178
    }
1335
    }
1179
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1336
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1180
    oprot.writeI64(this.customerId);
1337
    oprot.writeI64(this.userId);
1181
    oprot.writeFieldEnd();
-
 
1182
    oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
-
 
1183
    oprot.writeI64(this.customerEmailId);
-
 
1184
    oprot.writeFieldEnd();
1338
    oprot.writeFieldEnd();
-
 
1339
    if (this.userEmailId != null) {
-
 
1340
      oprot.writeFieldBegin(USER_EMAIL_ID_FIELD_DESC);
-
 
1341
      oprot.writeString(this.userEmailId);
-
 
1342
      oprot.writeFieldEnd();
-
 
1343
    }
1185
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1344
    oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
1186
    oprot.writeI64(this.creationTimestamp);
1345
    oprot.writeI64(this.creationTimestamp);
1187
    oprot.writeFieldEnd();
1346
    oprot.writeFieldEnd();
1188
    oprot.writeFieldStop();
1347
    oprot.writeFieldStop();
1189
    oprot.writeStructEnd();
1348
    oprot.writeStructEnd();
Line 1193... Line 1352...
1193
  public String toString() {
1352
  public String toString() {
1194
    StringBuilder sb = new StringBuilder("RechargeOrder(");
1353
    StringBuilder sb = new StringBuilder("RechargeOrder(");
1195
    boolean first = true;
1354
    boolean first = true;
1196
 
1355
 
1197
    sb.append("id:");
1356
    sb.append("id:");
-
 
1357
    sb.append(this.id);
-
 
1358
    first = false;
-
 
1359
    if (!first) sb.append(", ");
-
 
1360
    sb.append("displayId:");
1198
    if (this.id == null) {
1361
    if (this.displayId == null) {
1199
      sb.append("null");
1362
      sb.append("null");
1200
    } else {
1363
    } else {
1201
      sb.append(this.id);
1364
      sb.append(this.displayId);
1202
    }
1365
    }
1203
    first = false;
1366
    first = false;
1204
    if (!first) sb.append(", ");
1367
    if (!first) sb.append(", ");
1205
    sb.append("amount:");
1368
    sb.append("totalAmount:");
1206
    sb.append(this.amount);
1369
    sb.append(this.totalAmount);
-
 
1370
    first = false;
-
 
1371
    if (!first) sb.append(", ");
-
 
1372
    sb.append("walletAmount:");
-
 
1373
    sb.append(this.walletAmount);
1207
    first = false;
1374
    first = false;
1208
    if (!first) sb.append(", ");
1375
    if (!first) sb.append(", ");
1209
    sb.append("transactionId:");
1376
    sb.append("transactionId:");
1210
    sb.append(this.transactionId);
1377
    sb.append(this.transactionId);
1211
    first = false;
1378
    first = false;
Line 1236... Line 1403...
1236
    } else {
1403
    } else {
1237
      sb.append(this.rechargeType);
1404
      sb.append(this.rechargeType);
1238
    }
1405
    }
1239
    first = false;
1406
    first = false;
1240
    if (!first) sb.append(", ");
1407
    if (!first) sb.append(", ");
1241
    sb.append("rechargeOrderStatus:");
1408
    sb.append("status:");
1242
    if (this.rechargeOrderStatus == null) {
1409
    if (this.status == null) {
1243
      sb.append("null");
1410
      sb.append("null");
1244
    } else {
1411
    } else {
1245
      sb.append(this.rechargeOrderStatus);
1412
      sb.append(this.status);
1246
    }
1413
    }
1247
    first = false;
1414
    first = false;
1248
    if (!first) sb.append(", ");
1415
    if (!first) sb.append(", ");
1249
    sb.append("deviceNumber:");
1416
    sb.append("deviceNumber:");
1250
    if (this.deviceNumber == null) {
1417
    if (this.deviceNumber == null) {
Line 1252... Line 1419...
1252
    } else {
1419
    } else {
1253
      sb.append(this.deviceNumber);
1420
      sb.append(this.deviceNumber);
1254
    }
1421
    }
1255
    first = false;
1422
    first = false;
1256
    if (!first) sb.append(", ");
1423
    if (!first) sb.append(", ");
1257
    sb.append("customerId:");
1424
    sb.append("userId:");
1258
    sb.append(this.customerId);
1425
    sb.append(this.userId);
1259
    first = false;
1426
    first = false;
1260
    if (!first) sb.append(", ");
1427
    if (!first) sb.append(", ");
1261
    sb.append("customerEmailId:");
1428
    sb.append("userEmailId:");
-
 
1429
    if (this.userEmailId == null) {
-
 
1430
      sb.append("null");
-
 
1431
    } else {
1262
    sb.append(this.customerEmailId);
1432
      sb.append(this.userEmailId);
-
 
1433
    }
1263
    first = false;
1434
    first = false;
1264
    if (!first) sb.append(", ");
1435
    if (!first) sb.append(", ");
1265
    sb.append("creationTimestamp:");
1436
    sb.append("creationTimestamp:");
1266
    sb.append(this.creationTimestamp);
1437
    sb.append(this.creationTimestamp);
1267
    first = false;
1438
    first = false;