Subversion Repositories SmartDukaan

Rev

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

Rev 571 Rev 578
Line 78... Line 78...
78
 
78
 
79
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, TException;
79
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, TException;
80
 
80
 
81
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, TException;
81
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, TException;
82
 
82
 
83
    public void addAddressToCart(long cartId, long addressId) throws TException;
83
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, TException;
84
 
84
 
85
    public boolean commitCart(long cartId) throws ShoppingCartException, TException;
85
    public long commitCart(long cartId) throws ShoppingCartException, TException;
86
 
86
 
87
    public boolean validateCart(long cartId) throws TException;
87
    public boolean validateCart(long cartId) throws ShoppingCartException, TException;
-
 
88
 
-
 
89
    public boolean refreshCart(long cartId) throws ShoppingCartException, TException;
88
 
90
 
89
    public void mergeCart(long fromCartId, long toCartId) throws TException;
91
    public void mergeCart(long fromCartId, long toCartId) throws TException;
90
 
92
 
91
    public void addWidget(Widget widget) throws WidgetException, TException;
93
    public void addWidget(Widget widget) throws WidgetException, TException;
92
 
94
 
Line 1045... Line 1047...
1045
        throw result.scx;
1047
        throw result.scx;
1046
      }
1048
      }
1047
      return;
1049
      return;
1048
    }
1050
    }
1049
 
1051
 
1050
    public void addAddressToCart(long cartId, long addressId) throws TException
1052
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, TException
1051
    {
1053
    {
1052
      send_addAddressToCart(cartId, addressId);
1054
      send_addAddressToCart(cartId, addressId);
1053
      recv_addAddressToCart();
1055
      recv_addAddressToCart();
1054
    }
1056
    }
1055
 
1057
 
Line 1062... Line 1064...
1062
      args.write(oprot_);
1064
      args.write(oprot_);
1063
      oprot_.writeMessageEnd();
1065
      oprot_.writeMessageEnd();
1064
      oprot_.getTransport().flush();
1066
      oprot_.getTransport().flush();
1065
    }
1067
    }
1066
 
1068
 
1067
    public void recv_addAddressToCart() throws TException
1069
    public void recv_addAddressToCart() throws ShoppingCartException, TException
1068
    {
1070
    {
1069
      TMessage msg = iprot_.readMessageBegin();
1071
      TMessage msg = iprot_.readMessageBegin();
1070
      if (msg.type == TMessageType.EXCEPTION) {
1072
      if (msg.type == TMessageType.EXCEPTION) {
1071
        TApplicationException x = TApplicationException.read(iprot_);
1073
        TApplicationException x = TApplicationException.read(iprot_);
1072
        iprot_.readMessageEnd();
1074
        iprot_.readMessageEnd();
1073
        throw x;
1075
        throw x;
1074
      }
1076
      }
1075
      addAddressToCart_result result = new addAddressToCart_result();
1077
      addAddressToCart_result result = new addAddressToCart_result();
1076
      result.read(iprot_);
1078
      result.read(iprot_);
1077
      iprot_.readMessageEnd();
1079
      iprot_.readMessageEnd();
-
 
1080
      if (result.scx != null) {
-
 
1081
        throw result.scx;
-
 
1082
      }
1078
      return;
1083
      return;
1079
    }
1084
    }
1080
 
1085
 
1081
    public boolean commitCart(long cartId) throws ShoppingCartException, TException
1086
    public long commitCart(long cartId) throws ShoppingCartException, TException
1082
    {
1087
    {
1083
      send_commitCart(cartId);
1088
      send_commitCart(cartId);
1084
      return recv_commitCart();
1089
      return recv_commitCart();
1085
    }
1090
    }
1086
 
1091
 
Line 1092... Line 1097...
1092
      args.write(oprot_);
1097
      args.write(oprot_);
1093
      oprot_.writeMessageEnd();
1098
      oprot_.writeMessageEnd();
1094
      oprot_.getTransport().flush();
1099
      oprot_.getTransport().flush();
1095
    }
1100
    }
1096
 
1101
 
1097
    public boolean recv_commitCart() throws ShoppingCartException, TException
1102
    public long recv_commitCart() throws ShoppingCartException, TException
1098
    {
1103
    {
1099
      TMessage msg = iprot_.readMessageBegin();
1104
      TMessage msg = iprot_.readMessageBegin();
1100
      if (msg.type == TMessageType.EXCEPTION) {
1105
      if (msg.type == TMessageType.EXCEPTION) {
1101
        TApplicationException x = TApplicationException.read(iprot_);
1106
        TApplicationException x = TApplicationException.read(iprot_);
1102
        iprot_.readMessageEnd();
1107
        iprot_.readMessageEnd();
Line 1112... Line 1117...
1112
        throw result.scx;
1117
        throw result.scx;
1113
      }
1118
      }
1114
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "commitCart failed: unknown result");
1119
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "commitCart failed: unknown result");
1115
    }
1120
    }
1116
 
1121
 
1117
    public boolean validateCart(long cartId) throws TException
1122
    public boolean validateCart(long cartId) throws ShoppingCartException, TException
1118
    {
1123
    {
1119
      send_validateCart(cartId);
1124
      send_validateCart(cartId);
1120
      return recv_validateCart();
1125
      return recv_validateCart();
1121
    }
1126
    }
1122
 
1127
 
Line 1128... Line 1133...
1128
      args.write(oprot_);
1133
      args.write(oprot_);
1129
      oprot_.writeMessageEnd();
1134
      oprot_.writeMessageEnd();
1130
      oprot_.getTransport().flush();
1135
      oprot_.getTransport().flush();
1131
    }
1136
    }
1132
 
1137
 
1133
    public boolean recv_validateCart() throws TException
1138
    public boolean recv_validateCart() throws ShoppingCartException, TException
1134
    {
1139
    {
1135
      TMessage msg = iprot_.readMessageBegin();
1140
      TMessage msg = iprot_.readMessageBegin();
1136
      if (msg.type == TMessageType.EXCEPTION) {
1141
      if (msg.type == TMessageType.EXCEPTION) {
1137
        TApplicationException x = TApplicationException.read(iprot_);
1142
        TApplicationException x = TApplicationException.read(iprot_);
1138
        iprot_.readMessageEnd();
1143
        iprot_.readMessageEnd();
Line 1142... Line 1147...
1142
      result.read(iprot_);
1147
      result.read(iprot_);
1143
      iprot_.readMessageEnd();
1148
      iprot_.readMessageEnd();
1144
      if (result.isSetSuccess()) {
1149
      if (result.isSetSuccess()) {
1145
        return result.success;
1150
        return result.success;
1146
      }
1151
      }
-
 
1152
      if (result.scex != null) {
-
 
1153
        throw result.scex;
-
 
1154
      }
1147
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1155
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
1148
    }
1156
    }
1149
 
1157
 
-
 
1158
    public boolean refreshCart(long cartId) throws ShoppingCartException, TException
-
 
1159
    {
-
 
1160
      send_refreshCart(cartId);
-
 
1161
      return recv_refreshCart();
-
 
1162
    }
-
 
1163
 
-
 
1164
    public void send_refreshCart(long cartId) throws TException
-
 
1165
    {
-
 
1166
      oprot_.writeMessageBegin(new TMessage("refreshCart", TMessageType.CALL, seqid_));
-
 
1167
      refreshCart_args args = new refreshCart_args();
-
 
1168
      args.cartId = cartId;
-
 
1169
      args.write(oprot_);
-
 
1170
      oprot_.writeMessageEnd();
-
 
1171
      oprot_.getTransport().flush();
-
 
1172
    }
-
 
1173
 
-
 
1174
    public boolean recv_refreshCart() throws ShoppingCartException, TException
-
 
1175
    {
-
 
1176
      TMessage msg = iprot_.readMessageBegin();
-
 
1177
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1178
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1179
        iprot_.readMessageEnd();
-
 
1180
        throw x;
-
 
1181
      }
-
 
1182
      refreshCart_result result = new refreshCart_result();
-
 
1183
      result.read(iprot_);
-
 
1184
      iprot_.readMessageEnd();
-
 
1185
      if (result.isSetSuccess()) {
-
 
1186
        return result.success;
-
 
1187
      }
-
 
1188
      if (result.scex != null) {
-
 
1189
        throw result.scex;
-
 
1190
      }
-
 
1191
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "refreshCart failed: unknown result");
-
 
1192
    }
-
 
1193
 
1150
    public void mergeCart(long fromCartId, long toCartId) throws TException
