Subversion Repositories SmartDukaan

Rev

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

Rev 18585 Rev 18634
Line 21... Line 21...
21
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
22
 
22
 
23
public class CreditHistory implements org.apache.thrift.TBase<CreditHistory, CreditHistory._Fields>, java.io.Serializable, Cloneable {
23
public class CreditHistory implements org.apache.thrift.TBase<CreditHistory, CreditHistory._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CreditHistory");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CreditHistory");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (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 CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor_id", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", 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("payment_id", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor_id", org.apache.thrift.protocol.TType.I64, (short)3);
29
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
29
  private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("payment_id", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField CREDIT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_type", org.apache.thrift.protocol.TType.I32, (short)5);
30
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField CREATED_FIELD_DESC = new org.apache.thrift.protocol.TField("created", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField CREDIT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_type", org.apache.thrift.protocol.TType.I32, (short)6);
32
  private static final org.apache.thrift.protocol.TField UPDATED_FIELD_DESC = new org.apache.thrift.protocol.TField("updated", org.apache.thrift.protocol.TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField CREATED_FIELD_DESC = new org.apache.thrift.protocol.TField("created", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField LOAN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("loan_id", org.apache.thrift.protocol.TType.STRING, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField SHIPPING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shipping_id", org.apache.thrift.protocol.TType.STRING, (short)9);
33
  private static final org.apache.thrift.protocol.TField SHIPPING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shipping_id", org.apache.thrift.protocol.TType.STRING, (short)8);
35
  private static final org.apache.thrift.protocol.TField DUE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("due_date", org.apache.thrift.protocol.TType.I64, (short)10);
-
 
36
 
34
 
-
 
35
  private long id; // required
37
  private long user_id; // required
36
  private long user_id; // required
38
  private long creditor_id; // required
37
  private long creditor_id; // required
39
  private long payment_id; // required
38
  private long payment_id; // required
40
  private double amount; // required
39
  private double amount; // required
41
  private CreditTxnType credit_type; // required
40
  private CreditTxnType credit_type; // required
42
  private long created; // required
41
  private long created; // required
43
  private long updated; // required
-
 
44
  private String loan_id; // required
-
 
45
  private String shipping_id; // required
42
  private String shipping_id; // required
46
  private long due_date; // required
-
 
47
 
43
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46
    ID((short)1, "id"),
50
    USER_ID((short)1, "user_id"),
47
    USER_ID((short)2, "user_id"),
51
    CREDITOR_ID((short)2, "creditor_id"),
48
    CREDITOR_ID((short)3, "creditor_id"),
52
    PAYMENT_ID((short)3, "payment_id"),
49
    PAYMENT_ID((short)4, "payment_id"),
53
    AMOUNT((short)4, "amount"),
50
    AMOUNT((short)5, "amount"),
54
    /**
51
    /**
55
     * 
52
     * 
56
     * @see CreditTxnType
53
     * @see CreditTxnType
57
     */
54
     */
58
    CREDIT_TYPE((short)5, "credit_type"),
55
    CREDIT_TYPE((short)6, "credit_type"),
59
    CREATED((short)6, "created"),
56
    CREATED((short)7, "created"),
60
    UPDATED((short)7, "updated"),
-
 
61
    LOAN_ID((short)8, "loan_id"),
-
 
62
    SHIPPING_ID((short)9, "shipping_id"),
57
    SHIPPING_ID((short)8, "shipping_id");
63
    DUE_DATE((short)10, "due_date");
-
 
64
 
58
 
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
60
 
67
    static {
61
    static {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
62
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 73... Line 67...
73
    /**
67
    /**
74
     * Find the _Fields constant that matches fieldId, or null if its not found.
68
     * Find the _Fields constant that matches fieldId, or null if its not found.
75
     */
69
     */
76
    public static _Fields findByThriftId(int fieldId) {
70
    public static _Fields findByThriftId(int fieldId) {
77
      switch(fieldId) {
71
      switch(fieldId) {
-
 
72
        case 1: // ID
-
 
73
          return ID;
78
        case 1: // USER_ID
74
        case 2: // USER_ID
79
          return USER_ID;
75
          return USER_ID;
80
        case 2: // CREDITOR_ID
76
        case 3: // CREDITOR_ID
81
          return CREDITOR_ID;
77
          return CREDITOR_ID;
82
        case 3: // PAYMENT_ID
78
        case 4: // PAYMENT_ID
83
          return PAYMENT_ID;
79
          return PAYMENT_ID;
84
        case 4: // AMOUNT
80
        case 5: // AMOUNT
85
          return AMOUNT;
81
          return AMOUNT;
86
        case 5: // CREDIT_TYPE
82
        case 6: // CREDIT_TYPE
87
          return CREDIT_TYPE;
83
          return CREDIT_TYPE;
88
        case 6: // CREATED
84
        case 7: // CREATED
89
          return CREATED;
85
          return CREATED;
90
        case 7: // UPDATED
-
 
91
          return UPDATED;
-
 
92
        case 8: // LOAN_ID
-
 
93
          return LOAN_ID;
-
 
94
        case 9: // SHIPPING_ID
86
        case 8: // SHIPPING_ID
95
          return SHIPPING_ID;
87
          return SHIPPING_ID;
96
        case 10: // DUE_DATE
-
 
97
          return DUE_DATE;
-
 
98
        default:
88
        default:
99
          return null;
89
          return null;
100
      }
90
      }
101
    }
91
    }
102
 
92
 
Line 133... Line 123...
133
      return _fieldName;
123
      return _fieldName;
134
    }
124
    }
135
  }
125
  }
136
 
126
 
137
  // isset id assignments
127
  // isset id assignments
138
  private static final int __USER_ID_ISSET_ID = 0;
128
  private static final int __ID_ISSET_ID = 0;
139
  private static final int __CREDITOR_ID_ISSET_ID = 1;
129
  private static final int __USER_ID_ISSET_ID = 1;
140
  private static final int __PAYMENT_ID_ISSET_ID = 2;
130
  private static final int __CREDITOR_ID_ISSET_ID = 2;
141
  private static final int __AMOUNT_ISSET_ID = 3;
131
  private static final int __PAYMENT_ID_ISSET_ID = 3;
142
  private static final int __CREATED_ISSET_ID = 4;
132
  private static final int __AMOUNT_ISSET_ID = 4;
143
  private static final int __UPDATED_ISSET_ID = 5;
133
  private static final int __CREATED_ISSET_ID = 5;
144
  private static final int __DUE_DATE_ISSET_ID = 6;
-
 
145
  private BitSet __isset_bit_vector = new BitSet(7);
134
  private BitSet __isset_bit_vector = new BitSet(6);
146
 
135
 
147
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
136
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
148
  static {
137
  static {
149
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
138
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
139
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
150
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
141
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
    tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
143
    tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
154
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("payment_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("payment_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 157... Line 148...
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
158
    tmpMap.put(_Fields.CREDIT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("credit_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
149
    tmpMap.put(_Fields.CREDIT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("credit_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
150
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CreditTxnType.class)));
160
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
151
    tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
162
    tmpMap.put(_Fields.UPDATED, new org.apache.thrift.meta_data.FieldMetaData("updated", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
164
    tmpMap.put(_Fields.LOAN_ID, new org.apache.thrift.meta_data.FieldMetaData("loan_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
166
    tmpMap.put(_Fields.SHIPPING_ID, new org.apache.thrift.meta_data.FieldMetaData("shipping_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.SHIPPING_ID, new org.apache.thrift.meta_data.FieldMetaData("shipping_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
168
    tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("due_date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
170
    metaDataMap = Collections.unmodifiableMap(tmpMap);
155
    metaDataMap = Collections.unmodifiableMap(tmpMap);
171
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CreditHistory.class, metaDataMap);
156
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CreditHistory.class, metaDataMap);
172
  }
157
  }
173
 
158
 
174
  public CreditHistory() {
159
  public CreditHistory() {
175
  }
160
  }
176
 
161
 
177
  public CreditHistory(
162
  public CreditHistory(
-
 
163
    long id,
178
    long user_id,
164
    long user_id,
179
    long creditor_id,
165
    long creditor_id,
180
    long payment_id,
166
    long payment_id,
181
    double amount,
167
    double amount,
182
    CreditTxnType credit_type,
168
    CreditTxnType credit_type,
183
    long created,
169
    long created,
184
    long updated,
-
 
185
    String loan_id,
-
 
186
    String shipping_id,
170
    String shipping_id)
187
    long due_date)
-
 
188
  {
171
  {
189
    this();
172
    this();
-
 
173
    this.id = id;
-
 
174
    setIdIsSet(true);
190
    this.user_id = user_id;
175
    this.user_id = user_id;
191
    setUser_idIsSet(true);
176
    setUser_idIsSet(true);
192
    this.creditor_id = creditor_id;
177
    this.creditor_id = creditor_id;
193
    setCreditor_idIsSet(true);
178
    setCreditor_idIsSet(true);
194
    this.payment_id = payment_id;
179
    this.payment_id = payment_id;
Line 196... Line 181...
196
    this.amount = amount;
181
    this.amount = amount;
197
    setAmountIsSet(true);
182
    setAmountIsSet(true);
198
    this.credit_type = credit_type;
183
    this.credit_type = credit_type;
199
    this.created = created;
184
    this.created = created;
200
    setCreatedIsSet(true);
185
    setCreatedIsSet(true);
201
    this.updated = updated;
-
 
202
    setUpdatedIsSet(true);
-
 
203
    this.loan_id = loan_id;
-
 
204
    this.shipping_id = shipping_id;
186
    this.shipping_id = shipping_id;
205
    this.due_date = due_date;
-
 
206
    setDue_dateIsSet(true);
-
 
207
  }
187
  }
208
 
188
 
209
  /**
189
  /**
210
   * Performs a deep copy on <i>other</i>.
190
   * Performs a deep copy on <i>other</i>.
211
   */
191
   */
212
  public CreditHistory(CreditHistory other) {
192
  public CreditHistory(CreditHistory other) {
213
    __isset_bit_vector.clear();
193
    __isset_bit_vector.clear();
214
    __isset_bit_vector.or(other.__isset_bit_vector);
194
    __isset_bit_vector.or(other.__isset_bit_vector);
-
 
195
    this.id = other.id;
215
    this.user_id = other.user_id;
196
    this.user_id = other.user_id;
216
    this.creditor_id = other.creditor_id;
197
    this.creditor_id = other.creditor_id;
217
    this.payment_id = other.payment_id;
198
    this.payment_id = other.payment_id;
218
    this.amount = other.amount;
199
    this.amount = other.amount;
219
    if (other.isSetCredit_type()) {
200
    if (other.isSetCredit_type()) {
220
      this.credit_type = other.credit_type;
201
      this.credit_type = other.credit_type;
221
    }
202
    }
222
    this.created = other.created;
203
    this.created = other.created;
223
    this.updated = other.updated;
-
 
224
    if (other.isSetLoan_id()) {
-
 
225
      this.loan_id = other.loan_id;
-
 
226
    }
-
 
227
    if (other.isSetShipping_id()) {
204
    if (other.isSetShipping_id()) {
228
      this.shipping_id = other.shipping_id;
205
      this.shipping_id = other.shipping_id;
229
    }
206
    }
230
    this.due_date = other.due_date;
-
 
231
  }
207
  }
232
 
208
 
233
  public CreditHistory deepCopy() {
209
  public CreditHistory deepCopy() {
234
    return new CreditHistory(this);
210
    return new CreditHistory(this);
235
  }
211
  }
236
 
212
 
237
  @Override
213
  @Override
238
  public void clear() {
214
  public void clear() {
-
 
215
    setIdIsSet(false);
-
 
216
    this.id = 0;
239
    setUser_idIsSet(false);
217
    setUser_idIsSet(false);
240
    this.user_id = 0;
218
    this.user_id = 0;
241
    setCreditor_idIsSet(false);
219
    setCreditor_idIsSet(false);
242
    this.creditor_id = 0;
220
    this.creditor_id = 0;
243
    setPayment_idIsSet(false);
221
    setPayment_idIsSet(false);
Line 245... Line 223...
245
    setAmountIsSet(false);
223
    setAmountIsSet(false);
246
    this.amount = 0.0;
224
    this.amount = 0.0;
247
    this.credit_type = null;
225
    this.credit_type = null;
248
    setCreatedIsSet(false);
226
    setCreatedIsSet(false);
249
    this.created = 0;
227
    this.created = 0;
250
    setUpdatedIsSet(false);
-
 
251
    this.updated = 0;
-
 
252
    this.loan_id = null;
-
 
253
    this.shipping_id = null;
228
    this.shipping_id = null;
-
 
229
  }
-
 
230
 
-
 
231
  public long getId() {
254
    setDue_dateIsSet(false);
232
    return this.id;
-
 
233
  }
-
 
234
 
-
 
235
  public void setId(long id) {
255
    this.due_date = 0;
236
    this.id = id;
-
 
237
    setIdIsSet(true);
-
 
238
  }
-
 
239
 
-
 
240
  public void unsetId() {
-
 
241
    __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
242
  }
-
 
243
 
-
 
244
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
245
  public boolean isSetId() {
-
 
246
    return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
247
  }
-
 
248
 
-
 
249
  public void setIdIsSet(boolean value) {
-
 
250
    __isset_bit_vector.set(__ID_ISSET_ID, value);
256
  }
251
  }
257
 
252
 
258
  public long getUser_id() {
253
  public long getUser_id() {
259
    return this.user_id;
254
    return this.user_id;
260
  }
255
  }
Line 394... Line 389...
394
 
389
 
395
  public void setCreatedIsSet(boolean value) {
390
  public void setCreatedIsSet(boolean value) {
396
    __isset_bit_vector.set(__CREATED_ISSET_ID, value);
391
    __isset_bit_vector.set(__CREATED_ISSET_ID, value);
397
  }
392
  }
398
 
393
 
399
  public long getUpdated() {
-
 
400
    return this.updated;
-
 
401
  }
-
 
402
 
-
 
403
  public void setUpdated(long updated) {
-
 
404
    this.updated = updated;
-
 
405
    setUpdatedIsSet(true);
-
 
406
  }
-
 
407
 
-
 
408
  public void unsetUpdated() {
-
 
409
    __isset_bit_vector.clear(__UPDATED_ISSET_ID);
-
 
410
  }
-
 
411
 
-
 
412
  /** Returns true if field updated is set (has been assigned a value) and false otherwise */
-
 
413
  public boolean isSetUpdated() {
-
 
414
    return __isset_bit_vector.get(__UPDATED_ISSET_ID);
-
 
415
  }
-
 
416
 
-
 
417
  public void setUpdatedIsSet(boolean value) {
-
 
418
    __isset_bit_vector.set(__UPDATED_ISSET_ID, value);
-
 
419
  }
-
 
420
 
-
 
421
  public String getLoan_id() {
-
 
422
    return this.loan_id;
-
 
423
  }
-
 
424
 
-
 
425
  public void setLoan_id(String loan_id) {
-
 
426
    this.loan_id = loan_id;
-
 
427
  }
-
 
428
 
-
 
429
  public void unsetLoan_id() {
-
 
430
    this.loan_id = null;
-
 
431
  }
-
 
432
 
-
 
433
  /** Returns true if field loan_id is set (has been assigned a value) and false otherwise */
-
 
434
  public boolean isSetLoan_id() {
-
 
435
    return this.loan_id != null;
-
 
436
  }
-
 
437
 
-
 
438
  public void setLoan_idIsSet(boolean value) {
-
 
439
    if (!value) {
-
 
440
      this.loan_id = null;
-
 
441
    }
-
 
442
  }
-
 
443
 
-
 
444
  public String getShipping_id() {
394
  public String getShipping_id() {
445
    return this.shipping_id;
395
    return this.shipping_id;
446
  }
396
  }
447
 
397
 
448
  public void setShipping_id(String shipping_id) {
398
  public void setShipping_id(String shipping_id) {
Line 462... Line 412...
462
    if (!value) {
412
    if (!value) {
463
      this.shipping_id = null;
413
      this.shipping_id = null;
464
    }
414
    }
465
  }
415
  }
466
 
416
 
467
  public long getDue_date() {
-
 
468
    return this.due_date;
-
 
469
  }
-
 
470
 
-
 
471
  public void setDue_date(long due_date) {
-
 
472
    this.due_date = due_date;
-
 
473
    setDue_dateIsSet(true);
-
 
474
  }
-
 
475
 
-
 
476
  public void unsetDue_date() {
-
 
477
    __isset_bit_vector.clear(__DUE_DATE_ISSET_ID);
-
 
478
  }
-
 
479
 
-
 
480
  /** Returns true if field due_date is set (has been assigned a value) and false otherwise */
-
 
481
  public boolean isSetDue_date() {
-
 
482
    return __isset_bit_vector.get(__DUE_DATE_ISSET_ID);
-
 
483
  }
-
 
484
 
-
 
485
  public void setDue_dateIsSet(boolean value) {
-
 
486
    __isset_bit_vector.set(__DUE_DATE_ISSET_ID, value);
-
 
487
  }
-
 
488
 
-
 
489
  public void setFieldValue(_Fields field, Object value) {
417
  public void setFieldValue(_Fields field, Object value) {
490
    switch (field) {
418
    switch (field) {
-
 
419
    case ID:
-
 
420
      if (value == null) {
-
 
421
        unsetId();
-
 
422
      } else {
-
 
423
        setId((Long)value);
-
 
424
      }
-
 
425
      break;
-
 
426
 
491
    case USER_ID:
427
    case USER_ID:
492
      if (value == null) {
428
      if (value == null) {
493
        unsetUser_id();
429
        unsetUser_id();
494
      } else {
430
      } else {
495
        setUser_id((Long)value);
431
        setUser_id((Long)value);
Line 534... Line 470...
534
      } else {
470
      } else {
535
        setCreated((Long)value);
471
        setCreated((Long)value);
536
      }
472
      }
537
      break;
473
      break;
538
 
474
 
539
    case UPDATED:
-
 
540
      if (value == null) {
-
 
541
        unsetUpdated();
-
 
542
      } else {
-
 
543
        setUpdated((Long)value);
-
 
544
      }
-
 
545
      break;
-
 
546
 
-
 
547
    case LOAN_ID:
-
 
548
      if (value == null) {
-
 
549
        unsetLoan_id();
-
 
550
      } else {
-
 
551
        setLoan_id((String)value);
-
 
552
      }
-
 
553
      break;
-
 
554
 
-
 
555
    case SHIPPING_ID:
475
    case SHIPPING_ID:
556
      if (value == null) {
476
      if (value == null) {
557
        unsetShipping_id();
477
        unsetShipping_id();
558
      } else {
478
      } else {
559
        setShipping_id((String)value);
479
        setShipping_id((String)value);
560
      }
480
      }
561
      break;
481
      break;
562
 
482
 
563
    case DUE_DATE:
-
 
564
      if (value == null) {
-
 
565
        unsetDue_date();
-
 
566
      } else {
-
 
567
        setDue_date((Long)value);
-
 
568
      }
-
 
569
      break;
-
 
570
 
-
 
571
    }
483
    }
572
  }
484
  }
573
 
485
 
574
  public Object getFieldValue(_Fields field) {
486
  public Object getFieldValue(_Fields field) {
575
    switch (field) {
487
    switch (field) {
-
 
488
    case ID:
-
 
489
      return Long.valueOf(getId());
-
 
490
 
576
    case USER_ID:
491
    case USER_ID:
577
      return Long.valueOf(getUser_id());
492
      return Long.valueOf(getUser_id());
578
 
493
 
579
    case CREDITOR_ID:
494
    case CREDITOR_ID:
580
      return Long.valueOf(getCreditor_id());
495
      return Long.valueOf(getCreditor_id());
Line 589... Line 504...
589
      return getCredit_type();
504
      return getCredit_type();
590
 
505
 
591
    case CREATED:
506
    case CREATED:
592
      return Long.valueOf(getCreated());
507
      return Long.valueOf(getCreated());
593
 
508
 
594
    case UPDATED:
-
 
595
      return Long.valueOf(getUpdated());
-
 
596
 
-
 
597
    case LOAN_ID:
-
 
598
      return getLoan_id();
-
 
599
 
-
 
600
    case SHIPPING_ID:
509
    case SHIPPING_ID:
601
      return getShipping_id();
510
      return getShipping_id();
602
 
511
 
603
    case DUE_DATE:
-
 
604
      return Long.valueOf(getDue_date());
-
 
605
 
-
 
606
    }
512
    }
607
    throw new IllegalStateException();
513
    throw new IllegalStateException();
608
  }
514
  }
609
 
515
 
610
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
516
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 612... Line 518...
612
    if (field == null) {
518
    if (field == null) {
613
      throw new IllegalArgumentException();
519
      throw new IllegalArgumentException();
614
    }
520
    }
615
 
521
 
616
    switch (field) {
522
    switch (field) {
-
 
523
    case ID:
-
 
524
      return isSetId();
617
    case USER_ID:
525
    case USER_ID:
618
      return isSetUser_id();
526
      return isSetUser_id();
619
    case CREDITOR_ID:
527
    case CREDITOR_ID:
620
      return isSetCreditor_id();
528
      return isSetCreditor_id();
621
    case PAYMENT_ID:
529
    case PAYMENT_ID:
Line 624... Line 532...
624
      return isSetAmount();
532
      return isSetAmount();
625
    case CREDIT_TYPE:
533
    case CREDIT_TYPE:
626
      return isSetCredit_type();
534
      return isSetCredit_type();
627
    case CREATED:
535
    case CREATED:
628
      return isSetCreated();
536
      return isSetCreated();
629
    case UPDATED:
-
 
630
      return isSetUpdated();
-
 
631
    case LOAN_ID:
-
 
632
      return isSetLoan_id();
-
 
633
    case SHIPPING_ID:
537
    case SHIPPING_ID:
634
      return isSetShipping_id();
538
      return isSetShipping_id();
635
    case DUE_DATE:
-
 
636
      return isSetDue_date();
-
 
637
    }
539
    }
638
    throw new IllegalStateException();
540
    throw new IllegalStateException();
639
  }
541
  }
640
 
542
 
641
  @Override
543
  @Override
Line 649... Line 551...
649
 
551
 
650
  public boolean equals(CreditHistory that) {
552
  public boolean equals(CreditHistory that) {
651
    if (that == null)
553
    if (that == null)
652
      return false;
554
      return false;
653
 
555
 
-
 
556
    boolean this_present_id = true;
-
 
557
    boolean that_present_id = true;
-
 
558
    if (this_present_id || that_present_id) {
-
 
559
      if (!(this_present_id && that_present_id))
-
 
560
        return false;
-
 
561
      if (this.id != that.id)
-
 
562
        return false;
-
 
563
    }
-
 
564
 
654
    boolean this_present_user_id = true;
565
    boolean this_present_user_id = true;
655
    boolean that_present_user_id = true;
566
    boolean that_present_user_id = true;
656
    if (this_present_user_id || that_present_user_id) {
567
    if (this_present_user_id || that_present_user_id) {
657
      if (!(this_present_user_id && that_present_user_id))
568
      if (!(this_present_user_id && that_present_user_id))
658
        return false;
569
        return false;
Line 703... Line 614...
703
        return false;
614
        return false;
704
      if (this.created != that.created)
615
      if (this.created != that.created)
705
        return false;
616
        return false;
706
    }
617
    }
707
 
618
 
708
    boolean this_present_updated = true;
-
 
709
    boolean that_present_updated = true;
-
 
710
    if (this_present_updated || that_present_updated) {
-
 
711
      if (!(this_present_updated && that_present_updated))
-
 
712
        return false;
-
 
713
      if (this.updated != that.updated)
-
 
714
        return false;
-
 
715
    }
-
 
716
 
-
 
717
    boolean this_present_loan_id = true && this.isSetLoan_id();
-
 
718
    boolean that_present_loan_id = true && that.isSetLoan_id();
-
 
719
    if (this_present_loan_id || that_present_loan_id) {
-
 
720
      if (!(this_present_loan_id && that_present_loan_id))
-
 
721
        return false;
-
 
722
      if (!this.loan_id.equals(that.loan_id))
-
 
723
        return false;
-
 
724
    }
-
 
725
 
-
 
726
    boolean this_present_shipping_id = true && this.isSetShipping_id();
619
    boolean this_present_shipping_id = true && this.isSetShipping_id();
727
    boolean that_present_shipping_id = true && that.isSetShipping_id();
620
    boolean that_present_shipping_id = true && that.isSetShipping_id();
728
    if (this_present_shipping_id || that_present_shipping_id) {
621
    if (this_present_shipping_id || that_present_shipping_id) {
729
      if (!(this_present_shipping_id && that_present_shipping_id))
622
      if (!(this_present_shipping_id && that_present_shipping_id))
730
        return false;
623
        return false;
731
      if (!this.shipping_id.equals(that.shipping_id))
624
      if (!this.shipping_id.equals(that.shipping_id))
732
        return false;
625
        return false;
733
    }
626
    }
734
 
627
 
735
    boolean this_present_due_date = true;
-
 
736
    boolean that_present_due_date = true;
-
 
737
    if (this_present_due_date || that_present_due_date) {
-
 
738
      if (!(this_present_due_date && that_present_due_date))
-
 
739
        return false;
-
 
740
      if (this.due_date != that.due_date)
-
 
741
        return false;
-
 
742
    }
-
 
743
 
-
 
744
    return true;
628
    return true;
745
  }
629
  }
746
 
630
 
747
  @Override
631
  @Override
748
  public int hashCode() {
632
  public int hashCode() {
Line 755... Line 639...
755
    }
639
    }
756
 
640
 
757
    int lastComparison = 0;
641
    int lastComparison = 0;
758
    CreditHistory typedOther = (CreditHistory)other;
642
    CreditHistory typedOther = (CreditHistory)other;
759
 
643
 
-
 
644
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
645
    if (lastComparison != 0) {
-
 
646
      return lastComparison;
-
 
647
    }
-
 
648
    if (isSetId()) {
-
 
649
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
650
      if (lastComparison != 0) {
-
 
651
        return lastComparison;
-
 
652
      }
-
 
653
    }
760
    lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
654
    lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
761
    if (lastComparison != 0) {
655
    if (lastComparison != 0) {
762
      return lastComparison;
656
      return lastComparison;
763
    }
657
    }
764
    if (isSetUser_id()) {
658
    if (isSetUser_id()) {
Line 815... Line 709...
815
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created, typedOther.created);
709
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created, typedOther.created);
816
      if (lastComparison != 0) {
710
      if (lastComparison != 0) {
817
        return lastComparison;
711
        return lastComparison;
818
      }
712
      }
819
    }
713
    }
820
    lastComparison = Boolean.valueOf(isSetUpdated()).compareTo(typedOther.isSetUpdated());
-
 
821
    if (lastComparison != 0) {
-
 
822
      return lastComparison;
-
 
823
    }
-
 
824
    if (isSetUpdated()) {
-
 
825
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updated, typedOther.updated);
-
 
826
      if (lastComparison != 0) {
-
 
827
        return lastComparison;
-
 
828
      }
-
 
829
    }
-
 
830
    lastComparison = Boolean.valueOf(isSetLoan_id()).compareTo(typedOther.isSetLoan_id());
-
 
831
    if (lastComparison != 0) {
-
 
832
      return lastComparison;
-
 
833
    }
-
 
834
    if (isSetLoan_id()) {
-
 
835
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loan_id, typedOther.loan_id);
-
 
836
      if (lastComparison != 0) {
-
 
837
        return lastComparison;
-
 
838
      }
-
 
839
    }
-
 
840
    lastComparison = Boolean.valueOf(isSetShipping_id()).compareTo(typedOther.isSetShipping_id());
714
    lastComparison = Boolean.valueOf(isSetShipping_id()).compareTo(typedOther.isSetShipping_id());
841
    if (lastComparison != 0) {
715
    if (lastComparison != 0) {
842
      return lastComparison;
716
      return lastComparison;
843
    }
717
    }
844
    if (isSetShipping_id()) {
718
    if (isSetShipping_id()) {
845
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipping_id, typedOther.shipping_id);
719
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipping_id, typedOther.shipping_id);
846
      if (lastComparison != 0) {
720
      if (lastComparison != 0) {
847
        return lastComparison;
721
        return lastComparison;
848
      }
722
      }
849
    }
723
    }
850
    lastComparison = Boolean.valueOf(isSetDue_date()).compareTo(typedOther.isSetDue_date());
-
 
851
    if (lastComparison != 0) {
-
 
852
      return lastComparison;
-
 
853
    }
-
 
854
    if (isSetDue_date()) {
-
 
855
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.due_date, typedOther.due_date);
-
 
856
      if (lastComparison != 0) {
-
 
857
        return lastComparison;
-
 
858
      }
-
 
859
    }
-
 
860
    return 0;
724
    return 0;
861
  }
725
  }
862
 
726
 
863
  public _Fields fieldForId(int fieldId) {
727
  public _Fields fieldForId(int fieldId) {
864
    return _Fields.findByThriftId(fieldId);
728
    return _Fields.findByThriftId(fieldId);
Line 872... Line 736...
872
      field = iprot.readFieldBegin();
736
      field = iprot.readFieldBegin();
873
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
737
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
874
        break;
738
        break;
875
      }
739
      }
876
      switch (field.id) {
740
      switch (field.id) {
-
 
741
        case 1: // ID
-
 
742
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
743
            this.id = iprot.readI64();
-
 
744
            setIdIsSet(true);
-
 
745
          } else { 
-
 
746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
747
          }
-
 
748
          break;
877
        case 1: // USER_ID
749
        case 2: // USER_ID
878
          if (field.type == org.apache.thrift.protocol.TType.I64) {
750
          if (field.type == org.apache.thrift.protocol.TType.I64) {
879
            this.user_id = iprot.readI64();
751
            this.user_id = iprot.readI64();
880
            setUser_idIsSet(true);
752
            setUser_idIsSet(true);
881
          } else { 
753
          } else { 
882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
883
          }
755
          }
884
          break;
756
          break;
885
        case 2: // CREDITOR_ID
757
        case 3: // CREDITOR_ID
886
          if (field.type == org.apache.thrift.protocol.TType.I64) {
758
          if (field.type == org.apache.thrift.protocol.TType.I64) {
887
            this.creditor_id = iprot.readI64();
759
            this.creditor_id = iprot.readI64();
888
            setCreditor_idIsSet(true);
760
            setCreditor_idIsSet(true);
889
          } else { 
761
          } else { 
890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
891
          }
763
          }
892
          break;
764
          break;
893
        case 3: // PAYMENT_ID
765
        case 4: // PAYMENT_ID
894
          if (field.type == org.apache.thrift.protocol.TType.I64) {
766
          if (field.type == org.apache.thrift.protocol.TType.I64) {
895
            this.payment_id = iprot.readI64();
767
            this.payment_id = iprot.readI64();
896
            setPayment_idIsSet(true);
768
            setPayment_idIsSet(true);
897
          } else { 
769
          } else { 
898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
770
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
899
          }
771
          }
900
          break;
772
          break;
901
        case 4: // AMOUNT
773
        case 5: // AMOUNT
902
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
774
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
903
            this.amount = iprot.readDouble();
775
            this.amount = iprot.readDouble();
904
            setAmountIsSet(true);
776
            setAmountIsSet(true);
905
          } else { 
777
          } else { 
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
778
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
907
          }
779
          }
