Subversion Repositories SmartDukaan

Rev

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

Rev 7311 Rev 7322
Line 22... Line 22...
22
 
22
 
23
public class AmazonOrder implements org.apache.thrift.TBase<AmazonOrder, AmazonOrder._Fields>, java.io.Serializable, Cloneable {
23
public class AmazonOrder implements org.apache.thrift.TBase<AmazonOrder, AmazonOrder._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonOrder");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonOrder");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField AMAZON_ORDER_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderCode", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField AMAZON_ORDER_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderCode", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField AMAZON_ORDER_ITEM_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderItemCode", org.apache.thrift.protocol.TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField AMAZON_ORDER_ITEM_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderItemCode", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  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)4);
29
  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)4);
30
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)6);
32
 
32
 
33
  private long orderId; // required
33
  private long orderId; // required
34
  private long amazonOrderCode; // required
34
  private String amazonOrderCode; // required
35
  private long amazonOrderItemCode; // required
35
  private String amazonOrderItemCode; // required
36
  private long transactionId; // required
36
  private long transactionId; // required
37
  private long item_id; // required
37
  private long item_id; // required
38
  private String status; // required
38
  private String status; // required
39
 
39
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
Line 110... Line 110...
110
    }
110
    }
111
  }
111
  }
112
 
112
 
113
  // isset id assignments
113
  // isset id assignments
114
  private static final int __ORDERID_ISSET_ID = 0;
114
  private static final int __ORDERID_ISSET_ID = 0;
115
  private static final int __AMAZONORDERCODE_ISSET_ID = 1;
-
 
116
  private static final int __AMAZONORDERITEMCODE_ISSET_ID = 2;
-
 
117
  private static final int __TRANSACTIONID_ISSET_ID = 3;
115
  private static final int __TRANSACTIONID_ISSET_ID = 1;
118
  private static final int __ITEM_ID_ISSET_ID = 4;
116
  private static final int __ITEM_ID_ISSET_ID = 2;
119
  private BitSet __isset_bit_vector = new BitSet(5);
117
  private BitSet __isset_bit_vector = new BitSet(3);
120
 
118
 