1194
    public void mergeCart(long fromCartId, long toCartId) throws TException
1151
    {
1195
    {
1152
      send_mergeCart(fromCartId, toCartId);
1196
      send_mergeCart(fromCartId, toCartId);
1153
      recv_mergeCart();
1197
      recv_mergeCart();
1154
    }
1198
    }
Line 1663... Line 1707...
1663
      processMap_.put("changeQuantity", new changeQuantity());
1707
      processMap_.put("changeQuantity", new changeQuantity());
1664
      processMap_.put("changeItemStatus", new changeItemStatus());
1708
      processMap_.put("changeItemStatus", new changeItemStatus());
1665
      processMap_.put("addAddressToCart", new addAddressToCart());
1709
      processMap_.put("addAddressToCart", new addAddressToCart());
1666
      processMap_.put("commitCart", new commitCart());
1710
      processMap_.put("commitCart", new commitCart());
1667
      processMap_.put("validateCart", new validateCart());
1711
      processMap_.put("validateCart", new validateCart());
-
 
1712
      processMap_.put("refreshCart", new refreshCart());
1668
      processMap_.put("mergeCart", new mergeCart());
1713
      processMap_.put("mergeCart", new mergeCart());
1669
      processMap_.put("addWidget", new addWidget());
1714
      processMap_.put("addWidget", new addWidget());
1670
      processMap_.put("addItemToWidget", new addItemToWidget());
1715
      processMap_.put("addItemToWidget", new addItemToWidget());
1671
      processMap_.put("deleteItemFromWidget", new deleteItemFromWidget());
1716
      processMap_.put("deleteItemFromWidget", new deleteItemFromWidget());
1672
      processMap_.put("updateWidget", new updateWidget());
1717
      processMap_.put("updateWidget", new updateWidget());
Line 2420... Line 2465...
2420
      {
2465
      {
2421
        addAddressToCart_args args = new addAddressToCart_args();
2466
        addAddressToCart_args args = new addAddressToCart_args();
2422
        args.read(iprot);
2467
        args.read(iprot);
2423
        iprot.readMessageEnd();
2468
        iprot.readMessageEnd();
2424
        addAddressToCart_result result = new addAddressToCart_result();
2469
        addAddressToCart_result result = new addAddressToCart_result();
-
 
2470
        try {
2425
        iface_.addAddressToCart(args.cartId, args.addressId);
2471
          iface_.addAddressToCart(args.cartId, args.addressId);
-
 
2472
        } catch (ShoppingCartException scx) {
-
 
2473
          result.scx = scx;
-
 
2474
        } catch (Throwable th) {
-
 
2475
          LOGGER.error("Internal error processing addAddressToCart", th);
-
 
2476
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addAddressToCart");
-
 
2477
          oprot.writeMessageBegin(new TMessage("addAddressToCart", TMessageType.EXCEPTION, seqid));
-
 
2478
          x.write(oprot);
-
 
2479
          oprot.writeMessageEnd();
-
 
2480
          oprot.getTransport().flush();
-
 
2481
          return;
-
 
2482
        }
2426
        oprot.writeMessageBegin(new TMessage("addAddressToCart", TMessageType.REPLY, seqid));
2483
        oprot.writeMessageBegin(new TMessage("addAddressToCart", TMessageType.REPLY, seqid));
2427
        result.write(oprot);
2484
        result.write(oprot);
2428
        oprot.writeMessageEnd();
2485
        oprot.writeMessageEnd();
2429
        oprot.getTransport().flush();
2486
        oprot.getTransport().flush();
2430
      }
2487
      }
Line 2465... Line 2522...
2465
      {
2522
      {
2466
        validateCart_args args = new validateCart_args();
2523
        validateCart_args args = new validateCart_args();
2467
        args.read(iprot);
2524
        args.read(iprot);
2468
        iprot.readMessageEnd();
2525
        iprot.readMessageEnd();
2469
        validateCart_result result = new validateCart_result();
2526
        validateCart_result result = new validateCart_result();
-
 
2527
        try {
2470
        result.success = iface_.validateCart(args.cartId);
2528
          result.success = iface_.validateCart(args.cartId);
2471
        result.setSuccessIsSet(true);
2529
          result.setSuccessIsSet(true);
-
 
2530
        } catch (ShoppingCartException scex) {
-
 
2531
          result.scex = scex;
-
 
2532
        } catch (Throwable th) {
-
 
2533
          LOGGER.error("Internal error processing validateCart", th);
-
 
2534
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing validateCart");
-
 
2535
          oprot.writeMessageBegin(new TMessage("validateCart", TMessageType.EXCEPTION, seqid));
-
 
2536
          x.write(oprot);
-
 
2537
          oprot.writeMessageEnd();
-
 
2538
          oprot.getTransport().flush();
-
 
2539
          return;
-
 
2540
        }
2472
        oprot.writeMessageBegin(new TMessage("validateCart", TMessageType.REPLY, seqid));
2541
        oprot.writeMessageBegin(new TMessage("validateCart", TMessageType.REPLY, seqid));
2473
        result.write(oprot);
2542
        result.write(oprot);
2474
        oprot.writeMessageEnd();
2543
        oprot.writeMessageEnd();
2475
        oprot.getTransport().flush();
2544
        oprot.getTransport().flush();
2476
      }
2545
      }
2477
 
2546
 
2478
    }
2547
    }
2479
 
2548
 
-
 
2549
    private class refreshCart implements ProcessFunction {
-
 
2550
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2551
      {
-
 
2552
        refreshCart_args args = new refreshCart_args();
-
 
2553
        args.read(iprot);
-
 
2554
        iprot.readMessageEnd();
-
 
2555
        refreshCart_result result = new refreshCart_result();
-
 
2556
        try {
-
 
2557
          result.success = iface_.refreshCart(args.cartId);
-
 
2558
          result.setSuccessIsSet(true);
-
 
2559
        } catch (ShoppingCartException scex) {
-
 
2560
          result.scex = scex;
-
 
2561
        } catch (Throwable th) {
-
 
2562
          LOGGER.error("Internal error processing refreshCart", th);
-
 
2563
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing refreshCart");
-
 
2564
          oprot.writeMessageBegin(new TMessage("refreshCart", TMessageType.EXCEPTION, seqid));
-
 
2565
          x.write(oprot);
-
 
2566
          oprot.writeMessageEnd();
-
 
2567
          oprot.getTransport().flush();
-
 
2568
          return;
-
 
2569
        }
-
 
2570
        oprot.writeMessageBegin(new TMessage("refreshCart", TMessageType.REPLY, seqid));
-
 
2571
        result.write(oprot);
-
 
2572
        oprot.writeMessageEnd();
-
 
2573
        oprot.getTransport().flush();
-
 
2574
      }
-
 
2575
 
-
 
2576
    }
-
 
2577
 
2480
    private class mergeCart implements ProcessFunction {
2578
    private class mergeCart implements ProcessFunction {
2481
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2579
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2482
      {
2580
      {
2483
        mergeCart_args args = new mergeCart_args();
2581
        mergeCart_args args = new mergeCart_args();
2484
        args.read(iprot);
2582
        args.read(iprot);
Line 20586... Line 20684...
20586
  }
20684
  }
20587
 
20685
 
20588
  public static class addAddressToCart_result implements TBase<addAddressToCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressToCart_result>   {
20686
  public static class addAddressToCart_result implements TBase<addAddressToCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<addAddressToCart_result>   {
20589
    private static final TStruct STRUCT_DESC = new TStruct("addAddressToCart_result");
20687
    private static final TStruct STRUCT_DESC = new TStruct("addAddressToCart_result");
20590
 
20688
 
-
 
20689
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
20591
 
20690
 
-
 
20691
    private ShoppingCartException scx;
20592
 
20692
 
20593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20594
    public enum _Fields implements TFieldIdEnum {
20694
    public enum _Fields implements TFieldIdEnum {
20595
;
-
 
-
 
20695
      SCX((short)1, "scx");
20596
 
20696
 
20597
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20697
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
20598
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20599
 
20699
 
20600
      static {
20700
      static {
Line 20642... Line 20742...
20642
 
20742
 
20643
      public String getFieldName() {
20743
      public String getFieldName() {
20644
        return _fieldName;
20744
        return _fieldName;
20645
      }
20745
      }
20646
    }
20746
    }
-
 
20747
 
-
 
20748
    // isset id assignments
-
 
20749
 
20647
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
20750
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
20751
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
-
 
20752
          new FieldValueMetaData(TType.STRUCT)));
20648
    }});
20753
    }});