908
          break;
780
          break;
909
        case 5: // CREDIT_TYPE
781
        case 6: // CREDIT_TYPE
910
          if (field.type == org.apache.thrift.protocol.TType.I32) {
782
          if (field.type == org.apache.thrift.protocol.TType.I32) {
911
            this.credit_type = CreditTxnType.findByValue(iprot.readI32());
783
            this.credit_type = CreditTxnType.findByValue(iprot.readI32());
912
          } else { 
784
          } else { 
913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
914
          }
786
          }
915
          break;
787
          break;
916
        case 6: // CREATED
788
        case 7: // CREATED
917
          if (field.type == org.apache.thrift.protocol.TType.I64) {
789
          if (field.type == org.apache.thrift.protocol.TType.I64) {
918
            this.created = iprot.readI64();
790
            this.created = iprot.readI64();
919
            setCreatedIsSet(true);
791
            setCreatedIsSet(true);
920
          } else { 
792
          } else { 
921
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
793
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
922
          }
794
          }
923
          break;
795
          break;
924
        case 7: // UPDATED
-
 
925
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
926
            this.updated = iprot.readI64();
-
 
927
            setUpdatedIsSet(true);
-
 
928
          } else { 
-
 
929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
930
          }
-
 
931
          break;
-
 
932
        case 8: // LOAN_ID