121
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
119
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
122
  static {
120
  static {
123
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
121
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
124
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
    tmpMap.put(_Fields.AMAZON_ORDER_CODE, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
124
    tmpMap.put(_Fields.AMAZON_ORDER_CODE, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
128
    tmpMap.put(_Fields.AMAZON_ORDER_ITEM_CODE, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderItemCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
126
    tmpMap.put(_Fields.AMAZON_ORDER_ITEM_CODE, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderItemCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
130
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
132
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
130
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
133
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
134
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
132
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 140... Line 138...
140
  public AmazonOrder() {
138
  public AmazonOrder() {
141
  }
139
  }
142
 
140
 
143
  public AmazonOrder(
141
  public AmazonOrder(
144
    long orderId,
142
    long orderId,
145
    long amazonOrderCode,
143
    String amazonOrderCode,
146
    long amazonOrderItemCode,
144
    String amazonOrderItemCode,
147
    long transactionId,
145
    long transactionId,
148
    long item_id,
146
    long item_id,
149
    String status)
147
    String status)
150
  {
148
  {
151
    this();
149
    this();
152
    this.orderId = orderId;
150
    this.orderId = orderId;
153
    setOrderIdIsSet(true);
151
    setOrderIdIsSet(true);
154
    this.amazonOrderCode = amazonOrderCode;
152
    this.amazonOrderCode = amazonOrderCode;
155
    setAmazonOrderCodeIsSet(true);
-
 
156
    this.amazonOrderItemCode = amazonOrderItemCode;
153
    this.amazonOrderItemCode = amazonOrderItemCode;
157
    setAmazonOrderItemCodeIsSet(true);
-
 
158
    this.transactionId = transactionId;
154
    this.transactionId = transactionId;
159
    setTransactionIdIsSet(true);
155
    setTransactionIdIsSet(true);
160
    this.item_id = item_id;
156
    this.item_id = item_id;
161
    setItem_idIsSet(true);
157
    setItem_idIsSet(true);
162
    this.status = status;
158
    this.status = status;
Line 167... Line 163...
167
   */
163
   */
168
  public AmazonOrder(AmazonOrder other) {
164
  public AmazonOrder(AmazonOrder other) {
169
    __isset_bit_vector.clear();
165
    __isset_bit_vector.clear();
170
    __isset_bit_vector.or(other.__isset_bit_vector);
166
    __isset_bit_vector.or(other.__isset_bit_vector);
171
    this.orderId = other.orderId;
167
    this.orderId = other.orderId;
-
 
168
    if (other.isSetAmazonOrderCode()) {
172
    this.amazonOrderCode = other.amazonOrderCode;
169
      this.amazonOrderCode = other.amazonOrderCode;
-
 
170
    }
-
 
171
    if (other.isSetAmazonOrderItemCode()) {
173
    this.amazonOrderItemCode = other.amazonOrderItemCode;
172
      this.amazonOrderItemCode = other.amazonOrderItemCode;
-
 
173
    }
174
    this.transactionId = other.transactionId;
174
    this.transactionId = other.transactionId;
175
    this.item_id = other.item_id;
175
    this.item_id = other.item_id;
176
    if (other.isSetStatus()) {
176
    if (other.isSetStatus()) {
177
      this.status = other.status;
177
      this.status = other.status;
178
    }
178
    }
Line 184... Line 184...
184
 
184
 
185
  @Override
185
  @Override
186
  public void clear() {
186
  public void clear() {
187
    setOrderIdIsSet(false);
187
    setOrderIdIsSet(false);
188
    this.orderId = 0;
188
    this.orderId = 0;
189
    setAmazonOrderCodeIsSet(false);
-
 
190
    this.amazonOrderCode = 0;
189
    this.amazonOrderCode = null;
191
    setAmazonOrderItemCodeIsSet(false);
-
 
192
    this.amazonOrderItemCode = 0;
190
    this.amazonOrderItemCode = null;
193
    setTransactionIdIsSet(false);
191
    setTransactionIdIsSet(false);
194
    this.transactionId = 0;
192
    this.transactionId = 0;
195
    setItem_idIsSet(false);
193
    setItem_idIsSet(false);
196
    this.item_id = 0;
194
    this.item_id = 0;
197
    this.status = null;
195
    this.status = null;
Line 217... Line 215...
217
 
215
 
218
  public void setOrderIdIsSet(boolean value) {
216
  public void setOrderIdIsSet(boolean value) {
219
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
217
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
220
  }
218
  }
221
 
219
 
222
  public long getAmazonOrderCode() {
220
  public String getAmazonOrderCode() {
223
    return this.amazonOrderCode;
221
    return this.amazonOrderCode;
224
  }
222
  }
225
 
223
 
226
  public void setAmazonOrderCode(long amazonOrderCode) {
224
  public void setAmazonOrderCode(String amazonOrderCode) {
227
    this.amazonOrderCode = amazonOrderCode;
225
    this.amazonOrderCode = amazonOrderCode;
228
    setAmazonOrderCodeIsSet(true);
-
 
229
  }
226
  }
230
 
227
 
231
  public void unsetAmazonOrderCode() {
228
  public void unsetAmazonOrderCode() {
232
    __isset_bit_vector.clear(__AMAZONORDERCODE_ISSET_ID);
229
    this.amazonOrderCode = null;
233
  }
230
  }
234
 
231
 
235
  /** Returns true if field amazonOrderCode is set (has been assigned a value) and false otherwise */
232
  /** Returns true if field amazonOrderCode is set (has been assigned a value) and false otherwise */
236
  public boolean isSetAmazonOrderCode() {
233
  public boolean isSetAmazonOrderCode() {
237
    return __isset_bit_vector.get(__AMAZONORDERCODE_ISSET_ID);
234
    return this.amazonOrderCode != null;
238
  }
235
  }
239
 
236
 
240
  public void setAmazonOrderCodeIsSet(boolean value) {
237
  public void setAmazonOrderCodeIsSet(boolean value) {
-
 
238
    if (!value) {
241
    __isset_bit_vector.set(__AMAZONORDERCODE_ISSET_ID, value);
239
      this.amazonOrderCode = null;
-
 
240
    }
242
  }
241
  }
243
 
242
 
244
  public long getAmazonOrderItemCode() {
243
  public String getAmazonOrderItemCode() {
245
    return this.amazonOrderItemCode;
244
    return this.amazonOrderItemCode;
246
  }
245
  }
247
 
246
 
248
  public void setAmazonOrderItemCode(long amazonOrderItemCode) {
247
  public void setAmazonOrderItemCode(String amazonOrderItemCode) {
249
    this.amazonOrderItemCode = amazonOrderItemCode;
248
    this.amazonOrderItemCode = amazonOrderItemCode;
250
    setAmazonOrderItemCodeIsSet(true);
-
 
251
  }
249
  }
252
 
250
 
253
  public void unsetAmazonOrderItemCode() {
251
  public void unsetAmazonOrderItemCode() {
254
    __isset_bit_vector.clear(__AMAZONORDERITEMCODE_ISSET_ID);
252
    this.amazonOrderItemCode = null;
255
  }
253
  }
256
 
254
 
257
  /** Returns true if field amazonOrderItemCode is set (has been assigned a value) and false otherwise */
255
  /** Returns true if field amazonOrderItemCode is set (has been assigned a value) and false otherwise */
258
  public boolean isSetAmazonOrderItemCode() {
256
  public boolean isSetAmazonOrderItemCode() {
259
    return __isset_bit_vector.get(__AMAZONORDERITEMCODE_ISSET_ID);
257
    return this.amazonOrderItemCode != null;
260
  }
258
  }
261
 
259
 
262
  public void setAmazonOrderItemCodeIsSet(boolean value) {
260
  public void setAmazonOrderItemCodeIsSet(boolean value) {
-
 
261
    if (!value) {
263
    __isset_bit_vector.set(__AMAZONORDERITEMCODE_ISSET_ID, value);
262
      this.amazonOrderItemCode = null;
-
 
263
    }
264
  }
264
  }
265
 
265
 
266
  public long getTransactionId() {
266
  public long getTransactionId() {
267
    return this.transactionId;
267
    return this.transactionId;
268
  }
268
  }
Line 342... Line 342...
342
 
342
 
343
    case AMAZON_ORDER_CODE:
343
    case AMAZON_ORDER_CODE:
344
      if (value == null) {
344
      if (value == null) {
345
        unsetAmazonOrderCode();
345
        unsetAmazonOrderCode();
346
      } else {
346
      } else {
347
        setAmazonOrderCode((Long)value);
347
        setAmazonOrderCode((String)value);
348
      }
348
      }
349
      break;
349
      break;
350
 
350
 
351
    case AMAZON_ORDER_ITEM_CODE:
351
    case AMAZON_ORDER_ITEM_CODE:
352
      if (value == null) {
352
      if (value == null) {
353
        unsetAmazonOrderItemCode();
353
        unsetAmazonOrderItemCode();
354
      } else {
354
      } else {
355
        setAmazonOrderItemCode((Long)value);
355
        setAmazonOrderItemCode((String)value);
356
      }
356
      }
357
      break;
357
      break;
358
 
358
 
359
    case TRANSACTION_ID:
359
    case TRANSACTION_ID:
360
      if (value == null) {
360
      if (value == null) {
Line 387... Line 387...
387
    switch (field) {
387
    switch (field) {
388
    case ORDER_ID:
388
    case ORDER_ID:
389
      return Long.valueOf(getOrderId());
389
      return Long.valueOf(getOrderId());
390
 
390
 
391
    case AMAZON_ORDER_CODE:
391
    case AMAZON_ORDER_CODE:
392
      return Long.valueOf(getAmazonOrderCode());
392
      return getAmazonOrderCode();
393
 
393
 
394
    case AMAZON_ORDER_ITEM_CODE:
394
    case AMAZON_ORDER_ITEM_CODE:
395
      return Long.valueOf(getAmazonOrderItemCode());
395
      return getAmazonOrderItemCode();
396
 
396
 
397
    case TRANSACTION_ID:
397
    case TRANSACTION_ID:
398
      return Long.valueOf(getTransactionId());
398
      return Long.valueOf(getTransactionId());
399
 
399
 
400
    case ITEM_ID:
400
    case ITEM_ID:
Line 450... Line 450...
450
        return false;
450
        return false;
451
      if (this.orderId != that.orderId)
451
      if (this.orderId != that.orderId)
452
        return false;
452
        return false;
453
    }
453
    }
454
 
454
 
455
    boolean this_present_amazonOrderCode = true;
455
    boolean this_present_amazonOrderCode = true && this.isSetAmazonOrderCode();
456
    boolean that_present_amazonOrderCode = true;
456
    boolean that_present_amazonOrderCode = true && that.isSetAmazonOrderCode();
457
    if (this_present_amazonOrderCode || that_present_amazonOrderCode) {
457
    if (this_present_amazonOrderCode || that_present_amazonOrderCode) {
458
      if (!(this_present_amazonOrderCode && that_present_amazonOrderCode))
458
      if (!(this_present_amazonOrderCode && that_present_amazonOrderCode))
459
        return false;
459
        return false;
460
      if (this.amazonOrderCode != that.amazonOrderCode)
460
      if (!this.amazonOrderCode.equals(that.amazonOrderCode))
461
        return false;
461
        return false;
462
    }
462
    }
463
 
463
 
464
    boolean this_present_amazonOrderItemCode = true;
464
    boolean this_present_amazonOrderItemCode = true && this.isSetAmazonOrderItemCode();
465
    boolean that_present_amazonOrderItemCode = true;
465
    boolean that_present_amazonOrderItemCode = true && that.isSetAmazonOrderItemCode();
466
    if (this_present_amazonOrderItemCode || that_present_amazonOrderItemCode) {
466
    if (this_present_amazonOrderItemCode || that_present_amazonOrderItemCode) {
467
      if (!(this_present_amazonOrderItemCode && that_present_amazonOrderItemCode))
467
      if (!(this_present_amazonOrderItemCode && that_present_amazonOrderItemCode))
468
        return false;
468
        return false;
469
      if (this.amazonOrderItemCode != that.amazonOrderItemCode)
469
      if (!this.amazonOrderItemCode.equals(that.amazonOrderItemCode))
470
        return false;
470
        return false;
471
    }
471
    }
472
 
472
 
473
    boolean this_present_transactionId = true;
473
    boolean this_present_transactionId = true;
474
    boolean that_present_transactionId = true;
474
    boolean that_present_transactionId = true;
Line 597... Line 597...
597
          } else { 
597
          } else { 
598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
599
          }
599
          }
600
          break;
600
          break;
601
        case 2: // AMAZON_ORDER_CODE
601
        case 2: // AMAZON_ORDER_CODE
602
          if (field.type == org.apache.thrift.protocol.TType.I64) {
602
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
603
            this.amazonOrderCode = iprot.readI64();
603
            this.amazonOrderCode = iprot.readString();
604
            setAmazonOrderCodeIsSet(true);
-
 
605
          } else { 
604
          } else { 
606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
607
          }
606
          }
608
          break;
607
          break;
609
        case 3: // AMAZON_ORDER_ITEM_CODE
608
        case 3: // AMAZON_ORDER_ITEM_CODE
610
          if (field.type == org.apache.thrift.protocol.TType.I64) {
609
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
611
            this.amazonOrderItemCode = iprot.readI64();
610
            this.amazonOrderItemCode = iprot.readString();
612
            setAmazonOrderItemCodeIsSet(true);
-
 
613
          } else { 
611
          } else { 
614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
615
          }
613
          }
616
          break;
614
          break;
617
        case 4: // TRANSACTION_ID
615
        case 4: // TRANSACTION_ID
Line 651... Line 649...
651
 
649
 
652
    oprot.writeStructBegin(STRUCT_DESC);
650
    oprot.writeStructBegin(STRUCT_DESC);
653
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
651
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
654
    oprot.writeI64(this.orderId);
652
    oprot.writeI64(this.orderId);
655
    oprot.writeFieldEnd();
653
    oprot.writeFieldEnd();
-
 
654
    if (this.amazonOrderCode != null) {
656
    oprot.writeFieldBegin(AMAZON_ORDER_CODE_FIELD_DESC);
655
      oprot.writeFieldBegin(AMAZON_ORDER_CODE_FIELD_DESC);
657
    oprot.writeI64(this.amazonOrderCode);
656
      oprot.writeString(this.amazonOrderCode);
658
    oprot.writeFieldEnd();
657
      oprot.writeFieldEnd();
-
 
658
    }
-
 
659
    if (this.amazonOrderItemCode != null) {
659
    oprot.writeFieldBegin(AMAZON_ORDER_ITEM_CODE_FIELD_DESC);
660
      oprot.writeFieldBegin(AMAZON_ORDER_ITEM_CODE_FIELD_DESC);
660
    oprot.writeI64(this.amazonOrderItemCode);
661
      oprot.writeString(this.amazonOrderItemCode);
661
    oprot.writeFieldEnd();
662
      oprot.writeFieldEnd();
-
 
663
    }
662
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
664
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
663
    oprot.writeI64(this.transactionId);
665
    oprot.writeI64(this.transactionId);
664
    oprot.writeFieldEnd();
666
    oprot.writeFieldEnd();
665
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
667
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
666
    oprot.writeI64(this.item_id);
668
    oprot.writeI64(this.item_id);
Line 682... Line 684...
682
    sb.append("orderId:");
684
    sb.append("orderId:");
683
    sb.append(this.orderId);
685
    sb.append(this.orderId);
684
    first = false;
686
    first = false;
685
    if (!first) sb.append(", ");
687
    if (!first) sb.append(", ");
686
    sb.append("amazonOrderCode:");
688
    sb.append("amazonOrderCode:");
-
 
689
    if (this.amazonOrderCode == null) {
-
 
690
      sb.append("null");
-
 
691
    } else {
687
    sb.append(this.amazonOrderCode);
692
      sb.append(this.amazonOrderCode);
-
 
693
    }
688
    first = false;
694
    first = false;
689
    if (!first) sb.append(", ");
695
    if (!first) sb.append(", ");
690
    sb.append("amazonOrderItemCode:");
696
    sb.append("amazonOrderItemCode:");
-
 
697
    if (this.amazonOrderItemCode == null) {
-
 
698
      sb.append("null");
-
 
699
    } else {
691
    sb.append(this.amazonOrderItemCode);
700
      sb.append(this.amazonOrderItemCode);
-
 
701
    }
692
    first = false;
702
    first = false;
693
    if (!first) sb.append(", ");
703
    if (!first) sb.append(", ");
694
    sb.append("transactionId:");
704
    sb.append("transactionId:");
695
    sb.append(this.transactionId);
705
    sb.append(this.transactionId);
696
    first = false;
706
    first = false;