20649
 
20754
 
20650
    static {
20755
    static {
20651
      FieldMetaData.addStructMetaDataMap(addAddressToCart_result.class, metaDataMap);
20756
      FieldMetaData.addStructMetaDataMap(addAddressToCart_result.class, metaDataMap);
20652
    }
20757
    }
20653
 
20758
 
20654
    public addAddressToCart_result() {
20759
    public addAddressToCart_result() {
20655
    }
20760
    }
20656
 
20761
 
-
 
20762
    public addAddressToCart_result(
-
 
20763
      ShoppingCartException scx)
-
 
20764
    {
-
 
20765
      this();
-
 
20766
      this.scx = scx;
-
 
20767
    }
-
 
20768
 
20657
    /**
20769
    /**
20658
     * Performs a deep copy on <i>other</i>.
20770
     * Performs a deep copy on <i>other</i>.
20659
     */
20771
     */
20660
    public addAddressToCart_result(addAddressToCart_result other) {
20772
    public addAddressToCart_result(addAddressToCart_result other) {
-
 
20773
      if (other.isSetScx()) {
-
 
20774
        this.scx = new ShoppingCartException(other.scx);
-
 
20775
      }
20661
    }
20776
    }
20662
 
20777
 
20663
    public addAddressToCart_result deepCopy() {
20778
    public addAddressToCart_result deepCopy() {
20664
      return new addAddressToCart_result(this);
20779
      return new addAddressToCart_result(this);
20665
    }
20780
    }
Line 20667... Line 20782...
20667
    @Deprecated
20782
    @Deprecated
20668
    public addAddressToCart_result clone() {
20783
    public addAddressToCart_result clone() {
20669
      return new addAddressToCart_result(this);
20784
      return new addAddressToCart_result(this);
20670
    }
20785
    }
20671
 
20786
 
-
 
20787
    public ShoppingCartException getScx() {
-
 
20788
      return this.scx;
-
 
20789
    }
-
 
20790
 
-
 
20791
    public addAddressToCart_result setScx(ShoppingCartException scx) {
-
 
20792
      this.scx = scx;
-
 
20793
      return this;
-
 
20794
    }
-
 
20795
 
-
 
20796
    public void unsetScx() {
-
 
20797
      this.scx = null;
-
 
20798
    }
-
 
20799
 
-
 
20800
    /** Returns true if field scx is set (has been asigned a value) and false otherwise */
-
 
20801
    public boolean isSetScx() {
-
 
20802
      return this.scx != null;
-
 
20803
    }
-
 
20804
 
-
 
20805
    public void setScxIsSet(boolean value) {
-
 
20806
      if (!value) {
-
 
20807
        this.scx = null;
-
 
20808
      }
-
 
20809
    }
-
 
20810
 
20672
    public void setFieldValue(_Fields field, Object value) {
20811
    public void setFieldValue(_Fields field, Object value) {
20673
      switch (field) {
20812
      switch (field) {
-
 
20813
      case SCX:
-
 
20814
        if (value == null) {
-
 
20815
          unsetScx();
-
 
20816
        } else {
-
 
20817
          setScx((ShoppingCartException)value);
-
 
20818
        }
-
 
20819
        break;
-
 
20820
 
20674
      }
20821
      }
20675
    }
20822
    }
20676
 
20823
 
20677
    public void setFieldValue(int fieldID, Object value) {
20824
    public void setFieldValue(int fieldID, Object value) {
20678
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20825
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
20679
    }
20826
    }
20680
 
20827
 
20681
    public Object getFieldValue(_Fields field) {
20828
    public Object getFieldValue(_Fields field) {
20682
      switch (field) {
20829
      switch (field) {
-
 
20830
      case SCX:
-
 
20831
        return getScx();
-
 
20832
 
20683
      }
20833
      }
20684
      throw new IllegalStateException();
20834
      throw new IllegalStateException();
20685
    }
20835
    }
20686
 
20836
 
20687
    public Object getFieldValue(int fieldId) {
20837
    public Object getFieldValue(int fieldId) {
Line 20689... Line 20839...
20689
    }
20839
    }
20690
 
20840
 
20691
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20841
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
20692
    public boolean isSet(_Fields field) {
20842
    public boolean isSet(_Fields field) {
20693
      switch (field) {
20843
      switch (field) {
-
 
20844
      case SCX:
-
 
20845
        return isSetScx();
20694
      }
20846
      }
20695
      throw new IllegalStateException();
20847
      throw new IllegalStateException();
20696
    }
20848
    }
20697
 
20849
 
20698
    public boolean isSet(int fieldID) {
20850
    public boolean isSet(int fieldID) {
Line 20710... Line 20862...
20710
 
20862
 
20711
    public boolean equals(addAddressToCart_result that) {
20863
    public boolean equals(addAddressToCart_result that) {
20712
      if (that == null)
20864
      if (that == null)
20713
        return false;
20865
        return false;
20714
 
20866
 
-
 
20867
      boolean this_present_scx = true && this.isSetScx();
-
 
20868
      boolean that_present_scx = true && that.isSetScx();
-
 
20869
      if (this_present_scx || that_present_scx) {
-
 
20870
        if (!(this_present_scx && that_present_scx))
-
 
20871
          return false;
-
 
20872
        if (!this.scx.equals(that.scx))
-
 
20873
          return false;
-
 
20874
      }
-
 
20875
 
20715
      return true;
20876
      return true;
20716
    }
20877
    }
20717
 
20878
 
20718
    @Override
20879
    @Override
20719
    public int hashCode() {
20880
    public int hashCode() {
Line 20726... Line 20887...
20726
      }
20887
      }
20727
 
20888
 
20728
      int lastComparison = 0;
20889
      int lastComparison = 0;
20729
      addAddressToCart_result typedOther = (addAddressToCart_result)other;
20890
      addAddressToCart_result typedOther = (addAddressToCart_result)other;
20730
 
20891
 
-
 
20892
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(isSetScx());
-
 
20893
      if (lastComparison != 0) {
-
 
20894
        return lastComparison;
-
 
20895
      }
-
 
20896
      lastComparison = TBaseHelper.compareTo(scx, typedOther.scx);
-
 
20897
      if (lastComparison != 0) {
-
 
20898
        return lastComparison;
-
 
20899
      }
20731
      return 0;
20900
      return 0;
20732
    }
20901
    }
20733
 
20902
 
20734
    public void read(TProtocol iprot) throws TException {
20903
    public void read(TProtocol iprot) throws TException {
20735
      TField field;
20904
      TField field;
Line 20743... Line 20912...
20743
        _Fields fieldId = _Fields.findByThriftId(field.id);
20912
        _Fields fieldId = _Fields.findByThriftId(field.id);
20744
        if (fieldId == null) {
20913
        if (fieldId == null) {
20745
          TProtocolUtil.skip(iprot, field.type);
20914
          TProtocolUtil.skip(iprot, field.type);
20746
        } else {
20915
        } else {
20747
          switch (fieldId) {
20916
          switch (fieldId) {
-
 
20917
            case SCX:
-
 
20918
              if (field.type == TType.STRUCT) {
-
 
20919
                this.scx = new ShoppingCartException();
-
 
20920
                this.scx.read(iprot);
-
 
20921
              } else { 
-
 
20922
                TProtocolUtil.skip(iprot, field.type);
-
 
20923
              }
-
 
20924
              break;
20748
          }
20925
          }
20749
          iprot.readFieldEnd();
20926
          iprot.readFieldEnd();
20750
        }
20927
        }
20751
      }
20928
      }
20752
      iprot.readStructEnd();
20929
      iprot.readStructEnd();
Line 20754... Line 20931...
20754
    }
20931
    }
20755
 
20932
 
20756
    public void write(TProtocol oprot) throws TException {
20933
    public void write(TProtocol oprot) throws TException {
20757
      oprot.writeStructBegin(STRUCT_DESC);
20934
      oprot.writeStructBegin(STRUCT_DESC);
20758
 
20935
 
-
 
20936
      if (this.isSetScx()) {
-
 
20937
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
20938
        this.scx.write(oprot);
-
 
20939
        oprot.writeFieldEnd();
-
 
20940
      }
20759
      oprot.writeFieldStop();
20941
      oprot.writeFieldStop();
20760
      oprot.writeStructEnd();
20942
      oprot.writeStructEnd();
20761
    }
20943
    }
20762
 
20944
 
20763
    @Override
20945
    @Override