-
 
933
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
934
            this.loan_id = iprot.readString();
-
 
935
          } else { 
-
 
936
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
937
          }
-
 
938
          break;
-
 
939
        case 9: // SHIPPING_ID
796
        case 8: // SHIPPING_ID
940
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
797
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
941
            this.shipping_id = iprot.readString();
798
            this.shipping_id = iprot.readString();
942
          } else { 
799
          } else { 
943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
944
          }
801
          }
945
          break;
802
          break;
946
        case 10: // DUE_DATE
-
 
947
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
948
            this.due_date = iprot.readI64();
-
 
949
            setDue_dateIsSet(true);
-
 
950
          } else { 
-
 
951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
952
          }
-
 
953
          break;
-
 
954
        default:
803
        default:
955
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
804
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
956
      }
805
      }
957
      iprot.readFieldEnd();
806
      iprot.readFieldEnd();
958
    }
807
    }
Line 962... Line 811...
962
 
811
 
963
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
812
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
964
    validate();
813
    validate();
965
 
814
 
966
    oprot.writeStructBegin(STRUCT_DESC);
815
    oprot.writeStructBegin(STRUCT_DESC);
-
 
816
    oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
817
    oprot.writeI64(this.id);
-
 
818
    oprot.writeFieldEnd();
967
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
819
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
968
    oprot.writeI64(this.user_id);