20764
    public String toString() {
20946
    public String toString() {
20765
      StringBuilder sb = new StringBuilder("addAddressToCart_result(");
20947
      StringBuilder sb = new StringBuilder("addAddressToCart_result(");
20766
      boolean first = true;
20948
      boolean first = true;
20767
 
20949
 
-
 
20950
      sb.append("scx:");
-
 
20951
      if (this.scx == null) {
-
 
20952
        sb.append("null");
-
 
20953
      } else {
-
 
20954
        sb.append(this.scx);
-
 
20955
      }
-
 
20956
      first = false;
20768
      sb.append(")");
20957
      sb.append(")");
20769
      return sb.toString();
20958
      return sb.toString();
20770
    }
20959
    }
20771
 
20960
 
20772
    public void validate() throws TException {
20961
    public void validate() throws TException {
Line 21054... Line 21243...
21054
  }
21243
  }
21055
 
21244
 
21056
  public static class commitCart_result implements TBase<commitCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<commitCart_result>   {
21245
  public static class commitCart_result implements TBase<commitCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<commitCart_result>   {
21057
    private static final TStruct STRUCT_DESC = new TStruct("commitCart_result");
21246
    private static final TStruct STRUCT_DESC = new TStruct("commitCart_result");
21058
 
21247
 
21059
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
21248
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
21060
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
21249
    private static final TField SCX_FIELD_DESC = new TField("scx", TType.STRUCT, (short)1);
21061
 
21250
 
21062
    private boolean success;
21251
    private long success;
21063
    private ShoppingCartException scx;
21252
    private ShoppingCartException scx;
21064
 
21253
 
21065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21066
    public enum _Fields implements TFieldIdEnum {
21255
    public enum _Fields implements TFieldIdEnum {
21067
      SUCCESS((short)0, "success"),
21256
      SUCCESS((short)0, "success"),
Line 21122... Line 21311...
21122
    private static final int __SUCCESS_ISSET_ID = 0;
21311
    private static final int __SUCCESS_ISSET_ID = 0;
21123
    private BitSet __isset_bit_vector = new BitSet(1);
21312
    private BitSet __isset_bit_vector = new BitSet(1);
21124
 
21313
 
21125
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21314
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21126
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21315
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21127
          new FieldValueMetaData(TType.BOOL)));
21316
          new FieldValueMetaData(TType.I64)));
21128
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
21317
      put(_Fields.SCX, new FieldMetaData("scx", TFieldRequirementType.DEFAULT, 
21129
          new FieldValueMetaData(TType.STRUCT)));
21318
          new FieldValueMetaData(TType.STRUCT)));
21130
    }});
21319
    }});
21131
 
21320
 
21132
    static {
21321
    static {
Line 21135... Line 21324...
21135
 
21324
 
21136
    public commitCart_result() {
21325
    public commitCart_result() {
21137
    }
21326
    }
21138
 
21327
 
21139
    public commitCart_result(
21328
    public commitCart_result(
21140
      boolean success,
21329
      long success,
21141
      ShoppingCartException scx)
21330
      ShoppingCartException scx)
21142
    {
21331
    {
21143
      this();
21332
      this();
21144
      this.success = success;
21333
      this.success = success;
21145
      setSuccessIsSet(true);
21334
      setSuccessIsSet(true);
Line 21165... Line 21354...
21165
    @Deprecated
21354
    @Deprecated
21166
    public commitCart_result clone() {
21355
    public commitCart_result clone() {
21167
      return new commitCart_result(this);
21356
      return new commitCart_result(this);
21168
    }
21357
    }
21169
 
21358
 
21170
    public boolean isSuccess() {
21359
    public long getSuccess() {
21171
      return this.success;
21360
      return this.success;
21172
    }
21361
    }
21173
 
21362
 
21174
    public commitCart_result setSuccess(boolean success) {
21363
    public commitCart_result setSuccess(long success) {
21175
      this.success = success;
21364
      this.success = success;
21176
      setSuccessIsSet(true);
21365
      setSuccessIsSet(true);
21177
      return this;
21366
      return this;
21178
    }
21367
    }
21179
 
21368
 
Line 21218... Line 21407...
21218
      switch (field) {
21407
      switch (field) {
21219
      case SUCCESS:
21408
      case SUCCESS:
21220
        if (value == null) {
21409
        if (value == null) {
21221
          unsetSuccess();
21410
          unsetSuccess();
21222
        } else {
21411
        } else {
21223
          setSuccess((Boolean)value);
21412
          setSuccess((Long)value);
21224
        }
21413
        }
21225
        break;
21414
        break;
21226
 
21415
 
21227
      case SCX:
21416
      case SCX:
21228
        if (value == null) {
21417
        if (value == null) {
Line 21240... Line 21429...
21240
    }
21429
    }
21241
 
21430
 
21242
    public Object getFieldValue(_Fields field) {
21431
    public Object getFieldValue(_Fields field) {
21243
      switch (field) {
21432
      switch (field) {
21244
      case SUCCESS:
21433
      case SUCCESS:
21245
        return new Boolean(isSuccess());
21434
        return new Long(getSuccess());
21246
 
21435
 
21247
      case SCX:
21436
      case SCX:
21248
        return getScx();
21437
        return getScx();
21249
 
21438
 
21250
      }
21439
      }
Line 21349... Line 21538...
21349
        if (fieldId == null) {
21538
        if (fieldId == null) {
21350
          TProtocolUtil.skip(iprot, field.type);
21539
          TProtocolUtil.skip(iprot, field.type);
21351
        } else {
21540
        } else {
21352
          switch (fieldId) {
21541
          switch (fieldId) {
21353
            case SUCCESS:
21542
            case SUCCESS:
21354
              if (field.type == TType.BOOL) {
21543
              if (field.type == TType.I64) {
21355
                this.success = iprot.readBool();
21544
                this.success = iprot.readI64();
21356
                setSuccessIsSet(true);
21545
                setSuccessIsSet(true);
21357
              } else { 
21546
              } else { 
21358
                TProtocolUtil.skip(iprot, field.type);
21547
                TProtocolUtil.skip(iprot, field.type);
21359
              }
21548
              }
21360
              break;
21549
              break;
Line 21377... Line 21566...
21377
    public void write(TProtocol oprot) throws TException {
21566
    public void write(TProtocol oprot) throws TException {
21378
      oprot.writeStructBegin(STRUCT_DESC);
21567
      oprot.writeStructBegin(STRUCT_DESC);
21379
 
21568
 
21380
      if (this.isSetSuccess()) {
21569
      if (this.isSetSuccess()) {
21381
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21570
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21382
        oprot.writeBool(this.success);
21571
        oprot.writeI64(this.success);
21383
        oprot.writeFieldEnd();
21572
        oprot.writeFieldEnd();
21384
      } else if (this.isSetScx()) {
21573
      } else if (this.isSetScx()) {
21385
        oprot.writeFieldBegin(SCX_FIELD_DESC);
21574
        oprot.writeFieldBegin(SCX_FIELD_DESC);
21386
        this.scx.write(oprot);
21575
        this.scx.write(oprot);
21387
        oprot.writeFieldEnd();
21576
        oprot.writeFieldEnd();
Line 21696... Line 21885...
21696
 
21885
 
21697
  public static class validateCart_result implements TBase<validateCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<validateCart_result>   {
21886
  public static class validateCart_result implements TBase<validateCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<validateCart_result>   {
21698
    private static final TStruct STRUCT_DESC = new TStruct("validateCart_result");
21887
    private static final TStruct STRUCT_DESC = new TStruct("validateCart_result");
21699
 
21888
 
21700
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
21889
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
21890
    private static final TField SCEX_FIELD_DESC = new TField("scex", TType.STRUCT, (short)1);
21701
 
21891
 
21702
    private boolean success;
21892
    private boolean success;
-
 
21893
    private ShoppingCartException scex;
21703
 
21894
 
21704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21705
    public enum _Fields implements TFieldIdEnum {
21896
    public enum _Fields implements TFieldIdEnum {
21706
      SUCCESS((short)0, "success");
21897
      SUCCESS((short)0, "success"),
-
 
21898
      SCEX((short)1, "scex");
21707
 
21899
 
21708
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21900
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
21709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21710
 
21902
 
21711
      static {
21903
      static {
Line 21761... Line 21953...
21761
    private BitSet __isset_bit_vector = new BitSet(1);
21953
    private BitSet __isset_bit_vector = new BitSet(1);
21762
 
21954
 
21763
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21955
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
21764
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21956
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
21765
          new FieldValueMetaData(TType.BOOL)));
21957
          new FieldValueMetaData(TType.BOOL)));
-
 
21958
      put(_Fields.SCEX, new FieldMetaData("scex", TFieldRequirementType.DEFAULT, 
-
 
21959
          new FieldValueMetaData(TType.STRUCT)));
21766
    }});
21960
    }});
21767
 
21961
 
21768
    static {
21962
    static {
21769
      FieldMetaData.addStructMetaDataMap(validateCart_result.class, metaDataMap);
21963
      FieldMetaData.addStructMetaDataMap(validateCart_result.class, metaDataMap);
21770
    }
21964
    }
21771
 
21965
 
21772
    public validateCart_result() {
21966
    public validateCart_result() {
21773
    }
21967
    }
21774
 
21968
 
21775
    public validateCart_result(
21969
    public validateCart_result(
21776
      boolean success)
21970
      boolean success,
-
 
21971
      ShoppingCartException scex)
21777
    {
21972
    {
21778
      this();
21973
      this();
21779
      this.success = success;
21974
      this.success = success;
21780
      setSuccessIsSet(true);
21975
      setSuccessIsSet(true);
-
 
21976
      this.scex = scex;
21781
    }
21977
    }
21782
 
21978
 
21783
    /**
21979
    /**
21784
     * Performs a deep copy on <i>other</i>.
21980
     * Performs a deep copy on <i>other</i>.
21785
     */
21981
     */
21786
    public validateCart_result(validateCart_result other) {
21982
    public validateCart_result(validateCart_result other) {
21787
      __isset_bit_vector.clear();
21983
      __isset_bit_vector.clear();
21788
      __isset_bit_vector.or(other.__isset_bit_vector);
21984
      __isset_bit_vector.or(other.__isset_bit_vector);
21789
      this.success = other.success;
21985
      this.success = other.success;
-
 
21986
      if (other.isSetScex()) {
-
 
21987
        this.scex = new ShoppingCartException(other.scex);
-
 
21988
      }
21790
    }
21989
    }
21791
 
21990
 
21792
    public validateCart_result deepCopy() {
21991
    public validateCart_result deepCopy() {
21793
      return new validateCart_result(this);
21992
      return new validateCart_result(this);
21794
    }
21993
    }
Line 21819... Line 22018...
21819
 
22018
 
21820
    public void setSuccessIsSet(boolean value) {
22019
    public void setSuccessIsSet(boolean value) {
21821
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22020
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
21822
    }
22021
    }
21823
 
22022
 
-
 
22023
    public ShoppingCartException getScex() {
-
 
22024
      return this.scex;
-
 
22025
    }
-
 
22026
 
-
 
22027
    public validateCart_result setScex(ShoppingCartException scex) {
-
 
22028
      this.scex = scex;
-
 
22029
      return this;
-
 
22030
    }
-
 
22031
 
-
 
22032
    public void unsetScex() {
-
 
22033
      this.scex = null;
-
 
22034
    }
-
 
22035
 
-
 
22036
    /** Returns true if field scex is set (has been asigned a value) and false otherwise */
-
 
22037
    public boolean isSetScex() {
-
 
22038
      return this.scex != null;
-
 
22039
    }
-
 
22040
 
-
 
22041
    public void setScexIsSet(boolean value) {
-
 
22042
      if (!value) {
-
 
22043
        this.scex = null;
-
 
22044
      }
-
 
22045
    }
-
 
22046
 
21824
    public void setFieldValue(_Fields field, Object value) {
22047
    public void setFieldValue(_Fields field, Object value) {
21825
      switch (field) {
22048
      switch (field) {
21826
      case SUCCESS:
22049
      case SUCCESS:
21827
        if (value == null) {
22050
        if (value == null) {
21828
          unsetSuccess();
22051
          unsetSuccess();
21829
        } else {
22052
        } else {
21830
          setSuccess((Boolean)value);
22053
          setSuccess((Boolean)value);
21831
        }
22054
        }
21832
        break;
22055
        break;
21833
 
22056
 
-
 
22057
      case SCEX:
-
 
22058
        if (value == null) {
-
 
22059
          unsetScex();
-
 
22060
        } else {
-
 
22061
          setScex((ShoppingCartException)value);
-
 
22062
        }
-
 
22063
        break;
-
 
22064
 
21834
      }
22065
      }
21835
    }
22066
    }
21836
 
22067
 
21837
    public void setFieldValue(int fieldID, Object value) {
22068
    public void setFieldValue(int fieldID, Object value) {
21838
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
22069
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 21841... Line 22072...
21841
    public Object getFieldValue(_Fields field) {
22072
    public Object getFieldValue(_Fields field) {
21842
      switch (field) {
22073
      switch (field) {
21843
      case SUCCESS:
22074
      case SUCCESS:
21844
        return new Boolean(isSuccess());
22075
        return new Boolean(isSuccess());
21845
 
22076
 
-
 
22077
      case SCEX:
-
 
22078
        return getScex();
-
 
22079
 
21846
      }
22080
      }
21847
      throw new IllegalStateException();
22081
      throw new IllegalStateException();
21848
    }
22082
    }
21849
 
22083
 
21850
    public Object getFieldValue(int fieldId) {
22084
    public Object getFieldValue(int fieldId) {
Line 21854... Line 22088...
21854
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
22088
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
21855
    public boolean isSet(_Fields field) {
22089
    public boolean isSet(_Fields field) {
21856
      switch (field) {
22090
      switch (field) {
21857
      case SUCCESS:
22091
      case SUCCESS:
21858
        return isSetSuccess();
22092
        return isSetSuccess();
-
 
22093
      case SCEX:
-
 
22094
        return isSetScex();
21859
      }
22095
      }
21860
      throw new IllegalStateException();
22096
      throw new IllegalStateException();
21861
    }
22097
    }
21862
 
22098
 
21863
    public boolean isSet(int fieldID) {
22099
    public boolean isSet(int fieldID) {
Line 21884... Line 22120...
21884
          return false;
22120
          return false;
21885
        if (this.success != that.success)
22121
        if (this.success != that.success)
21886
          return false;
22122
          return false;
21887
      }
22123
      }
21888
 
22124
 
-
 
22125
      boolean this_present_scex = true && this.isSetScex();
-
 
22126
      boolean that_present_scex = true && that.isSetScex();
-
 
22127
      if (this_present_scex || that_present_scex) {
-
 
22128
        if (!(this_present_scex && that_present_scex))
-
 
22129
          return false;
-
 
22130
        if (!this.scex.equals(that.scex))
-
 
22131
          return false;
-
 
22132
      }
-
 
22133
 
21889
      return true;
22134
      return true;
21890
    }
22135
    }
21891
 
22136
 
21892
    @Override
22137
    @Override
21893
    public int hashCode() {
22138
    public int hashCode() {
Line 21908... Line 22153...
21908
      }
22153
      }
21909
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
22154
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
21910
      if (lastComparison != 0) {
22155
      if (lastComparison != 0) {
21911
        return lastComparison;
22156
        return lastComparison;
21912
      }
22157
      }
-
 
22158
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(isSetScex());
-
 
22159
      if (lastComparison != 0) {
-
 
22160
        return lastComparison;
-
 
22161
      }
-
 
22162
      lastComparison = TBaseHelper.compareTo(scex, typedOther.scex);
-
 
22163
      if (lastComparison != 0) {
-
 
22164
        return lastComparison;
-
 
22165
      }
21913
      return 0;
22166
      return 0;
21914
    }
22167
    }
21915
 
22168
 
21916
    public void read(TProtocol iprot) throws TException {
22169
    public void read(TProtocol iprot) throws TException {
21917
      TField field;
22170
      TField field;
Line 21933... Line 22186...
21933
                setSuccessIsSet(true);
22186
                setSuccessIsSet(true);
21934
              } else { 
22187
              } else { 
21935
                TProtocolUtil.skip(iprot, field.type);
22188
                TProtocolUtil.skip(iprot, field.type);
21936
              }
22189
              }
21937
              break;
22190
              break;
-
 
22191
            case SCEX:
-
 
22192
              if (field.type == TType.STRUCT) {
-
 
22193
                this.scex = new ShoppingCartException();
-
 
22194
                this.scex.read(iprot);
-
 
22195
              } else { 
-
 
22196
                TProtocolUtil.skip(iprot, field.type);
-
 
22197
              }
-
 
22198
              break;
21938
          }
22199
          }
21939
          iprot.readFieldEnd();
22200
          iprot.readFieldEnd();
21940
        }
22201
        }
21941
      }
22202
      }
21942
      iprot.readStructEnd();
22203
      iprot.readStructEnd();
Line 21948... Line 22209...
21948
 
22209
 
21949
      if (this.isSetSuccess()) {
22210
      if (this.isSetSuccess()) {
21950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21951
        oprot.writeBool(this.success);
22212
        oprot.writeBool(this.success);
21952
        oprot.writeFieldEnd();
22213
        oprot.writeFieldEnd();
-
 
22214
      } else if (this.isSetScex()) {
-
 
22215
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
-
 
22216
        this.scex.write(oprot);
-
 
22217
        oprot.writeFieldEnd();
21953
      }
22218
      }
21954
      oprot.writeFieldStop();
22219
      oprot.writeFieldStop();
21955
      oprot.writeStructEnd();
22220
      oprot.writeStructEnd();
21956
    }
22221
    }
21957
 
22222
 
Line 21961... Line 22226...
21961
      boolean first = true;
22226
      boolean first = true;
21962
 
22227
 
21963
      sb.append("success:");
22228
      sb.append("success:");
21964
      sb.append(this.success);
22229
      sb.append(this.success);
21965
      first = false;
22230
      first = false;
-
 
22231
      if (!first) sb.append(", ");
-
 
22232
      sb.append("scex:");
-
 
22233
      if (this.scex == null) {
-
 
22234
        sb.append("null");
-
 
22235
      } else {
-
 
22236
        sb.append(this.scex);
-
 
22237
      }
-
 
22238
      first = false;
-
 
22239
      sb.append(")");
-
 
22240
      return sb.toString();
-
 
22241
    }
-
 
22242
 
-
 
22243
    public void validate() throws TException {
-
 
22244
      // check for required fields
-
 
22245
    }
-
 
22246
 
-
 
22247
  }
-
 
22248
 
-
 
22249
  public static class refreshCart_args implements TBase<refreshCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<refreshCart_args>   {
-
 
22250
    private static final TStruct STRUCT_DESC = new TStruct("refreshCart_args");
-
 
22251
 
-
 
22252
    private static final TField CART_ID_FIELD_DESC = new TField("cartId", TType.I64, (short)1);
-
 
22253
 
-
 
22254
    private long cartId;
-
 
22255
 
-
 
22256
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22257
    public enum _Fields implements TFieldIdEnum {
-
 
22258
      CART_ID((short)1, "cartId");
-
 
22259
 
-
 
22260
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
22261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22262
 
-
 
22263
      static {
-
 
22264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22265
          byId.put((int)field._thriftId, field);
-
 
22266
          byName.put(field.getFieldName(), field);
-
 
22267
        }
-
 
22268
      }
-
 
22269
 
-
 
22270
      /**
-
 
22271
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22272
       */
-
 
22273
      public static _Fields findByThriftId(int fieldId) {
-
 
22274
        return byId.get(fieldId);
-
 
22275
      }
-
 
22276
 
-
 
22277
      /**
-
 
22278
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22279
       * if it is not found.
-
 
22280
       */
-
 
22281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22282
        _Fields fields = findByThriftId(fieldId);
-
 
22283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22284
        return fields;
-
 
22285
      }
-
 
22286
 
-
 
22287
      /**
-
 
22288
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22289
       */
-
 
22290
      public static _Fields findByName(String name) {
-
 
22291
        return byName.get(name);
-
 
22292
      }
-
 
22293
 
-
 
22294
      private final short _thriftId;
-
 
22295
      private final String _fieldName;
-
 
22296
 
-
 
22297
      _Fields(short thriftId, String fieldName) {
-
 
22298
        _thriftId = thriftId;
-
 
22299
        _fieldName = fieldName;
-
 
22300
      }
-
 
22301
 
-
 
22302
      public short getThriftFieldId() {
-
 
22303
        return _thriftId;
-
 
22304
      }
-
 
22305
 
-
 
22306
      public String getFieldName() {
-
 
22307
        return _fieldName;
-
 
22308
      }
-
 
22309
    }
-
 
22310
 
-
 
22311
    // isset id assignments
-
 
22312
    private static final int __CARTID_ISSET_ID = 0;
-
 
22313
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
22314
 
-
 
22315
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
22316
      put(_Fields.CART_ID, new FieldMetaData("cartId", TFieldRequirementType.DEFAULT, 
-
 
22317
          new FieldValueMetaData(TType.I64)));
-
 
22318
    }});