820
    oprot.writeI64(this.user_id);
969
    oprot.writeFieldEnd();
821
    oprot.writeFieldEnd();
970
    oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
822
    oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
971
    oprot.writeI64(this.creditor_id);
823
    oprot.writeI64(this.creditor_id);
Line 982... Line 834...
982
      oprot.writeFieldEnd();
834
      oprot.writeFieldEnd();
983
    }
835
    }
984
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
836
    oprot.writeFieldBegin(CREATED_FIELD_DESC);
985
    oprot.writeI64(this.created);
837
    oprot.writeI64(this.created);
986
    oprot.writeFieldEnd();
838
    oprot.writeFieldEnd();
987
    oprot.writeFieldBegin(UPDATED_FIELD_DESC);
-
 
988
    oprot.writeI64(this.updated);
-
 
989
    oprot.writeFieldEnd();
-
 
990
    if (this.loan_id != null) {
-
 
991
      oprot.writeFieldBegin(LOAN_ID_FIELD_DESC);
-
 
992
      oprot.writeString(this.loan_id);
-
 
993
      oprot.writeFieldEnd();
-
 
994
    }
-
 
995
    if (this.shipping_id != null) {
839
    if (this.shipping_id != null) {
996
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
840
      oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);
997
      oprot.writeString(this.shipping_id);
841
      oprot.writeString(this.shipping_id);
998
      oprot.writeFieldEnd();
842
      oprot.writeFieldEnd();
999
    }