-
 
22319
 
-
 
22320
    static {
-
 
22321
      FieldMetaData.addStructMetaDataMap(refreshCart_args.class, metaDataMap);
-
 
22322
    }
-
 
22323
 
-
 
22324
    public refreshCart_args() {
-
 
22325
    }
-
 
22326
 
-
 
22327
    public refreshCart_args(
-
 
22328
      long cartId)
-
 
22329
    {
-
 
22330
      this();
-
 
22331
      this.cartId = cartId;
-
 
22332
      setCartIdIsSet(true);
-
 
22333
    }
-
 
22334
 
-
 
22335
    /**
-
 
22336
     * Performs a deep copy on <i>other</i>.
-
 
22337
     */
-
 
22338
    public refreshCart_args(refreshCart_args other) {
-
 
22339
      __isset_bit_vector.clear();
-
 
22340
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22341
      this.cartId = other.cartId;
-
 
22342
    }
-
 
22343
 
-
 
22344
    public refreshCart_args deepCopy() {
-
 
22345
      return new refreshCart_args(this);
-
 
22346
    }
-
 
22347
 
-
 
22348
    @Deprecated
-
 
22349
    public refreshCart_args clone() {
-
 
22350
      return new refreshCart_args(this);
-
 
22351
    }
-
 
22352
 
-
 
22353
    public long getCartId() {
-
 
22354
      return this.cartId;
-
 
22355
    }
-
 
22356
 
-
 
22357
    public refreshCart_args setCartId(long cartId) {
-
 
22358
      this.cartId = cartId;
-
 
22359
      setCartIdIsSet(true);
-
 
22360
      return this;
-
 
22361
    }
-
 
22362
 
-
 
22363
    public void unsetCartId() {
-
 
22364
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
22365
    }
-
 
22366
 
-
 
22367
    /** Returns true if field cartId is set (has been asigned a value) and false otherwise */
-
 
22368
    public boolean isSetCartId() {
-
 
22369
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
22370
    }
-
 
22371
 
-
 
22372
    public void setCartIdIsSet(boolean value) {
-
 
22373
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
22374
    }
-
 
22375
 
-
 
22376
    public void setFieldValue(_Fields field, Object value) {
-
 
22377
      switch (field) {
-
 
22378
      case CART_ID:
-
 
22379
        if (value == null) {
-
 
22380
          unsetCartId();
-
 
22381
        } else {
-
 
22382
          setCartId((Long)value);
-
 
22383
        }
-
 
22384
        break;
-
 
22385
 
-
 
22386
      }
-
 
22387
    }
-
 
22388
 
-
 
22389
    public void setFieldValue(int fieldID, Object value) {
-
 
22390
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
22391
    }
-
 
22392
 
-
 
22393
    public Object getFieldValue(_Fields field) {
-
 
22394
      switch (field) {
-
 
22395
      case CART_ID:
-
 
22396
        return new Long(getCartId());
-
 
22397
 
-
 
22398
      }
-
 
22399
      throw new IllegalStateException();
-
 
22400
    }
-
 
22401
 
-
 
22402
    public Object getFieldValue(int fieldId) {
-
 
22403
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
22404
    }
-
 
22405
 
-
 
22406
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
22407
    public boolean isSet(_Fields field) {
-
 
22408
      switch (field) {
-
 
22409
      case CART_ID:
-
 
22410
        return isSetCartId();
-
 
22411
      }
-
 
22412
      throw new IllegalStateException();
-
 
22413
    }
-
 
22414
 
-
 
22415
    public boolean isSet(int fieldID) {
-
 
22416
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
22417
    }
-
 
22418
 
-
 
22419
    @Override
-
 
22420
    public boolean equals(Object that) {
-
 
22421
      if (that == null)
-
 
22422
        return false;
-
 
22423
      if (that instanceof refreshCart_args)
-
 
22424
        return this.equals((refreshCart_args)that);
-
 
22425
      return false;
-
 
22426
    }
-
 
22427
 
-
 
22428
    public boolean equals(refreshCart_args that) {
-
 
22429
      if (that == null)
-
 
22430
        return false;
-
 
22431
 
-
 
22432
      boolean this_present_cartId = true;
-
 
22433
      boolean that_present_cartId = true;
-
 
22434
      if (this_present_cartId || that_present_cartId) {
-
 
22435
        if (!(this_present_cartId && that_present_cartId))
-
 
22436
          return false;
-
 
22437
        if (this.cartId != that.cartId)
-
 
22438
          return false;
-
 
22439
      }
-
 
22440
 
-
 
22441
      return true;
-
 
22442
    }