843
    }
1000
    oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
-
 
1001
    oprot.writeI64(this.due_date);
-
 
1002
    oprot.writeFieldEnd();
-
 
1003
    oprot.writeFieldStop();
844
    oprot.writeFieldStop();
1004
    oprot.writeStructEnd();
845
    oprot.writeStructEnd();
1005
  }
846
  }
1006
 
847
 
1007
  @Override
848
  @Override
1008
  public String toString() {
849
  public String toString() {
1009
    StringBuilder sb = new StringBuilder("CreditHistory(");
850
    StringBuilder sb = new StringBuilder("CreditHistory(");
1010
    boolean first = true;
851
    boolean first = true;
1011
 
852
 
-
 
853
    sb.append("id:");
-
 
854
    sb.append(this.id);
-
 
855
    first = false;
-
 
856
    if (!first) sb.append(", ");
1012
    sb.append("user_id:");
857
    sb.append("user_id:");
1013
    sb.append(this.user_id);
858
    sb.append(this.user_id);
1014
    first = false;
859
    first = false;
1015
    if (!first) sb.append(", ");
860
    if (!first) sb.append(", ");
1016
    sb.append("creditor_id:");
861
    sb.append("creditor_id:");
Line 1035... Line 880...
1035
    if (!first) sb.append(", ");
880
    if (!first) sb.append(", ");
1036
    sb.append("created:");
881
    sb.append("created:");
1037
    sb.append(this.created);
882
    sb.append(this.created);
1038
    first = false;
883
    first = false;
1039
    if (!first) sb.append(", ");
884
    if (!first) sb.append(", ");
1040
    sb.append("updated:");
-
 
1041
    sb.append(this.updated);
-
 
1042
    first = false;
-
 
1043
    if (!first) sb.append(", ");
-
 
1044
    sb.append("loan_id:");
-
 
1045
    if (this.loan_id == null) {
-
 
1046
      sb.append("null");
-
 
1047
    } else {
-
 
1048
      sb.append(this.loan_id);
-
 
1049
    }
-
 
1050
    first = false;
-
 
1051
    if (!first) sb.append(", ");
-
 
1052
    sb.append("shipping_id:");
885
    sb.append("shipping_id:");
1053
    if (this.shipping_id == null) {
886
    if (this.shipping_id == null) {
1054
      sb.append("null");
887
      sb.append("null");
1055
    } else {
888
    } else {
1056
      sb.append(this.shipping_id);
889
      sb.append(this.shipping_id);
1057
    }
890
    }
1058
    first = false;
891
    first = false;
1059
    if (!first) sb.append(", ");
-
 
1060
    sb.append("due_date:");
-
 
1061
    sb.append(this.due_date);
-
 
1062
    first = false;
-
 
1063
    sb.append(")");
892
    sb.append(")");
1064
    return sb.toString();
893
    return sb.toString();
1065
  }
894
  }
1066
 
895
 
1067
  public void validate() throws org.apache.thrift.TException {
896
  public void validate() throws org.apache.thrift.TException {