-
 
22443
 
-
 
22444
    @Override
-
 
22445
    public int hashCode() {
-
 
22446
      return 0;
-
 
22447
    }
-
 
22448
 
-
 
22449
    public int compareTo(refreshCart_args other) {
-
 
22450
      if (!getClass().equals(other.getClass())) {
-
 
22451
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22452
      }
-
 
22453
 
-
 
22454
      int lastComparison = 0;
-
 
22455
      refreshCart_args typedOther = (refreshCart_args)other;
-
 
22456
 
-
 
22457
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(isSetCartId());
-
 
22458
      if (lastComparison != 0) {
-
 
22459
        return lastComparison;
-
 
22460
      }
-
 
22461
      lastComparison = TBaseHelper.compareTo(cartId, typedOther.cartId);
-
 
22462
      if (lastComparison != 0) {
-
 
22463
        return lastComparison;
-
 
22464
      }
-
 
22465
      return 0;
-
 
22466
    }
-
 
22467
 
-
 
22468
    public void read(TProtocol iprot) throws TException {
-
 
22469
      TField field;
-
 
22470
      iprot.readStructBegin();
-
 
22471
      while (true)
-
 
22472
      {
-
 
22473
        field = iprot.readFieldBegin();
-
 
22474
        if (field.type == TType.STOP) { 
-
 
22475
          break;
-
 
22476
        }
-
 
22477
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
22478
        if (fieldId == null) {
-
 
22479
          TProtocolUtil.skip(iprot, field.type);
-
 
22480
        } else {
-
 
22481
          switch (fieldId) {
-
 
22482
            case CART_ID:
-
 
22483
              if (field.type == TType.I64) {
-
 
22484
                this.cartId = iprot.readI64();
-
 
22485
                setCartIdIsSet(true);
-
 
22486
              } else { 
-
 
22487
                TProtocolUtil.skip(iprot, field.type);
-
 
22488
              }
-
 
22489
              break;
-
 
22490
          }
-
 
22491
          iprot.readFieldEnd();
-
 
22492
        }
-
 
22493
      }
-
 
22494
      iprot.readStructEnd();
-
 
22495
      validate();
-
 
22496
    }
-
 
22497
 
-
 
22498
    public void write(TProtocol oprot) throws TException {
-
 
22499
      validate();
-
 
22500
 
-
 
22501
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22502
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
22503
      oprot.writeI64(this.cartId);
-
 
22504
      oprot.writeFieldEnd();
-
 
22505
      oprot.writeFieldStop();
-
 
22506
      oprot.writeStructEnd();
-
 
22507
    }
-
 
22508
 
-
 
22509
    @Override
-
 
22510
    public String toString() {
-
 
22511
      StringBuilder sb = new StringBuilder("refreshCart_args(");
-
 
22512
      boolean first = true;
-
 
22513
 
-
 
22514
      sb.append("cartId:");
-
 
22515
      sb.append(this.cartId);
-
 
22516
      first = false;
-
 
22517
      sb.append(")");
-
 
22518
      return sb.toString();
-
 
22519
    }
-
 
22520
 
-
 
22521
    public void validate() throws TException {
-
 
22522
      // check for required fields
-
 
22523
    }
-
 
22524
 
-
 
22525
  }
-
 
22526
 
-
 
22527
  public static class refreshCart_result implements TBase<refreshCart_result._Fields>, java.io.Serializable, Cloneable, Comparable<refreshCart_result>   {
-
 
22528
    private static final TStruct STRUCT_DESC = new TStruct("refreshCart_result");
-
 
22529
 
-
 
22530
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
22531
    private static final TField SCEX_FIELD_DESC = new TField("scex", TType.STRUCT, (short)1);
-
 
22532
 
-
 
22533
    private boolean success;
-
 
22534
    private ShoppingCartException scex;
-
 
22535
 
-
 
22536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22537
    public enum _Fields implements TFieldIdEnum {
-
 
22538
      SUCCESS((short)0, "success"),
-
 
22539
      SCEX((short)1, "scex");
-
 
22540
 
-
 
22541
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
22542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22543
 
-
 
22544
      static {
-
 
22545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22546
          byId.put((int)field._thriftId, field);
-
 
22547
          byName.put(field.getFieldName(), field);
-
 
22548
        }
-
 
22549
      }
-
 
22550
 
-
 
22551
      /**
-
 
22552
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22553
       */
-
 
22554
      public static _Fields findByThriftId(int fieldId) {
-
 
22555
        return byId.get(fieldId);
-
 
22556
      }
-
 
22557
 
-
 
22558
      /**
-
 
22559
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22560
       * if it is not found.
-
 
22561
       */
-
 
22562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22563
        _Fields fields = findByThriftId(fieldId);
-
 
22564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22565
        return fields;
-
 
22566
      }
-
 
22567
 
-
 
22568
      /**
-
 
22569
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22570
       */
-
 
22571
      public static _Fields findByName(String name) {
-
 
22572
        return byName.get(name);
-
 
22573
      }
-
 
22574
 
-
 
22575
      private final short _thriftId;
-
 
22576
      private final String _fieldName;
-
 
22577
 
-
 
22578
      _Fields(short thriftId, String fieldName) {
-
 
22579
        _thriftId = thriftId;
-
 
22580
        _fieldName = fieldName;
-
 
22581
      }
-
 
22582
 
-
 
22583
      public short getThriftFieldId() {
-
 
22584
        return _thriftId;
-
 
22585
      }
-
 
22586
 
-
 
22587
      public String getFieldName() {
-
 
22588
        return _fieldName;
-
 
22589
      }
-
 
22590
    }
-
 
22591
 
-
 
22592
    // isset id assignments
-
 
22593
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
22594
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
22595
 
-
 
22596
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
22597
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
22598
          new FieldValueMetaData(TType.BOOL)));
-
 
22599
      put(_Fields.SCEX, new FieldMetaData("scex", TFieldRequirementType.DEFAULT, 
-
 
22600
          new FieldValueMetaData(TType.STRUCT)));
-
 
22601
    }});
-
 
22602
 
-
 
22603
    static {
-
 
22604
      FieldMetaData.addStructMetaDataMap(refreshCart_result.class, metaDataMap);
-
 
22605
    }
-
 
22606
 
-
 
22607
    public refreshCart_result() {
-
 
22608
    }
-
 
22609
 
-
 
22610
    public refreshCart_result(
-
 
22611
      boolean success,
-
 
22612
      ShoppingCartException scex)
-
 
22613
    {
-
 
22614
      this();
-
 
22615
      this.success = success;
-
 
22616
      setSuccessIsSet(true);
-
 
22617
      this.scex = scex;
-
 
22618
    }
-
 
22619
 
-
 
22620
    /**
-
 
22621
     * Performs a deep copy on <i>other</i>.
-
 
22622
     */
-
 
22623
    public refreshCart_result(refreshCart_result other) {
-
 
22624
      __isset_bit_vector.clear();
-
 
22625
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
22626
      this.success = other.success;
-
 
22627
      if (other.isSetScex()) {
-
 
22628
        this.scex = new ShoppingCartException(other.scex);
-
 
22629
      }
-
 
22630
    }
-
 
22631
 
-
 
22632
    public refreshCart_result deepCopy() {
-
 
22633
      return new refreshCart_result(this);
-
 
22634
    }
-
 
22635
 
-
 
22636
    @Deprecated
-
 
22637
    public refreshCart_result clone() {
-
 
22638
      return new refreshCart_result(this);
-
 
22639
    }
-
 
22640
 
-
 
22641
    public boolean isSuccess() {
-
 
22642
      return this.success;
-
 
22643
    }
-
 
22644
 
-
 
22645
    public refreshCart_result setSuccess(boolean success) {
-
 
22646
      this.success = success;
-
 
22647
      setSuccessIsSet(true);
-
 
22648
      return this;
-
 
22649
    }
-
 
22650
 
-
 
22651
    public void unsetSuccess() {
-
 
22652
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
22653
    }
-
 
22654
 
-
 
22655
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
22656
    public boolean isSetSuccess() {
-
 
22657
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
22658
    }
-
 
22659
 
-
 
22660
    public void setSuccessIsSet(boolean value) {
-
 
22661
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
22662
    }
-
 
22663
 
-
 
22664
    public ShoppingCartException getScex() {
-
 
22665
      return this.scex;
-
 
22666
    }
-
 
22667
 
-
 
22668
    public refreshCart_result setScex(ShoppingCartException scex) {
-
 
22669
      this.scex = scex;
-
 
22670
      return this;
-
 
22671
    }
-
 
22672
 
-
 
22673
    public void unsetScex() {
-
 
22674
      this.scex = null;
-
 
22675
    }
-
 
22676
 
-
 
22677
    /** Returns true if field scex is set (has been asigned a value) and false otherwise */
-
 
22678
    public boolean isSetScex() {
-
 
22679
      return this.scex != null;
-
 
22680
    }
-
 
22681
 
-
 
22682
    public void setScexIsSet(boolean value) {
-
 
22683
      if (!value) {
-
 
22684
        this.scex = null;
-
 
22685
      }
-
 
22686
    }
-
 
22687
 
-
 
22688
    public void setFieldValue(_Fields field, Object value) {
-
 
22689
      switch (field) {
-
 
22690
      case SUCCESS:
-
 
22691
        if (value == null) {
-
 
22692
          unsetSuccess();
-
 
22693
        } else {
-
 
22694
          setSuccess((Boolean)value);
-
 
22695
        }
-
 
22696
        break;
-
 
22697
 
-
 
22698
      case SCEX:
-
 
22699
        if (value == null) {
-
 
22700
          unsetScex();
-
 
22701
        } else {
-
 
22702
          setScex((ShoppingCartException)value);
-
 
22703
        }
-
 
22704
        break;
-
 
22705
 
-
 
22706
      }
-
 
22707
    }
-
 
22708
 
-
 
22709
    public void setFieldValue(int fieldID, Object value) {
-
 
22710
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
22711
    }
-
 
22712
 
-
 
22713
    public Object getFieldValue(_Fields field) {
-
 
22714
      switch (field) {
-
 
22715
      case SUCCESS:
-
 
22716
        return new Boolean(isSuccess());
-
 
22717
 
-
 
22718
      case SCEX:
-
 
22719
        return getScex();
-
 
22720
 
-
 
22721
      }
-
 
22722
      throw new IllegalStateException();
-
 
22723
    }
-
 
22724
 
-
 
22725
    public Object getFieldValue(int fieldId) {
-
 
22726
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
22727
    }
-
 
22728
 
-
 
22729
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
22730
    public boolean isSet(_Fields field) {
-
 
22731
      switch (field) {
-
 
22732
      case SUCCESS:
-
 
22733
        return isSetSuccess();
-
 
22734
      case SCEX:
-
 
22735
        return isSetScex();
-
 
22736
      }
-
 
22737
      throw new IllegalStateException();
-
 
22738
    }
-
 
22739
 
-
 
22740
    public boolean isSet(int fieldID) {
-
 
22741
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
22742
    }
-
 
22743
 
-
 
22744
    @Override
-
 
22745
    public boolean equals(Object that) {
-
 
22746
      if (that == null)
-
 
22747
        return false;
-
 
22748
      if (that instanceof refreshCart_result)
-
 
22749
        return this.equals((refreshCart_result)that);
-
 
22750
      return false;
-
 
22751
    }
-
 
22752
 
-
 
22753
    public boolean equals(refreshCart_result that) {
-
 
22754
      if (that == null)
-
 
22755
        return false;
-
 
22756
 
-
 
22757
      boolean this_present_success = true;
-
 
22758
      boolean that_present_success = true;
-
 
22759
      if (this_present_success || that_present_success) {
-
 
22760
        if (!(this_present_success && that_present_success))
-
 
22761
          return false;
-
 
22762
        if (this.success != that.success)
-
 
22763
          return false;
-
 
22764
      }
-
 
22765
 
-
 
22766
      boolean this_present_scex = true && this.isSetScex();
-
 
22767
      boolean that_present_scex = true && that.isSetScex();
-
 
22768
      if (this_present_scex || that_present_scex) {
-
 
22769
        if (!(this_present_scex && that_present_scex))
-
 
22770
          return false;
-
 
22771
        if (!this.scex.equals(that.scex))
-
 
22772
          return false;
-
 
22773
      }
-
 
22774
 
-
 
22775
      return true;
-
 
22776
    }
-
 
22777
 
-
 
22778
    @Override
-
 
22779
    public int hashCode() {
-
 
22780
      return 0;
-
 
22781
    }
-
 
22782
 
-
 
22783
    public int compareTo(refreshCart_result other) {
-
 
22784
      if (!getClass().equals(other.getClass())) {
-
 
22785
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22786
      }
-
 
22787
 
-
 
22788
      int lastComparison = 0;
-
 
22789
      refreshCart_result typedOther = (refreshCart_result)other;
-
 
22790
 
-
 
22791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
22792
      if (lastComparison != 0) {
-
 
22793
        return lastComparison;
-
 
22794
      }
-
 
22795
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
22796
      if (lastComparison != 0) {
-
 
22797
        return lastComparison;
-
 
22798
      }
-
 
22799
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(isSetScex());
-
 
22800
      if (lastComparison != 0) {
-
 
22801
        return lastComparison;
-
 
22802
      }
-
 
22803
      lastComparison = TBaseHelper.compareTo(scex, typedOther.scex);
-
 
22804
      if (lastComparison != 0) {
-
 
22805
        return lastComparison;
-
 
22806
      }
-
 
22807
      return 0;
-
 
22808
    }
-
 
22809
 
-
 
22810
    public void read(TProtocol iprot) throws TException {
-
 
22811
      TField field;
-
 
22812
      iprot.readStructBegin();
-
 
22813
      while (true)
-
 
22814
      {
-
 
22815
        field = iprot.readFieldBegin();
-
 
22816
        if (field.type == TType.STOP) { 
-
 
22817
          break;
-
 
22818
        }
-
 
22819
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
22820
        if (fieldId == null) {
-
 
22821
          TProtocolUtil.skip(iprot, field.type);
-
 
22822
        } else {
-
 
22823
          switch (fieldId) {
-
 
22824
            case SUCCESS:
-
 
22825
              if (field.type == TType.BOOL) {
-
 
22826
                this.success = iprot.readBool();
-
 
22827
                setSuccessIsSet(true);
-
 
22828
              } else { 
-
 
22829
                TProtocolUtil.skip(iprot, field.type);
-
 
22830
              }
-
 
22831
              break;
-
 
22832
            case SCEX:
-
 
22833
              if (field.type == TType.STRUCT) {
-
 
22834
                this.scex = new ShoppingCartException();
-
 
22835
                this.scex.read(iprot);
-
 
22836
              } else { 
-
 
22837
                TProtocolUtil.skip(iprot, field.type);
-
 
22838
              }
-
 
22839
              break;
-
 
22840
          }
-
 
22841
          iprot.readFieldEnd();
-
 
22842
        }
-
 
22843
      }
-
 
22844
      iprot.readStructEnd();
-
 
22845
      validate();
-
 
22846
    }
-
 
22847
 
-
 
22848
    public void write(TProtocol oprot) throws TException {
-
 
22849
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22850
 
-
 
22851
      if (this.isSetSuccess()) {
-
 
22852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22853
        oprot.writeBool(this.success);
-
 
22854
        oprot.writeFieldEnd();
-
 
22855
      } else if (this.isSetScex()) {
-
 
22856
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
-
 
22857
        this.scex.write(oprot);
-
 
22858
        oprot.writeFieldEnd();
-
 
22859
      }
-
 
22860
      oprot.writeFieldStop();
-
 
22861
      oprot.writeStructEnd();
-
 
22862
    }
-
 
22863
 
-
 
22864
    @Override
-
 
22865
    public String toString() {
-
 
22866
      StringBuilder sb = new StringBuilder("refreshCart_result(");
-
 
22867
      boolean first = true;
-
 
22868
 
-
 
22869
      sb.append("success:");
-
 
22870
      sb.append(this.success);
-
 
22871
      first = false;
-
 
22872
      if (!first) sb.append(", ");
-
 
22873
      sb.append("scex:");
-
 
22874
      if (this.scex == null) {
-
 
22875
        sb.append("null");
-
 
22876
      } else {
-
 
22877
        sb.append(this.scex);
-
 
22878
      }
-
 
22879
      first = false;
21966
      sb.append(")");
22880
      sb.append(")");
21967
      return sb.toString();
22881
      return sb.toString();
21968
    }
22882
    }
21969
 
22883
 
21970
    public void validate() throws TException {
22884
    public void validate() throws TException {